Your User Friendly Name for MyContentIG Here
0.4.7 - CI Build International flag

Your User Friendly Name for MyContentIG Here, published by HL7 International - [Some] Work Group. This guide is not an authorized publication; it is the continuous build for version 0.4.7 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/cqframework/sample-content-ig/ and changes regularly. See the Directory of published versions

Library: Retrieve Example (Experimental)

Official URL: http://somewhere.org/fhir/uv/mycontentig/Library/RetrieveExample Version: 0.4.7
Draft as of 2024-12-09 Computable Name: RetrieveExample

Example library illustrating CQL retrieve with terminology

Knowledge Artifact Metadata
Name (machine-readable) RetrieveExample
Title (human-readable) Retrieve Example
Status Draft
Experimental true
Description

Example library illustrating CQL retrieve with terminology

Library Steward HL7 International - [Some] Work Group
Steward Contact Details http://hl7.org/Special/committees/[something]
Dependency Description: FHIR model information
Resource: http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1
Canonical URL: http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1
Dependency Description: Library FHIRHelpers
Resource: http://hl7.org/fhir/Library/FHIRHelpers|4.0.1
Canonical URL: http://hl7.org/fhir/Library/FHIRHelpers|4.0.1
Dependency Description: Code system LOINC
Resource: Logical Observation Identifiers, Names and Codes (LOINC)
Canonical URL: http://loinc.org
Dependency Description: Value set Lung Cancer
Resource: Lung Cancer
Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1116.89
Dependency Description: Value set Condition Clinical Status
Resource: http://utah.edu/fhir/lcs-cds/ValueSet/conditionclinical
Canonical URL: http://utah.edu/fhir/lcs-cds/ValueSet/conditionclinical
Library Metadata
Version Number 0.4.7
Library Type Logic Library
Library Subject Patient
Parameter Name: Patient
Use: Out
Min Cardinality: 0
Max Cardinality: 1
Type: Patient
Parameter Name: Smoking status observation
Use: Out
Min Cardinality: 0
Max Cardinality: *
Type: Observation
Parameter Name: Lung cancer diagnosis
Use: Out
Min Cardinality: 0
Max Cardinality: *
Type: Condition
Data Requirement Type: Patient
Profile(s): Patient
Data Requirement Type: Observation
Profile(s): Observation
Must Support Elements: code, status
Code Filter(s):
Path: code
Code(s): LOINC 72166-2: Tobacco smoking status
Data Requirement Type: Condition
Profile(s): Condition
Must Support Elements: code, clinicalStatus
Code Filter(s):
Path: code
ValueSet: Lung Cancer
Library Content
CQL Content
library RetrieveExample version '0.4.1'

using FHIR version '4.0.1'

include FHIRHelpers version '4.0.1'

codesystem "LOINC": 'http://loinc.org'

valueset "Lung Cancer":  'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1116.89'
valueset "Condition Clinical Status": 'http://utah.edu/fhir/lcs-cds/ValueSet/conditionclinical'

code "Tobacco Smoking Status": '72166-2' from "LOINC"

context Patient

define "Smoking status observation":
  [Observation: "Tobacco Smoking Status"] O
    where O.status in { 'final', 'amended' }

define "Lung cancer diagnosis":
  [Condition: "Lung Cancer"] C
    where C.clinicalStatus in "Condition Clinical Status"
ELM XML Content
Encoded data (14460 characters)
ELM JSON Content
Encoded data (25228 characters)
Generated using version 0.4.7 of the sample-content-ig Liquid templates