Your User Friendly Name for MyIG Here
0.2.0 - CI Build International flag

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

Library: Example CQL Library (Experimental)

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

Related Artifacts

Depends OnLibrary FHIRHelpershttp://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1
Depends OnCode System Observation Category CodesObservation Category Codes
Depends OnValue Set Encounter Inpatienthttp://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307
Depends OnValue Set Emergency Department Visithttp://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292
Depends OnValue Set Telephone Evaluationhttp://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1082
Depends OnValue Set Telephone Managementhttp://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1053
Depends OnValue Set COVID-19 Screening ResultTBD

Parameters

Measurement Periodin01Period
Patientout01Patient
Inpatient, Emergency, or Telephone Evaluation or Management Encounterout0*Encounter
Initial Populationout01boolean
Denominatorout01boolean
COVID-19 Communicable Disease Screeningout0*Observation
Numeratorout01boolean

Data Requirements

Type: Encounter (Encounter)
FilterValue
typeIn ValueSet http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307
Type: Encounter (Encounter)
FilterValue
typeIn ValueSet http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292
Type: Encounter (Encounter)
FilterValue
typeIn ValueSet http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1082
Type: Encounter (Encounter)
FilterValue
typeIn ValueSet http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1053
Type: Observation (Observation)
FilterValue
codeIn ValueSet TBD

Contents

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 )