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 sourcev2 typeFHIR elementFHIR typeConditions and notes
CWE.1Identifier
STrepeat.durationUnitcode

To ObservationSupportingInfo11 rows

HL7 v2 sourcev2 typeFHIR elementFHIR typeConditions and notes
CWE
codeCodeableConcept
Value /to be determined by implementer based on use of OBR-13/
CWE
statuscode
Value "final"
CWE.1Identifier
STvalue.CodeableConcept.coding[1].codecode
CWE.2Text
STvalue.CodeableConcept.coding[1].displaystring
CWE.3Name Of Coding System
IDvalue.CodeableConcept.coding[1].systemuri
CWE.4Alternate Identifier
STvalue.CodeableConcept.coding[2].codecode
CWE.5Alternate Text
STvalue.CodeableConcept.coding[2].displaystring
CWE.6Name Of Alternate Coding System
IDvalue.CodeableConcept.coding[2].systemuri
CWE.10Second Alternate Identifier
STvalue.CodeableConcept.coding[3].codecode
CWE.11Second Alternate Text
STvalue.CodeableConcept.coding[3].displaystring
CWE.13Second Alternate Coding System Version Id
STvalue.CodeableConcept.coding[3].systemuri

To Annotation1 rows

HL7 v2 sourcev2 typeFHIR elementFHIR typeConditions and notes
CWE
textmarkdown
Value /include full field (inlcuding delimiters or xml tags)/

To Code2 rows

HL7 v2 sourcev2 typeFHIR elementFHIR typeConditions and notes
CWE.1Identifier
ST$valuecode
CWE.4Alternate Identifier
ST$valuecode
If IF CWE.1 NOT VALUED

To CodeableConcept13 rows

HL7 v2 sourcev2 typeFHIR elementFHIR typeConditions and notes
CWE.1Identifier
STcoding[1].codecode
If mapped to FHIR, use Code System and Display
CWE.2Text
STcoding[1].displaystring
CWE.3Name Of Coding System
IDcoding[1].systemuri
CWE.4Alternate Identifier
STcoding[2].codecode
CWE.5Alternate Text
STcoding[2].displaystring
CWE.6Name Of Alternate Coding System
IDcoding[2].systemuri
CWE.7Coding System Version Id
STcoding[1].versionstring
CWE.8Alternate Coding System Version Id
STcoding[2].versionstring
CWE.9Original Text
STtextstring
CWE.10Second Alternate Identifier
STcoding[3].codecode
CWE.11Second Alternate Text
STcoding[3].displaystring
CWE.12Name Of Second Alternate Coding System
IDcoding[3].systemuri
CWE.13Second Alternate Coding System Version Id
STcoding[3].versionstring

To Coding4 rows

HL7 v2 sourcev2 typeFHIR elementFHIR typeConditions and notes
CWE.1Identifier
STcodecode
CWE.2Text
STdisplaystring
CWE.3Name Of Coding System
IDsystemuri
CWE.7Coding System Version Id
STversionstring

To Device20 rows

