Title: Seen Patients Id: SeenPatients Version: 0.1.0 Url: Seen Patients Experimental: true Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2026-05-11 22:31:14+0000 Publisher: Clinical Quality Framework 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/SupplementalDataElementsFHIR4|2.0.000 http://fhir.org/guides/cqf/aphl/chronic-ds/Library/SurveillanceDataElementsFHIR4|1.0.000 Parameters: Name Type Min Max In/Out Measurement Period Period 0 1 In Patient Patient 0 1 Out SDE Ethnicity Coding 0 * Out SDE Payer Resource 0 * Out SDE Race Coding 0 * Out SDE Sex Coding 0 1 Out SDE Age integer 0 1 Out Stratifier Age Group Coding 0 1 Out SDE State of Residence string 0 1 Out SDE Postal Code of Residence string 0 1 Out SDE Food Insecurity Risk Status CodeableConcept 0 1 Out Initial Population boolean 0 1 Out Data Requirements: Type Profile MS Code Filter Patient http://hl7.org/fhir/StructureDefinition/Patient Encounter http://hl7.org/fhir/StructureDefinition/Encounter ; Content: text/cql library SeenPatients version '0.1.0'#xD; #xD; using FHIR version '4.0.1'#xD; #xD; include FHIRHelpers version '4.1.000'#xD; include SupplementalDataElementsFHIR4 version '2.0.000' called SDE#xD; include SurveillanceDataElementsFHIR4 version '1.0.000' called SurveillanceDataElements#xD; #xD; parameter "Measurement Period" default Interval[@2025-01-01T00:00:00.0, @2026-01-01T00:00:00.0)#xD; #xD; context Patient#xD; #xD; define "SDE Ethnicity":#xD; SDE."SDE Ethnicity"#xD; #xD; define "SDE Payer":#xD; SDE."SDE Payer"#xD; #xD; define "SDE Race":#xD; SDE."SDE Race"#xD; #xD; define "SDE Sex":#xD; SDE."SDE Sex"#xD; #xD; define "SDE Age":#xD; SurveillanceDataElements."Age"#xD; #xD; define "Stratifier Age Group":#xD; SurveillanceDataElements."Age Group"#xD; #xD; define "SDE State of Residence":#xD; SurveillanceDataElements."State of Residence"#xD; #xD; define "SDE Postal Code of Residence":#xD; SurveillanceDataElements."Postal Code of Residence"#xD; #xD; define "SDE Food Insecurity Risk Status":#xD; SurveillanceDataElements."Food Insecurity Risk Status"#xD; #xD; define "Initial Population":#xD; exists (#xD; [Encounter] E#xD; where E.period ends during "Measurement Period"#xD; )#xD; Content: application/elm+xml Encoded data (20964 characters) Content: application/elm+json Encoded data (37224 characters)