This page is part of the Quality Measure STU2 for FHIR R4 Implementation Guide (v0.1.0: STU 1 Ballot 1) based on FHIR R3. The current version which supercedes this version is 3.0.0. For a full list of available versions, see the Directory of published versions
Library-library-terminology-FHIR
Formats: XML, JSON, Turtle
Id: | Library/library-terminology-FHIR |
---|
Type: | system: http://hl7.org/fhir/library-type code: logic-library |
---|
Identifier: | system: http://example.org/fhir/cqi/ecqm/Library/Identifier value: Terminology_FHIR |
---|
Version: | 4.0.0 |
---|
Title: | Terminology FHIR |
---|
Status: | active |
---|
Description: | This library is used as an example in the FHIR Quality Measure Implementation Guide |
---|
Related: | type: depends-on Resource: reference: Library/library-fhir-helpers |
---|
Data Requirements: | type: Encounter code filter: path: type valueset: https://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.7.307|20160929 |
---|
type: DeviceUseStatement code filter: path: code |
Content: | type: text/cql |
---|
library Terminology_FHIR
using FHIR version '3.0.0'
include FHIRHelpers version '3.0.0' called FHIRHelpers
// NOTE: Versioning is used in this example to illustrate completely how versioning is applied
// References to specific versions of code systems and value sets should be used only when necessary
codesystem "SNOMED-CT:2017-09": 'http://snomed.info/sct/731000124108' version 'http://snomed.info/sct/731000124108/version/201709'
valueset "Encounter Inpatient SNOMEDCT Value Set": 'https://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.7.307|20160929'
code "Venous foot pump, device (physical object)": '442023007' from "SNOMED-CT:2017-09"
code "Right foot": '7769000' from "SNOMED-CT:2017-09"
parameter "Measurement Period" Interval<DateTime>
define "Inpatient Encounter":
["Encounter": type in "Encounter Inpatient SNOMEDCT Value Set"] E
where E.status = 'finished'
define "Venous Foot Pumps Applied":
["DeviceUseStatement": code in "Venous foot pump, device (physical object)"] D
where D.status = 'completed'
and D.bodySite ~ ToConcept("Right foot")
|