HIVCommon
type: Library
node role: treeRoot
id:
  v: HIVCommon
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: HIVCommon Id: HIVCommon Version: 0.4.4 Url: HIVCommon 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 HIVCommon. Related Artifacts: Dependencies WHOCommon HIVConcepts HIVConceptsCustom Parameters: Name Type Min Max In/Out Patient Patient 0 1 Out STI_testing Procedure 0 * Out Data Requirements: Type Profile MS Code Filter Procedure http://hl7.org/fhir/StructureDefinition/Procedure Medication http://hl7.org/fhir/StructureDefinition/Medication Content: text/cql library HIVCommon version '0.0.1' using FHIR version '4.0.1' include FHIRHelpers version '4.0.1' include WHOCommon called WCom include HIVConcepts called Concepts include HIVConceptsCustom called CustomConcepts context Patient //VERIFIED //DRAFT //need to add Time to start ART (within 7, 30 or 90 days of diagnosis, as per country guidelines) //need to add Disaggregation by time since diagnosis /* * DAK has codes for HAART misspecified * ICD-10 Z92.2 Other prophylactic chemotherapy * LOINC "54825-5 " On scheduled pain medication regimen in last 7 days * * Should discuss */ /* * Kenya EMR defined as HIV positive condition * Will need to discuss if produce flags through conditions for concepts to use in indicator calculation such as HIV positive and On ART * However, we have moved forward with a more prescriptive approach * Inevitably our approach requires that certain data elements be available */ /* * HIV Treatment during the measurement period * uses dosage and dispensation amount to estimate last day of medication * medication should be dispensed before end of measurement period * medication should last until after 28 days after the end of the measurement period * This takes into account lost to follow up */ /* *define "HIV Treatment during the measurement period": * [MedicationDispense] MD * where MD.status in { 'final', 'amended', 'corrected'…
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/HIVCommon
  l: HIVCommon
version:
  v: 0.4.4
name:
  v: HIVCommon
title:
  v: HIVCommon
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 HIVCommon.
related artifact:
  type:
    v: depends-on
  display:
    v: Library WCom
  resource:
    v: http://smart.who.int/hiv/Library/WHOCommon
    l: WHOCommon
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 CustomConcepts
  resource:
    v: http://smart.who.int/hiv/Library/HIVConceptsCustom
    l: HIVConceptsCustom
parameter:
  name:
    v: Patient
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: Patient
parameter:
  name:
    v: STI_testing
  use:
    v: out
  min:
    v: 0
  max:
    v: *
  type:
    v: Procedure
data requirement:
  type:
    v: Procedure
  profile:
    v: http://hl7.org/fhir/StructureDefinition/Procedure
    l: Procedure
data requirement:
  type:
    v: Medication
  profile:
    v: http://hl7.org/fhir/StructureDefinition/Medication
    l: Medication
content:
  content type:
    v: text/cql
content:
  content type:
    v: application/elm+xml
content:
  content type:
    v: application/elm+json