Starter FHIR Implementation Guide
1.0.1 - draft
Starter FHIR Implementation Guide, published by Jembi Health Systems. This guide is not an authorized publication; it is the continuous build for version 1.0.1 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/jembi/Starter-FHIR-IG/ and changes regularly. See the Directory of published versions
Official URL: http://jembi.org/fhir/Library/LocalCommonLibrary | Version: 1.0.1 | |||
Draft as of 2024-11-17 | Computable Name: LocalCommonLibrary |
Common functions for all CQL calculations.
Generated Narrative: Library LocalCommonLibrary
Depends On | Library FHIRHelpers | http://jembi.org/fhir/Library/FHIRHelpers|4.0.1 |
Depends On | Library FHIRCommon | http://jembi.org/fhir/Library/FHIRCommon|4.0.1 |
Patient | out | 0 | 1 | Patient |
text/cql
library LocalCommon version '0.1.0'
using FHIR version '4.0.1'
include FHIRHelpers version '4.0.1'
include FHIRCommon version '4.0.1'
context Patient
define function MostRecent(observations List<Observation>):
Last(observations O
sort by effective.value
)
define function MostRecent(encounters List<Encounter>):
Last(encounters O
sort by period.start
)
define function ObservationDate(observation FHIR.Observation):
observation O
return O.effective.value
Content not shown - (
application/elm+xml
, size = 10Kb )
Content not shown - (
application/elm+json
, size = 17Kb )