Title: HIV.B7.DT Logic Id: HIVB7DTLogic Version: 0.4.4 Url: HIV.B7.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: Description not yet available for HIV.B7.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 Patient Patient 0 1 Out Assay 1 result Observation 0 * Out Assay 2 result Observation 0 * Out Assay 1 boolean 0 1 Out Non-reactive result boolean 0 1 Out Report as HIV-negative boolean 0 1 Out Assay 3 result Observation 0 * Out Assay 2 boolean 0 1 Out Assay 3 boolean 0 1 Out Content: text/cql /** Library: HIV.B7.DT Logic @DecisionID: HIV.B7.DT @BusinessRule: WHO standard testing strategy for HIV-1 diagnosis (among people ≥18 months of age) @Trigger: HIV.B7 Test for HIV using testing algorithm, HIV.C4 Test for HIV using testing algorithm, HIV.D.11 Retest using HIV strategy @Description: WHO standard testing strategy for HIV-1 diagnosis (among people ≥18 months of age) Data Concepts: */ library HIVB7DTLogic 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 context Patient /* @output: "Report as HIV-negative" */ define "Report as HIV-negative": case when "Assay 1" and "Non-reactive result" then true else null end /* Supporting Logic */ define "Assay 1": exists("Assay 1 result") and not(exists("Assay 2 result")) define "Assay 2": exists("Assay 2 result") and not(exists("Assay 3 result")) define "Assay 3": exists("Assay 3 result") define "Assay 1 result": Elements."Test result of HIV assay 1 B.DE94" define "Assay 2 result": Elements."Test result of HIV assay 2 B.DE98" define "Assay 3 result": Elements."Test result of HIV assay 3 B.DE102" define "Non-reactive result": false Content: application/elm+xml Encoded data (19684 characters) Content: application/elm+json Encoded data (32996 characters)
Description not yet available for HIV.B7.DT Logic.