From a781c22dc50a3c036156ff45d15445020f8d5edb Mon Sep 17 00:00:00 2001 From: JohnMoehrke Date: Thu, 6 Apr 2023 14:13:47 -0500 Subject: [PATCH] add context to extensions --- input/fsh/documentReference.fsh | 5 +++++ input/fsh/mhdList.fsh | 2 ++ input/fsh/submissionSet.fsh | 6 ++++++ input/ignoreWarnings.txt | 5 ++++- 4 files changed, 17 insertions(+), 1 deletion(-) diff --git a/input/fsh/documentReference.fsh b/input/fsh/documentReference.fsh index 87a8e38..ebb1c18 100644 --- a/input/fsh/documentReference.fsh +++ b/input/fsh/documentReference.fsh @@ -152,6 +152,9 @@ Description: "map between XDS Association Types and MHD FHIR DocumentReference r Usage: #definition * url = "https://profiles.ihe.net/ITI/MHD/ConceptMap/AssociationTypeVsRelatesTo" * name = "AssociationTypeVsRelatesTo" +* title = "AssociationType vs RelatesTo" +* description = "map between XDS Association Types and MHD FHIR DocumentReference relatesTo code." +* experimental = false * status = #active * date = 2021-05-15 * publisher = "IHE" @@ -202,8 +205,10 @@ Usage: #definition * status = #active * date = 2022-05-05 * publisher = "IHE" +* title = "FHIR status vs ebRIM Status Type Code" * description = "map between XDS ebRIM Status Type Codes and MHD FHIR DocumentReference.status code. Table 2:3.67.4.1.3.1-2. Note that the codes given are used without a system in both FHIR and ebRIM." * purpose = "show the mapping between ebRIM Status Type Codes and FHIR .status code" +* experimental = false * group.source = "urn:ietf:rfc:3986" * group.target = "http://hl7.org/fhir/document-reference-status" * group.element[+].code = #urn:oasis:names:tc:ebxml-regrep:StatusType:Approved diff --git a/input/fsh/mhdList.fsh b/input/fsh/mhdList.fsh index f42c897..594996d 100644 --- a/input/fsh/mhdList.fsh +++ b/input/fsh/mhdList.fsh @@ -15,6 +15,8 @@ Extension: DesignationType Id: ihe-designationType Title: "Clinical code of the List" Description: "Expresses contentType of submissionSet or the codeList of a Folder. Usually expressed in LOINC or SNOMED." +* ^context[+].type = #element +* ^context[=].expression = "List" * value[x] only CodeableConcept * valueCodeableConcept 1..1 diff --git a/input/fsh/submissionSet.fsh b/input/fsh/submissionSet.fsh index 025b8ce..d5a75fa 100644 --- a/input/fsh/submissionSet.fsh +++ b/input/fsh/submissionSet.fsh @@ -48,6 +48,8 @@ Extension: SourceId Id: ihe-sourceId Title: "Publisher organization identity of the SubmissionSet" Description: "The globally unique, immutable, identifier of the entity that contributed the SubmissionSet. When a broker is involved in sending SubmissionSets from a collection of client systems, it shall use a different sourceId for submissions from each separate system to allow for tracking. The format of the identifier is an OID." +* ^context[+].type = #element +* ^context[=].expression = "List" * value[x] only Identifier * valueIdentifier 1..1 @@ -55,6 +57,8 @@ Extension: AuthorOrg Id: ihe-authorOrg Title: "Author organization of the SubmissionSet" Description: "When the author of the SubmissionSet is an Organization, this extension shall be used." +* ^context[+].type = #element +* ^context[=].expression = "List.source" * value[x] only Reference(Organization) * valueReference 1..1 @@ -76,6 +80,8 @@ Extension: IntendedRecipient Id: ihe-intendedRecipient Title: "Intended recipient of the SubmissionSet" Description: "holds the identity of the organization or person the SubmissionSet is intended. For XDR and eMail (e.g. Direct) this tends to be a Practitioner or Patient with a telecom holding an email, but this is not strictly required." +* ^context[+].type = #element +* ^context[=].expression = "List" * value[x] only Reference(Practitioner or Organization or Patient or RelatedPerson or Group or Device or Location) * valueReference 1..1 diff --git a/input/ignoreWarnings.txt b/input/ignoreWarnings.txt index 8a2ac6f..331231e 100644 --- a/input/ignoreWarnings.txt +++ b/input/ignoreWarnings.txt @@ -1,9 +1,12 @@ == Suppressed Messages == # IHE code system used but never defined by IHE as a formal codeSystem Code System URI 'urn:ihe:event-type-code' is unknown so the code cannot be validated +Unknown Source Code System urn:ihe:iti:2007:AssociationType, so the source codes cannot be checked +Unknown Source Code System urn:ietf:rfc:3986, so the source codes cannot be checked # for this example we use FHIR core DocumentReference, and thus core valueset is used. validator can't find this -INFORMATION: Bundle/ex-dummyBundleDocAndBinary: Bundle.entry[0].resource.ofType(DocumentReference).content[0].format: The Coding provided (http://ihe.net/fhir/ihe.formatcode.fhir/CodeSystem/formatcode#urn:ihe:iti:xds-sd:text:2008) is not in the value set 'DocumentReference Format Code Set' (http://hl7.org/fhir/ValueSet/formatcodes|4.0.1), and a code is recommended to come from this value set. (error message = Not in value set http://hl7.org/fhir/ValueSet/formatcodes) +INFORMATION: Bundle/ex-dummyBundleDocAndBinary: Bundle.entry[0].resource/*DocumentReference/cccccccc-2222-0000-0000-000000000001*/.content[0].format: The Coding provided (http://ihe.net/fhir/ihe.formatcode.fhir/CodeSystem/formatcode#urn:ihe:iti:xds-sd:text:2008) is not in the value set 'DocumentReference Format Code Set' (http://hl7.org/fhir/ValueSet/formatcodes|4.0.1), and a code is recommended to come from this value set. (error message = Not in value set http://hl7.org/fhir/ValueSet/formatcodes) + # profile for MHD that is just structural and thus has no examples WARNING: StructureDefinition.where(url = 'https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.List'): The Implementation Guide contains no examples for this profile