Data type CWE in FHIR
How the components of data type CWE (Coded With Exceptions) become FHIR R4 elements, from the HL7 Version 2 to FHIR guide.
- HL7 v2 definition
- Definition of CWE in HL7 v2 2.8
- Maps
- Timing (DurationUnit)Observation (SupportingInfo)AnnotationCodeCodeableConceptCodingDeviceDurationIdentifierOrganizationPractitionerRoleQuantityStringUri
To TimingDurationUnit1 rows
| HL7 v2 source | v2 type | FHIR element | FHIR type | Conditions and notes |
|---|---|---|---|---|
CWE.1Identifier | ST | repeat.durationUnit | code | Code map unspecified_mapping |
To ObservationSupportingInfo11 rows
| HL7 v2 source | v2 type | FHIR element | FHIR type | Conditions and notes |
|---|---|---|---|---|
CWE | code | CodeableConcept | Value /to be determined by implementer based on use of OBR-13/ | |
CWE | status | code | Value "final" | |
CWE.1Identifier | ST | value.CodeableConcept.coding[1].code | code | |
CWE.2Text | ST | value.CodeableConcept.coding[1].display | string | |
CWE.3Name Of Coding System | ID | value.CodeableConcept.coding[1].system | uri | |
CWE.4Alternate Identifier | ST | value.CodeableConcept.coding[2].code | code | |
CWE.5Alternate Text | ST | value.CodeableConcept.coding[2].display | string | |
CWE.6Name Of Alternate Coding System | ID | value.CodeableConcept.coding[2].system | uri | |
CWE.10Second Alternate Identifier | ST | value.CodeableConcept.coding[3].code | code | |
CWE.11Second Alternate Text | ST | value.CodeableConcept.coding[3].display | string | |
CWE.13Second Alternate Coding System Version Id | ST | value.CodeableConcept.coding[3].system | uri |
To Annotation1 rows
| HL7 v2 source | v2 type | FHIR element | FHIR type | Conditions and notes |
|---|---|---|---|---|
CWE | text | markdown | Value /include full field (inlcuding delimiters or xml tags)/ |
To Code2 rows
To CodeableConcept13 rows
| HL7 v2 source | v2 type | FHIR element | FHIR type | Conditions and notes |
|---|---|---|---|---|
CWE.1Identifier | ST | coding[1].code | code | If mapped to FHIR, use Code System and Display |
CWE.2Text | ST | coding[1].display | string | |
CWE.3Name Of Coding System | ID | coding[1].system | uri | |
CWE.4Alternate Identifier | ST | coding[2].code | code | |
CWE.5Alternate Text | ST | coding[2].display | string | |
CWE.6Name Of Alternate Coding System | ID | coding[2].system | uri | |
CWE.7Coding System Version Id | ST | coding[1].version | string | |
CWE.8Alternate Coding System Version Id | ST | coding[2].version | string | |
CWE.9Original Text | ST | text | string | |
CWE.10Second Alternate Identifier | ST | coding[3].code | code | |
CWE.11Second Alternate Text | ST | coding[3].display | string | |
CWE.12Name Of Second Alternate Coding System | ID | coding[3].system | uri | |
CWE.13Second Alternate Coding System Version Id | ST | coding[3].version | string |
To Coding4 rows
To Device20 rows
| HL7 v2 source | v2 type | FHIR element | FHIR type | Conditions and notes |
|---|---|---|---|---|
CWE.1Identifier | ST | identifier[1].value | If instance identifier | |
CWE.1Identifier | ST | definition(DeviceDefinition.identifier[1].value) | If kind identifier | |
CWE.2Text | ST | deviceName[1].name | ||
CWE.2Text | ST | deviceName[1].type | Value /select most appropriate value for actual use/ | |
CWE.3Name Of Coding System | ID | identifier[1].system | If instance identifierValue /map HL7 code system to appropriate url/ | |
CWE.3Name Of Coding System | ID | definition(DeviceDefinition.identifier[1].system) | If kind identifierValue /map HL7 code system to appropriate url/ | |
CWE.4Alternate Identifier | ST | identifier[2].value | If instance identifier | |
CWE.4Alternate Identifier | ST | definition(DeviceDefinition.identifier[2].value) | If kind identifier | |
CWE.5Alternate Text | ST | deviceName[2].name | ||
CWE.5Alternate Text | ST | deviceName[2].type | Value /select most appropriate value for actual use/ | |
CWE.6Name Of Alternate Coding System | ID | identifier[2].system | If instance identifierValue /map HL7 code system to appropriate url/ | |
CWE.6Name Of Alternate Coding System | ID | definition(DeviceDefinition.identifier[2].system) | If kind identifierValue /map HL7 code system to appropriate url/ | |
CWE.9Original Text | ST | deviceName[4].name | ||
CWE.9Original Text | ST | deviceName[4].type | Value /select most appropriate value for actual use/ | |
CWE.10Second Alternate Identifier | ST | identifier[3].value | If instance identifier | |
CWE.10Second Alternate Identifier | ST | definition(DeviceDefinition.identifier[3].value) | If kind identifier | |
CWE.11Second Alternate Text | ST | deviceName[3].name | ||
CWE.11Second Alternate Text | ST | deviceName[3].type | Value /select most appropriate value for actual use/ | |
CWE.12Name Of Second Alternate Coding System | ID | identifier[3].system | If instance identifierValue /map HL7 code system to appropriate url/ | |
CWE.12Name Of Second Alternate Coding System | ID | definition(DeviceDefinition.identifier[3].system) | If kind identifierValue /map HL7 code system to appropriate url/ |
To Duration2 rows
To Identifier9 rows
| HL7 v2 source | v2 type | FHIR element | FHIR type | Conditions and notes |
|---|---|---|---|---|
CWE.1Identifier | ST | [1].value | string | |
CWE.2Text | ST | [1].name | string | |
CWE.3Name Of Coding System | ID | [1].system | uri | |
CWE.4Alternate Identifier | ST | [2].value | string | |
CWE.5Alternate Text | ST | [2].name | string | |
CWE.6Name Of Alternate Coding System | ID | [2].system | uri | |
CWE.10Second Alternate Identifier | ST | [3].value | string | |
CWE.11Second Alternate Text | ST | [3].name | string | |
CWE.13Second Alternate Coding System Version Id | ST | [3].system | uri |
To Organization4 rows
To PractitionerRole10 rows
| HL7 v2 source | v2 type | FHIR element | FHIR type | Conditions and notes |
|---|---|---|---|---|
CWE.1Identifier | ST | code.coding[1].code | code | |
CWE.2Text | ST | code.coding[1].display | string | |
CWE.3Name Of Coding System | ID | code.coding[1].system | uri | |
CWE.4Alternate Identifier | ST | code.coding[2].code | code | |
CWE.5Alternate Text | ST | code.coding[2].display | string | |
CWE.6Name Of Alternate Coding System | ID | code.coding[2].system | uri | |
CWE.9Original Text | ST | code.text | ||
CWE.10Second Alternate Identifier | ST | code.coding[3].code | code | |
CWE.11Second Alternate Text | ST | code.coding[3].display | string | |
CWE.12Name Of Second Alternate Coding System | ID | code.coding[3].system | uri |
To Quantity4 rows
| HL7 v2 source | v2 type | FHIR element | FHIR type | Conditions and notes |
|---|---|---|---|---|
CWE.1Identifier | ST | Quantity.code | code | If IF CWE.1 IS VALUED AND CWE.3 IS VALUED |
CWE.1Identifier | ST | Quantity.unit | string | If If CWE.2 IS NOT VALUED |
CWE.2Text | ST | Quantity.unit | string | |
CWE.3Name Of Coding System | ID | Quantity.system | uri | If IF CWE.1 IS VALUED AND CWE.3 IS VALUED |
