AlphoraCommon
type: Library
node role: treeRoot
id:
  v: AlphoraCommon
text:
  status:
    v: extensions
  div:
    v: Id: AlphoraCommon Version: 0.1.0 Url: AlphoraCommon Status: draft Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2026-05-11 22:31:14+0000 Publisher: Clinical Quality Framework Jurisdiction: 001 Related Artifacts: Dependencies http://fhir.org/guides/cqf/aphl/chronic-ds/Library/FHIRHelpers|4.1.000 http://fhir.org/guides/cqf/aphl/chronic-ds/Library/FHIRCommon|1.1.000 Observation Category Codes Condition Clinical Status Codes Parameters: Name Type Min Max In/Out Patient Patient 0 1 Out Data Requirements: Type Profile MS Code Filter Patient http://hl7.org/fhir/StructureDefinition/Patient Content: text/cql library AlphoraCommon#xD; #xD; using FHIR version '4.0.1'#xD; #xD; include FHIRHelpers version '4.1.000' called FHIRHelpers#xD; include FHIRCommon version '1.1.000' called FC #xD; #xD; codesystem "ObservationCategoryCodes": 'http://terminology.hl7.org/CodeSystem/observation-category'#xD; codesystem "ConditionClinicalStatusCodes": 'http://terminology.hl7.org/CodeSystem/condition-clinical'#xD; #xD; code "laboratory": 'laboratory' from "ObservationCategoryCodes" display 'laboratory'#xD; code "exam": 'exam' from "ObservationCategoryCodes" display 'exam'#xD; code "survey": 'survey' from "ObservationCategoryCodes" display 'survey'#xD; code "vital-signs": 'vital-signs' from "ObservationCategoryCodes" display 'vital-signs'#xD; code "active": 'active' from "ConditionClinicalStatusCodes"#xD; #xD; context Patient#xD; #xD; define function Official(identifiers List<Identifier>):#xD; singleton from (identifiers I where I.use = 'official')#xD; #xD; define function Official(names List<HumanName>):#xD; singleton from (names N where N.use = 'official')#xD; #xD; define function Only(observations List<Observation>):#xD; singleton from observations#xD; #xD; define function Earliest(observations List<Observation>):#xD; First(#xD; observations O#xD; sort by issued#xD; )#xD; #xD; define function Latest(observations List<Observation>):#xD; Last(#xD; o…
contained: Parameters
  id:
    v: options
  parameter:
    name:
      v: translatorVersion
    value: String
      v: 3.27.0
  parameter:
    name:
      v: option
    value: String
      v: EnableAnnotations
  parameter:
    name:
      v: option
    value: String
      v: EnableLocators
  parameter:
    name:
      v: option
    value: String
      v: DisableListDemotion
  parameter:
    name:
      v: option
    value: String
      v: DisableListPromotion
  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/us/cqfmeasures/StructureDefinition/cqfm-softwaresystem
    l: cqfm-softwaresystem
  value: Reference
    l: cqf-tooling
    reference:
      v: Device/cqf-tooling
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-cqlOptions
    l: cqf-cqlOptions
  value: Reference
    l: options
    reference:
      v: #options
url:
  v: http://fhir.org/guides/cqf/aphl/chronic-ds/Library/AlphoraCommon
  l: AlphoraCommon
version:
  v: 0.1.0
name:
  v: AlphoraCommon
status:
  v: draft
type:
  coding:
    system:
      v: http://terminology.hl7.org/CodeSystem/library-type
      l: library-type
    code:
      v: logic-library
date:
  v: 2026-05-11T22:31:14+00:00
publisher:
  v: Clinical Quality Framework
contact:
  telecom:
    system:
      v: url
    value:
      v: http://cqframework.org
jurisdiction:
  coding:
    system:
      v: http://unstats.un.org/unsd/methods/m49/m49.htm
      l: m49.htm
    code:
      v: 001
related artifact:
  type:
    v: depends-on
  display:
    v: Library FHIRHelpers
  resource:
    v: http://fhir.org/guides/cqf/aphl/chronic-ds/Library/FHIRHelpers|4.1.000
    l: http://fhir.org/guides/cqf/aphl/chronic-ds/Library/FHIRHelpers
related artifact:
  type:
    v: depends-on
  display:
    v: Library FC
  resource:
    v: http://fhir.org/guides/cqf/aphl/chronic-ds/Library/FHIRCommon|1.1.000
    l: http://fhir.org/guides/cqf/aphl/chronic-ds/Library/FHIRCommon
related artifact:
  type:
    v: depends-on
  display:
    v: Code system ObservationCategoryCodes
  resource:
    v: http://terminology.hl7.org/CodeSystem/observation-category
    l: observation-category
related artifact:
  type:
    v: depends-on
  display:
    v: Code system ConditionClinicalStatusCodes
  resource:
    v: http://terminology.hl7.org/CodeSystem/condition-clinical
    l: condition-clinical
parameter:
  name:
    v: Patient
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: Patient
data requirement:
  type:
    v: Patient
  profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    l: Patient
content:
  content type:
    v: text/cql
  url:
    v: http://fhir.org/guides/cqf/aphl/chronic-ds/AlphoraCommon.cql
    l: AlphoraCommon.cql
content:
  content type:
    v: application/elm+xml
content:
  content type:
    v: application/elm+json