WHO Antenatal Care Guideline Implementation Guide
0.3.0 - CI Build International flag

WHO Antenatal Care Guideline Implementation Guide, published by World Health Organization (WHO). This guide is not an authorized publication; it is the continuous build for version 0.3.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/WorldHealthOrganization/smart-anc/ and changes regularly. See the Directory of published versions

Library: ANC.DT.08 HIV testing

Official URL: http://fhir.org/guides/who/anc-cds/Library/ANCDT08 Version: 0.3.0
Active as of 2024-09-10 Computable Name: ANCDT08
Other Identifiers: ANC.DT.08 (use: official, )

Depending on the population prevalence, and woman's medical history, conduct HIV testing

Id: ANCDT08
Url: ANC.DT.08 HIV testing
Version: 0.3.0
Identifier:

value: ANC.DT.08

Name: ANCDT08
Title: ANC.DT.08 HIV testing
Status: active
Experimental: false
Type:

system: http://terminology.hl7.org/CodeSystem/library-type

code: logic-library

Date: 2024-09-10 13:23:00+0000
Publisher: World Health Organization (WHO)
Description: Depending on the population prevalence, and woman's medical history, conduct HIV testing
Jurisdiction: 001
Related Artifacts:

Dependencies

Parameters:
NameTypeMinMaxIn/Out
encounterstring01In
PatientPatient01Out
Should Conduct HIV testboolean01Out
Should Conduct HIV test 2boolean01Out
Should HIV test is optionalboolean01Out
Should HIV test is not requiredboolean01Out
Data Requirements:
TypeProfileMSCode Filter
Patient http://hl7.org/fhir/StructureDefinition/Patient
Encounter http://hl7.org/fhir/StructureDefinition/Encounter ;
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de17
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de45
Content: text/cql
library ANCDT08

using FHIR version '4.0.1'

include FHIRHelpers version '4.0.1'

include ANCConfig called Config
include ANCConcepts called Cx
include ANCDataElements called PatientData
include ANCContactDataElements called ContactData

context Patient

/*
("Population prevalence of HIV in pregnant women" ≥ 5%)
  AND ("ANC contact number" = 1)
*/
define "Should Conduct HIV test":
  Config."Population prevalence of HIV in pregnant women" >= 5 '%'
    and (ContactData."ANC contact number" = 1)

/*
("Population prevalence of HIV in pregnant women" ≥ 5%)
  AND ("Gestational age" ≥ 29 weeks)
  AND ("HIV status" = "HIV negative")
*/
define "Should Conduct HIV test 2":
  Config."Population prevalence of HIV in pregnant women" >= 5 '%'
    and ContactData."Gestational age" >= 29 'weeks'
    and ContactData."HIV status" in Cx."HIV status - HIV negative Choices"

/*
"Population prevalence of HIV in pregnant women" < 5%
*/
define "Should HIV test is optional":
  Config."Population prevalence of HIV in pregnant women" < 5 '%'

/*
"HIV status" = "HIV positive"
*/
define "Should HIV test is not required":
  ContactData."HIV status" in Cx."HIV status - HIV positive Choices"
Content: application/elm+xml
Encoded data (18272 characters)
Content: application/elm+json
Encoded data (30528 characters)