Skip to content

Commit

Permalink
More updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
rhausam committed Dec 9, 2024
1 parent ecbb9cb commit e7d6555
Show file tree
Hide file tree
Showing 24 changed files with 327 additions and 125 deletions.
161 changes: 82 additions & 79 deletions ConvertErrors.log

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion FHIR-v2mappings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
<artifact id="ConceptMap/datatype-fn-to-humanname" key="ConceptMap-datatype-fn-to-humanname" name="Datatype FN to HumanName Map"/>
<artifact id="ConceptMap/datatype-ft-comment-to-annotation" key="ConceptMap-datatype-ft-comment-to-annotation" name="Datatype FT to Annotation Map"/>
<artifact deprecated="true" id="ConceptMap/unsupported-datatype-ft-comment-to-annotation" key="ConceptMap-unsupported-datatype-ft-comment-to-annotation" name="Datatype FT[Comment] to Annotation Map - Unsupported"/>
<artifact id="ConceptMap/datatype-hd-to-device" key="ConceptMap-datatype-hd-to-device" name="Datatype HD to Device Map"/>
<artifact deprecated="true" id="ConceptMap/unsupported-datatype-hd-to-device" key="ConceptMap-unsupported-datatype-hd-to-device" name="Datatype HD to Device Map - Unsupported"/>
<artifact id="ConceptMap/datatype-hd-to-identifier" key="ConceptMap-datatype-hd-to-identifier" name="Datatype HD to Identifier Map"/>
<artifact id="ConceptMap/datatype-hd-to-location" key="ConceptMap-datatype-hd-to-location" name="Datatype HD to Location Map"/>
Expand Down Expand Up @@ -161,7 +162,7 @@
<artifact id="ConceptMap/segment-iam-to-allergyintolerance" key="ConceptMap-segment-iam-to-allergyintolerance" name="Segment IAM to AllergyIntolerance Map"/>
<artifact id="ConceptMap/segment-in1-to-coverage" key="ConceptMap-segment-in1-to-coverage" name="Segment IN1 to Coverage Map"/>
<artifact deprecated="true" id="ConceptMap/segment-in2-to-coverage" key="ConceptMap-segment-in2-to-coverage" name="Segment IN2 to Coverage Map"/>
<artifact id="ConceptMap/unsupported-segment-in3-to-careteam" key="ConceptMap-unsupported-segment-in3-to-careteam" name="Segment IN3 to CareTeam Map - Unsupported"/>
<artifact id="ConceptMap/segment-in3-to-careteam" key="ConceptMap-unsupported-segment-in3-to-careteam" name="Segment IN3 to CareTeam Map"/>
<artifact deprecated="true" id="ConceptMap/segment-in3-to-careteam-participant" key="ConceptMap-segment-in3-to-careteam-participant" name="Segment IN3 to CareTeam.participant Map"/>
<artifact deprecated="true" id="ConceptMap/unsupported-segment-in3-to-coverage" key="ConceptMap-unsupported-segment-in3-to-coverage" name="Segment IN3 to Coverage Map - Unsupported"/>
<artifact id="ConceptMap/segment-mrg-to-account" key="ConceptMap-segment-mrg-to-account" name="Segment MRG to Account Map"/>
Expand Down
88 changes: 88 additions & 0 deletions input/fsh/Datatype HD to Device.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
// HL7 Data Type - FHIR R4_ HD[Device] - Sheet1.csv
Instance: DatatypeHDToDevice
InstanceOf: ConceptMap
Title: "Datatype HD to Device Map"
* title = "Datatype HD to Device Map"
* description = "This ConceptMap represents a mapping from the HL7 V2 Datatype HD to the FHIR Device Resource."
* id = "datatype-hd-to-device"
* url = "http://hl7.org/fhir/uv/v2mappings/datatype-hd-to-device"
* version = "1.0"
* name = "DatatypeHDToDevice"
* status = #active
* experimental = true
* date = "2024-12-09"
* publisher = "HL7 International, Inc"
* contact.telecom.system = #email
* contact.telecom.value = "v2-to-[email protected]"
* copyright = "Copyright (c) 2020, HL7 International, Inc., All Rights Reserved."
* sourceUri = "HD"
* targetUri = "Device"
* extension[0].url = "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/RelatedArtifact"
* extension[0].extension[0].url = "type"
* extension[0].extension[0].valueCode = #derived-from
* extension[0].extension[1].url = "label"
* extension[0].extension[1].valueString = "Datatype HD to Device.fsh"
* extension[0].extension[2].url = "url"
* extension[0].extension[2].valueUri = "https://docs.google.com/spreadsheets/d/17DkmOwfcOoVQObJa39jY65XiEbXR7ozzvlgw6S_S0a4/edit?gid=0#gid=0"
* group.element[0].code = #HD.1
* group.element[0].extension[0].url = "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
* group.element[0].extension[0].extension[0].url = "type"
* group.element[0].extension[0].extension[0].valueCode = #"IS"
* group.element[0].extension[0].extension[1].url = "cardinalityMin"
* group.element[0].extension[0].extension[1].valueInteger = 0
* group.element[0].extension[0].extension[2].url = "cardinalityMax"
* group.element[0].extension[0].extension[2].valueInteger = 1
* group.element[0].display = "Namespace ID"
* group.element[0].target.equivalence = #equivalent
* group.element[0].target.code = #identifier[1].value
* group.element[0].target.extension[0].url = "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
* group.element[0].target.extension[0].extension[0].url = "type"
* group.element[0].target.extension[0].extension[0].valueCode = #"string"
* group.element[0].target.display = "identifier[1].value"
* group.element[0].target.comment = "Need gForge (#20522) to change MessageHeader.destination.endpoint from 1..1 to 0..1. Must be a reachable address."
* group.element[1].code = #HD.2
* group.element[1].extension[0].url = "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
* group.element[1].extension[0].extension[0].url = "type"
* group.element[1].extension[0].extension[0].valueCode = #"ST"
* group.element[1].extension[0].extension[1].url = "cardinalityMin"
* group.element[1].extension[0].extension[1].valueInteger = 0
* group.element[1].extension[0].extension[2].url = "cardinalityMax"
* group.element[1].extension[0].extension[2].valueInteger = 1
* group.element[1].display = "Universal ID"
* group.element[1].target.equivalence = #equivalent
* group.element[1].target.code = #identifier[2].value
* group.element[1].target.extension[0].url = "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
* group.element[1].target.extension[0].extension[0].url = "type"
* group.element[1].target.extension[0].extension[0].valueCode = #"string"
* group.element[1].target.display = "identifier[2].value"
* group.element[2].code = #HD.3
* group.element[2].extension[0].url = "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
* group.element[2].extension[0].extension[0].url = "type"
* group.element[2].extension[0].extension[0].valueCode = #"ID"
* group.element[2].extension[0].extension[1].url = "cardinalityMin"
* group.element[2].extension[0].extension[1].valueInteger = 0
* group.element[2].extension[0].extension[2].url = "cardinalityMax"
* group.element[2].extension[0].extension[2].valueInteger = 1
* group.element[2].display = "Universal ID Type"
* group.element[2].target.equivalence = #equivalent
* group.element[2].target.code = #identifier[2].type
* group.element[2].target.extension[0].url = "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
* group.element[2].target.extension[0].extension[0].url = "type"
* group.element[2].target.extension[0].extension[0].valueCode = #"CodeableConcept"
* group.element[2].target.display = "identifier[2].type"
* group.element[2].target.comment = "Request that DNS, ISO, and UUID (and other Table 0301 values) are added to: http://hl7.org/fhir/valueset-identifier-type.html"
* group.element[3].code = #HD.3
* group.element[3].extension[0].url = "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
* group.element[3].extension[0].extension[0].url = "type"
* group.element[3].extension[0].extension[0].valueCode = #"ID"
* group.element[3].extension[0].extension[1].url = "cardinalityMin"
* group.element[3].extension[0].extension[1].valueInteger = 0
* group.element[3].extension[0].extension[2].url = "cardinalityMax"
* group.element[3].extension[0].extension[2].valueInteger = 1
* group.element[3].display = "Universal ID Type"
* group.element[3].target.equivalence = #equivalent
* group.element[3].target.code = #identifier[2].system
* group.element[3].target.extension[0].url = "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
* group.element[3].target.extension[0].extension[0].url = "type"
* group.element[3].target.extension[0].extension[0].valueCode = #"uri"
* group.element[3].target.display = "identifier[2].system"
68 changes: 68 additions & 0 deletions input/fsh/Segment IN3 to CareTeam.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
// HL7 Segment - FHIR R4_ IN3[CareTeam] - Sheet1.csv
Instance: SegmentIN3ToCareTeam
InstanceOf: ConceptMap
Title: "Segment IN3 to CareTeam Map"
* title = "Segment IN3 to CareTeam Map"
* description = "This ConceptMap represents a mapping from the HL7 V2 Segment IN3 to the FHIR CareTeam Resource."
* id = "segment-in3-to-careteam"
* url = "http://hl7.org/fhir/uv/v2mappings/segment-in3-to-careteam"
* version = "1.0"
* name = "SegmentIN3ToCareTeam"
* status = #active
* experimental = true
* date = "2024-12-09"
* publisher = "HL7 International, Inc"
* contact.telecom.system = #email
* contact.telecom.value = "v2-to-[email protected]"
* copyright = "Copyright (c) 2020, HL7 International, Inc., All Rights Reserved."
* sourceUri = "IN3"
* targetUri = "CareTeam"
* extension[0].url = "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/RelatedArtifact"
* extension[0].extension[0].url = "type"
* extension[0].extension[0].valueCode = #derived-from
* extension[0].extension[1].url = "label"
* extension[0].extension[1].valueString = "Segment IN3 to CareTeam.fsh"
* extension[0].extension[2].url = "url"
* extension[0].extension[2].valueUri = "https://docs.google.com/spreadsheets/d/1kWvcYxTaofNaqq5k5qjsqBEQRsjGGKiwAyCoTc8ADhY/edit#gid=0"
* group.element[0].code = #IN3-21
* group.element[0].extension[0].url = "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
* group.element[0].extension[0].extension[0].url = "type"
* group.element[0].extension[0].extension[0].valueCode = #"ST"
* group.element[0].extension[0].extension[1].url = "cardinalityMin"
* group.element[0].extension[0].extension[1].valueInteger = 1
* group.element[0].extension[0].extension[2].url = "cardinalityMax"
* group.element[0].extension[0].extension[2].valueInteger = 1
* group.element[0].display = "Case Manager"
* group.element[0].target.equivalence = #equivalent
* group.element[0].target.code = #participant.role.coding.value
* group.element[0].target.extension[0].url = "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
* group.element[0].target.extension[0].extension[0].url = "type"
* group.element[0].target.extension[0].extension[0].valueCode = #"string"
* group.element[0].target.display = "participant.role.coding.value"
* group.element[1].code = #IN3-21
* group.element[1].extension[0].url = "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
* group.element[1].extension[0].extension[0].url = "type"
* group.element[1].extension[0].extension[0].valueCode = #"ST"
* group.element[1].extension[0].extension[1].url = "cardinalityMin"
* group.element[1].extension[0].extension[1].valueInteger = 1
* group.element[1].extension[0].extension[2].url = "cardinalityMax"
* group.element[1].extension[0].extension[2].valueInteger = 1
* group.element[1].display = "Case Manager"
* group.element[1].target.equivalence = #equivalent
* group.element[1].target.code = #participant.role.coding.system
* group.element[1].target.extension[0].url = "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
* group.element[1].target.extension[0].extension[0].url = "type"
* group.element[1].target.extension[0].extension[0].valueCode = #"uri"
* group.element[1].target.display = "participant.role.coding.system"
* group.element[2].code = #IN3-21
* group.element[2].extension[0].url = "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
* group.element[2].extension[0].extension[0].url = "type"
* group.element[2].extension[0].extension[0].valueCode = #"ST"
* group.element[2].extension[0].extension[1].url = "cardinalityMin"
* group.element[2].extension[0].extension[1].valueInteger = 1
* group.element[2].extension[0].extension[2].url = "cardinalityMax"
* group.element[2].extension[0].extension[2].valueInteger = 1
* group.element[2].display = "Case Manager"
* group.element[2].target.equivalence = #equivalent
* group.element[2].target.code = #participant.role.text
* group.element[2].target.display = "participant.role.text"
17 changes: 0 additions & 17 deletions input/fsh/Unsupported Datatype HD to Device.fsh

