HIVEncounterElements
type: Library
node role: treeRoot
id:
  v: HIVEncounterElements
meta:
  profile:
    v: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablelibrary
    l: crmi-shareablelibrary
  profile:
    v: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary
    l: crmi-publishablelibrary
  profile:
    v: http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library
    l: cql-library
  profile:
    v: http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module
    l: cql-module
text:
  status:
    v: extensions
  div:
    v: Title: HIVEncounterElements Id: HIVEncounterElements Version: 0.4.4 Url: HIVEncounterElements Status: draft Experimental: true Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2025-12-08 16:41:10+0000 Publisher: WHO Description: Description not yet available for HIVEncounterElements. Related Artifacts: Dependencies WHOConcepts WHOCommon WHOElements HIVConcepts HIVCommon HIVElements Content: text/cql library HIVEncounterElements using FHIR version '4.0.1' include FHIRHelpers version '4.0.1' include WHOConcepts include WHOCommon called WC include WHOElements called WE include HIVConcepts called Concepts include HIVCommon called Common include HIVElements called Elements parameter Today Date default Today() parameter EncounterId String context Patient /** * HIV Elements */ // Auto-generated Elements from DAK Data Dictionary // Entries based on DAK Data Dictionary for Data Elements marked as used // in at least one Decision Support Table or Aggregate Indicator /* @dataElement: HIV.A.DE17 - Age @activity: HIV.A6.1 Review sociodemographic data with client | HIV.A5 Create new client record @description: Calculated age (number of years) of the client based on date of birth */ /** * @dataElement Patient age in years */ define "Current Patient Age In Years": AgeInYearsAt(Today()) /* End of Age */ /* @dataElement: HIV.A.DE18 - Gender @activity: HIV.A6.1 Review sociodemographic data with client | HIV.A5 Create new client record @description: Gender of the client */ // TODO: Replace placeholder with relevant CQL logic define "Gender": Patient.gender /* End of Gender */ /* @dataElement: HIV.A.DE19 - Female @activity: HIV.A6.1 Review sociodemographic data with client | HIV.A5 Create new client record @description: Client identifies as female */ define "Female": "Gender" ~ 'female' /* End of Female */ /* @dataElement: HIV.A.DE20 - Male @activity: HIV.A6.1 Review sociodemographic data with client | HIV.A5 Create new client record @descriptio…
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability
    l: cqf-knowledgeCapability
  value: Code
    v: computable
url:
  v: http://smart.who.int/hiv/Library/HIVEncounterElements
  l: HIVEncounterElements
version:
  v: 0.4.4
name:
  v: HIVEncounterElements
title:
  v: HIVEncounterElements
status:
  v: draft
experimental:
  v: true
type:
  coding:
    system:
      v: http://terminology.hl7.org/CodeSystem/library-type
      l: library-type
    code:
      v: logic-library
date:
  v: 2025-12-08T16:41:10+00:00
publisher:
  v: WHO
contact:
  name:
    v: WHO
  telecom:
    system:
      v: url
    value:
      v: http://who.int
description:
  v: Description not yet available for HIVEncounterElements.
related artifact:
  type:
    v: depends-on
  display:
    v: Library WHOConcepts
  resource:
    v: http://smart.who.int/hiv/Library/WHOConcepts
    l: WHOConcepts
related artifact:
  type:
    v: depends-on
  display:
    v: Library WC
  resource:
    v: http://smart.who.int/hiv/Library/WHOCommon
    l: WHOCommon
related artifact:
  type:
    v: depends-on
  display:
    v: Library WE
  resource:
    v: http://smart.who.int/hiv/Library/WHOElements
    l: WHOElements
related artifact:
  type:
    v: depends-on
  display:
    v: Library Concepts
  resource:
    v: http://smart.who.int/hiv/Library/HIVConcepts
    l: HIVConcepts
related artifact:
  type:
    v: depends-on
  display:
    v: Library Common
  resource:
    v: http://smart.who.int/hiv/Library/HIVCommon
    l: HIVCommon
related artifact:
  type:
    v: depends-on
  display:
    v: Library Elements
  resource:
    v: http://smart.who.int/hiv/Library/HIVElements
    l: HIVElements
content:
  content type:
    v: text/cql
content:
  content type:
    v: application/elm+xml
content:
  content type:
    v: application/elm+json