Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add context to extensions #208

Merged
merged 1 commit into from
Apr 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions input/fsh/documentReference.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions input/fsh/mhdList.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 6 additions & 0 deletions input/fsh/submissionSet.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,17 @@ 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

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

Expand All @@ -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

Expand Down
5 changes: 4 additions & 1 deletion input/ignoreWarnings.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down