HIVB2DTLogic
type: Library
node role: treeRoot
id:
  v: HIVB2DTLogic
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.B2.DT Logic Id: HIVB2DTLogic Version: 0.4.4 Url: HIV.B2.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.B2.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 under 10 boolean 0 1 Out Immediately take action or refer for care if a client is having this issue boolean 0 1 Out Signs of serious illness age 10 or older boolean 0 1 Out Signs of serious illness age under 10 boolean 0 1 Out Immediately take action or refer for care if client is showing this sign of a serious illness boolean 0 1 Out Signs of serious illness requiring clinical judgement age 10 or older boolean 0 1 Out Signs of serious illness requiring clinical judgement age under 10 boolean 0 1 Out Use clinical judgement and consider local epidemiology to determine if symptoms suggest client is seriously ill boolean 0 1 Out Guidance string 0 1 Out Content: text/cql /** Library: HIV.B2.DT Logic @DecisionID: HIV.B2.DT @BusinessRule: Check for signs of serious illness @Trigger: HIV.B2 Check for signs of serious illness @Trigger: HIV.D3 Check for signs of serious illness @HitPolicy: Rule Order @Description: Check for serious illness Data Concepts: * HIV.A.DE17: Age | Calculated age (number of years) of the client based on date of birth * HIV.D.DE17: Signs of serious illness | Signs that may indicate the client has a serious illness and needs triage or an emergency referral * HIV.D.DE9: Body temperature | Temperature of the client in Celsius 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 car…
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/HIVB2DTLogic
  l: HIVB2DTLogic
version:
  v: 0.4.4
name:
  v: HIVB2DTLogic
title:
  v: HIV.B2.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.B2.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 under 10
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: Immediately take action or refer for care if a client is having this issue
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: Signs of serious illness age 10 or older
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: Signs of serious illness age under 10
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: Immediately take action or refer for care if client is showing this sign of a serious illness
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: Signs of serious illness requiring clinical judgement age 10 or older
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: Signs of serious illness requiring clinical judgement age under 10
  use:
    v: out
  min:
    v: 0
  max:
    v: 1

v: boolean

name:
  v: Use clinical judgement and consider local epidemiology to determine if symptoms suggest client is seriously ill
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: boolean

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