HIVB9DTLogic
type: Library
node role: treeRoot
id:
  v: HIVB9DTLogic
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.B9.DT Logic Id: HIVB9DTLogic Version: 0.4.4 Url: HIV.B9.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.B9.DT Logic Related Artifacts: Dependencies http://smart.who.int/hiv/Library/HIVCommon|0.0.1 HIVConcepts HIVConfig HIVEncounterElements WHOCommon WHOConcepts WHOEncounterElements Parameters: Name Type Min Max In/Out Today date 0 1 In Patient Patient 0 1 Out HIV status negative or unknown boolean 0 1 Out Partner HIV positive boolean 0 1 Out Sex partner's HIV treatment status is partner not virally suppressed boolean 0 1 Out HIV burden of setting is high HIV burden setting boolean 0 1 Out HIV burden of setting is low HIV burden setting boolean 0 1 Out Key population member boolean 0 1 Out Currently pregnant boolean 0 1 Out TB diagnosis result is diagnosed TB boolean 0 1 Out Presumptive TB boolean 0 1 Out Currently on PrEP boolean 0 1 Out At elevated risk for HIV acquisition boolean 0 1 Out Partner has HIV and is not virally suppressed boolean 0 1 Out Schedule an annual follow-up test boolean 0 1 Out Follow-up test recommended boolean 0 1 Out Schedule quarterly retesting for PrEP users boolean 0 1 Out Pregnant in high HIV burden setting boolean 0 1 Out Schedule an HIV test, syphilis test, hepatitis B test as early as possible during this pregnancy boolean 0 1 Out Schedule a 'Follow-up test recommended date' during a third trimester visit boolean 0 1 Out Pregnant in low HIV burden setting boolean 0 1 Out Schedule a 'Follow-up test recommended date' at first ANC contact date boolean 0 1 Out Guidance string 0 1 Out Schedule Follow-up Date date 0 1 Out Content: text/cql /* Library: HIV.B9.DT Logic @DecisionID: HIV.B9.DT.HIV Re-testing Recommendations @BusinessRule: HIV restesting recommendations @Trigger: HIV.B9 Determine recommended services @HitPolicy: Rule order @Description: Determine retest recommendation Data Conce…
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/HIVB9DTLogic
  l: HIVB9DTLogic
version:
  v: 0.4.4
name:
  v: HIVB9DTLogic
title:
  v: HIV.B9.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.B9.DT Logic
related artifact:
  type:
    v: depends-on
  display:
    v: Library Common
  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 Config
  resource:
    v: http://smart.who.int/hiv/Library/HIVConfig
    l: HIVConfig
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
related artifact:
  type:
    v: depends-on
  display:
    v: Library WCx
  resource:
    v: http://smart.who.int/hiv/Library/WHOConcepts
    l: WHOConcepts
related artifact:
  type:
    v: depends-on
  display:
    v: Library WElm
  resource:
    v: http://smart.who.int/hiv/Library/WHOEncounterElements
    l: WHOEncounterElements
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: HIV status negative or unknown
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: Partner HIV positive
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: Sex partner's HIV treatment status is partner not virally suppressed
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: HIV burden of setting is high HIV burden setting
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: HIV burden of setting is low HIV burden setting
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: Key population member
  use:
    v: out
  min:
    v: 0

v: 1

v: boolean

name:
  v: Currently pregnant
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: boolean

name:
  v: TB diagnosis result is diagnosed TB
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: boolean

name:
  v: Presumptive TB
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: boolean

name:
  v: Currently on PrEP
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: boolean

name:
  v: At elevated risk for HIV acquisition
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: boolean

name:
  v: Partner has HIV and is not virally suppressed
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: boolean

name:
  v: Schedule an annual follow-up test
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: boolean

name:
  v: Follow-up test recommended
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: boolean

name:
  v: Schedule quarterly retesting for PrEP users
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: boolean

name:
  v: Pregnant in high HIV burden setting
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: boolean

name:
  v: Schedule an HIV test, syphilis test, hepatitis B test as early as possible during this pregnancy
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: boolean

name:
  v: Schedule a 'Follow-up test recommended date' during a third trimester visit
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: boolean

name:
  v: Pregnant in low HIV burden setting
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: boolean

name:
  v: Schedule a 'Follow-up test recommended date' at first ANC contact date
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

name:
  v: Schedule Follow-up Date
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: date

content type:
  v: text/cql

content type:
  v: application/elm+xml

content type:
  v: application/elm+json