HIVC23DTLogic
type: Library
node role: treeRoot
id:
  v: HIVC23DTLogic
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: HIV.C23.DT Logic Id: HIVC23DTLogic Version: 0.4.4 Url: HIV.C23.DT Logic Status: draft Experimental: true Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2025-12-10 09:22:27+0000 Publisher: WHO Description: HIV.C23.DT Logic Related Artifacts: Dependencies http://smart.who.int/hiv/Library/HIVCommon|0.0.1 HIVConcepts HIVEncounterElements WHOCommon Parameters: Name Type Min Max In/Out Today date 0 1 In Patient Patient 0 1 Out Age 10 or older boolean 0 1 Out Age between 2 and 10 boolean 0 1 Out Suspected exposure to HIV within 72 hours boolean 0 1 Out Client is suitable for PrEP boolean 0 1 Out What to use in HIV post-exposure prophylaxis (PEP) for adults and adolescents boolean 0 1 Out What to use in HIV pre-exposure prophylaxis (PrEP) for adults and adolescents boolean 0 1 Out Preferred PEP backbone regimen Coding 0 * Out Alternative PEP backbone regimen Coding 0 * Out Preferred third PEP drug Coding 0 * Out Alternative third PEP drug Coding 0 * Out Recommended PrEP regimen Coding 0 * Out Guidance string 0 1 Out Content: text/cql /** Library: HIV.C23.DT Logic @DecisionID: HIV.C23.DT @BusinessRule: Determine PEP or PrEP regimen @Trigger: HIV.C23 Prescribe or administer PrEP or PEP @HitPolicy: Rule Order @Description: Determine PEP or PrEP regimen Data Concepts: Consolidated guidelines on HIV prevention, testing, treatment, service delivery and monitoring: recommendations for a public health approach (2021) Chapter 5: Advanced HIV Disease. Figure 5.1: Algorithm for providing a package of care for people with advanced HIV disease. */ library HIVC23DTLogic using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include HIVConcepts called Concepts include HIVEncounterElements called Elements include FHIRHelpers version '4.0.1' include WHOCommon called WCom parameter Today Date default Today() context Patient /* @input: Age @pseudocode: "Age" >= 10 years */ define "Age 10 or older": Elements."Current Patient A…
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/HIVC23DTLogic
  l: HIVC23DTLogic
version:
  v: 0.4.4
name:
  v: HIVC23DTLogic
title:
  v: HIV.C23.DT Logic
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-10T09:22:27+00:00
publisher:
  v: WHO
contact:
  name:
    v: WHO
  telecom:
    system:
      v: url
    value:
      v: http://who.int
description:
  v: HIV.C23.DT Logic
related artifact:
  type:
    v: depends-on
  display:
    v: Library HIC
  resource:
    v: http://smart.who.int/hiv/Library/HIVCommon|0.0.1
    l: http://smart.who.int/hiv/Library/HIVCommon
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 Elements
  resource:
    v: http://smart.who.int/hiv/Library/HIVEncounterElements
    l: HIVEncounterElements
related artifact:
  type:
    v: depends-on
  display:
    v: Library WCom
  resource:
    v: http://smart.who.int/hiv/Library/WHOCommon
    l: WHOCommon
parameter:
  name:
    v: Today
  use:
    v: in
  min:
    v: 0
  max:
    v: 1
  type:
    v: date
parameter:
  name:
    v: Patient
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: Patient
parameter:
  name:
    v: Age 10 or older
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: Age between 2 and 10
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: Suspected exposure to HIV within 72 hours
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: Client is suitable for PrEP
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: What to use in HIV post-exposure prophylaxis (PEP) for adults and adolescents
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: What to use in HIV pre-exposure prophylaxis (PrEP) for adults and adolescents
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: Preferred PEP backbone regimen
  use:
    v: out
  min:
    v: 0
  max:
    v: *
  type:
    v: Coding
parameter:
  name:
    v: Alternative PEP backbone regimen
  use:
    v: out
  min:
    v: 0
  max:
    v: *

v: Coding

name:
  v: Preferred third PEP drug
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Coding

name:
  v: Alternative third PEP drug
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Coding

name:
  v: Recommended PrEP regimen
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Coding

name:
  v: Guidance
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: string

content type:
  v: text/cql

content type:
  v: application/elm+xml

content type:
  v: application/elm+json