MATGlobalCommonFunctions
type: Library
node role: treeRoot
id:
  v: MATGlobalCommonFunctions
meta:
  profile:
    v: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary
    l: crmi-publishablelibrary
  profile:
    v: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablelibrary
    l: crmi-shareablelibrary
  profile:
    v: http://hl7.org/fhir/uv/cql/StructureDefinition/elm-json-library
    l: elm-json-library
  profile:
    v: http://hl7.org/fhir/uv/cql/StructureDefinition/elm-xml-library
    l: elm-xml-library
  profile:
    v: http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library
    l: cql-library
language:
  v: en
text:
  status:
    v: extensions
  div:
    v: Metadata Title MAT Global Common Functions FHIR Library Version 5.0.000 Identifier MATGlobalCommonFunctions Identifier urn:oid:2.16.840.1.113883.4.642.40.61.28.25 Approval Date 2019-08-03 Last Review Date 2019-08-03 Experimental true Jurisdiction Global (Whole world) Steward (Publisher) HL7 International / Clinical Quality Information Description This library is used as an example in the FHIR Quality Measure Implementation Guide Type Logic Library Parameter Name: Measurement Period Use: In Min Cardinality: 0 Max Cardinality: 1 Type: Period Parameter Name: Patient Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: Patient Parameter Name: Inpatient Encounter Use: Out Min Cardinality: 0 Max Cardinality: * Type: Encounter Data Requirement Type: Patient Profile(s): Patient Data Requirement Type: Encounter Profile(s): Encounter Must Support Elements: type, status, period, location, condition, condition.reference, rank Code Filter(s): Path: type ValueSet: Encounter Inpatient Data Requirement Type: Encounter Profile(s): Encounter Must Support Elements: type, period, location, condition, condition.reference, rank Code Filter(s): Path: type ValueSet: Observation Services Data Requirement Type: Encounter Profile(s): Encounter Must Support Elements: type, status, period, location, condition, condition.reference, rank Code Filter(s): Path: type ValueSet: Emergency Department Visit Data Requirement Type: Condition Profile(s): Condition Must Support Elements: id Data Requirement Type: Location Profile(s): Location Must Support Elements: id Data Requirement Type: Provenance Profile(s): Provenance Must Support Elements: target Code Filter(s): Path: target Data Requirement Type: Medication Profile(s): Medication Must Support Elements: id Library Content CQL Content /*#xD; This example is a work in progress and should not be considered a final specification#xD; or recommendation for guidance. This example will help guide and direct the process#xD; of finding conventions and usage pa…
contained: Parameters
  id:
    v: options
  parameter:
    name:
      v: translatorVersion
    value: String
      v: 3.25.0
  parameter:
    name:
      v: option
    value: String
      v: EnableAnnotations
  parameter:
    name:
      v: option
    value: String
      v: EnableLocators
  parameter:
    name:
      v: format
    value: String
      v: JSON
  parameter:
    name:
      v: format
    value: String
      v: XML
  parameter:
    name:
      v: analyzeDataRequirements
    value: Boolean
      v: false
  parameter:
    name:
      v: collapseDataRequirements
    value: Boolean
      v: true
  parameter:
    name:
      v: compatibilityLevel
    value: String
      v: 1.5
  parameter:
    name:
      v: enableCqlOnly
    value: Boolean
      v: false
  parameter:
    name:
      v: errorLevel
    value: String
      v: Info
  parameter:
    name:
      v: signatureLevel
    value: String
      v: None
  parameter:
    name:
      v: validateUnits
    value: Boolean
      v: true
  parameter:
    name:
      v: verifyOnly
    value: Boolean
      v: false
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-cqlOptions
    l: cqf-cqlOptions
  value: Reference
    l: options
    reference:
      v: #options
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-wg
    l: structuredefinition-wg
  value: Code
    v: cqi
url:
  v: http://hl7.org/fhir/uv/cqm/Library/MATGlobalCommonFunctions
  l: MATGlobalCommonFunctions
identifier:
  use:
    v: official
  system:
    v: http://example.org/fhir/cqi/ecqm/Library/Identifier
    l: Identifier
  value:
    v: MATGlobalCommonFunctions
identifier:
  system:
    v: urn:ietf:rfc:3986
    l: 3986
  value:
    v: urn:oid:2.16.840.1.113883.4.642.40.61.28.25
version:
  v: 5.0.000
name:
  v: MATGlobalCommonFunctions
title:
  v: MAT Global Common Functions FHIR Library
status:
  v: active
experimental:
  v: true
type:
  coding:
    system:
      v: http://terminology.hl7.org/CodeSystem/library-type
      l: library-type
    code:
      v: logic-library
date:
  v: 2019-09-03
publisher:
  v: HL7 International / Clinical Quality Information
contact:
  telecom:
    system:
      v: url
    value:
      v: http://www.hl7.org/Special/committees/cqi
description:
  v: This library is used as an example in the FHIR Quality Measure Implementation Guide
jurisdiction:
  coding:
    system:
      v: http://unstats.un.org/unsd/methods/m49/m49.htm
      l: m49.htm
    code:
      v: 001
approval date:
  v: 2019-08-03
last review date:
  v: 2019-08-03
related artifact:
  type:
    v: depends-on
  display:
    v: FHIR model information
  resource:
    v: http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|4.0.1
    l: http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo
related artifact:
  type:
    v: depends-on
  display:
    v: Library FHIRHelpers
  resource:
    v: http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1
    l: http://hl7.org/fhir/uv/cql/Library/FHIRHelpers
related artifact:
  type:
    v: depends-on
  display:
    v: Code system LOINC
  resource:
    v: http://loinc.org
    l: loinc.org
related artifact:
  type:
    v: depends-on
  display:
    v: Code system SNOMEDCT
  resource:
    v: http://snomed.info/sct
    l: sct
related artifact:
  type:
    v: depends-on

v: Code system RoleCode

type:
  v: depends-on
display:
  v: Code system Diagnosis Role
resource:
  v: http://terminology.hl7.org/CodeSystem/diagnosis-role
  l: diagnosis-role

type:
  v: depends-on
display:
  v: Code system RequestIntent
resource:
  v: http://hl7.org/fhir/request-intent
  l: request-intent

type:
  v: depends-on
display:
  v: Code system MedicationRequestCategory
resource:
  v: http://terminology.hl7.org/CodeSystem/medicationrequest-category
  l: medicationrequest-category

type:
  v: depends-on
display:
  v: Code system ConditionClinicalStatusCodes
resource:
  v: http://terminology.hl7.org/CodeSystem/condition-clinical
  l: condition-clinical

type:
  v: depends-on
display:
  v: Code system ConditionVerificationStatusCodes
resource:
  v: http://terminology.hl7.org/CodeSystem/condition-ver-status
  l: condition-ver-status

type:
  v: depends-on
display:
  v: Code system AllergyIntoleranceClinicalStatusCodes
resource:
  v: http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical
  l: allergyintolerance-clinical

type:
  v: depends-on
display:
  v: Code system AllergyIntoleranceVerificationStatusCodes
resource:
  v: http://terminology.hl7.org/CodeSystem/allergyintolerance-verification
  l: allergyintolerance-verification

type:
  v: depends-on
display:
  v: Value set Encounter Inpatient
resource:
  v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307
  l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307

type:
  v: depends-on
display:
  v: Value set Emergency Department Visit
resource:
  v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292
  l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292

type:
  v: depends-on
display:
  v: Value set Observation Services
resource:
  v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143
  l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143

name:
  v: Measurement Period
use:
  v: in
min:
  v: 0
max:
  v: 1
type:
  v: Period

name:
  v: Patient
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: Patient

name:
  v: Inpatient Encounter
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Encounter

type:
  v: Patient
profile:
  v: http://hl7.org/fhir/StructureDefinition/Patient
  l: Patient

type:
  v: Encounter
profile:
  v: http://hl7.org/fhir/StructureDefinition/Encounter
  l: Encounter
must support:
  v: type
must support:
  v: status
must support:
  v: period
must support:
  v: location
must support:
  v: condition
must support:
  v: condition.reference
must support:
  v: rank
code filter:
  path:
    v: type
  value set:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307

type:
  v: Encounter
profile:
  v: http://hl7.org/fhir/StructureDefinition/Encounter
  l: Encounter
must support:
  v: type
must support:
  v: period
must support:
  v: location
must support:
  v: condition
must support:
  v: condition.reference
must support:
  v: rank
code filter:
  path:
    v: type
  value set:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143

type:
  v: Encounter
profile:
  v: http://hl7.org/fhir/StructureDefinition/Encounter
  l: Encounter
must support:
  v: type
must support:
  v: status
must support:
  v: period
must support:
  v: location
must support:
  v: condition
must support:
  v: condition.reference
must support:
  v: rank
code filter:
  path:
    v: type
  value set:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292

type:
  v: Condition
profile:
  v: http://hl7.org/fhir/StructureDefinition/Condition
  l: Condition
must support:
  v: id

type:
  v: Location
profile:
  v: http://hl7.org/fhir/StructureDefinition/Location
  l: Location
must support:
  v: id

type:
  v: Provenance
profile:
  v: http://hl7.org/fhir/StructureDefinition/Provenance
  l: Provenance
must support:
  v: target
code filter:
  path:
    v: target

type:
  v: Medication
profile:
  v: http://hl7.org/fhir/StructureDefinition/Medication
  l: Medication
must support:
  v: id

content type:
  v: text/cql

content type:
  v: application/elm+xml

content type:
  v: application/elm+json