HL7 v2 sourcev2 typeFHIR elementFHIR typeConditions and notes
CWE.1Identifier
STidentifier[1].value
If instance identifier
CWE.1Identifier
STdefinition(DeviceDefinition.identifier[1].value)
If kind identifier
CWE.2Text
STdeviceName[1].name
CWE.2Text
STdeviceName[1].type
Value /select most appropriate value for actual use/
CWE.3Name Of Coding System
IDidentifier[1].system
If instance identifierValue /map HL7 code system to appropriate url/
CWE.3Name Of Coding System
IDdefinition(DeviceDefinition.identifier[1].system)
If kind identifierValue /map HL7 code system to appropriate url/
CWE.4Alternate Identifier
STidentifier[2].value
If instance identifier
CWE.4Alternate Identifier
STdefinition(DeviceDefinition.identifier[2].value)
If kind identifier
CWE.5Alternate Text
STdeviceName[2].name
CWE.5Alternate Text
STdeviceName[2].type
Value /select most appropriate value for actual use/
CWE.6Name Of Alternate Coding System
IDidentifier[2].system
If instance identifierValue /map HL7 code system to appropriate url/
CWE.6Name Of Alternate Coding System
IDdefinition(DeviceDefinition.identifier[2].system)
If kind identifierValue /map HL7 code system to appropriate url/
CWE.9Original Text
STdeviceName[4].name
CWE.9Original Text
STdeviceName[4].type
Value /select most appropriate value for actual use/
CWE.10Second Alternate Identifier
STidentifier[3].value
If instance identifier
CWE.10Second Alternate Identifier
STdefinition(DeviceDefinition.identifier[3].value)
If kind identifier
CWE.11Second Alternate Text
STdeviceName[3].name
CWE.11Second Alternate Text
STdeviceName[3].type
Value /select most appropriate value for actual use/
CWE.12Name Of Second Alternate Coding System
IDidentifier[3].system
If instance identifierValue /map HL7 code system to appropriate url/
CWE.12Name Of Second Alternate Coding System
IDdefinition(DeviceDefinition.identifier[3].system)
If kind identifierValue /map HL7 code system to appropriate url/

To Duration2 rows

HL7 v2 sourcev2 typeFHIR elementFHIR typeConditions and notes
CWE.1Identifier
STdurationcode
CWE.2Text
STdurationcode
If IF CWE.1 IS NOT VALUED

To Identifier9 rows

HL7 v2 sourcev2 typeFHIR elementFHIR typeConditions and notes
CWE.1Identifier
ST[1].valuestring
CWE.2Text
ST[1].namestring
CWE.3Name Of Coding System
ID[1].systemuri
CWE.4Alternate Identifier
ST[2].valuestring
CWE.5Alternate Text
ST[2].namestring
CWE.6Name Of Alternate Coding System
ID[2].systemuri
CWE.10Second Alternate Identifier
ST[3].valuestring
CWE.11Second Alternate Text
ST[3].namestring
CWE.13Second Alternate Coding System Version Id
ST[3].systemuri

To Organization4 rows

HL7 v2 sourcev2 typeFHIR elementFHIR typeConditions and notes
CWE.1Identifier
STidentifier.valuestring
CWE.2Text
STnamestring
CWE.3Name Of Coding System
IDidentifier.systemuri
CWE.9Original Text
STnamestring

To PractitionerRole10 rows

HL7 v2 sourcev2 typeFHIR elementFHIR typeConditions and notes
CWE.1Identifier
STcode.coding[1].codecode
CWE.2Text
STcode.coding[1].displaystring
CWE.3Name Of Coding System
IDcode.coding[1].systemuri
CWE.4Alternate Identifier
STcode.coding[2].codecode
CWE.5Alternate Text
STcode.coding[2].displaystring
CWE.6Name Of Alternate Coding System
IDcode.coding[2].systemuri
CWE.9Original Text
STcode.text
CWE.10Second Alternate Identifier
STcode.coding[3].codecode
CWE.11Second Alternate Text
STcode.coding[3].displaystring
CWE.12Name Of Second Alternate Coding System
IDcode.coding[3].systemuri

To Quantity4 rows

HL7 v2 sourcev2 typeFHIR elementFHIR typeConditions and notes
CWE.1Identifier
STQuantity.codecode
If IF CWE.1 IS VALUED AND CWE.3 IS VALUED
CWE.1Identifier
STQuantity.unitstring
If If CWE.2 IS NOT VALUED
CWE.2Text
STQuantity.unitstring
CWE.3Name Of Coding System
IDQuantity.systemuri
If IF CWE.1 IS VALUED AND CWE.3 IS VALUED

To String2 rows

HL7 v2 sourcev2 typeFHIR elementFHIR typeConditions and notes
CWE.2Text
ST$valuestring
If IF CWE.9 NOT VALUED
CWE.9Original Text
ST$valuestring

To Uri2 rows

HL7 v2 sourcev2 typeFHIR elementFHIR typeConditions and notes
CWE.1Identifier
ST$valueurl
CWE.4Alternate Identifier
ST$valueurl
If IF CWE.1 NOT VALUED