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: First Example (Experimental)

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

Example library illustrating basic CQL constructs

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

Example library illustrating basic CQL constructs

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: Value set Marital Status
Resource: MaritalStatus
Canonical URL: http://hl7.org/fhir/ValueSet/marital-status
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: PatientExample
Use: Out
Min Cardinality: 0
Max Cardinality: 1
Type: Patient
Data Requirement Type: Patient
Profile(s): Patient
Must Support Elements: gender, active, birthDate, deceased, maritalStatus
Library Content
CQL Content
library FirstExample version '0.4.1'

using FHIR version '4.0.1'

include FHIRHelpers version '4.0.1'

valueset "Marital Status": 'http://hl7.org/fhir/ValueSet/marital-status'

context Patient

define PatientExample:
  Patient P
    where P.gender = 'male'
      and P.active is true
      and P.birthDate 30 years or more before Today()
      and not(P.deceased)
      and P.maritalStatus in "Marital Status"
ELM XML Content
Encoded data (16836 characters)
ELM JSON Content
Encoded data (31496 characters)
Generated using version 0.4.7 of the sample-content-ig Liquid templates