Your User Friendly Name for MyContentIG Here
0.4.6 - 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.6 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.6
Draft as of 2024-09-19 Computable Name: FirstExample

Example library illustrating basic CQL constructs

Title: First Example
Id: FirstExample
Version: 0.4.6
Url: First Example
Status: draft
Experimental: true
Type:

system: http://terminology.hl7.org/CodeSystem/library-type

code: logic-library

Subject:

system: http://hl7.org/fhir/resource-types

code: Patient

Date: 2024-09-19 19:22:59+0000
Publisher: HL7 International - [Some] Work Group
Description:

Example library illustrating basic CQL constructs

Jurisdiction: 001
Related Artifacts:

Dependencies

Parameters:
NameTypeMinMaxIn/Out
PatientPatient01Out
PatientExamplePatient01Out
Data Requirements:
TypeProfileMSCode Filter
Patient http://hl7.org/fhir/StructureDefinition/Patient ;;;;;
Content: text/cql
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"
Content: application/elm+xml
Encoded data (16836 characters)
Content: application/elm+json
Encoded data (31496 characters)