This file was deleted.

17 changes: 0 additions & 17 deletions input/fsh/Unsupported Segment IN3 to CareTeam.fsh

This file was deleted.

11 changes: 11 additions & 0 deletions input/includes/ConceptMap-datatype-hd-to-device-intro.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

This ConceptMap represents the mapping from the HL7 V2 HD Data Type to the FHIR Device Resource. See also the <a href='https://github.com/HL7/v2-to-fhir/blob/master/tank/Datatype HD to Device.fsh'>FHIR Shorthand</a> or the <a href='https://github.com/HL7/v2-to-fhir/blob/master/mappings/datatypes/HL7 Data Type - FHIR R4_ HD[Device] - Sheet1.csv'>CSV Source</a>.
<table class='grid'><thead>
<tr><th colspan='6'>HL7 v2</th><th colspan='3'>Condition (IF True, args)</th><th colspan='8'>HL7 FHIR</th><th rowspan='2'>Comments</th></tr>
<tr><th title='Rows are listed in sequence of how they appear in the v2 standard. The first column, Sort Order, provides a sort order that can re-create the original v2 standard sequence in case one opts to re-sort/filter the rows.'>Sort Order</th><th title='Contains the formal Data Type Name and Component Sequence according to the base standard using &quot;.&quot; as the delimiter.'>Identifier</th><th title='The formal name of the field in the most current published version.'>Name</th><th title='The data type of the field in the most current published version if not deprecated, otherwise the data type at the time it was deprecated and removed.'>Data Type</th><th title='The V2 min cardinality expressed numerically.'>Cardinality - Min</th><th title='The V2 max cardinality expressed numerically.' style='border-right: 2px'>Cardinality - Max</th><th title='Condition in an easy to read syntax (Computable ANTLR)'>Computable ANTLR</th><th title='Condition in FHIRPath Notation'>Computable FHIRPath</th><th title='Condition expressed in narrative form' style='border-right: 2px'>Narrative</th><th title='An existing FHIR attribute in the target FHIR version.'>FHIR Attribute</th><th title='The FHIR attribute&apos;s data type in the target FHIR version.'>Proposed Extension</th><th title='The proposed FHIR Extension.'>Data Type</th><th title='The FHIR min cardinality expressed numerically.'>Cardinality - Min</th><th title='The FHIR max cardinality expressed numerically.' style='border-right: 2px'>Cardinality - Max</th><th title='The URL to the Data Type Map that is to be used for the attribute in this segment.'>Data Type Mapping</th><th title='The fixed or computed value to assign.'>Vocabulary Mapping<br/>(IS, ID, CE, CEN, CWE)</th><th title='Mapping for terminology tables.'>Assignment</th></tr></thead>
<tbody>
<tr><td>1</td><td>HD.1</td><td>Namespace ID</td><td>IS</td><td>0</td><td style='border-right: 2px'>1</td><td style='border-right: 2px'></td><td style='border-right: 2px'></td><td style='border-right: 2px'></td><td><a href='https://hl7.org/fhir/R4/Device.Device-definitions.html#Device.identifier.value'>Device.identifier.value</a></td><td style='border-right: 2px'></td><td><a href='https://hl7.org/fhir/R4/Device.Device-definitions.html#Device.string'>Device.string</a></td><td style='border-right: 2px'></td><td style='border-right: 2px'></td><td style='border-right: 2px'></td><td style='border-right: 2px'></td><td style='border-right: 2px'></td><td>Need gForge (#20522) to change MessageHeader.destination.endpoint from 1..1 to 0..1. Must be a reachable address.</td></tr>
<tr><td>2</td><td>HD.2</td><td>Universal ID</td><td>ST</td><td>0</td><td style='border-right: 2px'>1</td><td style='border-right: 2px'></td><td style='border-right: 2px'></td><td style='border-right: 2px'></td><td><a href='https://hl7.org/fhir/R4/Device.Device-definitions.html#Device.identifier.value'>Device.identifier.value</a></td><td style='border-right: 2px'></td><td><a href='https://hl7.org/fhir/R4/Device.Device-definitions.html#Device.string'>Device.string</a></td><td style='border-right: 2px'></td><td style='border-right: 2px'></td><td style='border-right: 2px'></td><td style='border-right: 2px'></td><td style='border-right: 2px'></td><td style='border-right: 2px'></td></tr>
<tr><td>3</td><td>HD.3</td><td>Universal ID Type</td><td>ID</td><td>0</td><td style='border-right: 2px'>1</td><td style='border-right: 2px'></td><td style='border-right: 2px'></td><td style='border-right: 2px'></td><td><a href='https://hl7.org/fhir/R4/Device.Device-definitions.html#Device.identifier.type'>Device.identifier.type</a></td><td style='border-right: 2px'></td><td><a href='https://hl7.org/fhir/R4/Device.Device-definitions.html#Device.CodeableConcept'>Device.CodeableConcept</a></td><td style='border-right: 2px'></td><td style='border-right: 2px'></td><td><a href='ConceptMap-datatype-id-universalid-to-codeableconcept.html'>ID[CodeableConcept-UniversalID]</a></td><td><a href='ConceptMap-table-hl70301-to-v2-0301.html'>UniversalIDType</a></td><td style='border-right: 2px'></td><td>Request that DNS, ISO, and UUID (and other Table 0301 values) are added to: <a href='http://hl7.org/fhir/valueset-identifier-type.html'>http://hl7.org/fhir/valueset-identifier-type.html</a></td></tr>
<tr><td>3</td><td>HD.3</td><td>Universal ID Type</td><td>ID</td><td>0</td><td style='border-right: 2px'>1</td><td>IF HD.3 IN ("ISO", "UUID")</td><td style='border-right: 2px'></td><td style='border-right: 2px'></td><td><a href='https://hl7.org/fhir/R4/Device.Device-definitions.html#Device.identifier.system'>Device.identifier.system</a></td><td style='border-right: 2px'></td><td><a href='https://hl7.org/fhir/R4/Device.Device-definitions.html#Device.uri'>Device.uri</a></td><td style='border-right: 2px'></td><td style='border-right: 2px'></td><td style='border-right: 2px'></td><td style='border-right: 2px'></td><td>"urn:ietf:rfc:3986"</td><td style='border-right: 2px'></td></tr>
</tbody></table>
Empty file.
Loading

0 comments on commit e7d6555

Please sign in to comment.