Segmento OBX en FHIR

Cómo el segmento OBX (Observation/result) se convierte en recursos FHIR R4, según la guía HL7 Version 2 to FHIR.

Definición HL7 v2
Definición de OBX en HL7 v2 2.8
Mapas
Observation (Component)DocumentReferenceObservation
Usado en los mensajes
ADT_A01ADT_A02ADT_A05ADT_A06ADT_A09ADT_A11ADT_A17MDM_T02OML_O21ORM_O01ORU_R01SIU_S12VXU_V04

A ObservationComponent72 filas

Origen HL7 v2Tipo v2Elemento FHIRTipo FHIRCondiciones y notas
OBX-3Observation Identifier
CWEcodeCodeableConcept
OBX-3Observation Identifier
CWEcomponent[each].codeCodeableConcept
OBX-4Observation Sub-id
ST$this
Map to Observation.partOf or Observation.hasMember or Observation.DerivedFrom according to the implementation guidance for the v2 message at hand, otherwise map to the extension-sub-id to enable the final destination to determine how to structure the observations.
OBX-5Observation Value
variescomponent[each].valueQuantityquantity
Si IF OBX-2 EQUALS "NM"
OBX-5Observation Value
variescomponent[each].valueStringstring
Si IF OBX-2 IN ("ST", "FT", "TX")Any markup in ST, FT or TX data may not present properly given that valueString is a string data type
OBX-5Observation Value
variescomponent[each].valueCodeableConceptCodeableConcept
Si IF OBX-2 EQUALS "CF"
OBX-5Observation Value
variescomponent[each].valueCodeableConceptCodeableConcept
Si IF OBX-2 EQUALS "CNE"
OBX-5Observation Value
variescomponent[each].valueCodeableConceptCodeableConcept
Si IF OBX-2 EQUALS "CE"
OBX-5Observation Value
variescomponent[each].valueCodeableConceptCodeableConcept
Si IF OBX-2 EQUALS "CWE"
OBX-5Observation Value
variescomponent[each].valueCodeableConceptCodeableConcept
Si IF OBX-2 EQUALS "IS"
OBX-5Observation Value
variescomponent[each].valuePeriodPeriod
Si IF OBX-2 EQUALS "DR"
OBX-5Observation Value
variescomponent[each].valueDateTimedateTime
Si IF OBX-2 IN ("DTM", "DT")
OBX-5Observation Value
variescomponent[each].valueRangeRange
Si IF OBX-2 EQUALS "NR"
OBX-5Observation Value
variescomponent[each].valueStringstring
Si IF OBX-2 EQUALS "VR"Valor OBX-5.1+"-"+OBX-5.2
OBX-5Observation Value
variescomponent[each].valueTimetime
Si IF OBX-2 EQUALS "TM"
OBX-5Observation Value
variescomponent[each].valueStringstring
Si IF (OBX-2 EQUALS "SN" AND OBX-5.1 EQUALS "<>"Valor OBX-5.1+" "+OBX-5.2+" "+OBX-5.3+" "+OBX-5.4" "OBX-6"
OBX-5Observation Value
variescomponent[each].valueRatio[1]Ratio
Si IF OBX-2 EQUALS "SN" AND OBX-5.1 NOT EQUALS "<>" AND OBX-5.3 IN (":", "/")
OBX-5Observation Value
variescomponent[each].valueRange[1]Range
Si IF OBX-2 EQUALS "SN" AND OBX-5.1 NOT EQUALS "<>" AND OBX-5.3 EQUALS "-"
OBX-5Observation Value
variescomponent[each].valueStringstring
Si IF OBX-2 EQUALS "SN" AND OBX-5.1 NOT EQUALS "<>" AND OBX-5.3 EQUALS "+"Valor OBX-5.1+" "+OBX-5.2+" "+OBX-5.3+" "+OBX-5.4" "OBX-6"
OBX-5Observation Value
variescomponent[each].valueQuantity[1]Quantity
Si IF OBX-2 EQUALS "SN" AND OBX-5.1 NOT EQUALS "<>" AND OBX-5.3 NOT IN (":", "/", "-", "+")
OBX-5Observation Value
variescomponent[each].valueStringstring
If line 19 through 23 all fail while OBX-2 = SNValor OBX-5.1+" "+OBX-5.2+" "+OBX-5.3+" "+OBX-5.4" "OBX-6"
OBX-5Observation Value
variescomponent[each].extension[1].urluri
Si IF OBX-2 EQUALS "ED" AND IF OBX-5.4 EQUALS "Base64"If none of the other observations in OBX-5 are not derived from the documentation includedValor "https://hl7.org/fhir/5.0/StructureDefinition/extension-Observation.valueAttachment"
OBX-5Observation Value
variescomponent[each].extension[1].valueAttachmentAttachment
Si IF OBX-2 EQUALS "ED" AND IF OBX-5.4 EQUALS "Base64"If none of the other observations in OBX-5 are not derived from the documentation included
OBX-5Observation Value
variesderivedFrom(DocumentReference)Reference
Si IF OBX-2 EQUALS "ED" AND IF OBX-5.4 EQUALS "Base64"And if other observation in OBX-5 are derived from the documentation included
OBX-5Observation Value
variescomponent[each].extension[1].urluri
Si IF OBX-2 EQUALS "RP"If none of the other observations in OBX-5 are not derived from the documentation referencedValor "https://hl7.org/fhir/5.0/StructureDefinition/extension-Observation.valueAttachment"
OBX-5Observation Value
variescomponent[each].extension[1].valueAttachmentAttachment
Si IF OBX-2 EQUALS "RP"If none of the other observations in OBX-5 are not derived from the documentation referenced
OBX-5Observation Value
variesderivedFrom(DocumentReference)Reference
Si IF OBX-2 EQUALS "RP"And if other observation in OBX-5 are derived from the documentation being referenced
OBX-6Units
CWEcomponent[each].valueQuantityQuantity
Si IF OBX-2 IN ("NA", "NM")
OBX-6Units
CWEcomponent[each].valueQuantity[1]Quantity
Si IF OBX-2 EQUALS "SN" AND OBX-5.1 NOT EQUALS "<>" AND OBX-5.3 NOT IN (":", "/", "-", "+")
OBX-6Units
CWEcomponent[each].valueRange[1].lowSimpleQuantity
Si IF OBX-2 EQUALS "SN" AND OBX-5.1 NOT EQUALS "<>" AND OBX-5.3 EQUALS "-"
OBX-6Units
CWEcomponent[each].valueRange[1].highSimpleQuantity
Si IF OBX-2 EQUALS "SN" AND OBX-5.1 NOT EQUALS "<>" AND OBX-5.3 EQUALS "-"
OBX-6Units
CWEcomponent[each].valueRatio[1].numeratorQuantity
Si IF OBX-2 EQUALS "SN" AND OBX-5.1 NOT EQUALS "<>" AND OBX-5.3 IN (":", "/")
OBX-6Units
CWEcomponent[each].valueRatio[1].denominatorQuantity
Si IF OBX-2 EQUALS "SN" AND OBX-5.1 NOT EQUALS "<>" AND OBX-5.3 IN (":", "/")
OBX-7References Range
STcomponent[each].referenceRange.text
OBX-8Interpretation Codes
CWEinterpretationCodeableConcept
OBX-10Nature Of Abnormal Test
IDextension[2].uriuri
Valor "http://hl7.org/fhir/StructureDefinition/observation-nature-of-abnormal-test"
OBX-10Nature Of Abnormal Test
IDextension[2].valueCodeableConceptCodeableConcept
Mapa de códigos v2-0080
OBX-11Observation Result Status
IDstatuscode
Mapa de códigos observation-status
OBX-11Observation Result Status
IDstatus.extension[1].urluri
Si IF OBX-11 IS "X"Valor "http://hl7.org/fhir/StructureDefinition/alternate-codes"
OBX-11Observation Result Status
IDstatus.extension[1].valueCodeableConcept.coding.codeCodeableConcept
Si IF OBX-11 IS "X"Valor "X"
OBX-11Observation Result Status
IDstatus.extension[1].valueCodeableConcept.coding.systemstring
Si IF OBX-11 IS "X"Valor "http://terminology.hl7.org/CodeSystem/v2-0085"
OBX-11Observation Result Status
IDdataAbsentReason.coding[2].code
Si IF OBX-11 IS "N"Valor "not-asked"
OBX-11Observation Result Status
IDdataAbsentReason.coding[2].system
Si IF OBX-11 IS "N"Valor "http://terminology.hl7.org/CodeSystem/data-absent-reason"
OBX-14Date/Time Of The Observation
DTMeffectiveDateTimedateTime
OBX-16Responsible Observer
XCNperformer[1](PractitionerRole.practitioner(Practitioner))Reference(PractitionerRole)
OBX-16Responsible Observer
XCNperformer[1](PractitionerRole.code.coding.code)string
Valor "responsibleObserver"
OBX-16Responsible Observer
XCNperformer[1](PractitionerRole.code.coding.system)uri
Valor "http://terminology.hl7.org/CodeSystem/practitioner-role"
OBX-17Observation Method
CWEmethodCodeableConcept
OBX-18Equipment Instance Identifier
EIdevice(Device.identifier)Identifier
OBX-19Date/Time Of The Analysis
DTMextension[1].urluri
OBX-19Date/Time Of The Analysis
DTMextension[1].valueDateTimedateTime
OBX-20Observation Site
CWEbodySiteCodeableConcept
OBX-21Observation Instance Identifier
EIidentifierIdentifier
OBX-21Observation Instance Identifier
EIidentifier.type.coding.codecode
Valor "FILL"
OBX-23Performing Organization Name
XONperformer[2](Organization)Reference(Organization)
OBX-23Performing Organization Name
XONperformer[2](PractitionerRole.organization(Organization))Reference(Organization)
Si IF OBX-25 VALUED
OBX-24Performing Organization Address
XADperformer[2](Organization.address)Address
OBX-24Performing Organization Address
XADperformer[2](PractitionerRole.organization(Organization.address))Address
Si IF OBX-25 VALUED
OBX-25Performing Organization Medical Director
XCNperformer[2](PractitionerRole)Reference(PractitionerRole)
OBX-25Performing Organization Medical Director
XCNperformer[2](PractitionerRole.code.coding.value)string
Valor "MDIR"
OBX-25Performing Organization Medical Director
XCNperformer[2](PractitionerRole.code.coding.system)uri
Valor "http://terminology.hl7.org/CodeSystem/v2-0912"
OBX-29
IDcategory[1].coding.codecode
OBX-29
IDcategory[1].coding.systemuri
OBX-30
IDextension[2].urluri
Valor "http://hl7.org/fhir/StructureDefinition/observation-structure-type"
OBX-30
IDextension[2].valueCodeableConcept.coding.codecode
OBX-30
IDextension[2].valueCodeableConcept.coding.systemuri
Valor "http://hl7.org/fhir/StructureDefinition/observation-structure-type"
OBX-33
EIPextension[1].uriReference
Si IF OBX-33 COUNT>1Valor "http://hl7.org/fhir/5.0/StructureDefinition/extension-Observation.specimen"
OBX-33
EIPextension[1].valueReference(Group.member.entity(Specimen.identifier[1])
Si IF OBX-33 COUNT>1
OBX-33
EIPextension[2].uri
Si IF OBX-33 COUNT>1Valor "http://hl7.org/fhir/5.0/StructureDefinition/extension-Observation.specimen"
OBX-33
EIPextension[2].valueReference(Group.member.entity(Specimen.identifier[2]))
Si IF OBX-33 COUNT>1
OBX-33
EIPspecimen(Specimen.identifier[1])Identifier
Si IF OBX-33 COUNT=1
OBX-33
EIPspecimen(Specimen.identifier[2])Identifier
Si IF OBX-33 COUNT=1

A DocumentReference6 filas

Origen HL7 v2Tipo v2Elemento FHIRTipo FHIRCondiciones y notas
OBX-5Observation Value
variescontent[1].attachmentAttachment
Si IF OBX-2="ED"
OBX-5Observation Value
variescontent[2].databinary64
Si IF OBX-2="FT"
OBX-5Observation Value
variescontent[2].contentTypecode
Si IF OBX-2="FT"Valor "text/hl7v2"
OBX-5Observation Value
variescontent[3].urluri
Si IF OBX-2="RP"
OBX-5Observation Value
variescontent[4].databinary64
Si IF OBX-2="TX"
OBX-5Observation Value
variescontent[4].contentTypecode
Si IF OBX-2="TX"Valor "application/text"

A Observation72 filas

Origen HL7 v2Tipo v2Elemento FHIRTipo FHIRCondiciones y notas
OBX-3Observation Identifier
CWEcodeCodeableConcept
OBX-4Observation Sub-id
OG$this
Map to Observation.partOf or Observation.hasMember or Observation.DerivedFrom according to the implementation guidance for the v2 message at hand, otherwise map to the extension-sub-id to enable the final destination to determine how to structure the observations.
OBX-5Observation Value
variesvalueQuantity.valuequantity
Si IF OBX-2 EQUALS "NM"
OBX-5Observation Value
variesvalueStringstring
Si IF OBX-2 IN ("ST", "FT", "TX")Any markup in ST, FT or TX data may not present properly given that valueString is a string data type
OBX-5Observation Value
variesvalueCodeableConcept[1]CodeableConcept
Si IF OBX-2 EQUALS "CF"
OBX-5Observation Value
variesvalueCodeableConceptCodeableConcept
Si IF OBX-2 EQUALS "CNE"
OBX-5Observation Value
variesvalueCodeableConceptCodeableConcept
Si IF OBX-2 EQUALS "CE"
OBX-5Observation Value
variesvalueCodeableConceptCodeableConcept
Si IF OBX-2 EQUALS "CWE"
OBX-5Observation Value
variesvalueCodeableConceptCodeableConcept
Si IF OBX-2 EQUALS "IS"
OBX-5Observation Value
variesvaluePeriodPeriod
Si IF OBX-2 EQUALS "DR"
OBX-5Observation Value
variesvalueDateTimedateTime
Si IF OBX-2 IN ("DTM", "DT")
OBX-5Observation Value
variesvalueRangeRange
Si IF OBX-2 EQUALS "NR"
OBX-5Observation Value
variesvalueStringstring
Si IF OBX-2 EQUALS "VR"Valor OBX-5.1+"-"+OBX-5.2
OBX-5Observation Value
variesvalueTimetime
Si IF OBX-2 EQUALS "TM"
OBX-5Observation Value
variesvalueStringstring
Si IF (OBX-2 EQUALS "SN" AND OBX-5.1 EQUALS "<>"Valor OBX-5.1+" "+OBX-5.2+" "+OBX-5.3+" "+OBX-5.4" "OBX-6"
OBX-5Observation Value
variesvalueRatio[1]Ratio
Si IF OBX-2 EQUALS "SN" AND OBX-5.1 NOT EQUALS "<>" AND OBX-5.3 IN (":", "/")
OBX-5Observation Value
variesvalueRange[1]Range
Si IF OBX-2 EQUALS "SN" AND OBX-5.1 NOT EQUALS "<>" AND OBX-5.3 EQUALS "-"
OBX-5Observation Value
variesvalueStringstring
Si IF OBX-2 EQUALS "SN" AND OBX-5.1 NOT EQUALS "<>" AND OBX-5.3 EQUALS "+"Valor OBX-5.1+" "+OBX-5.2+" "+OBX-5.3+" "+OBX-5.4" "OBX-6"
OBX-5Observation Value
variesvalueQuantity[1]Quantity
Si IF OBX-2 EQUALS "SN" AND OBX-5.1 NOT EQUALS "<>" AND OBX-5.3 NOT IN (":", "/", "-", "+")
OBX-5Observation Value
variesvalueStringstring
If line 19 through 23 all fail while OBX-2 = SNValor OBX-5.1+" "+OBX-5.2+" "+OBX-5.3+" "+OBX-5.4" "OBX-6"
OBX-5Observation Value
variesvalueSampedDataSampledData
Si IF OBX-2 EQUALS "NA"
OBX-5Observation Value
variesextension[1].urluri
Si IF OBX-2 EQUALS "ED" AND IF OBX-5.4 EQUALS "Base64"Valor "https://hl7.org/fhir/5.0/StructureDefinition/extension-Observation.valueAttachment"
OBX-5Observation Value
variesextension[1].valueAttachmentAttachment
Si IF OBX-2 EQUALS "ED" AND IF OBX-5.4 EQUALS "Base64"
OBX-5Observation Value
variesextension[1].urluri
Si IF OBX-2 EQUALS "RP"Valor "https://hl7.org/fhir/5.0/StructureDefinition/extension-Observation.valueAttachment"
OBX-5Observation Value
variesextension[1].valueAttachmentAttachment
Si IF OBX-2 EQUALS "RP"
OBX-6Units
CWEvalueQuantity[1]Quantity
Si IF OBX-2 IN ("NA", "NM")
OBX-6Units
CWEvalueQuantity[1]Quantity
Si IF OBX-2 EQUALS "SN" AND OBX-5.1 NOT EQUALS "<>" AND OBX-5.3 NOT IN (":", "/", "-", "+")
OBX-6Units
CWEvalueRange[1].lowSimpleQuantity
Si IF OBX-2 EQUALS "SN" AND OBX-5.1 NOT EQUALS "<>" AND OBX-5.3 EQUALS "-"
OBX-6Units
CWEvalueRange[1].highSimpleQuantity
Si IF OBX-2 EQUALS "SN" AND OBX-5.1 NOT EQUALS "<>" AND OBX-5.3 EQUALS "-"
OBX-6Units
CWEvalueRatio[1].numeratorQuantity
Si IF OBX-2 EQUALS "SN" AND OBX-5.1 NOT EQUALS "<>" AND OBX-5.3 IN (":", "/")
OBX-6Units
CWEvalueRatio[1].denominatorQuantity
Si IF OBX-2 EQUALS "SN" AND OBX-5.1 NOT EQUALS "<>" AND OBX-5.3 IN (":", "/")
OBX-7References Range
STreferenceRange.textstring
OBX-8Interpretation Codes
CWEinterpretationCodeableConcept
OBX-10Nature Of Abnormal Test
IDextension[2].uriuri
Valor "http://hl7.org/fhir/StructureDefinition/observation-nature-of-abnormal-test"
OBX-10Nature Of Abnormal Test
IDextension[2].valueCodeableConceptCodeableConcept
Mapa de códigos v2-0080
OBX-11Observation Result Status
IDstatuscode
Mapa de códigos observation-status
OBX-11Observation Result Status
IDstatus.extension[1].urluri
Si IF OBX-11 IS "X"Valor "http://hl7.org/fhir/StructureDefinition/alternate-codes"
OBX-11Observation Result Status
IDstatus.extension[1].valueCodeableConcept.coding.codeCodeableConcept
Si IF OBX-11 IS "X"Valor "X"
OBX-11Observation Result Status
IDstatus.extension[1].valueCodeableConcept.coding.systemstring
Si IF OBX-11 IS "X"Valor "http://terminology.hl7.org/CodeSystem/v2-0085"
OBX-11Observation Result Status
IDdataAbsentReason.coding[2].code
Si IF OBX-11 IS "N"Valor "not-asked"
OBX-11Observation Result Status
IDdataAbsentReason.coding[2].system
Si IF OBX-11 IS "N"Valor "http://terminology.hl7.org/CodeSystem/data-absent-reason"
OBX-14Date/Time Of The Observation
DTMeffectiveDateTimedateTime
OBX-15Producer's Id
CWEperformer[2](Organization)identifier
OBX-15Producer's Id
CWEperformer[2](PractitionerRole)
OBX-16Responsible Observer
XCNperformer[1](PractitionerRole.practitioner(Practitioner))Reference(PractitionerRole)
OBX-16Responsible Observer
XCNperformer[1](PractitionerRole.code.coding.code)CodeableConcept
Valor "responsibleObserver"
OBX-16Responsible Observer
XCNperformer[1](PractitionerRole.code.coding.system)CodeableConcept
Valor "http://terminology.hl7.org/CodeSystem/practitioner-role"
OBX-17Observation Method
CWEmethodCodeableConcept
OBX-18Equipment Instance Identifier
EIdevice(Device.identifier)Identifier
OBX-19Date/Time Of The Analysis
DTMextension[2].urluri
OBX-19Date/Time Of The Analysis
DTMextension[2].valueDateTimedateTime
OBX-20Observation Site
CWEbodySiteCodeableConcept
OBX-21Observation Instance Identifier
EIidentifierIdentifier
OBX-21Observation Instance Identifier
EIidentifier.type.coding.codecode
Valor "FILL"
OBX-23Performing Organization Name
XONperformer[2](Organization)Reference(Organization)
Si IF OBX-25 NOT VALUED
OBX-23Performing Organization Name
XONperformer[2](PractitionerRole[1].organization(Organization))Reference(Organization)
Si IF OBX-25 VALUED
OBX-24Performing Organization Address
XADperformer[2](Organization.address)Address
Si IF OBX-25 NOT VALUED
OBX-24Performing Organization Address
XADperformer[2](PractitionerRole[1].organization(Organization.address))Address
Si IF OBX-25 VALUED
OBX-25Performing Organization Medical Director
XCNperformer[2](PractitionerRole[1].practitioner)Reference(PractitionerRole)
OBX-25Performing Organization Medical Director
XCNperformer[2](PractitionerRole[1].code.coding.code)code
Valor "MDIR"
OBX-25Performing Organization Medical Director
XCNperformer[2](PractitionerRole[1].code.coding.system)
Valor "http://terminology.hl7.org/CodeSystem/v2-0912"
OBX-29
IDcategory[1].coding.codecode
OBX-29
IDcategory[1].coding.systemuri
OBX-30
IDextension[2].urluri
Valor "http://hl7.org/fhir/StructureDefinition/observation-structure-type"
OBX-30
IDextension[2].valueCodeableConcept.coding.codecode
OBX-30
IDextension[2].valueCodeableConcept.coding.systemuri
Valor "http://hl7.org/fhir/StructureDefinition/observation-structure-type"
OBX-33
EIPextension[1].uriReference
Si IF OBX-33 COUNT>1Valor "http://hl7.org/fhir/5.0/StructureDefinition/extension-Observation.specimen"
OBX-33
EIPextension[1].valueReference(Group.member.entity(Specimen.identifier[1])
Si IF OBX-33 COUNT>1
OBX-33
EIPextension[2].uri
Si IF OBX-33 COUNT>1Valor "http://hl7.org/fhir/5.0/StructureDefinition/extension-Observation.specimen"
OBX-33
EIPextension[2].valueReference(Group.member.entity(Specimen.identifier[2]))
Si IF OBX-33 COUNT>1
OBX-33
EIPspecimen(Specimen.identifier[1])Identifier
Si IF OBX-33 COUNT=1
OBX-33
EIPspecimen(Specimen.identifier[2])Identifier
Si IF OBX-33 COUNT=1