| 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: |
2025-12-18 18:12:52+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'
using FHIR version '4.0.1'
include FHIRHelpers version '4.1.000'
include SupplementalDataElementsFHIR4 version '2.0.000' called SDE
include SurveillanceDataElementsFHIR4 version '1.0.000' called SurveillanceDataElements
parameter "Measurement Period" default Interval[@2025-01-01T00:00:00.0, @2026-01-01T00:00:00.0)
context Patient
define "SDE Ethnicity":
SDE."SDE Ethnicity"
define "SDE Payer":
SDE."SDE Payer"
define "SDE Race":
SDE."SDE Race"
define "SDE Sex":
SDE."SDE Sex"
define "SDE Age":
SurveillanceDataElements."Age"
define "Stratifier Age Group":
SurveillanceDataElements."Age Group"
define "SDE State of Residence":
SurveillanceDataElements."State of Residence"
define "SDE Postal Code of Residence":
SurveillanceDataElements."Postal Code of Residence"
define "SDE Food Insecurity Risk Status":
SurveillanceDataElements."Food Insecurity Risk Status"
define "Initial Population":
exists (
[Encounter] E
where E.period ends during "Measurement Period"
)
|
|
| Content: application/elm+xml |
Encoded data (20964 characters)
|
|
| Content: application/elm+json |
Encoded data (37224 characters)
|
|