HL7 Version 2 to FHIR, published by HL7 International / Orders and Observations. This guide is not an authorized publication; it is the continuous build for version 1.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/v2-to-fhir/ and changes regularly. See the Directory of published versions
Official URL: http://hl7.org/fhir/uv/v2mappings/ConceptMap/datatype-ed-to-attachment | Version: 1.0.0 | |||
Standards status: Informative | Computable Name: DatatypeEDToAttachment | |||
Copyright/Legal: Copyright (c) 2025, HL7 International, Inc., All Rights Reserved. |
This ConceptMap represents a mapping from the HL7 V2 Datatype ED to the FHIR Attachment Data Type.
This ConceptMap represents the mapping from the HL7 V2 ED Data Type to the FHIR Attachment Data Type. See also the FHIR Shorthand or the CSV Source.
HL7 v2 | Condition (IF True, args) | HL7 FHIR | Comments | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Sort Order | Identifier | Name | Data Type | Cardinality - Min | Cardinality - Max | Computable ANTLR | Computable FHIRPath | Narrative | FHIR Attribute | Proposed Extension | Data Type | Cardinality - Min | Cardinality - Max | Data Type Mapping | Vocabulary Mapping (IS, ID, CE, CEN, CWE) | Assignment | |
1 | ED.1 | Source Application | HD | 0 | 1 | ||||||||||||
2 | ED.2 | Type of Data | ID | 1 | 1 | IF ED.3 NOT VALUED | Attachment.extension.url | uri | 1 | 1 | "https://hl7.org/fhir/StructureDefinition/alternate-codes" | ||||||
2 | ED.2 | Type of Data | ID | 1 | 1 | IF ED.3 NOT VALUED | Attachment.extension.valueCodeableConcept | CodeableConcept | 1 | 1 | |||||||
3 | ED.3 | Data Subtype | ID | 0 | 1 | Attachment.contentType | code | 0 | 1 | ||||||||
4 | ED.4 | Encoding | ID | 1 | 1 | ||||||||||||
5 | ED.5 | Data | TX | 1 | 1 | IF ED.4 IN ("Base64") | Attachment.data | base64Binary | 0 | 1 | Implementations are not always accurate, so to be safe you may want to always assess OBX-5.5 to determine the correct .contentType. | ||||||
5 | ED.5 | Data | TX | 1 | 1 | IF ED.4 IN ("A", (HEX") | Attachment.data | base64Binary | 0 | 1 | /convert from A or HEX to binary64/ | Implementations are not always accurate, so to be safe you may want to always assess OBX-5.5 to determine the correct .contentType. |
Mapping from (not specified) to (not specified)
Group 1 Mapping from unspecified code system
to unspecified code system
Source Concept Details | Relationship | Target Concept Details | Comment | |||
Codes from | ComputableANTLR | Codes from | ||||
ED.2 | Type of Data | IF ED.3 NOT VALUED | is equivalent to | extension[1].url | extension[1].url | |
ED.2 | Type of Data | IF ED.3 NOT VALUED | is equivalent to | extension[1].valueCodeableConcept | extension[1].valueCodeableConcept | |
ED.3 | Data Subtype | is equivalent to | contentType | contentType | ||
ED.5 | Data | IF ED.4 IN ("Base64") | is equivalent to | data | data | Implementations are not always accurate, so to be safe you may want to always assess OBX-5.5 to determine the correct .contentType. |
ED.5 | Data | IF ED.4 IN ("A", (HEX") | is equivalent to | data | data | Implementations are not always accurate, so to be safe you may want to always assess OBX-5.5 to determine the correct .contentType. |