Clinical Quality Framework Common FHIR Assets
4.0.1 - release

This page is part of the Clinical Quality Framework Common FHIR Assets (v4.0.1: Release) based on FHIR R4. This is the current published version. For a full list of available versions, see the Directory of published versions

Library: FHIR CommonTests

Id: FHIRCommonTests
Url: http://fhir.org/guides/cqf/common/Library/FHIRCommonTests
Version: 4.0.1
Name: FHIRCommonTests
Title: FHIR CommonTests
Status: active
Experimental: true
Type:

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

code: logic-library

Date: 2020-11-29T15:54:22-07:00
Publisher: Alphora
Description: This library defines test cases for the FHIRCommon library.
Knowledge Capability: shareable computable publishable executable
Knowledge Representation Level: structured
Jurisdiction: 001
Copyright: © Alphora 2019+
Approval Date: 2021-03-12
Last Review Date: 2021-03-12
Related Artifacts:

Dependencies

  • http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1
  • http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1
  • http://fhir.org/guides/cqf/common/Library/FHIRCommon|4.0.1
Parameters:
NameTypeMinMaxIn/Out
PatientPatient01out
Data Requirements:
TypeProfileMSCode Filter
Patient http://hl7.org/fhir/StructureDefinition/Patient
Content: text/cql
library FHIRCommonTests

using FHIR version '4.0.1'

include FHIRHelpers version '4.0.1'
include FHIRCommon version '4.0.1'

context Patient

/*
define function ToInterval(choice Choice<FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instant, FHIR.string, FHIR.Age, FHIR.Range>):
define function ToAbatementInterval(condition Condition):
define function ToPrevalenceInterval(condition Condition):
define function Extensions(domainResource DomainResource, url String):
define function Extension(domainResource DomainResource, url String):
define function Extensions(element Element, url String):
define function Extension(element Element, url String):
define function ModifierExtensions(domainResource DomainResource, url String):
define function ModifierExtension(domainResource DomainResource, url String):
define function ModifierExtensions(element BackboneElement, url String):
define function ModifierExtension(element BackboneElement, url String):
define function BaseExtensions(domainResource DomainResource, id String):
define function BaseExtension(domainResource DomainResource, id String):
define function BaseExtensions(element Element, id String):
define function BaseExtension(element Element, id String):
define function BaseModifierExtensions(domainResource DomainResource, id String):
define function BaseModifierExtension(domainResource DomainResource, id String):
define function BaseModifierExtensions(element BackboneElement, id String):
define function BaseModifierExtension(element BackboneElement, id String):
define function USExtensions(domainResource DomainResource, id String):
define function USExtension(domainResource DomainResource, id String):
define function USExtensions(element Element, id String):
define function USExtension(element Element, id String):
define function USModifierExtensions(domainResource DomainResource, id String):
define function USModifierExtension(domainResource DomainResource, id String):
define function USModifierExtensions(element BackboneElement, id String):
define function USModifierExtension(element BackboneElement, id String):
define function QIExtensions(domainResource DomainResource, id String):
define function QIExtension(domainResource DomainResource, id String):
define function QIExtensions(element Element, id String):
define function QIExtension(element Element, id String):
define function QIModifierExtensions(domainResource DomainResource, id String):
define function QIModifierExtension(domainResource DomainResource, id String):
define function QIModifierExtensions(element BackboneElement, id String):
define function QIModifierExtension(element BackboneElement, id String):
*/
Content: application/elm+xml
Encoded data (2084 characters)
Content: application/elm+json
Encoded data (2836 characters)