FHIRHelpers
type: Library
node role: treeRoot
id:
  v: FHIRHelpers
meta:
  profile:
    v: http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-library-cqfm
    l: computable-library-cqfm
language:
  v: en
text:
  status:
    v: extensions
  div:
    v: Id: FHIRHelpers Url: http://ecqi.healthit.gov/ecqms/Library/FHIRHelpers Version: 4.3.000 Identifier: value: FHIRHelpers Name: FHIRHelpers Title: FHIRHelpers Status: active Experimental: false Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2023-09-06T20:02:05+00:00 Publisher: ICF Description: This library defines functions to convert between FHIR data types and CQL system-defined types, as well as functions to support FHIRPath implementation. For more information, the FHIRHelpers wiki page: https://github.com/cqframework/clinical_quality_language/wiki/FHIRHelpers Content: text/cql library FHIRHelpers version '4.3.000' #xD; using FHIR version '4.0.1'#xD; #xD; /*#xD; @description: Converts the given [Period](https://hl7.org/fhir/datatypes.html#Period)#xD; value to a CQL DateTime Interval#xD; @comment: If the start value of the given period is unspecified, the starting#xD; boundary of the resulting interval will be open (meaning the start of the interval#xD; is unknown, as opposed to interpreted as the beginning of time).#xD; */#xD; define function ToInterval(period FHIR.Period):#xD; if period is null then#xD; null#xD; else#xD; if period."start" is null then#xD; Interval(period."start".value, period."end".value]#xD; else#xD; Interval[period."start".value, period."end".value]#xD; #xD; /*#xD; @description: Converts a UCUM definite duration unit to a CQL calendar duration#xD; unit using conversions specified in the [quantities](https://cql.hl7.org/02-authorsguide.html#quantities) #xD; topic of the CQL specification.#xD; @comment: Note that for durations above days (or weeks), the conversion is understood to be approximate#xD; */#xD; define function ToCalendarUnit(unit System.String):#xD; case unit#xD; when 'ms' then 'millisecond'#xD; when 's' then 'second'#xD; when 'min' then 'minute'#xD; when 'h' then 'hour'#xD; when 'd' then 'day'#xD; when 'wk' then 'week'#xD; when 'mo' then 'month'#xD; when 'a' then 'year'#xD; else unit#xD; en…
extension:
  url:
    v: http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-softwaresystem
    l: cqfm-softwaresystem
  value: Reference
    l: cqf-tooling
    reference:
      v: Device/cqf-tooling
url:
  v: http://ecqi.healthit.gov/ecqms/Library/FHIRHelpers
  l: FHIRHelpers
identifier:
  use:
    v: official
  system:
    v: https://madie.cms.gov/login
    l: login
  value:
    v: FHIRHelpers
version:
  v: 4.3.000
name:
  v: FHIRHelpers
title:
  v: FHIRHelpers
status:
  v: active
experimental:
  v: false
type:
  coding:
    system:
      v: http://terminology.hl7.org/CodeSystem/library-type
      l: library-type
    code:
      v: logic-library
date:
  v: 2023-09-06T20:02:05+00:00
publisher:
  v: ICF
description:
  v: This library defines functions to convert between FHIR data types and CQL system-defined types, as well as functions to support FHIRPath implementation. For more information, the FHIRHelpers wiki page: https://github.com/cqframework/clinical_quality_language/wiki/FHIRHelpers
related artifact:
  type:
    v: depends-on
  display:
    v: FHIR model information
  resource:
    v: http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1
    l: http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo
content:
  content type:
    v: text/cql
content:
  content type:
    v: application/elm+xml