Your User Friendly Name for MyIG Here
0.2.0 - CI Build
Your User Friendly Name for MyIG Here, published by HL7 International - [Some] Work Group. This guide is not an authorized publication; it is the continuous build for version 0.2.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/FHIR/sample-ig/ and changes regularly. See the Directory of published versions
Official URL: http://somewhere.org/fhir/uv/myig/Library/example | Version: 0.2.0 | |||
Standards status: Informative | Computable Name: Example |
Some example library
Generated Narrative: Library example
Depends On | Library FHIRHelpers | http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1 |
Depends On | Code System Observation Category Codes | Observation Category Codes |
Depends On | Value Set Encounter Inpatient | http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307 |
Depends On | Value Set Emergency Department Visit | http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292 |
Depends On | Value Set Telephone Evaluation | http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1082 |
Depends On | Value Set Telephone Management | http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1053 |
Depends On | Value Set COVID-19 Screening Result | TBD |
Measurement Period | in | 0 | 1 | Period |
Patient | out | 0 | 1 | Patient |
Inpatient, Emergency, or Telephone Evaluation or Management Encounter | out | 0 | * | Encounter |
Initial Population | out | 0 | 1 | boolean |
Denominator | out | 0 | 1 | boolean |
COVID-19 Communicable Disease Screening | out | 0 | * | Observation |
Numerator | out | 0 | 1 | boolean |
Type: Encounter (Encounter) | |
Filter | Value |
type | In ValueSet http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307 |
Type: Encounter (Encounter) | |
Filter | Value |
type | In ValueSet http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292 |
Type: Encounter (Encounter) | |
Filter | Value |
type | In ValueSet http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1082 |
Type: Encounter (Encounter) | |
Filter | Value |
type | In ValueSet http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1053 |
Type: Observation (Observation) | |
Filter | Value |
code | In ValueSet TBD |
text/cql
library example version '1.0.0'
using FHIR version '4.0.1'
include fhir.cqf.common.FHIRHelpers version '4.0.1'
codesystem "Observation Category Codes": 'http://terminology.hl7.org/CodeSystem/observation-category'
valueset "Encounter Inpatient": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307'
valueset "Emergency Department Visit": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292'
valueset "Telephone Evaluation": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1082'
valueset "Telephone Management": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1053'
valueset "COVID-19 Screening Result": 'TBD'
code "Laboratory Observation Category": 'laboratory' from "Observation Category Codes"
parameter "Measurement Period" Interval<DateTime>
context Patient
define "Inpatient, Emergency, or Telephone Evaluation or Management Encounter":
(
[Encounter: "Encounter Inpatient"]
union [Encounter: "Emergency Department Visit"]
union [Encounter: "Telephone Evaluation"]
union [Encounter: "Telephone Management"]
) Encounter
where Encounter.status = 'finished'
and Encounter.period during "Measurement Period"
define "Initial Population":
exists ("Inpatient, Emergency, or Telephone Evaluation or Management Encounter")
define "Denominator":
true
define "COVID-19 Communicable Disease Screening":
[Observation: "COVID-19 Screening Result"] Result
where exists (Result.category C where C ~ "Laboratory Observation Category")
and Result.status in { 'final', 'amended', 'corrected' }
and Result.effective during "Measurement Period"
define "Numerator":
exists ("COVID-19 Communicable Disease Screening")
Content not shown - (
application/elm+xml
, size = 25Kb )
Content not shown - (
application/elm+json
, size = 42Kb )