Mappings for the athena-observation-profile resource profile.
| AthenaObservation |
| Observation | FHIRR4_OBSERVATIONVIEW |
| id | MakeIdWithPrefix(%RESOURCEID%,%ID_PREFIX%) |
| meta | |
| versionId | MakeIdWithPrefix(%RESOURCEID%,%ID_PREFIX%) |
| lastUpdated | %WHENUPDATED% |
| profile (HL7 TravelHistory Profile) | IfEqual(%RESOURCETYPE%,"TravelHistory").Then("http://hl7.org/fhir/us/ecr/StructureDefinition/travel-history-observation") |
| profile (US Core Observation Lab Profile) | IfEqual(MapLabCoding(r.HG_GROUPID.getBigDecimal(rs),r.HDID.getBigDecimal(rs), "OBSHIERGRPSTOCATEGORY") != null ? MapLabCoding(r.HG_GROUPID.getBigDecimal(rs),r.HDID.getBigDecimal(rs), "OBSHIERGRPSTOCATEGORY").getCode() : null,"laboratory").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab") |
| profile (US Core Pediatric BMI For Age Profile) | IfEqual(%HDID%,"22346").Then("http://hl7.org/fhir/us/core/StructureDefinition/pediatric-bmi-for-age") |
| profile (US Core Pulse Oximetry Profile) | IfEqual(getParentHdid(%HDID%) != null ? getParentHdid(%HDID%) : %HDID%,"2173").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-pulse-oximetry") |
| profile (US Core Pediatric Head Occipital-frontal Circumference Percentile Profile) | IfEqual(%HDID%,"5346").Then("http://hl7.org/fhir/us/core/StructureDefinition/head-occipital-frontal-circumference-percentile") |
| profile (US Core Pediatric Weight For Height Profile) | IfEqual(%HDID%,"29139").Then("http://hl7.org/fhir/us/core/StructureDefinition/pediatric-weight-for-height") |
| profile (US Core Smokingstatus Profile) | IfEqual(hasLoincId(r.HDID.getBigDecimal(rs), "72166-2"),"true").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-smokingstatus") |
| profile (US Core Blood Pressure Profile) | IfEqual(getParentHdid(%HDID%),"85354-9").Then("http://hl7.org/fhir/StructureDefinition/bp") |
| profile | IfEqual(getParentHdid(%HDID%),"85354-9").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-blood-pressure") |
| profile (US Core Disability Status Profile) | IfEqual(%HDID%,"245720").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-simple-observation") |
| profile (US Core FOODWORRY Profile) | IfEqual(%HDID%,"568877").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-simple-observation") |
| profile (US Core FOODRANOUT Profile) | IfEqual(%HDID%,"568878").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-simple-observation") |
| profile (US Core Observation sdoh Assessment) | IfEqual(%HDID%,"715134").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-sdoh-assessment") |
| profile (US Core Observation Screening Assessment) | IfEqual(%HDID%,"568877").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-screening-assessment") |
| profile | IfEqual(%HDID%,"568878").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-screening-assessment") |
| profile | IfEqual(%HDID%,"245720").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-screening-assessment") |
| profile | IfEqual(%HDID%,"711258").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-screening-assessment") |
| profile | IfEqual(%HDID%,"711259").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-screening-assessment") |
| profile | IfEqual(%HDID%,"711260").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-screening-assessment") |
| profile | IfEqual(%HDID%,"711261").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-screening-assessment") |
| profile | IfEqual(%HDID%,"711262").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-screening-assessment") |
| profile | IfEqual(%HDID%,"711263").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-screening-assessment") |
| profile | IfEqual(%HDID%,"13577").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-screening-assessment") |
| profile | IfEqual(%HDID%,"10142").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-screening-assessment") |
| profile | IfEqual(%HDID%,"715134").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-screening-assessment") |
| profile (US Core BMI Profile) | IfEqual(%HDID%,"22346").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-bmi") |
| profile (US Core Body Height Profile) | IfEqual(%HDID%,"55").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-body-height") |
| profile (US Core Body Weight Profile) | IfEqual(hasLoincId(r.HDID.getBigDecimal(rs), "3141-9"),"true").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-body-weight") |
| profile (US Core Body Temperature Profile) | IfEqual(hasLoincId(r.HDID.getBigDecimal(rs), "8310-5"),"true").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-body-temperature") |
| profile (US Core Heart Rate Profile) | IfEqual(hasLoincId(r.HDID.getBigDecimal(rs), "8867-4"),"true").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-heart-rate") |
| profile (US Core Respiratory Rate Profile) | IfEqual(hasLoincId(r.HDID.getBigDecimal(rs), "9279-1"),"true").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-respiratory-rate") |
| profile (US Core Observation Clinical Result Profile) | IfEqual(hasLoincId(r.HDID.getBigDecimal(rs), "3024-7"),"true").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-clinical-result") |
| profile (US Core Observation Occupation Profile) | IfEqual(hasLoincId(r.HDID.getBigDecimal(rs), "11341-5"),"true").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-occupation") |
| profile (US Core Observation Pregnancy Intent Profile) | IfEqual(%HDID%,"21347").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-pregnancyintent") |
| profile (US Core Observation Pregnancy Status Profile) | IfEqual(%HDID%,"21347").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-pregnancystatus") |
| security | |
| security (SENSITIVECHART) | CheckSensitive(%SENSITIVECHART%,%RESOURCETYPE%) |
| security (CONFABBR) | |
| system | getSiteCodeSystem("ConfidentialDocument") |
| code | %CONFABBR% |
| tag | MakeChangeTagList(%CHANGE%) |
| extension | |
| extension (ExactCodeDesctiption) | |
| value[x] | IfEqual( %OBSTYPE%,"N").Then(Context::MakeObservationValue,%HDID%,%OBSVALUE%) |
| identifier | MakeIdentifier("U",getSiteSystem("ObservationId"),%RESOURCEID%) |
| status | MapCode(%STATE%,"OBSSTATUS",%RESOURCETYPE%) |
| category | |
| category (FHIRCATEGORY) | |
| coding | MakeObservationCategoryList(%HDID%,"FSVIEWTOCATEGORY") |
| category (PANELCATEGORY) | |
| coding | MakeCodingWithSystem(%LOP_CODE%,getMapLabOrderPanelSystem(%LOP_CODETYPE%,"OIDTOURL"), %LOP_NAME%, %ID_PREFIX%) |
| category (HG_GROUPID) | |
| coding | MakeCodingWithSystem(%HG_GROUPID%, getSiteCodeSystem("HIERGRPS"), %HG_GROUPNAME%, %ID_PREFIX%) |
| text | %HG_GROUPNAME%,%HDID% |
| code | |
| coding (TOCODE) | MakeObservationCodingList(%HDID%, %OBSHEAD_DESCRIPTION%) |
| coding (HDID) | MakeRecentCoding(%HDID%,getSiteCodeSystem("HDID"),%NAME%,%RESOURCETYPE%) |
| coding (C1_CODE) | MakeCodingList(%C1_CODE%, %C1_CODING_SYSTEM_NAME%,%C1_DESCRIPTION%, "OIDTOURL","") |
| coding (C2_CODE) | MakeCodingList(%C2_CODE%, %C2_CODING_SYSTEM_NAME%,%C2_DESCRIPTION%, "OIDTOURL","") |
| text | makeCodingText(%OBSHEAD_DESCRIPTION%,%RESOURCETYPE%) |
| subject | MakeReference("PERSON",%PID%,"Patient") |
| encounter | MakeReference("DOCUMENT",%SDID%,"Encounter") |
| effective[x] | IfNotContains(%ID_PREFIX%,"occupation").Then(asDateTimeType(%OBSDATE%,%RESOURCETYPE%,%ID_PREFIX%)) | IfContains(%ID_PREFIX%,"occupation").Then(MakePeriod(%OBSDATE%, null, %ID_PREFIX%)) |
| issued | makeIssued(%WHENUPDATED%,%RESOURCETYPE%) |
| performer (PractitionerPerformer) | MakeReference("USR",%CREATOR%,%USRID%,"Practitioner") |
| performer (OrganizationPerformer) | MakeLabReference(%SDID%, %C1_CODE%, %C2_CODE%,%RESOURCETYPE%) |
| value[x] | IfEqual( %OBSTYPE%,"N").Then(Context::MakeQuantity,%OBSVALUE%,%UNIT%,%HDID%) |
IfNotEqual(%OBSTYPE%,"N").Then(MakeObservation(%HDID%, %OBSVALUE%, %C1_CODE%, %C1_CODING_SYSTEM_NAME%,%C1_DESCRIPTION%, %DESCRIPTION%, %ID_PREFIX%)) | MakeValueString(%OBSVALUE%,%HDID%) |
| dataAbsentReason | MakeObservationConcept("unknown", "http://terminology.hl7.org/CodeSystem/data-absent-reason", "Unknown", %HDID%) |
| interpretation | MapConcept(%ABNORMAL%,"OBSABNORMAL") |
| note | makeAnnotation(%DESCRIPTION%) |
| specimen | MakeReference("LabResultSpecimen", %LABRESULTSPECIMENID%, "Specimen") |
| referenceRange | |
| text | %RANGE% |
| hasMember | MakeReferenceList(%HDID%,%OBSVALUE%,"Observation"); |
| derivedFrom | MakeReferenceForHVSDerivedFrom(%HDID%,%RESOURCEID%,"Observation") |
| component | |
| extension | |
| code | |
| coding (TOCODE) | MakeObservationComponentCodingList(%HDID%, %OBSHEAD_DESCRIPTION%, %HDID%,getSiteCodeSystem("HDID"),%NAME%) |
| value[x] | IfEqual( %OBSTYPE%,"N").Then(MakeComponentQuantity(%OBSVALUE%,%UNIT%, %HDID%,%SDID%,%PID%,%OBSDATE%)) |
| dataAbsentReason | MakeObservationComponentDataAbsentConcept(%OBSVALUE%,%UNIT%, %HDID%,%SDID%,%PID%,%OBSDATE%) |
| component (Observation.component.travelLocation) | |
| extension | |
| extension (ADDRESSEXTENSION) | |
| value[x] | makeExtensionTravelAdress(%RESOURCETYPE%,%C1_DESCRIPTION%) |
| code | |
| coding | IfEqual(%RESOURCETYPE%,"TravelHistory").Then(MapCoding(%RESOURCETYPE%,"LOCATION")) |
| value[x] | |
| coding | MakeCodingWithSystem(%RESOURCETYPE%,%C1_DESCRIPTION%) |
| component (Observation.component.occupationIndustry) | |
| code | |
| coding | MakeCodingWithSystem("86188-0","http://loinc.org", "History of Occupation Industry", %ID_PREFIX%, %C2_CODE%) |
| value[x] | |
| coding | IfEqual(%ID_PREFIX%,"occupation").Then(MakeCodingWithSystem(%C2_CODE%,%C2_CODING_SYSTEM_NAME%,%C2_DESCRIPTION%)) |
| component (Observation.component.travelPurpose) | |
| code | |
| coding | IfEqual(%RESOURCETYPE%,"TravelHistory").Then(MapCoding(%RESOURCETYPE%,"PURPOSE")) |
| value[x] | |
| coding | IfEqual(%RESOURCETYPE%,"TravelHistory").Then(MakeCodingWithSystem(%C2_CODE%,%C2_CODING_SYSTEM_NAME%,%C2_DESCRIPTION%)) |
| AthenaObservation |
| Observation | FHIRR4_OBSERVATIONVIEW |
| id | MakeIdWithPrefix(%RESOURCEID%,%ID_PREFIX%) |
| meta | |
| versionId | MakeIdWithPrefix(%RESOURCEID%,%ID_PREFIX%) |
| lastUpdated | %WHENUPDATED% |
| profile (HL7 TravelHistory Profile) | IfEqual(%RESOURCETYPE%,"TravelHistory").Then("http://hl7.org/fhir/us/ecr/StructureDefinition/travel-history-observation") |
| profile (US Core Observation Lab Profile) | IfEqual(MapLabCoding(r.HG_GROUPID.getBigDecimal(rs),r.HDID.getBigDecimal(rs), "OBSHIERGRPSTOCATEGORY") != null ? MapLabCoding(r.HG_GROUPID.getBigDecimal(rs),r.HDID.getBigDecimal(rs), "OBSHIERGRPSTOCATEGORY").getCode() : null,"laboratory").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab") |
| profile (US Core Pediatric BMI For Age Profile) | IfEqual(%HDID%,"22346").Then("http://hl7.org/fhir/us/core/StructureDefinition/pediatric-bmi-for-age") |
| profile (US Core Pulse Oximetry Profile) | IfEqual(getParentHdid(%HDID%) != null ? getParentHdid(%HDID%) : %HDID%,"2173").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-pulse-oximetry") |
| profile (US Core Pediatric Head Occipital-frontal Circumference Percentile Profile) | IfEqual(%HDID%,"5346").Then("http://hl7.org/fhir/us/core/StructureDefinition/head-occipital-frontal-circumference-percentile") |
| profile (US Core Pediatric Weight For Height Profile) | IfEqual(%HDID%,"29139").Then("http://hl7.org/fhir/us/core/StructureDefinition/pediatric-weight-for-height") |
| profile (US Core Smokingstatus Profile) | IfEqual(hasLoincId(r.HDID.getBigDecimal(rs), "72166-2"),"true").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-smokingstatus") |
| profile (US Core Blood Pressure Profile) | IfEqual(getParentHdid(%HDID%),"85354-9").Then("http://hl7.org/fhir/StructureDefinition/bp") |
| profile | IfEqual(getParentHdid(%HDID%),"85354-9").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-blood-pressure") |
| profile (US Core Disability Status Profile) | IfEqual(%HDID%,"245720").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-simple-observation") |
| profile (US Core FOODWORRY Profile) | IfEqual(%HDID%,"568877").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-simple-observation") |
| profile (US Core FOODRANOUT Profile) | IfEqual(%HDID%,"568878").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-simple-observation") |
| profile (US Core Observation sdoh Assessment) | IfEqual(%HDID%,"715134").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-sdoh-assessment") |
| profile (US Core Observation Screening Assessment) | IfEqual(%HDID%,"568877").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-screening-assessment") |
| profile | IfEqual(%HDID%,"568878").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-screening-assessment") |
| profile | IfEqual(%HDID%,"245720").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-screening-assessment") |
| profile | IfEqual(%HDID%,"711258").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-screening-assessment") |
| profile | IfEqual(%HDID%,"711259").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-screening-assessment") |
| profile | IfEqual(%HDID%,"711260").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-screening-assessment") |
| profile | IfEqual(%HDID%,"711261").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-screening-assessment") |
| profile | IfEqual(%HDID%,"711262").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-screening-assessment") |
| profile | IfEqual(%HDID%,"711263").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-screening-assessment") |
| profile | IfEqual(%HDID%,"13577").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-screening-assessment") |
| profile | IfEqual(%HDID%,"10142").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-screening-assessment") |
| profile | IfEqual(%HDID%,"715134").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-screening-assessment") |
| profile (US Core BMI Profile) | IfEqual(%HDID%,"22346").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-bmi") |
| profile (US Core Body Height Profile) | IfEqual(%HDID%,"55").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-body-height") |
| profile (US Core Body Weight Profile) | IfEqual(hasLoincId(r.HDID.getBigDecimal(rs), "3141-9"),"true").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-body-weight") |
| profile (US Core Body Temperature Profile) | IfEqual(hasLoincId(r.HDID.getBigDecimal(rs), "8310-5"),"true").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-body-temperature") |
| profile (US Core Heart Rate Profile) | IfEqual(hasLoincId(r.HDID.getBigDecimal(rs), "8867-4"),"true").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-heart-rate") |
| profile (US Core Respiratory Rate Profile) | IfEqual(hasLoincId(r.HDID.getBigDecimal(rs), "9279-1"),"true").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-respiratory-rate") |
| profile (US Core Observation Clinical Result Profile) | IfEqual(hasLoincId(r.HDID.getBigDecimal(rs), "3024-7"),"true").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-clinical-result") |
| profile (US Core Observation Occupation Profile) | IfEqual(hasLoincId(r.HDID.getBigDecimal(rs), "11341-5"),"true").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-occupation") |
| profile (US Core Observation Pregnancy Intent Profile) | IfEqual(%HDID%,"21347").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-pregnancyintent") |
| profile (US Core Observation Pregnancy Status Profile) | IfEqual(%HDID%,"21347").Then("http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-pregnancystatus") |
| security | |
| security (SENSITIVECHART) | CheckSensitive(%SENSITIVECHART%,%RESOURCETYPE%) |
| security (CONFABBR) | |
| system | getSiteCodeSystem("ConfidentialDocument") |
| code | %CONFABBR% |
| tag | MakeChangeTagList(%CHANGE%) |
| extension | |
| extension (ExactCodeDesctiption) | |
| value[x] | IfEqual( %OBSTYPE%,"N").Then(Context::MakeObservationValue,%HDID%,%OBSVALUE%) |
| identifier | MakeIdentifier("U",getSiteSystem("ObservationId"),%RESOURCEID%) |
| status | MapCode(%STATE%,"OBSSTATUS",%RESOURCETYPE%) |
| category | |
| category (FHIRCATEGORY) | |
| coding | MakeObservationCategoryList(%HDID%,"FSVIEWTOCATEGORY") |
| category (PANELCATEGORY) | |
| coding | MakeCodingWithSystem(%LOP_CODE%,getMapLabOrderPanelSystem(%LOP_CODETYPE%,"OIDTOURL"), %LOP_NAME%, %ID_PREFIX%) |
| category (HG_GROUPID) | |
| coding | MakeCodingWithSystem(%HG_GROUPID%, getSiteCodeSystem("HIERGRPS"), %HG_GROUPNAME%, %ID_PREFIX%) |
| text | %HG_GROUPNAME%,%HDID% |
| code | |
| coding (TOCODE) | MakeObservationCodingList(%HDID%, %OBSHEAD_DESCRIPTION%) |
| coding (HDID) | MakeRecentCoding(%HDID%,getSiteCodeSystem("HDID"),%NAME%,%RESOURCETYPE%) |
| coding (C1_CODE) | MakeCodingList(%C1_CODE%, %C1_CODING_SYSTEM_NAME%,%C1_DESCRIPTION%, "OIDTOURL","") |
| coding (C2_CODE) | MakeCodingList(%C2_CODE%, %C2_CODING_SYSTEM_NAME%,%C2_DESCRIPTION%, "OIDTOURL","") |
| text | makeCodingText(%OBSHEAD_DESCRIPTION%,%RESOURCETYPE%) |
| subject | MakeReference("PERSON",%PID%,"Patient") |
| encounter | MakeReference("DOCUMENT",%SDID%,"Encounter") |
| effective[x] | IfNotContains(%ID_PREFIX%,"occupation").Then(asDateTimeType(%OBSDATE%,%RESOURCETYPE%,%ID_PREFIX%)) | IfContains(%ID_PREFIX%,"occupation").Then(MakePeriod(%OBSDATE%, null, %ID_PREFIX%)) |
| issued | makeIssued(%WHENUPDATED%,%RESOURCETYPE%) |
| performer (PractitionerPerformer) | MakeReference("USR",%CREATOR%,%USRID%,"Practitioner") |
| performer (OrganizationPerformer) | MakeLabReference(%SDID%, %C1_CODE%, %C2_CODE%,%RESOURCETYPE%) |
| value[x] | IfEqual( %OBSTYPE%,"N").Then(Context::MakeQuantity,%OBSVALUE%,%UNIT%,%HDID%) |
IfNotEqual(%OBSTYPE%,"N").Then(MakeObservation(%HDID%, %OBSVALUE%, %C1_CODE%, %C1_CODING_SYSTEM_NAME%,%C1_DESCRIPTION%, %DESCRIPTION%, %ID_PREFIX%)) | MakeValueString(%OBSVALUE%,%HDID%) |
| dataAbsentReason | MakeObservationConcept("unknown", "http://terminology.hl7.org/CodeSystem/data-absent-reason", "Unknown", %HDID%) |
| interpretation | MapConcept(%ABNORMAL%,"OBSABNORMAL") |
| note | makeAnnotation(%DESCRIPTION%) |
| specimen | MakeReference("LabResultSpecimen", %LABRESULTSPECIMENID%, "Specimen") |
| referenceRange | |
| text | %RANGE% |
| hasMember | MakeReferenceList(%HDID%,%OBSVALUE%,"Observation") |
| derivedFrom | MakeReferenceForHVSDerivedFrom(%HDID%,%RESOURCEID%,"Observation") |
| component | |
| extension | |
| code | |
| coding (TOCODE) | MakeObservationComponentCodingList(%HDID%, %OBSHEAD_DESCRIPTION%, %HDID%,getSiteCodeSystem("HDID"),%NAME%) |
| value[x] | IfEqual( %OBSTYPE%,"N").Then(MakeComponentQuantity(%OBSVALUE%,%UNIT%, %HDID%,%SDID%,%PID%,%OBSDATE%)) |
| dataAbsentReason | MakeObservationComponentDataAbsentConcept(%OBSVALUE%,%UNIT%, %HDID%,%SDID%,%PID%,%OBSDATE%) |
| component (Observation.component.travelLocation) | |
| extension | |
| extension (ADDRESSEXTENSION) | |
| value[x] | makeExtensionTravelAdress(%RESOURCETYPE%,%C1_DESCRIPTION%) |
| code | |
| coding | IfEqual(%RESOURCETYPE%,"TravelHistory").Then(MapCoding(%RESOURCETYPE%,"LOCATION")) |
| value[x] | |
| coding | MakeCodingWithSystem(%RESOURCETYPE%,%C1_DESCRIPTION%) |
| component (Observation.component.occupationIndustry) | |
| code | |
| coding | MakeCodingWithSystem("86188-0","http://loinc.org", "History of Occupation Industry", %ID_PREFIX%, %C2_CODE%) |
| value[x] | |
| coding | IfEqual(%ID_PREFIX%,"occupation").Then(MakeCodingWithSystem(%C2_CODE%,%C2_CODING_SYSTEM_NAME%,%C2_DESCRIPTION%)) |
| component (Observation.component.travelPurpose) | |
| code | |
| coding | IfEqual(%RESOURCETYPE%,"TravelHistory").Then(MapCoding(%RESOURCETYPE%,"PURPOSE")) |
| value[x] | |
| coding | IfEqual(%RESOURCETYPE%,"TravelHistory").Then(MakeCodingWithSystem(%C2_CODE%,%C2_CODING_SYSTEM_NAME%,%C2_DESCRIPTION%)) |
| AthenaObservation |
| Observation | Entity. Role, or Act, Observation[classCode=OBS, moodCode=EVN] |
| meta | |
| id | n/a |
| extension | n/a |
| security | |
| security (SENSITIVECHART) | |
| security (CONFABBR) | |
| id | n/a |
| extension | n/a |
| system | ./codeSystem |
| version | ./codeSystemVersion |
| code | ./code |
| display | CV.displayName |
| userSelected | CD.codingRationale |
| text | Act.text? |
| contained | N/A |
| extension | |
| extension (ExactCodeDesctiption) | |
| id | n/a |
| extension | n/a |
| url | N/A |
| value[x] | N/A |
| modifierExtension | N/A |
| identifier | id |
| basedOn | .inboundRelationship[typeCode=COMP].source[moodCode=EVN] |
| partOf | .outboundRelationship[typeCode=FLFS].target |
| status | status Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of "revise" |
| category | .outboundRelationship[typeCode="COMP].target[classCode="LIST", moodCode="EVN"].code |
| category (FHIRCATEGORY) | .outboundRelationship[typeCode="COMP].target[classCode="LIST", moodCode="EVN"].code |
| id | n/a |
| extension | n/a |
| coding | union(., ./translation) |
| text | ./originalText[mediaType/code="text/plain"]/data |
| category (PANELCATEGORY) | .outboundRelationship[typeCode="COMP].target[classCode="LIST", moodCode="EVN"].code |
| id | n/a |
| extension | n/a |
| coding | union(., ./translation) |
| text | ./originalText[mediaType/code="text/plain"]/data |
| category (HG_GROUPID) | .outboundRelationship[typeCode="COMP].target[classCode="LIST", moodCode="EVN"].code |
| id | n/a |
| extension | n/a |
| coding | union(., ./translation) |
| text | ./originalText[mediaType/code="text/plain"]/data |
| code | code |
| id | n/a |
| extension | n/a |
| coding | union(., ./translation) |
| coding (TOCODE) | union(., ./translation) |
| coding (HDID) | union(., ./translation) |
| coding (C1_CODE) | union(., ./translation) |
| coding (C2_CODE) | union(., ./translation) |
| text | ./originalText[mediaType/code="text/plain"]/data |
| subject | participation[typeCode=RTGT] |
| focus | participation[typeCode=SBJ] |
| encounter | inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN] |
| effective[x] | effectiveTime |
| issued | participation[typeCode=AUT].time |
| performer | participation[typeCode=PRF] |
| performer (PractitionerPerformer) | participation[typeCode=PRF] |
| performer (OrganizationPerformer) | participation[typeCode=PRF] |
| value[x] | value |
| dataAbsentReason | value.nullFlavor |
| interpretation | interpretationCode |
| note | subjectOf.observationEvent[code="annotation"].value |
| bodySite | targetSiteCode |
| method | methodCode |
| specimen | participation[typeCode=SPC].specimen |
| device | participation[typeCode=DEV] |
| referenceRange | outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN] |
| id | n/a |
| extension | n/a |
| modifierExtension | N/A |
| low | value:IVL_PQ.low |
| high | value:IVL_PQ.high |
| type | interpretationCode |
| appliesTo | interpretationCode |
| age | outboundRelationship[typeCode=PRCN].targetObservationCriterion[code="age"].value |
| text | value:ST |
| hasMember | outBoundRelationship |
| derivedFrom | .targetObservation |
| component | outBoundRelationship[typeCode=COMP] |
| id | n/a |
| extension | n/a |
| modifierExtension | N/A |
| code | code |
| id | n/a |
| extension | n/a |
| coding (TOCODE) | union(., ./translation) |
| text | ./originalText[mediaType/code="text/plain"]/data |
| value[x] | value |
| dataAbsentReason | value.nullFlavor |
| interpretation | interpretationCode |
| referenceRange | outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN] |
| component (Observation.component.travelLocation) | outBoundRelationship[typeCode=COMP] |
| id | n/a |
| extension | n/a |
| extension (ADDRESSEXTENSION) | |
| id | n/a |
| extension | n/a |
| url | N/A |
| value[x] | N/A |
| modifierExtension | N/A |
| code | code |
| id | n/a |
| extension | n/a |
| coding | union(., ./translation) |
| text | ./originalText[mediaType/code="text/plain"]/data |
| value[x] | value |
| id | n/a |
| extension | n/a |
| coding | union(., ./translation) |
| text | ./originalText[mediaType/code="text/plain"]/data |
| dataAbsentReason | value.nullFlavor |
| interpretation | interpretationCode |
| referenceRange | outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN] |
| component (Observation.component.occupationIndustry) | outBoundRelationship[typeCode=COMP] |
| id | n/a |
| extension | n/a |
| modifierExtension | N/A |
| code | code |
| id | n/a |
| extension | n/a |
| coding | union(., ./translation) |
| text | ./originalText[mediaType/code="text/plain"]/data |
| value[x] | value |
| id | n/a |
| extension | n/a |
| coding | union(., ./translation) |
| text | ./originalText[mediaType/code="text/plain"]/data |
| dataAbsentReason | value.nullFlavor |
| interpretation | interpretationCode |
| referenceRange | outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN] |
| component (Observation.component.travelPurpose) | outBoundRelationship[typeCode=COMP] |
| id | n/a |
| extension | n/a |
| modifierExtension | N/A |
| code | code |
| id | n/a |
| extension | n/a |
| coding | union(., ./translation) |
| text | ./originalText[mediaType/code="text/plain"]/data |
| value[x] | value |
| id | n/a |
| extension | n/a |
| coding | union(., ./translation) |
| text | ./originalText[mediaType/code="text/plain"]/data |
| dataAbsentReason | value.nullFlavor |
| interpretation | interpretationCode |
| referenceRange | outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN] |