Id: SurveillanceDataElementsFHIR4 Version: 0.1.0 Url: SurveillanceDataElementsFHIR4 Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2021-01-28 23:14:24+0000 Publisher: Clinical Quality Framework Description: Example Surveillance Data Elements for Chronic disease surveillance using quality measure and public health reporting standards Jurisdiction: 001 Related Artifacts: Dependencies http://fhir.org/guides/cqf/aphl/chronic-ds/Library/FHIRHelpers|4.1.000 http://fhir.org/guides/cqf/aphl/chronic-ds/Library/MATGlobalCommonFunctionsFHIR4|6.0.000 http://fhir.org/guides/cqf/aphl/chronic-ds/Library/AdultOutpatientEncountersFHIR4|2.0.000 eRSD Jurisdictions Example http://ohie.org/CodeSystem/iso-8601-derived-periods Parameters: Name Type Min Max In/Out Measurement Period Period 0 1 In Patient Patient 0 1 Out Age integer 0 1 Out Age Group Coding 0 1 Out Most recent physical home address Address 0 1 Out State of Residence string 0 1 Out Postal Code of Residence string 0 1 Out Food Insecurity Risk Status CodeableConcept 0 1 Out Data Requirements: Type Profile MS Code Filter Patient http://hl7.org/fhir/StructureDefinition/Patient ;; Observation http://hl7.org/fhir/StructureDefinition/Observation ; code filter: path: code system: http://loinc.org code: 88124-3 display: Food insecurity risk [HVS] Content: text/cql /*#xD; This library provides additional data elements to be collected as part of surveillance#xD; reporting events#xD; */#xD; library SurveillanceDataElementsFHIR4 version '1.0.000'#xD; #xD; using FHIR version '4.0.1'#xD; #xD; include FHIRHelpers version '4.1.000'#xD; #xD; include MATGlobalCommonFunctionsFHIR4 version '6.0.000' called Common#xD; include AdultOutpatientEncountersFHIR4 version '2.0.000'called AdultOutpatientEncounters#xD; #xD; codesystem "Jurisdictions": 'http://hl7.org/fhir/us/ecr/CodeSystem/ersd-jurisdictions-example'#xD; codesystem "ISO-8601-Derived Periods": 'http://ohie.org/CodeSystem/iso-8601-derived-periods' // { 'P0Y--P1Y', 'P1Y--P5Y', ... }#xD; #xD; code "Food insecurity risk [HVS]": '88124-3' from Common.LOINC display 'Food insecurity risk [HVS]'#xD; #xD; // Age Groups#xD; code "P0Y--P0Y": 'P0Y--P0Y' from "ISO-8601-Derived Periods" display '< 1 year'#xD; code "P1Y--P4Y": 'P1Y--P4Y' from "ISO-8601-Derived Periods" display '1-4 years'#xD; code "P5Y--P9Y": 'P5Y--P9Y' from "ISO-8601-Derived Periods" display '5-9 year'#xD; code "P10Y--P14Y": 'P10Y--P14Y' from "ISO-8601-Derived Periods" display '10-14 year'#xD; code "P15Y--P19Y": 'P15Y--P19Y' from "ISO-8601-Derived Periods" display '15-19 year'#xD; code "P20Y--P24Y": 'P20Y--P24Y' from "ISO-8601-Derived Periods" display '20-24 year'#xD; code "P25Y--P29Y": 'P25Y--P29Y' from "ISO-8601-Derived Periods" display '25-29 year'#xD; code "P30Y--P34Y": 'P30Y--P34Y' from "ISO-8601-Derived Periods" display '30-34 year'#xD; code "P35Y--P39Y": 'P35Y--P39Y' from "ISO-8601-Derived Periods" display '35-39 year'#xD; code "P40Y--P49Y": 'P40Y--P49Y' from "ISO-8601-Derived Periods" display '40-49 year'#xD; code "P50Y--P9999Y": 'P50Y--P9999Y' from "ISO-8601-Derived Periods" display '50+ years'#xD; #xD; parameter "Measurement Period" Interval<DateTime>#xD; default Interval[@2025-01-01T00:00:00.000, @2026-01-01T00:00:00.000)#xD; #xD; context Patient#xD; #xD; // Age#xD; define "Age":#xD; AgeInYearsAt(end of "Measurement Period")#xD; #xD; // Age Group#xD; define "Age Group":#xD; case#xD; when AgeInYearsAt(start of "Measurement Period") in Interval[0, 1) then "P0Y--P0Y"#xD; when AgeInYearsAt(start of "Measurement Period") in Interval[1, 5) then "P1Y--P4Y"#xD; when AgeInYearsAt(start of "Measurement Period") in Interval[5, 10) then "P5Y--P9Y"#xD; when AgeInYearsAt(start of "Measurement Period") in Interval[10, 15) then "P10Y--P14Y"#xD; when AgeInYearsAt(start of "Measurement Period") in Interval[15, 20) then "P15Y--P19Y"#xD; when AgeInYearsAt(start of "Measurement Period") in Interval[20, 25) then "P20Y--P24Y"#xD; when AgeInYearsAt(start of "Measurement Period") in Interval[25, 30) then "P25Y--P29Y"#xD; when AgeInYearsAt(start of "Measurement Period") in Interval[30, 35) then "P30Y--P34Y"#xD; when AgeInYearsAt(start of "Measurement Period") in Interval[35, 40) then "P35Y--P39Y"#xD; when AgeInYearsAt(start of "Measurement Period") in Interval[40, 50) then "P40Y--P49Y"#xD; when AgeInYearsAt(start of "Measurement Period") in Interval[50, null] then "P50Y--P9999Y"#xD; else null#xD; end#xD; #xD; // Jurisdiction of residence (jurisdiction of the patient)#xD; define "Most recent physical home address":#xD; First(#xD; Patient.address A#xD; where A.use = 'home'#xD; and A.type = 'physical'#xD; sort by end of period desc#xD; )#xD; #xD; define "State of Residence":#xD; "Most recent physical home address".state#xD; #xD; define "Postal Code of Residence":#xD; "Most recent physical home address".postalCode#xD; #xD; // Jurisdiction of care (jurisdiction of the most recent encounter)#xD; // TODO:#xD; //define "Most recent address of care":#xD; #xD; // NOTE: Included in eICR#xD; // Occupational Data for Health - Past or Present Job#xD; // http://hl7.org/fhir/us/odh/StructureDefinition-odh-PastOrPresentJob.html#xD; // Observation: LOINC#11341-5, valueCodeableConcept in https://phinvads.cdc.gov/vads/ViewValueSet.action?oid=2.16.840.1.114222.4.11.7186#xD; #xD; // Social Determinants of Health (SDOH)#xD; // http://build.fhir.org/ig/HL7/fhir-sdoh-clinicalcare/StructureDefinition-SDOHCC-ObservationScreeningResponse.html#xD; // Food insecurity risk: http://build.fhir.org/ig/HL7/fhir-sdoh-clinicalcare/Observation-SDOHCC-ObservationResponseHungerVitalSignQuestion3Example.html#xD; // Observation: LOINC#88124-3, valueCodeableConcept in https://loinc.org/LL2510-7/ (At risk, No risk)#xD; define "Food Insecurity Risk Status":#xD; First(#xD; [Observation: "Food insecurity risk [HVS]"] O#xD; sort by issued desc#xD; ).value as CodeableConcept#xD; Content: application/elm+xml Encoded data (74604 characters) Content: application/elm+json Encoded data (139412 characters)
Example Surveillance Data Elements for Chronic disease surveillance using quality measure and public health reporting standards