Starter FHIR Implementation Guide
1.0.1 - ci-build International flag

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

Library: CQL - Local Common (Experimental)

Official URL: http://jembi.org/fhir/Library/LocalCommonLibrary Version: 1.0.1
Active as of 2024-10-10 Computable Name: LocalCommonLibrary

Common functions for all CQL calculations.

Generated Narrative: Library LocalCommonLibrary

Related Artifacts

Depends OnLibrary FHIRHelpershttp://jembi.org/fhir/Library/FHIRHelpers|4.0.1
Depends OnLibrary FHIRCommonhttp://jembi.org/fhir/Library/FHIRCommon|4.0.1

Parameters

Patientout01Patient

Contents

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 )