From 7b79e8c91b0015ae5e1a7840c0ba7a4087fede36 Mon Sep 17 00:00:00 2001 From: Piotr Mankowski Date: Mon, 22 Jul 2024 17:51:45 -0700 Subject: [PATCH 01/10] Updated elements names (#36) * Updated elements names * Small fix to generated element comments --- input/cql/HIVElements.cql | 11546 +++++++++++++-------------- input/cql/HIVEncounterElements.cql | 8370 +++++++++---------- input/cql/HIVIndicatorElements.cql | 5202 ++++++------ 3 files changed, 12559 insertions(+), 12559 deletions(-) diff --git a/input/cql/HIVElements.cql b/input/cql/HIVElements.cql index 904a1833046..a9f75bc795e 100644 --- a/input/cql/HIVElements.cql +++ b/input/cql/HIVElements.cql @@ -28,13 +28,13 @@ context Patient @description: The date and time of the client's visit */ // TODO: Replace placeholder with relevant CQL logic -define "Visit date (Registration)": +define "Visit date A.DE3": [Observation: Concepts."Visit date - HIV.A.DE3"] O where O.status in { 'final', 'amended', 'corrected' } -define "Visit date (Registration) Value": - "Visit date (Registration)" O +define "Visit date A.DE3 Value": + "Visit date A.DE3" O return O.value -/* End of Visit date (Registration) */ +/* End of Visit date A.DE3 */ /* @dataElement: HIV.A.DE16 - Estimated age @@ -42,13 +42,13 @@ define "Visit date (Registration) Value": @description: If DOB is unknown, enter the client's estimated age. Display client's age in number of years. */ // TODO: Replace placeholder with relevant CQL logic -define "Estimated age (Registration)": +define "Estimated age": [Observation: Concepts."Estimated age"] O where O.status in { 'final', 'amended', 'corrected' } -define "Estimated age (Registration) Value": - "Estimated age (Registration)" O +define "Estimated age Value": + "Estimated age" O return O.value -/* End of Estimated age (Registration) */ +/* End of Estimated age */ /* @dataElement: HIV.A.DE17 - Age @@ -56,13 +56,13 @@ define "Estimated age (Registration) Value": @description: Calculated age (number of years) of the client based on date of birth */ // TODO: Replace placeholder with relevant CQL logic -define "Age (Registration)": +define "Age": [Observation: Concepts."Age"] O where O.status in { 'final', 'amended', 'corrected' } -define "Age (Registration) Value": - "Age (Registration)" O +define "Age Value": + "Age" O return O.value -/* End of Age (Registration) */ +/* End of Age */ /* @dataElement: HIV.A.DE18 - Gender* @@ -70,12 +70,12 @@ define "Age (Registration) Value": @description: Gender of the client* */ // TODO: Replace placeholder with relevant CQL logic -define "Gender* (Registration)": - exists "Gender* (Registration) Observation" -define "Gender* (Registration) Observation": +define "Gender*": + exists "Gender* Observation" +define "Gender* Observation": [Observation: Concepts."Gender*"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Gender* (Registration) */ +/* End of Gender* */ /* @dataElement: HIV.A.DE19 - Female @@ -83,16 +83,16 @@ define "Gender* (Registration) Observation": @description: Client identifies as female */ // TODO: Replace placeholder with relevant CQL logic -define "Female (Registration)": - exists "Female (Registration) Condition" - or exists "Female (Registration) Observation" -define "Female (Registration) Condition": +define "Female": + exists "Female Condition" + or exists "Female Observation" +define "Female Condition": [Condition: Concepts."Female"] -define "Female (Registration) Observation": - "Gender* (Registration) Observation" O +define "Female Observation": + "Gender* Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Female" -/* End of Female (Registration) */ +/* End of Female */ /* @dataElement: HIV.A.DE20 - Male @@ -100,16 +100,16 @@ define "Female (Registration) Observation": @description: Client identifies as male */ // TODO: Replace placeholder with relevant CQL logic -define "Male (Registration)": - exists "Male (Registration) Condition" - or exists "Male (Registration) Observation" -define "Male (Registration) Condition": +define "Male": + exists "Male Condition" + or exists "Male Observation" +define "Male Condition": [Condition: Concepts."Male"] -define "Male (Registration) Observation": - "Gender* (Registration) Observation" O +define "Male Observation": + "Gender* Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Male" -/* End of Male (Registration) */ +/* End of Male */ /* @dataElement: HIV.A.DE21 - Transgender male @@ -117,16 +117,16 @@ define "Male (Registration) Observation": @description: Client identifies as transgender male */ // TODO: Replace placeholder with relevant CQL logic -define "Transgender male (Registration)": - exists "Transgender male (Registration) Condition" - or exists "Transgender male (Registration) Observation" -define "Transgender male (Registration) Condition": +define "Transgender male": + exists "Transgender male Condition" + or exists "Transgender male Observation" +define "Transgender male Condition": [Condition: Concepts."Transgender male"] -define "Transgender male (Registration) Observation": - "Gender* (Registration) Observation" O +define "Transgender male Observation": + "Gender* Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Transgender male" -/* End of Transgender male (Registration) */ +/* End of Transgender male */ /* @dataElement: HIV.A.DE22 - Transgender female @@ -134,16 +134,16 @@ define "Transgender male (Registration) Observation": @description: Client identifies as transgender female */ // TODO: Replace placeholder with relevant CQL logic -define "Transgender female (Registration)": - exists "Transgender female (Registration) Condition" - or exists "Transgender female (Registration) Observation" -define "Transgender female (Registration) Condition": +define "Transgender female": + exists "Transgender female Condition" + or exists "Transgender female Observation" +define "Transgender female Condition": [Condition: Concepts."Transgender female"] -define "Transgender female (Registration) Observation": - "Gender* (Registration) Observation" O +define "Transgender female Observation": + "Gender* Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Transgender female" -/* End of Transgender female (Registration) */ +/* End of Transgender female */ /* @dataElement: HIV.A.DE23 - Other @@ -151,16 +151,16 @@ define "Transgender female (Registration) Observation": @description: Additional category */ // TODO: Replace placeholder with relevant CQL logic -define "Other (Registration)": - exists "Other (Registration) Condition" - or exists "Other (Registration) Observation" -define "Other (Registration) Condition": +define "Other A.DE23": + exists "Other A.DE23 Condition" + or exists "Other A.DE23 Observation" +define "Other A.DE23 Condition": [Condition: Concepts."Other - HIV.A.DE23"] -define "Other (Registration) Observation": - "Gender* (Registration) Observation" O +define "Other A.DE23 Observation": + "Gender* Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Other - HIV.A.DE23" -/* End of Other (Registration) */ +/* End of Other A.DE23 */ /* @dataElement: HIV.B.DE1 - Reason for visit @@ -168,12 +168,12 @@ define "Other (Registration) Observation": @description: Reason for HIV testing services visit */ // TODO: Replace placeholder with relevant CQL logic -define "Reason for visit (HTS)": - exists "Reason for visit (HTS) Observation" -define "Reason for visit (HTS) Observation": +define "Reason for visit B.DE1": + exists "Reason for visit B.DE1 Observation" +define "Reason for visit B.DE1 Observation": [Observation: Concepts."Reason for visit - HIV.B.DE1"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Reason for visit (HTS) */ +/* End of Reason for visit B.DE1 */ /* @dataElement: HIV.B.DE2 - First-time HIV test @@ -181,16 +181,16 @@ define "Reason for visit (HTS) Observation": @description: First encounter for screening for human immunodeficiency virus */ // TODO: Replace placeholder with relevant CQL logic -define "First-time HIV test (HTS)": - exists "First-time HIV test (HTS) Condition" - or exists "First-time HIV test (HTS) Observation" -define "First-time HIV test (HTS) Condition": +define "First-time HIV test": + exists "First-time HIV test Condition" + or exists "First-time HIV test Observation" +define "First-time HIV test Condition": [Condition: Concepts."First-time HIV test"] -define "First-time HIV test (HTS) Observation": - "Reason for visit (HTS) Observation" O +define "First-time HIV test Observation": + "Reason for visit B.DE1 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."First-time HIV test" -/* End of First-time HIV test (HTS) */ +/* End of First-time HIV test */ /* @dataElement: HIV.B.DE3 - Retesting for HIV @@ -198,16 +198,16 @@ define "First-time HIV test (HTS) Observation": @description: Retesting for human immunodeficiency virus */ // TODO: Replace placeholder with relevant CQL logic -define "Retesting for HIV (HTS|BDE3)": - exists "Retesting for HIV (HTS|BDE3) Condition" - or exists "Retesting for HIV (HTS|BDE3) Observation" -define "Retesting for HIV (HTS|BDE3) Condition": +define "Retesting for HIV B.DE3": + exists "Retesting for HIV B.DE3 Condition" + or exists "Retesting for HIV B.DE3 Observation" +define "Retesting for HIV B.DE3 Condition": [Condition: Concepts."Retesting for HIV - HIV.B.DE3"] -define "Retesting for HIV (HTS|BDE3) Observation": - "Reason for visit (HTS) Observation" O +define "Retesting for HIV B.DE3 Observation": + "Reason for visit B.DE1 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Retesting for HIV - HIV.B.DE3" -/* End of Retesting for HIV (HTS|BDE3) */ +/* End of Retesting for HIV B.DE3 */ /* @dataElement: HIV.B.DE4 - HIV testing services visit @@ -215,16 +215,16 @@ define "Retesting for HIV (HTS|BDE3) Observation": @description: Client attending facility for HIV testing services visit */ // TODO: Replace placeholder with relevant CQL logic -define "HIV testing services visit (HTS)": - exists "HIV testing services visit (HTS) Condition" - or exists "HIV testing services visit (HTS) Observation" -define "HIV testing services visit (HTS) Condition": +define "HIV testing services visit": + exists "HIV testing services visit Condition" + or exists "HIV testing services visit Observation" +define "HIV testing services visit Condition": [Condition: Concepts."HIV testing services visit"] -define "HIV testing services visit (HTS) Observation": - "Reason for visit (HTS) Observation" O +define "HIV testing services visit Observation": + "Reason for visit B.DE1 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."HIV testing services visit" -/* End of HIV testing services visit (HTS) */ +/* End of HIV testing services visit */ /* @dataElement: HIV.B.DE5 - Referred through partner services @@ -232,12 +232,12 @@ define "HIV testing services visit (HTS) Observation": @description: Client reported coming to the facility after receiving a provider-assisted referral or patient referral from a contact or partner */ // TODO: Replace placeholder with relevant CQL logic -define "Referred through partner services (HTS)": - exists "Referred through partner services (HTS) Observation" -define "Referred through partner services (HTS) Observation": +define "Referred through partner services": + exists "Referred through partner services Observation" +define "Referred through partner services Observation": [Observation: Concepts."Referred through partner services"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Referred through partner services (HTS) */ +/* End of Referred through partner services */ /* @dataElement: HIV.B.DE6 - Partner or contact of an index case @@ -245,16 +245,16 @@ define "Referred through partner services (HTS) Observation": @description: The client is a contact or partner of a person diagnosed with HIV (an index case) */ // TODO: Replace placeholder with relevant CQL logic -define "Partner or contact of an index case (HTS)": - exists "Partner or contact of an index case (HTS) Condition" - or exists "Partner or contact of an index case (HTS) Observation" -define "Partner or contact of an index case (HTS) Condition": +define "Partner or contact of an index case": + exists "Partner or contact of an index case Condition" + or exists "Partner or contact of an index case Observation" +define "Partner or contact of an index case Condition": [Condition: Concepts."Partner or contact of an index case"] -define "Partner or contact of an index case (HTS) Observation": - "Referred through partner services (HTS) Observation" O +define "Partner or contact of an index case Observation": + "Referred through partner services Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Partner or contact of an index case" -/* End of Partner or contact of an index case (HTS) */ +/* End of Partner or contact of an index case */ /* @dataElement: HIV.B.DE7 - Partner or contact of an HIV testing client non-index case @@ -262,16 +262,16 @@ define "Partner or contact of an index case (HTS) Observation": @description: The client is a contact or partner identified through partner or social network services, but is not known to be a partner of an index-case */ // TODO: Replace placeholder with relevant CQL logic -define "Partner or contact of an HIV testing client non-index case (HTS)": - exists "Partner or contact of an HIV testing client non-index case (HTS) Condition" - or exists "Partner or contact of an HIV testing client non-index case (HTS) Observation" -define "Partner or contact of an HIV testing client non-index case (HTS) Condition": +define "Partner or contact of an HIV testing client non-index case": + exists "Partner or contact of an HIV testing client non-index case Condition" + or exists "Partner or contact of an HIV testing client non-index case Observation" +define "Partner or contact of an HIV testing client non-index case Condition": [Condition: Concepts."Partner or contact of an HIV testing client non-index case"] -define "Partner or contact of an HIV testing client non-index case (HTS) Observation": - "Referred through partner services (HTS) Observation" O +define "Partner or contact of an HIV testing client non-index case Observation": + "Referred through partner services Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Partner or contact of an HIV testing client non-index case" -/* End of Partner or contact of an HIV testing client non-index case (HTS) */ +/* End of Partner or contact of an HIV testing client non-index case */ /* @dataElement: HIV.B.DE8 - Type of contact or partner for partner services @@ -279,12 +279,12 @@ define "Partner or contact of an HIV testing client non-index case (HTS) Observa @description: Client's relationship to the person that referred the client for partner services or family services */ // TODO: Replace placeholder with relevant CQL logic -define "Type of contact or partner for partner services (HTS)": - exists "Type of contact or partner for partner services (HTS) Observation" -define "Type of contact or partner for partner services (HTS) Observation": +define "Type of contact or partner for partner services": + exists "Type of contact or partner for partner services Observation" +define "Type of contact or partner for partner services Observation": [Observation: Concepts."Type of contact or partner for partner services"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Type of contact or partner for partner services (HTS) */ +/* End of Type of contact or partner for partner services */ /* @dataElement: HIV.B.DE9 - Biological child @@ -292,16 +292,16 @@ define "Type of contact or partner for partner services (HTS) Observation": @description: Client is the biological child of the person that referred the client for family services */ // TODO: Replace placeholder with relevant CQL logic -define "Biological child (HTS)": - exists "Biological child (HTS) Condition" - or exists "Biological child (HTS) Observation" -define "Biological child (HTS) Condition": +define "Biological child": + exists "Biological child Condition" + or exists "Biological child Observation" +define "Biological child Condition": [Condition: Concepts."Biological child"] -define "Biological child (HTS) Observation": - "Type of contact or partner for partner services (HTS) Observation" O +define "Biological child Observation": + "Type of contact or partner for partner services Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Biological child" -/* End of Biological child (HTS) */ +/* End of Biological child */ /* @dataElement: HIV.B.DE10 - Drug-injecting partner @@ -309,16 +309,16 @@ define "Biological child (HTS) Observation": @description: Client is a drug-injecting partner of the person that referred the client for partner services */ // TODO: Replace placeholder with relevant CQL logic -define "Drug-injecting partner (HTS)": - exists "Drug-injecting partner (HTS) Condition" - or exists "Drug-injecting partner (HTS) Observation" -define "Drug-injecting partner (HTS) Condition": +define "Drug-injecting partner B.DE10": + exists "Drug-injecting partner B.DE10 Condition" + or exists "Drug-injecting partner B.DE10 Observation" +define "Drug-injecting partner B.DE10 Condition": [Condition: Concepts."Drug-injecting partner - HIV.B.DE10"] -define "Drug-injecting partner (HTS) Observation": - "Type of contact or partner for partner services (HTS) Observation" O +define "Drug-injecting partner B.DE10 Observation": + "Type of contact or partner for partner services Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Drug-injecting partner - HIV.B.DE10" -/* End of Drug-injecting partner (HTS) */ +/* End of Drug-injecting partner B.DE10 */ /* @dataElement: HIV.B.DE11 - Sexual partner @@ -326,16 +326,16 @@ define "Drug-injecting partner (HTS) Observation": @description: Client is a sexual partner of the person that referred the client for partner services */ // TODO: Replace placeholder with relevant CQL logic -define "Sexual partner (HTS)": - exists "Sexual partner (HTS) Condition" - or exists "Sexual partner (HTS) Observation" -define "Sexual partner (HTS) Condition": +define "Sexual partner B.DE11": + exists "Sexual partner B.DE11 Condition" + or exists "Sexual partner B.DE11 Observation" +define "Sexual partner B.DE11 Condition": [Condition: Concepts."Sexual partner - HIV.B.DE11"] -define "Sexual partner (HTS) Observation": - "Type of contact or partner for partner services (HTS) Observation" O +define "Sexual partner B.DE11 Observation": + "Type of contact or partner for partner services Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Sexual partner - HIV.B.DE11" -/* End of Sexual partner (HTS) */ +/* End of Sexual partner B.DE11 */ /* @dataElement: HIV.B.DE12 - Social contact @@ -343,16 +343,16 @@ define "Sexual partner (HTS) Observation": @description: Client is a social contact of the person that referred the client for social-network services */ // TODO: Replace placeholder with relevant CQL logic -define "Social contact (HTS)": - exists "Social contact (HTS) Condition" - or exists "Social contact (HTS) Observation" -define "Social contact (HTS) Condition": +define "Social contact B.DE12": + exists "Social contact B.DE12 Condition" + or exists "Social contact B.DE12 Observation" +define "Social contact B.DE12 Condition": [Condition: Concepts."Social contact - HIV.B.DE12"] -define "Social contact (HTS) Observation": - "Type of contact or partner for partner services (HTS) Observation" O +define "Social contact B.DE12 Observation": + "Type of contact or partner for partner services Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Social contact - HIV.B.DE12" -/* End of Social contact (HTS) */ +/* End of Social contact B.DE12 */ /* @dataElement: HIV.B.DE14 - Date/time of suspected exposure to HIV @@ -360,13 +360,13 @@ define "Social contact (HTS) Observation": @description: Date and time when the client had suspected exposure to HIV */ // TODO: Replace placeholder with relevant CQL logic -define "Date/time of suspected exposure to HIV (HTS)": +define "Date/time of suspected exposure to HIV B.DE14": [Observation: Concepts."Date/time of suspected exposure to HIV - HIV.B.DE14"] O where O.status in { 'final', 'amended', 'corrected' } -define "Date/time of suspected exposure to HIV (HTS) Value": - "Date/time of suspected exposure to HIV (HTS)" O +define "Date/time of suspected exposure to HIV B.DE14 Value": + "Date/time of suspected exposure to HIV B.DE14" O return O.value -/* End of Date/time of suspected exposure to HIV (HTS) */ +/* End of Date/time of suspected exposure to HIV B.DE14 */ /* @dataElement: HIV.B.DE15 - Testing entry point @@ -374,12 +374,12 @@ define "Date/time of suspected exposure to HIV (HTS) Value": @description: Whether testing is happening in the community or at a facility */ // TODO: Replace placeholder with relevant CQL logic -define "Testing entry point (HTS)": - exists "Testing entry point (HTS) Observation" -define "Testing entry point (HTS) Observation": +define "Testing entry point": + exists "Testing entry point Observation" +define "Testing entry point Observation": [Observation: Concepts."Testing entry point"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Testing entry point (HTS) */ +/* End of Testing entry point */ /* @dataElement: HIV.B.DE16 - Community-level testing @@ -387,16 +387,16 @@ define "Testing entry point (HTS) Observation": @description: Testing is happening in the community, which includes mobile testing */ // TODO: Replace placeholder with relevant CQL logic -define "Community-level testing (HTS)": - exists "Community-level testing (HTS) Condition" - or exists "Community-level testing (HTS) Observation" -define "Community-level testing (HTS) Condition": +define "Community-level testing": + exists "Community-level testing Condition" + or exists "Community-level testing Observation" +define "Community-level testing Condition": [Condition: Concepts."Community-level testing"] -define "Community-level testing (HTS) Observation": - "Testing entry point (HTS) Observation" O +define "Community-level testing Observation": + "Testing entry point Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Community-level testing" -/* End of Community-level testing (HTS) */ +/* End of Community-level testing */ /* @dataElement: HIV.B.DE17 - Facility-level testing @@ -404,16 +404,16 @@ define "Community-level testing (HTS) Observation": @description: Testing is happening at a facility */ // TODO: Replace placeholder with relevant CQL logic -define "Facility-level testing (HTS)": - exists "Facility-level testing (HTS) Condition" - or exists "Facility-level testing (HTS) Observation" -define "Facility-level testing (HTS) Condition": +define "Facility-level testing": + exists "Facility-level testing Condition" + or exists "Facility-level testing Observation" +define "Facility-level testing Condition": [Condition: Concepts."Facility-level testing"] -define "Facility-level testing (HTS) Observation": - "Testing entry point (HTS) Observation" O +define "Facility-level testing Observation": + "Testing entry point Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Facility-level testing" -/* End of Facility-level testing (HTS) */ +/* End of Facility-level testing */ /* @dataElement: HIV.B.DE29 - Currently pregnant @@ -421,13 +421,13 @@ define "Facility-level testing (HTS) Observation": @description: Client is currently pregnant */ // TODO: Replace placeholder with relevant CQL logic -define "Currently pregnant (HTS)": - exists "Currently pregnant (HTS) Observation" -define "Currently pregnant (HTS) Observation": +define "Currently pregnant B.DE29": + exists "Currently pregnant B.DE29 Observation" +define "Currently pregnant B.DE29 Observation": [Observation: Concepts."Currently pregnant - HIV.B.DE29"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Currently pregnant (HTS) */ +/* End of Currently pregnant B.DE29 */ /* @dataElement: HIV.B.DE32 - Breastfeeding @@ -435,13 +435,13 @@ define "Currently pregnant (HTS) Observation": @description: Infant is being breastfed by mother */ // TODO: Replace placeholder with relevant CQL logic -define "Breastfeeding (HTS)": - exists "Breastfeeding (HTS) Observation" -define "Breastfeeding (HTS) Observation": +define "Breastfeeding B.DE32": + exists "Breastfeeding B.DE32 Observation" +define "Breastfeeding B.DE32 Observation": [Observation: Concepts."Breastfeeding - HIV.B.DE32"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Breastfeeding (HTS) */ +/* End of Breastfeeding B.DE32 */ /* @dataElement: HIV.B.DE33 - Partner HIV status reported @@ -449,12 +449,12 @@ define "Breastfeeding (HTS) Observation": @description: The HIV status of the client's partner. */ // TODO: Replace placeholder with relevant CQL logic -define "Partner HIV status reported (HTS)": - exists "Partner HIV status reported (HTS) Observation" -define "Partner HIV status reported (HTS) Observation": +define "Partner HIV status reported": + exists "Partner HIV status reported Observation" +define "Partner HIV status reported Observation": [Observation: Concepts."Partner HIV status reported"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Partner HIV status reported (HTS) */ +/* End of Partner HIV status reported */ /* @dataElement: HIV.B.DE34 - HIV-positive @@ -462,16 +462,16 @@ define "Partner HIV status reported (HTS) Observation": @description: Client's partner is HIV-positive */ // TODO: Replace placeholder with relevant CQL logic -define "HIV-positive (HTS|BDE34)": - exists "HIV-positive (HTS|BDE34) Condition" - or exists "HIV-positive (HTS|BDE34) Observation" -define "HIV-positive (HTS|BDE34) Condition": +define "HIV-positive B.DE34": + exists "HIV-positive B.DE34 Condition" + or exists "HIV-positive B.DE34 Observation" +define "HIV-positive B.DE34 Condition": [Condition: Concepts."HIV-positive - HIV.B.DE34"] -define "HIV-positive (HTS|BDE34) Observation": - "Partner HIV status reported (HTS) Observation" O +define "HIV-positive B.DE34 Observation": + "Partner HIV status reported Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."HIV-positive - HIV.B.DE34" -/* End of HIV-positive (HTS|BDE34) */ +/* End of HIV-positive B.DE34 */ /* @dataElement: HIV.B.DE35 - HIV-negative @@ -479,16 +479,16 @@ define "HIV-positive (HTS|BDE34) Observation": @description: Client's partner is HIV-negative */ // TODO: Replace placeholder with relevant CQL logic -define "HIV-negative (HTS|BDE35)": - exists "HIV-negative (HTS|BDE35) Condition" - or exists "HIV-negative (HTS|BDE35) Observation" -define "HIV-negative (HTS|BDE35) Condition": +define "HIV-negative B.DE35": + exists "HIV-negative B.DE35 Condition" + or exists "HIV-negative B.DE35 Observation" +define "HIV-negative B.DE35 Condition": [Condition: Concepts."HIV-negative - HIV.B.DE35"] -define "HIV-negative (HTS|BDE35) Observation": - "Partner HIV status reported (HTS) Observation" O +define "HIV-negative B.DE35 Observation": + "Partner HIV status reported Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."HIV-negative - HIV.B.DE35" -/* End of HIV-negative (HTS|BDE35) */ +/* End of HIV-negative B.DE35 */ /* @dataElement: HIV.B.DE36 - Unknown @@ -496,16 +496,16 @@ define "HIV-negative (HTS|BDE35) Observation": @description: Don't know HIV status - client does not know partner's HIV status */ // TODO: Replace placeholder with relevant CQL logic -define "Unknown (HTS|BDE36)": - exists "Unknown (HTS|BDE36) Condition" - or exists "Unknown (HTS|BDE36) Observation" -define "Unknown (HTS|BDE36) Condition": +define "Unknown B.DE36": + exists "Unknown B.DE36 Condition" + or exists "Unknown B.DE36 Observation" +define "Unknown B.DE36 Condition": [Condition: Concepts."Unknown - HIV.B.DE36"] -define "Unknown (HTS|BDE36) Observation": - "Partner HIV status reported (HTS) Observation" O +define "Unknown B.DE36 Observation": + "Partner HIV status reported Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Unknown - HIV.B.DE36" -/* End of Unknown (HTS|BDE36) */ +/* End of Unknown B.DE36 */ /* @dataElement: HIV.B.DE49 - Key population member* @@ -513,13 +513,13 @@ define "Unknown (HTS|BDE36) Observation": @description: Client is a member of a key population that has an increased risk of HIV */ // TODO: Replace placeholder with relevant CQL logic -define "Key population member* (HTS)": - exists "Key population member* (HTS) Observation" -define "Key population member* (HTS) Observation": +define "Key population member* B.DE49": + exists "Key population member* B.DE49 Observation" +define "Key population member* B.DE49 Observation": [Observation: Concepts."Key population member* - HIV.B.DE49"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Key population member* (HTS) */ +/* End of Key population member* B.DE49 */ /* @dataElement: HIV.B.DE50 - Key population member type* @@ -527,12 +527,12 @@ define "Key population member* (HTS) Observation": @description: The type of key population that the client is included in */ // TODO: Replace placeholder with relevant CQL logic -define "Key population member type* (HTS)": - exists "Key population member type* (HTS) Observation" -define "Key population member type* (HTS) Observation": +define "Key population member type* B.DE50": + exists "Key population member type* B.DE50 Observation" +define "Key population member type* B.DE50 Observation": [Observation: Concepts."Key population member type* - HIV.B.DE50"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Key population member type* (HTS) */ +/* End of Key population member type* B.DE50 */ /* @dataElement: HIV.B.DE51 - Sex worker @@ -540,16 +540,16 @@ define "Key population member type* (HTS) Observation": @description: Client is a sex worker */ // TODO: Replace placeholder with relevant CQL logic -define "Sex worker (HTS)": - exists "Sex worker (HTS) Condition" - or exists "Sex worker (HTS) Observation" -define "Sex worker (HTS) Condition": +define "Sex worker B.DE51": + exists "Sex worker B.DE51 Condition" + or exists "Sex worker B.DE51 Observation" +define "Sex worker B.DE51 Condition": [Condition: Concepts."Sex worker - HIV.B.DE51"] -define "Sex worker (HTS) Observation": - "Key population member type* (HTS) Observation" O +define "Sex worker B.DE51 Observation": + "Key population member type* B.DE50 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Sex worker - HIV.B.DE51" -/* End of Sex worker (HTS) */ +/* End of Sex worker B.DE51 */ /* @dataElement: HIV.B.DE52 - Men who have sex with men @@ -557,16 +557,16 @@ define "Sex worker (HTS) Observation": @description: Client is a man who has sex with men */ // TODO: Replace placeholder with relevant CQL logic -define "Men who have sex with men (HTS)": - exists "Men who have sex with men (HTS) Condition" - or exists "Men who have sex with men (HTS) Observation" -define "Men who have sex with men (HTS) Condition": +define "Men who have sex with men": + exists "Men who have sex with men Condition" + or exists "Men who have sex with men Observation" +define "Men who have sex with men Condition": [Condition: Concepts."Men who have sex with men"] -define "Men who have sex with men (HTS) Observation": - "Key population member type* (HTS) Observation" O +define "Men who have sex with men Observation": + "Key population member type* B.DE50 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Men who have sex with men" -/* End of Men who have sex with men (HTS) */ +/* End of Men who have sex with men */ /* @dataElement: HIV.B.DE53 - Trans and gender-diverse people @@ -574,16 +574,16 @@ define "Men who have sex with men (HTS) Observation": @description: Client identifies as trans and gender-diverse */ // TODO: Replace placeholder with relevant CQL logic -define "Trans and gender-diverse people (HTS)": - exists "Trans and gender-diverse people (HTS) Condition" - or exists "Trans and gender-diverse people (HTS) Observation" -define "Trans and gender-diverse people (HTS) Condition": +define "Trans and gender-diverse people B.DE53": + exists "Trans and gender-diverse people B.DE53 Condition" + or exists "Trans and gender-diverse people B.DE53 Observation" +define "Trans and gender-diverse people B.DE53 Condition": [Condition: Concepts."Trans and gender-diverse people - HIV.B.DE53"] -define "Trans and gender-diverse people (HTS) Observation": - "Key population member type* (HTS) Observation" O +define "Trans and gender-diverse people B.DE53 Observation": + "Key population member type* B.DE50 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Trans and gender-diverse people - HIV.B.DE53" -/* End of Trans and gender-diverse people (HTS) */ +/* End of Trans and gender-diverse people B.DE53 */ /* @dataElement: HIV.B.DE54 - People who inject drugs @@ -591,16 +591,16 @@ define "Trans and gender-diverse people (HTS) Observation": @description: Client is a person who injects drugs */ // TODO: Replace placeholder with relevant CQL logic -define "People who inject drugs (HTS)": - exists "People who inject drugs (HTS) Condition" - or exists "People who inject drugs (HTS) Observation" -define "People who inject drugs (HTS) Condition": +define "People who inject drugs B.DE54": + exists "People who inject drugs B.DE54 Condition" + or exists "People who inject drugs B.DE54 Observation" +define "People who inject drugs B.DE54 Condition": [Condition: Concepts."People who inject drugs - HIV.B.DE54"] -define "People who inject drugs (HTS) Observation": - "Key population member type* (HTS) Observation" O +define "People who inject drugs B.DE54 Observation": + "Key population member type* B.DE50 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."People who inject drugs - HIV.B.DE54" -/* End of People who inject drugs (HTS) */ +/* End of People who inject drugs B.DE54 */ /* @dataElement: HIV.B.DE55 - People living in prisons and other closed settings @@ -608,16 +608,16 @@ define "People who inject drugs (HTS) Observation": @description: Client lives in a prison or another closed setting */ // TODO: Replace placeholder with relevant CQL logic -define "People living in prisons and other closed settings (HTS)": - exists "People living in prisons and other closed settings (HTS) Condition" - or exists "People living in prisons and other closed settings (HTS) Observation" -define "People living in prisons and other closed settings (HTS) Condition": +define "People living in prisons and other closed settings": + exists "People living in prisons and other closed settings Condition" + or exists "People living in prisons and other closed settings Observation" +define "People living in prisons and other closed settings Condition": [Condition: Concepts."People living in prisons and other closed settings"] -define "People living in prisons and other closed settings (HTS) Observation": - "Key population member type* (HTS) Observation" O +define "People living in prisons and other closed settings Observation": + "Key population member type* B.DE50 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."People living in prisons and other closed settings" -/* End of People living in prisons and other closed settings (HTS) */ +/* End of People living in prisons and other closed settings */ /* @dataElement: HIV.B.DE60 - Date HIV test results returned @@ -625,13 +625,13 @@ define "People living in prisons and other closed settings (HTS) Observation": @description: Date HIV test result returned to client */ // TODO: Replace placeholder with relevant CQL logic -define "Date HIV test results returned (HTS)": +define "Date HIV test results returned": [Observation: Concepts."Date HIV test results returned"] O where O.status in { 'final', 'amended', 'corrected' } -define "Date HIV test results returned (HTS) Value": - "Date HIV test results returned (HTS)" O +define "Date HIV test results returned Value": + "Date HIV test results returned" O return O.value -/* End of Date HIV test results returned (HTS) */ +/* End of Date HIV test results returned */ /* @dataElement: HIV.B.DE61 - HIV exposure type* @@ -639,12 +639,12 @@ define "Date HIV test results returned (HTS) Value": @description: Ways in which the client was exposed to HIV */ // TODO: Replace placeholder with relevant CQL logic -define "HIV exposure type* (HTS)": - exists "HIV exposure type* (HTS) Observation" -define "HIV exposure type* (HTS) Observation": +define "HIV exposure type*": + exists "HIV exposure type* Observation" +define "HIV exposure type* Observation": [Observation: Concepts."HIV exposure type*"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of HIV exposure type* (HTS) */ +/* End of HIV exposure type* */ /* @dataElement: HIV.B.DE62 - Occupational @@ -652,16 +652,16 @@ define "HIV exposure type* (HTS) Observation": @description: Occupational exposure to HIV */ // TODO: Replace placeholder with relevant CQL logic -define "Occupational (HTS)": - exists "Occupational (HTS) Condition" - or exists "Occupational (HTS) Observation" -define "Occupational (HTS) Condition": +define "Occupational": + exists "Occupational Condition" + or exists "Occupational Observation" +define "Occupational Condition": [Condition: Concepts."Occupational"] -define "Occupational (HTS) Observation": - "HIV exposure type* (HTS) Observation" O +define "Occupational Observation": + "HIV exposure type* Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Occupational" -/* End of Occupational (HTS) */ +/* End of Occupational */ /* @dataElement: HIV.B.DE63 - Non-occupational violent @@ -669,16 +669,16 @@ define "Occupational (HTS) Observation": @description: Non-occupational violent exposure to HIV */ // TODO: Replace placeholder with relevant CQL logic -define "Non-occupational violent (HTS)": - exists "Non-occupational violent (HTS) Condition" - or exists "Non-occupational violent (HTS) Observation" -define "Non-occupational violent (HTS) Condition": +define "Non-occupational violent": + exists "Non-occupational violent Condition" + or exists "Non-occupational violent Observation" +define "Non-occupational violent Condition": [Condition: Concepts."Non-occupational violent"] -define "Non-occupational violent (HTS) Observation": - "HIV exposure type* (HTS) Observation" O +define "Non-occupational violent Observation": + "HIV exposure type* Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Non-occupational violent" -/* End of Non-occupational violent (HTS) */ +/* End of Non-occupational violent */ /* @dataElement: HIV.B.DE64 - Non-occupational consensual sex @@ -686,16 +686,16 @@ define "Non-occupational violent (HTS) Observation": @description: Exposure to HIV through non-occupational consensual sex */ // TODO: Replace placeholder with relevant CQL logic -define "Non-occupational consensual sex (HTS)": - exists "Non-occupational consensual sex (HTS) Condition" - or exists "Non-occupational consensual sex (HTS) Observation" -define "Non-occupational consensual sex (HTS) Condition": +define "Non-occupational consensual sex": + exists "Non-occupational consensual sex Condition" + or exists "Non-occupational consensual sex Observation" +define "Non-occupational consensual sex Condition": [Condition: Concepts."Non-occupational consensual sex"] -define "Non-occupational consensual sex (HTS) Observation": - "HIV exposure type* (HTS) Observation" O +define "Non-occupational consensual sex Observation": + "HIV exposure type* Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Non-occupational consensual sex" -/* End of Non-occupational consensual sex (HTS) */ +/* End of Non-occupational consensual sex */ /* @dataElement: HIV.B.DE65 - Date informed of HIV-positive diagnosis @@ -703,13 +703,13 @@ define "Non-occupational consensual sex (HTS) Observation": @description: The date on which the client was diagnosed with HIV */ // TODO: Replace placeholder with relevant CQL logic -define "Date informed of HIV-positive diagnosis (HTS)": +define "Date informed of HIV-positive diagnosis": [Observation: Concepts."Date informed of HIV-positive diagnosis"] O where O.status in { 'final', 'amended', 'corrected' } -define "Date informed of HIV-positive diagnosis (HTS) Value": - "Date informed of HIV-positive diagnosis (HTS)" O +define "Date informed of HIV-positive diagnosis Value": + "Date informed of HIV-positive diagnosis" O return O.value -/* End of Date informed of HIV-positive diagnosis (HTS) */ +/* End of Date informed of HIV-positive diagnosis */ /* @dataElement: HIV.B.DE71 - HIV diagnosis date @@ -717,13 +717,13 @@ define "Date informed of HIV-positive diagnosis (HTS) Value": @description: Date diagnosis was returned to client */ // TODO: Replace placeholder with relevant CQL logic -define "HIV diagnosis date (HTS)": +define "HIV diagnosis date": [Observation: Concepts."HIV diagnosis date"] O where O.status in { 'final', 'amended', 'corrected' } -define "HIV diagnosis date (HTS) Value": - "HIV diagnosis date (HTS)" O +define "HIV diagnosis date Value": + "HIV diagnosis date" O return O.value -/* End of HIV diagnosis date (HTS) */ +/* End of HIV diagnosis date */ /* @dataElement: HIV.B.DE72 - ART start date @@ -731,13 +731,13 @@ define "HIV diagnosis date (HTS) Value": @description: The date on which the client started or restarted antiretroviral therapy (ART) */ // TODO: Replace placeholder with relevant CQL logic -define "ART start date (HTS)": +define "ART start date B.DE72": [Observation: Concepts."ART start date - HIV.B.DE72"] O where O.status in { 'final', 'amended', 'corrected' } -define "ART start date (HTS) Value": - "ART start date (HTS)" O +define "ART start date B.DE72 Value": + "ART start date B.DE72" O return O.value -/* End of ART start date (HTS) */ +/* End of ART start date B.DE72 */ /* @dataElement: HIV.B.DE80 - HIV test conducted @@ -745,13 +745,13 @@ define "ART start date (HTS) Value": @description: An HIV test was performed on the client during the visit */ // TODO: Replace placeholder with relevant CQL logic -define "HIV test conducted (HTS)": - exists "HIV test conducted (HTS) Observation" -define "HIV test conducted (HTS) Observation": +define "HIV test conducted": + exists "HIV test conducted Observation" +define "HIV test conducted Observation": [Observation: Concepts."HIV test conducted"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of HIV test conducted (HTS) */ +/* End of HIV test conducted */ /* @dataElement: HIV.B.DE81 - HIV test type @@ -759,12 +759,12 @@ define "HIV test conducted (HTS) Observation": @description: Type of HIV test */ // TODO: Replace placeholder with relevant CQL logic -define "HIV test type (HTS)": - exists "HIV test type (HTS) Observation" -define "HIV test type (HTS) Observation": +define "HIV test type B.DE81": + exists "HIV test type B.DE81 Observation" +define "HIV test type B.DE81 Observation": [Observation: Concepts."HIV test type - HIV.B.DE81"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of HIV test type (HTS) */ +/* End of HIV test type B.DE81 */ /* @dataElement: HIV.B.DE82 - Rapid diagnostic test for HIV @@ -772,16 +772,16 @@ define "HIV test type (HTS) Observation": @description: Antibody test for HIV performed with a rapid diagnostic */ // TODO: Replace placeholder with relevant CQL logic -define "Rapid diagnostic test for HIV (HTS)": - exists "Rapid diagnostic test for HIV (HTS) Condition" - or exists "Rapid diagnostic test for HIV (HTS) Observation" -define "Rapid diagnostic test for HIV (HTS) Condition": +define "Rapid diagnostic test for HIV B.DE82": + exists "Rapid diagnostic test for HIV B.DE82 Condition" + or exists "Rapid diagnostic test for HIV B.DE82 Observation" +define "Rapid diagnostic test for HIV B.DE82 Condition": [Condition: Concepts."Rapid diagnostic test for HIV - HIV.B.DE82"] -define "Rapid diagnostic test for HIV (HTS) Observation": - "HIV test type (HTS) Observation" O +define "Rapid diagnostic test for HIV B.DE82 Observation": + "HIV test type B.DE81 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Rapid diagnostic test for HIV - HIV.B.DE82" -/* End of Rapid diagnostic test for HIV (HTS) */ +/* End of Rapid diagnostic test for HIV B.DE82 */ /* @dataElement: HIV.B.DE83 - Enzyme immunoassay for HIV @@ -789,16 +789,16 @@ define "Rapid diagnostic test for HIV (HTS) Observation": @description: Antibody test for HIV performed with an enzyme immunoassay */ // TODO: Replace placeholder with relevant CQL logic -define "Enzyme immunoassay for HIV (HTS)": - exists "Enzyme immunoassay for HIV (HTS) Condition" - or exists "Enzyme immunoassay for HIV (HTS) Observation" -define "Enzyme immunoassay for HIV (HTS) Condition": +define "Enzyme immunoassay for HIV B.DE83": + exists "Enzyme immunoassay for HIV B.DE83 Condition" + or exists "Enzyme immunoassay for HIV B.DE83 Observation" +define "Enzyme immunoassay for HIV B.DE83 Condition": [Condition: Concepts."Enzyme immunoassay for HIV - HIV.B.DE83"] -define "Enzyme immunoassay for HIV (HTS) Observation": - "HIV test type (HTS) Observation" O +define "Enzyme immunoassay for HIV B.DE83 Observation": + "HIV test type B.DE81 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Enzyme immunoassay for HIV - HIV.B.DE83" -/* End of Enzyme immunoassay for HIV (HTS) */ +/* End of Enzyme immunoassay for HIV B.DE83 */ /* @dataElement: HIV.B.DE84 - Nucleic acid test for HIV @@ -806,16 +806,16 @@ define "Enzyme immunoassay for HIV (HTS) Observation": @description: Virological test, which includes testing for early infant diagnosis */ // TODO: Replace placeholder with relevant CQL logic -define "Nucleic acid test for HIV (HTS)": - exists "Nucleic acid test for HIV (HTS) Condition" - or exists "Nucleic acid test for HIV (HTS) Observation" -define "Nucleic acid test for HIV (HTS) Condition": +define "Nucleic acid test for HIV B.DE84": + exists "Nucleic acid test for HIV B.DE84 Condition" + or exists "Nucleic acid test for HIV B.DE84 Observation" +define "Nucleic acid test for HIV B.DE84 Condition": [Condition: Concepts."Nucleic acid test for HIV - HIV.B.DE84"] -define "Nucleic acid test for HIV (HTS) Observation": - "HIV test type (HTS) Observation" O +define "Nucleic acid test for HIV B.DE84 Observation": + "HIV test type B.DE81 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Nucleic acid test for HIV - HIV.B.DE84" -/* End of Nucleic acid test for HIV (HTS) */ +/* End of Nucleic acid test for HIV B.DE84 */ /* @dataElement: HIV.B.DE85 - Dual HIV/syphilis rapid diagnostic test @@ -823,16 +823,16 @@ define "Nucleic acid test for HIV (HTS) Observation": @description: Antibody test for HIV and syphilis performed with a rapid diagnostic */ // TODO: Replace placeholder with relevant CQL logic -define "Dual HIV/syphilis rapid diagnostic test (HTS)": - exists "Dual HIV/syphilis rapid diagnostic test (HTS) Condition" - or exists "Dual HIV/syphilis rapid diagnostic test (HTS) Observation" -define "Dual HIV/syphilis rapid diagnostic test (HTS) Condition": +define "Dual HIV/syphilis rapid diagnostic test B.DE85": + exists "Dual HIV/syphilis rapid diagnostic test B.DE85 Condition" + or exists "Dual HIV/syphilis rapid diagnostic test B.DE85 Observation" +define "Dual HIV/syphilis rapid diagnostic test B.DE85 Condition": [Condition: Concepts."Dual HIV/syphilis rapid diagnostic test - HIV.B.DE85"] -define "Dual HIV/syphilis rapid diagnostic test (HTS) Observation": - "HIV test type (HTS) Observation" O +define "Dual HIV/syphilis rapid diagnostic test B.DE85 Observation": + "HIV test type B.DE81 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Dual HIV/syphilis rapid diagnostic test - HIV.B.DE85" -/* End of Dual HIV/syphilis rapid diagnostic test (HTS) */ +/* End of Dual HIV/syphilis rapid diagnostic test B.DE85 */ /* @dataElement: HIV.B.DE86 - HIV self-test @@ -840,16 +840,16 @@ define "Dual HIV/syphilis rapid diagnostic test (HTS) Observation": @description: Antibody test for HIV performed by self-tester using a rapid diagnostic */ // TODO: Replace placeholder with relevant CQL logic -define "HIV self-test (HTS)": - exists "HIV self-test (HTS) Condition" - or exists "HIV self-test (HTS) Observation" -define "HIV self-test (HTS) Condition": +define "HIV self-test": + exists "HIV self-test Condition" + or exists "HIV self-test Observation" +define "HIV self-test Condition": [Condition: Concepts."HIV self-test"] -define "HIV self-test (HTS) Observation": - "HIV test type (HTS) Observation" O +define "HIV self-test Observation": + "HIV test type B.DE81 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."HIV self-test" -/* End of HIV self-test (HTS) */ +/* End of HIV self-test */ /* @dataElement: HIV.B.DE88 - Assay number in testing strategy @@ -857,12 +857,12 @@ define "HIV self-test (HTS) Observation": @description: The number of the assay (test kit) in the HIV testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Assay number in testing strategy (HTS)": - exists "Assay number in testing strategy (HTS) Observation" -define "Assay number in testing strategy (HTS) Observation": +define "Assay number in testing strategy B.DE88": + exists "Assay number in testing strategy B.DE88 Observation" +define "Assay number in testing strategy B.DE88 Observation": [Observation: Concepts."Assay number in testing strategy - HIV.B.DE88"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Assay number in testing strategy (HTS) */ +/* End of Assay number in testing strategy B.DE88 */ /* @dataElement: HIV.B.DE89 - Assay 0 @@ -870,16 +870,16 @@ define "Assay number in testing strategy (HTS) Observation": @description: A community outreach test-for-triage or self-test which is not included in the HIV testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Assay 0 (HTS)": - exists "Assay 0 (HTS) Condition" - or exists "Assay 0 (HTS) Observation" -define "Assay 0 (HTS) Condition": +define "Assay 0 B.DE89": + exists "Assay 0 B.DE89 Condition" + or exists "Assay 0 B.DE89 Observation" +define "Assay 0 B.DE89 Condition": [Condition: Concepts."Assay 0 - HIV.B.DE89"] -define "Assay 0 (HTS) Observation": - "Assay number in testing strategy (HTS) Observation" O +define "Assay 0 B.DE89 Observation": + "Assay number in testing strategy B.DE88 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Assay 0 - HIV.B.DE89" -/* End of Assay 0 (HTS) */ +/* End of Assay 0 B.DE89 */ /* @dataElement: HIV.B.DE90 - Assay 1 @@ -887,16 +887,16 @@ define "Assay 0 (HTS) Observation": @description: The first test in the HIV testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Assay 1 (HTS)": - exists "Assay 1 (HTS) Condition" - or exists "Assay 1 (HTS) Observation" -define "Assay 1 (HTS) Condition": +define "Assay 1 B.DE90": + exists "Assay 1 B.DE90 Condition" + or exists "Assay 1 B.DE90 Observation" +define "Assay 1 B.DE90 Condition": [Condition: Concepts."Assay 1 - HIV.B.DE90"] -define "Assay 1 (HTS) Observation": - "Assay number in testing strategy (HTS) Observation" O +define "Assay 1 B.DE90 Observation": + "Assay number in testing strategy B.DE88 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Assay 1 - HIV.B.DE90" -/* End of Assay 1 (HTS) */ +/* End of Assay 1 B.DE90 */ /* @dataElement: HIV.B.DE91 - Assay 2 @@ -904,16 +904,16 @@ define "Assay 1 (HTS) Observation": @description: The second test in the HIV testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Assay 2 (HTS)": - exists "Assay 2 (HTS) Condition" - or exists "Assay 2 (HTS) Observation" -define "Assay 2 (HTS) Condition": +define "Assay 2 B.DE91": + exists "Assay 2 B.DE91 Condition" + or exists "Assay 2 B.DE91 Observation" +define "Assay 2 B.DE91 Condition": [Condition: Concepts."Assay 2 - HIV.B.DE91"] -define "Assay 2 (HTS) Observation": - "Assay number in testing strategy (HTS) Observation" O +define "Assay 2 B.DE91 Observation": + "Assay number in testing strategy B.DE88 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Assay 2 - HIV.B.DE91" -/* End of Assay 2 (HTS) */ +/* End of Assay 2 B.DE91 */ /* @dataElement: HIV.B.DE92 - Assay 3 @@ -921,16 +921,16 @@ define "Assay 2 (HTS) Observation": @description: The third test in the HIV testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Assay 3 (HTS)": - exists "Assay 3 (HTS) Condition" - or exists "Assay 3 (HTS) Observation" -define "Assay 3 (HTS) Condition": +define "Assay 3 B.DE92": + exists "Assay 3 B.DE92 Condition" + or exists "Assay 3 B.DE92 Observation" +define "Assay 3 B.DE92 Condition": [Condition: Concepts."Assay 3 - HIV.B.DE92"] -define "Assay 3 (HTS) Observation": - "Assay number in testing strategy (HTS) Observation" O +define "Assay 3 B.DE92 Observation": + "Assay number in testing strategy B.DE88 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Assay 3 - HIV.B.DE92" -/* End of Assay 3 (HTS) */ +/* End of Assay 3 B.DE92 */ /* @dataElement: HIV.B.DE93 - Assay 1 repeated @@ -938,16 +938,16 @@ define "Assay 3 (HTS) Observation": @description: The first test in the HIV testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Assay 1 repeated (HTS)": - exists "Assay 1 repeated (HTS) Condition" - or exists "Assay 1 repeated (HTS) Observation" -define "Assay 1 repeated (HTS) Condition": +define "Assay 1 repeated B.DE93": + exists "Assay 1 repeated B.DE93 Condition" + or exists "Assay 1 repeated B.DE93 Observation" +define "Assay 1 repeated B.DE93 Condition": [Condition: Concepts."Assay 1 repeated - HIV.B.DE93"] -define "Assay 1 repeated (HTS) Observation": - "Assay number in testing strategy (HTS) Observation" O +define "Assay 1 repeated B.DE93 Observation": + "Assay number in testing strategy B.DE88 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Assay 1 repeated - HIV.B.DE93" -/* End of Assay 1 repeated (HTS) */ +/* End of Assay 1 repeated B.DE93 */ /* @dataElement: HIV.B.DE94 - Test result of HIV assay 1 @@ -955,12 +955,12 @@ define "Assay 1 repeated (HTS) Observation": @description: The result of the first HIV assay in the testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Test result of HIV assay 1 (HTS)": - exists "Test result of HIV assay 1 (HTS) Observation" -define "Test result of HIV assay 1 (HTS) Observation": +define "Test result of HIV assay 1 B.DE94": + exists "Test result of HIV assay 1 B.DE94 Observation" +define "Test result of HIV assay 1 B.DE94 Observation": [Observation: Concepts."Test result of HIV assay 1 - HIV.B.DE94"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Test result of HIV assay 1 (HTS) */ +/* End of Test result of HIV assay 1 B.DE94 */ /* @dataElement: HIV.B.DE95 - Reactive @@ -968,16 +968,16 @@ define "Test result of HIV assay 1 (HTS) Observation": @description: The result of the HIV assay in the testing strategy was reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Reactive (HTS|BDE95)": - exists "Reactive (HTS|BDE95) Condition" - or exists "Reactive (HTS|BDE95) Observation" -define "Reactive (HTS|BDE95) Condition": +define "Reactive B.DE95": + exists "Reactive B.DE95 Condition" + or exists "Reactive B.DE95 Observation" +define "Reactive B.DE95 Condition": [Condition: Concepts."Reactive - HIV.B.DE95"] -define "Reactive (HTS|BDE95) Observation": - "Test result of HIV assay 1 (HTS) Observation" O +define "Reactive B.DE95 Observation": + "Test result of HIV assay 1 B.DE94 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Reactive - HIV.B.DE95" -/* End of Reactive (HTS|BDE95) */ +/* End of Reactive B.DE95 */ /* @dataElement: HIV.B.DE96 - Non-reactive @@ -985,16 +985,16 @@ define "Reactive (HTS|BDE95) Observation": @description: The result of the HIV assay in the testing strategy was non-reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Non-reactive (HTS|BDE96)": - exists "Non-reactive (HTS|BDE96) Condition" - or exists "Non-reactive (HTS|BDE96) Observation" -define "Non-reactive (HTS|BDE96) Condition": +define "Non-reactive B.DE96": + exists "Non-reactive B.DE96 Condition" + or exists "Non-reactive B.DE96 Observation" +define "Non-reactive B.DE96 Condition": [Condition: Concepts."Non-reactive - HIV.B.DE96"] -define "Non-reactive (HTS|BDE96) Observation": - "Test result of HIV assay 1 (HTS) Observation" O +define "Non-reactive B.DE96 Observation": + "Test result of HIV assay 1 B.DE94 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Non-reactive - HIV.B.DE96" -/* End of Non-reactive (HTS|BDE96) */ +/* End of Non-reactive B.DE96 */ /* @dataElement: HIV.B.DE97 - Invalid @@ -1002,16 +1002,16 @@ define "Non-reactive (HTS|BDE96) Observation": @description: The result of the HIV assay in the testing strategy was invalid */ // TODO: Replace placeholder with relevant CQL logic -define "Invalid (HTS|BDE97)": - exists "Invalid (HTS|BDE97) Condition" - or exists "Invalid (HTS|BDE97) Observation" -define "Invalid (HTS|BDE97) Condition": +define "Invalid B.DE97": + exists "Invalid B.DE97 Condition" + or exists "Invalid B.DE97 Observation" +define "Invalid B.DE97 Condition": [Condition: Concepts."Invalid - HIV.B.DE97"] -define "Invalid (HTS|BDE97) Observation": - "Test result of HIV assay 1 (HTS) Observation" O +define "Invalid B.DE97 Observation": + "Test result of HIV assay 1 B.DE94 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Invalid - HIV.B.DE97" -/* End of Invalid (HTS|BDE97) */ +/* End of Invalid B.DE97 */ /* @dataElement: HIV.B.DE98 - Test result of HIV assay 2 @@ -1019,12 +1019,12 @@ define "Invalid (HTS|BDE97) Observation": @description: The result of the second HIV assay in the testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Test result of HIV assay 2 (HTS)": - exists "Test result of HIV assay 2 (HTS) Observation" -define "Test result of HIV assay 2 (HTS) Observation": +define "Test result of HIV assay 2 B.DE98": + exists "Test result of HIV assay 2 B.DE98 Observation" +define "Test result of HIV assay 2 B.DE98 Observation": [Observation: Concepts."Test result of HIV assay 2 - HIV.B.DE98"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Test result of HIV assay 2 (HTS) */ +/* End of Test result of HIV assay 2 B.DE98 */ /* @dataElement: HIV.B.DE99 - Reactive @@ -1032,16 +1032,16 @@ define "Test result of HIV assay 2 (HTS) Observation": @description: The result of the HIV assay in the testing strategy was reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Reactive (HTS|BDE99)": - exists "Reactive (HTS|BDE99) Condition" - or exists "Reactive (HTS|BDE99) Observation" -define "Reactive (HTS|BDE99) Condition": +define "Reactive B.DE99": + exists "Reactive B.DE99 Condition" + or exists "Reactive B.DE99 Observation" +define "Reactive B.DE99 Condition": [Condition: Concepts."Reactive - HIV.B.DE99"] -define "Reactive (HTS|BDE99) Observation": - "Test result of HIV assay 2 (HTS) Observation" O +define "Reactive B.DE99 Observation": + "Test result of HIV assay 2 B.DE98 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Reactive - HIV.B.DE99" -/* End of Reactive (HTS|BDE99) */ +/* End of Reactive B.DE99 */ /* @dataElement: HIV.B.DE100 - Non-reactive @@ -1049,16 +1049,16 @@ define "Reactive (HTS|BDE99) Observation": @description: The result of the HIV assay in the testing strategy was non-reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Non-reactive (HTS|BDE100)": - exists "Non-reactive (HTS|BDE100) Condition" - or exists "Non-reactive (HTS|BDE100) Observation" -define "Non-reactive (HTS|BDE100) Condition": +define "Non-reactive B.DE100": + exists "Non-reactive B.DE100 Condition" + or exists "Non-reactive B.DE100 Observation" +define "Non-reactive B.DE100 Condition": [Condition: Concepts."Non-reactive - HIV.B.DE100"] -define "Non-reactive (HTS|BDE100) Observation": - "Test result of HIV assay 2 (HTS) Observation" O +define "Non-reactive B.DE100 Observation": + "Test result of HIV assay 2 B.DE98 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Non-reactive - HIV.B.DE100" -/* End of Non-reactive (HTS|BDE100) */ +/* End of Non-reactive B.DE100 */ /* @dataElement: HIV.B.DE101 - Invalid @@ -1066,16 +1066,16 @@ define "Non-reactive (HTS|BDE100) Observation": @description: The result of the HIV assay in the testing strategy was invalid */ // TODO: Replace placeholder with relevant CQL logic -define "Invalid (HTS|BDE101)": - exists "Invalid (HTS|BDE101) Condition" - or exists "Invalid (HTS|BDE101) Observation" -define "Invalid (HTS|BDE101) Condition": +define "Invalid B.DE101": + exists "Invalid B.DE101 Condition" + or exists "Invalid B.DE101 Observation" +define "Invalid B.DE101 Condition": [Condition: Concepts."Invalid - HIV.B.DE101"] -define "Invalid (HTS|BDE101) Observation": - "Test result of HIV assay 2 (HTS) Observation" O +define "Invalid B.DE101 Observation": + "Test result of HIV assay 2 B.DE98 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Invalid - HIV.B.DE101" -/* End of Invalid (HTS|BDE101) */ +/* End of Invalid B.DE101 */ /* @dataElement: HIV.B.DE102 - Test result of HIV assay 3 @@ -1083,12 +1083,12 @@ define "Invalid (HTS|BDE101) Observation": @description: The result of the third HIV assay in the testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Test result of HIV assay 3 (HTS)": - exists "Test result of HIV assay 3 (HTS) Observation" -define "Test result of HIV assay 3 (HTS) Observation": +define "Test result of HIV assay 3 B.DE102": + exists "Test result of HIV assay 3 B.DE102 Observation" +define "Test result of HIV assay 3 B.DE102 Observation": [Observation: Concepts."Test result of HIV assay 3 - HIV.B.DE102"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Test result of HIV assay 3 (HTS) */ +/* End of Test result of HIV assay 3 B.DE102 */ /* @dataElement: HIV.B.DE103 - Reactive @@ -1096,16 +1096,16 @@ define "Test result of HIV assay 3 (HTS) Observation": @description: The result of the HIV assay in the testing strategy was reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Reactive (HTS|BDE103)": - exists "Reactive (HTS|BDE103) Condition" - or exists "Reactive (HTS|BDE103) Observation" -define "Reactive (HTS|BDE103) Condition": +define "Reactive B.DE103": + exists "Reactive B.DE103 Condition" + or exists "Reactive B.DE103 Observation" +define "Reactive B.DE103 Condition": [Condition: Concepts."Reactive - HIV.B.DE103"] -define "Reactive (HTS|BDE103) Observation": - "Test result of HIV assay 3 (HTS) Observation" O +define "Reactive B.DE103 Observation": + "Test result of HIV assay 3 B.DE102 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Reactive - HIV.B.DE103" -/* End of Reactive (HTS|BDE103) */ +/* End of Reactive B.DE103 */ /* @dataElement: HIV.B.DE104 - Non-reactive @@ -1113,16 +1113,16 @@ define "Reactive (HTS|BDE103) Observation": @description: The result of the HIV assay in the testing strategy was non-reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Non-reactive (HTS|BDE104)": - exists "Non-reactive (HTS|BDE104) Condition" - or exists "Non-reactive (HTS|BDE104) Observation" -define "Non-reactive (HTS|BDE104) Condition": +define "Non-reactive B.DE104": + exists "Non-reactive B.DE104 Condition" + or exists "Non-reactive B.DE104 Observation" +define "Non-reactive B.DE104 Condition": [Condition: Concepts."Non-reactive - HIV.B.DE104"] -define "Non-reactive (HTS|BDE104) Observation": - "Test result of HIV assay 3 (HTS) Observation" O +define "Non-reactive B.DE104 Observation": + "Test result of HIV assay 3 B.DE102 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Non-reactive - HIV.B.DE104" -/* End of Non-reactive (HTS|BDE104) */ +/* End of Non-reactive B.DE104 */ /* @dataElement: HIV.B.DE105 - Invalid @@ -1130,16 +1130,16 @@ define "Non-reactive (HTS|BDE104) Observation": @description: The result of the HIV assay in the testing strategy was invalid */ // TODO: Replace placeholder with relevant CQL logic -define "Invalid (HTS|BDE105)": - exists "Invalid (HTS|BDE105) Condition" - or exists "Invalid (HTS|BDE105) Observation" -define "Invalid (HTS|BDE105) Condition": +define "Invalid B.DE105": + exists "Invalid B.DE105 Condition" + or exists "Invalid B.DE105 Observation" +define "Invalid B.DE105 Condition": [Condition: Concepts."Invalid - HIV.B.DE105"] -define "Invalid (HTS|BDE105) Observation": - "Test result of HIV assay 3 (HTS) Observation" O +define "Invalid B.DE105 Observation": + "Test result of HIV assay 3 B.DE102 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Invalid - HIV.B.DE105" -/* End of Invalid (HTS|BDE105) */ +/* End of Invalid B.DE105 */ /* @dataElement: HIV.B.DE106 - Test result of HIV assay 1 repeated @@ -1147,12 +1147,12 @@ define "Invalid (HTS|BDE105) Observation": @description: The result of the repeated first HIV assay in the testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Test result of HIV assay 1 repeated (HTS)": - exists "Test result of HIV assay 1 repeated (HTS) Observation" -define "Test result of HIV assay 1 repeated (HTS) Observation": +define "Test result of HIV assay 1 repeated B.DE106": + exists "Test result of HIV assay 1 repeated B.DE106 Observation" +define "Test result of HIV assay 1 repeated B.DE106 Observation": [Observation: Concepts."Test result of HIV assay 1 repeated - HIV.B.DE106"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Test result of HIV assay 1 repeated (HTS) */ +/* End of Test result of HIV assay 1 repeated B.DE106 */ /* @dataElement: HIV.B.DE107 - Reactive @@ -1160,16 +1160,16 @@ define "Test result of HIV assay 1 repeated (HTS) Observation": @description: The result of the HIV assay in the testing strategy was reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Reactive (HTS|BDE107)": - exists "Reactive (HTS|BDE107) Condition" - or exists "Reactive (HTS|BDE107) Observation" -define "Reactive (HTS|BDE107) Condition": +define "Reactive B.DE107": + exists "Reactive B.DE107 Condition" + or exists "Reactive B.DE107 Observation" +define "Reactive B.DE107 Condition": [Condition: Concepts."Reactive - HIV.B.DE107"] -define "Reactive (HTS|BDE107) Observation": - "Test result of HIV assay 1 repeated (HTS) Observation" O +define "Reactive B.DE107 Observation": + "Test result of HIV assay 1 repeated B.DE106 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Reactive - HIV.B.DE107" -/* End of Reactive (HTS|BDE107) */ +/* End of Reactive B.DE107 */ /* @dataElement: HIV.B.DE108 - Non-reactive @@ -1177,16 +1177,16 @@ define "Reactive (HTS|BDE107) Observation": @description: The result of the HIV assay in the testing strategy was non-reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Non-reactive (HTS|BDE108)": - exists "Non-reactive (HTS|BDE108) Condition" - or exists "Non-reactive (HTS|BDE108) Observation" -define "Non-reactive (HTS|BDE108) Condition": +define "Non-reactive B.DE108": + exists "Non-reactive B.DE108 Condition" + or exists "Non-reactive B.DE108 Observation" +define "Non-reactive B.DE108 Condition": [Condition: Concepts."Non-reactive - HIV.B.DE108"] -define "Non-reactive (HTS|BDE108) Observation": - "Test result of HIV assay 1 repeated (HTS) Observation" O +define "Non-reactive B.DE108 Observation": + "Test result of HIV assay 1 repeated B.DE106 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Non-reactive - HIV.B.DE108" -/* End of Non-reactive (HTS|BDE108) */ +/* End of Non-reactive B.DE108 */ /* @dataElement: HIV.B.DE109 - Invalid @@ -1194,16 +1194,16 @@ define "Non-reactive (HTS|BDE108) Observation": @description: The result of the HIV assay in the testing strategy was invalid */ // TODO: Replace placeholder with relevant CQL logic -define "Invalid (HTS|BDE109)": - exists "Invalid (HTS|BDE109) Condition" - or exists "Invalid (HTS|BDE109) Observation" -define "Invalid (HTS|BDE109) Condition": +define "Invalid B.DE109": + exists "Invalid B.DE109 Condition" + or exists "Invalid B.DE109 Observation" +define "Invalid B.DE109 Condition": [Condition: Concepts."Invalid - HIV.B.DE109"] -define "Invalid (HTS|BDE109) Observation": - "Test result of HIV assay 1 repeated (HTS) Observation" O +define "Invalid B.DE109 Observation": + "Test result of HIV assay 1 repeated B.DE106 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Invalid - HIV.B.DE109" -/* End of Invalid (HTS|BDE109) */ +/* End of Invalid B.DE109 */ /* @dataElement: HIV.B.DE110 - HIV test date @@ -1211,13 +1211,13 @@ define "Invalid (HTS|BDE109) Observation": @description: Date of the HIV test */ // TODO: Replace placeholder with relevant CQL logic -define "HIV test date (HTS)": +define "HIV test date B.DE110": [Observation: Concepts."HIV test date - HIV.B.DE110"] O where O.status in { 'final', 'amended', 'corrected' } -define "HIV test date (HTS) Value": - "HIV test date (HTS)" O +define "HIV test date B.DE110 Value": + "HIV test date B.DE110" O return O.value -/* End of HIV test date (HTS) */ +/* End of HIV test date B.DE110 */ /* @dataElement: HIV.B.DE111 - HIV test result @@ -1225,12 +1225,12 @@ define "HIV test date (HTS) Value": @description: The result from HIV testing after applying the testing algorithm */ // TODO: Replace placeholder with relevant CQL logic -define "HIV test result (HTS)": - exists "HIV test result (HTS) Observation" -define "HIV test result (HTS) Observation": +define "HIV test result B.DE111": + exists "HIV test result B.DE111 Observation" +define "HIV test result B.DE111 Observation": [Observation: Concepts."HIV test result - HIV.B.DE111"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of HIV test result (HTS) */ +/* End of HIV test result B.DE111 */ /* @dataElement: HIV.B.DE112 - HIV-positive @@ -1238,16 +1238,16 @@ define "HIV test result (HTS) Observation": @description: Test result is HIV-positive */ // TODO: Replace placeholder with relevant CQL logic -define "HIV-positive (HTS|BDE112)": - exists "HIV-positive (HTS|BDE112) Condition" - or exists "HIV-positive (HTS|BDE112) Observation" -define "HIV-positive (HTS|BDE112) Condition": +define "HIV-positive B.DE112": + exists "HIV-positive B.DE112 Condition" + or exists "HIV-positive B.DE112 Observation" +define "HIV-positive B.DE112 Condition": [Condition: Concepts."HIV-positive - HIV.B.DE112"] -define "HIV-positive (HTS|BDE112) Observation": - "HIV test result (HTS) Observation" O +define "HIV-positive B.DE112 Observation": + "HIV test result B.DE111 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."HIV-positive - HIV.B.DE112" -/* End of HIV-positive (HTS|BDE112) */ +/* End of HIV-positive B.DE112 */ /* @dataElement: HIV.B.DE113 - HIV-negative @@ -1255,16 +1255,16 @@ define "HIV-positive (HTS|BDE112) Observation": @description: Test result is HIV-negative */ // TODO: Replace placeholder with relevant CQL logic -define "HIV-negative (HTS|BDE113)": - exists "HIV-negative (HTS|BDE113) Condition" - or exists "HIV-negative (HTS|BDE113) Observation" -define "HIV-negative (HTS|BDE113) Condition": +define "HIV-negative B.DE113": + exists "HIV-negative B.DE113 Condition" + or exists "HIV-negative B.DE113 Observation" +define "HIV-negative B.DE113 Condition": [Condition: Concepts."HIV-negative - HIV.B.DE113"] -define "HIV-negative (HTS|BDE113) Observation": - "HIV test result (HTS) Observation" O +define "HIV-negative B.DE113 Observation": + "HIV test result B.DE111 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."HIV-negative - HIV.B.DE113" -/* End of HIV-negative (HTS|BDE113) */ +/* End of HIV-negative B.DE113 */ /* @dataElement: HIV.B.DE114 - HIV-inconclusive @@ -1272,16 +1272,16 @@ define "HIV-negative (HTS|BDE113) Observation": @description: Test result is HIV-inconclusive */ // TODO: Replace placeholder with relevant CQL logic -define "HIV-inconclusive (HTS)": - exists "HIV-inconclusive (HTS) Condition" - or exists "HIV-inconclusive (HTS) Observation" -define "HIV-inconclusive (HTS) Condition": +define "HIV-inconclusive": + exists "HIV-inconclusive Condition" + or exists "HIV-inconclusive Observation" +define "HIV-inconclusive Condition": [Condition: Concepts."HIV-inconclusive"] -define "HIV-inconclusive (HTS) Observation": - "HIV test result (HTS) Observation" O +define "HIV-inconclusive Observation": + "HIV test result B.DE111 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."HIV-inconclusive" -/* End of HIV-inconclusive (HTS) */ +/* End of HIV-inconclusive */ /* @dataElement: HIV.B.DE115 - HIV status @@ -1289,12 +1289,12 @@ define "HIV-inconclusive (HTS) Observation": @description: HIV status reported after applying the national HIV testing algorithm. No single HIV test can provide an HIV-positive diagnosis. */ // TODO: Replace placeholder with relevant CQL logic -define "HIV status (HTS)": - exists "HIV status (HTS) Observation" -define "HIV status (HTS) Observation": +define "HIV status": + exists "HIV status Observation" +define "HIV status Observation": [Observation: Concepts."HIV status"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of HIV status (HTS) */ +/* End of HIV status */ /* @dataElement: HIV.B.DE116 - HIV-positive @@ -1302,16 +1302,16 @@ define "HIV status (HTS) Observation": @description: Client is HIV-positive */ // TODO: Replace placeholder with relevant CQL logic -define "HIV-positive (HTS|BDE116)": - exists "HIV-positive (HTS|BDE116) Condition" - or exists "HIV-positive (HTS|BDE116) Observation" -define "HIV-positive (HTS|BDE116) Condition": +define "HIV-positive B.DE116": + exists "HIV-positive B.DE116 Condition" + or exists "HIV-positive B.DE116 Observation" +define "HIV-positive B.DE116 Condition": [Condition: Concepts."HIV-positive - HIV.B.DE116"] -define "HIV-positive (HTS|BDE116) Observation": - "HIV status (HTS) Observation" O +define "HIV-positive B.DE116 Observation": + "HIV status Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."HIV-positive - HIV.B.DE116" -/* End of HIV-positive (HTS|BDE116) */ +/* End of HIV-positive B.DE116 */ /* @dataElement: HIV.B.DE117 - HIV-negative @@ -1319,16 +1319,16 @@ define "HIV-positive (HTS|BDE116) Observation": @description: Client is HIV-negative */ // TODO: Replace placeholder with relevant CQL logic -define "HIV-negative (HTS|BDE117)": - exists "HIV-negative (HTS|BDE117) Condition" - or exists "HIV-negative (HTS|BDE117) Observation" -define "HIV-negative (HTS|BDE117) Condition": +define "HIV-negative B.DE117": + exists "HIV-negative B.DE117 Condition" + or exists "HIV-negative B.DE117 Observation" +define "HIV-negative B.DE117 Condition": [Condition: Concepts."HIV-negative - HIV.B.DE117"] -define "HIV-negative (HTS|BDE117) Observation": - "HIV status (HTS) Observation" O +define "HIV-negative B.DE117 Observation": + "HIV status Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."HIV-negative - HIV.B.DE117" -/* End of HIV-negative (HTS|BDE117) */ +/* End of HIV-negative B.DE117 */ /* @dataElement: HIV.B.DE118 - Unknown @@ -1336,16 +1336,16 @@ define "HIV-negative (HTS|BDE117) Observation": @description: Client has unknown HIV status */ // TODO: Replace placeholder with relevant CQL logic -define "Unknown (HTS|BDE118)": - exists "Unknown (HTS|BDE118) Condition" - or exists "Unknown (HTS|BDE118) Observation" -define "Unknown (HTS|BDE118) Condition": +define "Unknown B.DE118": + exists "Unknown B.DE118 Condition" + or exists "Unknown B.DE118 Observation" +define "Unknown B.DE118 Condition": [Condition: Concepts."Unknown - HIV.B.DE118"] -define "Unknown (HTS|BDE118) Observation": - "HIV status (HTS) Observation" O +define "Unknown B.DE118 Observation": + "HIV status Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Unknown - HIV.B.DE118" -/* End of Unknown (HTS|BDE118) */ +/* End of Unknown B.DE118 */ /* @dataElement: HIV.B.DE121 - Probable route of transmission* @@ -1353,12 +1353,12 @@ define "Unknown (HTS|BDE118) Observation": @description: Probable route(s) of transmission of HIV to client */ // TODO: Replace placeholder with relevant CQL logic -define "Probable route of transmission* (HTS)": - exists "Probable route of transmission* (HTS) Observation" -define "Probable route of transmission* (HTS) Observation": +define "Probable route of transmission*": + exists "Probable route of transmission* Observation" +define "Probable route of transmission* Observation": [Observation: Concepts."Probable route of transmission*"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Probable route of transmission* (HTS) */ +/* End of Probable route of transmission* */ /* @dataElement: HIV.B.DE122 - Heterosexual sex @@ -1366,16 +1366,16 @@ define "Probable route of transmission* (HTS) Observation": @description: Probable route of HIV transmission was through heterosexual sex */ // TODO: Replace placeholder with relevant CQL logic -define "Heterosexual sex (HTS)": - exists "Heterosexual sex (HTS) Condition" - or exists "Heterosexual sex (HTS) Observation" -define "Heterosexual sex (HTS) Condition": +define "Heterosexual sex": + exists "Heterosexual sex Condition" + or exists "Heterosexual sex Observation" +define "Heterosexual sex Condition": [Condition: Concepts."Heterosexual sex"] -define "Heterosexual sex (HTS) Observation": - "Probable route of transmission* (HTS) Observation" O +define "Heterosexual sex Observation": + "Probable route of transmission* Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Heterosexual sex" -/* End of Heterosexual sex (HTS) */ +/* End of Heterosexual sex */ /* @dataElement: HIV.B.DE123 - Sex between men @@ -1383,16 +1383,16 @@ define "Heterosexual sex (HTS) Observation": @description: Probable route of HIV transmission was through sex between men */ // TODO: Replace placeholder with relevant CQL logic -define "Sex between men (HTS)": - exists "Sex between men (HTS) Condition" - or exists "Sex between men (HTS) Observation" -define "Sex between men (HTS) Condition": +define "Sex between men": + exists "Sex between men Condition" + or exists "Sex between men Observation" +define "Sex between men Condition": [Condition: Concepts."Sex between men"] -define "Sex between men (HTS) Observation": - "Probable route of transmission* (HTS) Observation" O +define "Sex between men Observation": + "Probable route of transmission* Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Sex between men" -/* End of Sex between men (HTS) */ +/* End of Sex between men */ /* @dataElement: HIV.B.DE124 - Unprotected intercourse during sex work @@ -1400,16 +1400,16 @@ define "Sex between men (HTS) Observation": @description: Probable route of HIV transmission was through unprotected intercourse during sex work */ // TODO: Replace placeholder with relevant CQL logic -define "Unprotected intercourse during sex work (HTS)": - exists "Unprotected intercourse during sex work (HTS) Condition" - or exists "Unprotected intercourse during sex work (HTS) Observation" -define "Unprotected intercourse during sex work (HTS) Condition": +define "Unprotected intercourse during sex work": + exists "Unprotected intercourse during sex work Condition" + or exists "Unprotected intercourse during sex work Observation" +define "Unprotected intercourse during sex work Condition": [Condition: Concepts."Unprotected intercourse during sex work"] -define "Unprotected intercourse during sex work (HTS) Observation": - "Probable route of transmission* (HTS) Observation" O +define "Unprotected intercourse during sex work Observation": + "Probable route of transmission* Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Unprotected intercourse during sex work" -/* End of Unprotected intercourse during sex work (HTS) */ +/* End of Unprotected intercourse during sex work */ /* @dataElement: HIV.B.DE125 - Injecting drug use with unsterile equipment @@ -1417,16 +1417,16 @@ define "Unprotected intercourse during sex work (HTS) Observation": @description: Probable route of HIV transmission was through injecting drug use with unsterile equipment */ // TODO: Replace placeholder with relevant CQL logic -define "Injecting drug use with unsterile equipment (HTS)": - exists "Injecting drug use with unsterile equipment (HTS) Condition" - or exists "Injecting drug use with unsterile equipment (HTS) Observation" -define "Injecting drug use with unsterile equipment (HTS) Condition": +define "Injecting drug use with unsterile equipment": + exists "Injecting drug use with unsterile equipment Condition" + or exists "Injecting drug use with unsterile equipment Observation" +define "Injecting drug use with unsterile equipment Condition": [Condition: Concepts."Injecting drug use with unsterile equipment"] -define "Injecting drug use with unsterile equipment (HTS) Observation": - "Probable route of transmission* (HTS) Observation" O +define "Injecting drug use with unsterile equipment Observation": + "Probable route of transmission* Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Injecting drug use with unsterile equipment" -/* End of Injecting drug use with unsterile equipment (HTS) */ +/* End of Injecting drug use with unsterile equipment */ /* @dataElement: HIV.B.DE126 - Nosocomial @@ -1434,16 +1434,16 @@ define "Injecting drug use with unsterile equipment (HTS) Observation": @description: Probable route of HIV transmission was nosocomial */ // TODO: Replace placeholder with relevant CQL logic -define "Nosocomial (HTS)": - exists "Nosocomial (HTS) Condition" - or exists "Nosocomial (HTS) Observation" -define "Nosocomial (HTS) Condition": +define "Nosocomial": + exists "Nosocomial Condition" + or exists "Nosocomial Observation" +define "Nosocomial Condition": [Condition: Concepts."Nosocomial"] -define "Nosocomial (HTS) Observation": - "Probable route of transmission* (HTS) Observation" O +define "Nosocomial Observation": + "Probable route of transmission* Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Nosocomial" -/* End of Nosocomial (HTS) */ +/* End of Nosocomial */ /* @dataElement: HIV.B.DE127 - Vertical @@ -1451,16 +1451,16 @@ define "Nosocomial (HTS) Observation": @description: Probable route of HIV transmission to an infant was during pregnancy, labour, delivery and breastfeeding (vertical transmission) */ // TODO: Replace placeholder with relevant CQL logic -define "Vertical (HTS)": - exists "Vertical (HTS) Condition" - or exists "Vertical (HTS) Observation" -define "Vertical (HTS) Condition": +define "Vertical": + exists "Vertical Condition" + or exists "Vertical Observation" +define "Vertical Condition": [Condition: Concepts."Vertical"] -define "Vertical (HTS) Observation": - "Probable route of transmission* (HTS) Observation" O +define "Vertical Observation": + "Probable route of transmission* Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Vertical" -/* End of Vertical (HTS) */ +/* End of Vertical */ /* @dataElement: HIV.B.DE128 - Other @@ -1468,16 +1468,16 @@ define "Vertical (HTS) Observation": @description: Probable route of HIV transmission was other and may include needle accidents, blood transfusion, blood products or organ/tissue donations, tattoos, piercings, circumcision, or acupuncture. */ // TODO: Replace placeholder with relevant CQL logic -define "Other (HTS|BDE128)": - exists "Other (HTS|BDE128) Condition" - or exists "Other (HTS|BDE128) Observation" -define "Other (HTS|BDE128) Condition": +define "Other B.DE128": + exists "Other B.DE128 Condition" + or exists "Other B.DE128 Observation" +define "Other B.DE128 Condition": [Condition: Concepts."Other - HIV.B.DE128"] -define "Other (HTS|BDE128) Observation": - "Probable route of transmission* (HTS) Observation" O +define "Other B.DE128 Observation": + "Probable route of transmission* Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Other - HIV.B.DE128" -/* End of Other (HTS|BDE128) */ +/* End of Other B.DE128 */ /* @dataElement: HIV.B.DE141 - Partner virally suppressed on ART @@ -1485,13 +1485,13 @@ define "Other (HTS|BDE128) Observation": @description: ART and virally suppression status of a partner of the client */ // TODO: Replace placeholder with relevant CQL logic -define "Partner virally suppressed on ART (HTS)": - exists "Partner virally suppressed on ART (HTS) Observation" -define "Partner virally suppressed on ART (HTS) Observation": +define "Partner virally suppressed on ART": + exists "Partner virally suppressed on ART Observation" +define "Partner virally suppressed on ART Observation": [Observation: Concepts."Partner virally suppressed on ART"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Partner virally suppressed on ART (HTS) */ +/* End of Partner virally suppressed on ART */ /* @dataElement: HIV.B.DE142 - Counselling provided @@ -1499,12 +1499,12 @@ define "Partner virally suppressed on ART (HTS) Observation": @description: Whether counselling was provided to a client during the visit */ // TODO: Replace placeholder with relevant CQL logic -define "Counselling provided (HTS)": - exists "Counselling provided (HTS) Observation" -define "Counselling provided (HTS) Observation": +define "Counselling provided": + exists "Counselling provided Observation" +define "Counselling provided Observation": [Observation: Concepts."Counselling provided"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Counselling provided (HTS) */ +/* End of Counselling provided */ /* @dataElement: HIV.B.DE143 - HIV-positive counselling conducted @@ -1512,16 +1512,16 @@ define "Counselling provided (HTS) Observation": @description: Whether counselling was provided to a client who has been diagnosed with HIV */ // TODO: Replace placeholder with relevant CQL logic -define "HIV-positive counselling conducted (HTS)": - exists "HIV-positive counselling conducted (HTS) Condition" - or exists "HIV-positive counselling conducted (HTS) Observation" -define "HIV-positive counselling conducted (HTS) Condition": +define "HIV-positive counselling conducted": + exists "HIV-positive counselling conducted Condition" + or exists "HIV-positive counselling conducted Observation" +define "HIV-positive counselling conducted Condition": [Condition: Concepts."HIV-positive counselling conducted"] -define "HIV-positive counselling conducted (HTS) Observation": - "Counselling provided (HTS) Observation" O +define "HIV-positive counselling conducted Observation": + "Counselling provided Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."HIV-positive counselling conducted" -/* End of HIV-positive counselling conducted (HTS) */ +/* End of HIV-positive counselling conducted */ /* @dataElement: HIV.B.DE144 - Hepatitis B positive counselling conducted @@ -1529,16 +1529,16 @@ define "HIV-positive counselling conducted (HTS) Observation": @description: Whether counselling was provided to a client who has been diagnosed with hepatitis B */ // TODO: Replace placeholder with relevant CQL logic -define "Hepatitis B positive counselling conducted (HTS)": - exists "Hepatitis B positive counselling conducted (HTS) Condition" - or exists "Hepatitis B positive counselling conducted (HTS) Observation" -define "Hepatitis B positive counselling conducted (HTS) Condition": +define "Hepatitis B positive counselling conducted": + exists "Hepatitis B positive counselling conducted Condition" + or exists "Hepatitis B positive counselling conducted Observation" +define "Hepatitis B positive counselling conducted Condition": [Condition: Concepts."Hepatitis B positive counselling conducted"] -define "Hepatitis B positive counselling conducted (HTS) Observation": - "Counselling provided (HTS) Observation" O +define "Hepatitis B positive counselling conducted Observation": + "Counselling provided Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Hepatitis B positive counselling conducted" -/* End of Hepatitis B positive counselling conducted (HTS) */ +/* End of Hepatitis B positive counselling conducted */ /* @dataElement: HIV.B.DE145 - Hepatitis C positive counselling conducted @@ -1546,16 +1546,16 @@ define "Hepatitis B positive counselling conducted (HTS) Observation": @description: Whether counselling was provided to a client who has been diagnosed with hepatitis C */ // TODO: Replace placeholder with relevant CQL logic -define "Hepatitis C positive counselling conducted (HTS)": - exists "Hepatitis C positive counselling conducted (HTS) Condition" - or exists "Hepatitis C positive counselling conducted (HTS) Observation" -define "Hepatitis C positive counselling conducted (HTS) Condition": +define "Hepatitis C positive counselling conducted": + exists "Hepatitis C positive counselling conducted Condition" + or exists "Hepatitis C positive counselling conducted Observation" +define "Hepatitis C positive counselling conducted Condition": [Condition: Concepts."Hepatitis C positive counselling conducted"] -define "Hepatitis C positive counselling conducted (HTS) Observation": - "Counselling provided (HTS) Observation" O +define "Hepatitis C positive counselling conducted Observation": + "Counselling provided Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Hepatitis C positive counselling conducted" -/* End of Hepatitis C positive counselling conducted (HTS) */ +/* End of Hepatitis C positive counselling conducted */ /* @dataElement: HIV.B.DE146 - Syphilis counselling, treatment and further testing @@ -1563,16 +1563,16 @@ define "Hepatitis C positive counselling conducted (HTS) Observation": @description: Whether counselling and treatment was provided to a client who has been diagnosed with syphilis. Additional testing (RPR test) recommended. */ // TODO: Replace placeholder with relevant CQL logic -define "Syphilis counselling, treatment and further testing (HTS)": - exists "Syphilis counselling, treatment and further testing (HTS) Condition" - or exists "Syphilis counselling, treatment and further testing (HTS) Observation" -define "Syphilis counselling, treatment and further testing (HTS) Condition": +define "Syphilis counselling, treatment and further testing": + exists "Syphilis counselling, treatment and further testing Condition" + or exists "Syphilis counselling, treatment and further testing Observation" +define "Syphilis counselling, treatment and further testing Condition": [Condition: Concepts."Syphilis counselling, treatment and further testing"] -define "Syphilis counselling, treatment and further testing (HTS) Observation": - "Counselling provided (HTS) Observation" O +define "Syphilis counselling, treatment and further testing Observation": + "Counselling provided Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Syphilis counselling, treatment and further testing" -/* End of Syphilis counselling, treatment and further testing (HTS) */ +/* End of Syphilis counselling, treatment and further testing */ /* @dataElement: HIV.B.DE147 - Linked to enrolment in care and ART initiation @@ -1580,16 +1580,16 @@ define "Syphilis counselling, treatment and further testing (HTS) Observation": @description: Linkage made from HIV testing to enrolment in care following an HIV diagnosis */ // TODO: Replace placeholder with relevant CQL logic -define "Linked to enrolment in care and ART initiation (HTS)": - exists "Linked to enrolment in care and ART initiation (HTS) Condition" - or exists "Linked to enrolment in care and ART initiation (HTS) Observation" -define "Linked to enrolment in care and ART initiation (HTS) Condition": +define "Linked to enrolment in care and ART initiation": + exists "Linked to enrolment in care and ART initiation Condition" + or exists "Linked to enrolment in care and ART initiation Observation" +define "Linked to enrolment in care and ART initiation Condition": [Condition: Concepts."Linked to enrolment in care and ART initiation"] -define "Linked to enrolment in care and ART initiation (HTS) Observation": - "Counselling provided (HTS) Observation" O +define "Linked to enrolment in care and ART initiation Observation": + "Counselling provided Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Linked to enrolment in care and ART initiation" -/* End of Linked to enrolment in care and ART initiation (HTS) */ +/* End of Linked to enrolment in care and ART initiation */ /* @dataElement: HIV.B.DE148 - VMMC counselling provided @@ -1597,16 +1597,16 @@ define "Linked to enrolment in care and ART initiation (HTS) Observation": @description: Whether counselling for voluntary medical male circumcision (VMMC) was provided following an HIV-negative test */ // TODO: Replace placeholder with relevant CQL logic -define "VMMC counselling provided (HTS)": - exists "VMMC counselling provided (HTS) Condition" - or exists "VMMC counselling provided (HTS) Observation" -define "VMMC counselling provided (HTS) Condition": +define "VMMC counselling provided": + exists "VMMC counselling provided Condition" + or exists "VMMC counselling provided Observation" +define "VMMC counselling provided Condition": [Condition: Concepts."VMMC counselling provided"] -define "VMMC counselling provided (HTS) Observation": - "Counselling provided (HTS) Observation" O +define "VMMC counselling provided Observation": + "Counselling provided Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."VMMC counselling provided" -/* End of VMMC counselling provided (HTS) */ +/* End of VMMC counselling provided */ /* @dataElement: HIV.B.DE149 - Prevention services offered and referrals @@ -1614,12 +1614,12 @@ define "VMMC counselling provided (HTS) Observation": @description: Offer or refer to prevention services */ // TODO: Replace placeholder with relevant CQL logic -define "Prevention services offered and referrals (HTS)": - exists "Prevention services offered and referrals (HTS) Observation" -define "Prevention services offered and referrals (HTS) Observation": +define "Prevention services offered and referrals B.DE149": + exists "Prevention services offered and referrals B.DE149 Observation" +define "Prevention services offered and referrals B.DE149 Observation": [Observation: Concepts."Prevention services offered and referrals - HIV.B.DE149"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Prevention services offered and referrals (HTS) */ +/* End of Prevention services offered and referrals B.DE149 */ /* @dataElement: HIV.B.DE150 - Offer male and female condoms and condom-compatible lubricants @@ -1627,16 +1627,16 @@ define "Prevention services offered and referrals (HTS) Observation": @description: Offer male and female condoms and condom-compatible lubricants */ // TODO: Replace placeholder with relevant CQL logic -define "Offer male and female condoms and condom-compatible lubricants (HTS)": - exists "Offer male and female condoms and condom-compatible lubricants (HTS) Condition" - or exists "Offer male and female condoms and condom-compatible lubricants (HTS) Observation" -define "Offer male and female condoms and condom-compatible lubricants (HTS) Condition": +define "Offer male and female condoms and condom-compatible lubricants B.DE150": + exists "Offer male and female condoms and condom-compatible lubricants B.DE150 Condition" + or exists "Offer male and female condoms and condom-compatible lubricants B.DE150 Observation" +define "Offer male and female condoms and condom-compatible lubricants B.DE150 Condition": [Condition: Concepts."Offer male and female condoms and condom-compatible lubricants - HIV.B.DE150"] -define "Offer male and female condoms and condom-compatible lubricants (HTS) Observation": - "Prevention services offered and referrals (HTS) Observation" O +define "Offer male and female condoms and condom-compatible lubricants B.DE150 Observation": + "Prevention services offered and referrals B.DE149 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Offer male and female condoms and condom-compatible lubricants - HIV.B.DE150" -/* End of Offer male and female condoms and condom-compatible lubricants (HTS) */ +/* End of Offer male and female condoms and condom-compatible lubricants B.DE150 */ /* @dataElement: HIV.B.DE151 - Offer pre-exposure prophylaxis PrEP for people at elevated risk for HIV acquisition @@ -1644,16 +1644,16 @@ define "Offer male and female condoms and condom-compatible lubricants (HTS) Obs @description: Offer pre-exposure prophylaxis (PrEP) to people with substantial ongoing risk of HIV infection */ // TODO: Replace placeholder with relevant CQL logic -define "Offer pre-exposure prophylaxis PrEP for people at elevated risk for HIV acquisition (HTS)": - exists "Offer pre-exposure prophylaxis PrEP for people at elevated risk for HIV acquisition (HTS) Condition" - or exists "Offer pre-exposure prophylaxis PrEP for people at elevated risk for HIV acquisition (HTS) Observation" -define "Offer pre-exposure prophylaxis PrEP for people at elevated risk for HIV acquisition (HTS) Condition": +define "Offer pre-exposure prophylaxis PrEP for people at elevated risk for HIV acquisition": + exists "Offer pre-exposure prophylaxis PrEP for people at elevated risk for HIV acquisition Condition" + or exists "Offer pre-exposure prophylaxis PrEP for people at elevated risk for HIV acquisition Observation" +define "Offer pre-exposure prophylaxis PrEP for people at elevated risk for HIV acquisition Condition": [Condition: Concepts."Offer pre-exposure prophylaxis PrEP for people at elevated risk for HIV acquisition"] -define "Offer pre-exposure prophylaxis PrEP for people at elevated risk for HIV acquisition (HTS) Observation": - "Prevention services offered and referrals (HTS) Observation" O +define "Offer pre-exposure prophylaxis PrEP for people at elevated risk for HIV acquisition Observation": + "Prevention services offered and referrals B.DE149 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Offer pre-exposure prophylaxis PrEP for people at elevated risk for HIV acquisition" -/* End of Offer pre-exposure prophylaxis PrEP for people at elevated risk for HIV acquisition (HTS) */ +/* End of Offer pre-exposure prophylaxis PrEP for people at elevated risk for HIV acquisition */ /* @dataElement: HIV.B.DE152 - Offer post-exposure prophylaxis PEP following suspected exposure @@ -1661,16 +1661,16 @@ define "Offer pre-exposure prophylaxis PrEP for people at elevated risk for HIV @description: Offer or refer client for PEP following suspected exposure */ // TODO: Replace placeholder with relevant CQL logic -define "Offer post-exposure prophylaxis PEP following suspected exposure (HTS)": - exists "Offer post-exposure prophylaxis PEP following suspected exposure (HTS) Condition" - or exists "Offer post-exposure prophylaxis PEP following suspected exposure (HTS) Observation" -define "Offer post-exposure prophylaxis PEP following suspected exposure (HTS) Condition": +define "Offer post-exposure prophylaxis PEP following suspected exposure": + exists "Offer post-exposure prophylaxis PEP following suspected exposure Condition" + or exists "Offer post-exposure prophylaxis PEP following suspected exposure Observation" +define "Offer post-exposure prophylaxis PEP following suspected exposure Condition": [Condition: Concepts."Offer post-exposure prophylaxis PEP following suspected exposure"] -define "Offer post-exposure prophylaxis PEP following suspected exposure (HTS) Observation": - "Prevention services offered and referrals (HTS) Observation" O +define "Offer post-exposure prophylaxis PEP following suspected exposure Observation": + "Prevention services offered and referrals B.DE149 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Offer post-exposure prophylaxis PEP following suspected exposure" -/* End of Offer post-exposure prophylaxis PEP following suspected exposure (HTS) */ +/* End of Offer post-exposure prophylaxis PEP following suspected exposure */ /* @dataElement: HIV.B.DE153 - Voluntary medical male circumcision VMMC @@ -1678,16 +1678,16 @@ define "Offer post-exposure prophylaxis PEP following suspected exposure (HTS) O @description: Offer referral for VMMC services */ // TODO: Replace placeholder with relevant CQL logic -define "Voluntary medical male circumcision VMMC (HTS)": - exists "Voluntary medical male circumcision VMMC (HTS) Condition" - or exists "Voluntary medical male circumcision VMMC (HTS) Observation" -define "Voluntary medical male circumcision VMMC (HTS) Condition": +define "Voluntary medical male circumcision VMMC": + exists "Voluntary medical male circumcision VMMC Condition" + or exists "Voluntary medical male circumcision VMMC Observation" +define "Voluntary medical male circumcision VMMC Condition": [Condition: Concepts."Voluntary medical male circumcision VMMC"] -define "Voluntary medical male circumcision VMMC (HTS) Observation": - "Prevention services offered and referrals (HTS) Observation" O +define "Voluntary medical male circumcision VMMC Observation": + "Prevention services offered and referrals B.DE149 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Voluntary medical male circumcision VMMC" -/* End of Voluntary medical male circumcision VMMC (HTS) */ +/* End of Voluntary medical male circumcision VMMC */ /* @dataElement: HIV.B.DE154 - Harm reduction for people who inject drugs @@ -1695,16 +1695,16 @@ define "Voluntary medical male circumcision VMMC (HTS) Observation": @description: Offer or refer to harm reduction services for people who inject drugs (needle and syringe programmes, opioid substitution therapy, other drug-dependence treatment and opioid overdose prevention and management) */ // TODO: Replace placeholder with relevant CQL logic -define "Harm reduction for people who inject drugs (HTS)": - exists "Harm reduction for people who inject drugs (HTS) Condition" - or exists "Harm reduction for people who inject drugs (HTS) Observation" -define "Harm reduction for people who inject drugs (HTS) Condition": +define "Harm reduction for people who inject drugs B.DE154": + exists "Harm reduction for people who inject drugs B.DE154 Condition" + or exists "Harm reduction for people who inject drugs B.DE154 Observation" +define "Harm reduction for people who inject drugs B.DE154 Condition": [Condition: Concepts."Harm reduction for people who inject drugs - HIV.B.DE154"] -define "Harm reduction for people who inject drugs (HTS) Observation": - "Prevention services offered and referrals (HTS) Observation" O +define "Harm reduction for people who inject drugs B.DE154 Observation": + "Prevention services offered and referrals B.DE149 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Harm reduction for people who inject drugs - HIV.B.DE154" -/* End of Harm reduction for people who inject drugs (HTS) */ +/* End of Harm reduction for people who inject drugs B.DE154 */ /* @dataElement: HIV.B.DE155 - Behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations @@ -1712,16 +1712,16 @@ define "Harm reduction for people who inject drugs (HTS) Observation": @description: Offer or refer to behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations */ // TODO: Replace placeholder with relevant CQL logic -define "Behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations (HTS)": - exists "Behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations (HTS) Condition" - or exists "Behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations (HTS) Observation" -define "Behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations (HTS) Condition": +define "Behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations": + exists "Behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations Condition" + or exists "Behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations Observation" +define "Behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations Condition": [Condition: Concepts."Behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations"] -define "Behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations (HTS) Observation": - "Prevention services offered and referrals (HTS) Observation" O +define "Behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations Observation": + "Prevention services offered and referrals B.DE149 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations" -/* End of Behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations (HTS) */ +/* End of Behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations */ /* @dataElement: HIV.B.DE156 - HIV testing for partners and biological children @@ -1729,16 +1729,16 @@ define "Behavioural interventions to support risk reduction, particularly for pe @description: Offer voluntary testing for all partners and biological children of positive cases (includes partner services and index case testing), as welll as partners and social contacts of people from key populations, where appropriate */ // TODO: Replace placeholder with relevant CQL logic -define "HIV testing for partners and biological children (HTS)": - exists "HIV testing for partners and biological children (HTS) Condition" - or exists "HIV testing for partners and biological children (HTS) Observation" -define "HIV testing for partners and biological children (HTS) Condition": +define "HIV testing for partners and biological children B.DE156": + exists "HIV testing for partners and biological children B.DE156 Condition" + or exists "HIV testing for partners and biological children B.DE156 Observation" +define "HIV testing for partners and biological children B.DE156 Condition": [Condition: Concepts."HIV testing for partners and biological children - HIV.B.DE156"] -define "HIV testing for partners and biological children (HTS) Observation": - "Prevention services offered and referrals (HTS) Observation" O +define "HIV testing for partners and biological children B.DE156 Observation": + "Prevention services offered and referrals B.DE149 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."HIV testing for partners and biological children - HIV.B.DE156" -/* End of HIV testing for partners and biological children (HTS) */ +/* End of HIV testing for partners and biological children B.DE156 */ /* @dataElement: HIV.B.DE157 - HIV testing for partners and social contacts of people from key populations, where appropriate @@ -1746,16 +1746,16 @@ define "HIV testing for partners and biological children (HTS) Observation": @description: Offer voluntary testing for partners and social contacts of people from key populations, where appropriate */ // TODO: Replace placeholder with relevant CQL logic -define "HIV testing for partners and social contacts of people from key populations, where appropriate (HTS)": - exists "HIV testing for partners and social contacts of people from key populations, where appropriate (HTS) Condition" - or exists "HIV testing for partners and social contacts of people from key populations, where appropriate (HTS) Observation" -define "HIV testing for partners and social contacts of people from key populations, where appropriate (HTS) Condition": +define "HIV testing for partners and social contacts of people from key populations, where appropriate": + exists "HIV testing for partners and social contacts of people from key populations, where appropriate Condition" + or exists "HIV testing for partners and social contacts of people from key populations, where appropriate Observation" +define "HIV testing for partners and social contacts of people from key populations, where appropriate Condition": [Condition: Concepts."HIV testing for partners and social contacts of people from key populations, where appropriate"] -define "HIV testing for partners and social contacts of people from key populations, where appropriate (HTS) Observation": - "Prevention services offered and referrals (HTS) Observation" O +define "HIV testing for partners and social contacts of people from key populations, where appropriate Observation": + "Prevention services offered and referrals B.DE149 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."HIV testing for partners and social contacts of people from key populations, where appropriate" -/* End of HIV testing for partners and social contacts of people from key populations, where appropriate (HTS) */ +/* End of HIV testing for partners and social contacts of people from key populations, where appropriate */ /* @dataElement: HIV.B.DE158 - Sexual and reproductive health integrated services @@ -1763,12 +1763,12 @@ define "HIV testing for partners and social contacts of people from key populati @description: Offer or refer to sexual and reproductive health services */ // TODO: Replace placeholder with relevant CQL logic -define "Sexual and reproductive health integrated services (HTS)": - exists "Sexual and reproductive health integrated services (HTS) Observation" -define "Sexual and reproductive health integrated services (HTS) Observation": +define "Sexual and reproductive health integrated services B.DE158": + exists "Sexual and reproductive health integrated services B.DE158 Observation" +define "Sexual and reproductive health integrated services B.DE158 Observation": [Observation: Concepts."Sexual and reproductive health integrated services - HIV.B.DE158"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Sexual and reproductive health integrated services (HTS) */ +/* End of Sexual and reproductive health integrated services B.DE158 */ /* @dataElement: HIV.B.DE159 - Contraception and family planning @@ -1776,16 +1776,16 @@ define "Sexual and reproductive health integrated services (HTS) Observation": @description: Offer contraception and family planning services */ // TODO: Replace placeholder with relevant CQL logic -define "Contraception and family planning (HTS)": - exists "Contraception and family planning (HTS) Condition" - or exists "Contraception and family planning (HTS) Observation" -define "Contraception and family planning (HTS) Condition": +define "Contraception and family planning B.DE159": + exists "Contraception and family planning B.DE159 Condition" + or exists "Contraception and family planning B.DE159 Observation" +define "Contraception and family planning B.DE159 Condition": [Condition: Concepts."Contraception and family planning - HIV.B.DE159"] -define "Contraception and family planning (HTS) Observation": - "Sexual and reproductive health integrated services (HTS) Observation" O +define "Contraception and family planning B.DE159 Observation": + "Sexual and reproductive health integrated services B.DE158 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Contraception and family planning - HIV.B.DE159" -/* End of Contraception and family planning (HTS) */ +/* End of Contraception and family planning B.DE159 */ /* @dataElement: HIV.B.DE160 - Check pregnancy status @@ -1793,16 +1793,16 @@ define "Contraception and family planning (HTS) Observation": @description: Check women's pregnancy status */ // TODO: Replace placeholder with relevant CQL logic -define "Check pregnancy status (HTS)": - exists "Check pregnancy status (HTS) Condition" - or exists "Check pregnancy status (HTS) Observation" -define "Check pregnancy status (HTS) Condition": +define "Check pregnancy status B.DE160": + exists "Check pregnancy status B.DE160 Condition" + or exists "Check pregnancy status B.DE160 Observation" +define "Check pregnancy status B.DE160 Condition": [Condition: Concepts."Check pregnancy status - HIV.B.DE160"] -define "Check pregnancy status (HTS) Observation": - "Sexual and reproductive health integrated services (HTS) Observation" O +define "Check pregnancy status B.DE160 Observation": + "Sexual and reproductive health integrated services B.DE158 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Check pregnancy status - HIV.B.DE160" -/* End of Check pregnancy status (HTS) */ +/* End of Check pregnancy status B.DE160 */ /* @dataElement: HIV.B.DE161 - Prevention of mother-to-child transmission counselling @@ -1810,16 +1810,16 @@ define "Check pregnancy status (HTS) Observation": @description: Offer services for prevention of mother-to-child transmission (counselling) */ // TODO: Replace placeholder with relevant CQL logic -define "Prevention of mother-to-child transmission counselling (HTS)": - exists "Prevention of mother-to-child transmission counselling (HTS) Condition" - or exists "Prevention of mother-to-child transmission counselling (HTS) Observation" -define "Prevention of mother-to-child transmission counselling (HTS) Condition": +define "Prevention of mother-to-child transmission counselling": + exists "Prevention of mother-to-child transmission counselling Condition" + or exists "Prevention of mother-to-child transmission counselling Observation" +define "Prevention of mother-to-child transmission counselling Condition": [Condition: Concepts."Prevention of mother-to-child transmission counselling"] -define "Prevention of mother-to-child transmission counselling (HTS) Observation": - "Sexual and reproductive health integrated services (HTS) Observation" O +define "Prevention of mother-to-child transmission counselling Observation": + "Sexual and reproductive health integrated services B.DE158 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Prevention of mother-to-child transmission counselling" -/* End of Prevention of mother-to-child transmission counselling (HTS) */ +/* End of Prevention of mother-to-child transmission counselling */ /* @dataElement: HIV.B.DE162 - Cervical cancer screening and treatment counselling @@ -1827,16 +1827,16 @@ define "Prevention of mother-to-child transmission counselling (HTS) Observation @description: Offer cervical cancer screening and treatment counselling and services */ // TODO: Replace placeholder with relevant CQL logic -define "Cervical cancer screening and treatment counselling (HTS)": - exists "Cervical cancer screening and treatment counselling (HTS) Condition" - or exists "Cervical cancer screening and treatment counselling (HTS) Observation" -define "Cervical cancer screening and treatment counselling (HTS) Condition": +define "Cervical cancer screening and treatment counselling": + exists "Cervical cancer screening and treatment counselling Condition" + or exists "Cervical cancer screening and treatment counselling Observation" +define "Cervical cancer screening and treatment counselling Condition": [Condition: Concepts."Cervical cancer screening and treatment counselling"] -define "Cervical cancer screening and treatment counselling (HTS) Observation": - "Sexual and reproductive health integrated services (HTS) Observation" O +define "Cervical cancer screening and treatment counselling Observation": + "Sexual and reproductive health integrated services B.DE158 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Cervical cancer screening and treatment counselling" -/* End of Cervical cancer screening and treatment counselling (HTS) */ +/* End of Cervical cancer screening and treatment counselling */ /* @dataElement: HIV.B.DE163 - Anal cancer screening for men who have sex with men @@ -1844,16 +1844,16 @@ define "Cervical cancer screening and treatment counselling (HTS) Observation": @description: Offer services for anal cancer screening (for men who have sex with men) */ // TODO: Replace placeholder with relevant CQL logic -define "Anal cancer screening for men who have sex with men (HTS)": - exists "Anal cancer screening for men who have sex with men (HTS) Condition" - or exists "Anal cancer screening for men who have sex with men (HTS) Observation" -define "Anal cancer screening for men who have sex with men (HTS) Condition": +define "Anal cancer screening for men who have sex with men B.DE163": + exists "Anal cancer screening for men who have sex with men B.DE163 Condition" + or exists "Anal cancer screening for men who have sex with men B.DE163 Observation" +define "Anal cancer screening for men who have sex with men B.DE163 Condition": [Condition: Concepts."Anal cancer screening for men who have sex with men - HIV.B.DE163"] -define "Anal cancer screening for men who have sex with men (HTS) Observation": - "Sexual and reproductive health integrated services (HTS) Observation" O +define "Anal cancer screening for men who have sex with men B.DE163 Observation": + "Sexual and reproductive health integrated services B.DE158 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Anal cancer screening for men who have sex with men - HIV.B.DE163" -/* End of Anal cancer screening for men who have sex with men (HTS) */ +/* End of Anal cancer screening for men who have sex with men B.DE163 */ /* @dataElement: HIV.B.DE164 - STI testing and treatment services @@ -1861,16 +1861,16 @@ define "Anal cancer screening for men who have sex with men (HTS) Observation": @description: Offer sexually transmitted infection (STI) testing and treatment services */ // TODO: Replace placeholder with relevant CQL logic -define "STI testing and treatment services (HTS)": - exists "STI testing and treatment services (HTS) Condition" - or exists "STI testing and treatment services (HTS) Observation" -define "STI testing and treatment services (HTS) Condition": +define "STI testing and treatment services": + exists "STI testing and treatment services Condition" + or exists "STI testing and treatment services Observation" +define "STI testing and treatment services Condition": [Condition: Concepts."STI testing and treatment services"] -define "STI testing and treatment services (HTS) Observation": - "Sexual and reproductive health integrated services (HTS) Observation" O +define "STI testing and treatment services Observation": + "Sexual and reproductive health integrated services B.DE158 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."STI testing and treatment services" -/* End of STI testing and treatment services (HTS) */ +/* End of STI testing and treatment services */ /* @dataElement: HIV.B.DE165 - Offer other clinical services @@ -1878,12 +1878,12 @@ define "STI testing and treatment services (HTS) Observation": @description: Other clinical services offered or referrals given to the client */ // TODO: Replace placeholder with relevant CQL logic -define "Offer other clinical services (HTS)": - exists "Offer other clinical services (HTS) Observation" -define "Offer other clinical services (HTS) Observation": +define "Offer other clinical services B.DE165": + exists "Offer other clinical services B.DE165 Observation" +define "Offer other clinical services B.DE165 Observation": [Observation: Concepts."Offer other clinical services - HIV.B.DE165"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Offer other clinical services (HTS) */ +/* End of Offer other clinical services B.DE165 */ /* @dataElement: HIV.B.DE166 - Assessment and provision of vaccinations @@ -1891,16 +1891,16 @@ define "Offer other clinical services (HTS) Observation": @description: Assessment and provision of vaccinations, such as for people from key populations, pregnant women and infants; and, where appropriate, tetanus vaccination for adolescent boys and men receiving VMMC */ // TODO: Replace placeholder with relevant CQL logic -define "Assessment and provision of vaccinations (HTS)": - exists "Assessment and provision of vaccinations (HTS) Condition" - or exists "Assessment and provision of vaccinations (HTS) Observation" -define "Assessment and provision of vaccinations (HTS) Condition": +define "Assessment and provision of vaccinations B.DE166": + exists "Assessment and provision of vaccinations B.DE166 Condition" + or exists "Assessment and provision of vaccinations B.DE166 Observation" +define "Assessment and provision of vaccinations B.DE166 Condition": [Condition: Concepts."Assessment and provision of vaccinations - HIV.B.DE166"] -define "Assessment and provision of vaccinations (HTS) Observation": - "Offer other clinical services (HTS) Observation" O +define "Assessment and provision of vaccinations B.DE166 Observation": + "Offer other clinical services B.DE165 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Assessment and provision of vaccinations - HIV.B.DE166" -/* End of Assessment and provision of vaccinations (HTS) */ +/* End of Assessment and provision of vaccinations B.DE166 */ /* @dataElement: HIV.B.DE167 - Hepatitis B HBV and hepatitis C virus HCV testing and treatment provided @@ -1908,16 +1908,16 @@ define "Assessment and provision of vaccinations (HTS) Observation": @description: Offer or refer for HBV and/or HCV testing and treatment */ // TODO: Replace placeholder with relevant CQL logic -define "Hepatitis B HBV and hepatitis C virus HCV testing and treatment provided (HTS)": - exists "Hepatitis B HBV and hepatitis C virus HCV testing and treatment provided (HTS) Condition" - or exists "Hepatitis B HBV and hepatitis C virus HCV testing and treatment provided (HTS) Observation" -define "Hepatitis B HBV and hepatitis C virus HCV testing and treatment provided (HTS) Condition": +define "Hepatitis B HBV and hepatitis C virus HCV testing and treatment provided": + exists "Hepatitis B HBV and hepatitis C virus HCV testing and treatment provided Condition" + or exists "Hepatitis B HBV and hepatitis C virus HCV testing and treatment provided Observation" +define "Hepatitis B HBV and hepatitis C virus HCV testing and treatment provided Condition": [Condition: Concepts."Hepatitis B HBV and hepatitis C virus HCV testing and treatment provided"] -define "Hepatitis B HBV and hepatitis C virus HCV testing and treatment provided (HTS) Observation": - "Offer other clinical services (HTS) Observation" O +define "Hepatitis B HBV and hepatitis C virus HCV testing and treatment provided Observation": + "Offer other clinical services B.DE165 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Hepatitis B HBV and hepatitis C virus HCV testing and treatment provided" -/* End of Hepatitis B HBV and hepatitis C virus HCV testing and treatment provided (HTS) */ +/* End of Hepatitis B HBV and hepatitis C virus HCV testing and treatment provided */ /* @dataElement: HIV.B.DE168 - Co-trimoxazole chemoprophylaxis to prevent Pneumocystis carinii pneumonia provided @@ -1925,16 +1925,16 @@ define "Hepatitis B HBV and hepatitis C virus HCV testing and treatment provided @description: Offer or refer for co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia */ // TODO: Replace placeholder with relevant CQL logic -define "Co-trimoxazole chemoprophylaxis to prevent Pneumocystis carinii pneumonia provided (HTS)": - exists "Co-trimoxazole chemoprophylaxis to prevent Pneumocystis carinii pneumonia provided (HTS) Condition" - or exists "Co-trimoxazole chemoprophylaxis to prevent Pneumocystis carinii pneumonia provided (HTS) Observation" -define "Co-trimoxazole chemoprophylaxis to prevent Pneumocystis carinii pneumonia provided (HTS) Condition": +define "Co-trimoxazole chemoprophylaxis to prevent Pneumocystis carinii pneumonia provided": + exists "Co-trimoxazole chemoprophylaxis to prevent Pneumocystis carinii pneumonia provided Condition" + or exists "Co-trimoxazole chemoprophylaxis to prevent Pneumocystis carinii pneumonia provided Observation" +define "Co-trimoxazole chemoprophylaxis to prevent Pneumocystis carinii pneumonia provided Condition": [Condition: Concepts."Co-trimoxazole chemoprophylaxis to prevent Pneumocystis carinii pneumonia provided"] -define "Co-trimoxazole chemoprophylaxis to prevent Pneumocystis carinii pneumonia provided (HTS) Observation": - "Offer other clinical services (HTS) Observation" O +define "Co-trimoxazole chemoprophylaxis to prevent Pneumocystis carinii pneumonia provided Observation": + "Offer other clinical services B.DE165 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Co-trimoxazole chemoprophylaxis to prevent Pneumocystis carinii pneumonia provided" -/* End of Co-trimoxazole chemoprophylaxis to prevent Pneumocystis carinii pneumonia provided (HTS) */ +/* End of Co-trimoxazole chemoprophylaxis to prevent Pneumocystis carinii pneumonia provided */ /* @dataElement: HIV.B.DE169 - Intensified TB case finding and linkage to TB treatment provided @@ -1942,16 +1942,16 @@ define "Co-trimoxazole chemoprophylaxis to prevent Pneumocystis carinii pneumoni @description: Offer or refer for intensified TB case finding and linkage to TB treatment */ // TODO: Replace placeholder with relevant CQL logic -define "Intensified TB case finding and linkage to TB treatment provided (HTS)": - exists "Intensified TB case finding and linkage to TB treatment provided (HTS) Condition" - or exists "Intensified TB case finding and linkage to TB treatment provided (HTS) Observation" -define "Intensified TB case finding and linkage to TB treatment provided (HTS) Condition": +define "Intensified TB case finding and linkage to TB treatment provided": + exists "Intensified TB case finding and linkage to TB treatment provided Condition" + or exists "Intensified TB case finding and linkage to TB treatment provided Observation" +define "Intensified TB case finding and linkage to TB treatment provided Condition": [Condition: Concepts."Intensified TB case finding and linkage to TB treatment provided"] -define "Intensified TB case finding and linkage to TB treatment provided (HTS) Observation": - "Offer other clinical services (HTS) Observation" O +define "Intensified TB case finding and linkage to TB treatment provided Observation": + "Offer other clinical services B.DE165 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Intensified TB case finding and linkage to TB treatment provided" -/* End of Intensified TB case finding and linkage to TB treatment provided (HTS) */ +/* End of Intensified TB case finding and linkage to TB treatment provided */ /* @dataElement: HIV.B.DE170 - Provision of isoniazid preventive therapy if person does not have TB @@ -1959,16 +1959,16 @@ define "Intensified TB case finding and linkage to TB treatment provided (HTS) O @description: Offer or refer for provision of isoniazid preventive therapy if person does not have TB */ // TODO: Replace placeholder with relevant CQL logic -define "Provision of isoniazid preventive therapy if person does not have TB (HTS)": - exists "Provision of isoniazid preventive therapy if person does not have TB (HTS) Condition" - or exists "Provision of isoniazid preventive therapy if person does not have TB (HTS) Observation" -define "Provision of isoniazid preventive therapy if person does not have TB (HTS) Condition": +define "Provision of isoniazid preventive therapy if person does not have TB B.DE170": + exists "Provision of isoniazid preventive therapy if person does not have TB B.DE170 Condition" + or exists "Provision of isoniazid preventive therapy if person does not have TB B.DE170 Observation" +define "Provision of isoniazid preventive therapy if person does not have TB B.DE170 Condition": [Condition: Concepts."Provision of isoniazid preventive therapy if person does not have TB - HIV.B.DE170"] -define "Provision of isoniazid preventive therapy if person does not have TB (HTS) Observation": - "Offer other clinical services (HTS) Observation" O +define "Provision of isoniazid preventive therapy if person does not have TB B.DE170 Observation": + "Offer other clinical services B.DE165 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Provision of isoniazid preventive therapy if person does not have TB - HIV.B.DE170" -/* End of Provision of isoniazid preventive therapy if person does not have TB (HTS) */ +/* End of Provision of isoniazid preventive therapy if person does not have TB B.DE170 */ /* @dataElement: HIV.B.DE171 - Malaria prevention such as bed nets and prophylaxis, depending on epidemiology @@ -1976,16 +1976,16 @@ define "Provision of isoniazid preventive therapy if person does not have TB (HT @description: Offer or refer for malaria prevention (such as bed nets and prophylaxis), depending on epidemiology */ // TODO: Replace placeholder with relevant CQL logic -define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (HTS)": - exists "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (HTS) Condition" - or exists "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (HTS) Observation" -define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (HTS) Condition": +define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology B.DE171": + exists "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology B.DE171 Condition" + or exists "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology B.DE171 Observation" +define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology B.DE171 Condition": [Condition: Concepts."Malaria prevention such as bed nets and prophylaxis, depending on epidemiology - HIV.B.DE171"] -define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (HTS) Observation": - "Offer other clinical services (HTS) Observation" O +define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology B.DE171 Observation": + "Offer other clinical services B.DE165 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Malaria prevention such as bed nets and prophylaxis, depending on epidemiology - HIV.B.DE171" -/* End of Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (HTS) */ +/* End of Malaria prevention such as bed nets and prophylaxis, depending on epidemiology B.DE171 */ /* @dataElement: HIV.B.DE172 - Other support services @@ -1993,12 +1993,12 @@ define "Malaria prevention such as bed nets and prophylaxis, depending on epidem @description: Offer or refer for other support services */ // TODO: Replace placeholder with relevant CQL logic -define "Other support services (HTS)": - exists "Other support services (HTS) Observation" -define "Other support services (HTS) Observation": +define "Other support services B.DE172": + exists "Other support services B.DE172 Observation" +define "Other support services B.DE172 Observation": [Observation: Concepts."Other support services - HIV.B.DE172"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Other support services (HTS) */ +/* End of Other support services B.DE172 */ /* @dataElement: HIV.B.DE173 - Mental health services @@ -2006,16 +2006,16 @@ define "Other support services (HTS) Observation": @description: Offer or refer for mental health services */ // TODO: Replace placeholder with relevant CQL logic -define "Mental health services (HTS)": - exists "Mental health services (HTS) Condition" - or exists "Mental health services (HTS) Observation" -define "Mental health services (HTS) Condition": +define "Mental health services B.DE173": + exists "Mental health services B.DE173 Condition" + or exists "Mental health services B.DE173 Observation" +define "Mental health services B.DE173 Condition": [Condition: Concepts."Mental health services - HIV.B.DE173"] -define "Mental health services (HTS) Observation": - "Other support services (HTS) Observation" O +define "Mental health services B.DE173 Observation": + "Other support services B.DE172 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Mental health services - HIV.B.DE173" -/* End of Mental health services (HTS) */ +/* End of Mental health services B.DE173 */ /* @dataElement: HIV.B.DE174 - Psychosocial counselling, support and treatment adherence counselling @@ -2023,16 +2023,16 @@ define "Mental health services (HTS) Observation": @description: Offer or refer for psychosocial counselling, support and treatment adherence counselling */ // TODO: Replace placeholder with relevant CQL logic -define "Psychosocial counselling, support and treatment adherence counselling (HTS)": - exists "Psychosocial counselling, support and treatment adherence counselling (HTS) Condition" - or exists "Psychosocial counselling, support and treatment adherence counselling (HTS) Observation" -define "Psychosocial counselling, support and treatment adherence counselling (HTS) Condition": +define "Psychosocial counselling, support and treatment adherence counselling B.DE174": + exists "Psychosocial counselling, support and treatment adherence counselling B.DE174 Condition" + or exists "Psychosocial counselling, support and treatment adherence counselling B.DE174 Observation" +define "Psychosocial counselling, support and treatment adherence counselling B.DE174 Condition": [Condition: Concepts."Psychosocial counselling, support and treatment adherence counselling - HIV.B.DE174"] -define "Psychosocial counselling, support and treatment adherence counselling (HTS) Observation": - "Other support services (HTS) Observation" O +define "Psychosocial counselling, support and treatment adherence counselling B.DE174 Observation": + "Other support services B.DE172 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Psychosocial counselling, support and treatment adherence counselling - HIV.B.DE174" -/* End of Psychosocial counselling, support and treatment adherence counselling (HTS) */ +/* End of Psychosocial counselling, support and treatment adherence counselling B.DE174 */ /* @dataElement: HIV.B.DE175 - Support for disclosure and partner services @@ -2040,16 +2040,16 @@ define "Psychosocial counselling, support and treatment adherence counselling (H @description: Offer or refer for support for disclosure and partner services */ // TODO: Replace placeholder with relevant CQL logic -define "Support for disclosure and partner services (HTS)": - exists "Support for disclosure and partner services (HTS) Condition" - or exists "Support for disclosure and partner services (HTS) Observation" -define "Support for disclosure and partner services (HTS) Condition": +define "Support for disclosure and partner services B.DE175": + exists "Support for disclosure and partner services B.DE175 Condition" + or exists "Support for disclosure and partner services B.DE175 Observation" +define "Support for disclosure and partner services B.DE175 Condition": [Condition: Concepts."Support for disclosure and partner services - HIV.B.DE175"] -define "Support for disclosure and partner services (HTS) Observation": - "Other support services (HTS) Observation" O +define "Support for disclosure and partner services B.DE175 Observation": + "Other support services B.DE172 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Support for disclosure and partner services - HIV.B.DE175" -/* End of Support for disclosure and partner services (HTS) */ +/* End of Support for disclosure and partner services B.DE175 */ /* @dataElement: HIV.B.DE176 - Legal and social services @@ -2057,16 +2057,16 @@ define "Support for disclosure and partner services (HTS) Observation": @description: Offer or refer for legal and social services */ // TODO: Replace placeholder with relevant CQL logic -define "Legal and social services (HTS)": - exists "Legal and social services (HTS) Condition" - or exists "Legal and social services (HTS) Observation" -define "Legal and social services (HTS) Condition": +define "Legal and social services B.DE176": + exists "Legal and social services B.DE176 Condition" + or exists "Legal and social services B.DE176 Observation" +define "Legal and social services B.DE176 Condition": [Condition: Concepts."Legal and social services - HIV.B.DE176"] -define "Legal and social services (HTS) Observation": - "Other support services (HTS) Observation" O +define "Legal and social services B.DE176 Observation": + "Other support services B.DE172 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Legal and social services - HIV.B.DE176" -/* End of Legal and social services (HTS) */ +/* End of Legal and social services B.DE176 */ /* @dataElement: HIV.B.DE177 - Services for responding to violence against women @@ -2074,16 +2074,16 @@ define "Legal and social services (HTS) Observation": @description: Offer or refer for services for responding to violence against women, including first-line support and psychosocial support, post-rape care and other support services including shelters, legal services and women and child protection services */ // TODO: Replace placeholder with relevant CQL logic -define "Services for responding to violence against women (HTS)": - exists "Services for responding to violence against women (HTS) Condition" - or exists "Services for responding to violence against women (HTS) Observation" -define "Services for responding to violence against women (HTS) Condition": +define "Services for responding to violence against women B.DE177": + exists "Services for responding to violence against women B.DE177 Condition" + or exists "Services for responding to violence against women B.DE177 Observation" +define "Services for responding to violence against women B.DE177 Condition": [Condition: Concepts."Services for responding to violence against women - HIV.B.DE177"] -define "Services for responding to violence against women (HTS) Observation": - "Other support services (HTS) Observation" O +define "Services for responding to violence against women B.DE177 Observation": + "Other support services B.DE172 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Services for responding to violence against women - HIV.B.DE177" -/* End of Services for responding to violence against women (HTS) */ +/* End of Services for responding to violence against women B.DE177 */ /* @dataElement: HIV.B.DE191 - Type of follow-up appointment @@ -2091,12 +2091,12 @@ define "Services for responding to violence against women (HTS) Observation": @description: Type of follow-up appointment for testing services */ // TODO: Replace placeholder with relevant CQL logic -define "Type of follow-up appointment (HTS)": - exists "Type of follow-up appointment (HTS) Observation" -define "Type of follow-up appointment (HTS) Observation": +define "Type of follow-up appointment B.DE191": + exists "Type of follow-up appointment B.DE191 Observation" +define "Type of follow-up appointment B.DE191 Observation": [Observation: Concepts."Type of follow-up appointment - HIV.B.DE191"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Type of follow-up appointment (HTS) */ +/* End of Type of follow-up appointment B.DE191 */ /* @dataElement: HIV.B.DE192 - Retesting for HIV @@ -2104,16 +2104,16 @@ define "Type of follow-up appointment (HTS) Observation": @description: Retesting follow-up appointment */ // TODO: Replace placeholder with relevant CQL logic -define "Retesting for HIV (HTS|BDE192)": - exists "Retesting for HIV (HTS|BDE192) Condition" - or exists "Retesting for HIV (HTS|BDE192) Observation" -define "Retesting for HIV (HTS|BDE192) Condition": +define "Retesting for HIV B.DE192": + exists "Retesting for HIV B.DE192 Condition" + or exists "Retesting for HIV B.DE192 Observation" +define "Retesting for HIV B.DE192 Condition": [Condition: Concepts."Retesting for HIV - HIV.B.DE192"] -define "Retesting for HIV (HTS|BDE192) Observation": - "Type of follow-up appointment (HTS) Observation" O +define "Retesting for HIV B.DE192 Observation": + "Type of follow-up appointment B.DE191 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Retesting for HIV - HIV.B.DE192" -/* End of Retesting for HIV (HTS|BDE192) */ +/* End of Retesting for HIV B.DE192 */ /* @dataElement: HIV.B.DE193 - Other @@ -2121,16 +2121,16 @@ define "Retesting for HIV (HTS|BDE192) Observation": @description: Other reason for the follow-up appointment */ // TODO: Replace placeholder with relevant CQL logic -define "Other (HTS|BDE193)": - exists "Other (HTS|BDE193) Condition" - or exists "Other (HTS|BDE193) Observation" -define "Other (HTS|BDE193) Condition": +define "Other B.DE193": + exists "Other B.DE193 Condition" + or exists "Other B.DE193 Observation" +define "Other B.DE193 Condition": [Condition: Concepts."Other - HIV.B.DE193"] -define "Other (HTS|BDE193) Observation": - "Type of follow-up appointment (HTS) Observation" O +define "Other B.DE193 Observation": + "Type of follow-up appointment B.DE191 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Other - HIV.B.DE193" -/* End of Other (HTS|BDE193) */ +/* End of Other B.DE193 */ /* @dataElement: HIV.B.DE195 - Date/time of follow-up appointment @@ -2138,13 +2138,13 @@ define "Other (HTS|BDE193) Observation": @description: Date the patient is to return for monitoring, re-supply or any other reason */ // TODO: Replace placeholder with relevant CQL logic -define "Date/time of follow-up appointment (HTS)": +define "Date/time of follow-up appointment B.DE195": [Observation: Concepts."Date/time of follow-up appointment - HIV.B.DE195"] O where O.status in { 'final', 'amended', 'corrected' } -define "Date/time of follow-up appointment (HTS) Value": - "Date/time of follow-up appointment (HTS)" O +define "Date/time of follow-up appointment B.DE195 Value": + "Date/time of follow-up appointment B.DE195" O return O.value -/* End of Date/time of follow-up appointment (HTS) */ +/* End of Date/time of follow-up appointment B.DE195 */ /* @dataElement: HIV.B.DE198 - VMMC procedure date @@ -2152,13 +2152,13 @@ define "Date/time of follow-up appointment (HTS) Value": @description: Date on which a voluntary medical male circumcision procedure was performed */ // TODO: Replace placeholder with relevant CQL logic -define "VMMC procedure date (HTS)": +define "VMMC procedure date": [Observation: Concepts."VMMC procedure date"] O where O.status in { 'final', 'amended', 'corrected' } -define "VMMC procedure date (HTS) Value": - "VMMC procedure date (HTS)" O +define "VMMC procedure date Value": + "VMMC procedure date" O return O.value -/* End of VMMC procedure date (HTS) */ +/* End of VMMC procedure date */ /* @dataElement: HIV.B.DE201 - Adverse event severity @@ -2166,12 +2166,12 @@ define "VMMC procedure date (HTS) Value": @description: Severity of the adverse event associated with voluntary medical male circumcision (VMMC) procedure */ // TODO: Replace placeholder with relevant CQL logic -define "Adverse event severity (HTS)": - exists "Adverse event severity (HTS) Observation" -define "Adverse event severity (HTS) Observation": +define "Adverse event severity": + exists "Adverse event severity Observation" +define "Adverse event severity Observation": [Observation: Concepts."Adverse event severity"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Adverse event severity (HTS) */ +/* End of Adverse event severity */ /* @dataElement: HIV.B.DE202 - Moderate @@ -2179,16 +2179,16 @@ define "Adverse event severity (HTS) Observation": @description: Severity of the adverse event associated with VMMC procedure was moderate */ // TODO: Replace placeholder with relevant CQL logic -define "Moderate (HTS)": - exists "Moderate (HTS) Condition" - or exists "Moderate (HTS) Observation" -define "Moderate (HTS) Condition": +define "Moderate": + exists "Moderate Condition" + or exists "Moderate Observation" +define "Moderate Condition": [Condition: Concepts."Moderate"] -define "Moderate (HTS) Observation": - "Adverse event severity (HTS) Observation" O +define "Moderate Observation": + "Adverse event severity Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Moderate" -/* End of Moderate (HTS) */ +/* End of Moderate */ /* @dataElement: HIV.B.DE203 - Severe @@ -2196,16 +2196,16 @@ define "Moderate (HTS) Observation": @description: Severity of the adverse event associated with VMMC procedure was severe */ // TODO: Replace placeholder with relevant CQL logic -define "Severe (HTS)": - exists "Severe (HTS) Condition" - or exists "Severe (HTS) Observation" -define "Severe (HTS) Condition": +define "Severe": + exists "Severe Condition" + or exists "Severe Observation" +define "Severe Condition": [Condition: Concepts."Severe"] -define "Severe (HTS) Observation": - "Adverse event severity (HTS) Observation" O +define "Severe Observation": + "Adverse event severity Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Severe" -/* End of Severe (HTS) */ +/* End of Severe */ /* @dataElement: HIV.B.DE204 - Timing of adverse event @@ -2213,12 +2213,12 @@ define "Severe (HTS) Observation": @description: When the adverse event associated with VMMC procedure occurred */ // TODO: Replace placeholder with relevant CQL logic -define "Timing of adverse event (HTS)": - exists "Timing of adverse event (HTS) Observation" -define "Timing of adverse event (HTS) Observation": +define "Timing of adverse event": + exists "Timing of adverse event Observation" +define "Timing of adverse event Observation": [Observation: Concepts."Timing of adverse event"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Timing of adverse event (HTS) */ +/* End of Timing of adverse event */ /* @dataElement: HIV.B.DE205 - Intraoperative @@ -2226,16 +2226,16 @@ define "Timing of adverse event (HTS) Observation": @description: The adverse event associated with VMMC procedure occurred during the procedure */ // TODO: Replace placeholder with relevant CQL logic -define "Intraoperative (HTS)": - exists "Intraoperative (HTS) Condition" - or exists "Intraoperative (HTS) Observation" -define "Intraoperative (HTS) Condition": +define "Intraoperative": + exists "Intraoperative Condition" + or exists "Intraoperative Observation" +define "Intraoperative Condition": [Condition: Concepts."Intraoperative"] -define "Intraoperative (HTS) Observation": - "Timing of adverse event (HTS) Observation" O +define "Intraoperative Observation": + "Timing of adverse event Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Intraoperative" -/* End of Intraoperative (HTS) */ +/* End of Intraoperative */ /* @dataElement: HIV.B.DE206 - Postoperative @@ -2243,16 +2243,16 @@ define "Intraoperative (HTS) Observation": @description: The adverse event associated with VMMC procedure occurred within the first 30 days after the procedure */ // TODO: Replace placeholder with relevant CQL logic -define "Postoperative (HTS)": - exists "Postoperative (HTS) Condition" - or exists "Postoperative (HTS) Observation" -define "Postoperative (HTS) Condition": +define "Postoperative": + exists "Postoperative Condition" + or exists "Postoperative Observation" +define "Postoperative Condition": [Condition: Concepts."Postoperative"] -define "Postoperative (HTS) Observation": - "Timing of adverse event (HTS) Observation" O +define "Postoperative Observation": + "Timing of adverse event Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Postoperative" -/* End of Postoperative (HTS) */ +/* End of Postoperative */ /* @dataElement: HIV.B.DE207 - Type of adverse VMMC event @@ -2260,12 +2260,12 @@ define "Postoperative (HTS) Observation": @description: Type of adverse event associated with voluntary medical male circumcision (VMMC) procedure */ // TODO: Replace placeholder with relevant CQL logic -define "Type of adverse VMMC event (HTS)": - exists "Type of adverse VMMC event (HTS) Observation" -define "Type of adverse VMMC event (HTS) Observation": +define "Type of adverse VMMC event": + exists "Type of adverse VMMC event Observation" +define "Type of adverse VMMC event Observation": [Observation: Concepts."Type of adverse VMMC event"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Type of adverse VMMC event (HTS) */ +/* End of Type of adverse VMMC event */ /* @dataElement: HIV.B.DE208 - Abnormal pain @@ -2273,16 +2273,16 @@ define "Type of adverse VMMC event (HTS) Observation": @description: Client experienced abnormal pain */ // TODO: Replace placeholder with relevant CQL logic -define "Abnormal pain (HTS)": - exists "Abnormal pain (HTS) Condition" - or exists "Abnormal pain (HTS) Observation" -define "Abnormal pain (HTS) Condition": +define "Abnormal pain": + exists "Abnormal pain Condition" + or exists "Abnormal pain Observation" +define "Abnormal pain Condition": [Condition: Concepts."Abnormal pain"] -define "Abnormal pain (HTS) Observation": - "Type of adverse VMMC event (HTS) Observation" O +define "Abnormal pain Observation": + "Type of adverse VMMC event Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Abnormal pain" -/* End of Abnormal pain (HTS) */ +/* End of Abnormal pain */ /* @dataElement: HIV.B.DE209 - Anaesthesia-related effects @@ -2290,16 +2290,16 @@ define "Abnormal pain (HTS) Observation": @description: Client had anaesthesia-related effects */ // TODO: Replace placeholder with relevant CQL logic -define "Anaesthesia-related effects (HTS)": - exists "Anaesthesia-related effects (HTS) Condition" - or exists "Anaesthesia-related effects (HTS) Observation" -define "Anaesthesia-related effects (HTS) Condition": +define "Anaesthesia-related effects": + exists "Anaesthesia-related effects Condition" + or exists "Anaesthesia-related effects Observation" +define "Anaesthesia-related effects Condition": [Condition: Concepts."Anaesthesia-related effects"] -define "Anaesthesia-related effects (HTS) Observation": - "Type of adverse VMMC event (HTS) Observation" O +define "Anaesthesia-related effects Observation": + "Type of adverse VMMC event Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Anaesthesia-related effects" -/* End of Anaesthesia-related effects (HTS) */ +/* End of Anaesthesia-related effects */ /* @dataElement: HIV.B.DE210 - Bleeding @@ -2307,16 +2307,16 @@ define "Anaesthesia-related effects (HTS) Observation": @description: Client had bleeding */ // TODO: Replace placeholder with relevant CQL logic -define "Bleeding (HTS)": - exists "Bleeding (HTS) Condition" - or exists "Bleeding (HTS) Observation" -define "Bleeding (HTS) Condition": +define "Bleeding": + exists "Bleeding Condition" + or exists "Bleeding Observation" +define "Bleeding Condition": [Condition: Concepts."Bleeding"] -define "Bleeding (HTS) Observation": - "Type of adverse VMMC event (HTS) Observation" O +define "Bleeding Observation": + "Type of adverse VMMC event Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Bleeding" -/* End of Bleeding (HTS) */ +/* End of Bleeding */ /* @dataElement: HIV.B.DE211 - Damage to the penis @@ -2324,16 +2324,16 @@ define "Bleeding (HTS) Observation": @description: Client had damage to the penis */ // TODO: Replace placeholder with relevant CQL logic -define "Damage to the penis (HTS)": - exists "Damage to the penis (HTS) Condition" - or exists "Damage to the penis (HTS) Observation" -define "Damage to the penis (HTS) Condition": +define "Damage to the penis": + exists "Damage to the penis Condition" + or exists "Damage to the penis Observation" +define "Damage to the penis Condition": [Condition: Concepts."Damage to the penis"] -define "Damage to the penis (HTS) Observation": - "Type of adverse VMMC event (HTS) Observation" O +define "Damage to the penis Observation": + "Type of adverse VMMC event Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Damage to the penis" -/* End of Damage to the penis (HTS) */ +/* End of Damage to the penis */ /* @dataElement: HIV.B.DE212 - Difficulty urinating @@ -2341,16 +2341,16 @@ define "Damage to the penis (HTS) Observation": @description: Client had difficulty urinating */ // TODO: Replace placeholder with relevant CQL logic -define "Difficulty urinating (HTS)": - exists "Difficulty urinating (HTS) Condition" - or exists "Difficulty urinating (HTS) Observation" -define "Difficulty urinating (HTS) Condition": +define "Difficulty urinating": + exists "Difficulty urinating Condition" + or exists "Difficulty urinating Observation" +define "Difficulty urinating Condition": [Condition: Concepts."Difficulty urinating"] -define "Difficulty urinating (HTS) Observation": - "Type of adverse VMMC event (HTS) Observation" O +define "Difficulty urinating Observation": + "Type of adverse VMMC event Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Difficulty urinating" -/* End of Difficulty urinating (HTS) */ +/* End of Difficulty urinating */ /* @dataElement: HIV.B.DE213 - Excessive bleeding @@ -2358,16 +2358,16 @@ define "Difficulty urinating (HTS) Observation": @description: Client experienced excessive bleeding */ // TODO: Replace placeholder with relevant CQL logic -define "Excessive bleeding (HTS)": - exists "Excessive bleeding (HTS) Condition" - or exists "Excessive bleeding (HTS) Observation" -define "Excessive bleeding (HTS) Condition": +define "Excessive bleeding": + exists "Excessive bleeding Condition" + or exists "Excessive bleeding Observation" +define "Excessive bleeding Condition": [Condition: Concepts."Excessive bleeding"] -define "Excessive bleeding (HTS) Observation": - "Type of adverse VMMC event (HTS) Observation" O +define "Excessive bleeding Observation": + "Type of adverse VMMC event Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Excessive bleeding" -/* End of Excessive bleeding (HTS) */ +/* End of Excessive bleeding */ /* @dataElement: HIV.B.DE214 - Excessive skin removal @@ -2375,16 +2375,16 @@ define "Excessive bleeding (HTS) Observation": @description: Client experienced excessive skin removal */ // TODO: Replace placeholder with relevant CQL logic -define "Excessive skin removal (HTS)": - exists "Excessive skin removal (HTS) Condition" - or exists "Excessive skin removal (HTS) Observation" -define "Excessive skin removal (HTS) Condition": +define "Excessive skin removal": + exists "Excessive skin removal Condition" + or exists "Excessive skin removal Observation" +define "Excessive skin removal Condition": [Condition: Concepts."Excessive skin removal"] -define "Excessive skin removal (HTS) Observation": - "Type of adverse VMMC event (HTS) Observation" O +define "Excessive skin removal Observation": + "Type of adverse VMMC event Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Excessive skin removal" -/* End of Excessive skin removal (HTS) */ +/* End of Excessive skin removal */ /* @dataElement: HIV.B.DE215 - Excessive swelling @@ -2392,16 +2392,16 @@ define "Excessive skin removal (HTS) Observation": @description: Client experienced excessive swelling */ // TODO: Replace placeholder with relevant CQL logic -define "Excessive swelling (HTS)": - exists "Excessive swelling (HTS) Condition" - or exists "Excessive swelling (HTS) Observation" -define "Excessive swelling (HTS) Condition": +define "Excessive swelling": + exists "Excessive swelling Condition" + or exists "Excessive swelling Observation" +define "Excessive swelling Condition": [Condition: Concepts."Excessive swelling"] -define "Excessive swelling (HTS) Observation": - "Type of adverse VMMC event (HTS) Observation" O +define "Excessive swelling Observation": + "Type of adverse VMMC event Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Excessive swelling" -/* End of Excessive swelling (HTS) */ +/* End of Excessive swelling */ /* @dataElement: HIV.B.DE216 - Haematoma @@ -2409,16 +2409,16 @@ define "Excessive swelling (HTS) Observation": @description: Client experienced haematoma */ // TODO: Replace placeholder with relevant CQL logic -define "Haematoma (HTS)": - exists "Haematoma (HTS) Condition" - or exists "Haematoma (HTS) Observation" -define "Haematoma (HTS) Condition": +define "Haematoma": + exists "Haematoma Condition" + or exists "Haematoma Observation" +define "Haematoma Condition": [Condition: Concepts."Haematoma"] -define "Haematoma (HTS) Observation": - "Type of adverse VMMC event (HTS) Observation" O +define "Haematoma Observation": + "Type of adverse VMMC event Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Haematoma" -/* End of Haematoma (HTS) */ +/* End of Haematoma */ /* @dataElement: HIV.B.DE217 - Infection @@ -2426,16 +2426,16 @@ define "Haematoma (HTS) Observation": @description: Client experienced infection */ // TODO: Replace placeholder with relevant CQL logic -define "Infection (HTS)": - exists "Infection (HTS) Condition" - or exists "Infection (HTS) Observation" -define "Infection (HTS) Condition": +define "Infection": + exists "Infection Condition" + or exists "Infection Observation" +define "Infection Condition": [Condition: Concepts."Infection"] -define "Infection (HTS) Observation": - "Type of adverse VMMC event (HTS) Observation" O +define "Infection Observation": + "Type of adverse VMMC event Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Infection" -/* End of Infection (HTS) */ +/* End of Infection */ /* @dataElement: HIV.B.DE218 - Injury to glans @@ -2443,16 +2443,16 @@ define "Infection (HTS) Observation": @description: Client experienced injury to glans */ // TODO: Replace placeholder with relevant CQL logic -define "Injury to glans (HTS)": - exists "Injury to glans (HTS) Condition" - or exists "Injury to glans (HTS) Observation" -define "Injury to glans (HTS) Condition": +define "Injury to glans": + exists "Injury to glans Condition" + or exists "Injury to glans Observation" +define "Injury to glans Condition": [Condition: Concepts."Injury to glans"] -define "Injury to glans (HTS) Observation": - "Type of adverse VMMC event (HTS) Observation" O +define "Injury to glans Observation": + "Type of adverse VMMC event Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Injury to glans" -/* End of Injury to glans (HTS) */ +/* End of Injury to glans */ /* @dataElement: HIV.B.DE219 - Scar or disfigurement @@ -2460,16 +2460,16 @@ define "Injury to glans (HTS) Observation": @description: Client experienced scar or disfigurement */ // TODO: Replace placeholder with relevant CQL logic -define "Scar or disfigurement (HTS)": - exists "Scar or disfigurement (HTS) Condition" - or exists "Scar or disfigurement (HTS) Observation" -define "Scar or disfigurement (HTS) Condition": +define "Scar or disfigurement": + exists "Scar or disfigurement Condition" + or exists "Scar or disfigurement Observation" +define "Scar or disfigurement Condition": [Condition: Concepts."Scar or disfigurement"] -define "Scar or disfigurement (HTS) Observation": - "Type of adverse VMMC event (HTS) Observation" O +define "Scar or disfigurement Observation": + "Type of adverse VMMC event Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Scar or disfigurement" -/* End of Scar or disfigurement (HTS) */ +/* End of Scar or disfigurement */ /* @dataElement: HIV.B.DE220 - Sharps injury to personnel @@ -2477,16 +2477,16 @@ define "Scar or disfigurement (HTS) Observation": @description: During VMMC procedure there was sharps injury to personnel */ // TODO: Replace placeholder with relevant CQL logic -define "Sharps injury to personnel (HTS)": - exists "Sharps injury to personnel (HTS) Condition" - or exists "Sharps injury to personnel (HTS) Observation" -define "Sharps injury to personnel (HTS) Condition": +define "Sharps injury to personnel": + exists "Sharps injury to personnel Condition" + or exists "Sharps injury to personnel Observation" +define "Sharps injury to personnel Condition": [Condition: Concepts."Sharps injury to personnel"] -define "Sharps injury to personnel (HTS) Observation": - "Type of adverse VMMC event (HTS) Observation" O +define "Sharps injury to personnel Observation": + "Type of adverse VMMC event Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Sharps injury to personnel" -/* End of Sharps injury to personnel (HTS) */ +/* End of Sharps injury to personnel */ /* @dataElement: HIV.B.DE221 - Wound disruption @@ -2494,16 +2494,16 @@ define "Sharps injury to personnel (HTS) Observation": @description: Client experienced wound disruption */ // TODO: Replace placeholder with relevant CQL logic -define "Wound disruption (HTS)": - exists "Wound disruption (HTS) Condition" - or exists "Wound disruption (HTS) Observation" -define "Wound disruption (HTS) Condition": +define "Wound disruption": + exists "Wound disruption Condition" + or exists "Wound disruption Observation" +define "Wound disruption Condition": [Condition: Concepts."Wound disruption"] -define "Wound disruption (HTS) Observation": - "Type of adverse VMMC event (HTS) Observation" O +define "Wound disruption Observation": + "Type of adverse VMMC event Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Wound disruption" -/* End of Wound disruption (HTS) */ +/* End of Wound disruption */ /* @dataElement: HIV.B.DE222 - Other @@ -2511,16 +2511,16 @@ define "Wound disruption (HTS) Observation": @description: Client experienced other adverse VMMC event */ // TODO: Replace placeholder with relevant CQL logic -define "Other (HTS|BDE222)": - exists "Other (HTS|BDE222) Condition" - or exists "Other (HTS|BDE222) Observation" -define "Other (HTS|BDE222) Condition": +define "Other B.DE222": + exists "Other B.DE222 Condition" + or exists "Other B.DE222 Observation" +define "Other B.DE222 Condition": [Condition: Concepts."Other - HIV.B.DE222"] -define "Other (HTS|BDE222) Observation": - "Type of adverse VMMC event (HTS) Observation" O +define "Other B.DE222 Observation": + "Type of adverse VMMC event Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Other - HIV.B.DE222" -/* End of Other (HTS|BDE222) */ +/* End of Other B.DE222 */ /* @dataElement: HIV.B.DE224 - HIV retest prior to starting ART conducted @@ -2528,13 +2528,13 @@ define "Other (HTS|BDE222) Observation": @description: HIV retest prior to starting ART conducted */ // TODO: Replace placeholder with relevant CQL logic -define "HIV retest prior to starting ART conducted (HTS)": - exists "HIV retest prior to starting ART conducted (HTS) Observation" -define "HIV retest prior to starting ART conducted (HTS) Observation": +define "HIV retest prior to starting ART conducted": + exists "HIV retest prior to starting ART conducted Observation" +define "HIV retest prior to starting ART conducted Observation": [Observation: Concepts."HIV retest prior to starting ART conducted"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of HIV retest prior to starting ART conducted (HTS) */ +/* End of HIV retest prior to starting ART conducted */ /* @dataElement: HIV.B.DE225 - At elevated risk for HIV acquisition @@ -2542,13 +2542,13 @@ define "HIV retest prior to starting ART conducted (HTS) Observation": @description: Client is at elevated risk for HIV acquisition */ // TODO: Replace placeholder with relevant CQL logic -define "At elevated risk for HIV acquisition (HTS)": - exists "At elevated risk for HIV acquisition (HTS) Observation" -define "At elevated risk for HIV acquisition (HTS) Observation": +define "At elevated risk for HIV acquisition B.DE225": + exists "At elevated risk for HIV acquisition B.DE225 Observation" +define "At elevated risk for HIV acquisition B.DE225 Observation": [Observation: Concepts."At elevated risk for HIV acquisition - HIV.B.DE225"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of At elevated risk for HIV acquisition (HTS) */ +/* End of At elevated risk for HIV acquisition B.DE225 */ /* @dataElement: HIV.B.DE226 - Syndrome/STI diagnosed @@ -2556,12 +2556,12 @@ define "At elevated risk for HIV acquisition (HTS) Observation": @description: Syndrome or STI for which client is diagnosed */ // TODO: Replace placeholder with relevant CQL logic -define "Syndrome/STI diagnosed (HTS)": - exists "Syndrome/STI diagnosed (HTS) Observation" -define "Syndrome/STI diagnosed (HTS) Observation": +define "Syndrome/STI diagnosed B.DE226": + exists "Syndrome/STI diagnosed B.DE226 Observation" +define "Syndrome/STI diagnosed B.DE226 Observation": [Observation: Concepts."Syndrome/STI diagnosed - HIV.B.DE226"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Syndrome/STI diagnosed (HTS) */ +/* End of Syndrome/STI diagnosed B.DE226 */ /* @dataElement: HIV.B.DE227 - Urethral discharge syndrome @@ -2569,16 +2569,16 @@ define "Syndrome/STI diagnosed (HTS) Observation": @description: Client diagnosed with urethral discharge syndrome */ // TODO: Replace placeholder with relevant CQL logic -define "Urethral discharge syndrome (HTS)": - exists "Urethral discharge syndrome (HTS) Condition" - or exists "Urethral discharge syndrome (HTS) Observation" -define "Urethral discharge syndrome (HTS) Condition": +define "Urethral discharge syndrome B.DE227": + exists "Urethral discharge syndrome B.DE227 Condition" + or exists "Urethral discharge syndrome B.DE227 Observation" +define "Urethral discharge syndrome B.DE227 Condition": [Condition: Concepts."Urethral discharge syndrome - HIV.B.DE227"] -define "Urethral discharge syndrome (HTS) Observation": - "Syndrome/STI diagnosed (HTS) Observation" O +define "Urethral discharge syndrome B.DE227 Observation": + "Syndrome/STI diagnosed B.DE226 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Urethral discharge syndrome - HIV.B.DE227" -/* End of Urethral discharge syndrome (HTS) */ +/* End of Urethral discharge syndrome B.DE227 */ /* @dataElement: HIV.B.DE228 - Vaginal discharge syndrome @@ -2586,16 +2586,16 @@ define "Urethral discharge syndrome (HTS) Observation": @description: Client diagnosed with vaginal discharge syndrome */ // TODO: Replace placeholder with relevant CQL logic -define "Vaginal discharge syndrome (HTS)": - exists "Vaginal discharge syndrome (HTS) Condition" - or exists "Vaginal discharge syndrome (HTS) Observation" -define "Vaginal discharge syndrome (HTS) Condition": +define "Vaginal discharge syndrome B.DE228": + exists "Vaginal discharge syndrome B.DE228 Condition" + or exists "Vaginal discharge syndrome B.DE228 Observation" +define "Vaginal discharge syndrome B.DE228 Condition": [Condition: Concepts."Vaginal discharge syndrome - HIV.B.DE228"] -define "Vaginal discharge syndrome (HTS) Observation": - "Syndrome/STI diagnosed (HTS) Observation" O +define "Vaginal discharge syndrome B.DE228 Observation": + "Syndrome/STI diagnosed B.DE226 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Vaginal discharge syndrome - HIV.B.DE228" -/* End of Vaginal discharge syndrome (HTS) */ +/* End of Vaginal discharge syndrome B.DE228 */ /* @dataElement: HIV.B.DE229 - Lower Abdominal pain @@ -2603,16 +2603,16 @@ define "Vaginal discharge syndrome (HTS) Observation": @description: Client diagnosed with lower abdominal pain */ // TODO: Replace placeholder with relevant CQL logic -define "Lower Abdominal pain (HTS)": - exists "Lower Abdominal pain (HTS) Condition" - or exists "Lower Abdominal pain (HTS) Observation" -define "Lower Abdominal pain (HTS) Condition": +define "Lower Abdominal pain B.DE229": + exists "Lower Abdominal pain B.DE229 Condition" + or exists "Lower Abdominal pain B.DE229 Observation" +define "Lower Abdominal pain B.DE229 Condition": [Condition: Concepts."Lower Abdominal pain - HIV.B.DE229"] -define "Lower Abdominal pain (HTS) Observation": - "Syndrome/STI diagnosed (HTS) Observation" O +define "Lower Abdominal pain B.DE229 Observation": + "Syndrome/STI diagnosed B.DE226 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Lower Abdominal pain - HIV.B.DE229" -/* End of Lower Abdominal pain (HTS) */ +/* End of Lower Abdominal pain B.DE229 */ /* @dataElement: HIV.B.DE230 - Genital ulcer disease syndrome @@ -2620,16 +2620,16 @@ define "Lower Abdominal pain (HTS) Observation": @description: Client diagnosed with genital ulcer disease syndrome */ // TODO: Replace placeholder with relevant CQL logic -define "Genital ulcer disease syndrome (HTS)": - exists "Genital ulcer disease syndrome (HTS) Condition" - or exists "Genital ulcer disease syndrome (HTS) Observation" -define "Genital ulcer disease syndrome (HTS) Condition": +define "Genital ulcer disease syndrome B.DE230": + exists "Genital ulcer disease syndrome B.DE230 Condition" + or exists "Genital ulcer disease syndrome B.DE230 Observation" +define "Genital ulcer disease syndrome B.DE230 Condition": [Condition: Concepts."Genital ulcer disease syndrome - HIV.B.DE230"] -define "Genital ulcer disease syndrome (HTS) Observation": - "Syndrome/STI diagnosed (HTS) Observation" O +define "Genital ulcer disease syndrome B.DE230 Observation": + "Syndrome/STI diagnosed B.DE226 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Genital ulcer disease syndrome - HIV.B.DE230" -/* End of Genital ulcer disease syndrome (HTS) */ +/* End of Genital ulcer disease syndrome B.DE230 */ /* @dataElement: HIV.B.DE231 - Anorectal discharge @@ -2637,16 +2637,16 @@ define "Genital ulcer disease syndrome (HTS) Observation": @description: Client diagnosed with anorectal discharge */ // TODO: Replace placeholder with relevant CQL logic -define "Anorectal discharge (HTS)": - exists "Anorectal discharge (HTS) Condition" - or exists "Anorectal discharge (HTS) Observation" -define "Anorectal discharge (HTS) Condition": +define "Anorectal discharge B.DE231": + exists "Anorectal discharge B.DE231 Condition" + or exists "Anorectal discharge B.DE231 Observation" +define "Anorectal discharge B.DE231 Condition": [Condition: Concepts."Anorectal discharge - HIV.B.DE231"] -define "Anorectal discharge (HTS) Observation": - "Syndrome/STI diagnosed (HTS) Observation" O +define "Anorectal discharge B.DE231 Observation": + "Syndrome/STI diagnosed B.DE226 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Anorectal discharge - HIV.B.DE231" -/* End of Anorectal discharge (HTS) */ +/* End of Anorectal discharge B.DE231 */ /* @dataElement: HIV.B.DE232 - Sent for testing @@ -2654,16 +2654,16 @@ define "Anorectal discharge (HTS) Observation": @description: Specimen sent for testing */ // TODO: Replace placeholder with relevant CQL logic -define "Sent for testing (HTS)": - exists "Sent for testing (HTS) Condition" - or exists "Sent for testing (HTS) Observation" -define "Sent for testing (HTS) Condition": +define "Sent for testing B.DE232": + exists "Sent for testing B.DE232 Condition" + or exists "Sent for testing B.DE232 Observation" +define "Sent for testing B.DE232 Condition": [Condition: Concepts."Sent for testing - HIV.B.DE232"] -define "Sent for testing (HTS) Observation": - "Syndrome/STI diagnosed (HTS) Observation" O +define "Sent for testing B.DE232 Observation": + "Syndrome/STI diagnosed B.DE226 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Sent for testing - HIV.B.DE232" -/* End of Sent for testing (HTS) */ +/* End of Sent for testing B.DE232 */ /* @dataElement: HIV.B.DE233 - Other @@ -2671,16 +2671,16 @@ define "Sent for testing (HTS) Observation": @description: Other syndrome/STI diagnosed */ // TODO: Replace placeholder with relevant CQL logic -define "Other (HTS|BDE233)": - exists "Other (HTS|BDE233) Condition" - or exists "Other (HTS|BDE233) Observation" -define "Other (HTS|BDE233) Condition": +define "Other B.DE233": + exists "Other B.DE233 Condition" + or exists "Other B.DE233 Observation" +define "Other B.DE233 Condition": [Condition: Concepts."Other - HIV.B.DE233"] -define "Other (HTS|BDE233) Observation": - "Syndrome/STI diagnosed (HTS) Observation" O +define "Other B.DE233 Observation": + "Syndrome/STI diagnosed B.DE226 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Other - HIV.B.DE233" -/* End of Other (HTS|BDE233) */ +/* End of Other B.DE233 */ /* @dataElement: HIV.B.DE235 - Any STI syndrome diagnosed @@ -2688,13 +2688,13 @@ define "Other (HTS|BDE233) Observation": @description: Was the client diagnosed with any of the five STI syndromes during this visit? */ // TODO: Replace placeholder with relevant CQL logic -define "Any STI syndrome diagnosed (HTS)": - exists "Any STI syndrome diagnosed (HTS) Observation" -define "Any STI syndrome diagnosed (HTS) Observation": +define "Any STI syndrome diagnosed B.DE235": + exists "Any STI syndrome diagnosed B.DE235 Observation" +define "Any STI syndrome diagnosed B.DE235 Observation": [Observation: Concepts."Any STI syndrome diagnosed - HIV.B.DE235"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Any STI syndrome diagnosed (HTS) */ +/* End of Any STI syndrome diagnosed B.DE235 */ /* @dataElement: HIV.B.DE249 - Syphilis test date @@ -2702,13 +2702,13 @@ define "Any STI syndrome diagnosed (HTS) Observation": @description: Date of syphilis test */ // TODO: Replace placeholder with relevant CQL logic -define "Syphilis test date (HTS)": +define "Syphilis test date B.DE249": [Observation: Concepts."Syphilis test date - HIV.B.DE249"] O where O.status in { 'final', 'amended', 'corrected' } -define "Syphilis test date (HTS) Value": - "Syphilis test date (HTS)" O +define "Syphilis test date B.DE249 Value": + "Syphilis test date B.DE249" O return O.value -/* End of Syphilis test date (HTS) */ +/* End of Syphilis test date B.DE249 */ /* @dataElement: HIV.B.DE250 - Syphilis test result @@ -2716,12 +2716,12 @@ define "Syphilis test date (HTS) Value": @description: Result from syphilis test */ // TODO: Replace placeholder with relevant CQL logic -define "Syphilis test result (HTS)": - exists "Syphilis test result (HTS) Observation" -define "Syphilis test result (HTS) Observation": +define "Syphilis test result B.DE250": + exists "Syphilis test result B.DE250 Observation" +define "Syphilis test result B.DE250 Observation": [Observation: Concepts."Syphilis test result - HIV.B.DE250"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Syphilis test result (HTS) */ +/* End of Syphilis test result B.DE250 */ /* @dataElement: HIV.B.DE251 - Positive @@ -2729,16 +2729,16 @@ define "Syphilis test result (HTS) Observation": @description: Test result is positive for syphilis */ // TODO: Replace placeholder with relevant CQL logic -define "Positive (HTS|BDE251)": - exists "Positive (HTS|BDE251) Condition" - or exists "Positive (HTS|BDE251) Observation" -define "Positive (HTS|BDE251) Condition": +define "Positive B.DE251": + exists "Positive B.DE251 Condition" + or exists "Positive B.DE251 Observation" +define "Positive B.DE251 Condition": [Condition: Concepts."Positive - HIV.B.DE251"] -define "Positive (HTS|BDE251) Observation": - "Syphilis test result (HTS) Observation" O +define "Positive B.DE251 Observation": + "Syphilis test result B.DE250 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Positive - HIV.B.DE251" -/* End of Positive (HTS|BDE251) */ +/* End of Positive B.DE251 */ /* @dataElement: HIV.B.DE252 - Negative @@ -2746,16 +2746,16 @@ define "Positive (HTS|BDE251) Observation": @description: Test result is negative for syphilis */ // TODO: Replace placeholder with relevant CQL logic -define "Negative (HTS|BDE252)": - exists "Negative (HTS|BDE252) Condition" - or exists "Negative (HTS|BDE252) Observation" -define "Negative (HTS|BDE252) Condition": +define "Negative B.DE252": + exists "Negative B.DE252 Condition" + or exists "Negative B.DE252 Observation" +define "Negative B.DE252 Condition": [Condition: Concepts."Negative - HIV.B.DE252"] -define "Negative (HTS|BDE252) Observation": - "Syphilis test result (HTS) Observation" O +define "Negative B.DE252 Observation": + "Syphilis test result B.DE250 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Negative - HIV.B.DE252" -/* End of Negative (HTS|BDE252) */ +/* End of Negative B.DE252 */ /* @dataElement: HIV.B.DE253 - Inconclusive @@ -2763,16 +2763,16 @@ define "Negative (HTS|BDE252) Observation": @description: Test result is inconclusive */ // TODO: Replace placeholder with relevant CQL logic -define "Inconclusive (HTS|BDE253)": - exists "Inconclusive (HTS|BDE253) Condition" - or exists "Inconclusive (HTS|BDE253) Observation" -define "Inconclusive (HTS|BDE253) Condition": +define "Inconclusive B.DE253": + exists "Inconclusive B.DE253 Condition" + or exists "Inconclusive B.DE253 Observation" +define "Inconclusive B.DE253 Condition": [Condition: Concepts."Inconclusive - HIV.B.DE253"] -define "Inconclusive (HTS|BDE253) Observation": - "Syphilis test result (HTS) Observation" O +define "Inconclusive B.DE253 Observation": + "Syphilis test result B.DE250 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Inconclusive - HIV.B.DE253" -/* End of Inconclusive (HTS|BDE253) */ +/* End of Inconclusive B.DE253 */ /* @dataElement: HIV.B.DE254 - Syphilis treatment start date @@ -2780,13 +2780,13 @@ define "Inconclusive (HTS|BDE253) Observation": @description: Date of initiation of syphilis treatment */ // TODO: Replace placeholder with relevant CQL logic -define "Syphilis treatment start date (HTS)": +define "Syphilis treatment start date B.DE254": [Observation: Concepts."Syphilis treatment start date - HIV.B.DE254"] O where O.status in { 'final', 'amended', 'corrected' } -define "Syphilis treatment start date (HTS) Value": - "Syphilis treatment start date (HTS)" O +define "Syphilis treatment start date B.DE254 Value": + "Syphilis treatment start date B.DE254" O return O.value -/* End of Syphilis treatment start date (HTS) */ +/* End of Syphilis treatment start date B.DE254 */ /* @dataElement: HIV.B.DE255 - Gonorrhoea test date @@ -2794,13 +2794,13 @@ define "Syphilis treatment start date (HTS) Value": @description: Date of Gonorrhoea test */ // TODO: Replace placeholder with relevant CQL logic -define "Gonorrhoea test date (HTS)": +define "Gonorrhoea test date B.DE255": [Observation: Concepts."Gonorrhoea test date - HIV.B.DE255"] O where O.status in { 'final', 'amended', 'corrected' } -define "Gonorrhoea test date (HTS) Value": - "Gonorrhoea test date (HTS)" O +define "Gonorrhoea test date B.DE255 Value": + "Gonorrhoea test date B.DE255" O return O.value -/* End of Gonorrhoea test date (HTS) */ +/* End of Gonorrhoea test date B.DE255 */ /* @dataElement: HIV.B.DE256 - Gonorrhoea test result @@ -2808,12 +2808,12 @@ define "Gonorrhoea test date (HTS) Value": @description: Result from Gonorrhoea test */ // TODO: Replace placeholder with relevant CQL logic -define "Gonorrhoea test result (HTS)": - exists "Gonorrhoea test result (HTS) Observation" -define "Gonorrhoea test result (HTS) Observation": +define "Gonorrhoea test result B.DE256": + exists "Gonorrhoea test result B.DE256 Observation" +define "Gonorrhoea test result B.DE256 Observation": [Observation: Concepts."Gonorrhoea test result - HIV.B.DE256"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Gonorrhoea test result (HTS) */ +/* End of Gonorrhoea test result B.DE256 */ /* @dataElement: HIV.B.DE257 - Positive @@ -2821,16 +2821,16 @@ define "Gonorrhoea test result (HTS) Observation": @description: Test result is positive for Neisseria gonorrhoeae */ // TODO: Replace placeholder with relevant CQL logic -define "Positive (HTS|BDE257)": - exists "Positive (HTS|BDE257) Condition" - or exists "Positive (HTS|BDE257) Observation" -define "Positive (HTS|BDE257) Condition": +define "Positive B.DE257": + exists "Positive B.DE257 Condition" + or exists "Positive B.DE257 Observation" +define "Positive B.DE257 Condition": [Condition: Concepts."Positive - HIV.B.DE257"] -define "Positive (HTS|BDE257) Observation": - "Gonorrhoea test result (HTS) Observation" O +define "Positive B.DE257 Observation": + "Gonorrhoea test result B.DE256 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Positive - HIV.B.DE257" -/* End of Positive (HTS|BDE257) */ +/* End of Positive B.DE257 */ /* @dataElement: HIV.B.DE258 - Negative @@ -2838,16 +2838,16 @@ define "Positive (HTS|BDE257) Observation": @description: Test result is negative for Neisseria gonorrhoeae */ // TODO: Replace placeholder with relevant CQL logic -define "Negative (HTS|BDE258)": - exists "Negative (HTS|BDE258) Condition" - or exists "Negative (HTS|BDE258) Observation" -define "Negative (HTS|BDE258) Condition": +define "Negative B.DE258": + exists "Negative B.DE258 Condition" + or exists "Negative B.DE258 Observation" +define "Negative B.DE258 Condition": [Condition: Concepts."Negative - HIV.B.DE258"] -define "Negative (HTS|BDE258) Observation": - "Gonorrhoea test result (HTS) Observation" O +define "Negative B.DE258 Observation": + "Gonorrhoea test result B.DE256 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Negative - HIV.B.DE258" -/* End of Negative (HTS|BDE258) */ +/* End of Negative B.DE258 */ /* @dataElement: HIV.B.DE259 - Inconclusive @@ -2855,16 +2855,16 @@ define "Negative (HTS|BDE258) Observation": @description: Test result is inconclusive */ // TODO: Replace placeholder with relevant CQL logic -define "Inconclusive (HTS|BDE259)": - exists "Inconclusive (HTS|BDE259) Condition" - or exists "Inconclusive (HTS|BDE259) Observation" -define "Inconclusive (HTS|BDE259) Condition": +define "Inconclusive B.DE259": + exists "Inconclusive B.DE259 Condition" + or exists "Inconclusive B.DE259 Observation" +define "Inconclusive B.DE259 Condition": [Condition: Concepts."Inconclusive - HIV.B.DE259"] -define "Inconclusive (HTS|BDE259) Observation": - "Gonorrhoea test result (HTS) Observation" O +define "Inconclusive B.DE259 Observation": + "Gonorrhoea test result B.DE256 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Inconclusive - HIV.B.DE259" -/* End of Inconclusive (HTS|BDE259) */ +/* End of Inconclusive B.DE259 */ /* @dataElement: HIV.B.DE260 - Gonorrhoea treatment start date @@ -2872,13 +2872,13 @@ define "Inconclusive (HTS|BDE259) Observation": @description: Date of initiation of Gonorrhoea treatment */ // TODO: Replace placeholder with relevant CQL logic -define "Gonorrhoea treatment start date (HTS)": +define "Gonorrhoea treatment start date B.DE260": [Observation: Concepts."Gonorrhoea treatment start date - HIV.B.DE260"] O where O.status in { 'final', 'amended', 'corrected' } -define "Gonorrhoea treatment start date (HTS) Value": - "Gonorrhoea treatment start date (HTS)" O +define "Gonorrhoea treatment start date B.DE260 Value": + "Gonorrhoea treatment start date B.DE260" O return O.value -/* End of Gonorrhoea treatment start date (HTS) */ +/* End of Gonorrhoea treatment start date B.DE260 */ /* @dataElement: HIV.B.DE261 - Type of specimen @@ -2886,12 +2886,12 @@ define "Gonorrhoea treatment start date (HTS) Value": @description: Type of specimen to be collected */ // TODO: Replace placeholder with relevant CQL logic -define "Type of specimen (HTS)": - exists "Type of specimen (HTS) Observation" -define "Type of specimen (HTS) Observation": +define "Type of specimen B.DE261": + exists "Type of specimen B.DE261 Observation" +define "Type of specimen B.DE261 Observation": [Observation: Concepts."Type of specimen - HIV.B.DE261"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Type of specimen (HTS) */ +/* End of Type of specimen B.DE261 */ /* @dataElement: HIV.B.DE262 - Blood @@ -2899,16 +2899,16 @@ define "Type of specimen (HTS) Observation": @description: Blood specimen to be collected */ // TODO: Replace placeholder with relevant CQL logic -define "Blood (HTS)": - exists "Blood (HTS) Condition" - or exists "Blood (HTS) Observation" -define "Blood (HTS) Condition": +define "Blood B.DE262": + exists "Blood B.DE262 Condition" + or exists "Blood B.DE262 Observation" +define "Blood B.DE262 Condition": [Condition: Concepts."Blood - HIV.B.DE262"] -define "Blood (HTS) Observation": - "Type of specimen (HTS) Observation" O +define "Blood B.DE262 Observation": + "Type of specimen B.DE261 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Blood - HIV.B.DE262" -/* End of Blood (HTS) */ +/* End of Blood B.DE262 */ /* @dataElement: HIV.B.DE263 - Urine @@ -2916,16 +2916,16 @@ define "Blood (HTS) Observation": @description: Urine specimen to be collected */ // TODO: Replace placeholder with relevant CQL logic -define "Urine (HTS)": - exists "Urine (HTS) Condition" - or exists "Urine (HTS) Observation" -define "Urine (HTS) Condition": +define "Urine B.DE263": + exists "Urine B.DE263 Condition" + or exists "Urine B.DE263 Observation" +define "Urine B.DE263 Condition": [Condition: Concepts."Urine - HIV.B.DE263"] -define "Urine (HTS) Observation": - "Type of specimen (HTS) Observation" O +define "Urine B.DE263 Observation": + "Type of specimen B.DE261 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Urine - HIV.B.DE263" -/* End of Urine (HTS) */ +/* End of Urine B.DE263 */ /* @dataElement: HIV.B.DE264 - Cervical or vaginal swab @@ -2933,16 +2933,16 @@ define "Urine (HTS) Observation": @description: Cervical or vaginal swab to be collected */ // TODO: Replace placeholder with relevant CQL logic -define "Cervical or vaginal swab (HTS)": - exists "Cervical or vaginal swab (HTS) Condition" - or exists "Cervical or vaginal swab (HTS) Observation" -define "Cervical or vaginal swab (HTS) Condition": +define "Cervical or vaginal swab B.DE264": + exists "Cervical or vaginal swab B.DE264 Condition" + or exists "Cervical or vaginal swab B.DE264 Observation" +define "Cervical or vaginal swab B.DE264 Condition": [Condition: Concepts."Cervical or vaginal swab - HIV.B.DE264"] -define "Cervical or vaginal swab (HTS) Observation": - "Type of specimen (HTS) Observation" O +define "Cervical or vaginal swab B.DE264 Observation": + "Type of specimen B.DE261 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Cervical or vaginal swab - HIV.B.DE264" -/* End of Cervical or vaginal swab (HTS) */ +/* End of Cervical or vaginal swab B.DE264 */ /* @dataElement: HIV.B.DE265 - Urethral or penile swab @@ -2950,16 +2950,16 @@ define "Cervical or vaginal swab (HTS) Observation": @description: Urethral or penile swab to be collected */ // TODO: Replace placeholder with relevant CQL logic -define "Urethral or penile swab (HTS)": - exists "Urethral or penile swab (HTS) Condition" - or exists "Urethral or penile swab (HTS) Observation" -define "Urethral or penile swab (HTS) Condition": +define "Urethral or penile swab B.DE265": + exists "Urethral or penile swab B.DE265 Condition" + or exists "Urethral or penile swab B.DE265 Observation" +define "Urethral or penile swab B.DE265 Condition": [Condition: Concepts."Urethral or penile swab - HIV.B.DE265"] -define "Urethral or penile swab (HTS) Observation": - "Type of specimen (HTS) Observation" O +define "Urethral or penile swab B.DE265 Observation": + "Type of specimen B.DE261 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Urethral or penile swab - HIV.B.DE265" -/* End of Urethral or penile swab (HTS) */ +/* End of Urethral or penile swab B.DE265 */ /* @dataElement: HIV.B.DE266 - Rectal swab @@ -2967,16 +2967,16 @@ define "Urethral or penile swab (HTS) Observation": @description: Rectal swab to be collected */ // TODO: Replace placeholder with relevant CQL logic -define "Rectal swab (HTS)": - exists "Rectal swab (HTS) Condition" - or exists "Rectal swab (HTS) Observation" -define "Rectal swab (HTS) Condition": +define "Rectal swab B.DE266": + exists "Rectal swab B.DE266 Condition" + or exists "Rectal swab B.DE266 Observation" +define "Rectal swab B.DE266 Condition": [Condition: Concepts."Rectal swab - HIV.B.DE266"] -define "Rectal swab (HTS) Observation": - "Type of specimen (HTS) Observation" O +define "Rectal swab B.DE266 Observation": + "Type of specimen B.DE261 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Rectal swab - HIV.B.DE266" -/* End of Rectal swab (HTS) */ +/* End of Rectal swab B.DE266 */ /* @dataElement: HIV.B.DE267 - Other @@ -2984,16 +2984,16 @@ define "Rectal swab (HTS) Observation": @description: Other specimen type to be collected */ // TODO: Replace placeholder with relevant CQL logic -define "Other (HTS|BDE267)": - exists "Other (HTS|BDE267) Condition" - or exists "Other (HTS|BDE267) Observation" -define "Other (HTS|BDE267) Condition": +define "Other B.DE267": + exists "Other B.DE267 Condition" + or exists "Other B.DE267 Observation" +define "Other B.DE267 Condition": [Condition: Concepts."Other - HIV.B.DE267"] -define "Other (HTS|BDE267) Observation": - "Type of specimen (HTS) Observation" O +define "Other B.DE267 Observation": + "Type of specimen B.DE261 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Other - HIV.B.DE267" -/* End of Other (HTS|BDE267) */ +/* End of Other B.DE267 */ /* @dataElement: HIV.B.DE276 - Neisseria gonorrhoeae test type @@ -3001,12 +3001,12 @@ define "Other (HTS|BDE267) Observation": @description: Type of diagnostic test used for Neisseria gonorrhoeae */ // TODO: Replace placeholder with relevant CQL logic -define "Neisseria gonorrhoeae test type (HTS)": - exists "Neisseria gonorrhoeae test type (HTS) Observation" -define "Neisseria gonorrhoeae test type (HTS) Observation": +define "Neisseria gonorrhoeae test type B.DE276": + exists "Neisseria gonorrhoeae test type B.DE276 Observation" +define "Neisseria gonorrhoeae test type B.DE276 Observation": [Observation: Concepts."Neisseria gonorrhoeae test type - HIV.B.DE276"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Neisseria gonorrhoeae test type (HTS) */ +/* End of Neisseria gonorrhoeae test type B.DE276 */ /* @dataElement: HIV.B.DE277 - NAAT @@ -3014,16 +3014,16 @@ define "Neisseria gonorrhoeae test type (HTS) Observation": @description: Nucleic Acid Amplification Test (NAAT) used */ // TODO: Replace placeholder with relevant CQL logic -define "NAAT (HTS)": - exists "NAAT (HTS) Condition" - or exists "NAAT (HTS) Observation" -define "NAAT (HTS) Condition": +define "NAAT B.DE277": + exists "NAAT B.DE277 Condition" + or exists "NAAT B.DE277 Observation" +define "NAAT B.DE277 Condition": [Condition: Concepts."NAAT - HIV.B.DE277"] -define "NAAT (HTS) Observation": - "Neisseria gonorrhoeae test type (HTS) Observation" O +define "NAAT B.DE277 Observation": + "Neisseria gonorrhoeae test type B.DE276 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."NAAT - HIV.B.DE277" -/* End of NAAT (HTS) */ +/* End of NAAT B.DE277 */ /* @dataElement: HIV.B.DE278 - POC Test @@ -3031,16 +3031,16 @@ define "NAAT (HTS) Observation": @description: Point-of-care (POC) test used */ // TODO: Replace placeholder with relevant CQL logic -define "POC Test (HTS)": - exists "POC Test (HTS) Condition" - or exists "POC Test (HTS) Observation" -define "POC Test (HTS) Condition": +define "POC Test B.DE278": + exists "POC Test B.DE278 Condition" + or exists "POC Test B.DE278 Observation" +define "POC Test B.DE278 Condition": [Condition: Concepts."POC Test - HIV.B.DE278"] -define "POC Test (HTS) Observation": - "Neisseria gonorrhoeae test type (HTS) Observation" O +define "POC Test B.DE278 Observation": + "Neisseria gonorrhoeae test type B.DE276 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."POC Test - HIV.B.DE278" -/* End of POC Test (HTS) */ +/* End of POC Test B.DE278 */ /* @dataElement: HIV.B.DE279 - Culture @@ -3048,16 +3048,16 @@ define "POC Test (HTS) Observation": @description: Culture test used */ // TODO: Replace placeholder with relevant CQL logic -define "Culture (HTS)": - exists "Culture (HTS) Condition" - or exists "Culture (HTS) Observation" -define "Culture (HTS) Condition": +define "Culture B.DE279": + exists "Culture B.DE279 Condition" + or exists "Culture B.DE279 Observation" +define "Culture B.DE279 Condition": [Condition: Concepts."Culture - HIV.B.DE279"] -define "Culture (HTS) Observation": - "Neisseria gonorrhoeae test type (HTS) Observation" O +define "Culture B.DE279 Observation": + "Neisseria gonorrhoeae test type B.DE276 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Culture - HIV.B.DE279" -/* End of Culture (HTS) */ +/* End of Culture B.DE279 */ /* @dataElement: HIV.B.DE280 - Microscopy @@ -3065,16 +3065,16 @@ define "Culture (HTS) Observation": @description: Microscopy test used */ // TODO: Replace placeholder with relevant CQL logic -define "Microscopy (HTS)": - exists "Microscopy (HTS) Condition" - or exists "Microscopy (HTS) Observation" -define "Microscopy (HTS) Condition": +define "Microscopy B.DE280": + exists "Microscopy B.DE280 Condition" + or exists "Microscopy B.DE280 Observation" +define "Microscopy B.DE280 Condition": [Condition: Concepts."Microscopy - HIV.B.DE280"] -define "Microscopy (HTS) Observation": - "Neisseria gonorrhoeae test type (HTS) Observation" O +define "Microscopy B.DE280 Observation": + "Neisseria gonorrhoeae test type B.DE276 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Microscopy - HIV.B.DE280" -/* End of Microscopy (HTS) */ +/* End of Microscopy B.DE280 */ /* @dataElement: HIV.B.DE281 - Other @@ -3082,16 +3082,16 @@ define "Microscopy (HTS) Observation": @description: Other type of test used */ // TODO: Replace placeholder with relevant CQL logic -define "Other (HTS|BDE281)": - exists "Other (HTS|BDE281) Condition" - or exists "Other (HTS|BDE281) Observation" -define "Other (HTS|BDE281) Condition": +define "Other B.DE281": + exists "Other B.DE281 Condition" + or exists "Other B.DE281 Observation" +define "Other B.DE281 Condition": [Condition: Concepts."Other - HIV.B.DE281"] -define "Other (HTS|BDE281) Observation": - "Neisseria gonorrhoeae test type (HTS) Observation" O +define "Other B.DE281 Observation": + "Neisseria gonorrhoeae test type B.DE276 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Other - HIV.B.DE281" -/* End of Other (HTS|BDE281) */ +/* End of Other B.DE281 */ /* @dataElement: HIV.C.DE9 - Date/time of suspected exposure to HIV @@ -3099,13 +3099,13 @@ define "Other (HTS|BDE281) Observation": @description: When the suspect exposure to HIV took place */ // TODO: Replace placeholder with relevant CQL logic -define "Date/time of suspected exposure to HIV (PrEP)": +define "Date/time of suspected exposure to HIV C.DE9": [Observation: Concepts."Date/time of suspected exposure to HIV - HIV.C.DE9"] O where O.status in { 'final', 'amended', 'corrected' } -define "Date/time of suspected exposure to HIV (PrEP) Value": - "Date/time of suspected exposure to HIV (PrEP)" O +define "Date/time of suspected exposure to HIV C.DE9 Value": + "Date/time of suspected exposure to HIV C.DE9" O return O.value -/* End of Date/time of suspected exposure to HIV (PrEP) */ +/* End of Date/time of suspected exposure to HIV C.DE9 */ /* @dataElement: HIV.C.DE10 - Currently on PrEP @@ -3113,13 +3113,13 @@ define "Date/time of suspected exposure to HIV (PrEP) Value": @description: The client is currently taking PrEP. Oral pre-exposure prophylaxis (PrEP) of HIV is the use of ARV drugs by people who are not infected with HIV to block the acquisition of HIV. */ // TODO: Replace placeholder with relevant CQL logic -define "Currently on PrEP (PrEP)": - exists "Currently on PrEP (PrEP) Observation" -define "Currently on PrEP (PrEP) Observation": +define "Currently on PrEP": + exists "Currently on PrEP Observation" +define "Currently on PrEP Observation": [Observation: Concepts."Currently on PrEP"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Currently on PrEP (PrEP) */ +/* End of Currently on PrEP */ /* @dataElement: HIV.C.DE11 - PrEP dosing type @@ -3127,12 +3127,12 @@ define "Currently on PrEP (PrEP) Observation": @description: Way in which pre-exposure prophylaxis (PrEP) is taken (daily or event-driven) */ // TODO: Replace placeholder with relevant CQL logic -define "PrEP dosing type (PrEP)": - exists "PrEP dosing type (PrEP) Observation" -define "PrEP dosing type (PrEP) Observation": +define "PrEP dosing type": + exists "PrEP dosing type Observation" +define "PrEP dosing type Observation": [Observation: Concepts."PrEP dosing type"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of PrEP dosing type (PrEP) */ +/* End of PrEP dosing type */ /* @dataElement: HIV.C.DE12 - Daily oral PrEP @@ -3140,16 +3140,16 @@ define "PrEP dosing type (PrEP) Observation": @description: Pre-exposure prophylaxis (PrEP) is taken every day */ // TODO: Replace placeholder with relevant CQL logic -define "Daily oral PrEP (PrEP)": - exists "Daily oral PrEP (PrEP) Condition" - or exists "Daily oral PrEP (PrEP) Observation" -define "Daily oral PrEP (PrEP) Condition": +define "Daily oral PrEP": + exists "Daily oral PrEP Condition" + or exists "Daily oral PrEP Observation" +define "Daily oral PrEP Condition": [Condition: Concepts."Daily oral PrEP"] -define "Daily oral PrEP (PrEP) Observation": - "PrEP dosing type (PrEP) Observation" O +define "Daily oral PrEP Observation": + "PrEP dosing type Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Daily oral PrEP" -/* End of Daily oral PrEP (PrEP) */ +/* End of Daily oral PrEP */ /* @dataElement: HIV.C.DE13 - Event-driven PrEP 2+1+1 @@ -3157,16 +3157,16 @@ define "Daily oral PrEP (PrEP) Observation": @description: Event-driven pre-exposure prophylaxis (PrEP) is taken on an even-driven basis (2+1+1) */ // TODO: Replace placeholder with relevant CQL logic -define "Event-driven PrEP 2+1+1 (PrEP)": - exists "Event-driven PrEP 2+1+1 (PrEP) Condition" - or exists "Event-driven PrEP 2+1+1 (PrEP) Observation" -define "Event-driven PrEP 2+1+1 (PrEP) Condition": +define "Event-driven PrEP 2+1+1": + exists "Event-driven PrEP 2+1+1 Condition" + or exists "Event-driven PrEP 2+1+1 Observation" +define "Event-driven PrEP 2+1+1 Condition": [Condition: Concepts."Event-driven PrEP 2+1+1"] -define "Event-driven PrEP 2+1+1 (PrEP) Observation": - "PrEP dosing type (PrEP) Observation" O +define "Event-driven PrEP 2+1+1 Observation": + "PrEP dosing type Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Event-driven PrEP 2+1+1" -/* End of Event-driven PrEP 2+1+1 (PrEP) */ +/* End of Event-driven PrEP 2+1+1 */ /* @dataElement: HIV.C.DE14 - Other PrEP dosing type @@ -3174,16 +3174,16 @@ define "Event-driven PrEP 2+1+1 (PrEP) Observation": @description: Other PrEP dosing type */ // TODO: Replace placeholder with relevant CQL logic -define "Other PrEP dosing type (PrEP)": - exists "Other PrEP dosing type (PrEP) Condition" - or exists "Other PrEP dosing type (PrEP) Observation" -define "Other PrEP dosing type (PrEP) Condition": +define "Other PrEP dosing type": + exists "Other PrEP dosing type Condition" + or exists "Other PrEP dosing type Observation" +define "Other PrEP dosing type Condition": [Condition: Concepts."Other PrEP dosing type"] -define "Other PrEP dosing type (PrEP) Observation": - "PrEP dosing type (PrEP) Observation" O +define "Other PrEP dosing type Observation": + "PrEP dosing type Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Other PrEP dosing type" -/* End of Other PrEP dosing type (PrEP) */ +/* End of Other PrEP dosing type */ /* @dataElement: HIV.C.DE17 - Current PrEP regimen @@ -3191,12 +3191,12 @@ define "Other PrEP dosing type (PrEP) Observation": @description: HIV pre-exposure prophylaxis (PrEP) regimen */ // TODO: Replace placeholder with relevant CQL logic -define "Current PrEP regimen (PrEP)": - exists "Current PrEP regimen (PrEP) Observation" -define "Current PrEP regimen (PrEP) Observation": +define "Current PrEP regimen": + exists "Current PrEP regimen Observation" +define "Current PrEP regimen Observation": [Observation: Concepts."Current PrEP regimen"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Current PrEP regimen (PrEP) */ +/* End of Current PrEP regimen */ /* @dataElement: HIV.C.DE18 - TDF + FTC @@ -3204,16 +3204,16 @@ define "Current PrEP regimen (PrEP) Observation": @description: Treated with tenofovir disoproxil fumarate (TDF) and emtricitabine (FTC) pre-exposure prophylaxis (PrEP) regimen (oral PrEP) */ // TODO: Replace placeholder with relevant CQL logic -define "TDF + FTC (PrEP|CDE18)": - exists "TDF + FTC (PrEP|CDE18) Condition" - or exists "TDF + FTC (PrEP|CDE18) Observation" -define "TDF + FTC (PrEP|CDE18) Condition": +define "TDF + FTC C.DE18": + exists "TDF + FTC C.DE18 Condition" + or exists "TDF + FTC C.DE18 Observation" +define "TDF + FTC C.DE18 Condition": [Condition: Concepts."TDF + FTC - HIV.C.DE18"] -define "TDF + FTC (PrEP|CDE18) Observation": - "Current PrEP regimen (PrEP) Observation" O +define "TDF + FTC C.DE18 Observation": + "Current PrEP regimen Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."TDF + FTC - HIV.C.DE18" -/* End of TDF + FTC (PrEP|CDE18) */ +/* End of TDF + FTC C.DE18 */ /* @dataElement: HIV.C.DE19 - TDF @@ -3221,16 +3221,16 @@ define "TDF + FTC (PrEP|CDE18) Observation": @description: Treated with single-agent tenofovir disoproxil fumarate (TDF) pre-exposure prophylaxis (PrEP) regimen (oral PrEP) */ // TODO: Replace placeholder with relevant CQL logic -define "TDF (PrEP)": - exists "TDF (PrEP) Condition" - or exists "TDF (PrEP) Observation" -define "TDF (PrEP) Condition": +define "TDF C.DE19": + exists "TDF C.DE19 Condition" + or exists "TDF C.DE19 Observation" +define "TDF C.DE19 Condition": [Condition: Concepts."TDF - HIV.C.DE19"] -define "TDF (PrEP) Observation": - "Current PrEP regimen (PrEP) Observation" O +define "TDF C.DE19 Observation": + "Current PrEP regimen Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."TDF - HIV.C.DE19" -/* End of TDF (PrEP) */ +/* End of TDF C.DE19 */ /* @dataElement: HIV.C.DE20 - TDF + 3TC @@ -3238,16 +3238,16 @@ define "TDF (PrEP) Observation": @description: Treated with tenofovir disoproxil fumarate (TDF) and lamivudine (3TC) pre-exposure prophylaxis (PrEP) regimen (oral PrEP) */ // TODO: Replace placeholder with relevant CQL logic -define "TDF + 3TC (PrEP|CDE20)": - exists "TDF + 3TC (PrEP|CDE20) Condition" - or exists "TDF + 3TC (PrEP|CDE20) Observation" -define "TDF + 3TC (PrEP|CDE20) Condition": +define "TDF + 3TC C.DE20": + exists "TDF + 3TC C.DE20 Condition" + or exists "TDF + 3TC C.DE20 Observation" +define "TDF + 3TC C.DE20 Condition": [Condition: Concepts."TDF + 3TC - HIV.C.DE20"] -define "TDF + 3TC (PrEP|CDE20) Observation": - "Current PrEP regimen (PrEP) Observation" O +define "TDF + 3TC C.DE20 Observation": + "Current PrEP regimen Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."TDF + 3TC - HIV.C.DE20" -/* End of TDF + 3TC (PrEP|CDE20) */ +/* End of TDF + 3TC C.DE20 */ /* @dataElement: HIV.C.DE21 - Other TDF-based regimen @@ -3255,16 +3255,16 @@ define "TDF + 3TC (PrEP|CDE20) Observation": @description: Treated with other tenofovir disoproxil fumarate (TDF)-based regimen (oral PrEP) */ // TODO: Replace placeholder with relevant CQL logic -define "Other TDF-based regimen (PrEP)": - exists "Other TDF-based regimen (PrEP) Condition" - or exists "Other TDF-based regimen (PrEP) Observation" -define "Other TDF-based regimen (PrEP) Condition": +define "Other TDF-based regimen": + exists "Other TDF-based regimen Condition" + or exists "Other TDF-based regimen Observation" +define "Other TDF-based regimen Condition": [Condition: Concepts."Other TDF-based regimen"] -define "Other TDF-based regimen (PrEP) Observation": - "Current PrEP regimen (PrEP) Observation" O +define "Other TDF-based regimen Observation": + "Current PrEP regimen Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Other TDF-based regimen" -/* End of Other TDF-based regimen (PrEP) */ +/* End of Other TDF-based regimen */ /* @dataElement: HIV.C.DE22 - Dapivirine vaginal ring DVR @@ -3272,16 +3272,16 @@ define "Other TDF-based regimen (PrEP) Observation": @description: Dapivirine vaginal ring (DVR) for HIV prevention */ // TODO: Replace placeholder with relevant CQL logic -define "Dapivirine vaginal ring DVR (PrEP|CDE22)": - exists "Dapivirine vaginal ring DVR (PrEP|CDE22) Condition" - or exists "Dapivirine vaginal ring DVR (PrEP|CDE22) Observation" -define "Dapivirine vaginal ring DVR (PrEP|CDE22) Condition": +define "Dapivirine vaginal ring DVR C.DE22": + exists "Dapivirine vaginal ring DVR C.DE22 Condition" + or exists "Dapivirine vaginal ring DVR C.DE22 Observation" +define "Dapivirine vaginal ring DVR C.DE22 Condition": [Condition: Concepts."Dapivirine vaginal ring DVR - HIV.C.DE22"] -define "Dapivirine vaginal ring DVR (PrEP|CDE22) Observation": - "Current PrEP regimen (PrEP) Observation" O +define "Dapivirine vaginal ring DVR C.DE22 Observation": + "Current PrEP regimen Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Dapivirine vaginal ring DVR - HIV.C.DE22" -/* End of Dapivirine vaginal ring DVR (PrEP|CDE22) */ +/* End of Dapivirine vaginal ring DVR C.DE22 */ /* @dataElement: HIV.C.DE23 - CAB-LA @@ -3289,16 +3289,16 @@ define "Dapivirine vaginal ring DVR (PrEP|CDE22) Observation": @description: Long-acting injectable cabotegravir */ // TODO: Replace placeholder with relevant CQL logic -define "CAB-LA (PrEP|CDE23)": - exists "CAB-LA (PrEP|CDE23) Condition" - or exists "CAB-LA (PrEP|CDE23) Observation" -define "CAB-LA (PrEP|CDE23) Condition": +define "CAB-LA C.DE23": + exists "CAB-LA C.DE23 Condition" + or exists "CAB-LA C.DE23 Observation" +define "CAB-LA C.DE23 Condition": [Condition: Concepts."CAB-LA - HIV.C.DE23"] -define "CAB-LA (PrEP|CDE23) Observation": - "Current PrEP regimen (PrEP) Observation" O +define "CAB-LA C.DE23 Observation": + "Current PrEP regimen Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."CAB-LA - HIV.C.DE23" -/* End of CAB-LA (PrEP|CDE23) */ +/* End of CAB-LA C.DE23 */ /* @dataElement: HIV.C.DE24 - Experience with PrEP @@ -3306,12 +3306,12 @@ define "CAB-LA (PrEP|CDE23) Observation": @description: The client's experience in taking PrEP */ // TODO: Replace placeholder with relevant CQL logic -define "Experience with PrEP (PrEP)": - exists "Experience with PrEP (PrEP) Observation" -define "Experience with PrEP (PrEP) Observation": +define "Experience with PrEP": + exists "Experience with PrEP Observation" +define "Experience with PrEP Observation": [Observation: Concepts."Experience with PrEP"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Experience with PrEP (PrEP) */ +/* End of Experience with PrEP */ /* @dataElement: HIV.C.DE25 - First-time user @@ -3319,16 +3319,16 @@ define "Experience with PrEP (PrEP) Observation": @description: The client has never used pre-exposure prophylaxis (PrEP) before (naive) */ // TODO: Replace placeholder with relevant CQL logic -define "First-time user (PrEP|CDE25)": - exists "First-time user (PrEP|CDE25) Condition" - or exists "First-time user (PrEP|CDE25) Observation" -define "First-time user (PrEP|CDE25) Condition": +define "First-time user C.DE25": + exists "First-time user C.DE25 Condition" + or exists "First-time user C.DE25 Observation" +define "First-time user C.DE25 Condition": [Condition: Concepts."First-time user - HIV.C.DE25"] -define "First-time user (PrEP|CDE25) Observation": - "Experience with PrEP (PrEP) Observation" O +define "First-time user C.DE25 Observation": + "Experience with PrEP Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."First-time user - HIV.C.DE25" -/* End of First-time user (PrEP|CDE25) */ +/* End of First-time user C.DE25 */ /* @dataElement: HIV.C.DE26 - Continuing user @@ -3336,16 +3336,16 @@ define "First-time user (PrEP|CDE25) Observation": @description: The client has used PrEP before and is continuing to use PrEP */ // TODO: Replace placeholder with relevant CQL logic -define "Continuing user (PrEP)": - exists "Continuing user (PrEP) Condition" - or exists "Continuing user (PrEP) Observation" -define "Continuing user (PrEP) Condition": +define "Continuing user": + exists "Continuing user Condition" + or exists "Continuing user Observation" +define "Continuing user Condition": [Condition: Concepts."Continuing user"] -define "Continuing user (PrEP) Observation": - "Experience with PrEP (PrEP) Observation" O +define "Continuing user Observation": + "Experience with PrEP Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Continuing user" -/* End of Continuing user (PrEP) */ +/* End of Continuing user */ /* @dataElement: HIV.C.DE27 - Restarting following a period of not taking PrEP @@ -3353,16 +3353,16 @@ define "Continuing user (PrEP) Observation": @description: The client is restarting PrEP following a period of not taking PrEP */ // TODO: Replace placeholder with relevant CQL logic -define "Restarting following a period of not taking PrEP (PrEP)": - exists "Restarting following a period of not taking PrEP (PrEP) Condition" - or exists "Restarting following a period of not taking PrEP (PrEP) Observation" -define "Restarting following a period of not taking PrEP (PrEP) Condition": +define "Restarting following a period of not taking PrEP": + exists "Restarting following a period of not taking PrEP Condition" + or exists "Restarting following a period of not taking PrEP Observation" +define "Restarting following a period of not taking PrEP Condition": [Condition: Concepts."Restarting following a period of not taking PrEP"] -define "Restarting following a period of not taking PrEP (PrEP) Observation": - "Experience with PrEP (PrEP) Observation" O +define "Restarting following a period of not taking PrEP Observation": + "Experience with PrEP Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Restarting following a period of not taking PrEP" -/* End of Restarting following a period of not taking PrEP (PrEP) */ +/* End of Restarting following a period of not taking PrEP */ /* @dataElement: HIV.C.DE31 - PEP history @@ -3370,12 +3370,12 @@ define "Restarting following a period of not taking PrEP (PrEP) Observation": @description: The client's history in taking post-exposure prophylaxis (PEP) for HIV prevention */ // TODO: Replace placeholder with relevant CQL logic -define "PEP history (PrEP)": - exists "PEP history (PrEP) Observation" -define "PEP history (PrEP) Observation": +define "PEP history": + exists "PEP history Observation" +define "PEP history Observation": [Observation: Concepts."PEP history"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of PEP history (PrEP) */ +/* End of PEP history */ /* @dataElement: HIV.C.DE32 - First-time user @@ -3383,16 +3383,16 @@ define "PEP history (PrEP) Observation": @description: The client has never used post-exposure prophylaxis (PEP) before */ // TODO: Replace placeholder with relevant CQL logic -define "First-time user (PrEP|CDE32)": - exists "First-time user (PrEP|CDE32) Condition" - or exists "First-time user (PrEP|CDE32) Observation" -define "First-time user (PrEP|CDE32) Condition": +define "First-time user C.DE32": + exists "First-time user C.DE32 Condition" + or exists "First-time user C.DE32 Observation" +define "First-time user C.DE32 Condition": [Condition: Concepts."First-time user - HIV.C.DE32"] -define "First-time user (PrEP|CDE32) Observation": - "PEP history (PrEP) Observation" O +define "First-time user C.DE32 Observation": + "PEP history Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."First-time user - HIV.C.DE32" -/* End of First-time user (PrEP|CDE32) */ +/* End of First-time user C.DE32 */ /* @dataElement: HIV.C.DE33 - Repeat user @@ -3400,16 +3400,16 @@ define "First-time user (PrEP|CDE32) Observation": @description: The client has used post-exposure prophylaxis (PEP) before */ // TODO: Replace placeholder with relevant CQL logic -define "Repeat user (PrEP)": - exists "Repeat user (PrEP) Condition" - or exists "Repeat user (PrEP) Observation" -define "Repeat user (PrEP) Condition": +define "Repeat user": + exists "Repeat user Condition" + or exists "Repeat user Observation" +define "Repeat user Condition": [Condition: Concepts."Repeat user"] -define "Repeat user (PrEP) Observation": - "PEP history (PrEP) Observation" O +define "Repeat user Observation": + "PEP history Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Repeat user" -/* End of Repeat user (PrEP) */ +/* End of Repeat user */ /* @dataElement: HIV.C.DE35 - Date client completes PEP course @@ -3417,13 +3417,13 @@ define "Repeat user (PrEP) Observation": @description: Date client completes PEP course */ // TODO: Replace placeholder with relevant CQL logic -define "Date client completes PEP course (PrEP)": +define "Date client completes PEP course": [Observation: Concepts."Date client completes PEP course"] O where O.status in { 'final', 'amended', 'corrected' } -define "Date client completes PEP course (PrEP) Value": - "Date client completes PEP course (PrEP)" O +define "Date client completes PEP course Value": + "Date client completes PEP course" O return O.value -/* End of Date client completes PEP course (PrEP) */ +/* End of Date client completes PEP course */ /* @dataElement: HIV.C.DE36 - Signs of substantial risk of HIV infection @@ -3431,12 +3431,12 @@ define "Date client completes PEP course (PrEP) Value": @description: Signs the client is at a substantial risk of HIV infection */ // TODO: Replace placeholder with relevant CQL logic -define "Signs of substantial risk of HIV infection (PrEP)": - exists "Signs of substantial risk of HIV infection (PrEP) Observation" -define "Signs of substantial risk of HIV infection (PrEP) Observation": +define "Signs of substantial risk of HIV infection C.DE36": + exists "Signs of substantial risk of HIV infection C.DE36 Observation" +define "Signs of substantial risk of HIV infection C.DE36 Observation": [Observation: Concepts."Signs of substantial risk of HIV infection - HIV.C.DE36"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Signs of substantial risk of HIV infection (PrEP) */ +/* End of Signs of substantial risk of HIV infection C.DE36 */ /* @dataElement: HIV.C.DE37 - No condom use during sex with more than one partner in the past 6 months @@ -3444,16 +3444,16 @@ define "Signs of substantial risk of HIV infection (PrEP) Observation": @description: Recent vaginal or anal sexual intercourse without a condom with more than one partner */ // TODO: Replace placeholder with relevant CQL logic -define "No condom use during sex with more than one partner in the past 6 months (PrEP)": - exists "No condom use during sex with more than one partner in the past 6 months (PrEP) Condition" - or exists "No condom use during sex with more than one partner in the past 6 months (PrEP) Observation" -define "No condom use during sex with more than one partner in the past 6 months (PrEP) Condition": +define "No condom use during sex with more than one partner in the past 6 months C.DE37": + exists "No condom use during sex with more than one partner in the past 6 months C.DE37 Condition" + or exists "No condom use during sex with more than one partner in the past 6 months C.DE37 Observation" +define "No condom use during sex with more than one partner in the past 6 months C.DE37 Condition": [Condition: Concepts."No condom use during sex with more than one partner in the past 6 months - HIV.C.DE37"] -define "No condom use during sex with more than one partner in the past 6 months (PrEP) Observation": - "Signs of substantial risk of HIV infection (PrEP) Observation" O +define "No condom use during sex with more than one partner in the past 6 months C.DE37 Observation": + "Signs of substantial risk of HIV infection C.DE36 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."No condom use during sex with more than one partner in the past 6 months - HIV.C.DE37" -/* End of No condom use during sex with more than one partner in the past 6 months (PrEP) */ +/* End of No condom use during sex with more than one partner in the past 6 months C.DE37 */ /* @dataElement: HIV.C.DE38 - STI in the past 6 months @@ -3461,16 +3461,16 @@ define "No condom use during sex with more than one partner in the past 6 months @description: A recent history (in the last 6 months) of a sexually transmitted infection (STI ) by laboratory testing, self-report or syndromic STI treatment */ // TODO: Replace placeholder with relevant CQL logic -define "STI in the past 6 months (PrEP)": - exists "STI in the past 6 months (PrEP) Condition" - or exists "STI in the past 6 months (PrEP) Observation" -define "STI in the past 6 months (PrEP) Condition": +define "STI in the past 6 months C.DE38": + exists "STI in the past 6 months C.DE38 Condition" + or exists "STI in the past 6 months C.DE38 Observation" +define "STI in the past 6 months C.DE38 Condition": [Condition: Concepts."STI in the past 6 months - HIV.C.DE38"] -define "STI in the past 6 months (PrEP) Observation": - "Signs of substantial risk of HIV infection (PrEP) Observation" O +define "STI in the past 6 months C.DE38 Observation": + "Signs of substantial risk of HIV infection C.DE36 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."STI in the past 6 months - HIV.C.DE38" -/* End of STI in the past 6 months (PrEP) */ +/* End of STI in the past 6 months C.DE38 */ /* @dataElement: HIV.C.DE39 - A sexual partner in the past 6 months had one or more HIV risk factors @@ -3478,16 +3478,16 @@ define "STI in the past 6 months (PrEP) Observation": @description: A recent sex partner of the client had HIV risk factors */ // TODO: Replace placeholder with relevant CQL logic -define "A sexual partner in the past 6 months had one or more HIV risk factors (PrEP)": - exists "A sexual partner in the past 6 months had one or more HIV risk factors (PrEP) Condition" - or exists "A sexual partner in the past 6 months had one or more HIV risk factors (PrEP) Observation" -define "A sexual partner in the past 6 months had one or more HIV risk factors (PrEP) Condition": +define "A sexual partner in the past 6 months had one or more HIV risk factors C.DE39": + exists "A sexual partner in the past 6 months had one or more HIV risk factors C.DE39 Condition" + or exists "A sexual partner in the past 6 months had one or more HIV risk factors C.DE39 Observation" +define "A sexual partner in the past 6 months had one or more HIV risk factors C.DE39 Condition": [Condition: Concepts."A sexual partner in the past 6 months had one or more HIV risk factors - HIV.C.DE39"] -define "A sexual partner in the past 6 months had one or more HIV risk factors (PrEP) Observation": - "Signs of substantial risk of HIV infection (PrEP) Observation" O +define "A sexual partner in the past 6 months had one or more HIV risk factors C.DE39 Observation": + "Signs of substantial risk of HIV infection C.DE36 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."A sexual partner in the past 6 months had one or more HIV risk factors - HIV.C.DE39" -/* End of A sexual partner in the past 6 months had one or more HIV risk factors (PrEP) */ +/* End of A sexual partner in the past 6 months had one or more HIV risk factors C.DE39 */ /* @dataElement: HIV.C.DE40 - PrEP requested by client @@ -3495,16 +3495,16 @@ define "A sexual partner in the past 6 months had one or more HIV risk factors ( @description: Client is requesting PrEP, reflecting a decision-making process has already taken place and suggesting of substantial risk of HIV */ // TODO: Replace placeholder with relevant CQL logic -define "PrEP requested by client (PrEP)": - exists "PrEP requested by client (PrEP) Condition" - or exists "PrEP requested by client (PrEP) Observation" -define "PrEP requested by client (PrEP) Condition": +define "PrEP requested by client C.DE40": + exists "PrEP requested by client C.DE40 Condition" + or exists "PrEP requested by client C.DE40 Observation" +define "PrEP requested by client C.DE40 Condition": [Condition: Concepts."PrEP requested by client - HIV.C.DE40"] -define "PrEP requested by client (PrEP) Observation": - "Signs of substantial risk of HIV infection (PrEP) Observation" O +define "PrEP requested by client C.DE40 Observation": + "Signs of substantial risk of HIV infection C.DE36 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."PrEP requested by client - HIV.C.DE40" -/* End of PrEP requested by client (PrEP) */ +/* End of PrEP requested by client C.DE40 */ /* @dataElement: HIV.C.DE46 - Acute HIV infection symptoms @@ -3512,12 +3512,12 @@ define "PrEP requested by client (PrEP) Observation": @description: Symptoms that could suggest an acute HIV infection */ // TODO: Replace placeholder with relevant CQL logic -define "Acute HIV infection symptoms (PrEP|CDE46)": - exists "Acute HIV infection symptoms (PrEP|CDE46) Observation" -define "Acute HIV infection symptoms (PrEP|CDE46) Observation": +define "Acute HIV infection symptoms C.DE46": + exists "Acute HIV infection symptoms C.DE46 Observation" +define "Acute HIV infection symptoms C.DE46 Observation": [Observation: Concepts."Acute HIV infection symptoms - HIV.C.DE46"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Acute HIV infection symptoms (PrEP|CDE46) */ +/* End of Acute HIV infection symptoms C.DE46 */ /* @dataElement: HIV.C.DE47 - Fever @@ -3525,16 +3525,16 @@ define "Acute HIV infection symptoms (PrEP|CDE46) Observation": @description: Client's symptoms include a fever */ // TODO: Replace placeholder with relevant CQL logic -define "Fever (PrEP)": - exists "Fever (PrEP) Condition" - or exists "Fever (PrEP) Observation" -define "Fever (PrEP) Condition": +define "Fever": + exists "Fever Condition" + or exists "Fever Observation" +define "Fever Condition": [Condition: Concepts."Fever"] -define "Fever (PrEP) Observation": - "Acute HIV infection symptoms (PrEP|CDE46) Observation" O +define "Fever Observation": + "Acute HIV infection symptoms C.DE46 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Fever" -/* End of Fever (PrEP) */ +/* End of Fever */ /* @dataElement: HIV.C.DE48 - Sore throat @@ -3542,16 +3542,16 @@ define "Fever (PrEP) Observation": @description: Client's symptoms include a sore throat */ // TODO: Replace placeholder with relevant CQL logic -define "Sore throat (PrEP)": - exists "Sore throat (PrEP) Condition" - or exists "Sore throat (PrEP) Observation" -define "Sore throat (PrEP) Condition": +define "Sore throat": + exists "Sore throat Condition" + or exists "Sore throat Observation" +define "Sore throat Condition": [Condition: Concepts."Sore throat"] -define "Sore throat (PrEP) Observation": - "Acute HIV infection symptoms (PrEP|CDE46) Observation" O +define "Sore throat Observation": + "Acute HIV infection symptoms C.DE46 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Sore throat" -/* End of Sore throat (PrEP) */ +/* End of Sore throat */ /* @dataElement: HIV.C.DE49 - Aches @@ -3559,16 +3559,16 @@ define "Sore throat (PrEP) Observation": @description: Client's symptoms include aches */ // TODO: Replace placeholder with relevant CQL logic -define "Aches (PrEP)": - exists "Aches (PrEP) Condition" - or exists "Aches (PrEP) Observation" -define "Aches (PrEP) Condition": +define "Aches": + exists "Aches Condition" + or exists "Aches Observation" +define "Aches Condition": [Condition: Concepts."Aches"] -define "Aches (PrEP) Observation": - "Acute HIV infection symptoms (PrEP|CDE46) Observation" O +define "Aches Observation": + "Acute HIV infection symptoms C.DE46 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Aches" -/* End of Aches (PrEP) */ +/* End of Aches */ /* @dataElement: HIV.C.DE50 - Pains @@ -3576,16 +3576,16 @@ define "Aches (PrEP) Observation": @description: Client's symptoms include pains */ // TODO: Replace placeholder with relevant CQL logic -define "Pains (PrEP)": - exists "Pains (PrEP) Condition" - or exists "Pains (PrEP) Observation" -define "Pains (PrEP) Condition": +define "Pains": + exists "Pains Condition" + or exists "Pains Observation" +define "Pains Condition": [Condition: Concepts."Pains"] -define "Pains (PrEP) Observation": - "Acute HIV infection symptoms (PrEP|CDE46) Observation" O +define "Pains Observation": + "Acute HIV infection symptoms C.DE46 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Pains" -/* End of Pains (PrEP) */ +/* End of Pains */ /* @dataElement: HIV.C.DE51 - Swollen glands @@ -3593,16 +3593,16 @@ define "Pains (PrEP) Observation": @description: Client's symptoms include swollen glands */ // TODO: Replace placeholder with relevant CQL logic -define "Swollen glands (PrEP)": - exists "Swollen glands (PrEP) Condition" - or exists "Swollen glands (PrEP) Observation" -define "Swollen glands (PrEP) Condition": +define "Swollen glands": + exists "Swollen glands Condition" + or exists "Swollen glands Observation" +define "Swollen glands Condition": [Condition: Concepts."Swollen glands"] -define "Swollen glands (PrEP) Observation": - "Acute HIV infection symptoms (PrEP|CDE46) Observation" O +define "Swollen glands Observation": + "Acute HIV infection symptoms C.DE46 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Swollen glands" -/* End of Swollen glands (PrEP) */ +/* End of Swollen glands */ /* @dataElement: HIV.C.DE52 - Mouth sores @@ -3610,16 +3610,16 @@ define "Swollen glands (PrEP) Observation": @description: Client's symptoms include a mouth sores */ // TODO: Replace placeholder with relevant CQL logic -define "Mouth sores (PrEP)": - exists "Mouth sores (PrEP) Condition" - or exists "Mouth sores (PrEP) Observation" -define "Mouth sores (PrEP) Condition": +define "Mouth sores": + exists "Mouth sores Condition" + or exists "Mouth sores Observation" +define "Mouth sores Condition": [Condition: Concepts."Mouth sores"] -define "Mouth sores (PrEP) Observation": - "Acute HIV infection symptoms (PrEP|CDE46) Observation" O +define "Mouth sores Observation": + "Acute HIV infection symptoms C.DE46 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Mouth sores" -/* End of Mouth sores (PrEP) */ +/* End of Mouth sores */ /* @dataElement: HIV.C.DE53 - Headaches @@ -3627,16 +3627,16 @@ define "Mouth sores (PrEP) Observation": @description: Client's symptoms include a headaches */ // TODO: Replace placeholder with relevant CQL logic -define "Headaches (PrEP)": - exists "Headaches (PrEP) Condition" - or exists "Headaches (PrEP) Observation" -define "Headaches (PrEP) Condition": +define "Headaches": + exists "Headaches Condition" + or exists "Headaches Observation" +define "Headaches Condition": [Condition: Concepts."Headaches"] -define "Headaches (PrEP) Observation": - "Acute HIV infection symptoms (PrEP|CDE46) Observation" O +define "Headaches Observation": + "Acute HIV infection symptoms C.DE46 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Headaches" -/* End of Headaches (PrEP) */ +/* End of Headaches */ /* @dataElement: HIV.C.DE54 - Rash @@ -3644,16 +3644,16 @@ define "Headaches (PrEP) Observation": @description: Client's symptoms include a rash */ // TODO: Replace placeholder with relevant CQL logic -define "Rash (PrEP)": - exists "Rash (PrEP) Condition" - or exists "Rash (PrEP) Observation" -define "Rash (PrEP) Condition": +define "Rash": + exists "Rash Condition" + or exists "Rash Observation" +define "Rash Condition": [Condition: Concepts."Rash"] -define "Rash (PrEP) Observation": - "Acute HIV infection symptoms (PrEP|CDE46) Observation" O +define "Rash Observation": + "Acute HIV infection symptoms C.DE46 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Rash" -/* End of Rash (PrEP) */ +/* End of Rash */ /* @dataElement: HIV.C.DE55 - Sex partners HIV treatment status @@ -3661,12 +3661,12 @@ define "Rash (PrEP) Observation": @description: Treatment adherence of client's sex partner for partners that are HIV-positive */ // TODO: Replace placeholder with relevant CQL logic -define "Sex partners HIV treatment status (PrEP)": - exists "Sex partners HIV treatment status (PrEP) Observation" -define "Sex partners HIV treatment status (PrEP) Observation": +define "Sex partners HIV treatment status": + exists "Sex partners HIV treatment status Observation" +define "Sex partners HIV treatment status Observation": [Observation: Concepts."Sex partners HIV treatment status"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Sex partners HIV treatment status (PrEP) */ +/* End of Sex partners HIV treatment status */ /* @dataElement: HIV.C.DE56 - Not on ART @@ -3674,16 +3674,16 @@ define "Sex partners HIV treatment status (PrEP) Observation": @description: Sex partner is HIV-positive and not on ART */ // TODO: Replace placeholder with relevant CQL logic -define "Not on ART (PrEP)": - exists "Not on ART (PrEP) Condition" - or exists "Not on ART (PrEP) Observation" -define "Not on ART (PrEP) Condition": +define "Not on ART": + exists "Not on ART Condition" + or exists "Not on ART Observation" +define "Not on ART Condition": [Condition: Concepts."Not on ART"] -define "Not on ART (PrEP) Observation": - "Sex partners HIV treatment status (PrEP) Observation" O +define "Not on ART Observation": + "Sex partners HIV treatment status Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Not on ART" -/* End of Not on ART (PrEP) */ +/* End of Not on ART */ /* @dataElement: HIV.C.DE57 - On ART less than 6 months @@ -3691,16 +3691,16 @@ define "Not on ART (PrEP) Observation": @description: Sex partner is HIV-positive and is on ART less than 6 months. ART may take up to 6 months to suppress viral load. In studies of serodiscordant couples, pre-exposure prophylaxis (PrEP) has provided a useful bridge to full viral suppression by the partner during that time. */ // TODO: Replace placeholder with relevant CQL logic -define "On ART less than 6 months (PrEP)": - exists "On ART less than 6 months (PrEP) Condition" - or exists "On ART less than 6 months (PrEP) Observation" -define "On ART less than 6 months (PrEP) Condition": +define "On ART less than 6 months": + exists "On ART less than 6 months Condition" + or exists "On ART less than 6 months Observation" +define "On ART less than 6 months Condition": [Condition: Concepts."On ART less than 6 months"] -define "On ART less than 6 months (PrEP) Observation": - "Sex partners HIV treatment status (PrEP) Observation" O +define "On ART less than 6 months Observation": + "Sex partners HIV treatment status Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."On ART less than 6 months" -/* End of On ART less than 6 months (PrEP) */ +/* End of On ART less than 6 months */ /* @dataElement: HIV.C.DE58 - Partner has suspected low adherence to ART @@ -3708,16 +3708,16 @@ define "On ART less than 6 months (PrEP) Observation": @description: Sex partner is HIV-positive and is suspected to have low adherence to ART. There have been gaps in the partner's treatment adherence or the couple is not communicating openly about treatment adherence and viral load test results. */ // TODO: Replace placeholder with relevant CQL logic -define "Partner has suspected low adherence to ART (PrEP)": - exists "Partner has suspected low adherence to ART (PrEP) Condition" - or exists "Partner has suspected low adherence to ART (PrEP) Observation" -define "Partner has suspected low adherence to ART (PrEP) Condition": +define "Partner has suspected low adherence to ART": + exists "Partner has suspected low adherence to ART Condition" + or exists "Partner has suspected low adherence to ART Observation" +define "Partner has suspected low adherence to ART Condition": [Condition: Concepts."Partner has suspected low adherence to ART"] -define "Partner has suspected low adherence to ART (PrEP) Observation": - "Sex partners HIV treatment status (PrEP) Observation" O +define "Partner has suspected low adherence to ART Observation": + "Sex partners HIV treatment status Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Partner has suspected low adherence to ART" -/* End of Partner has suspected low adherence to ART (PrEP) */ +/* End of Partner has suspected low adherence to ART */ /* @dataElement: HIV.C.DE59 - Partner is not virally suppressed @@ -3725,16 +3725,16 @@ define "Partner has suspected low adherence to ART (PrEP) Observation": @description: Sex partner is HIV-positive and not virally suppressed */ // TODO: Replace placeholder with relevant CQL logic -define "Partner is not virally suppressed (PrEP)": - exists "Partner is not virally suppressed (PrEP) Condition" - or exists "Partner is not virally suppressed (PrEP) Observation" -define "Partner is not virally suppressed (PrEP) Condition": +define "Partner is not virally suppressed": + exists "Partner is not virally suppressed Condition" + or exists "Partner is not virally suppressed Observation" +define "Partner is not virally suppressed Condition": [Condition: Concepts."Partner is not virally suppressed"] -define "Partner is not virally suppressed (PrEP) Observation": - "Sex partners HIV treatment status (PrEP) Observation" O +define "Partner is not virally suppressed Observation": + "Sex partners HIV treatment status Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Partner is not virally suppressed" -/* End of Partner is not virally suppressed (PrEP) */ +/* End of Partner is not virally suppressed */ /* @dataElement: HIV.C.DE60 - Partner is virally suppressed and has been on ART for 6 months or more @@ -3742,16 +3742,16 @@ define "Partner is not virally suppressed (PrEP) Observation": @description: Sex partner is HIV-positive and virally suppressed with 6 months or more on ART */ // TODO: Replace placeholder with relevant CQL logic -define "Partner is virally suppressed and has been on ART for 6 months or more (PrEP)": - exists "Partner is virally suppressed and has been on ART for 6 months or more (PrEP) Condition" - or exists "Partner is virally suppressed and has been on ART for 6 months or more (PrEP) Observation" -define "Partner is virally suppressed and has been on ART for 6 months or more (PrEP) Condition": +define "Partner is virally suppressed and has been on ART for 6 months or more": + exists "Partner is virally suppressed and has been on ART for 6 months or more Condition" + or exists "Partner is virally suppressed and has been on ART for 6 months or more Observation" +define "Partner is virally suppressed and has been on ART for 6 months or more Condition": [Condition: Concepts."Partner is virally suppressed and has been on ART for 6 months or more"] -define "Partner is virally suppressed and has been on ART for 6 months or more (PrEP) Observation": - "Sex partners HIV treatment status (PrEP) Observation" O +define "Partner is virally suppressed and has been on ART for 6 months or more Observation": + "Sex partners HIV treatment status Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Partner is virally suppressed and has been on ART for 6 months or more" -/* End of Partner is virally suppressed and has been on ART for 6 months or more (PrEP) */ +/* End of Partner is virally suppressed and has been on ART for 6 months or more */ /* @dataElement: HIV.C.DE61 - Suitable for PrEP @@ -3759,13 +3759,13 @@ define "Partner is virally suppressed and has been on ART for 6 months or more ( @description: The client is suitable for PrEP */ // TODO: Replace placeholder with relevant CQL logic -define "Suitable for PrEP (PrEP)": - exists "Suitable for PrEP (PrEP) Observation" -define "Suitable for PrEP (PrEP) Observation": +define "Suitable for PrEP": + exists "Suitable for PrEP Observation" +define "Suitable for PrEP Observation": [Observation: Concepts."Suitable for PrEP"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Suitable for PrEP (PrEP) */ +/* End of Suitable for PrEP */ /* @dataElement: HIV.C.DE74 - Date medications prescribed @@ -3773,13 +3773,13 @@ define "Suitable for PrEP (PrEP) Observation": @description: Date the client was prescribed medications */ // TODO: Replace placeholder with relevant CQL logic -define "Date medications prescribed (PrEP)": +define "Date medications prescribed C.DE74": [Observation: Concepts."Date medications prescribed - HIV.C.DE74"] O where O.status in { 'final', 'amended', 'corrected' } -define "Date medications prescribed (PrEP) Value": - "Date medications prescribed (PrEP)" O +define "Date medications prescribed C.DE74 Value": + "Date medications prescribed C.DE74" O return O.value -/* End of Date medications prescribed (PrEP) */ +/* End of Date medications prescribed C.DE74 */ /* @dataElement: HIV.C.DE75 - Medications prescribed @@ -3787,12 +3787,12 @@ define "Date medications prescribed (PrEP) Value": @description: Medications the client was prescribed */ // TODO: Replace placeholder with relevant CQL logic -define "Medications prescribed (PrEP)": - exists "Medications prescribed (PrEP) Observation" -define "Medications prescribed (PrEP) Observation": +define "Medications prescribed C.DE75": + exists "Medications prescribed C.DE75 Observation" +define "Medications prescribed C.DE75 Observation": [Observation: Concepts."Medications prescribed - HIV.C.DE75"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Medications prescribed (PrEP) */ +/* End of Medications prescribed C.DE75 */ /* @dataElement: HIV.C.DE76 - PrEP for HIV prevention @@ -3800,16 +3800,16 @@ define "Medications prescribed (PrEP) Observation": @description: Client was prescribed pre-exposure prophylaxis (PrEP) for HIV prevention */ // TODO: Replace placeholder with relevant CQL logic -define "PrEP for HIV prevention (PrEP)": - exists "PrEP for HIV prevention (PrEP) Condition" - or exists "PrEP for HIV prevention (PrEP) Observation" -define "PrEP for HIV prevention (PrEP) Condition": +define "PrEP for HIV prevention": + exists "PrEP for HIV prevention Condition" + or exists "PrEP for HIV prevention Observation" +define "PrEP for HIV prevention Condition": [Condition: Concepts."PrEP for HIV prevention"] -define "PrEP for HIV prevention (PrEP) Observation": - "Medications prescribed (PrEP) Observation" O +define "PrEP for HIV prevention Observation": + "Medications prescribed C.DE75 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."PrEP for HIV prevention" -/* End of PrEP for HIV prevention (PrEP) */ +/* End of PrEP for HIV prevention */ /* @dataElement: HIV.C.DE77 - PEP for HIV prevention @@ -3817,16 +3817,16 @@ define "PrEP for HIV prevention (PrEP) Observation": @description: Client was prescribed post-exposure prophylaxis (PEP) for HIV prevention */ // TODO: Replace placeholder with relevant CQL logic -define "PEP for HIV prevention (PrEP)": - exists "PEP for HIV prevention (PrEP) Condition" - or exists "PEP for HIV prevention (PrEP) Observation" -define "PEP for HIV prevention (PrEP) Condition": +define "PEP for HIV prevention": + exists "PEP for HIV prevention Condition" + or exists "PEP for HIV prevention Observation" +define "PEP for HIV prevention Condition": [Condition: Concepts."PEP for HIV prevention"] -define "PEP for HIV prevention (PrEP) Observation": - "Medications prescribed (PrEP) Observation" O +define "PEP for HIV prevention Observation": + "Medications prescribed C.DE75 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."PEP for HIV prevention" -/* End of PEP for HIV prevention (PrEP) */ +/* End of PEP for HIV prevention */ /* @dataElement: HIV.C.DE78 - Other @@ -3834,16 +3834,16 @@ define "PEP for HIV prevention (PrEP) Observation": @description: Client was prescribed other medications */ // TODO: Replace placeholder with relevant CQL logic -define "Other (PrEP|CDE78)": - exists "Other (PrEP|CDE78) Condition" - or exists "Other (PrEP|CDE78) Observation" -define "Other (PrEP|CDE78) Condition": +define "Other C.DE78": + exists "Other C.DE78 Condition" + or exists "Other C.DE78 Observation" +define "Other C.DE78 Condition": [Condition: Concepts."Other - HIV.C.DE78"] -define "Other (PrEP|CDE78) Observation": - "Medications prescribed (PrEP) Observation" O +define "Other C.DE78 Observation": + "Medications prescribed C.DE75 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Other - HIV.C.DE78" -/* End of Other (PrEP|CDE78) */ +/* End of Other C.DE78 */ /* @dataElement: HIV.C.DE80 - PrEP product prescribed @@ -3851,12 +3851,12 @@ define "Other (PrEP|CDE78) Observation": @description: PrEP product that the client was prescribed */ // TODO: Replace placeholder with relevant CQL logic -define "PrEP product prescribed (PrEP)": - exists "PrEP product prescribed (PrEP) Observation" -define "PrEP product prescribed (PrEP) Observation": +define "PrEP product prescribed": + exists "PrEP product prescribed Observation" +define "PrEP product prescribed Observation": [Observation: Concepts."PrEP product prescribed"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of PrEP product prescribed (PrEP) */ +/* End of PrEP product prescribed */ /* @dataElement: HIV.C.DE81 - Oral PrEP @@ -3864,16 +3864,16 @@ define "PrEP product prescribed (PrEP) Observation": @description: Client was prescribed oral PrEP */ // TODO: Replace placeholder with relevant CQL logic -define "Oral PrEP (PrEP)": - exists "Oral PrEP (PrEP) Condition" - or exists "Oral PrEP (PrEP) Observation" -define "Oral PrEP (PrEP) Condition": +define "Oral PrEP": + exists "Oral PrEP Condition" + or exists "Oral PrEP Observation" +define "Oral PrEP Condition": [Condition: Concepts."Oral PrEP"] -define "Oral PrEP (PrEP) Observation": - "PrEP product prescribed (PrEP) Observation" O +define "Oral PrEP Observation": + "PrEP product prescribed Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Oral PrEP" -/* End of Oral PrEP (PrEP) */ +/* End of Oral PrEP */ /* @dataElement: HIV.C.DE82 - Dapivirine vaginal ring DVR @@ -3881,16 +3881,16 @@ define "Oral PrEP (PrEP) Observation": @description: Client was prescribed dapivirine vaginal ring (DVR) */ // TODO: Replace placeholder with relevant CQL logic -define "Dapivirine vaginal ring DVR (PrEP|CDE82)": - exists "Dapivirine vaginal ring DVR (PrEP|CDE82) Condition" - or exists "Dapivirine vaginal ring DVR (PrEP|CDE82) Observation" -define "Dapivirine vaginal ring DVR (PrEP|CDE82) Condition": +define "Dapivirine vaginal ring DVR C.DE82": + exists "Dapivirine vaginal ring DVR C.DE82 Condition" + or exists "Dapivirine vaginal ring DVR C.DE82 Observation" +define "Dapivirine vaginal ring DVR C.DE82 Condition": [Condition: Concepts."Dapivirine vaginal ring DVR - HIV.C.DE82"] -define "Dapivirine vaginal ring DVR (PrEP|CDE82) Observation": - "PrEP product prescribed (PrEP) Observation" O +define "Dapivirine vaginal ring DVR C.DE82 Observation": + "PrEP product prescribed Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Dapivirine vaginal ring DVR - HIV.C.DE82" -/* End of Dapivirine vaginal ring DVR (PrEP|CDE82) */ +/* End of Dapivirine vaginal ring DVR C.DE82 */ /* @dataElement: HIV.C.DE83 - CAB-LA @@ -3898,16 +3898,16 @@ define "Dapivirine vaginal ring DVR (PrEP|CDE82) Observation": @description: Client was prescribed long-acting cabotegravir (CAB-LA) */ // TODO: Replace placeholder with relevant CQL logic -define "CAB-LA (PrEP|CDE83)": - exists "CAB-LA (PrEP|CDE83) Condition" - or exists "CAB-LA (PrEP|CDE83) Observation" -define "CAB-LA (PrEP|CDE83) Condition": +define "CAB-LA C.DE83": + exists "CAB-LA C.DE83 Condition" + or exists "CAB-LA C.DE83 Observation" +define "CAB-LA C.DE83 Condition": [Condition: Concepts."CAB-LA - HIV.C.DE83"] -define "CAB-LA (PrEP|CDE83) Observation": - "PrEP product prescribed (PrEP) Observation" O +define "CAB-LA C.DE83 Observation": + "PrEP product prescribed Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."CAB-LA - HIV.C.DE83" -/* End of CAB-LA (PrEP|CDE83) */ +/* End of CAB-LA C.DE83 */ /* @dataElement: HIV.C.DE84 - Other @@ -3915,16 +3915,16 @@ define "CAB-LA (PrEP|CDE83) Observation": @description: Client was prescribed other PrEP product */ // TODO: Replace placeholder with relevant CQL logic -define "Other (PrEP|CDE84)": - exists "Other (PrEP|CDE84) Condition" - or exists "Other (PrEP|CDE84) Observation" -define "Other (PrEP|CDE84) Condition": +define "Other C.DE84": + exists "Other C.DE84 Condition" + or exists "Other C.DE84 Observation" +define "Other C.DE84 Condition": [Condition: Concepts."Other - HIV.C.DE84"] -define "Other (PrEP|CDE84) Observation": - "PrEP product prescribed (PrEP) Observation" O +define "Other C.DE84 Observation": + "PrEP product prescribed Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Other - HIV.C.DE84" -/* End of Other (PrEP|CDE84) */ +/* End of Other C.DE84 */ /* @dataElement: HIV.C.DE91 - Preferred PEP backbone regimen @@ -3932,12 +3932,12 @@ define "Other (PrEP|CDE84) Observation": @description: Preferred backbone regimen for PEP */ // TODO: Replace placeholder with relevant CQL logic -define "Preferred PEP backbone regimen (PrEP)": - exists "Preferred PEP backbone regimen (PrEP) Observation" -define "Preferred PEP backbone regimen (PrEP) Observation": +define "Preferred PEP backbone regimen": + exists "Preferred PEP backbone regimen Observation" +define "Preferred PEP backbone regimen Observation": [Observation: Concepts."Preferred PEP backbone regimen"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Preferred PEP backbone regimen (PrEP) */ +/* End of Preferred PEP backbone regimen */ /* @dataElement: HIV.C.DE92 - TDF + 3TC @@ -3945,16 +3945,16 @@ define "Preferred PEP backbone regimen (PrEP) Observation": @description: Preferred backbone containing tenofovir disoproxil fumarate and lamivudine */ // TODO: Replace placeholder with relevant CQL logic -define "TDF + 3TC (PrEP|CDE92)": - exists "TDF + 3TC (PrEP|CDE92) Condition" - or exists "TDF + 3TC (PrEP|CDE92) Observation" -define "TDF + 3TC (PrEP|CDE92) Condition": +define "TDF + 3TC C.DE92": + exists "TDF + 3TC C.DE92 Condition" + or exists "TDF + 3TC C.DE92 Observation" +define "TDF + 3TC C.DE92 Condition": [Condition: Concepts."TDF + 3TC - HIV.C.DE92"] -define "TDF + 3TC (PrEP|CDE92) Observation": - "Preferred PEP backbone regimen (PrEP) Observation" O +define "TDF + 3TC C.DE92 Observation": + "Preferred PEP backbone regimen Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."TDF + 3TC - HIV.C.DE92" -/* End of TDF + 3TC (PrEP|CDE92) */ +/* End of TDF + 3TC C.DE92 */ /* @dataElement: HIV.C.DE93 - TDF + FTC @@ -3962,16 +3962,16 @@ define "TDF + 3TC (PrEP|CDE92) Observation": @description: Preferred backbone containing tenofovir disoproxil fumarate and emtricitabine */ // TODO: Replace placeholder with relevant CQL logic -define "TDF + FTC (PrEP|CDE93)": - exists "TDF + FTC (PrEP|CDE93) Condition" - or exists "TDF + FTC (PrEP|CDE93) Observation" -define "TDF + FTC (PrEP|CDE93) Condition": +define "TDF + FTC C.DE93": + exists "TDF + FTC C.DE93 Condition" + or exists "TDF + FTC C.DE93 Observation" +define "TDF + FTC C.DE93 Condition": [Condition: Concepts."TDF + FTC - HIV.C.DE93"] -define "TDF + FTC (PrEP|CDE93) Observation": - "Preferred PEP backbone regimen (PrEP) Observation" O +define "TDF + FTC C.DE93 Observation": + "Preferred PEP backbone regimen Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."TDF + FTC - HIV.C.DE93" -/* End of TDF + FTC (PrEP|CDE93) */ +/* End of TDF + FTC C.DE93 */ /* @dataElement: HIV.C.DE94 - AZT + 3TC @@ -3979,16 +3979,16 @@ define "TDF + FTC (PrEP|CDE93) Observation": @description: Preferred backbone containing zidovudine and lamivudine */ // TODO: Replace placeholder with relevant CQL logic -define "AZT + 3TC (PrEP)": - exists "AZT + 3TC (PrEP) Condition" - or exists "AZT + 3TC (PrEP) Observation" -define "AZT + 3TC (PrEP) Condition": +define "AZT + 3TC": + exists "AZT + 3TC Condition" + or exists "AZT + 3TC Observation" +define "AZT + 3TC Condition": [Condition: Concepts."AZT + 3TC"] -define "AZT + 3TC (PrEP) Observation": - "Preferred PEP backbone regimen (PrEP) Observation" O +define "AZT + 3TC Observation": + "Preferred PEP backbone regimen Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."AZT + 3TC" -/* End of AZT + 3TC (PrEP) */ +/* End of AZT + 3TC */ /* @dataElement: HIV.C.DE95 - Alternative PEP backbone regimen @@ -3996,12 +3996,12 @@ define "AZT + 3TC (PrEP) Observation": @description: Alternative backbone regimen for PEP */ // TODO: Replace placeholder with relevant CQL logic -define "Alternative PEP backbone regimen (PrEP)": - exists "Alternative PEP backbone regimen (PrEP) Observation" -define "Alternative PEP backbone regimen (PrEP) Observation": +define "Alternative PEP backbone regimen": + exists "Alternative PEP backbone regimen Observation" +define "Alternative PEP backbone regimen Observation": [Observation: Concepts."Alternative PEP backbone regimen"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Alternative PEP backbone regimen (PrEP) */ +/* End of Alternative PEP backbone regimen */ /* @dataElement: HIV.C.DE96 - ABC + 3TC @@ -4009,16 +4009,16 @@ define "Alternative PEP backbone regimen (PrEP) Observation": @description: Alternative backbone containing abacavir and lamivudine */ // TODO: Replace placeholder with relevant CQL logic -define "ABC + 3TC (PrEP)": - exists "ABC + 3TC (PrEP) Condition" - or exists "ABC + 3TC (PrEP) Observation" -define "ABC + 3TC (PrEP) Condition": +define "ABC + 3TC": + exists "ABC + 3TC Condition" + or exists "ABC + 3TC Observation" +define "ABC + 3TC Condition": [Condition: Concepts."ABC + 3TC"] -define "ABC + 3TC (PrEP) Observation": - "Alternative PEP backbone regimen (PrEP) Observation" O +define "ABC + 3TC Observation": + "Alternative PEP backbone regimen Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."ABC + 3TC" -/* End of ABC + 3TC (PrEP) */ +/* End of ABC + 3TC */ /* @dataElement: HIV.C.DE97 - TDF + 3TC @@ -4026,16 +4026,16 @@ define "ABC + 3TC (PrEP) Observation": @description: Alternative backbone containing tenofovir disoproxil fumarate and lamivudine */ // TODO: Replace placeholder with relevant CQL logic -define "TDF + 3TC (PrEP|CDE97)": - exists "TDF + 3TC (PrEP|CDE97) Condition" - or exists "TDF + 3TC (PrEP|CDE97) Observation" -define "TDF + 3TC (PrEP|CDE97) Condition": +define "TDF + 3TC C.DE97": + exists "TDF + 3TC C.DE97 Condition" + or exists "TDF + 3TC C.DE97 Observation" +define "TDF + 3TC C.DE97 Condition": [Condition: Concepts."TDF + 3TC - HIV.C.DE97"] -define "TDF + 3TC (PrEP|CDE97) Observation": - "Alternative PEP backbone regimen (PrEP) Observation" O +define "TDF + 3TC C.DE97 Observation": + "Alternative PEP backbone regimen Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."TDF + 3TC - HIV.C.DE97" -/* End of TDF + 3TC (PrEP|CDE97) */ +/* End of TDF + 3TC C.DE97 */ /* @dataElement: HIV.C.DE98 - TDF + FTC @@ -4043,16 +4043,16 @@ define "TDF + 3TC (PrEP|CDE97) Observation": @description: Alternative backbone containing tenofovir disoproxil fumarate and emtricitabine */ // TODO: Replace placeholder with relevant CQL logic -define "TDF + FTC (PrEP|CDE98)": - exists "TDF + FTC (PrEP|CDE98) Condition" - or exists "TDF + FTC (PrEP|CDE98) Observation" -define "TDF + FTC (PrEP|CDE98) Condition": +define "TDF + FTC C.DE98": + exists "TDF + FTC C.DE98 Condition" + or exists "TDF + FTC C.DE98 Observation" +define "TDF + FTC C.DE98 Condition": [Condition: Concepts."TDF + FTC - HIV.C.DE98"] -define "TDF + FTC (PrEP|CDE98) Observation": - "Alternative PEP backbone regimen (PrEP) Observation" O +define "TDF + FTC C.DE98 Observation": + "Alternative PEP backbone regimen Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."TDF + FTC - HIV.C.DE98" -/* End of TDF + FTC (PrEP|CDE98) */ +/* End of TDF + FTC C.DE98 */ /* @dataElement: HIV.C.DE99 - Preferred third PEP drug @@ -4060,12 +4060,12 @@ define "TDF + FTC (PrEP|CDE98) Observation": @description: Preferred third drug for PEP */ // TODO: Replace placeholder with relevant CQL logic -define "Preferred third PEP drug (PrEP)": - exists "Preferred third PEP drug (PrEP) Observation" -define "Preferred third PEP drug (PrEP) Observation": +define "Preferred third PEP drug": + exists "Preferred third PEP drug Observation" +define "Preferred third PEP drug Observation": [Observation: Concepts."Preferred third PEP drug"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Preferred third PEP drug (PrEP) */ +/* End of Preferred third PEP drug */ /* @dataElement: HIV.C.DE100 - DTG @@ -4073,16 +4073,16 @@ define "Preferred third PEP drug (PrEP) Observation": @description: Preferred third drug of dolutegravir */ // TODO: Replace placeholder with relevant CQL logic -define "DTG (PrEP)": - exists "DTG (PrEP) Condition" - or exists "DTG (PrEP) Observation" -define "DTG (PrEP) Condition": +define "DTG C.DE100": + exists "DTG C.DE100 Condition" + or exists "DTG C.DE100 Observation" +define "DTG C.DE100 Condition": [Condition: Concepts."DTG - HIV.C.DE100"] -define "DTG (PrEP) Observation": - "Preferred third PEP drug (PrEP) Observation" O +define "DTG C.DE100 Observation": + "Preferred third PEP drug Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."DTG - HIV.C.DE100" -/* End of DTG (PrEP) */ +/* End of DTG C.DE100 */ /* @dataElement: HIV.C.DE101 - Alternative third PEP drug @@ -4090,12 +4090,12 @@ define "DTG (PrEP) Observation": @description: Alternative third drug for PEP */ // TODO: Replace placeholder with relevant CQL logic -define "Alternative third PEP drug (PrEP)": - exists "Alternative third PEP drug (PrEP) Observation" -define "Alternative third PEP drug (PrEP) Observation": +define "Alternative third PEP drug": + exists "Alternative third PEP drug Observation" +define "Alternative third PEP drug Observation": [Observation: Concepts."Alternative third PEP drug"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Alternative third PEP drug (PrEP) */ +/* End of Alternative third PEP drug */ /* @dataElement: HIV.C.DE102 - ATV/r @@ -4103,16 +4103,16 @@ define "Alternative third PEP drug (PrEP) Observation": @description: Alternative third drug of atazanavir/ritonavir (ATV/r) */ // TODO: Replace placeholder with relevant CQL logic -define "ATV/r (PrEP)": - exists "ATV/r (PrEP) Condition" - or exists "ATV/r (PrEP) Observation" -define "ATV/r (PrEP) Condition": +define "ATV/r C.DE102": + exists "ATV/r C.DE102 Condition" + or exists "ATV/r C.DE102 Observation" +define "ATV/r C.DE102 Condition": [Condition: Concepts."ATV/r - HIV.C.DE102"] -define "ATV/r (PrEP) Observation": - "Alternative third PEP drug (PrEP) Observation" O +define "ATV/r C.DE102 Observation": + "Alternative third PEP drug Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."ATV/r - HIV.C.DE102" -/* End of ATV/r (PrEP) */ +/* End of ATV/r C.DE102 */ /* @dataElement: HIV.C.DE103 - DRV/r @@ -4120,16 +4120,16 @@ define "ATV/r (PrEP) Observation": @description: Alternative third drug of darunavir/ritonavir (DRV/r) */ // TODO: Replace placeholder with relevant CQL logic -define "DRV/r (PrEP)": - exists "DRV/r (PrEP) Condition" - or exists "DRV/r (PrEP) Observation" -define "DRV/r (PrEP) Condition": +define "DRV/r C.DE103": + exists "DRV/r C.DE103 Condition" + or exists "DRV/r C.DE103 Observation" +define "DRV/r C.DE103 Condition": [Condition: Concepts."DRV/r - HIV.C.DE103"] -define "DRV/r (PrEP) Observation": - "Alternative third PEP drug (PrEP) Observation" O +define "DRV/r C.DE103 Observation": + "Alternative third PEP drug Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."DRV/r - HIV.C.DE103" -/* End of DRV/r (PrEP) */ +/* End of DRV/r C.DE103 */ /* @dataElement: HIV.C.DE104 - LPV/r @@ -4137,16 +4137,16 @@ define "DRV/r (PrEP) Observation": @description: Alternative third drug of lopinavir/ritonavir (LPV/r) */ // TODO: Replace placeholder with relevant CQL logic -define "LPV/r (PrEP)": - exists "LPV/r (PrEP) Condition" - or exists "LPV/r (PrEP) Observation" -define "LPV/r (PrEP) Condition": +define "LPV/r C.DE104": + exists "LPV/r C.DE104 Condition" + or exists "LPV/r C.DE104 Observation" +define "LPV/r C.DE104 Condition": [Condition: Concepts."LPV/r - HIV.C.DE104"] -define "LPV/r (PrEP) Observation": - "Alternative third PEP drug (PrEP) Observation" O +define "LPV/r C.DE104 Observation": + "Alternative third PEP drug Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."LPV/r - HIV.C.DE104" -/* End of LPV/r (PrEP) */ +/* End of LPV/r C.DE104 */ /* @dataElement: HIV.C.DE105 - RAL @@ -4154,16 +4154,16 @@ define "LPV/r (PrEP) Observation": @description: Alternative third drug of raltegravir (RAL) */ // TODO: Replace placeholder with relevant CQL logic -define "RAL (PrEP)": - exists "RAL (PrEP) Condition" - or exists "RAL (PrEP) Observation" -define "RAL (PrEP) Condition": +define "RAL C.DE105": + exists "RAL C.DE105 Condition" + or exists "RAL C.DE105 Observation" +define "RAL C.DE105 Condition": [Condition: Concepts."RAL - HIV.C.DE105"] -define "RAL (PrEP) Observation": - "Alternative third PEP drug (PrEP) Observation" O +define "RAL C.DE105 Observation": + "Alternative third PEP drug Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."RAL - HIV.C.DE105" -/* End of RAL (PrEP) */ +/* End of RAL C.DE105 */ /* @dataElement: HIV.C.DE106 - Estimated creatinine clearance @@ -4171,13 +4171,13 @@ define "RAL (PrEP) Observation": @description: Estimated creatinine clearance of the client returned from lab in mL/min */ // TODO: Replace placeholder with relevant CQL logic -define "Estimated creatinine clearance (PrEP)": +define "Estimated creatinine clearance": [Observation: Concepts."Estimated creatinine clearance"] O where O.status in { 'final', 'amended', 'corrected' } -define "Estimated creatinine clearance (PrEP) Value": - "Estimated creatinine clearance (PrEP)" O +define "Estimated creatinine clearance Value": + "Estimated creatinine clearance" O return O.value -/* End of Estimated creatinine clearance (PrEP) */ +/* End of Estimated creatinine clearance */ /* @dataElement: HIV.C.DE112 - Contraindications to PrEP usage @@ -4185,12 +4185,12 @@ define "Estimated creatinine clearance (PrEP) Value": @description: Listing of contraindications to pre-exposure prophylaxis (PrEP) */ // TODO: Replace placeholder with relevant CQL logic -define "Contraindications to PrEP usage (PrEP)": - exists "Contraindications to PrEP usage (PrEP) Observation" -define "Contraindications to PrEP usage (PrEP) Observation": +define "Contraindications to PrEP usage": + exists "Contraindications to PrEP usage Observation" +define "Contraindications to PrEP usage Observation": [Observation: Concepts."Contraindications to PrEP usage"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Contraindications to PrEP usage (PrEP) */ +/* End of Contraindications to PrEP usage */ /* @dataElement: HIV.C.DE113 - Tenofovir disoproxil fumarate TDF allergy or contraindication @@ -4198,16 +4198,16 @@ define "Contraindications to PrEP usage (PrEP) Observation": @description: Allergy to pre-exposure prophylaxis (PrEP) tenofovir disoproxil fumarate (TDF) */ // TODO: Replace placeholder with relevant CQL logic -define "Tenofovir disoproxil fumarate TDF allergy or contraindication (PrEP)": - exists "Tenofovir disoproxil fumarate TDF allergy or contraindication (PrEP) Condition" - or exists "Tenofovir disoproxil fumarate TDF allergy or contraindication (PrEP) Observation" -define "Tenofovir disoproxil fumarate TDF allergy or contraindication (PrEP) Condition": +define "Tenofovir disoproxil fumarate TDF allergy or contraindication": + exists "Tenofovir disoproxil fumarate TDF allergy or contraindication Condition" + or exists "Tenofovir disoproxil fumarate TDF allergy or contraindication Observation" +define "Tenofovir disoproxil fumarate TDF allergy or contraindication Condition": [Condition: Concepts."Tenofovir disoproxil fumarate TDF allergy or contraindication"] -define "Tenofovir disoproxil fumarate TDF allergy or contraindication (PrEP) Observation": - "Contraindications to PrEP usage (PrEP) Observation" O +define "Tenofovir disoproxil fumarate TDF allergy or contraindication Observation": + "Contraindications to PrEP usage Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Tenofovir disoproxil fumarate TDF allergy or contraindication" -/* End of Tenofovir disoproxil fumarate TDF allergy or contraindication (PrEP) */ +/* End of Tenofovir disoproxil fumarate TDF allergy or contraindication */ /* @dataElement: HIV.C.DE114 - HIV-positive @@ -4215,16 +4215,16 @@ define "Tenofovir disoproxil fumarate TDF allergy or contraindication (PrEP) Obs @description: Client is HIV-positive */ // TODO: Replace placeholder with relevant CQL logic -define "HIV-positive (PrEP)": - exists "HIV-positive (PrEP) Condition" - or exists "HIV-positive (PrEP) Observation" -define "HIV-positive (PrEP) Condition": +define "HIV-positive C.DE114": + exists "HIV-positive C.DE114 Condition" + or exists "HIV-positive C.DE114 Observation" +define "HIV-positive C.DE114 Condition": [Condition: Concepts."HIV-positive - HIV.C.DE114"] -define "HIV-positive (PrEP) Observation": - "Contraindications to PrEP usage (PrEP) Observation" O +define "HIV-positive C.DE114 Observation": + "Contraindications to PrEP usage Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."HIV-positive - HIV.C.DE114" -/* End of HIV-positive (PrEP) */ +/* End of HIV-positive C.DE114 */ /* @dataElement: HIV.C.DE115 - Low estimated creatinine clearance @@ -4232,16 +4232,16 @@ define "HIV-positive (PrEP) Observation": @description: Estimated creatinine clearance of less than 60 ml/min (if known) */ // TODO: Replace placeholder with relevant CQL logic -define "Low estimated creatinine clearance (PrEP)": - exists "Low estimated creatinine clearance (PrEP) Condition" - or exists "Low estimated creatinine clearance (PrEP) Observation" -define "Low estimated creatinine clearance (PrEP) Condition": +define "Low estimated creatinine clearance": + exists "Low estimated creatinine clearance Condition" + or exists "Low estimated creatinine clearance Observation" +define "Low estimated creatinine clearance Condition": [Condition: Concepts."Low estimated creatinine clearance"] -define "Low estimated creatinine clearance (PrEP) Observation": - "Contraindications to PrEP usage (PrEP) Observation" O +define "Low estimated creatinine clearance Observation": + "Contraindications to PrEP usage Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Low estimated creatinine clearance" -/* End of Low estimated creatinine clearance (PrEP) */ +/* End of Low estimated creatinine clearance */ /* @dataElement: HIV.C.DE116 - Acute HIV infection symptoms @@ -4249,16 +4249,16 @@ define "Low estimated creatinine clearance (PrEP) Observation": @description: Symptoms that could suggest an acute HIV infection */ // TODO: Replace placeholder with relevant CQL logic -define "Acute HIV infection symptoms (PrEP|CDE116)": - exists "Acute HIV infection symptoms (PrEP|CDE116) Condition" - or exists "Acute HIV infection symptoms (PrEP|CDE116) Observation" -define "Acute HIV infection symptoms (PrEP|CDE116) Condition": +define "Acute HIV infection symptoms C.DE116": + exists "Acute HIV infection symptoms C.DE116 Condition" + or exists "Acute HIV infection symptoms C.DE116 Observation" +define "Acute HIV infection symptoms C.DE116 Condition": [Condition: Concepts."Acute HIV infection symptoms - HIV.C.DE116"] -define "Acute HIV infection symptoms (PrEP|CDE116) Observation": - "Contraindications to PrEP usage (PrEP) Observation" O +define "Acute HIV infection symptoms C.DE116 Observation": + "Contraindications to PrEP usage Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Acute HIV infection symptoms - HIV.C.DE116" -/* End of Acute HIV infection symptoms (PrEP|CDE116) */ +/* End of Acute HIV infection symptoms C.DE116 */ /* @dataElement: HIV.C.DE117 - Probable recent exposure to HIV @@ -4266,16 +4266,16 @@ define "Acute HIV infection symptoms (PrEP|CDE116) Observation": @description: When the client is reported to have had probable recent exposure to HIV */ // TODO: Replace placeholder with relevant CQL logic -define "Probable recent exposure to HIV (PrEP)": - exists "Probable recent exposure to HIV (PrEP) Condition" - or exists "Probable recent exposure to HIV (PrEP) Observation" -define "Probable recent exposure to HIV (PrEP) Condition": +define "Probable recent exposure to HIV": + exists "Probable recent exposure to HIV Condition" + or exists "Probable recent exposure to HIV Observation" +define "Probable recent exposure to HIV Condition": [Condition: Concepts."Probable recent exposure to HIV"] -define "Probable recent exposure to HIV (PrEP) Observation": - "Contraindications to PrEP usage (PrEP) Observation" O +define "Probable recent exposure to HIV Observation": + "Contraindications to PrEP usage Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Probable recent exposure to HIV" -/* End of Probable recent exposure to HIV (PrEP) */ +/* End of Probable recent exposure to HIV */ /* @dataElement: HIV.C.DE118 - Other allergy or contraindication to a medicine in the PrEP regimen @@ -4283,16 +4283,16 @@ define "Probable recent exposure to HIV (PrEP) Observation": @description: Client has another allergy or contraindication to a medicine in the pre-exposure prophylaxis (PrEP) regimen */ // TODO: Replace placeholder with relevant CQL logic -define "Other allergy or contraindication to a medicine in the PrEP regimen (PrEP)": - exists "Other allergy or contraindication to a medicine in the PrEP regimen (PrEP) Condition" - or exists "Other allergy or contraindication to a medicine in the PrEP regimen (PrEP) Observation" -define "Other allergy or contraindication to a medicine in the PrEP regimen (PrEP) Condition": +define "Other allergy or contraindication to a medicine in the PrEP regimen": + exists "Other allergy or contraindication to a medicine in the PrEP regimen Condition" + or exists "Other allergy or contraindication to a medicine in the PrEP regimen Observation" +define "Other allergy or contraindication to a medicine in the PrEP regimen Condition": [Condition: Concepts."Other allergy or contraindication to a medicine in the PrEP regimen"] -define "Other allergy or contraindication to a medicine in the PrEP regimen (PrEP) Observation": - "Contraindications to PrEP usage (PrEP) Observation" O +define "Other allergy or contraindication to a medicine in the PrEP regimen Observation": + "Contraindications to PrEP usage Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Other allergy or contraindication to a medicine in the PrEP regimen" -/* End of Other allergy or contraindication to a medicine in the PrEP regimen (PrEP) */ +/* End of Other allergy or contraindication to a medicine in the PrEP regimen */ /* @dataElement: HIV.C.DE121 - Number of days prescribed @@ -4300,13 +4300,13 @@ define "Other allergy or contraindication to a medicine in the PrEP regimen (PrE @description: Days of medication client has been prescribed */ // TODO: Replace placeholder with relevant CQL logic -define "Number of days prescribed (PrEP)": +define "Number of days prescribed C.DE121": [Observation: Concepts."Number of days prescribed - HIV.C.DE121"] O where O.status in { 'final', 'amended', 'corrected' } -define "Number of days prescribed (PrEP) Value": - "Number of days prescribed (PrEP)" O +define "Number of days prescribed C.DE121 Value": + "Number of days prescribed C.DE121" O return O.value -/* End of Number of days prescribed (PrEP) */ +/* End of Number of days prescribed C.DE121 */ /* @dataElement: HIV.C.DE123 - Adherence counselling provided @@ -4314,13 +4314,13 @@ define "Number of days prescribed (PrEP) Value": @description: Whether adherence counselling was provided */ // TODO: Replace placeholder with relevant CQL logic -define "Adherence counselling provided (PrEP)": - exists "Adherence counselling provided (PrEP) Observation" -define "Adherence counselling provided (PrEP) Observation": +define "Adherence counselling provided C.DE123": + exists "Adherence counselling provided C.DE123 Observation" +define "Adherence counselling provided C.DE123 Observation": [Observation: Concepts."Adherence counselling provided - HIV.C.DE123"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Adherence counselling provided (PrEP) */ +/* End of Adherence counselling provided C.DE123 */ /* @dataElement: HIV.C.DE124 - Date/time of follow-up appointment @@ -4328,13 +4328,13 @@ define "Adherence counselling provided (PrEP) Observation": @description: Date the client is to return for monitoring, re-supply, or any other reason */ // TODO: Replace placeholder with relevant CQL logic -define "Date/time of follow-up appointment (PrEP)": +define "Date/time of follow-up appointment C.DE124": [Observation: Concepts."Date/time of follow-up appointment - HIV.C.DE124"] O where O.status in { 'final', 'amended', 'corrected' } -define "Date/time of follow-up appointment (PrEP) Value": - "Date/time of follow-up appointment (PrEP)" O +define "Date/time of follow-up appointment C.DE124 Value": + "Date/time of follow-up appointment C.DE124" O return O.value -/* End of Date/time of follow-up appointment (PrEP) */ +/* End of Date/time of follow-up appointment C.DE124 */ /* @dataElement: HIV.C.DE125 - Type of follow-up appointment @@ -4342,12 +4342,12 @@ define "Date/time of follow-up appointment (PrEP) Value": @description: Type of follow-up appointment for testing services */ // TODO: Replace placeholder with relevant CQL logic -define "Type of follow-up appointment (PrEP)": - exists "Type of follow-up appointment (PrEP) Observation" -define "Type of follow-up appointment (PrEP) Observation": +define "Type of follow-up appointment C.DE125": + exists "Type of follow-up appointment C.DE125 Observation" +define "Type of follow-up appointment C.DE125 Observation": [Observation: Concepts."Type of follow-up appointment - HIV.C.DE125"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Type of follow-up appointment (PrEP) */ +/* End of Type of follow-up appointment C.DE125 */ /* @dataElement: HIV.C.DE126 - Retesting for HIV @@ -4355,16 +4355,16 @@ define "Type of follow-up appointment (PrEP) Observation": @description: Retesting follow-up appointment */ // TODO: Replace placeholder with relevant CQL logic -define "Retesting for HIV (PrEP)": - exists "Retesting for HIV (PrEP) Condition" - or exists "Retesting for HIV (PrEP) Observation" -define "Retesting for HIV (PrEP) Condition": +define "Retesting for HIV C.DE126": + exists "Retesting for HIV C.DE126 Condition" + or exists "Retesting for HIV C.DE126 Observation" +define "Retesting for HIV C.DE126 Condition": [Condition: Concepts."Retesting for HIV - HIV.C.DE126"] -define "Retesting for HIV (PrEP) Observation": - "Type of follow-up appointment (PrEP) Observation" O +define "Retesting for HIV C.DE126 Observation": + "Type of follow-up appointment C.DE125 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Retesting for HIV - HIV.C.DE126" -/* End of Retesting for HIV (PrEP) */ +/* End of Retesting for HIV C.DE126 */ /* @dataElement: HIV.C.DE127 - Follow-up appointment for PrEP @@ -4372,16 +4372,16 @@ define "Retesting for HIV (PrEP) Observation": @description: Retesting follow-up appointment */ // TODO: Replace placeholder with relevant CQL logic -define "Follow-up appointment for PrEP (PrEP)": - exists "Follow-up appointment for PrEP (PrEP) Condition" - or exists "Follow-up appointment for PrEP (PrEP) Observation" -define "Follow-up appointment for PrEP (PrEP) Condition": +define "Follow-up appointment for PrEP": + exists "Follow-up appointment for PrEP Condition" + or exists "Follow-up appointment for PrEP Observation" +define "Follow-up appointment for PrEP Condition": [Condition: Concepts."Follow-up appointment for PrEP"] -define "Follow-up appointment for PrEP (PrEP) Observation": - "Type of follow-up appointment (PrEP) Observation" O +define "Follow-up appointment for PrEP Observation": + "Type of follow-up appointment C.DE125 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Follow-up appointment for PrEP" -/* End of Follow-up appointment for PrEP (PrEP) */ +/* End of Follow-up appointment for PrEP */ /* @dataElement: HIV.C.DE128 - Other @@ -4389,16 +4389,16 @@ define "Follow-up appointment for PrEP (PrEP) Observation": @description: Other reason for the follow-up appointment */ // TODO: Replace placeholder with relevant CQL logic -define "Other (PrEP|CDE128)": - exists "Other (PrEP|CDE128) Condition" - or exists "Other (PrEP|CDE128) Observation" -define "Other (PrEP|CDE128) Condition": +define "Other C.DE128": + exists "Other C.DE128 Condition" + or exists "Other C.DE128 Observation" +define "Other C.DE128 Condition": [Condition: Concepts."Other - HIV.C.DE128"] -define "Other (PrEP|CDE128) Observation": - "Type of follow-up appointment (PrEP) Observation" O +define "Other C.DE128 Observation": + "Type of follow-up appointment C.DE125 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Other - HIV.C.DE128" -/* End of Other (PrEP|CDE128) */ +/* End of Other C.DE128 */ /* @dataElement: HIV.C.DE131 - Prevention services offered and referrals @@ -4406,12 +4406,12 @@ define "Other (PrEP|CDE128) Observation": @description: Offer or refer to prevention services */ // TODO: Replace placeholder with relevant CQL logic -define "Prevention services offered and referrals (PrEP)": - exists "Prevention services offered and referrals (PrEP) Observation" -define "Prevention services offered and referrals (PrEP) Observation": +define "Prevention services offered and referrals C.DE131": + exists "Prevention services offered and referrals C.DE131 Observation" +define "Prevention services offered and referrals C.DE131 Observation": [Observation: Concepts."Prevention services offered and referrals - HIV.C.DE131"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Prevention services offered and referrals (PrEP) */ +/* End of Prevention services offered and referrals C.DE131 */ /* @dataElement: HIV.C.DE132 - Male and female condoms and condom-compatible lubricants offered @@ -4419,16 +4419,16 @@ define "Prevention services offered and referrals (PrEP) Observation": @description: Offer male and female condoms and condom-compatible lubricants */ // TODO: Replace placeholder with relevant CQL logic -define "Male and female condoms and condom-compatible lubricants offered (PrEP)": - exists "Male and female condoms and condom-compatible lubricants offered (PrEP) Condition" - or exists "Male and female condoms and condom-compatible lubricants offered (PrEP) Observation" -define "Male and female condoms and condom-compatible lubricants offered (PrEP) Condition": +define "Male and female condoms and condom-compatible lubricants offered": + exists "Male and female condoms and condom-compatible lubricants offered Condition" + or exists "Male and female condoms and condom-compatible lubricants offered Observation" +define "Male and female condoms and condom-compatible lubricants offered Condition": [Condition: Concepts."Male and female condoms and condom-compatible lubricants offered"] -define "Male and female condoms and condom-compatible lubricants offered (PrEP) Observation": - "Prevention services offered and referrals (PrEP) Observation" O +define "Male and female condoms and condom-compatible lubricants offered Observation": + "Prevention services offered and referrals C.DE131 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Male and female condoms and condom-compatible lubricants offered" -/* End of Male and female condoms and condom-compatible lubricants offered (PrEP) */ +/* End of Male and female condoms and condom-compatible lubricants offered */ /* @dataElement: HIV.C.DE133 - Voluntary medical male circumcision VMMC referral @@ -4436,16 +4436,16 @@ define "Male and female condoms and condom-compatible lubricants offered (PrEP) @description: Offer referral for VMMC services */ // TODO: Replace placeholder with relevant CQL logic -define "Voluntary medical male circumcision VMMC referral (PrEP)": - exists "Voluntary medical male circumcision VMMC referral (PrEP) Condition" - or exists "Voluntary medical male circumcision VMMC referral (PrEP) Observation" -define "Voluntary medical male circumcision VMMC referral (PrEP) Condition": +define "Voluntary medical male circumcision VMMC referral": + exists "Voluntary medical male circumcision VMMC referral Condition" + or exists "Voluntary medical male circumcision VMMC referral Observation" +define "Voluntary medical male circumcision VMMC referral Condition": [Condition: Concepts."Voluntary medical male circumcision VMMC referral"] -define "Voluntary medical male circumcision VMMC referral (PrEP) Observation": - "Prevention services offered and referrals (PrEP) Observation" O +define "Voluntary medical male circumcision VMMC referral Observation": + "Prevention services offered and referrals C.DE131 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Voluntary medical male circumcision VMMC referral" -/* End of Voluntary medical male circumcision VMMC referral (PrEP) */ +/* End of Voluntary medical male circumcision VMMC referral */ /* @dataElement: HIV.C.DE134 - Harm reduction for people who inject drugs @@ -4453,16 +4453,16 @@ define "Voluntary medical male circumcision VMMC referral (PrEP) Observation": @description: Offer or refer to harm reduction for people who inject drugs (needle and syringe programmes, opioid substitution therapy, other drug-dependence treatment and opioid overdose prevention and management) services */ // TODO: Replace placeholder with relevant CQL logic -define "Harm reduction for people who inject drugs (PrEP)": - exists "Harm reduction for people who inject drugs (PrEP) Condition" - or exists "Harm reduction for people who inject drugs (PrEP) Observation" -define "Harm reduction for people who inject drugs (PrEP) Condition": +define "Harm reduction for people who inject drugs C.DE134": + exists "Harm reduction for people who inject drugs C.DE134 Condition" + or exists "Harm reduction for people who inject drugs C.DE134 Observation" +define "Harm reduction for people who inject drugs C.DE134 Condition": [Condition: Concepts."Harm reduction for people who inject drugs - HIV.C.DE134"] -define "Harm reduction for people who inject drugs (PrEP) Observation": - "Prevention services offered and referrals (PrEP) Observation" O +define "Harm reduction for people who inject drugs C.DE134 Observation": + "Prevention services offered and referrals C.DE131 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Harm reduction for people who inject drugs - HIV.C.DE134" -/* End of Harm reduction for people who inject drugs (PrEP) */ +/* End of Harm reduction for people who inject drugs C.DE134 */ /* @dataElement: HIV.C.DE135 - Behavioural interventions to support risk reduction @@ -4470,16 +4470,16 @@ define "Harm reduction for people who inject drugs (PrEP) Observation": @description: Offer or refer to services for behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations */ // TODO: Replace placeholder with relevant CQL logic -define "Behavioural interventions to support risk reduction (PrEP)": - exists "Behavioural interventions to support risk reduction (PrEP) Condition" - or exists "Behavioural interventions to support risk reduction (PrEP) Observation" -define "Behavioural interventions to support risk reduction (PrEP) Condition": +define "Behavioural interventions to support risk reduction C.DE135": + exists "Behavioural interventions to support risk reduction C.DE135 Condition" + or exists "Behavioural interventions to support risk reduction C.DE135 Observation" +define "Behavioural interventions to support risk reduction C.DE135 Condition": [Condition: Concepts."Behavioural interventions to support risk reduction - HIV.C.DE135"] -define "Behavioural interventions to support risk reduction (PrEP) Observation": - "Prevention services offered and referrals (PrEP) Observation" O +define "Behavioural interventions to support risk reduction C.DE135 Observation": + "Prevention services offered and referrals C.DE131 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Behavioural interventions to support risk reduction - HIV.C.DE135" -/* End of Behavioural interventions to support risk reduction (PrEP) */ +/* End of Behavioural interventions to support risk reduction C.DE135 */ /* @dataElement: HIV.C.DE138 - Condom type @@ -4487,12 +4487,12 @@ define "Behavioural interventions to support risk reduction (PrEP) Observation": @description: Type of condom provided to client */ // TODO: Replace placeholder with relevant CQL logic -define "Condom type (PrEP)": - exists "Condom type (PrEP) Observation" -define "Condom type (PrEP) Observation": +define "Condom type": + exists "Condom type Observation" +define "Condom type Observation": [Observation: Concepts."Condom type"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Condom type (PrEP) */ +/* End of Condom type */ /* @dataElement: HIV.C.DE139 - Male condom @@ -4500,16 +4500,16 @@ define "Condom type (PrEP) Observation": @description: Male condoms were provided to the client */ // TODO: Replace placeholder with relevant CQL logic -define "Male condom (PrEP)": - exists "Male condom (PrEP) Condition" - or exists "Male condom (PrEP) Observation" -define "Male condom (PrEP) Condition": +define "Male condom": + exists "Male condom Condition" + or exists "Male condom Observation" +define "Male condom Condition": [Condition: Concepts."Male condom"] -define "Male condom (PrEP) Observation": - "Condom type (PrEP) Observation" O +define "Male condom Observation": + "Condom type Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Male condom" -/* End of Male condom (PrEP) */ +/* End of Male condom */ /* @dataElement: HIV.C.DE140 - Female condom @@ -4517,16 +4517,16 @@ define "Male condom (PrEP) Observation": @description: Female condoms were provided to the client */ // TODO: Replace placeholder with relevant CQL logic -define "Female condom (PrEP)": - exists "Female condom (PrEP) Condition" - or exists "Female condom (PrEP) Observation" -define "Female condom (PrEP) Condition": +define "Female condom": + exists "Female condom Condition" + or exists "Female condom Observation" +define "Female condom Condition": [Condition: Concepts."Female condom"] -define "Female condom (PrEP) Observation": - "Condom type (PrEP) Observation" O +define "Female condom Observation": + "Condom type Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Female condom" -/* End of Female condom (PrEP) */ +/* End of Female condom */ /* @dataElement: HIV.C.DE142 - Number of HIV self-test kits distributed @@ -4534,13 +4534,13 @@ define "Female condom (PrEP) Observation": @description: Number of HIV self-test kits distributed to the client */ // TODO: Replace placeholder with relevant CQL logic -define "Number of HIV self-test kits distributed (PrEP)": +define "Number of HIV self-test kits distributed": [Observation: Concepts."Number of HIV self-test kits distributed"] O where O.status in { 'final', 'amended', 'corrected' } -define "Number of HIV self-test kits distributed (PrEP) Value": - "Number of HIV self-test kits distributed (PrEP)" O +define "Number of HIV self-test kits distributed Value": + "Number of HIV self-test kits distributed" O return O.value -/* End of Number of HIV self-test kits distributed (PrEP) */ +/* End of Number of HIV self-test kits distributed */ /* @dataElement: HIV.C.DE143 - HIV self-test distributed for use by @@ -4548,12 +4548,12 @@ define "Number of HIV self-test kits distributed (PrEP) Value": @description: Whom the client plans to give the HIV self-test kit (self, sexual partner, social contact, etc.) */ // TODO: Replace placeholder with relevant CQL logic -define "HIV self-test distributed for use by (PrEP)": - exists "HIV self-test distributed for use by (PrEP) Observation" -define "HIV self-test distributed for use by (PrEP) Observation": +define "HIV self-test distributed for use by": + exists "HIV self-test distributed for use by Observation" +define "HIV self-test distributed for use by Observation": [Observation: Concepts."HIV self-test distributed for use by"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of HIV self-test distributed for use by (PrEP) */ +/* End of HIV self-test distributed for use by */ /* @dataElement: HIV.C.DE144 - Self @@ -4561,16 +4561,16 @@ define "HIV self-test distributed for use by (PrEP) Observation": @description: Client plans to use the self-test kit */ // TODO: Replace placeholder with relevant CQL logic -define "Self (PrEP)": - exists "Self (PrEP) Condition" - or exists "Self (PrEP) Observation" -define "Self (PrEP) Condition": +define "Self": + exists "Self Condition" + or exists "Self Observation" +define "Self Condition": [Condition: Concepts."Self"] -define "Self (PrEP) Observation": - "HIV self-test distributed for use by (PrEP) Observation" O +define "Self Observation": + "HIV self-test distributed for use by Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Self" -/* End of Self (PrEP) */ +/* End of Self */ /* @dataElement: HIV.C.DE145 - Family member @@ -4578,16 +4578,16 @@ define "Self (PrEP) Observation": @description: Client plans to give the self-test kit to a family member to use */ // TODO: Replace placeholder with relevant CQL logic -define "Family member (PrEP)": - exists "Family member (PrEP) Condition" - or exists "Family member (PrEP) Observation" -define "Family member (PrEP) Condition": +define "Family member": + exists "Family member Condition" + or exists "Family member Observation" +define "Family member Condition": [Condition: Concepts."Family member"] -define "Family member (PrEP) Observation": - "HIV self-test distributed for use by (PrEP) Observation" O +define "Family member Observation": + "HIV self-test distributed for use by Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Family member" -/* End of Family member (PrEP) */ +/* End of Family member */ /* @dataElement: HIV.C.DE146 - Drug-injecting partner @@ -4595,16 +4595,16 @@ define "Family member (PrEP) Observation": @description: Client plans to give the self-test kit to a drug-injecting partner */ // TODO: Replace placeholder with relevant CQL logic -define "Drug-injecting partner (PrEP)": - exists "Drug-injecting partner (PrEP) Condition" - or exists "Drug-injecting partner (PrEP) Observation" -define "Drug-injecting partner (PrEP) Condition": +define "Drug-injecting partner C.DE146": + exists "Drug-injecting partner C.DE146 Condition" + or exists "Drug-injecting partner C.DE146 Observation" +define "Drug-injecting partner C.DE146 Condition": [Condition: Concepts."Drug-injecting partner - HIV.C.DE146"] -define "Drug-injecting partner (PrEP) Observation": - "HIV self-test distributed for use by (PrEP) Observation" O +define "Drug-injecting partner C.DE146 Observation": + "HIV self-test distributed for use by Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Drug-injecting partner - HIV.C.DE146" -/* End of Drug-injecting partner (PrEP) */ +/* End of Drug-injecting partner C.DE146 */ /* @dataElement: HIV.C.DE147 - Sexual partner @@ -4612,16 +4612,16 @@ define "Drug-injecting partner (PrEP) Observation": @description: Client plans to give the self-test kit to a sexual partner */ // TODO: Replace placeholder with relevant CQL logic -define "Sexual partner (PrEP)": - exists "Sexual partner (PrEP) Condition" - or exists "Sexual partner (PrEP) Observation" -define "Sexual partner (PrEP) Condition": +define "Sexual partner C.DE147": + exists "Sexual partner C.DE147 Condition" + or exists "Sexual partner C.DE147 Observation" +define "Sexual partner C.DE147 Condition": [Condition: Concepts."Sexual partner - HIV.C.DE147"] -define "Sexual partner (PrEP) Observation": - "HIV self-test distributed for use by (PrEP) Observation" O +define "Sexual partner C.DE147 Observation": + "HIV self-test distributed for use by Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Sexual partner - HIV.C.DE147" -/* End of Sexual partner (PrEP) */ +/* End of Sexual partner C.DE147 */ /* @dataElement: HIV.C.DE148 - Social contact @@ -4629,16 +4629,16 @@ define "Sexual partner (PrEP) Observation": @description: Client plans to give the self-test kit to a social contact */ // TODO: Replace placeholder with relevant CQL logic -define "Social contact (PrEP)": - exists "Social contact (PrEP) Condition" - or exists "Social contact (PrEP) Observation" -define "Social contact (PrEP) Condition": +define "Social contact C.DE148": + exists "Social contact C.DE148 Condition" + or exists "Social contact C.DE148 Observation" +define "Social contact C.DE148 Condition": [Condition: Concepts."Social contact - HIV.C.DE148"] -define "Social contact (PrEP) Observation": - "HIV self-test distributed for use by (PrEP) Observation" O +define "Social contact C.DE148 Observation": + "HIV self-test distributed for use by Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Social contact - HIV.C.DE148" -/* End of Social contact (PrEP) */ +/* End of Social contact C.DE148 */ /* @dataElement: HIV.C.DE149 - Sexual and reproductive health integrated services @@ -4646,12 +4646,12 @@ define "Social contact (PrEP) Observation": @description: Offer or refer to sexual and reproductive health services */ // TODO: Replace placeholder with relevant CQL logic -define "Sexual and reproductive health integrated services (PrEP)": - exists "Sexual and reproductive health integrated services (PrEP) Observation" -define "Sexual and reproductive health integrated services (PrEP) Observation": +define "Sexual and reproductive health integrated services C.DE149": + exists "Sexual and reproductive health integrated services C.DE149 Observation" +define "Sexual and reproductive health integrated services C.DE149 Observation": [Observation: Concepts."Sexual and reproductive health integrated services - HIV.C.DE149"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Sexual and reproductive health integrated services (PrEP) */ +/* End of Sexual and reproductive health integrated services C.DE149 */ /* @dataElement: HIV.C.DE150 - Contraception and family planning @@ -4659,16 +4659,16 @@ define "Sexual and reproductive health integrated services (PrEP) Observation": @description: Offer contraception and family planning services */ // TODO: Replace placeholder with relevant CQL logic -define "Contraception and family planning (PrEP)": - exists "Contraception and family planning (PrEP) Condition" - or exists "Contraception and family planning (PrEP) Observation" -define "Contraception and family planning (PrEP) Condition": +define "Contraception and family planning C.DE150": + exists "Contraception and family planning C.DE150 Condition" + or exists "Contraception and family planning C.DE150 Observation" +define "Contraception and family planning C.DE150 Condition": [Condition: Concepts."Contraception and family planning - HIV.C.DE150"] -define "Contraception and family planning (PrEP) Observation": - "Sexual and reproductive health integrated services (PrEP) Observation" O +define "Contraception and family planning C.DE150 Observation": + "Sexual and reproductive health integrated services C.DE149 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Contraception and family planning - HIV.C.DE150" -/* End of Contraception and family planning (PrEP) */ +/* End of Contraception and family planning C.DE150 */ /* @dataElement: HIV.C.DE151 - Check pregnancy status @@ -4676,16 +4676,16 @@ define "Contraception and family planning (PrEP) Observation": @description: Check woman's pregnancy status */ // TODO: Replace placeholder with relevant CQL logic -define "Check pregnancy status (PrEP)": - exists "Check pregnancy status (PrEP) Condition" - or exists "Check pregnancy status (PrEP) Observation" -define "Check pregnancy status (PrEP) Condition": +define "Check pregnancy status C.DE151": + exists "Check pregnancy status C.DE151 Condition" + or exists "Check pregnancy status C.DE151 Observation" +define "Check pregnancy status C.DE151 Condition": [Condition: Concepts."Check pregnancy status - HIV.C.DE151"] -define "Check pregnancy status (PrEP) Observation": - "Sexual and reproductive health integrated services (PrEP) Observation" O +define "Check pregnancy status C.DE151 Observation": + "Sexual and reproductive health integrated services C.DE149 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Check pregnancy status - HIV.C.DE151" -/* End of Check pregnancy status (PrEP) */ +/* End of Check pregnancy status C.DE151 */ /* @dataElement: HIV.C.DE152 - Prevent mother-to-child transmission @@ -4693,16 +4693,16 @@ define "Check pregnancy status (PrEP) Observation": @description: Offer services (counselling) to help prevent of mother-to-child transmission */ // TODO: Replace placeholder with relevant CQL logic -define "Prevent mother-to-child transmission (PrEP)": - exists "Prevent mother-to-child transmission (PrEP) Condition" - or exists "Prevent mother-to-child transmission (PrEP) Observation" -define "Prevent mother-to-child transmission (PrEP) Condition": +define "Prevent mother-to-child transmission": + exists "Prevent mother-to-child transmission Condition" + or exists "Prevent mother-to-child transmission Observation" +define "Prevent mother-to-child transmission Condition": [Condition: Concepts."Prevent mother-to-child transmission"] -define "Prevent mother-to-child transmission (PrEP) Observation": - "Sexual and reproductive health integrated services (PrEP) Observation" O +define "Prevent mother-to-child transmission Observation": + "Sexual and reproductive health integrated services C.DE149 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Prevent mother-to-child transmission" -/* End of Prevent mother-to-child transmission (PrEP) */ +/* End of Prevent mother-to-child transmission */ /* @dataElement: HIV.C.DE153 - Cervical cancer screening and treatment @@ -4710,16 +4710,16 @@ define "Prevent mother-to-child transmission (PrEP) Observation": @description: Offer cervical cancer screening and treatment services */ // TODO: Replace placeholder with relevant CQL logic -define "Cervical cancer screening and treatment (PrEP)": - exists "Cervical cancer screening and treatment (PrEP) Condition" - or exists "Cervical cancer screening and treatment (PrEP) Observation" -define "Cervical cancer screening and treatment (PrEP) Condition": +define "Cervical cancer screening and treatment": + exists "Cervical cancer screening and treatment Condition" + or exists "Cervical cancer screening and treatment Observation" +define "Cervical cancer screening and treatment Condition": [Condition: Concepts."Cervical cancer screening and treatment"] -define "Cervical cancer screening and treatment (PrEP) Observation": - "Sexual and reproductive health integrated services (PrEP) Observation" O +define "Cervical cancer screening and treatment Observation": + "Sexual and reproductive health integrated services C.DE149 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Cervical cancer screening and treatment" -/* End of Cervical cancer screening and treatment (PrEP) */ +/* End of Cervical cancer screening and treatment */ /* @dataElement: HIV.C.DE154 - Anal cancer screening for men who have sex with men @@ -4727,16 +4727,16 @@ define "Cervical cancer screening and treatment (PrEP) Observation": @description: Offer anal cancer screening (for men who have sex with men) services */ // TODO: Replace placeholder with relevant CQL logic -define "Anal cancer screening for men who have sex with men (PrEP)": - exists "Anal cancer screening for men who have sex with men (PrEP) Condition" - or exists "Anal cancer screening for men who have sex with men (PrEP) Observation" -define "Anal cancer screening for men who have sex with men (PrEP) Condition": +define "Anal cancer screening for men who have sex with men C.DE154": + exists "Anal cancer screening for men who have sex with men C.DE154 Condition" + or exists "Anal cancer screening for men who have sex with men C.DE154 Observation" +define "Anal cancer screening for men who have sex with men C.DE154 Condition": [Condition: Concepts."Anal cancer screening for men who have sex with men - HIV.C.DE154"] -define "Anal cancer screening for men who have sex with men (PrEP) Observation": - "Sexual and reproductive health integrated services (PrEP) Observation" O +define "Anal cancer screening for men who have sex with men C.DE154 Observation": + "Sexual and reproductive health integrated services C.DE149 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Anal cancer screening for men who have sex with men - HIV.C.DE154" -/* End of Anal cancer screening for men who have sex with men (PrEP) */ +/* End of Anal cancer screening for men who have sex with men C.DE154 */ /* @dataElement: HIV.C.DE155 - STI testing and treatment @@ -4744,16 +4744,16 @@ define "Anal cancer screening for men who have sex with men (PrEP) Observation": @description: Offer STI testing and treatment services */ // TODO: Replace placeholder with relevant CQL logic -define "STI testing and treatment (PrEP)": - exists "STI testing and treatment (PrEP) Condition" - or exists "STI testing and treatment (PrEP) Observation" -define "STI testing and treatment (PrEP) Condition": +define "STI testing and treatment C.DE155": + exists "STI testing and treatment C.DE155 Condition" + or exists "STI testing and treatment C.DE155 Observation" +define "STI testing and treatment C.DE155 Condition": [Condition: Concepts."STI testing and treatment - HIV.C.DE155"] -define "STI testing and treatment (PrEP) Observation": - "Sexual and reproductive health integrated services (PrEP) Observation" O +define "STI testing and treatment C.DE155 Observation": + "Sexual and reproductive health integrated services C.DE149 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."STI testing and treatment - HIV.C.DE155" -/* End of STI testing and treatment (PrEP) */ +/* End of STI testing and treatment C.DE155 */ /* @dataElement: HIV.C.DE156 - HIV testing for partners and biological children @@ -4761,16 +4761,16 @@ define "STI testing and treatment (PrEP) Observation": @description: Offer testing for all partners and biological children of positive cases (includes partner services and index case testing), as well as partners and social contacts of people from key populations, where appropriate */ // TODO: Replace placeholder with relevant CQL logic -define "HIV testing for partners and biological children (PrEP)": - exists "HIV testing for partners and biological children (PrEP) Condition" - or exists "HIV testing for partners and biological children (PrEP) Observation" -define "HIV testing for partners and biological children (PrEP) Condition": +define "HIV testing for partners and biological children C.DE156": + exists "HIV testing for partners and biological children C.DE156 Condition" + or exists "HIV testing for partners and biological children C.DE156 Observation" +define "HIV testing for partners and biological children C.DE156 Condition": [Condition: Concepts."HIV testing for partners and biological children - HIV.C.DE156"] -define "HIV testing for partners and biological children (PrEP) Observation": - "Sexual and reproductive health integrated services (PrEP) Observation" O +define "HIV testing for partners and biological children C.DE156 Observation": + "Sexual and reproductive health integrated services C.DE149 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."HIV testing for partners and biological children - HIV.C.DE156" -/* End of HIV testing for partners and biological children (PrEP) */ +/* End of HIV testing for partners and biological children C.DE156 */ /* @dataElement: HIV.C.DE157 - Offer other clinical services @@ -4778,12 +4778,12 @@ define "HIV testing for partners and biological children (PrEP) Observation": @description: Other clinical services offered or referrals given to the client */ // TODO: Replace placeholder with relevant CQL logic -define "Offer other clinical services (PrEP)": - exists "Offer other clinical services (PrEP) Observation" -define "Offer other clinical services (PrEP) Observation": +define "Offer other clinical services C.DE157": + exists "Offer other clinical services C.DE157 Observation" +define "Offer other clinical services C.DE157 Observation": [Observation: Concepts."Offer other clinical services - HIV.C.DE157"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Offer other clinical services (PrEP) */ +/* End of Offer other clinical services C.DE157 */ /* @dataElement: HIV.C.DE158 - Assessment and provision of vaccinations @@ -4791,16 +4791,16 @@ define "Offer other clinical services (PrEP) Observation": @description: Assessment and provision of vaccinations, such as for people from key populations, pregnant women and infants; and, where appropriate, tetanus vaccination for adolescent boys and men receiving VMMC */ // TODO: Replace placeholder with relevant CQL logic -define "Assessment and provision of vaccinations (PrEP)": - exists "Assessment and provision of vaccinations (PrEP) Condition" - or exists "Assessment and provision of vaccinations (PrEP) Observation" -define "Assessment and provision of vaccinations (PrEP) Condition": +define "Assessment and provision of vaccinations C.DE158": + exists "Assessment and provision of vaccinations C.DE158 Condition" + or exists "Assessment and provision of vaccinations C.DE158 Observation" +define "Assessment and provision of vaccinations C.DE158 Condition": [Condition: Concepts."Assessment and provision of vaccinations - HIV.C.DE158"] -define "Assessment and provision of vaccinations (PrEP) Observation": - "Offer other clinical services (PrEP) Observation" O +define "Assessment and provision of vaccinations C.DE158 Observation": + "Offer other clinical services C.DE157 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Assessment and provision of vaccinations - HIV.C.DE158" -/* End of Assessment and provision of vaccinations (PrEP) */ +/* End of Assessment and provision of vaccinations C.DE158 */ /* @dataElement: HIV.C.DE159 - Hepatitis B virus HBV and hepatitis C virus HCV testing and treatment @@ -4808,16 +4808,16 @@ define "Assessment and provision of vaccinations (PrEP) Observation": @description: Offer or refer for HBV testing and vaccination and HCV testing and treatment */ // TODO: Replace placeholder with relevant CQL logic -define "Hepatitis B virus HBV and hepatitis C virus HCV testing and treatment (PrEP)": - exists "Hepatitis B virus HBV and hepatitis C virus HCV testing and treatment (PrEP) Condition" - or exists "Hepatitis B virus HBV and hepatitis C virus HCV testing and treatment (PrEP) Observation" -define "Hepatitis B virus HBV and hepatitis C virus HCV testing and treatment (PrEP) Condition": +define "Hepatitis B virus HBV and hepatitis C virus HCV testing and treatment": + exists "Hepatitis B virus HBV and hepatitis C virus HCV testing and treatment Condition" + or exists "Hepatitis B virus HBV and hepatitis C virus HCV testing and treatment Observation" +define "Hepatitis B virus HBV and hepatitis C virus HCV testing and treatment Condition": [Condition: Concepts."Hepatitis B virus HBV and hepatitis C virus HCV testing and treatment"] -define "Hepatitis B virus HBV and hepatitis C virus HCV testing and treatment (PrEP) Observation": - "Offer other clinical services (PrEP) Observation" O +define "Hepatitis B virus HBV and hepatitis C virus HCV testing and treatment Observation": + "Offer other clinical services C.DE157 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Hepatitis B virus HBV and hepatitis C virus HCV testing and treatment" -/* End of Hepatitis B virus HBV and hepatitis C virus HCV testing and treatment (PrEP) */ +/* End of Hepatitis B virus HBV and hepatitis C virus HCV testing and treatment */ /* @dataElement: HIV.C.DE160 - Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia @@ -4825,16 +4825,16 @@ define "Hepatitis B virus HBV and hepatitis C virus HCV testing and treatment (P @description: Offer or refer for co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia */ // TODO: Replace placeholder with relevant CQL logic -define "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia (PrEP)": - exists "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia (PrEP) Condition" - or exists "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia (PrEP) Observation" -define "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia (PrEP) Condition": +define "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia C.DE160": + exists "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia C.DE160 Condition" + or exists "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia C.DE160 Observation" +define "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia C.DE160 Condition": [Condition: Concepts."Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia - HIV.C.DE160"] -define "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia (PrEP) Observation": - "Offer other clinical services (PrEP) Observation" O +define "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia C.DE160 Observation": + "Offer other clinical services C.DE157 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia - HIV.C.DE160" -/* End of Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia (PrEP) */ +/* End of Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia C.DE160 */ /* @dataElement: HIV.C.DE161 - Intensified TB case finding and linkage to TB treatment @@ -4842,16 +4842,16 @@ define "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumoni @description: Offer or refer for TB case finding and linkage to TB treatment */ // TODO: Replace placeholder with relevant CQL logic -define "Intensified TB case finding and linkage to TB treatment (PrEP)": - exists "Intensified TB case finding and linkage to TB treatment (PrEP) Condition" - or exists "Intensified TB case finding and linkage to TB treatment (PrEP) Observation" -define "Intensified TB case finding and linkage to TB treatment (PrEP) Condition": +define "Intensified TB case finding and linkage to TB treatment C.DE161": + exists "Intensified TB case finding and linkage to TB treatment C.DE161 Condition" + or exists "Intensified TB case finding and linkage to TB treatment C.DE161 Observation" +define "Intensified TB case finding and linkage to TB treatment C.DE161 Condition": [Condition: Concepts."Intensified TB case finding and linkage to TB treatment - HIV.C.DE161"] -define "Intensified TB case finding and linkage to TB treatment (PrEP) Observation": - "Offer other clinical services (PrEP) Observation" O +define "Intensified TB case finding and linkage to TB treatment C.DE161 Observation": + "Offer other clinical services C.DE157 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Intensified TB case finding and linkage to TB treatment - HIV.C.DE161" -/* End of Intensified TB case finding and linkage to TB treatment (PrEP) */ +/* End of Intensified TB case finding and linkage to TB treatment C.DE161 */ /* @dataElement: HIV.C.DE162 - Provision of isoniazid preventive therapy if person does not have TB @@ -4859,16 +4859,16 @@ define "Intensified TB case finding and linkage to TB treatment (PrEP) Observati @description: Offer or refer for provision of isoniazid preventive therapy if person does not have TB */ // TODO: Replace placeholder with relevant CQL logic -define "Provision of isoniazid preventive therapy if person does not have TB (PrEP)": - exists "Provision of isoniazid preventive therapy if person does not have TB (PrEP) Condition" - or exists "Provision of isoniazid preventive therapy if person does not have TB (PrEP) Observation" -define "Provision of isoniazid preventive therapy if person does not have TB (PrEP) Condition": +define "Provision of isoniazid preventive therapy if person does not have TB C.DE162": + exists "Provision of isoniazid preventive therapy if person does not have TB C.DE162 Condition" + or exists "Provision of isoniazid preventive therapy if person does not have TB C.DE162 Observation" +define "Provision of isoniazid preventive therapy if person does not have TB C.DE162 Condition": [Condition: Concepts."Provision of isoniazid preventive therapy if person does not have TB - HIV.C.DE162"] -define "Provision of isoniazid preventive therapy if person does not have TB (PrEP) Observation": - "Offer other clinical services (PrEP) Observation" O +define "Provision of isoniazid preventive therapy if person does not have TB C.DE162 Observation": + "Offer other clinical services C.DE157 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Provision of isoniazid preventive therapy if person does not have TB - HIV.C.DE162" -/* End of Provision of isoniazid preventive therapy if person does not have TB (PrEP) */ +/* End of Provision of isoniazid preventive therapy if person does not have TB C.DE162 */ /* @dataElement: HIV.C.DE163 - Malaria prevention such as bed nets and prophylaxis, depending on epidemiology @@ -4876,16 +4876,16 @@ define "Provision of isoniazid preventive therapy if person does not have TB (Pr @description: Offer or refer for malaria prevention (such as bed nets and prophylaxis), depending on epidemiology */ // TODO: Replace placeholder with relevant CQL logic -define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (PrEP)": - exists "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (PrEP) Condition" - or exists "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (PrEP) Observation" -define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (PrEP) Condition": +define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology C.DE163": + exists "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology C.DE163 Condition" + or exists "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology C.DE163 Observation" +define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology C.DE163 Condition": [Condition: Concepts."Malaria prevention such as bed nets and prophylaxis, depending on epidemiology - HIV.C.DE163"] -define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (PrEP) Observation": - "Offer other clinical services (PrEP) Observation" O +define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology C.DE163 Observation": + "Offer other clinical services C.DE157 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Malaria prevention such as bed nets and prophylaxis, depending on epidemiology - HIV.C.DE163" -/* End of Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (PrEP) */ +/* End of Malaria prevention such as bed nets and prophylaxis, depending on epidemiology C.DE163 */ /* @dataElement: HIV.C.DE164 - Other support services @@ -4893,12 +4893,12 @@ define "Malaria prevention such as bed nets and prophylaxis, depending on epidem @description: Offer or refer for other support services */ // TODO: Replace placeholder with relevant CQL logic -define "Other support services (PrEP)": - exists "Other support services (PrEP) Observation" -define "Other support services (PrEP) Observation": +define "Other support services C.DE164": + exists "Other support services C.DE164 Observation" +define "Other support services C.DE164 Observation": [Observation: Concepts."Other support services - HIV.C.DE164"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Other support services (PrEP) */ +/* End of Other support services C.DE164 */ /* @dataElement: HIV.C.DE165 - Mental health services @@ -4906,16 +4906,16 @@ define "Other support services (PrEP) Observation": @description: Offer or refer for mental health services */ // TODO: Replace placeholder with relevant CQL logic -define "Mental health services (PrEP)": - exists "Mental health services (PrEP) Condition" - or exists "Mental health services (PrEP) Observation" -define "Mental health services (PrEP) Condition": +define "Mental health services C.DE165": + exists "Mental health services C.DE165 Condition" + or exists "Mental health services C.DE165 Observation" +define "Mental health services C.DE165 Condition": [Condition: Concepts."Mental health services - HIV.C.DE165"] -define "Mental health services (PrEP) Observation": - "Other support services (PrEP) Observation" O +define "Mental health services C.DE165 Observation": + "Other support services C.DE164 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Mental health services - HIV.C.DE165" -/* End of Mental health services (PrEP) */ +/* End of Mental health services C.DE165 */ /* @dataElement: HIV.C.DE166 - Psychosocial counselling, support and treatment adherence counselling @@ -4923,16 +4923,16 @@ define "Mental health services (PrEP) Observation": @description: Offer or refer for psychosocial counselling, support and treatment adherence counselling */ // TODO: Replace placeholder with relevant CQL logic -define "Psychosocial counselling, support and treatment adherence counselling (PrEP)": - exists "Psychosocial counselling, support and treatment adherence counselling (PrEP) Condition" - or exists "Psychosocial counselling, support and treatment adherence counselling (PrEP) Observation" -define "Psychosocial counselling, support and treatment adherence counselling (PrEP) Condition": +define "Psychosocial counselling, support and treatment adherence counselling C.DE166": + exists "Psychosocial counselling, support and treatment adherence counselling C.DE166 Condition" + or exists "Psychosocial counselling, support and treatment adherence counselling C.DE166 Observation" +define "Psychosocial counselling, support and treatment adherence counselling C.DE166 Condition": [Condition: Concepts."Psychosocial counselling, support and treatment adherence counselling - HIV.C.DE166"] -define "Psychosocial counselling, support and treatment adherence counselling (PrEP) Observation": - "Other support services (PrEP) Observation" O +define "Psychosocial counselling, support and treatment adherence counselling C.DE166 Observation": + "Other support services C.DE164 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Psychosocial counselling, support and treatment adherence counselling - HIV.C.DE166" -/* End of Psychosocial counselling, support and treatment adherence counselling (PrEP) */ +/* End of Psychosocial counselling, support and treatment adherence counselling C.DE166 */ /* @dataElement: HIV.C.DE167 - Support for disclosure and partner services @@ -4940,16 +4940,16 @@ define "Psychosocial counselling, support and treatment adherence counselling (P @description: Offer or refer for support for disclosure and partner services */ // TODO: Replace placeholder with relevant CQL logic -define "Support for disclosure and partner services (PrEP)": - exists "Support for disclosure and partner services (PrEP) Condition" - or exists "Support for disclosure and partner services (PrEP) Observation" -define "Support for disclosure and partner services (PrEP) Condition": +define "Support for disclosure and partner services C.DE167": + exists "Support for disclosure and partner services C.DE167 Condition" + or exists "Support for disclosure and partner services C.DE167 Observation" +define "Support for disclosure and partner services C.DE167 Condition": [Condition: Concepts."Support for disclosure and partner services - HIV.C.DE167"] -define "Support for disclosure and partner services (PrEP) Observation": - "Other support services (PrEP) Observation" O +define "Support for disclosure and partner services C.DE167 Observation": + "Other support services C.DE164 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Support for disclosure and partner services - HIV.C.DE167" -/* End of Support for disclosure and partner services (PrEP) */ +/* End of Support for disclosure and partner services C.DE167 */ /* @dataElement: HIV.C.DE168 - Legal and social services @@ -4957,16 +4957,16 @@ define "Support for disclosure and partner services (PrEP) Observation": @description: Offer or refer for legal and social services */ // TODO: Replace placeholder with relevant CQL logic -define "Legal and social services (PrEP)": - exists "Legal and social services (PrEP) Condition" - or exists "Legal and social services (PrEP) Observation" -define "Legal and social services (PrEP) Condition": +define "Legal and social services C.DE168": + exists "Legal and social services C.DE168 Condition" + or exists "Legal and social services C.DE168 Observation" +define "Legal and social services C.DE168 Condition": [Condition: Concepts."Legal and social services - HIV.C.DE168"] -define "Legal and social services (PrEP) Observation": - "Other support services (PrEP) Observation" O +define "Legal and social services C.DE168 Observation": + "Other support services C.DE164 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Legal and social services - HIV.C.DE168" -/* End of Legal and social services (PrEP) */ +/* End of Legal and social services C.DE168 */ /* @dataElement: HIV.C.DE169 - Services for responding to violence against women @@ -4974,16 +4974,16 @@ define "Legal and social services (PrEP) Observation": @description: Offer or refer for services for responding to violence against women, including first-line support and psychosocial support, post-rape care and other support services including shelters, legal services and women and child protection services */ // TODO: Replace placeholder with relevant CQL logic -define "Services for responding to violence against women (PrEP)": - exists "Services for responding to violence against women (PrEP) Condition" - or exists "Services for responding to violence against women (PrEP) Observation" -define "Services for responding to violence against women (PrEP) Condition": +define "Services for responding to violence against women C.DE169": + exists "Services for responding to violence against women C.DE169 Condition" + or exists "Services for responding to violence against women C.DE169 Observation" +define "Services for responding to violence against women C.DE169 Condition": [Condition: Concepts."Services for responding to violence against women - HIV.C.DE169"] -define "Services for responding to violence against women (PrEP) Observation": - "Other support services (PrEP) Observation" O +define "Services for responding to violence against women C.DE169 Observation": + "Other support services C.DE164 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Services for responding to violence against women - HIV.C.DE169" -/* End of Services for responding to violence against women (PrEP) */ +/* End of Services for responding to violence against women C.DE169 */ /* @dataElement: HIV.D.DE1 - Reason for visit @@ -4991,12 +4991,12 @@ define "Services for responding to violence against women (PrEP) Observation": @description: Whether visit was scheduled or unscheduled, clinical only, or for ARV drug pick-up */ // TODO: Replace placeholder with relevant CQL logic -define "Reason for visit (Care)": - exists "Reason for visit (Care) Observation" -define "Reason for visit (Care) Observation": +define "Reason for visit D.DE1": + exists "Reason for visit D.DE1 Observation" +define "Reason for visit D.DE1 Observation": [Observation: Concepts."Reason for visit - HIV.D.DE1"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Reason for visit (Care) */ +/* End of Reason for visit D.DE1 */ /* @dataElement: HIV.D.DE2 - First clinical visit @@ -5004,16 +5004,16 @@ define "Reason for visit (Care) Observation": @description: The client's first appointment for clinical care by a provider at the facility */ // TODO: Replace placeholder with relevant CQL logic -define "First clinical visit (Care)": - exists "First clinical visit (Care) Condition" - or exists "First clinical visit (Care) Observation" -define "First clinical visit (Care) Condition": +define "First clinical visit": + exists "First clinical visit Condition" + or exists "First clinical visit Observation" +define "First clinical visit Condition": [Condition: Concepts."First clinical visit"] -define "First clinical visit (Care) Observation": - "Reason for visit (Care) Observation" O +define "First clinical visit Observation": + "Reason for visit D.DE1 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."First clinical visit" -/* End of First clinical visit (Care) */ +/* End of First clinical visit */ /* @dataElement: HIV.D.DE3 - Clinical visit @@ -5021,16 +5021,16 @@ define "First clinical visit (Care) Observation": @description: Appointment for clinical care by a provider */ // TODO: Replace placeholder with relevant CQL logic -define "Clinical visit (Care|DDE3)": - exists "Clinical visit (Care|DDE3) Condition" - or exists "Clinical visit (Care|DDE3) Observation" -define "Clinical visit (Care|DDE3) Condition": +define "Clinical visit D.DE3": + exists "Clinical visit D.DE3 Condition" + or exists "Clinical visit D.DE3 Observation" +define "Clinical visit D.DE3 Condition": [Condition: Concepts."Clinical visit - HIV.D.DE3"] -define "Clinical visit (Care|DDE3) Observation": - "Reason for visit (Care) Observation" O +define "Clinical visit D.DE3 Observation": + "Reason for visit D.DE1 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Clinical visit - HIV.D.DE3" -/* End of Clinical visit (Care|DDE3) */ +/* End of Clinical visit D.DE3 */ /* @dataElement: HIV.D.DE4 - ART initiation @@ -5038,16 +5038,16 @@ define "Clinical visit (Care|DDE3) Observation": @description: Appointment for initiation of ART */ // TODO: Replace placeholder with relevant CQL logic -define "ART initiation (Care)": - exists "ART initiation (Care) Condition" - or exists "ART initiation (Care) Observation" -define "ART initiation (Care) Condition": +define "ART initiation": + exists "ART initiation Condition" + or exists "ART initiation Observation" +define "ART initiation Condition": [Condition: Concepts."ART initiation"] -define "ART initiation (Care) Observation": - "Reason for visit (Care) Observation" O +define "ART initiation Observation": + "Reason for visit D.DE1 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."ART initiation" -/* End of ART initiation (Care) */ +/* End of ART initiation */ /* @dataElement: HIV.D.DE5 - ART drug pick up @@ -5055,16 +5055,16 @@ define "ART initiation (Care) Observation": @description: Appointment for an antiretroviral drug pick up */ // TODO: Replace placeholder with relevant CQL logic -define "ART drug pick up (Care)": - exists "ART drug pick up (Care) Condition" - or exists "ART drug pick up (Care) Observation" -define "ART drug pick up (Care) Condition": +define "ART drug pick up": + exists "ART drug pick up Condition" + or exists "ART drug pick up Observation" +define "ART drug pick up Condition": [Condition: Concepts."ART drug pick up"] -define "ART drug pick up (Care) Observation": - "Reason for visit (Care) Observation" O +define "ART drug pick up Observation": + "Reason for visit D.DE1 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."ART drug pick up" -/* End of ART drug pick up (Care) */ +/* End of ART drug pick up */ /* @dataElement: HIV.D.DE6 - Issues and concerns @@ -5072,16 +5072,16 @@ define "ART drug pick up (Care) Observation": @description: Visit to address issues and concerns */ // TODO: Replace placeholder with relevant CQL logic -define "Issues and concerns (Care)": - exists "Issues and concerns (Care) Condition" - or exists "Issues and concerns (Care) Observation" -define "Issues and concerns (Care) Condition": +define "Issues and concerns": + exists "Issues and concerns Condition" + or exists "Issues and concerns Observation" +define "Issues and concerns Condition": [Condition: Concepts."Issues and concerns"] -define "Issues and concerns (Care) Observation": - "Reason for visit (Care) Observation" O +define "Issues and concerns Observation": + "Reason for visit D.DE1 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Issues and concerns" -/* End of Issues and concerns (Care) */ +/* End of Issues and concerns */ /* @dataElement: HIV.D.DE7 - Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer @@ -5089,16 +5089,16 @@ define "Issues and concerns (Care) Observation": @description: Appointment for a post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer */ // TODO: Replace placeholder with relevant CQL logic -define "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer (Care|DDE7)": - exists "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer (Care|DDE7) Condition" - or exists "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer (Care|DDE7) Observation" -define "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer (Care|DDE7) Condition": +define "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer D.DE7": + exists "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer D.DE7 Condition" + or exists "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer D.DE7 Observation" +define "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer D.DE7 Condition": [Condition: Concepts."Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer - HIV.D.DE7"] -define "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer (Care|DDE7) Observation": - "Reason for visit (Care) Observation" O +define "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer D.DE7 Observation": + "Reason for visit D.DE1 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer - HIV.D.DE7" -/* End of Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer (Care|DDE7) */ +/* End of Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer D.DE7 */ /* @dataElement: HIV.D.DE9 - Body temperature @@ -5106,13 +5106,13 @@ define "Post-treatment follow-up visit for cervical precancer lesions or invasiv @description: Temperature of the client in Celsius */ // TODO: Replace placeholder with relevant CQL logic -define "Body temperature (Care)": +define "Body temperature": [Observation: Concepts."Body temperature"] O where O.status in { 'final', 'amended', 'corrected' } -define "Body temperature (Care) Value": - "Body temperature (Care)" O +define "Body temperature Value": + "Body temperature" O return O.value -/* End of Body temperature (Care) */ +/* End of Body temperature */ /* @dataElement: HIV.D.DE13 - Body weight @@ -5120,13 +5120,13 @@ define "Body temperature (Care) Value": @description: The client's current weight in kilograms */ // TODO: Replace placeholder with relevant CQL logic -define "Body weight (Care)": +define "Body weight": [Observation: Concepts."Body weight"] O where O.status in { 'final', 'amended', 'corrected' } -define "Body weight (Care) Value": - "Body weight (Care)" O +define "Body weight Value": + "Body weight" O return O.value -/* End of Body weight (Care) */ +/* End of Body weight */ /* @dataElement: HIV.D.DE17 - Signs of serious illness @@ -5134,12 +5134,12 @@ define "Body weight (Care) Value": @description: Signs that may indicate the client has a serious illness and needs triage or an emergency referral */ // TODO: Replace placeholder with relevant CQL logic -define "Signs of serious illness (Care)": - exists "Signs of serious illness (Care) Observation" -define "Signs of serious illness (Care) Observation": +define "Signs of serious illness": + exists "Signs of serious illness Observation" +define "Signs of serious illness Observation": [Observation: Concepts."Signs of serious illness"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Signs of serious illness (Care) */ +/* End of Signs of serious illness */ /* @dataElement: HIV.D.DE18 - Fever of 39 C or greater @@ -5147,16 +5147,16 @@ define "Signs of serious illness (Care) Observation": @description: Client has a fever with a measured temperature of 102.2 F/39 C or greater */ // TODO: Replace placeholder with relevant CQL logic -define "Fever of 39 C or greater (Care)": - exists "Fever of 39 C or greater (Care) Condition" - or exists "Fever of 39 C or greater (Care) Observation" -define "Fever of 39 C or greater (Care) Condition": +define "Fever of 39 C or greater": + exists "Fever of 39 C or greater Condition" + or exists "Fever of 39 C or greater Observation" +define "Fever of 39 C or greater Condition": [Condition: Concepts."Fever of 39 C or greater"] -define "Fever of 39 C or greater (Care) Observation": - "Signs of serious illness (Care) Observation" O +define "Fever of 39 C or greater Observation": + "Signs of serious illness Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Fever of 39 C or greater" -/* End of Fever of 39 C or greater (Care) */ +/* End of Fever of 39 C or greater */ /* @dataElement: HIV.D.DE19 - Tachycardia @@ -5164,16 +5164,16 @@ define "Fever of 39 C or greater (Care) Observation": @description: Heart rate above a rate per minute based on age */ // TODO: Replace placeholder with relevant CQL logic -define "Tachycardia (Care)": - exists "Tachycardia (Care) Condition" - or exists "Tachycardia (Care) Observation" -define "Tachycardia (Care) Condition": +define "Tachycardia": + exists "Tachycardia Condition" + or exists "Tachycardia Observation" +define "Tachycardia Condition": [Condition: Concepts."Tachycardia"] -define "Tachycardia (Care) Observation": - "Signs of serious illness (Care) Observation" O +define "Tachycardia Observation": + "Signs of serious illness Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Tachycardia" -/* End of Tachycardia (Care) */ +/* End of Tachycardia */ /* @dataElement: HIV.D.DE20 - Tachypnea @@ -5181,16 +5181,16 @@ define "Tachycardia (Care) Observation": @description: Respiratory rate above a number of breaths per minute based on age */ // TODO: Replace placeholder with relevant CQL logic -define "Tachypnea (Care)": - exists "Tachypnea (Care) Condition" - or exists "Tachypnea (Care) Observation" -define "Tachypnea (Care) Condition": +define "Tachypnea": + exists "Tachypnea Condition" + or exists "Tachypnea Observation" +define "Tachypnea Condition": [Condition: Concepts."Tachypnea"] -define "Tachypnea (Care) Observation": - "Signs of serious illness (Care) Observation" O +define "Tachypnea Observation": + "Signs of serious illness Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Tachypnea" -/* End of Tachypnea (Care) */ +/* End of Tachypnea */ /* @dataElement: HIV.D.DE21 - Unable to walk unaided @@ -5198,16 +5198,16 @@ define "Tachypnea (Care) Observation": @description: Client is not able to walk without help */ // TODO: Replace placeholder with relevant CQL logic -define "Unable to walk unaided (Care)": - exists "Unable to walk unaided (Care) Condition" - or exists "Unable to walk unaided (Care) Observation" -define "Unable to walk unaided (Care) Condition": +define "Unable to walk unaided": + exists "Unable to walk unaided Condition" + or exists "Unable to walk unaided Observation" +define "Unable to walk unaided Condition": [Condition: Concepts."Unable to walk unaided"] -define "Unable to walk unaided (Care) Observation": - "Signs of serious illness (Care) Observation" O +define "Unable to walk unaided Observation": + "Signs of serious illness Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Unable to walk unaided" -/* End of Unable to walk unaided (Care) */ +/* End of Unable to walk unaided */ /* @dataElement: HIV.D.DE22 - Lethargy @@ -5215,16 +5215,16 @@ define "Unable to walk unaided (Care) Observation": @description: Client is exhibiting lethargy as a sign of serious illness */ // TODO: Replace placeholder with relevant CQL logic -define "Lethargy (Care)": - exists "Lethargy (Care) Condition" - or exists "Lethargy (Care) Observation" -define "Lethargy (Care) Condition": +define "Lethargy D.DE22": + exists "Lethargy D.DE22 Condition" + or exists "Lethargy D.DE22 Observation" +define "Lethargy D.DE22 Condition": [Condition: Concepts."Lethargy - HIV.D.DE22"] -define "Lethargy (Care) Observation": - "Signs of serious illness (Care) Observation" O +define "Lethargy D.DE22 Observation": + "Signs of serious illness Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Lethargy - HIV.D.DE22" -/* End of Lethargy (Care) */ +/* End of Lethargy D.DE22 */ /* @dataElement: HIV.D.DE23 - Unconsciousness @@ -5232,16 +5232,16 @@ define "Lethargy (Care) Observation": @description: Client is currently unconscious */ // TODO: Replace placeholder with relevant CQL logic -define "Unconsciousness (Care)": - exists "Unconsciousness (Care) Condition" - or exists "Unconsciousness (Care) Observation" -define "Unconsciousness (Care) Condition": +define "Unconsciousness": + exists "Unconsciousness Condition" + or exists "Unconsciousness Observation" +define "Unconsciousness Condition": [Condition: Concepts."Unconsciousness"] -define "Unconsciousness (Care) Observation": - "Signs of serious illness (Care) Observation" O +define "Unconsciousness Observation": + "Signs of serious illness Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Unconsciousness" -/* End of Unconsciousness (Care) */ +/* End of Unconsciousness */ /* @dataElement: HIV.D.DE24 - Convulsions @@ -5249,16 +5249,16 @@ define "Unconsciousness (Care) Observation": @description: Client is convulsing */ // TODO: Replace placeholder with relevant CQL logic -define "Convulsions (Care)": - exists "Convulsions (Care) Condition" - or exists "Convulsions (Care) Observation" -define "Convulsions (Care) Condition": +define "Convulsions": + exists "Convulsions Condition" + or exists "Convulsions Observation" +define "Convulsions Condition": [Condition: Concepts."Convulsions"] -define "Convulsions (Care) Observation": - "Signs of serious illness (Care) Observation" O +define "Convulsions Observation": + "Signs of serious illness Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Convulsions" -/* End of Convulsions (Care) */ +/* End of Convulsions */ /* @dataElement: HIV.D.DE25 - Unable to drink @@ -5266,16 +5266,16 @@ define "Convulsions (Care) Observation": @description: Child is not able to drink */ // TODO: Replace placeholder with relevant CQL logic -define "Unable to drink (Care)": - exists "Unable to drink (Care) Condition" - or exists "Unable to drink (Care) Observation" -define "Unable to drink (Care) Condition": +define "Unable to drink": + exists "Unable to drink Condition" + or exists "Unable to drink Observation" +define "Unable to drink Condition": [Condition: Concepts."Unable to drink"] -define "Unable to drink (Care) Observation": - "Signs of serious illness (Care) Observation" O +define "Unable to drink Observation": + "Signs of serious illness Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Unable to drink" -/* End of Unable to drink (Care) */ +/* End of Unable to drink */ /* @dataElement: HIV.D.DE26 - Unable to breastfeed @@ -5283,16 +5283,16 @@ define "Unable to drink (Care) Observation": @description: Infant or child is not able to breastfeed */ // TODO: Replace placeholder with relevant CQL logic -define "Unable to breastfeed (Care)": - exists "Unable to breastfeed (Care) Condition" - or exists "Unable to breastfeed (Care) Observation" -define "Unable to breastfeed (Care) Condition": +define "Unable to breastfeed": + exists "Unable to breastfeed Condition" + or exists "Unable to breastfeed Observation" +define "Unable to breastfeed Condition": [Condition: Concepts."Unable to breastfeed"] -define "Unable to breastfeed (Care) Observation": - "Signs of serious illness (Care) Observation" O +define "Unable to breastfeed Observation": + "Signs of serious illness Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Unable to breastfeed" -/* End of Unable to breastfeed (Care) */ +/* End of Unable to breastfeed */ /* @dataElement: HIV.D.DE27 - Repeated vomiting @@ -5300,16 +5300,16 @@ define "Unable to breastfeed (Care) Observation": @description: Client is repeatedly vomiting */ // TODO: Replace placeholder with relevant CQL logic -define "Repeated vomiting (Care)": - exists "Repeated vomiting (Care) Condition" - or exists "Repeated vomiting (Care) Observation" -define "Repeated vomiting (Care) Condition": +define "Repeated vomiting": + exists "Repeated vomiting Condition" + or exists "Repeated vomiting Observation" +define "Repeated vomiting Condition": [Condition: Concepts."Repeated vomiting"] -define "Repeated vomiting (Care) Observation": - "Signs of serious illness (Care) Observation" O +define "Repeated vomiting Observation": + "Signs of serious illness Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Repeated vomiting" -/* End of Repeated vomiting (Care) */ +/* End of Repeated vomiting */ /* @dataElement: HIV.D.DE28 - Headache @@ -5317,16 +5317,16 @@ define "Repeated vomiting (Care) Observation": @description: Client is exhibiting a headache */ // TODO: Replace placeholder with relevant CQL logic -define "Headache (Care|DDE28)": - exists "Headache (Care|DDE28) Condition" - or exists "Headache (Care|DDE28) Observation" -define "Headache (Care|DDE28) Condition": +define "Headache D.DE28": + exists "Headache D.DE28 Condition" + or exists "Headache D.DE28 Observation" +define "Headache D.DE28 Condition": [Condition: Concepts."Headache - HIV.D.DE28"] -define "Headache (Care|DDE28) Observation": - "Signs of serious illness (Care) Observation" O +define "Headache D.DE28 Observation": + "Signs of serious illness Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Headache - HIV.D.DE28" -/* End of Headache (Care|DDE28) */ +/* End of Headache D.DE28 */ /* @dataElement: HIV.D.DE29 - Other sign of serious illness @@ -5334,16 +5334,16 @@ define "Headache (Care|DDE28) Observation": @description: Client is exhibiting another sign of a serious illness */ // TODO: Replace placeholder with relevant CQL logic -define "Other sign of serious illness (Care)": - exists "Other sign of serious illness (Care) Condition" - or exists "Other sign of serious illness (Care) Observation" -define "Other sign of serious illness (Care) Condition": +define "Other sign of serious illness": + exists "Other sign of serious illness Condition" + or exists "Other sign of serious illness Observation" +define "Other sign of serious illness Condition": [Condition: Concepts."Other sign of serious illness"] -define "Other sign of serious illness (Care) Observation": - "Signs of serious illness (Care) Observation" O +define "Other sign of serious illness Observation": + "Signs of serious illness Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Other sign of serious illness" -/* End of Other sign of serious illness (Care) */ +/* End of Other sign of serious illness */ /* @dataElement: HIV.D.DE31 - Currently pregnant @@ -5351,13 +5351,13 @@ define "Other sign of serious illness (Care) Observation": @description: Client is currently pregnant */ // TODO: Replace placeholder with relevant CQL logic -define "Currently pregnant (Care)": - exists "Currently pregnant (Care) Observation" -define "Currently pregnant (Care) Observation": +define "Currently pregnant D.DE31": + exists "Currently pregnant D.DE31 Observation" +define "Currently pregnant D.DE31 Observation": [Observation: Concepts."Currently pregnant - HIV.D.DE31"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Currently pregnant (Care) */ +/* End of Currently pregnant D.DE31 */ /* @dataElement: HIV.D.DE32 - Breastfeeding @@ -5365,13 +5365,13 @@ define "Currently pregnant (Care) Observation": @description: Client is giving infant breast milk */ // TODO: Replace placeholder with relevant CQL logic -define "Breastfeeding (Care)": - exists "Breastfeeding (Care) Observation" -define "Breastfeeding (Care) Observation": +define "Breastfeeding D.DE32": + exists "Breastfeeding D.DE32 Observation" +define "Breastfeeding D.DE32 Observation": [Observation: Concepts."Breastfeeding - HIV.D.DE32"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Breastfeeding (Care) */ +/* End of Breastfeeding D.DE32 */ /* @dataElement: HIV.D.DE37 - Serodiscordant partner @@ -5379,13 +5379,13 @@ define "Breastfeeding (Care) Observation": @description: Client's HIV status is different from a current partner's HIV status */ // TODO: Replace placeholder with relevant CQL logic -define "Serodiscordant partner (Care)": - exists "Serodiscordant partner (Care) Observation" -define "Serodiscordant partner (Care) Observation": +define "Serodiscordant partner D.DE37": + exists "Serodiscordant partner D.DE37 Observation" +define "Serodiscordant partner D.DE37 Observation": [Observation: Concepts."Serodiscordant partner - HIV.D.DE37"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Serodiscordant partner (Care) */ +/* End of Serodiscordant partner D.DE37 */ /* @dataElement: HIV.D.DE38 - On ART @@ -5393,13 +5393,13 @@ define "Serodiscordant partner (Care) Observation": @description: Client is currently taking ART */ // TODO: Replace placeholder with relevant CQL logic -define "On ART (Care)": - exists "On ART (Care) Observation" -define "On ART (Care) Observation": +define "On ART D.DE38": + exists "On ART D.DE38 Observation" +define "On ART D.DE38 Observation": [Observation: Concepts."On ART - HIV.D.DE38"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of On ART (Care) */ +/* End of On ART D.DE38 */ /* @dataElement: HIV.D.DE39 - ART start date @@ -5407,13 +5407,13 @@ define "On ART (Care) Observation": @description: The date on which the client started or restarted ART */ // TODO: Replace placeholder with relevant CQL logic -define "ART start date (Care)": +define "ART start date D.DE39": [Observation: Concepts."ART start date - HIV.D.DE39"] O where O.status in { 'final', 'amended', 'corrected' } -define "ART start date (Care) Value": - "ART start date (Care)" O +define "ART start date D.DE39 Value": + "ART start date D.DE39" O return O.value -/* End of ART start date (Care) */ +/* End of ART start date D.DE39 */ /* @dataElement: HIV.D.DE41 - Date ART stopped @@ -5421,13 +5421,13 @@ define "ART start date (Care) Value": @description: Date on which client stopped ART */ // TODO: Replace placeholder with relevant CQL logic -define "Date ART stopped (Care)": +define "Date ART stopped D.DE41": [Observation: Concepts."Date ART stopped - HIV.D.DE41"] O where O.status in { 'final', 'amended', 'corrected' } -define "Date ART stopped (Care) Value": - "Date ART stopped (Care)" O +define "Date ART stopped D.DE41 Value": + "Date ART stopped D.DE41" O return O.value -/* End of Date ART stopped (Care) */ +/* End of Date ART stopped D.DE41 */ /* @dataElement: HIV.D.DE42 - Established on ART @@ -5435,13 +5435,13 @@ define "Date ART stopped (Care) Value": @description: Is the client successfully established on ART? */ // TODO: Replace placeholder with relevant CQL logic -define "Established on ART (Care)": - exists "Established on ART (Care) Observation" -define "Established on ART (Care) Observation": +define "Established on ART": + exists "Established on ART Observation" +define "Established on ART Observation": [Observation: Concepts."Established on ART"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Established on ART (Care) */ +/* End of Established on ART */ /* @dataElement: HIV.D.DE43 - ART start type @@ -5449,12 +5449,12 @@ define "Established on ART (Care) Observation": @description: Whether the client is ART naive or is restarting ART */ // TODO: Replace placeholder with relevant CQL logic -define "ART start type (Care)": - exists "ART start type (Care) Observation" -define "ART start type (Care) Observation": +define "ART start type": + exists "ART start type Observation" +define "ART start type Observation": [Observation: Concepts."ART start type"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of ART start type (Care) */ +/* End of ART start type */ /* @dataElement: HIV.D.DE44 - First-time user of ART @@ -5462,16 +5462,16 @@ define "ART start type (Care) Observation": @description: Client is ART naive, having never taken ART to treat HIV before */ // TODO: Replace placeholder with relevant CQL logic -define "First-time user of ART (Care)": - exists "First-time user of ART (Care) Condition" - or exists "First-time user of ART (Care) Observation" -define "First-time user of ART (Care) Condition": +define "First-time user of ART": + exists "First-time user of ART Condition" + or exists "First-time user of ART Observation" +define "First-time user of ART Condition": [Condition: Concepts."First-time user of ART"] -define "First-time user of ART (Care) Observation": - "ART start type (Care) Observation" O +define "First-time user of ART Observation": + "ART start type Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."First-time user of ART" -/* End of First-time user of ART (Care) */ +/* End of First-time user of ART */ /* @dataElement: HIV.D.DE45 - Restarting ART @@ -5479,16 +5479,16 @@ define "First-time user of ART (Care) Observation": @description: Client is restarting ART after stopping treatment for any reason */ // TODO: Replace placeholder with relevant CQL logic -define "Restarting ART (Care)": - exists "Restarting ART (Care) Condition" - or exists "Restarting ART (Care) Observation" -define "Restarting ART (Care) Condition": +define "Restarting ART": + exists "Restarting ART Condition" + or exists "Restarting ART Observation" +define "Restarting ART Condition": [Condition: Concepts."Restarting ART"] -define "Restarting ART (Care) Observation": - "ART start type (Care) Observation" O +define "Restarting ART Observation": + "ART start type Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Restarting ART" -/* End of Restarting ART (Care) */ +/* End of Restarting ART */ /* @dataElement: HIV.D.DE75 - Current ART regimen @@ -5496,12 +5496,12 @@ define "Restarting ART (Care) Observation": @description: The current ART regimen the client is taking */ // TODO: Replace placeholder with relevant CQL logic -define "Current ART regimen (Care)": - exists "Current ART regimen (Care) Observation" -define "Current ART regimen (Care) Observation": +define "Current ART regimen": + exists "Current ART regimen Observation" +define "Current ART regimen Observation": [Observation: Concepts."Current ART regimen"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Current ART regimen (Care) */ +/* End of Current ART regimen */ /* @dataElement: HIV.D.DE77 - Preferred first-line ART regimen @@ -5509,12 +5509,12 @@ define "Current ART regimen (Care) Observation": @description: The preferred first-line ART regimen for the client according to WHO (or national) guidelines */ // TODO: Replace placeholder with relevant CQL logic -define "Preferred first-line ART regimen (Care)": - exists "Preferred first-line ART regimen (Care) Observation" -define "Preferred first-line ART regimen (Care) Observation": +define "Preferred first-line ART regimen": + exists "Preferred first-line ART regimen Observation" +define "Preferred first-line ART regimen Observation": [Observation: Concepts."Preferred first-line ART regimen"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Preferred first-line ART regimen (Care) */ +/* End of Preferred first-line ART regimen */ /* @dataElement: HIV.D.DE78 - Alternative first-line ART regimen @@ -5522,12 +5522,12 @@ define "Preferred first-line ART regimen (Care) Observation": @description: The alternative first-line ART regimen for the client according to WHO (or national) guidelines */ // TODO: Replace placeholder with relevant CQL logic -define "Alternative first-line ART regimen (Care)": - exists "Alternative first-line ART regimen (Care) Observation" -define "Alternative first-line ART regimen (Care) Observation": +define "Alternative first-line ART regimen": + exists "Alternative first-line ART regimen Observation" +define "Alternative first-line ART regimen Observation": [Observation: Concepts."Alternative first-line ART regimen"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Alternative first-line ART regimen (Care) */ +/* End of Alternative first-line ART regimen */ /* @dataElement: HIV.D.DE79 - First-line ART regimen under special circumstances @@ -5535,12 +5535,12 @@ define "Alternative first-line ART regimen (Care) Observation": @description: The first-line ART regimen for the client under special circumstances according to WHO (or national) guidelines */ // TODO: Replace placeholder with relevant CQL logic -define "First-line ART regimen under special circumstances (Care)": - exists "First-line ART regimen under special circumstances (Care) Observation" -define "First-line ART regimen under special circumstances (Care) Observation": +define "First-line ART regimen under special circumstances": + exists "First-line ART regimen under special circumstances Observation" +define "First-line ART regimen under special circumstances Observation": [Observation: Concepts."First-line ART regimen under special circumstances"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of First-line ART regimen under special circumstances (Care) */ +/* End of First-line ART regimen under special circumstances */ /* @dataElement: HIV.D.DE80 - Preferred second-line ART regimen @@ -5548,12 +5548,12 @@ define "First-line ART regimen under special circumstances (Care) Observation": @description: The preferred second-line ART regimen for the client according to WHO (or national) guidelines */ // TODO: Replace placeholder with relevant CQL logic -define "Preferred second-line ART regimen (Care)": - exists "Preferred second-line ART regimen (Care) Observation" -define "Preferred second-line ART regimen (Care) Observation": +define "Preferred second-line ART regimen": + exists "Preferred second-line ART regimen Observation" +define "Preferred second-line ART regimen Observation": [Observation: Concepts."Preferred second-line ART regimen"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Preferred second-line ART regimen (Care) */ +/* End of Preferred second-line ART regimen */ /* @dataElement: HIV.D.DE81 - Alternative second-line ART regimen @@ -5561,12 +5561,12 @@ define "Preferred second-line ART regimen (Care) Observation": @description: The alternative second-line ART regimen for the client according to WHO (or national) guidelines */ // TODO: Replace placeholder with relevant CQL logic -define "Alternative second-line ART regimen (Care)": - exists "Alternative second-line ART regimen (Care) Observation" -define "Alternative second-line ART regimen (Care) Observation": +define "Alternative second-line ART regimen": + exists "Alternative second-line ART regimen Observation" +define "Alternative second-line ART regimen Observation": [Observation: Concepts."Alternative second-line ART regimen"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Alternative second-line ART regimen (Care) */ +/* End of Alternative second-line ART regimen */ /* @dataElement: HIV.D.DE82 - Optimal regimen for transition @@ -5574,12 +5574,12 @@ define "Alternative second-line ART regimen (Care) Observation": @description: The optimal regimen for transition to DTG-based regimens for children established on ART */ // TODO: Replace placeholder with relevant CQL logic -define "Optimal regimen for transition (Care)": - exists "Optimal regimen for transition (Care) Observation" -define "Optimal regimen for transition (Care) Observation": +define "Optimal regimen for transition": + exists "Optimal regimen for transition Observation" +define "Optimal regimen for transition Observation": [Observation: Concepts."Optimal regimen for transition"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Optimal regimen for transition (Care) */ +/* End of Optimal regimen for transition */ /* @dataElement: HIV.D.DE83 - Current ART regimen first-, second-, or third-line @@ -5587,12 +5587,12 @@ define "Optimal regimen for transition (Care) Observation": @description: ART regimen for treating clients living with HIV, based on national guidance */ // TODO: Replace placeholder with relevant CQL logic -define "Current ART regimen first-, second-, or third-line (Care)": - exists "Current ART regimen first-, second-, or third-line (Care) Observation" -define "Current ART regimen first-, second-, or third-line (Care) Observation": +define "Current ART regimen first-, second-, or third-line": + exists "Current ART regimen first-, second-, or third-line Observation" +define "Current ART regimen first-, second-, or third-line Observation": [Observation: Concepts."Current ART regimen first-, second-, or third-line"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Current ART regimen first-, second-, or third-line (Care) */ +/* End of Current ART regimen first-, second-, or third-line */ /* @dataElement: HIV.D.DE84 - First-line ART regimen for adults and adolescents @@ -5600,16 +5600,16 @@ define "Current ART regimen first-, second-, or third-line (Care) Observation": @description: First-line ART regimen for adults and adolescents living with HIV */ // TODO: Replace placeholder with relevant CQL logic -define "First-line ART regimen for adults and adolescents (Care)": - exists "First-line ART regimen for adults and adolescents (Care) Condition" - or exists "First-line ART regimen for adults and adolescents (Care) Observation" -define "First-line ART regimen for adults and adolescents (Care) Condition": +define "First-line ART regimen for adults and adolescents": + exists "First-line ART regimen for adults and adolescents Condition" + or exists "First-line ART regimen for adults and adolescents Observation" +define "First-line ART regimen for adults and adolescents Condition": [Condition: Concepts."First-line ART regimen for adults and adolescents"] -define "First-line ART regimen for adults and adolescents (Care) Observation": - "Current ART regimen first-, second-, or third-line (Care) Observation" O +define "First-line ART regimen for adults and adolescents Observation": + "Current ART regimen first-, second-, or third-line Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."First-line ART regimen for adults and adolescents" -/* End of First-line ART regimen for adults and adolescents (Care) */ +/* End of First-line ART regimen for adults and adolescents */ /* @dataElement: HIV.D.DE85 - First-line ART regimen for children @@ -5617,16 +5617,16 @@ define "First-line ART regimen for adults and adolescents (Care) Observation": @description: First-line ART regimen for children living with HIV */ // TODO: Replace placeholder with relevant CQL logic -define "First-line ART regimen for children (Care)": - exists "First-line ART regimen for children (Care) Condition" - or exists "First-line ART regimen for children (Care) Observation" -define "First-line ART regimen for children (Care) Condition": +define "First-line ART regimen for children": + exists "First-line ART regimen for children Condition" + or exists "First-line ART regimen for children Observation" +define "First-line ART regimen for children Condition": [Condition: Concepts."First-line ART regimen for children"] -define "First-line ART regimen for children (Care) Observation": - "Current ART regimen first-, second-, or third-line (Care) Observation" O +define "First-line ART regimen for children Observation": + "Current ART regimen first-, second-, or third-line Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."First-line ART regimen for children" -/* End of First-line ART regimen for children (Care) */ +/* End of First-line ART regimen for children */ /* @dataElement: HIV.D.DE86 - First-line ART regimen for neonates @@ -5634,16 +5634,16 @@ define "First-line ART regimen for children (Care) Observation": @description: First-line ART regimen for neonates living with HIV */ // TODO: Replace placeholder with relevant CQL logic -define "First-line ART regimen for neonates (Care)": - exists "First-line ART regimen for neonates (Care) Condition" - or exists "First-line ART regimen for neonates (Care) Observation" -define "First-line ART regimen for neonates (Care) Condition": +define "First-line ART regimen for neonates": + exists "First-line ART regimen for neonates Condition" + or exists "First-line ART regimen for neonates Observation" +define "First-line ART regimen for neonates Condition": [Condition: Concepts."First-line ART regimen for neonates"] -define "First-line ART regimen for neonates (Care) Observation": - "Current ART regimen first-, second-, or third-line (Care) Observation" O +define "First-line ART regimen for neonates Observation": + "Current ART regimen first-, second-, or third-line Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."First-line ART regimen for neonates" -/* End of First-line ART regimen for neonates (Care) */ +/* End of First-line ART regimen for neonates */ /* @dataElement: HIV.D.DE87 - Second-line ART regimen for adults and adolescents @@ -5651,16 +5651,16 @@ define "First-line ART regimen for neonates (Care) Observation": @description: Second-line ART regimen for adults and adolescents living with HIV */ // TODO: Replace placeholder with relevant CQL logic -define "Second-line ART regimen for adults and adolescents (Care)": - exists "Second-line ART regimen for adults and adolescents (Care) Condition" - or exists "Second-line ART regimen for adults and adolescents (Care) Observation" -define "Second-line ART regimen for adults and adolescents (Care) Condition": +define "Second-line ART regimen for adults and adolescents": + exists "Second-line ART regimen for adults and adolescents Condition" + or exists "Second-line ART regimen for adults and adolescents Observation" +define "Second-line ART regimen for adults and adolescents Condition": [Condition: Concepts."Second-line ART regimen for adults and adolescents"] -define "Second-line ART regimen for adults and adolescents (Care) Observation": - "Current ART regimen first-, second-, or third-line (Care) Observation" O +define "Second-line ART regimen for adults and adolescents Observation": + "Current ART regimen first-, second-, or third-line Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Second-line ART regimen for adults and adolescents" -/* End of Second-line ART regimen for adults and adolescents (Care) */ +/* End of Second-line ART regimen for adults and adolescents */ /* @dataElement: HIV.D.DE88 - Second-line ART regimen for children @@ -5668,16 +5668,16 @@ define "Second-line ART regimen for adults and adolescents (Care) Observation": @description: Second-line ART regimen for children living with HIV */ // TODO: Replace placeholder with relevant CQL logic -define "Second-line ART regimen for children (Care)": - exists "Second-line ART regimen for children (Care) Condition" - or exists "Second-line ART regimen for children (Care) Observation" -define "Second-line ART regimen for children (Care) Condition": +define "Second-line ART regimen for children": + exists "Second-line ART regimen for children Condition" + or exists "Second-line ART regimen for children Observation" +define "Second-line ART regimen for children Condition": [Condition: Concepts."Second-line ART regimen for children"] -define "Second-line ART regimen for children (Care) Observation": - "Current ART regimen first-, second-, or third-line (Care) Observation" O +define "Second-line ART regimen for children Observation": + "Current ART regimen first-, second-, or third-line Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Second-line ART regimen for children" -/* End of Second-line ART regimen for children (Care) */ +/* End of Second-line ART regimen for children */ /* @dataElement: HIV.D.DE89 - Third-line ART regimen @@ -5685,16 +5685,16 @@ define "Second-line ART regimen for children (Care) Observation": @description: Third-line ART regimen for people living with HIV (Not defined by WHO. National programmes should develop policies for third-line ART) */ // TODO: Replace placeholder with relevant CQL logic -define "Third-line ART regimen (Care)": - exists "Third-line ART regimen (Care) Condition" - or exists "Third-line ART regimen (Care) Observation" -define "Third-line ART regimen (Care) Condition": +define "Third-line ART regimen": + exists "Third-line ART regimen Condition" + or exists "Third-line ART regimen Observation" +define "Third-line ART regimen Condition": [Condition: Concepts."Third-line ART regimen"] -define "Third-line ART regimen (Care) Observation": - "Current ART regimen first-, second-, or third-line (Care) Observation" O +define "Third-line ART regimen Observation": + "Current ART regimen first-, second-, or third-line Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Third-line ART regimen" -/* End of Third-line ART regimen (Care) */ +/* End of Third-line ART regimen */ /* @dataElement: HIV.D.DE128 - ART regimen composition @@ -5702,12 +5702,12 @@ define "Third-line ART regimen (Care) Observation": @description: Drug composition of client's current ART regimen */ // TODO: Replace placeholder with relevant CQL logic -define "ART regimen composition (Care)": - exists "ART regimen composition (Care) Observation" -define "ART regimen composition (Care) Observation": +define "ART regimen composition": + exists "ART regimen composition Observation" +define "ART regimen composition Observation": [Observation: Concepts."ART regimen composition"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of ART regimen composition (Care) */ +/* End of ART regimen composition */ /* @dataElement: HIV.D.DE129 - ABC @@ -5715,16 +5715,16 @@ define "ART regimen composition (Care) Observation": @description: Treated with abacavir (ABC) */ // TODO: Replace placeholder with relevant CQL logic -define "ABC (Care)": - exists "ABC (Care) Condition" - or exists "ABC (Care) Observation" -define "ABC (Care) Condition": +define "ABC": + exists "ABC Condition" + or exists "ABC Observation" +define "ABC Condition": [Condition: Concepts."ABC"] -define "ABC (Care) Observation": - "ART regimen composition (Care) Observation" O +define "ABC Observation": + "ART regimen composition Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."ABC" -/* End of ABC (Care) */ +/* End of ABC */ /* @dataElement: HIV.D.DE130 - FTC @@ -5732,16 +5732,16 @@ define "ABC (Care) Observation": @description: Treated with emtricitabine (FTC) */ // TODO: Replace placeholder with relevant CQL logic -define "FTC (Care)": - exists "FTC (Care) Condition" - or exists "FTC (Care) Observation" -define "FTC (Care) Condition": +define "FTC": + exists "FTC Condition" + or exists "FTC Observation" +define "FTC Condition": [Condition: Concepts."FTC"] -define "FTC (Care) Observation": - "ART regimen composition (Care) Observation" O +define "FTC Observation": + "ART regimen composition Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."FTC" -/* End of FTC (Care) */ +/* End of FTC */ /* @dataElement: HIV.D.DE131 - 3TC @@ -5749,16 +5749,16 @@ define "FTC (Care) Observation": @description: Treated with lamivudine (3TC) */ // TODO: Replace placeholder with relevant CQL logic -define "3TC (Care)": - exists "3TC (Care) Condition" - or exists "3TC (Care) Observation" -define "3TC (Care) Condition": +define "3TC": + exists "3TC Condition" + or exists "3TC Observation" +define "3TC Condition": [Condition: Concepts."3TC"] -define "3TC (Care) Observation": - "ART regimen composition (Care) Observation" O +define "3TC Observation": + "ART regimen composition Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."3TC" -/* End of 3TC (Care) */ +/* End of 3TC */ /* @dataElement: HIV.D.DE132 - AZT @@ -5766,16 +5766,16 @@ define "3TC (Care) Observation": @description: Treated with zidovudine (AZT) */ // TODO: Replace placeholder with relevant CQL logic -define "AZT (Care)": - exists "AZT (Care) Condition" - or exists "AZT (Care) Observation" -define "AZT (Care) Condition": +define "AZT": + exists "AZT Condition" + or exists "AZT Observation" +define "AZT Condition": [Condition: Concepts."AZT"] -define "AZT (Care) Observation": - "ART regimen composition (Care) Observation" O +define "AZT Observation": + "ART regimen composition Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."AZT" -/* End of AZT (Care) */ +/* End of AZT */ /* @dataElement: HIV.D.DE133 - DDI @@ -5783,16 +5783,16 @@ define "AZT (Care) Observation": @description: Treated with didanosine (DDI) */ // TODO: Replace placeholder with relevant CQL logic -define "DDI (Care)": - exists "DDI (Care) Condition" - or exists "DDI (Care) Observation" -define "DDI (Care) Condition": +define "DDI": + exists "DDI Condition" + or exists "DDI Observation" +define "DDI Condition": [Condition: Concepts."DDI"] -define "DDI (Care) Observation": - "ART regimen composition (Care) Observation" O +define "DDI Observation": + "ART regimen composition Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."DDI" -/* End of DDI (Care) */ +/* End of DDI */ /* @dataElement: HIV.D.DE134 - D4T @@ -5800,16 +5800,16 @@ define "DDI (Care) Observation": @description: Treated with stavudine (D4T) */ // TODO: Replace placeholder with relevant CQL logic -define "D4T (Care)": - exists "D4T (Care) Condition" - or exists "D4T (Care) Observation" -define "D4T (Care) Condition": +define "D4T": + exists "D4T Condition" + or exists "D4T Observation" +define "D4T Condition": [Condition: Concepts."D4T"] -define "D4T (Care) Observation": - "ART regimen composition (Care) Observation" O +define "D4T Observation": + "ART regimen composition Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."D4T" -/* End of D4T (Care) */ +/* End of D4T */ /* @dataElement: HIV.D.DE135 - TDF @@ -5817,16 +5817,16 @@ define "D4T (Care) Observation": @description: Treated with tenofovir (TDF) */ // TODO: Replace placeholder with relevant CQL logic -define "TDF (Care|DDE135)": - exists "TDF (Care|DDE135) Condition" - or exists "TDF (Care|DDE135) Observation" -define "TDF (Care|DDE135) Condition": +define "TDF D.DE135": + exists "TDF D.DE135 Condition" + or exists "TDF D.DE135 Observation" +define "TDF D.DE135 Condition": [Condition: Concepts."TDF - HIV.D.DE135"] -define "TDF (Care|DDE135) Observation": - "ART regimen composition (Care) Observation" O +define "TDF D.DE135 Observation": + "ART regimen composition Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."TDF - HIV.D.DE135" -/* End of TDF (Care|DDE135) */ +/* End of TDF D.DE135 */ /* @dataElement: HIV.D.DE136 - EFV @@ -5834,16 +5834,16 @@ define "TDF (Care|DDE135) Observation": @description: Treated with efavirenz (EFV) */ // TODO: Replace placeholder with relevant CQL logic -define "EFV (Care)": - exists "EFV (Care) Condition" - or exists "EFV (Care) Observation" -define "EFV (Care) Condition": +define "EFV": + exists "EFV Condition" + or exists "EFV Observation" +define "EFV Condition": [Condition: Concepts."EFV"] -define "EFV (Care) Observation": - "ART regimen composition (Care) Observation" O +define "EFV Observation": + "ART regimen composition Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."EFV" -/* End of EFV (Care) */ +/* End of EFV */ /* @dataElement: HIV.D.DE137 - ETV @@ -5851,16 +5851,16 @@ define "EFV (Care) Observation": @description: Treated with etravirine (ETV) */ // TODO: Replace placeholder with relevant CQL logic -define "ETV (Care)": - exists "ETV (Care) Condition" - or exists "ETV (Care) Observation" -define "ETV (Care) Condition": +define "ETV": + exists "ETV Condition" + or exists "ETV Observation" +define "ETV Condition": [Condition: Concepts."ETV"] -define "ETV (Care) Observation": - "ART regimen composition (Care) Observation" O +define "ETV Observation": + "ART regimen composition Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."ETV" -/* End of ETV (Care) */ +/* End of ETV */ /* @dataElement: HIV.D.DE138 - NVP @@ -5868,16 +5868,16 @@ define "ETV (Care) Observation": @description: Treated with nevirapine (NVP) */ // TODO: Replace placeholder with relevant CQL logic -define "NVP (Care)": - exists "NVP (Care) Condition" - or exists "NVP (Care) Observation" -define "NVP (Care) Condition": +define "NVP": + exists "NVP Condition" + or exists "NVP Observation" +define "NVP Condition": [Condition: Concepts."NVP"] -define "NVP (Care) Observation": - "ART regimen composition (Care) Observation" O +define "NVP Observation": + "ART regimen composition Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."NVP" -/* End of NVP (Care) */ +/* End of NVP */ /* @dataElement: HIV.D.DE139 - RIL @@ -5885,16 +5885,16 @@ define "NVP (Care) Observation": @description: Treated with rilpivirine (RIL) */ // TODO: Replace placeholder with relevant CQL logic -define "RIL (Care)": - exists "RIL (Care) Condition" - or exists "RIL (Care) Observation" -define "RIL (Care) Condition": +define "RIL": + exists "RIL Condition" + or exists "RIL Observation" +define "RIL Condition": [Condition: Concepts."RIL"] -define "RIL (Care) Observation": - "ART regimen composition (Care) Observation" O +define "RIL Observation": + "ART regimen composition Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."RIL" -/* End of RIL (Care) */ +/* End of RIL */ /* @dataElement: HIV.D.DE140 - ATV/r @@ -5902,16 +5902,16 @@ define "RIL (Care) Observation": @description: Treated with atazanavir/ritonavir (ATV/r) */ // TODO: Replace placeholder with relevant CQL logic -define "ATV/r (Care)": - exists "ATV/r (Care) Condition" - or exists "ATV/r (Care) Observation" -define "ATV/r (Care) Condition": +define "ATV/r D.DE140": + exists "ATV/r D.DE140 Condition" + or exists "ATV/r D.DE140 Observation" +define "ATV/r D.DE140 Condition": [Condition: Concepts."ATV/r - HIV.D.DE140"] -define "ATV/r (Care) Observation": - "ART regimen composition (Care) Observation" O +define "ATV/r D.DE140 Observation": + "ART regimen composition Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."ATV/r - HIV.D.DE140" -/* End of ATV/r (Care) */ +/* End of ATV/r D.DE140 */ /* @dataElement: HIV.D.DE141 - LPV/r @@ -5919,16 +5919,16 @@ define "ATV/r (Care) Observation": @description: Treated with lopinavir/ritonavir (LPV/r) */ // TODO: Replace placeholder with relevant CQL logic -define "LPV/r (Care)": - exists "LPV/r (Care) Condition" - or exists "LPV/r (Care) Observation" -define "LPV/r (Care) Condition": +define "LPV/r D.DE141": + exists "LPV/r D.DE141 Condition" + or exists "LPV/r D.DE141 Observation" +define "LPV/r D.DE141 Condition": [Condition: Concepts."LPV/r - HIV.D.DE141"] -define "LPV/r (Care) Observation": - "ART regimen composition (Care) Observation" O +define "LPV/r D.DE141 Observation": + "ART regimen composition Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."LPV/r - HIV.D.DE141" -/* End of LPV/r (Care) */ +/* End of LPV/r D.DE141 */ /* @dataElement: HIV.D.DE142 - DRV/r @@ -5936,16 +5936,16 @@ define "LPV/r (Care) Observation": @description: Treated with darunavir/ritonavir (DRV/r) */ // TODO: Replace placeholder with relevant CQL logic -define "DRV/r (Care)": - exists "DRV/r (Care) Condition" - or exists "DRV/r (Care) Observation" -define "DRV/r (Care) Condition": +define "DRV/r D.DE142": + exists "DRV/r D.DE142 Condition" + or exists "DRV/r D.DE142 Observation" +define "DRV/r D.DE142 Condition": [Condition: Concepts."DRV/r - HIV.D.DE142"] -define "DRV/r (Care) Observation": - "ART regimen composition (Care) Observation" O +define "DRV/r D.DE142 Observation": + "ART regimen composition Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."DRV/r - HIV.D.DE142" -/* End of DRV/r (Care) */ +/* End of DRV/r D.DE142 */ /* @dataElement: HIV.D.DE143 - RTV @@ -5953,16 +5953,16 @@ define "DRV/r (Care) Observation": @description: Treated with ritonavir (RTV) */ // TODO: Replace placeholder with relevant CQL logic -define "RTV (Care)": - exists "RTV (Care) Condition" - or exists "RTV (Care) Observation" -define "RTV (Care) Condition": +define "RTV": + exists "RTV Condition" + or exists "RTV Observation" +define "RTV Condition": [Condition: Concepts."RTV"] -define "RTV (Care) Observation": - "ART regimen composition (Care) Observation" O +define "RTV Observation": + "ART regimen composition Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."RTV" -/* End of RTV (Care) */ +/* End of RTV */ /* @dataElement: HIV.D.DE144 - DTG @@ -5970,16 +5970,16 @@ define "RTV (Care) Observation": @description: Treated with dolutegravir (DTG) */ // TODO: Replace placeholder with relevant CQL logic -define "DTG (Care)": - exists "DTG (Care) Condition" - or exists "DTG (Care) Observation" -define "DTG (Care) Condition": +define "DTG D.DE144": + exists "DTG D.DE144 Condition" + or exists "DTG D.DE144 Observation" +define "DTG D.DE144 Condition": [Condition: Concepts."DTG - HIV.D.DE144"] -define "DTG (Care) Observation": - "ART regimen composition (Care) Observation" O +define "DTG D.DE144 Observation": + "ART regimen composition Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."DTG - HIV.D.DE144" -/* End of DTG (Care) */ +/* End of DTG D.DE144 */ /* @dataElement: HIV.D.DE145 - RAL @@ -5987,16 +5987,16 @@ define "DTG (Care) Observation": @description: Treated with raltegravir (RAL) */ // TODO: Replace placeholder with relevant CQL logic -define "RAL (Care)": - exists "RAL (Care) Condition" - or exists "RAL (Care) Observation" -define "RAL (Care) Condition": +define "RAL D.DE145": + exists "RAL D.DE145 Condition" + or exists "RAL D.DE145 Observation" +define "RAL D.DE145 Condition": [Condition: Concepts."RAL - HIV.D.DE145"] -define "RAL (Care) Observation": - "ART regimen composition (Care) Observation" O +define "RAL D.DE145 Observation": + "ART regimen composition Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."RAL - HIV.D.DE145" -/* End of RAL (Care) */ +/* End of RAL D.DE145 */ /* @dataElement: HIV.D.DE152 - Prevention services offered and referrals @@ -6004,12 +6004,12 @@ define "RAL (Care) Observation": @description: Offer or refer for prevention services */ // TODO: Replace placeholder with relevant CQL logic -define "Prevention services offered and referrals (Care)": - exists "Prevention services offered and referrals (Care) Observation" -define "Prevention services offered and referrals (Care) Observation": +define "Prevention services offered and referrals D.DE152": + exists "Prevention services offered and referrals D.DE152 Observation" +define "Prevention services offered and referrals D.DE152 Observation": [Observation: Concepts."Prevention services offered and referrals - HIV.D.DE152"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Prevention services offered and referrals (Care) */ +/* End of Prevention services offered and referrals D.DE152 */ /* @dataElement: HIV.D.DE153 - Offer male and female condoms and condom-compatible lubricants @@ -6017,16 +6017,16 @@ define "Prevention services offered and referrals (Care) Observation": @description: Offer male and female condoms and condom-compatible lubricants */ // TODO: Replace placeholder with relevant CQL logic -define "Offer male and female condoms and condom-compatible lubricants (Care)": - exists "Offer male and female condoms and condom-compatible lubricants (Care) Condition" - or exists "Offer male and female condoms and condom-compatible lubricants (Care) Observation" -define "Offer male and female condoms and condom-compatible lubricants (Care) Condition": +define "Offer male and female condoms and condom-compatible lubricants D.DE153": + exists "Offer male and female condoms and condom-compatible lubricants D.DE153 Condition" + or exists "Offer male and female condoms and condom-compatible lubricants D.DE153 Observation" +define "Offer male and female condoms and condom-compatible lubricants D.DE153 Condition": [Condition: Concepts."Offer male and female condoms and condom-compatible lubricants - HIV.D.DE153"] -define "Offer male and female condoms and condom-compatible lubricants (Care) Observation": - "Prevention services offered and referrals (Care) Observation" O +define "Offer male and female condoms and condom-compatible lubricants D.DE153 Observation": + "Prevention services offered and referrals D.DE152 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Offer male and female condoms and condom-compatible lubricants - HIV.D.DE153" -/* End of Offer male and female condoms and condom-compatible lubricants (Care) */ +/* End of Offer male and female condoms and condom-compatible lubricants D.DE153 */ /* @dataElement: HIV.D.DE154 - Harm reduction for people who inject drugs @@ -6034,16 +6034,16 @@ define "Offer male and female condoms and condom-compatible lubricants (Care) Ob @description: Offer or refer people who inject drugs to harm reduction services (needle and syringe programmes, opioid substitution therapy, other drug-dependence treatment and opioid overdose prevention and management) */ // TODO: Replace placeholder with relevant CQL logic -define "Harm reduction for people who inject drugs (Care)": - exists "Harm reduction for people who inject drugs (Care) Condition" - or exists "Harm reduction for people who inject drugs (Care) Observation" -define "Harm reduction for people who inject drugs (Care) Condition": +define "Harm reduction for people who inject drugs D.DE154": + exists "Harm reduction for people who inject drugs D.DE154 Condition" + or exists "Harm reduction for people who inject drugs D.DE154 Observation" +define "Harm reduction for people who inject drugs D.DE154 Condition": [Condition: Concepts."Harm reduction for people who inject drugs - HIV.D.DE154"] -define "Harm reduction for people who inject drugs (Care) Observation": - "Prevention services offered and referrals (Care) Observation" O +define "Harm reduction for people who inject drugs D.DE154 Observation": + "Prevention services offered and referrals D.DE152 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Harm reduction for people who inject drugs - HIV.D.DE154" -/* End of Harm reduction for people who inject drugs (Care) */ +/* End of Harm reduction for people who inject drugs D.DE154 */ /* @dataElement: HIV.D.DE155 - Behavioural interventions to support risk reduction @@ -6051,16 +6051,16 @@ define "Harm reduction for people who inject drugs (Care) Observation": @description: Offer or refer to services for behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations */ // TODO: Replace placeholder with relevant CQL logic -define "Behavioural interventions to support risk reduction (Care)": - exists "Behavioural interventions to support risk reduction (Care) Condition" - or exists "Behavioural interventions to support risk reduction (Care) Observation" -define "Behavioural interventions to support risk reduction (Care) Condition": +define "Behavioural interventions to support risk reduction D.DE155": + exists "Behavioural interventions to support risk reduction D.DE155 Condition" + or exists "Behavioural interventions to support risk reduction D.DE155 Observation" +define "Behavioural interventions to support risk reduction D.DE155 Condition": [Condition: Concepts."Behavioural interventions to support risk reduction - HIV.D.DE155"] -define "Behavioural interventions to support risk reduction (Care) Observation": - "Prevention services offered and referrals (Care) Observation" O +define "Behavioural interventions to support risk reduction D.DE155 Observation": + "Prevention services offered and referrals D.DE152 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Behavioural interventions to support risk reduction - HIV.D.DE155" -/* End of Behavioural interventions to support risk reduction (Care) */ +/* End of Behavioural interventions to support risk reduction D.DE155 */ /* @dataElement: HIV.D.DE156 - Sexual and reproductive health integrated services @@ -6068,12 +6068,12 @@ define "Behavioural interventions to support risk reduction (Care) Observation": @description: Offer or refer to sexual and reproductive health services */ // TODO: Replace placeholder with relevant CQL logic -define "Sexual and reproductive health integrated services (Care)": - exists "Sexual and reproductive health integrated services (Care) Observation" -define "Sexual and reproductive health integrated services (Care) Observation": +define "Sexual and reproductive health integrated services D.DE156": + exists "Sexual and reproductive health integrated services D.DE156 Observation" +define "Sexual and reproductive health integrated services D.DE156 Observation": [Observation: Concepts."Sexual and reproductive health integrated services - HIV.D.DE156"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Sexual and reproductive health integrated services (Care) */ +/* End of Sexual and reproductive health integrated services D.DE156 */ /* @dataElement: HIV.D.DE157 - Contraception and family planning @@ -6081,16 +6081,16 @@ define "Sexual and reproductive health integrated services (Care) Observation": @description: Offer contraception and family planning services */ // TODO: Replace placeholder with relevant CQL logic -define "Contraception and family planning (Care)": - exists "Contraception and family planning (Care) Condition" - or exists "Contraception and family planning (Care) Observation" -define "Contraception and family planning (Care) Condition": +define "Contraception and family planning D.DE157": + exists "Contraception and family planning D.DE157 Condition" + or exists "Contraception and family planning D.DE157 Observation" +define "Contraception and family planning D.DE157 Condition": [Condition: Concepts."Contraception and family planning - HIV.D.DE157"] -define "Contraception and family planning (Care) Observation": - "Sexual and reproductive health integrated services (Care) Observation" O +define "Contraception and family planning D.DE157 Observation": + "Sexual and reproductive health integrated services D.DE156 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Contraception and family planning - HIV.D.DE157" -/* End of Contraception and family planning (Care) */ +/* End of Contraception and family planning D.DE157 */ /* @dataElement: HIV.D.DE158 - Check pregnancy status @@ -6098,16 +6098,16 @@ define "Contraception and family planning (Care) Observation": @description: Check woman's pregnancy status */ // TODO: Replace placeholder with relevant CQL logic -define "Check pregnancy status (Care)": - exists "Check pregnancy status (Care) Condition" - or exists "Check pregnancy status (Care) Observation" -define "Check pregnancy status (Care) Condition": +define "Check pregnancy status D.DE158": + exists "Check pregnancy status D.DE158 Condition" + or exists "Check pregnancy status D.DE158 Observation" +define "Check pregnancy status D.DE158 Condition": [Condition: Concepts."Check pregnancy status - HIV.D.DE158"] -define "Check pregnancy status (Care) Observation": - "Sexual and reproductive health integrated services (Care) Observation" O +define "Check pregnancy status D.DE158 Observation": + "Sexual and reproductive health integrated services D.DE156 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Check pregnancy status - HIV.D.DE158" -/* End of Check pregnancy status (Care) */ +/* End of Check pregnancy status D.DE158 */ /* @dataElement: HIV.D.DE159 - Prevention of mother-to-child transmission @@ -6115,16 +6115,16 @@ define "Check pregnancy status (Care) Observation": @description: Offer prevention of mother-to-child transmission services (counselling) */ // TODO: Replace placeholder with relevant CQL logic -define "Prevention of mother-to-child transmission (Care)": - exists "Prevention of mother-to-child transmission (Care) Condition" - or exists "Prevention of mother-to-child transmission (Care) Observation" -define "Prevention of mother-to-child transmission (Care) Condition": +define "Prevention of mother-to-child transmission": + exists "Prevention of mother-to-child transmission Condition" + or exists "Prevention of mother-to-child transmission Observation" +define "Prevention of mother-to-child transmission Condition": [Condition: Concepts."Prevention of mother-to-child transmission"] -define "Prevention of mother-to-child transmission (Care) Observation": - "Sexual and reproductive health integrated services (Care) Observation" O +define "Prevention of mother-to-child transmission Observation": + "Sexual and reproductive health integrated services D.DE156 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Prevention of mother-to-child transmission" -/* End of Prevention of mother-to-child transmission (Care) */ +/* End of Prevention of mother-to-child transmission */ /* @dataElement: HIV.D.DE160 - STI testing and treatment @@ -6132,16 +6132,16 @@ define "Prevention of mother-to-child transmission (Care) Observation": @description: Offer STI testing and treatment services */ // TODO: Replace placeholder with relevant CQL logic -define "STI testing and treatment (Care)": - exists "STI testing and treatment (Care) Condition" - or exists "STI testing and treatment (Care) Observation" -define "STI testing and treatment (Care) Condition": +define "STI testing and treatment D.DE160": + exists "STI testing and treatment D.DE160 Condition" + or exists "STI testing and treatment D.DE160 Observation" +define "STI testing and treatment D.DE160 Condition": [Condition: Concepts."STI testing and treatment - HIV.D.DE160"] -define "STI testing and treatment (Care) Observation": - "Sexual and reproductive health integrated services (Care) Observation" O +define "STI testing and treatment D.DE160 Observation": + "Sexual and reproductive health integrated services D.DE156 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."STI testing and treatment - HIV.D.DE160" -/* End of STI testing and treatment (Care) */ +/* End of STI testing and treatment D.DE160 */ /* @dataElement: HIV.D.DE161 - HBsAg test date @@ -6149,13 +6149,13 @@ define "STI testing and treatment (Care) Observation": @description: Date client was tested for hepatitis B virus (HBV) */ // TODO: Replace placeholder with relevant CQL logic -define "HBsAg test date (Care)": +define "HBsAg test date D.DE161": [Observation: Concepts."HBsAg test date - HIV.D.DE161"] O where O.status in { 'final', 'amended', 'corrected' } -define "HBsAg test date (Care) Value": - "HBsAg test date (Care)" O +define "HBsAg test date D.DE161 Value": + "HBsAg test date D.DE161" O return O.value -/* End of HBsAg test date (Care) */ +/* End of HBsAg test date D.DE161 */ /* @dataElement: HIV.D.DE162 - HBsAg test result @@ -6163,12 +6163,12 @@ define "HBsAg test date (Care) Value": @description: Hepatitis B virus test result (HBsAg) */ // TODO: Replace placeholder with relevant CQL logic -define "HBsAg test result (Care)": - exists "HBsAg test result (Care) Observation" -define "HBsAg test result (Care) Observation": +define "HBsAg test result D.DE162": + exists "HBsAg test result D.DE162 Observation" +define "HBsAg test result D.DE162 Observation": [Observation: Concepts."HBsAg test result - HIV.D.DE162"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of HBsAg test result (Care) */ +/* End of HBsAg test result D.DE162 */ /* @dataElement: HIV.D.DE163 - Positive @@ -6176,16 +6176,16 @@ define "HBsAg test result (Care) Observation": @description: HBsAg test result was positive */ // TODO: Replace placeholder with relevant CQL logic -define "Positive (Care|DDE163)": - exists "Positive (Care|DDE163) Condition" - or exists "Positive (Care|DDE163) Observation" -define "Positive (Care|DDE163) Condition": +define "Positive D.DE163": + exists "Positive D.DE163 Condition" + or exists "Positive D.DE163 Observation" +define "Positive D.DE163 Condition": [Condition: Concepts."Positive - HIV.D.DE163"] -define "Positive (Care|DDE163) Observation": - "HBsAg test result (Care) Observation" O +define "Positive D.DE163 Observation": + "HBsAg test result D.DE162 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Positive - HIV.D.DE163" -/* End of Positive (Care|DDE163) */ +/* End of Positive D.DE163 */ /* @dataElement: HIV.D.DE164 - Negative @@ -6193,16 +6193,16 @@ define "Positive (Care|DDE163) Observation": @description: HBsAg test result was negative */ // TODO: Replace placeholder with relevant CQL logic -define "Negative (Care|DDE164)": - exists "Negative (Care|DDE164) Condition" - or exists "Negative (Care|DDE164) Observation" -define "Negative (Care|DDE164) Condition": +define "Negative D.DE164": + exists "Negative D.DE164 Condition" + or exists "Negative D.DE164 Observation" +define "Negative D.DE164 Condition": [Condition: Concepts."Negative - HIV.D.DE164"] -define "Negative (Care|DDE164) Observation": - "HBsAg test result (Care) Observation" O +define "Negative D.DE164 Observation": + "HBsAg test result D.DE162 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Negative - HIV.D.DE164" -/* End of Negative (Care|DDE164) */ +/* End of Negative D.DE164 */ /* @dataElement: HIV.D.DE165 - Indeterminate @@ -6210,16 +6210,16 @@ define "Negative (Care|DDE164) Observation": @description: HBsAg test result was indeterminate */ // TODO: Replace placeholder with relevant CQL logic -define "Indeterminate (Care|DDE165)": - exists "Indeterminate (Care|DDE165) Condition" - or exists "Indeterminate (Care|DDE165) Observation" -define "Indeterminate (Care|DDE165) Condition": +define "Indeterminate D.DE165": + exists "Indeterminate D.DE165 Condition" + or exists "Indeterminate D.DE165 Observation" +define "Indeterminate D.DE165 Condition": [Condition: Concepts."Indeterminate - HIV.D.DE165"] -define "Indeterminate (Care|DDE165) Observation": - "HBsAg test result (Care) Observation" O +define "Indeterminate D.DE165 Observation": + "HBsAg test result D.DE162 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Indeterminate - HIV.D.DE165" -/* End of Indeterminate (Care|DDE165) */ +/* End of Indeterminate D.DE165 */ /* @dataElement: HIV.D.DE167 - HBV treatment TDF start date @@ -6227,13 +6227,13 @@ define "Indeterminate (Care|DDE165) Observation": @description: Date when client started treatment (TDF) for hepatitis B virus (HBV) */ // TODO: Replace placeholder with relevant CQL logic -define "HBV treatment TDF start date (Care)": +define "HBV treatment TDF start date": [Observation: Concepts."HBV treatment TDF start date"] O where O.status in { 'final', 'amended', 'corrected' } -define "HBV treatment TDF start date (Care) Value": - "HBV treatment TDF start date (Care)" O +define "HBV treatment TDF start date Value": + "HBV treatment TDF start date" O return O.value -/* End of HBV treatment TDF start date (Care) */ +/* End of HBV treatment TDF start date */ /* @dataElement: HIV.D.DE169 - HCV test date @@ -6241,13 +6241,13 @@ define "HBV treatment TDF start date (Care) Value": @description: Date client was tested for hepatitis C virus (HCV antibody, HCV RNA or HCV core antigen) */ // TODO: Replace placeholder with relevant CQL logic -define "HCV test date (Care)": +define "HCV test date D.DE169": [Observation: Concepts."HCV test date - HIV.D.DE169"] O where O.status in { 'final', 'amended', 'corrected' } -define "HCV test date (Care) Value": - "HCV test date (Care)" O +define "HCV test date D.DE169 Value": + "HCV test date D.DE169" O return O.value -/* End of HCV test date (Care) */ +/* End of HCV test date D.DE169 */ /* @dataElement: HIV.D.DE170 - HCV test result @@ -6255,12 +6255,12 @@ define "HCV test date (Care) Value": @description: Hepatitis C virus test result (HCV antibody, HCV RNA or HCV core antigen) */ // TODO: Replace placeholder with relevant CQL logic -define "HCV test result (Care)": - exists "HCV test result (Care) Observation" -define "HCV test result (Care) Observation": +define "HCV test result D.DE170": + exists "HCV test result D.DE170 Observation" +define "HCV test result D.DE170 Observation": [Observation: Concepts."HCV test result - HIV.D.DE170"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of HCV test result (Care) */ +/* End of HCV test result D.DE170 */ /* @dataElement: HIV.D.DE171 - Positive @@ -6268,16 +6268,16 @@ define "HCV test result (Care) Observation": @description: HCV test result was positive */ // TODO: Replace placeholder with relevant CQL logic -define "Positive (Care|DDE171)": - exists "Positive (Care|DDE171) Condition" - or exists "Positive (Care|DDE171) Observation" -define "Positive (Care|DDE171) Condition": +define "Positive D.DE171": + exists "Positive D.DE171 Condition" + or exists "Positive D.DE171 Observation" +define "Positive D.DE171 Condition": [Condition: Concepts."Positive - HIV.D.DE171"] -define "Positive (Care|DDE171) Observation": - "HCV test result (Care) Observation" O +define "Positive D.DE171 Observation": + "HCV test result D.DE170 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Positive - HIV.D.DE171" -/* End of Positive (Care|DDE171) */ +/* End of Positive D.DE171 */ /* @dataElement: HIV.D.DE172 - Negative @@ -6285,16 +6285,16 @@ define "Positive (Care|DDE171) Observation": @description: HCV test result was negative */ // TODO: Replace placeholder with relevant CQL logic -define "Negative (Care|DDE172)": - exists "Negative (Care|DDE172) Condition" - or exists "Negative (Care|DDE172) Observation" -define "Negative (Care|DDE172) Condition": +define "Negative D.DE172": + exists "Negative D.DE172 Condition" + or exists "Negative D.DE172 Observation" +define "Negative D.DE172 Condition": [Condition: Concepts."Negative - HIV.D.DE172"] -define "Negative (Care|DDE172) Observation": - "HCV test result (Care) Observation" O +define "Negative D.DE172 Observation": + "HCV test result D.DE170 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Negative - HIV.D.DE172" -/* End of Negative (Care|DDE172) */ +/* End of Negative D.DE172 */ /* @dataElement: HIV.D.DE173 - Indeterminate @@ -6302,16 +6302,16 @@ define "Negative (Care|DDE172) Observation": @description: HCV test result was indeterminate */ // TODO: Replace placeholder with relevant CQL logic -define "Indeterminate (Care|DDE173)": - exists "Indeterminate (Care|DDE173) Condition" - or exists "Indeterminate (Care|DDE173) Observation" -define "Indeterminate (Care|DDE173) Condition": +define "Indeterminate D.DE173": + exists "Indeterminate D.DE173 Condition" + or exists "Indeterminate D.DE173 Observation" +define "Indeterminate D.DE173 Condition": [Condition: Concepts."Indeterminate - HIV.D.DE173"] -define "Indeterminate (Care|DDE173) Observation": - "HCV test result (Care) Observation" O +define "Indeterminate D.DE173 Observation": + "HCV test result D.DE170 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Indeterminate - HIV.D.DE173" -/* End of Indeterminate (Care|DDE173) */ +/* End of Indeterminate D.DE173 */ /* @dataElement: HIV.D.DE175 - HCV treatment start date @@ -6319,13 +6319,13 @@ define "Indeterminate (Care|DDE173) Observation": @description: Date when client started treatment for hepatitis C virus (HCV) */ // TODO: Replace placeholder with relevant CQL logic -define "HCV treatment start date (Care)": +define "HCV treatment start date": [Observation: Concepts."HCV treatment start date"] O where O.status in { 'final', 'amended', 'corrected' } -define "HCV treatment start date (Care) Value": - "HCV treatment start date (Care)" O +define "HCV treatment start date Value": + "HCV treatment start date" O return O.value -/* End of HCV treatment start date (Care) */ +/* End of HCV treatment start date */ /* @dataElement: HIV.D.DE176 - HCV treatment completion date @@ -6333,13 +6333,13 @@ define "HCV treatment start date (Care) Value": @description: Date when client completed treatment for hepatitis C virus (HCV) */ // TODO: Replace placeholder with relevant CQL logic -define "HCV treatment completion date (Care)": +define "HCV treatment completion date": [Observation: Concepts."HCV treatment completion date"] O where O.status in { 'final', 'amended', 'corrected' } -define "HCV treatment completion date (Care) Value": - "HCV treatment completion date (Care)" O +define "HCV treatment completion date Value": + "HCV treatment completion date" O return O.value -/* End of HCV treatment completion date (Care) */ +/* End of HCV treatment completion date */ /* @dataElement: HIV.D.DE178 - HCV viral load test date @@ -6347,13 +6347,13 @@ define "HCV treatment completion date (Care) Value": @description: Hepatitis C viral load test date */ // TODO: Replace placeholder with relevant CQL logic -define "HCV viral load test date (Care)": +define "HCV viral load test date D.DE178": [Observation: Concepts."HCV viral load test date - HIV.D.DE178"] O where O.status in { 'final', 'amended', 'corrected' } -define "HCV viral load test date (Care) Value": - "HCV viral load test date (Care)" O +define "HCV viral load test date D.DE178 Value": + "HCV viral load test date D.DE178" O return O.value -/* End of HCV viral load test date (Care) */ +/* End of HCV viral load test date D.DE178 */ /* @dataElement: HIV.D.DE179 - HCV viral load test result @@ -6361,12 +6361,12 @@ define "HCV viral load test date (Care) Value": @description: Hepatitis C viral load test result (qualitative) */ // TODO: Replace placeholder with relevant CQL logic -define "HCV viral load test result (Care)": - exists "HCV viral load test result (Care) Observation" -define "HCV viral load test result (Care) Observation": +define "HCV viral load test result D.DE179": + exists "HCV viral load test result D.DE179 Observation" +define "HCV viral load test result D.DE179 Observation": [Observation: Concepts."HCV viral load test result - HIV.D.DE179"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of HCV viral load test result (Care) */ +/* End of HCV viral load test result D.DE179 */ /* @dataElement: HIV.D.DE180 - Detected @@ -6374,16 +6374,16 @@ define "HCV viral load test result (Care) Observation": @description: HCV was detected */ // TODO: Replace placeholder with relevant CQL logic -define "Detected (Care)": - exists "Detected (Care) Condition" - or exists "Detected (Care) Observation" -define "Detected (Care) Condition": +define "Detected D.DE180": + exists "Detected D.DE180 Condition" + or exists "Detected D.DE180 Observation" +define "Detected D.DE180 Condition": [Condition: Concepts."Detected - HIV.D.DE180"] -define "Detected (Care) Observation": - "HCV viral load test result (Care) Observation" O +define "Detected D.DE180 Observation": + "HCV viral load test result D.DE179 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Detected - HIV.D.DE180" -/* End of Detected (Care) */ +/* End of Detected D.DE180 */ /* @dataElement: HIV.D.DE181 - Not detected @@ -6391,16 +6391,16 @@ define "Detected (Care) Observation": @description: HCV was not detected */ // TODO: Replace placeholder with relevant CQL logic -define "Not detected (Care)": - exists "Not detected (Care) Condition" - or exists "Not detected (Care) Observation" -define "Not detected (Care) Condition": +define "Not detected D.DE181": + exists "Not detected D.DE181 Condition" + or exists "Not detected D.DE181 Observation" +define "Not detected D.DE181 Condition": [Condition: Concepts."Not detected - HIV.D.DE181"] -define "Not detected (Care) Observation": - "HCV viral load test result (Care) Observation" O +define "Not detected D.DE181 Observation": + "HCV viral load test result D.DE179 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Not detected - HIV.D.DE181" -/* End of Not detected (Care) */ +/* End of Not detected D.DE181 */ /* @dataElement: HIV.D.DE182 - HCV medicine type @@ -6408,12 +6408,12 @@ define "Not detected (Care) Observation": @description: Type of medicine client is prescribed */ // TODO: Replace placeholder with relevant CQL logic -define "HCV medicine type (Care)": - exists "HCV medicine type (Care) Observation" -define "HCV medicine type (Care) Observation": +define "HCV medicine type": + exists "HCV medicine type Observation" +define "HCV medicine type Observation": [Observation: Concepts."HCV medicine type"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of HCV medicine type (Care) */ +/* End of HCV medicine type */ /* @dataElement: HIV.D.DE183 - Interferon @@ -6421,16 +6421,16 @@ define "HCV medicine type (Care) Observation": @description: Client is prescribed interferon */ // TODO: Replace placeholder with relevant CQL logic -define "Interferon (Care)": - exists "Interferon (Care) Condition" - or exists "Interferon (Care) Observation" -define "Interferon (Care) Condition": +define "Interferon": + exists "Interferon Condition" + or exists "Interferon Observation" +define "Interferon Condition": [Condition: Concepts."Interferon"] -define "Interferon (Care) Observation": - "HCV medicine type (Care) Observation" O +define "Interferon Observation": + "HCV medicine type Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Interferon" -/* End of Interferon (Care) */ +/* End of Interferon */ /* @dataElement: HIV.D.DE184 - Direct acting antivirals @@ -6438,16 +6438,16 @@ define "Interferon (Care) Observation": @description: Client is prescribed direct acting antivirals */ // TODO: Replace placeholder with relevant CQL logic -define "Direct acting antivirals (Care)": - exists "Direct acting antivirals (Care) Condition" - or exists "Direct acting antivirals (Care) Observation" -define "Direct acting antivirals (Care) Condition": +define "Direct acting antivirals": + exists "Direct acting antivirals Condition" + or exists "Direct acting antivirals Observation" +define "Direct acting antivirals Condition": [Condition: Concepts."Direct acting antivirals"] -define "Direct acting antivirals (Care) Observation": - "HCV medicine type (Care) Observation" O +define "Direct acting antivirals Observation": + "HCV medicine type Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Direct acting antivirals" -/* End of Direct acting antivirals (Care) */ +/* End of Direct acting antivirals */ /* @dataElement: HIV.D.DE185 - Currently on TDF-based ART @@ -6455,13 +6455,13 @@ define "Direct acting antivirals (Care) Observation": @description: Client is currently on TDF-based ART regimen */ // TODO: Replace placeholder with relevant CQL logic -define "Currently on TDF-based ART (Care)": - exists "Currently on TDF-based ART (Care) Observation" -define "Currently on TDF-based ART (Care) Observation": +define "Currently on TDF-based ART": + exists "Currently on TDF-based ART Observation" +define "Currently on TDF-based ART Observation": [Observation: Concepts."Currently on TDF-based ART"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Currently on TDF-based ART (Care) */ +/* End of Currently on TDF-based ART */ /* @dataElement: HIV.D.DE186 - HIV clinical stage @@ -6469,12 +6469,12 @@ define "Currently on TDF-based ART (Care) Observation": @description: WHO clinical stage of client based on signs and symptoms. WHO clinical staging is a way to categorize HIV disease severity based on new or recurrent clinical events. There are 4 WHO clinical stages that range from mild symptoms (WHO clinical stage 1) to severe symptoms (WHO clinical stage 4). */ // TODO: Replace placeholder with relevant CQL logic -define "HIV clinical stage (Care)": - exists "HIV clinical stage (Care) Observation" -define "HIV clinical stage (Care) Observation": +define "HIV clinical stage D.DE186": + exists "HIV clinical stage D.DE186 Observation" +define "HIV clinical stage D.DE186 Observation": [Observation: Concepts."HIV clinical stage - HIV.D.DE186"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of HIV clinical stage (Care) */ +/* End of HIV clinical stage D.DE186 */ /* @dataElement: HIV.D.DE187 - WHO HIV clinical stage 1 @@ -6482,16 +6482,16 @@ define "HIV clinical stage (Care) Observation": @description: Client is currently assessed to be at a clinical stage 1, based on clinical assessment and diagnostics */ // TODO: Replace placeholder with relevant CQL logic -define "WHO HIV clinical stage 1 (Care)": - exists "WHO HIV clinical stage 1 (Care) Condition" - or exists "WHO HIV clinical stage 1 (Care) Observation" -define "WHO HIV clinical stage 1 (Care) Condition": +define "WHO HIV clinical stage 1": + exists "WHO HIV clinical stage 1 Condition" + or exists "WHO HIV clinical stage 1 Observation" +define "WHO HIV clinical stage 1 Condition": [Condition: Concepts."WHO HIV clinical stage 1"] -define "WHO HIV clinical stage 1 (Care) Observation": - "HIV clinical stage (Care) Observation" O +define "WHO HIV clinical stage 1 Observation": + "HIV clinical stage D.DE186 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."WHO HIV clinical stage 1" -/* End of WHO HIV clinical stage 1 (Care) */ +/* End of WHO HIV clinical stage 1 */ /* @dataElement: HIV.D.DE188 - WHO HIV clinical stage 2 @@ -6499,16 +6499,16 @@ define "WHO HIV clinical stage 1 (Care) Observation": @description: Client is currently assessed to be at a clinical stage 2, based on clinical assessment and diagnostics */ // TODO: Replace placeholder with relevant CQL logic -define "WHO HIV clinical stage 2 (Care)": - exists "WHO HIV clinical stage 2 (Care) Condition" - or exists "WHO HIV clinical stage 2 (Care) Observation" -define "WHO HIV clinical stage 2 (Care) Condition": +define "WHO HIV clinical stage 2": + exists "WHO HIV clinical stage 2 Condition" + or exists "WHO HIV clinical stage 2 Observation" +define "WHO HIV clinical stage 2 Condition": [Condition: Concepts."WHO HIV clinical stage 2"] -define "WHO HIV clinical stage 2 (Care) Observation": - "HIV clinical stage (Care) Observation" O +define "WHO HIV clinical stage 2 Observation": + "HIV clinical stage D.DE186 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."WHO HIV clinical stage 2" -/* End of WHO HIV clinical stage 2 (Care) */ +/* End of WHO HIV clinical stage 2 */ /* @dataElement: HIV.D.DE189 - WHO HIV clinical stage 3 @@ -6516,16 +6516,16 @@ define "WHO HIV clinical stage 2 (Care) Observation": @description: Client is currently assessed to be at a clinical stage 3, based on clinical assessment and diagnostics */ // TODO: Replace placeholder with relevant CQL logic -define "WHO HIV clinical stage 3 (Care)": - exists "WHO HIV clinical stage 3 (Care) Condition" - or exists "WHO HIV clinical stage 3 (Care) Observation" -define "WHO HIV clinical stage 3 (Care) Condition": +define "WHO HIV clinical stage 3": + exists "WHO HIV clinical stage 3 Condition" + or exists "WHO HIV clinical stage 3 Observation" +define "WHO HIV clinical stage 3 Condition": [Condition: Concepts."WHO HIV clinical stage 3"] -define "WHO HIV clinical stage 3 (Care) Observation": - "HIV clinical stage (Care) Observation" O +define "WHO HIV clinical stage 3 Observation": + "HIV clinical stage D.DE186 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."WHO HIV clinical stage 3" -/* End of WHO HIV clinical stage 3 (Care) */ +/* End of WHO HIV clinical stage 3 */ /* @dataElement: HIV.D.DE190 - WHO HIV clinical stage 4 @@ -6533,16 +6533,16 @@ define "WHO HIV clinical stage 3 (Care) Observation": @description: Client is currently assessed to be at a clinical stage 4, based on clinical assessment and diagnostics */ // TODO: Replace placeholder with relevant CQL logic -define "WHO HIV clinical stage 4 (Care)": - exists "WHO HIV clinical stage 4 (Care) Condition" - or exists "WHO HIV clinical stage 4 (Care) Observation" -define "WHO HIV clinical stage 4 (Care) Condition": +define "WHO HIV clinical stage 4": + exists "WHO HIV clinical stage 4 Condition" + or exists "WHO HIV clinical stage 4 Observation" +define "WHO HIV clinical stage 4 Condition": [Condition: Concepts."WHO HIV clinical stage 4"] -define "WHO HIV clinical stage 4 (Care) Observation": - "HIV clinical stage (Care) Observation" O +define "WHO HIV clinical stage 4 Observation": + "HIV clinical stage D.DE186 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."WHO HIV clinical stage 4" -/* End of WHO HIV clinical stage 4 (Care) */ +/* End of WHO HIV clinical stage 4 */ /* @dataElement: HIV.D.DE193 - Date viral load test results received by client @@ -6550,13 +6550,13 @@ define "WHO HIV clinical stage 4 (Care) Observation": @description: The date on which the client received results from viral load test */ // TODO: Replace placeholder with relevant CQL logic -define "Date viral load test results received by client (Care|DDE193)": +define "Date viral load test results received by client D.DE193": [Observation: Concepts."Date viral load test results received by client - HIV.D.DE193"] O where O.status in { 'final', 'amended', 'corrected' } -define "Date viral load test results received by client (Care|DDE193) Value": - "Date viral load test results received by client (Care|DDE193)" O +define "Date viral load test results received by client D.DE193 Value": + "Date viral load test results received by client D.DE193" O return O.value -/* End of Date viral load test results received by client (Care|DDE193) */ +/* End of Date viral load test results received by client D.DE193 */ /* @dataElement: HIV.D.DE194 - Date of viral load sample collection @@ -6564,13 +6564,13 @@ define "Date viral load test results received by client (Care|DDE193) Value": @description: Date and time when the sample was collected to test the client's HIV viral load */ // TODO: Replace placeholder with relevant CQL logic -define "Date of viral load sample collection (Care)": +define "Date of viral load sample collection D.DE194": [Observation: Concepts."Date of viral load sample collection - HIV.D.DE194"] O where O.status in { 'final', 'amended', 'corrected' } -define "Date of viral load sample collection (Care) Value": - "Date of viral load sample collection (Care)" O +define "Date of viral load sample collection D.DE194 Value": + "Date of viral load sample collection D.DE194" O return O.value -/* End of Date of viral load sample collection (Care) */ +/* End of Date of viral load sample collection D.DE194 */ /* @dataElement: HIV.D.DE195 - Date of scheduled review of viral load test results @@ -6578,13 +6578,13 @@ define "Date of viral load sample collection (Care) Value": @description: Expected date when client's viral load test results will be returned and reviewed */ // TODO: Replace placeholder with relevant CQL logic -define "Date of scheduled review of viral load test results (Care)": +define "Date of scheduled review of viral load test results": [Observation: Concepts."Date of scheduled review of viral load test results"] O where O.status in { 'final', 'amended', 'corrected' } -define "Date of scheduled review of viral load test results (Care) Value": - "Date of scheduled review of viral load test results (Care)" O +define "Date of scheduled review of viral load test results Value": + "Date of scheduled review of viral load test results" O return O.value -/* End of Date of scheduled review of viral load test results (Care) */ +/* End of Date of scheduled review of viral load test results */ /* @dataElement: HIV.D.DE217 - Reason ART stopped @@ -6592,12 +6592,12 @@ define "Date of scheduled review of viral load test results (Care) Value": @description: Reason client intentionally stopped ART */ // TODO: Replace placeholder with relevant CQL logic -define "Reason ART stopped (Care)": - exists "Reason ART stopped (Care) Observation" -define "Reason ART stopped (Care) Observation": +define "Reason ART stopped D.DE217": + exists "Reason ART stopped D.DE217 Observation" +define "Reason ART stopped D.DE217 Observation": [Observation: Concepts."Reason ART stopped - HIV.D.DE217"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Reason ART stopped (Care) */ +/* End of Reason ART stopped D.DE217 */ /* @dataElement: HIV.D.DE218 - Toxicity/side effects @@ -6605,16 +6605,16 @@ define "Reason ART stopped (Care) Observation": @description: Client stopped ART because of toxicity/side effects */ // TODO: Replace placeholder with relevant CQL logic -define "Toxicity/side effects (Care|DDE218)": - exists "Toxicity/side effects (Care|DDE218) Condition" - or exists "Toxicity/side effects (Care|DDE218) Observation" -define "Toxicity/side effects (Care|DDE218) Condition": +define "Toxicity/side effects D.DE218": + exists "Toxicity/side effects D.DE218 Condition" + or exists "Toxicity/side effects D.DE218 Observation" +define "Toxicity/side effects D.DE218 Condition": [Condition: Concepts."Toxicity/side effects - HIV.D.DE218"] -define "Toxicity/side effects (Care|DDE218) Observation": - "Reason ART stopped (Care) Observation" O +define "Toxicity/side effects D.DE218 Observation": + "Reason ART stopped D.DE217 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Toxicity/side effects - HIV.D.DE218" -/* End of Toxicity/side effects (Care|DDE218) */ +/* End of Toxicity/side effects D.DE218 */ /* @dataElement: HIV.D.DE219 - Severe illness, hospitalization @@ -6622,16 +6622,16 @@ define "Toxicity/side effects (Care|DDE218) Observation": @description: Client stopped ART because of severe illness, hospitalization */ // TODO: Replace placeholder with relevant CQL logic -define "Severe illness, hospitalization (Care)": - exists "Severe illness, hospitalization (Care) Condition" - or exists "Severe illness, hospitalization (Care) Observation" -define "Severe illness, hospitalization (Care) Condition": +define "Severe illness, hospitalization D.DE219": + exists "Severe illness, hospitalization D.DE219 Condition" + or exists "Severe illness, hospitalization D.DE219 Observation" +define "Severe illness, hospitalization D.DE219 Condition": [Condition: Concepts."Severe illness, hospitalization - HIV.D.DE219"] -define "Severe illness, hospitalization (Care) Observation": - "Reason ART stopped (Care) Observation" O +define "Severe illness, hospitalization D.DE219 Observation": + "Reason ART stopped D.DE217 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Severe illness, hospitalization - HIV.D.DE219" -/* End of Severe illness, hospitalization (Care) */ +/* End of Severe illness, hospitalization D.DE219 */ /* @dataElement: HIV.D.DE220 - Drugs out of stock @@ -6639,16 +6639,16 @@ define "Severe illness, hospitalization (Care) Observation": @description: Client stopped ART because drugs were out of stock */ // TODO: Replace placeholder with relevant CQL logic -define "Drugs out of stock (Care)": - exists "Drugs out of stock (Care) Condition" - or exists "Drugs out of stock (Care) Observation" -define "Drugs out of stock (Care) Condition": +define "Drugs out of stock": + exists "Drugs out of stock Condition" + or exists "Drugs out of stock Observation" +define "Drugs out of stock Condition": [Condition: Concepts."Drugs out of stock"] -define "Drugs out of stock (Care) Observation": - "Reason ART stopped (Care) Observation" O +define "Drugs out of stock Observation": + "Reason ART stopped D.DE217 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Drugs out of stock" -/* End of Drugs out of stock (Care) */ +/* End of Drugs out of stock */ /* @dataElement: HIV.D.DE221 - Client lacks finances @@ -6656,16 +6656,16 @@ define "Drugs out of stock (Care) Observation": @description: Client stopped ART because of lack of finances */ // TODO: Replace placeholder with relevant CQL logic -define "Client lacks finances (Care)": - exists "Client lacks finances (Care) Condition" - or exists "Client lacks finances (Care) Observation" -define "Client lacks finances (Care) Condition": +define "Client lacks finances": + exists "Client lacks finances Condition" + or exists "Client lacks finances Observation" +define "Client lacks finances Condition": [Condition: Concepts."Client lacks finances"] -define "Client lacks finances (Care) Observation": - "Reason ART stopped (Care) Observation" O +define "Client lacks finances Observation": + "Reason ART stopped D.DE217 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Client lacks finances" -/* End of Client lacks finances (Care) */ +/* End of Client lacks finances */ /* @dataElement: HIV.D.DE222 - Excluded HIV infection in infant @@ -6673,16 +6673,16 @@ define "Client lacks finances (Care) Observation": @description: Client stopped ART because HIV infection in infant was excluded */ // TODO: Replace placeholder with relevant CQL logic -define "Excluded HIV infection in infant (Care)": - exists "Excluded HIV infection in infant (Care) Condition" - or exists "Excluded HIV infection in infant (Care) Observation" -define "Excluded HIV infection in infant (Care) Condition": +define "Excluded HIV infection in infant D.DE222": + exists "Excluded HIV infection in infant D.DE222 Condition" + or exists "Excluded HIV infection in infant D.DE222 Observation" +define "Excluded HIV infection in infant D.DE222 Condition": [Condition: Concepts."Excluded HIV infection in infant - HIV.D.DE222"] -define "Excluded HIV infection in infant (Care) Observation": - "Reason ART stopped (Care) Observation" O +define "Excluded HIV infection in infant D.DE222 Observation": + "Reason ART stopped D.DE217 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Excluded HIV infection in infant - HIV.D.DE222" -/* End of Excluded HIV infection in infant (Care) */ +/* End of Excluded HIV infection in infant D.DE222 */ /* @dataElement: HIV.D.DE223 - Other reason for stopping ART @@ -6690,16 +6690,16 @@ define "Excluded HIV infection in infant (Care) Observation": @description: Client stopped ART because of other reason */ // TODO: Replace placeholder with relevant CQL logic -define "Other reason for stopping ART (Care)": - exists "Other reason for stopping ART (Care) Condition" - or exists "Other reason for stopping ART (Care) Observation" -define "Other reason for stopping ART (Care) Condition": +define "Other reason for stopping ART D.DE223": + exists "Other reason for stopping ART D.DE223 Condition" + or exists "Other reason for stopping ART D.DE223 Observation" +define "Other reason for stopping ART D.DE223 Condition": [Condition: Concepts."Other reason for stopping ART - HIV.D.DE223"] -define "Other reason for stopping ART (Care) Observation": - "Reason ART stopped (Care) Observation" O +define "Other reason for stopping ART D.DE223 Observation": + "Reason ART stopped D.DE217 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Other reason for stopping ART - HIV.D.DE223" -/* End of Other reason for stopping ART (Care) */ +/* End of Other reason for stopping ART D.DE223 */ /* @dataElement: HIV.D.DE225 - Treatment failure @@ -6707,12 +6707,12 @@ define "Other reason for stopping ART (Care) Observation": @description: ART treatment failure */ // TODO: Replace placeholder with relevant CQL logic -define "Treatment failure (Care)": - exists "Treatment failure (Care) Observation" -define "Treatment failure (Care) Observation": +define "Treatment failure": + exists "Treatment failure Observation" +define "Treatment failure Observation": [Observation: Concepts."Treatment failure"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Treatment failure (Care) */ +/* End of Treatment failure */ /* @dataElement: HIV.D.DE226 - Clinical failure @@ -6720,16 +6720,16 @@ define "Treatment failure (Care) Observation": @description: New or recurrent clinical event indicating severe immunodeficiency in adults or advanced or severe immunodeficiency in children */ // TODO: Replace placeholder with relevant CQL logic -define "Clinical failure (Care)": - exists "Clinical failure (Care) Condition" - or exists "Clinical failure (Care) Observation" -define "Clinical failure (Care) Condition": +define "Clinical failure": + exists "Clinical failure Condition" + or exists "Clinical failure Observation" +define "Clinical failure Condition": [Condition: Concepts."Clinical failure"] -define "Clinical failure (Care) Observation": - "Treatment failure (Care) Observation" O +define "Clinical failure Observation": + "Treatment failure Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Clinical failure" -/* End of Clinical failure (Care) */ +/* End of Clinical failure */ /* @dataElement: HIV.D.DE227 - Immunological failure @@ -6737,16 +6737,16 @@ define "Clinical failure (Care) Observation": @description: CD4 count at or below 250 cells/mm3 following clinical failure */ // TODO: Replace placeholder with relevant CQL logic -define "Immunological failure (Care)": - exists "Immunological failure (Care) Condition" - or exists "Immunological failure (Care) Observation" -define "Immunological failure (Care) Condition": +define "Immunological failure": + exists "Immunological failure Condition" + or exists "Immunological failure Observation" +define "Immunological failure Condition": [Condition: Concepts."Immunological failure"] -define "Immunological failure (Care) Observation": - "Treatment failure (Care) Observation" O +define "Immunological failure Observation": + "Treatment failure Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Immunological failure" -/* End of Immunological failure (Care) */ +/* End of Immunological failure */ /* @dataElement: HIV.D.DE228 - Virological failure @@ -6754,16 +6754,16 @@ define "Immunological failure (Care) Observation": @description: The inability to achieve or maintain viral suppression below a certain threshold indicated by viral load above 1000 copies/mL based on two consecutive viral load measurements in 3 months, with adherence support following the first viral load test */ // TODO: Replace placeholder with relevant CQL logic -define "Virological failure (Care)": - exists "Virological failure (Care) Condition" - or exists "Virological failure (Care) Observation" -define "Virological failure (Care) Condition": +define "Virological failure": + exists "Virological failure Condition" + or exists "Virological failure Observation" +define "Virological failure Condition": [Condition: Concepts."Virological failure"] -define "Virological failure (Care) Observation": - "Treatment failure (Care) Observation" O +define "Virological failure Observation": + "Treatment failure Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Virological failure" -/* End of Virological failure (Care) */ +/* End of Virological failure */ /* @dataElement: HIV.D.DE259 - Risk factors, comorbidities and coinfections signs and symptoms @@ -6771,12 +6771,12 @@ define "Virological failure (Care) Observation": @description: Signs and symptoms of opportunistic infections or other comorbidities experienced by client */ // TODO: Replace placeholder with relevant CQL logic -define "Risk factors, comorbidities and coinfections signs and symptoms (Care)": - exists "Risk factors, comorbidities and coinfections signs and symptoms (Care) Observation" -define "Risk factors, comorbidities and coinfections signs and symptoms (Care) Observation": +define "Risk factors, comorbidities and coinfections signs and symptoms": + exists "Risk factors, comorbidities and coinfections signs and symptoms Observation" +define "Risk factors, comorbidities and coinfections signs and symptoms Observation": [Observation: Concepts."Risk factors, comorbidities and coinfections signs and symptoms"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Risk factors, comorbidities and coinfections signs and symptoms (Care) */ +/* End of Risk factors, comorbidities and coinfections signs and symptoms */ /* @dataElement: HIV.D.DE282 - Presumptive TB @@ -6784,16 +6784,16 @@ define "Risk factors, comorbidities and coinfections signs and symptoms (Care) O @description: Client's comorbidities or coinfections or symptoms of these include presumptive TB */ // TODO: Replace placeholder with relevant CQL logic -define "Presumptive TB (Care)": - exists "Presumptive TB (Care) Condition" - or exists "Presumptive TB (Care) Observation" -define "Presumptive TB (Care) Condition": +define "Presumptive TB D.DE282": + exists "Presumptive TB D.DE282 Condition" + or exists "Presumptive TB D.DE282 Observation" +define "Presumptive TB D.DE282 Condition": [Condition: Concepts."Presumptive TB - HIV.D.DE282"] -define "Presumptive TB (Care) Observation": - "Risk factors, comorbidities and coinfections signs and symptoms (Care) Observation" O +define "Presumptive TB D.DE282 Observation": + "Risk factors, comorbidities and coinfections signs and symptoms Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Presumptive TB - HIV.D.DE282" -/* End of Presumptive TB (Care) */ +/* End of Presumptive TB D.DE282 */ /* @dataElement: HIV.D.DE289 - WHO HIV clinical stage condition or symptom @@ -6801,12 +6801,12 @@ define "Presumptive TB (Care) Observation": @description: New or recurrent clinical events used to categorize HIV disease severity based at baseline and follow up */ // TODO: Replace placeholder with relevant CQL logic -define "WHO HIV clinical stage condition or symptom (Care)": - exists "WHO HIV clinical stage condition or symptom (Care) Observation" -define "WHO HIV clinical stage condition or symptom (Care) Observation": +define "WHO HIV clinical stage condition or symptom D.DE289": + exists "WHO HIV clinical stage condition or symptom D.DE289 Observation" +define "WHO HIV clinical stage condition or symptom D.DE289 Observation": [Observation: Concepts."WHO HIV clinical stage condition or symptom - HIV.D.DE289"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of WHO HIV clinical stage condition or symptom (Care) */ +/* End of WHO HIV clinical stage condition or symptom D.DE289 */ /* @dataElement: HIV.D.DE290 - Asymptomatic @@ -6814,16 +6814,16 @@ define "WHO HIV clinical stage condition or symptom (Care) Observation": @description: No HIV-related symptoms reported and no clinical signs on examination */ // TODO: Replace placeholder with relevant CQL logic -define "Asymptomatic (Care)": - exists "Asymptomatic (Care) Condition" - or exists "Asymptomatic (Care) Observation" -define "Asymptomatic (Care) Condition": +define "Asymptomatic": + exists "Asymptomatic Condition" + or exists "Asymptomatic Observation" +define "Asymptomatic Condition": [Condition: Concepts."Asymptomatic"] -define "Asymptomatic (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Asymptomatic Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Asymptomatic" -/* End of Asymptomatic (Care) */ +/* End of Asymptomatic */ /* @dataElement: HIV.D.DE291 - Persistent generalized lymphadenopathy @@ -6831,16 +6831,16 @@ define "Asymptomatic (Care) Observation": @description: Persistent enlarged lymph nodes >1 cm at two or more non-contiguous sites (excluding inguinal) without known cause */ // TODO: Replace placeholder with relevant CQL logic -define "Persistent generalized lymphadenopathy (Care)": - exists "Persistent generalized lymphadenopathy (Care) Condition" - or exists "Persistent generalized lymphadenopathy (Care) Observation" -define "Persistent generalized lymphadenopathy (Care) Condition": +define "Persistent generalized lymphadenopathy": + exists "Persistent generalized lymphadenopathy Condition" + or exists "Persistent generalized lymphadenopathy Observation" +define "Persistent generalized lymphadenopathy Condition": [Condition: Concepts."Persistent generalized lymphadenopathy"] -define "Persistent generalized lymphadenopathy (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Persistent generalized lymphadenopathy Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Persistent generalized lymphadenopathy" -/* End of Persistent generalized lymphadenopathy (Care) */ +/* End of Persistent generalized lymphadenopathy */ /* @dataElement: HIV.D.DE292 - Moderate unexplained weight loss @@ -6848,16 +6848,16 @@ define "Persistent generalized lymphadenopathy (Care) Observation": @description: Moderate unexplained weight loss (<10% of presumed or measured body weight) */ // TODO: Replace placeholder with relevant CQL logic -define "Moderate unexplained weight loss (Care)": - exists "Moderate unexplained weight loss (Care) Condition" - or exists "Moderate unexplained weight loss (Care) Observation" -define "Moderate unexplained weight loss (Care) Condition": +define "Moderate unexplained weight loss": + exists "Moderate unexplained weight loss Condition" + or exists "Moderate unexplained weight loss Observation" +define "Moderate unexplained weight loss Condition": [Condition: Concepts."Moderate unexplained weight loss"] -define "Moderate unexplained weight loss (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Moderate unexplained weight loss Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Moderate unexplained weight loss" -/* End of Moderate unexplained weight loss (Care) */ +/* End of Moderate unexplained weight loss */ /* @dataElement: HIV.D.DE293 - Recurrent respiratory tract infections @@ -6865,16 +6865,16 @@ define "Moderate unexplained weight loss (Care) Observation": @description: Client's symptoms include recurrent respiratory tract infections including sinusitis, tonsillitis, otitis media or pharyngitis */ // TODO: Replace placeholder with relevant CQL logic -define "Recurrent respiratory tract infections (Care)": - exists "Recurrent respiratory tract infections (Care) Condition" - or exists "Recurrent respiratory tract infections (Care) Observation" -define "Recurrent respiratory tract infections (Care) Condition": +define "Recurrent respiratory tract infections": + exists "Recurrent respiratory tract infections Condition" + or exists "Recurrent respiratory tract infections Observation" +define "Recurrent respiratory tract infections Condition": [Condition: Concepts."Recurrent respiratory tract infections"] -define "Recurrent respiratory tract infections (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Recurrent respiratory tract infections Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Recurrent respiratory tract infections" -/* End of Recurrent respiratory tract infections (Care) */ +/* End of Recurrent respiratory tract infections */ /* @dataElement: HIV.D.DE294 - Unexplained persistent hepatosplenomegaly @@ -6882,16 +6882,16 @@ define "Recurrent respiratory tract infections (Care) Observation": @description: Client's symptoms include unexplained persistent hepatosplenomegaly */ // TODO: Replace placeholder with relevant CQL logic -define "Unexplained persistent hepatosplenomegaly (Care)": - exists "Unexplained persistent hepatosplenomegaly (Care) Condition" - or exists "Unexplained persistent hepatosplenomegaly (Care) Observation" -define "Unexplained persistent hepatosplenomegaly (Care) Condition": +define "Unexplained persistent hepatosplenomegaly": + exists "Unexplained persistent hepatosplenomegaly Condition" + or exists "Unexplained persistent hepatosplenomegaly Observation" +define "Unexplained persistent hepatosplenomegaly Condition": [Condition: Concepts."Unexplained persistent hepatosplenomegaly"] -define "Unexplained persistent hepatosplenomegaly (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Unexplained persistent hepatosplenomegaly Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Unexplained persistent hepatosplenomegaly" -/* End of Unexplained persistent hepatosplenomegaly (Care) */ +/* End of Unexplained persistent hepatosplenomegaly */ /* @dataElement: HIV.D.DE295 - Herpes zoster @@ -6899,16 +6899,16 @@ define "Unexplained persistent hepatosplenomegaly (Care) Observation": @description: Client's symptoms include herpes zoster */ // TODO: Replace placeholder with relevant CQL logic -define "Herpes zoster (Care)": - exists "Herpes zoster (Care) Condition" - or exists "Herpes zoster (Care) Observation" -define "Herpes zoster (Care) Condition": +define "Herpes zoster": + exists "Herpes zoster Condition" + or exists "Herpes zoster Observation" +define "Herpes zoster Condition": [Condition: Concepts."Herpes zoster"] -define "Herpes zoster (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Herpes zoster Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Herpes zoster" -/* End of Herpes zoster (Care) */ +/* End of Herpes zoster */ /* @dataElement: HIV.D.DE296 - Angular cheilitis @@ -6916,16 +6916,16 @@ define "Herpes zoster (Care) Observation": @description: Client's symptoms include angular cheilitis */ // TODO: Replace placeholder with relevant CQL logic -define "Angular cheilitis (Care)": - exists "Angular cheilitis (Care) Condition" - or exists "Angular cheilitis (Care) Observation" -define "Angular cheilitis (Care) Condition": +define "Angular cheilitis": + exists "Angular cheilitis Condition" + or exists "Angular cheilitis Observation" +define "Angular cheilitis Condition": [Condition: Concepts."Angular cheilitis"] -define "Angular cheilitis (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Angular cheilitis Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Angular cheilitis" -/* End of Angular cheilitis (Care) */ +/* End of Angular cheilitis */ /* @dataElement: HIV.D.DE297 - Linear gingival erythema @@ -6933,16 +6933,16 @@ define "Angular cheilitis (Care) Observation": @description: Client's symptoms include linear gingival erythema */ // TODO: Replace placeholder with relevant CQL logic -define "Linear gingival erythema (Care)": - exists "Linear gingival erythema (Care) Condition" - or exists "Linear gingival erythema (Care) Observation" -define "Linear gingival erythema (Care) Condition": +define "Linear gingival erythema": + exists "Linear gingival erythema Condition" + or exists "Linear gingival erythema Observation" +define "Linear gingival erythema Condition": [Condition: Concepts."Linear gingival erythema"] -define "Linear gingival erythema (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Linear gingival erythema Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Linear gingival erythema" -/* End of Linear gingival erythema (Care) */ +/* End of Linear gingival erythema */ /* @dataElement: HIV.D.DE298 - Recurrent oral ulceration @@ -6950,16 +6950,16 @@ define "Linear gingival erythema (Care) Observation": @description: Client's symptoms include recurrent oral ulceration */ // TODO: Replace placeholder with relevant CQL logic -define "Recurrent oral ulceration (Care)": - exists "Recurrent oral ulceration (Care) Condition" - or exists "Recurrent oral ulceration (Care) Observation" -define "Recurrent oral ulceration (Care) Condition": +define "Recurrent oral ulceration": + exists "Recurrent oral ulceration Condition" + or exists "Recurrent oral ulceration Observation" +define "Recurrent oral ulceration Condition": [Condition: Concepts."Recurrent oral ulceration"] -define "Recurrent oral ulceration (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Recurrent oral ulceration Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Recurrent oral ulceration" -/* End of Recurrent oral ulceration (Care) */ +/* End of Recurrent oral ulceration */ /* @dataElement: HIV.D.DE299 - Papular pruritic eruption @@ -6967,16 +6967,16 @@ define "Recurrent oral ulceration (Care) Observation": @description: Client's symptoms include papular pruritic eruption */ // TODO: Replace placeholder with relevant CQL logic -define "Papular pruritic eruption (Care)": - exists "Papular pruritic eruption (Care) Condition" - or exists "Papular pruritic eruption (Care) Observation" -define "Papular pruritic eruption (Care) Condition": +define "Papular pruritic eruption": + exists "Papular pruritic eruption Condition" + or exists "Papular pruritic eruption Observation" +define "Papular pruritic eruption Condition": [Condition: Concepts."Papular pruritic eruption"] -define "Papular pruritic eruption (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Papular pruritic eruption Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Papular pruritic eruption" -/* End of Papular pruritic eruption (Care) */ +/* End of Papular pruritic eruption */ /* @dataElement: HIV.D.DE300 - Fungal nail infections @@ -6984,16 +6984,16 @@ define "Papular pruritic eruption (Care) Observation": @description: Client's symptoms include fungal nail infections */ // TODO: Replace placeholder with relevant CQL logic -define "Fungal nail infections (Care)": - exists "Fungal nail infections (Care) Condition" - or exists "Fungal nail infections (Care) Observation" -define "Fungal nail infections (Care) Condition": +define "Fungal nail infections": + exists "Fungal nail infections Condition" + or exists "Fungal nail infections Observation" +define "Fungal nail infections Condition": [Condition: Concepts."Fungal nail infections"] -define "Fungal nail infections (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Fungal nail infections Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Fungal nail infections" -/* End of Fungal nail infections (Care) */ +/* End of Fungal nail infections */ /* @dataElement: HIV.D.DE301 - Seborrhoeic dermatitis @@ -7001,16 +7001,16 @@ define "Fungal nail infections (Care) Observation": @description: Client's symptoms include seborrhoeic dermatitis */ // TODO: Replace placeholder with relevant CQL logic -define "Seborrhoeic dermatitis (Care)": - exists "Seborrhoeic dermatitis (Care) Condition" - or exists "Seborrhoeic dermatitis (Care) Observation" -define "Seborrhoeic dermatitis (Care) Condition": +define "Seborrhoeic dermatitis": + exists "Seborrhoeic dermatitis Condition" + or exists "Seborrhoeic dermatitis Observation" +define "Seborrhoeic dermatitis Condition": [Condition: Concepts."Seborrhoeic dermatitis"] -define "Seborrhoeic dermatitis (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Seborrhoeic dermatitis Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Seborrhoeic dermatitis" -/* End of Seborrhoeic dermatitis (Care) */ +/* End of Seborrhoeic dermatitis */ /* @dataElement: HIV.D.DE302 - Extensive wart virus infection @@ -7018,16 +7018,16 @@ define "Seborrhoeic dermatitis (Care) Observation": @description: Client's symptoms include extensive wart virus infection */ // TODO: Replace placeholder with relevant CQL logic -define "Extensive wart virus infection (Care)": - exists "Extensive wart virus infection (Care) Condition" - or exists "Extensive wart virus infection (Care) Observation" -define "Extensive wart virus infection (Care) Condition": +define "Extensive wart virus infection": + exists "Extensive wart virus infection Condition" + or exists "Extensive wart virus infection Observation" +define "Extensive wart virus infection Condition": [Condition: Concepts."Extensive wart virus infection"] -define "Extensive wart virus infection (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Extensive wart virus infection Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Extensive wart virus infection" -/* End of Extensive wart virus infection (Care) */ +/* End of Extensive wart virus infection */ /* @dataElement: HIV.D.DE303 - Extensive molluscum contagiosum @@ -7035,16 +7035,16 @@ define "Extensive wart virus infection (Care) Observation": @description: Client's symptoms include extensive molluscum contagiosum */ // TODO: Replace placeholder with relevant CQL logic -define "Extensive molluscum contagiosum (Care)": - exists "Extensive molluscum contagiosum (Care) Condition" - or exists "Extensive molluscum contagiosum (Care) Observation" -define "Extensive molluscum contagiosum (Care) Condition": +define "Extensive molluscum contagiosum": + exists "Extensive molluscum contagiosum Condition" + or exists "Extensive molluscum contagiosum Observation" +define "Extensive molluscum contagiosum Condition": [Condition: Concepts."Extensive molluscum contagiosum"] -define "Extensive molluscum contagiosum (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Extensive molluscum contagiosum Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Extensive molluscum contagiosum" -/* End of Extensive molluscum contagiosum (Care) */ +/* End of Extensive molluscum contagiosum */ /* @dataElement: HIV.D.DE304 - Unexplained persistent parotid enlargement @@ -7052,16 +7052,16 @@ define "Extensive molluscum contagiosum (Care) Observation": @description: Client's symptoms include unexplained persistent parotid enlargement */ // TODO: Replace placeholder with relevant CQL logic -define "Unexplained persistent parotid enlargement (Care)": - exists "Unexplained persistent parotid enlargement (Care) Condition" - or exists "Unexplained persistent parotid enlargement (Care) Observation" -define "Unexplained persistent parotid enlargement (Care) Condition": +define "Unexplained persistent parotid enlargement": + exists "Unexplained persistent parotid enlargement Condition" + or exists "Unexplained persistent parotid enlargement Observation" +define "Unexplained persistent parotid enlargement Condition": [Condition: Concepts."Unexplained persistent parotid enlargement"] -define "Unexplained persistent parotid enlargement (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Unexplained persistent parotid enlargement Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Unexplained persistent parotid enlargement" -/* End of Unexplained persistent parotid enlargement (Care) */ +/* End of Unexplained persistent parotid enlargement */ /* @dataElement: HIV.D.DE305 - Unexplained severe weight loss in adults @@ -7069,16 +7069,16 @@ define "Unexplained persistent parotid enlargement (Care) Observation": @description: Unexplained severe weight loss (>10% of presumed or measured body weight) */ // TODO: Replace placeholder with relevant CQL logic -define "Unexplained severe weight loss in adults (Care)": - exists "Unexplained severe weight loss in adults (Care) Condition" - or exists "Unexplained severe weight loss in adults (Care) Observation" -define "Unexplained severe weight loss in adults (Care) Condition": +define "Unexplained severe weight loss in adults": + exists "Unexplained severe weight loss in adults Condition" + or exists "Unexplained severe weight loss in adults Observation" +define "Unexplained severe weight loss in adults Condition": [Condition: Concepts."Unexplained severe weight loss in adults"] -define "Unexplained severe weight loss in adults (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Unexplained severe weight loss in adults Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Unexplained severe weight loss in adults" -/* End of Unexplained severe weight loss in adults (Care) */ +/* End of Unexplained severe weight loss in adults */ /* @dataElement: HIV.D.DE306 - Unexplained moderate malnutrition not adequately responding to standard therapy @@ -7086,16 +7086,16 @@ define "Unexplained severe weight loss in adults (Care) Observation": @description: Defined as weight-for-height < - 2 z-score or mid-upper arm circumference 115 mm to <125 mm. For children younger than five years of age: stunting is defined as severe acute malnutrition - either weight for height < -3 z-score or mid-upper arm circumference <115 mm or the presence of oedema. */ // TODO: Replace placeholder with relevant CQL logic -define "Unexplained moderate malnutrition not adequately responding to standard therapy (Care)": - exists "Unexplained moderate malnutrition not adequately responding to standard therapy (Care) Condition" - or exists "Unexplained moderate malnutrition not adequately responding to standard therapy (Care) Observation" -define "Unexplained moderate malnutrition not adequately responding to standard therapy (Care) Condition": +define "Unexplained moderate malnutrition not adequately responding to standard therapy": + exists "Unexplained moderate malnutrition not adequately responding to standard therapy Condition" + or exists "Unexplained moderate malnutrition not adequately responding to standard therapy Observation" +define "Unexplained moderate malnutrition not adequately responding to standard therapy Condition": [Condition: Concepts."Unexplained moderate malnutrition not adequately responding to standard therapy"] -define "Unexplained moderate malnutrition not adequately responding to standard therapy (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Unexplained moderate malnutrition not adequately responding to standard therapy Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Unexplained moderate malnutrition not adequately responding to standard therapy" -/* End of Unexplained moderate malnutrition not adequately responding to standard therapy (Care) */ +/* End of Unexplained moderate malnutrition not adequately responding to standard therapy */ /* @dataElement: HIV.D.DE307 - Unexplained chronic diarrhoea for longer than 1 month @@ -7103,16 +7103,16 @@ define "Unexplained moderate malnutrition not adequately responding to standard @description: Client's symptoms include unexplained chronic diarrhoea for longer than 1 month */ // TODO: Replace placeholder with relevant CQL logic -define "Unexplained chronic diarrhoea for longer than 1 month (Care)": - exists "Unexplained chronic diarrhoea for longer than 1 month (Care) Condition" - or exists "Unexplained chronic diarrhoea for longer than 1 month (Care) Observation" -define "Unexplained chronic diarrhoea for longer than 1 month (Care) Condition": +define "Unexplained chronic diarrhoea for longer than 1 month": + exists "Unexplained chronic diarrhoea for longer than 1 month Condition" + or exists "Unexplained chronic diarrhoea for longer than 1 month Observation" +define "Unexplained chronic diarrhoea for longer than 1 month Condition": [Condition: Concepts."Unexplained chronic diarrhoea for longer than 1 month"] -define "Unexplained chronic diarrhoea for longer than 1 month (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Unexplained chronic diarrhoea for longer than 1 month Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Unexplained chronic diarrhoea for longer than 1 month" -/* End of Unexplained chronic diarrhoea for longer than 1 month (Care) */ +/* End of Unexplained chronic diarrhoea for longer than 1 month */ /* @dataElement: HIV.D.DE308 - Unexplained persistent diarrhoea 14 days or more @@ -7120,16 +7120,16 @@ define "Unexplained chronic diarrhoea for longer than 1 month (Care) Observation @description: Client's symptoms include unexplained persistent diarrhoea (14 days or more) */ // TODO: Replace placeholder with relevant CQL logic -define "Unexplained persistent diarrhoea 14 days or more (Care)": - exists "Unexplained persistent diarrhoea 14 days or more (Care) Condition" - or exists "Unexplained persistent diarrhoea 14 days or more (Care) Observation" -define "Unexplained persistent diarrhoea 14 days or more (Care) Condition": +define "Unexplained persistent diarrhoea 14 days or more": + exists "Unexplained persistent diarrhoea 14 days or more Condition" + or exists "Unexplained persistent diarrhoea 14 days or more Observation" +define "Unexplained persistent diarrhoea 14 days or more Condition": [Condition: Concepts."Unexplained persistent diarrhoea 14 days or more"] -define "Unexplained persistent diarrhoea 14 days or more (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Unexplained persistent diarrhoea 14 days or more Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Unexplained persistent diarrhoea 14 days or more" -/* End of Unexplained persistent diarrhoea 14 days or more (Care) */ +/* End of Unexplained persistent diarrhoea 14 days or more */ /* @dataElement: HIV.D.DE309 - Unexplained persistent fever above 37.5 C, intermittent or constant, for longer than one 1 month @@ -7137,16 +7137,16 @@ define "Unexplained persistent diarrhoea 14 days or more (Care) Observation": @description: Client's symptoms include unexplained persistent fever (above 37.5 C, intermittent or constant, for longer than one 1 month) */ // TODO: Replace placeholder with relevant CQL logic -define "Unexplained persistent fever above 37.5 C, intermittent or constant, for longer than one 1 month (Care)": - exists "Unexplained persistent fever above 37.5 C, intermittent or constant, for longer than one 1 month (Care) Condition" - or exists "Unexplained persistent fever above 37.5 C, intermittent or constant, for longer than one 1 month (Care) Observation" -define "Unexplained persistent fever above 37.5 C, intermittent or constant, for longer than one 1 month (Care) Condition": +define "Unexplained persistent fever above 37.5 C, intermittent or constant, for longer than one 1 month": + exists "Unexplained persistent fever above 37.5 C, intermittent or constant, for longer than one 1 month Condition" + or exists "Unexplained persistent fever above 37.5 C, intermittent or constant, for longer than one 1 month Observation" +define "Unexplained persistent fever above 37.5 C, intermittent or constant, for longer than one 1 month Condition": [Condition: Concepts."Unexplained persistent fever above 37.5 C, intermittent or constant, for longer than one 1 month"] -define "Unexplained persistent fever above 37.5 C, intermittent or constant, for longer than one 1 month (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Unexplained persistent fever above 37.5 C, intermittent or constant, for longer than one 1 month Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Unexplained persistent fever above 37.5 C, intermittent or constant, for longer than one 1 month" -/* End of Unexplained persistent fever above 37.5 C, intermittent or constant, for longer than one 1 month (Care) */ +/* End of Unexplained persistent fever above 37.5 C, intermittent or constant, for longer than one 1 month */ /* @dataElement: HIV.D.DE310 - Persistent oral candidiasis @@ -7154,16 +7154,16 @@ define "Unexplained persistent fever above 37.5 C, intermittent or constant, for @description: Client's symptoms include persistent oral candidiasis */ // TODO: Replace placeholder with relevant CQL logic -define "Persistent oral candidiasis (Care)": - exists "Persistent oral candidiasis (Care) Condition" - or exists "Persistent oral candidiasis (Care) Observation" -define "Persistent oral candidiasis (Care) Condition": +define "Persistent oral candidiasis": + exists "Persistent oral candidiasis Condition" + or exists "Persistent oral candidiasis Observation" +define "Persistent oral candidiasis Condition": [Condition: Concepts."Persistent oral candidiasis"] -define "Persistent oral candidiasis (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Persistent oral candidiasis Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Persistent oral candidiasis" -/* End of Persistent oral candidiasis (Care) */ +/* End of Persistent oral candidiasis */ /* @dataElement: HIV.D.DE311 - Oral hairy leukoplakia @@ -7171,16 +7171,16 @@ define "Persistent oral candidiasis (Care) Observation": @description: Client has fine white small linear or corrugated lesions on lateral borders of the tongue that do not scrape off */ // TODO: Replace placeholder with relevant CQL logic -define "Oral hairy leukoplakia (Care)": - exists "Oral hairy leukoplakia (Care) Condition" - or exists "Oral hairy leukoplakia (Care) Observation" -define "Oral hairy leukoplakia (Care) Condition": +define "Oral hairy leukoplakia": + exists "Oral hairy leukoplakia Condition" + or exists "Oral hairy leukoplakia Observation" +define "Oral hairy leukoplakia Condition": [Condition: Concepts."Oral hairy leukoplakia"] -define "Oral hairy leukoplakia (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Oral hairy leukoplakia Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Oral hairy leukoplakia" -/* End of Oral hairy leukoplakia (Care) */ +/* End of Oral hairy leukoplakia */ /* @dataElement: HIV.D.DE312 - Pulmonary TB @@ -7188,16 +7188,16 @@ define "Oral hairy leukoplakia (Care) Observation": @description: Client's symptoms include pulmonary TB */ // TODO: Replace placeholder with relevant CQL logic -define "Pulmonary TB (Care)": - exists "Pulmonary TB (Care) Condition" - or exists "Pulmonary TB (Care) Observation" -define "Pulmonary TB (Care) Condition": +define "Pulmonary TB D.DE312": + exists "Pulmonary TB D.DE312 Condition" + or exists "Pulmonary TB D.DE312 Observation" +define "Pulmonary TB D.DE312 Condition": [Condition: Concepts."Pulmonary TB - HIV.D.DE312"] -define "Pulmonary TB (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Pulmonary TB D.DE312 Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Pulmonary TB - HIV.D.DE312" -/* End of Pulmonary TB (Care) */ +/* End of Pulmonary TB D.DE312 */ /* @dataElement: HIV.D.DE313 - Lymph node TB @@ -7205,16 +7205,16 @@ define "Pulmonary TB (Care) Observation": @description: Client's symptoms include lymph node TB */ // TODO: Replace placeholder with relevant CQL logic -define "Lymph node TB (Care)": - exists "Lymph node TB (Care) Condition" - or exists "Lymph node TB (Care) Observation" -define "Lymph node TB (Care) Condition": +define "Lymph node TB D.DE313": + exists "Lymph node TB D.DE313 Condition" + or exists "Lymph node TB D.DE313 Observation" +define "Lymph node TB D.DE313 Condition": [Condition: Concepts."Lymph node TB - HIV.D.DE313"] -define "Lymph node TB (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Lymph node TB D.DE313 Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Lymph node TB - HIV.D.DE313" -/* End of Lymph node TB (Care) */ +/* End of Lymph node TB D.DE313 */ /* @dataElement: HIV.D.DE314 - Severe bacterial infections such as pneumonia, empyema, pyomyositis, bone or joint infection, meningitis, bacteraemia @@ -7222,16 +7222,16 @@ define "Lymph node TB (Care) Observation": @description: Client's symptoms include severe bacterial infections (such as pneumonia, empyema, pyomyositis, bone or joint infection, meningitis, bacteraemia) */ // TODO: Replace placeholder with relevant CQL logic -define "Severe bacterial infections such as pneumonia, empyema, pyomyositis, bone or joint infection, meningitis, bacteraemia (Care)": - exists "Severe bacterial infections such as pneumonia, empyema, pyomyositis, bone or joint infection, meningitis, bacteraemia (Care) Condition" - or exists "Severe bacterial infections such as pneumonia, empyema, pyomyositis, bone or joint infection, meningitis, bacteraemia (Care) Observation" -define "Severe bacterial infections such as pneumonia, empyema, pyomyositis, bone or joint infection, meningitis, bacteraemia (Care) Condition": +define "Severe bacterial infections such as pneumonia, empyema, pyomyositis, bone or joint infection, meningitis, bacteraemia": + exists "Severe bacterial infections such as pneumonia, empyema, pyomyositis, bone or joint infection, meningitis, bacteraemia Condition" + or exists "Severe bacterial infections such as pneumonia, empyema, pyomyositis, bone or joint infection, meningitis, bacteraemia Observation" +define "Severe bacterial infections such as pneumonia, empyema, pyomyositis, bone or joint infection, meningitis, bacteraemia Condition": [Condition: Concepts."Severe bacterial infections such as pneumonia, empyema, pyomyositis, bone or joint infection, meningitis, bacteraemia"] -define "Severe bacterial infections such as pneumonia, empyema, pyomyositis, bone or joint infection, meningitis, bacteraemia (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Severe bacterial infections such as pneumonia, empyema, pyomyositis, bone or joint infection, meningitis, bacteraemia Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Severe bacterial infections such as pneumonia, empyema, pyomyositis, bone or joint infection, meningitis, bacteraemia" -/* End of Severe bacterial infections such as pneumonia, empyema, pyomyositis, bone or joint infection, meningitis, bacteraemia (Care) */ +/* End of Severe bacterial infections such as pneumonia, empyema, pyomyositis, bone or joint infection, meningitis, bacteraemia */ /* @dataElement: HIV.D.DE315 - Severe recurrent bacterial pneumonia @@ -7239,16 +7239,16 @@ define "Severe bacterial infections such as pneumonia, empyema, pyomyositis, bon @description: Client's symptoms include severe recurrent bacterial pneumonia */ // TODO: Replace placeholder with relevant CQL logic -define "Severe recurrent bacterial pneumonia (Care)": - exists "Severe recurrent bacterial pneumonia (Care) Condition" - or exists "Severe recurrent bacterial pneumonia (Care) Observation" -define "Severe recurrent bacterial pneumonia (Care) Condition": +define "Severe recurrent bacterial pneumonia": + exists "Severe recurrent bacterial pneumonia Condition" + or exists "Severe recurrent bacterial pneumonia Observation" +define "Severe recurrent bacterial pneumonia Condition": [Condition: Concepts."Severe recurrent bacterial pneumonia"] -define "Severe recurrent bacterial pneumonia (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Severe recurrent bacterial pneumonia Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Severe recurrent bacterial pneumonia" -/* End of Severe recurrent bacterial pneumonia (Care) */ +/* End of Severe recurrent bacterial pneumonia */ /* @dataElement: HIV.D.DE316 - Acute necrotizing ulcerative stomatitis @@ -7256,16 +7256,16 @@ define "Severe recurrent bacterial pneumonia (Care) Observation": @description: Client's symptoms include acute necrotizing ulcerative stomatitis */ // TODO: Replace placeholder with relevant CQL logic -define "Acute necrotizing ulcerative stomatitis (Care)": - exists "Acute necrotizing ulcerative stomatitis (Care) Condition" - or exists "Acute necrotizing ulcerative stomatitis (Care) Observation" -define "Acute necrotizing ulcerative stomatitis (Care) Condition": +define "Acute necrotizing ulcerative stomatitis": + exists "Acute necrotizing ulcerative stomatitis Condition" + or exists "Acute necrotizing ulcerative stomatitis Observation" +define "Acute necrotizing ulcerative stomatitis Condition": [Condition: Concepts."Acute necrotizing ulcerative stomatitis"] -define "Acute necrotizing ulcerative stomatitis (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Acute necrotizing ulcerative stomatitis Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Acute necrotizing ulcerative stomatitis" -/* End of Acute necrotizing ulcerative stomatitis (Care) */ +/* End of Acute necrotizing ulcerative stomatitis */ /* @dataElement: HIV.D.DE317 - Acute necrotizing ulcerative gingivitis @@ -7273,16 +7273,16 @@ define "Acute necrotizing ulcerative stomatitis (Care) Observation": @description: Client's symptoms include acute necrotizing ulcerative gingivitis */ // TODO: Replace placeholder with relevant CQL logic -define "Acute necrotizing ulcerative gingivitis (Care)": - exists "Acute necrotizing ulcerative gingivitis (Care) Condition" - or exists "Acute necrotizing ulcerative gingivitis (Care) Observation" -define "Acute necrotizing ulcerative gingivitis (Care) Condition": +define "Acute necrotizing ulcerative gingivitis": + exists "Acute necrotizing ulcerative gingivitis Condition" + or exists "Acute necrotizing ulcerative gingivitis Observation" +define "Acute necrotizing ulcerative gingivitis Condition": [Condition: Concepts."Acute necrotizing ulcerative gingivitis"] -define "Acute necrotizing ulcerative gingivitis (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Acute necrotizing ulcerative gingivitis Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Acute necrotizing ulcerative gingivitis" -/* End of Acute necrotizing ulcerative gingivitis (Care) */ +/* End of Acute necrotizing ulcerative gingivitis */ /* @dataElement: HIV.D.DE318 - Acute necrotizing ulcerative periodontitis @@ -7290,16 +7290,16 @@ define "Acute necrotizing ulcerative gingivitis (Care) Observation": @description: Client's symptoms include acute necrotizing ulcerative periodontitis */ // TODO: Replace placeholder with relevant CQL logic -define "Acute necrotizing ulcerative periodontitis (Care)": - exists "Acute necrotizing ulcerative periodontitis (Care) Condition" - or exists "Acute necrotizing ulcerative periodontitis (Care) Observation" -define "Acute necrotizing ulcerative periodontitis (Care) Condition": +define "Acute necrotizing ulcerative periodontitis": + exists "Acute necrotizing ulcerative periodontitis Condition" + or exists "Acute necrotizing ulcerative periodontitis Observation" +define "Acute necrotizing ulcerative periodontitis Condition": [Condition: Concepts."Acute necrotizing ulcerative periodontitis"] -define "Acute necrotizing ulcerative periodontitis (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Acute necrotizing ulcerative periodontitis Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Acute necrotizing ulcerative periodontitis" -/* End of Acute necrotizing ulcerative periodontitis (Care) */ +/* End of Acute necrotizing ulcerative periodontitis */ /* @dataElement: HIV.D.DE319 - Unexplained anaemia <8 g/dL @@ -7307,16 +7307,16 @@ define "Acute necrotizing ulcerative periodontitis (Care) Observation": @description: Client's symptoms include unexplained anaemia (<8 g/dL) */ // TODO: Replace placeholder with relevant CQL logic -define "Unexplained anaemia <8 g/dL (Care)": - exists "Unexplained anaemia <8 g/dL (Care) Condition" - or exists "Unexplained anaemia <8 g/dL (Care) Observation" -define "Unexplained anaemia <8 g/dL (Care) Condition": +define "Unexplained anaemia <8 g/dL": + exists "Unexplained anaemia <8 g/dL Condition" + or exists "Unexplained anaemia <8 g/dL Observation" +define "Unexplained anaemia <8 g/dL Condition": [Condition: Concepts."Unexplained anaemia <8 g/dL"] -define "Unexplained anaemia <8 g/dL (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Unexplained anaemia <8 g/dL Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Unexplained anaemia <8 g/dL" -/* End of Unexplained anaemia <8 g/dL (Care) */ +/* End of Unexplained anaemia <8 g/dL */ /* @dataElement: HIV.D.DE320 - Neutropaenia <0.5 x 10^9/L @@ -7324,16 +7324,16 @@ define "Unexplained anaemia <8 g/dL (Care) Observation": @description: Client's symptoms include neutropaenia (<0.5 x 10^9/L) */ // TODO: Replace placeholder with relevant CQL logic -define "Neutropaenia <0.5 x 10^9/L (Care)": - exists "Neutropaenia <0.5 x 10^9/L (Care) Condition" - or exists "Neutropaenia <0.5 x 10^9/L (Care) Observation" -define "Neutropaenia <0.5 x 10^9/L (Care) Condition": +define "Neutropaenia <0.5 x 10^9/L": + exists "Neutropaenia <0.5 x 10^9/L Condition" + or exists "Neutropaenia <0.5 x 10^9/L Observation" +define "Neutropaenia <0.5 x 10^9/L Condition": [Condition: Concepts."Neutropaenia <0.5 x 10^9/L"] -define "Neutropaenia <0.5 x 10^9/L (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Neutropaenia <0.5 x 10^9/L Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Neutropaenia <0.5 x 10^9/L" -/* End of Neutropaenia <0.5 x 10^9/L (Care) */ +/* End of Neutropaenia <0.5 x 10^9/L */ /* @dataElement: HIV.D.DE321 - Chronic thrombocytopaenia <50 x 10^9/L @@ -7341,16 +7341,16 @@ define "Neutropaenia <0.5 x 10^9/L (Care) Observation": @description: Client's symptoms include chronic thrombocytopaenia (<50 x 10^9/L) */ // TODO: Replace placeholder with relevant CQL logic -define "Chronic thrombocytopaenia <50 x 10^9/L (Care)": - exists "Chronic thrombocytopaenia <50 x 10^9/L (Care) Condition" - or exists "Chronic thrombocytopaenia <50 x 10^9/L (Care) Observation" -define "Chronic thrombocytopaenia <50 x 10^9/L (Care) Condition": +define "Chronic thrombocytopaenia <50 x 10^9/L": + exists "Chronic thrombocytopaenia <50 x 10^9/L Condition" + or exists "Chronic thrombocytopaenia <50 x 10^9/L Observation" +define "Chronic thrombocytopaenia <50 x 10^9/L Condition": [Condition: Concepts."Chronic thrombocytopaenia <50 x 10^9/L"] -define "Chronic thrombocytopaenia <50 x 10^9/L (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Chronic thrombocytopaenia <50 x 10^9/L Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Chronic thrombocytopaenia <50 x 10^9/L" -/* End of Chronic thrombocytopaenia <50 x 10^9/L (Care) */ +/* End of Chronic thrombocytopaenia <50 x 10^9/L */ /* @dataElement: HIV.D.DE322 - Symptomatic lymphoid interstitial pneumonitis @@ -7358,16 +7358,16 @@ define "Chronic thrombocytopaenia <50 x 10^9/L (Care) Observation": @description: Client's symptoms include symptomatic lymphoid interstitial pneumonitis */ // TODO: Replace placeholder with relevant CQL logic -define "Symptomatic lymphoid interstitial pneumonitis (Care)": - exists "Symptomatic lymphoid interstitial pneumonitis (Care) Condition" - or exists "Symptomatic lymphoid interstitial pneumonitis (Care) Observation" -define "Symptomatic lymphoid interstitial pneumonitis (Care) Condition": +define "Symptomatic lymphoid interstitial pneumonitis": + exists "Symptomatic lymphoid interstitial pneumonitis Condition" + or exists "Symptomatic lymphoid interstitial pneumonitis Observation" +define "Symptomatic lymphoid interstitial pneumonitis Condition": [Condition: Concepts."Symptomatic lymphoid interstitial pneumonitis"] -define "Symptomatic lymphoid interstitial pneumonitis (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Symptomatic lymphoid interstitial pneumonitis Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Symptomatic lymphoid interstitial pneumonitis" -/* End of Symptomatic lymphoid interstitial pneumonitis (Care) */ +/* End of Symptomatic lymphoid interstitial pneumonitis */ /* @dataElement: HIV.D.DE323 - Chronic HIV-associated lung disease, including bronchiectasis @@ -7375,16 +7375,16 @@ define "Symptomatic lymphoid interstitial pneumonitis (Care) Observation": @description: Client's symptoms include chronic HIV-associated lung disease, including bronchiectasis */ // TODO: Replace placeholder with relevant CQL logic -define "Chronic HIV-associated lung disease, including bronchiectasis (Care)": - exists "Chronic HIV-associated lung disease, including bronchiectasis (Care) Condition" - or exists "Chronic HIV-associated lung disease, including bronchiectasis (Care) Observation" -define "Chronic HIV-associated lung disease, including bronchiectasis (Care) Condition": +define "Chronic HIV-associated lung disease, including bronchiectasis": + exists "Chronic HIV-associated lung disease, including bronchiectasis Condition" + or exists "Chronic HIV-associated lung disease, including bronchiectasis Observation" +define "Chronic HIV-associated lung disease, including bronchiectasis Condition": [Condition: Concepts."Chronic HIV-associated lung disease, including bronchiectasis"] -define "Chronic HIV-associated lung disease, including bronchiectasis (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Chronic HIV-associated lung disease, including bronchiectasis Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Chronic HIV-associated lung disease, including bronchiectasis" -/* End of Chronic HIV-associated lung disease, including bronchiectasis (Care) */ +/* End of Chronic HIV-associated lung disease, including bronchiectasis */ /* @dataElement: HIV.D.DE324 - HIV wasting syndrome @@ -7392,16 +7392,16 @@ define "Chronic HIV-associated lung disease, including bronchiectasis (Care) Obs @description: Unexplained involuntary weight loss (>10% baseline body weight), with obvious wasting or body mass index <18.5; PLUS EITHER unexplained chronic reported for longer than one month; OR reports of fever or night sweats for more than one month without other cause and lack of response to antibiotics or antimalarial agents; malaria must be excluded in malarious areas. */ // TODO: Replace placeholder with relevant CQL logic -define "HIV wasting syndrome (Care)": - exists "HIV wasting syndrome (Care) Condition" - or exists "HIV wasting syndrome (Care) Observation" -define "HIV wasting syndrome (Care) Condition": +define "HIV wasting syndrome": + exists "HIV wasting syndrome Condition" + or exists "HIV wasting syndrome Observation" +define "HIV wasting syndrome Condition": [Condition: Concepts."HIV wasting syndrome"] -define "HIV wasting syndrome (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "HIV wasting syndrome Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."HIV wasting syndrome" -/* End of HIV wasting syndrome (Care) */ +/* End of HIV wasting syndrome */ /* @dataElement: HIV.D.DE325 - Unexplained severe wasting not responding to standard therapy @@ -7409,16 +7409,16 @@ define "HIV wasting syndrome (Care) Observation": @description: Client has unexplained severe wasting not responding to standard therapy . For under 5 years old, defined as weight-for-height < -3 z-score */ // TODO: Replace placeholder with relevant CQL logic -define "Unexplained severe wasting not responding to standard therapy (Care)": - exists "Unexplained severe wasting not responding to standard therapy (Care) Condition" - or exists "Unexplained severe wasting not responding to standard therapy (Care) Observation" -define "Unexplained severe wasting not responding to standard therapy (Care) Condition": +define "Unexplained severe wasting not responding to standard therapy": + exists "Unexplained severe wasting not responding to standard therapy Condition" + or exists "Unexplained severe wasting not responding to standard therapy Observation" +define "Unexplained severe wasting not responding to standard therapy Condition": [Condition: Concepts."Unexplained severe wasting not responding to standard therapy"] -define "Unexplained severe wasting not responding to standard therapy (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Unexplained severe wasting not responding to standard therapy Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Unexplained severe wasting not responding to standard therapy" -/* End of Unexplained severe wasting not responding to standard therapy (Care) */ +/* End of Unexplained severe wasting not responding to standard therapy */ /* @dataElement: HIV.D.DE326 - Unexplained stunting not responding to standard therapy @@ -7426,16 +7426,16 @@ define "Unexplained severe wasting not responding to standard therapy (Care) Obs @description: Client has unexplained stunting not responding to standard therapy . For under 5 years old, defined as length-for- age/height-for-age < -2 z-score */ // TODO: Replace placeholder with relevant CQL logic -define "Unexplained stunting not responding to standard therapy (Care)": - exists "Unexplained stunting not responding to standard therapy (Care) Condition" - or exists "Unexplained stunting not responding to standard therapy (Care) Observation" -define "Unexplained stunting not responding to standard therapy (Care) Condition": +define "Unexplained stunting not responding to standard therapy": + exists "Unexplained stunting not responding to standard therapy Condition" + or exists "Unexplained stunting not responding to standard therapy Observation" +define "Unexplained stunting not responding to standard therapy Condition": [Condition: Concepts."Unexplained stunting not responding to standard therapy"] -define "Unexplained stunting not responding to standard therapy (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Unexplained stunting not responding to standard therapy Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Unexplained stunting not responding to standard therapy" -/* End of Unexplained stunting not responding to standard therapy (Care) */ +/* End of Unexplained stunting not responding to standard therapy */ /* @dataElement: HIV.D.DE327 - Unexplained severe malnutrition not responding to standard therapy @@ -7443,16 +7443,16 @@ define "Unexplained stunting not responding to standard therapy (Care) Observati @description: Client has unexplained severe malnutrition not responding to standard therapy . For under 5 years old, weight for height < -3 z-score or mid-upper arm circumference <115 mm or the presence of oedema */ // TODO: Replace placeholder with relevant CQL logic -define "Unexplained severe malnutrition not responding to standard therapy (Care)": - exists "Unexplained severe malnutrition not responding to standard therapy (Care) Condition" - or exists "Unexplained severe malnutrition not responding to standard therapy (Care) Observation" -define "Unexplained severe malnutrition not responding to standard therapy (Care) Condition": +define "Unexplained severe malnutrition not responding to standard therapy": + exists "Unexplained severe malnutrition not responding to standard therapy Condition" + or exists "Unexplained severe malnutrition not responding to standard therapy Observation" +define "Unexplained severe malnutrition not responding to standard therapy Condition": [Condition: Concepts."Unexplained severe malnutrition not responding to standard therapy"] -define "Unexplained severe malnutrition not responding to standard therapy (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Unexplained severe malnutrition not responding to standard therapy Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Unexplained severe malnutrition not responding to standard therapy" -/* End of Unexplained severe malnutrition not responding to standard therapy (Care) */ +/* End of Unexplained severe malnutrition not responding to standard therapy */ /* @dataElement: HIV.D.DE328 - Pneumocystis jirovecii pneumonia @@ -7460,16 +7460,16 @@ define "Unexplained severe malnutrition not responding to standard therapy (Care @description: Client's symptoms include pneumocystis (jirovecii) pneumonia */ // TODO: Replace placeholder with relevant CQL logic -define "Pneumocystis jirovecii pneumonia (Care)": - exists "Pneumocystis jirovecii pneumonia (Care) Condition" - or exists "Pneumocystis jirovecii pneumonia (Care) Observation" -define "Pneumocystis jirovecii pneumonia (Care) Condition": +define "Pneumocystis jirovecii pneumonia": + exists "Pneumocystis jirovecii pneumonia Condition" + or exists "Pneumocystis jirovecii pneumonia Observation" +define "Pneumocystis jirovecii pneumonia Condition": [Condition: Concepts."Pneumocystis jirovecii pneumonia"] -define "Pneumocystis jirovecii pneumonia (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Pneumocystis jirovecii pneumonia Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Pneumocystis jirovecii pneumonia" -/* End of Pneumocystis jirovecii pneumonia (Care) */ +/* End of Pneumocystis jirovecii pneumonia */ /* @dataElement: HIV.D.DE329 - Recurrent severe bacterial pneumonia @@ -7477,16 +7477,16 @@ define "Pneumocystis jirovecii pneumonia (Care) Observation": @description: Client's symptoms include recurrent severe bacterial pneumonia */ // TODO: Replace placeholder with relevant CQL logic -define "Recurrent severe bacterial pneumonia (Care)": - exists "Recurrent severe bacterial pneumonia (Care) Condition" - or exists "Recurrent severe bacterial pneumonia (Care) Observation" -define "Recurrent severe bacterial pneumonia (Care) Condition": +define "Recurrent severe bacterial pneumonia": + exists "Recurrent severe bacterial pneumonia Condition" + or exists "Recurrent severe bacterial pneumonia Observation" +define "Recurrent severe bacterial pneumonia Condition": [Condition: Concepts."Recurrent severe bacterial pneumonia"] -define "Recurrent severe bacterial pneumonia (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Recurrent severe bacterial pneumonia Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Recurrent severe bacterial pneumonia" -/* End of Recurrent severe bacterial pneumonia (Care) */ +/* End of Recurrent severe bacterial pneumonia */ /* @dataElement: HIV.D.DE330 - Recurrent severe bacterial infections such as empyema, pyomyositis, bone or joint infection, meningitis, but excluding pneumonia @@ -7494,16 +7494,16 @@ define "Recurrent severe bacterial pneumonia (Care) Observation": @description: Client's symptoms include recurrent severe bacterial infections (such as empyema, pyomyositis, bone or joint infection, meningitis, but excluding pneumonia) */ // TODO: Replace placeholder with relevant CQL logic -define "Recurrent severe bacterial infections such as empyema, pyomyositis, bone or joint infection, meningitis, but excluding pneumonia (Care)": - exists "Recurrent severe bacterial infections such as empyema, pyomyositis, bone or joint infection, meningitis, but excluding pneumonia (Care) Condition" - or exists "Recurrent severe bacterial infections such as empyema, pyomyositis, bone or joint infection, meningitis, but excluding pneumonia (Care) Observation" -define "Recurrent severe bacterial infections such as empyema, pyomyositis, bone or joint infection, meningitis, but excluding pneumonia (Care) Condition": +define "Recurrent severe bacterial infections such as empyema, pyomyositis, bone or joint infection, meningitis, but excluding pneumonia": + exists "Recurrent severe bacterial infections such as empyema, pyomyositis, bone or joint infection, meningitis, but excluding pneumonia Condition" + or exists "Recurrent severe bacterial infections such as empyema, pyomyositis, bone or joint infection, meningitis, but excluding pneumonia Observation" +define "Recurrent severe bacterial infections such as empyema, pyomyositis, bone or joint infection, meningitis, but excluding pneumonia Condition": [Condition: Concepts."Recurrent severe bacterial infections such as empyema, pyomyositis, bone or joint infection, meningitis, but excluding pneumonia"] -define "Recurrent severe bacterial infections such as empyema, pyomyositis, bone or joint infection, meningitis, but excluding pneumonia (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Recurrent severe bacterial infections such as empyema, pyomyositis, bone or joint infection, meningitis, but excluding pneumonia Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Recurrent severe bacterial infections such as empyema, pyomyositis, bone or joint infection, meningitis, but excluding pneumonia" -/* End of Recurrent severe bacterial infections such as empyema, pyomyositis, bone or joint infection, meningitis, but excluding pneumonia (Care) */ +/* End of Recurrent severe bacterial infections such as empyema, pyomyositis, bone or joint infection, meningitis, but excluding pneumonia */ /* @dataElement: HIV.D.DE331 - Empyema @@ -7511,16 +7511,16 @@ define "Recurrent severe bacterial infections such as empyema, pyomyositis, bone @description: Client's symptoms include recurrent empyema */ // TODO: Replace placeholder with relevant CQL logic -define "Empyema (Care)": - exists "Empyema (Care) Condition" - or exists "Empyema (Care) Observation" -define "Empyema (Care) Condition": +define "Empyema": + exists "Empyema Condition" + or exists "Empyema Observation" +define "Empyema Condition": [Condition: Concepts."Empyema"] -define "Empyema (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Empyema Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Empyema" -/* End of Empyema (Care) */ +/* End of Empyema */ /* @dataElement: HIV.D.DE332 - Pyomyositis @@ -7528,16 +7528,16 @@ define "Empyema (Care) Observation": @description: Client's symptoms include recurrent pyomyositis */ // TODO: Replace placeholder with relevant CQL logic -define "Pyomyositis (Care)": - exists "Pyomyositis (Care) Condition" - or exists "Pyomyositis (Care) Observation" -define "Pyomyositis (Care) Condition": +define "Pyomyositis": + exists "Pyomyositis Condition" + or exists "Pyomyositis Observation" +define "Pyomyositis Condition": [Condition: Concepts."Pyomyositis"] -define "Pyomyositis (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Pyomyositis Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Pyomyositis" -/* End of Pyomyositis (Care) */ +/* End of Pyomyositis */ /* @dataElement: HIV.D.DE333 - Bone or joint infection @@ -7545,16 +7545,16 @@ define "Pyomyositis (Care) Observation": @description: Client's symptoms include recurrent bone or joint infections */ // TODO: Replace placeholder with relevant CQL logic -define "Bone or joint infection (Care)": - exists "Bone or joint infection (Care) Condition" - or exists "Bone or joint infection (Care) Observation" -define "Bone or joint infection (Care) Condition": +define "Bone or joint infection": + exists "Bone or joint infection Condition" + or exists "Bone or joint infection Observation" +define "Bone or joint infection Condition": [Condition: Concepts."Bone or joint infection"] -define "Bone or joint infection (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Bone or joint infection Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Bone or joint infection" -/* End of Bone or joint infection (Care) */ +/* End of Bone or joint infection */ /* @dataElement: HIV.D.DE334 - Meningitis @@ -7562,16 +7562,16 @@ define "Bone or joint infection (Care) Observation": @description: Client's symptoms include recurrent meningitis */ // TODO: Replace placeholder with relevant CQL logic -define "Meningitis (Care)": - exists "Meningitis (Care) Condition" - or exists "Meningitis (Care) Observation" -define "Meningitis (Care) Condition": +define "Meningitis": + exists "Meningitis Condition" + or exists "Meningitis Observation" +define "Meningitis Condition": [Condition: Concepts."Meningitis"] -define "Meningitis (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Meningitis Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Meningitis" -/* End of Meningitis (Care) */ +/* End of Meningitis */ /* @dataElement: HIV.D.DE335 - Chronic herpes simplex infection orolabial or cutaneous of more than 1 month duration or visceral at any site @@ -7579,16 +7579,16 @@ define "Meningitis (Care) Observation": @description: Client's symptoms include chronic herpes simplex infection (orolabial or cutaneous of more than 1 month duration or visceral at any site) */ // TODO: Replace placeholder with relevant CQL logic -define "Chronic herpes simplex infection orolabial or cutaneous of more than 1 month duration or visceral at any site (Care)": - exists "Chronic herpes simplex infection orolabial or cutaneous of more than 1 month duration or visceral at any site (Care) Condition" - or exists "Chronic herpes simplex infection orolabial or cutaneous of more than 1 month duration or visceral at any site (Care) Observation" -define "Chronic herpes simplex infection orolabial or cutaneous of more than 1 month duration or visceral at any site (Care) Condition": +define "Chronic herpes simplex infection orolabial or cutaneous of more than 1 month duration or visceral at any site": + exists "Chronic herpes simplex infection orolabial or cutaneous of more than 1 month duration or visceral at any site Condition" + or exists "Chronic herpes simplex infection orolabial or cutaneous of more than 1 month duration or visceral at any site Observation" +define "Chronic herpes simplex infection orolabial or cutaneous of more than 1 month duration or visceral at any site Condition": [Condition: Concepts."Chronic herpes simplex infection orolabial or cutaneous of more than 1 month duration or visceral at any site"] -define "Chronic herpes simplex infection orolabial or cutaneous of more than 1 month duration or visceral at any site (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Chronic herpes simplex infection orolabial or cutaneous of more than 1 month duration or visceral at any site Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Chronic herpes simplex infection orolabial or cutaneous of more than 1 month duration or visceral at any site" -/* End of Chronic herpes simplex infection orolabial or cutaneous of more than 1 month duration or visceral at any site (Care) */ +/* End of Chronic herpes simplex infection orolabial or cutaneous of more than 1 month duration or visceral at any site */ /* @dataElement: HIV.D.DE336 - Chronic herpes simplex infection orolabial, genital or anorectal of more than 1 month in duration or visceral at any site @@ -7596,16 +7596,16 @@ define "Chronic herpes simplex infection orolabial or cutaneous of more than 1 m @description: Client's symptoms include chronic herpes simplex infection (orolabial, genital or anorectal of more than one month in duration or visceral at any site) */ // TODO: Replace placeholder with relevant CQL logic -define "Chronic herpes simplex infection orolabial, genital or anorectal of more than 1 month in duration or visceral at any site (Care)": - exists "Chronic herpes simplex infection orolabial, genital or anorectal of more than 1 month in duration or visceral at any site (Care) Condition" - or exists "Chronic herpes simplex infection orolabial, genital or anorectal of more than 1 month in duration or visceral at any site (Care) Observation" -define "Chronic herpes simplex infection orolabial, genital or anorectal of more than 1 month in duration or visceral at any site (Care) Condition": +define "Chronic herpes simplex infection orolabial, genital or anorectal of more than 1 month in duration or visceral at any site": + exists "Chronic herpes simplex infection orolabial, genital or anorectal of more than 1 month in duration or visceral at any site Condition" + or exists "Chronic herpes simplex infection orolabial, genital or anorectal of more than 1 month in duration or visceral at any site Observation" +define "Chronic herpes simplex infection orolabial, genital or anorectal of more than 1 month in duration or visceral at any site Condition": [Condition: Concepts."Chronic herpes simplex infection orolabial, genital or anorectal of more than 1 month in duration or visceral at any site"] -define "Chronic herpes simplex infection orolabial, genital or anorectal of more than 1 month in duration or visceral at any site (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Chronic herpes simplex infection orolabial, genital or anorectal of more than 1 month in duration or visceral at any site Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Chronic herpes simplex infection orolabial, genital or anorectal of more than 1 month in duration or visceral at any site" -/* End of Chronic herpes simplex infection orolabial, genital or anorectal of more than 1 month in duration or visceral at any site (Care) */ +/* End of Chronic herpes simplex infection orolabial, genital or anorectal of more than 1 month in duration or visceral at any site */ /* @dataElement: HIV.D.DE337 - Oesophageal candidiasis or candidiasis of trachea, bronchi or lungs @@ -7613,16 +7613,16 @@ define "Chronic herpes simplex infection orolabial, genital or anorectal of more @description: Client's symptoms include oesophageal candidiasis (or candidiasis of trachea, bronchi or lungs) */ // TODO: Replace placeholder with relevant CQL logic -define "Oesophageal candidiasis or candidiasis of trachea, bronchi or lungs (Care)": - exists "Oesophageal candidiasis or candidiasis of trachea, bronchi or lungs (Care) Condition" - or exists "Oesophageal candidiasis or candidiasis of trachea, bronchi or lungs (Care) Observation" -define "Oesophageal candidiasis or candidiasis of trachea, bronchi or lungs (Care) Condition": +define "Oesophageal candidiasis or candidiasis of trachea, bronchi or lungs": + exists "Oesophageal candidiasis or candidiasis of trachea, bronchi or lungs Condition" + or exists "Oesophageal candidiasis or candidiasis of trachea, bronchi or lungs Observation" +define "Oesophageal candidiasis or candidiasis of trachea, bronchi or lungs Condition": [Condition: Concepts."Oesophageal candidiasis or candidiasis of trachea, bronchi or lungs"] -define "Oesophageal candidiasis or candidiasis of trachea, bronchi or lungs (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Oesophageal candidiasis or candidiasis of trachea, bronchi or lungs Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Oesophageal candidiasis or candidiasis of trachea, bronchi or lungs" -/* End of Oesophageal candidiasis or candidiasis of trachea, bronchi or lungs (Care) */ +/* End of Oesophageal candidiasis or candidiasis of trachea, bronchi or lungs */ /* @dataElement: HIV.D.DE338 - Extrapulmonary TB @@ -7630,16 +7630,16 @@ define "Oesophageal candidiasis or candidiasis of trachea, bronchi or lungs (Car @description: Client's symptoms include extrapulmonary tuberculosis */ // TODO: Replace placeholder with relevant CQL logic -define "Extrapulmonary TB (Care)": - exists "Extrapulmonary TB (Care) Condition" - or exists "Extrapulmonary TB (Care) Observation" -define "Extrapulmonary TB (Care) Condition": +define "Extrapulmonary TB D.DE338": + exists "Extrapulmonary TB D.DE338 Condition" + or exists "Extrapulmonary TB D.DE338 Observation" +define "Extrapulmonary TB D.DE338 Condition": [Condition: Concepts."Extrapulmonary TB - HIV.D.DE338"] -define "Extrapulmonary TB (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Extrapulmonary TB D.DE338 Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Extrapulmonary TB - HIV.D.DE338" -/* End of Extrapulmonary TB (Care) */ +/* End of Extrapulmonary TB D.DE338 */ /* @dataElement: HIV.D.DE339 - Kaposi sarcoma @@ -7647,16 +7647,16 @@ define "Extrapulmonary TB (Care) Observation": @description: Client's symptoms include Kaposi sarcoma */ // TODO: Replace placeholder with relevant CQL logic -define "Kaposi sarcoma (Care)": - exists "Kaposi sarcoma (Care) Condition" - or exists "Kaposi sarcoma (Care) Observation" -define "Kaposi sarcoma (Care) Condition": +define "Kaposi sarcoma": + exists "Kaposi sarcoma Condition" + or exists "Kaposi sarcoma Observation" +define "Kaposi sarcoma Condition": [Condition: Concepts."Kaposi sarcoma"] -define "Kaposi sarcoma (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Kaposi sarcoma Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Kaposi sarcoma" -/* End of Kaposi sarcoma (Care) */ +/* End of Kaposi sarcoma */ /* @dataElement: HIV.D.DE340 - Cytomegalovirus infection retinitis or infection of other organs @@ -7664,16 +7664,16 @@ define "Kaposi sarcoma (Care) Observation": @description: Client's symptoms include cytomegalovirus infection (retinitis or infection of other organs) */ // TODO: Replace placeholder with relevant CQL logic -define "Cytomegalovirus infection retinitis or infection of other organs (Care)": - exists "Cytomegalovirus infection retinitis or infection of other organs (Care) Condition" - or exists "Cytomegalovirus infection retinitis or infection of other organs (Care) Observation" -define "Cytomegalovirus infection retinitis or infection of other organs (Care) Condition": +define "Cytomegalovirus infection retinitis or infection of other organs": + exists "Cytomegalovirus infection retinitis or infection of other organs Condition" + or exists "Cytomegalovirus infection retinitis or infection of other organs Observation" +define "Cytomegalovirus infection retinitis or infection of other organs Condition": [Condition: Concepts."Cytomegalovirus infection retinitis or infection of other organs"] -define "Cytomegalovirus infection retinitis or infection of other organs (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Cytomegalovirus infection retinitis or infection of other organs Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Cytomegalovirus infection retinitis or infection of other organs" -/* End of Cytomegalovirus infection retinitis or infection of other organs (Care) */ +/* End of Cytomegalovirus infection retinitis or infection of other organs */ /* @dataElement: HIV.D.DE341 - Central nervous system toxoplasmosis @@ -7681,16 +7681,16 @@ define "Cytomegalovirus infection retinitis or infection of other organs (Care) @description: Client's symptoms include central nervous system toxoplasmosis */ // TODO: Replace placeholder with relevant CQL logic -define "Central nervous system toxoplasmosis (Care)": - exists "Central nervous system toxoplasmosis (Care) Condition" - or exists "Central nervous system toxoplasmosis (Care) Observation" -define "Central nervous system toxoplasmosis (Care) Condition": +define "Central nervous system toxoplasmosis": + exists "Central nervous system toxoplasmosis Condition" + or exists "Central nervous system toxoplasmosis Observation" +define "Central nervous system toxoplasmosis Condition": [Condition: Concepts."Central nervous system toxoplasmosis"] -define "Central nervous system toxoplasmosis (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Central nervous system toxoplasmosis Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Central nervous system toxoplasmosis" -/* End of Central nervous system toxoplasmosis (Care) */ +/* End of Central nervous system toxoplasmosis */ /* @dataElement: HIV.D.DE342 - HIV encephalopathy @@ -7698,16 +7698,16 @@ define "Central nervous system toxoplasmosis (Care) Observation": @description: Client's symptoms include HIV encephalopathy */ // TODO: Replace placeholder with relevant CQL logic -define "HIV encephalopathy (Care)": - exists "HIV encephalopathy (Care) Condition" - or exists "HIV encephalopathy (Care) Observation" -define "HIV encephalopathy (Care) Condition": +define "HIV encephalopathy": + exists "HIV encephalopathy Condition" + or exists "HIV encephalopathy Observation" +define "HIV encephalopathy Condition": [Condition: Concepts."HIV encephalopathy"] -define "HIV encephalopathy (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "HIV encephalopathy Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."HIV encephalopathy" -/* End of HIV encephalopathy (Care) */ +/* End of HIV encephalopathy */ /* @dataElement: HIV.D.DE343 - Extrapulmonary cryptococcosis, including meningitis @@ -7715,16 +7715,16 @@ define "HIV encephalopathy (Care) Observation": @description: Client's symptoms include extrapulmonary cryptococcosis, including meningitis */ // TODO: Replace placeholder with relevant CQL logic -define "Extrapulmonary cryptococcosis, including meningitis (Care)": - exists "Extrapulmonary cryptococcosis, including meningitis (Care) Condition" - or exists "Extrapulmonary cryptococcosis, including meningitis (Care) Observation" -define "Extrapulmonary cryptococcosis, including meningitis (Care) Condition": +define "Extrapulmonary cryptococcosis, including meningitis": + exists "Extrapulmonary cryptococcosis, including meningitis Condition" + or exists "Extrapulmonary cryptococcosis, including meningitis Observation" +define "Extrapulmonary cryptococcosis, including meningitis Condition": [Condition: Concepts."Extrapulmonary cryptococcosis, including meningitis"] -define "Extrapulmonary cryptococcosis, including meningitis (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Extrapulmonary cryptococcosis, including meningitis Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Extrapulmonary cryptococcosis, including meningitis" -/* End of Extrapulmonary cryptococcosis, including meningitis (Care) */ +/* End of Extrapulmonary cryptococcosis, including meningitis */ /* @dataElement: HIV.D.DE344 - Disseminated nontuberculous mycobacterial infection @@ -7732,16 +7732,16 @@ define "Extrapulmonary cryptococcosis, including meningitis (Care) Observation": @description: Client's symptoms include disseminated nontuberculous mycobacterial infection */ // TODO: Replace placeholder with relevant CQL logic -define "Disseminated nontuberculous mycobacterial infection (Care)": - exists "Disseminated nontuberculous mycobacterial infection (Care) Condition" - or exists "Disseminated nontuberculous mycobacterial infection (Care) Observation" -define "Disseminated nontuberculous mycobacterial infection (Care) Condition": +define "Disseminated nontuberculous mycobacterial infection": + exists "Disseminated nontuberculous mycobacterial infection Condition" + or exists "Disseminated nontuberculous mycobacterial infection Observation" +define "Disseminated nontuberculous mycobacterial infection Condition": [Condition: Concepts."Disseminated nontuberculous mycobacterial infection"] -define "Disseminated nontuberculous mycobacterial infection (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Disseminated nontuberculous mycobacterial infection Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Disseminated nontuberculous mycobacterial infection" -/* End of Disseminated nontuberculous mycobacterial infection (Care) */ +/* End of Disseminated nontuberculous mycobacterial infection */ /* @dataElement: HIV.D.DE345 - Progressive multifocal leukoencephalopathy @@ -7749,16 +7749,16 @@ define "Disseminated nontuberculous mycobacterial infection (Care) Observation": @description: Client's symptoms include progressive multifocal leukoencephalopathy */ // TODO: Replace placeholder with relevant CQL logic -define "Progressive multifocal leukoencephalopathy (Care)": - exists "Progressive multifocal leukoencephalopathy (Care) Condition" - or exists "Progressive multifocal leukoencephalopathy (Care) Observation" -define "Progressive multifocal leukoencephalopathy (Care) Condition": +define "Progressive multifocal leukoencephalopathy": + exists "Progressive multifocal leukoencephalopathy Condition" + or exists "Progressive multifocal leukoencephalopathy Observation" +define "Progressive multifocal leukoencephalopathy Condition": [Condition: Concepts."Progressive multifocal leukoencephalopathy"] -define "Progressive multifocal leukoencephalopathy (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Progressive multifocal leukoencephalopathy Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Progressive multifocal leukoencephalopathy" -/* End of Progressive multifocal leukoencephalopathy (Care) */ +/* End of Progressive multifocal leukoencephalopathy */ /* @dataElement: HIV.D.DE346 - Chronic cryptosporidiosis @@ -7766,16 +7766,16 @@ define "Progressive multifocal leukoencephalopathy (Care) Observation": @description: Client's symptoms include chronic cryptosporidiosis */ // TODO: Replace placeholder with relevant CQL logic -define "Chronic cryptosporidiosis (Care)": - exists "Chronic cryptosporidiosis (Care) Condition" - or exists "Chronic cryptosporidiosis (Care) Observation" -define "Chronic cryptosporidiosis (Care) Condition": +define "Chronic cryptosporidiosis": + exists "Chronic cryptosporidiosis Condition" + or exists "Chronic cryptosporidiosis Observation" +define "Chronic cryptosporidiosis Condition": [Condition: Concepts."Chronic cryptosporidiosis"] -define "Chronic cryptosporidiosis (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Chronic cryptosporidiosis Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Chronic cryptosporidiosis" -/* End of Chronic cryptosporidiosis (Care) */ +/* End of Chronic cryptosporidiosis */ /* @dataElement: HIV.D.DE347 - Chronic cryptosporidiosis with diarrhoea @@ -7783,16 +7783,16 @@ define "Chronic cryptosporidiosis (Care) Observation": @description: Client's symptoms include chronic cryptosporidiosis (with diarrhoea) */ // TODO: Replace placeholder with relevant CQL logic -define "Chronic cryptosporidiosis with diarrhoea (Care)": - exists "Chronic cryptosporidiosis with diarrhoea (Care) Condition" - or exists "Chronic cryptosporidiosis with diarrhoea (Care) Observation" -define "Chronic cryptosporidiosis with diarrhoea (Care) Condition": +define "Chronic cryptosporidiosis with diarrhoea": + exists "Chronic cryptosporidiosis with diarrhoea Condition" + or exists "Chronic cryptosporidiosis with diarrhoea Observation" +define "Chronic cryptosporidiosis with diarrhoea Condition": [Condition: Concepts."Chronic cryptosporidiosis with diarrhoea"] -define "Chronic cryptosporidiosis with diarrhoea (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Chronic cryptosporidiosis with diarrhoea Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Chronic cryptosporidiosis with diarrhoea" -/* End of Chronic cryptosporidiosis with diarrhoea (Care) */ +/* End of Chronic cryptosporidiosis with diarrhoea */ /* @dataElement: HIV.D.DE348 - Chronic isosporiasis @@ -7800,16 +7800,16 @@ define "Chronic cryptosporidiosis with diarrhoea (Care) Observation": @description: Client's symptoms include chronic isosporiasis */ // TODO: Replace placeholder with relevant CQL logic -define "Chronic isosporiasis (Care)": - exists "Chronic isosporiasis (Care) Condition" - or exists "Chronic isosporiasis (Care) Observation" -define "Chronic isosporiasis (Care) Condition": +define "Chronic isosporiasis": + exists "Chronic isosporiasis Condition" + or exists "Chronic isosporiasis Observation" +define "Chronic isosporiasis Condition": [Condition: Concepts."Chronic isosporiasis"] -define "Chronic isosporiasis (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Chronic isosporiasis Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Chronic isosporiasis" -/* End of Chronic isosporiasis (Care) */ +/* End of Chronic isosporiasis */ /* @dataElement: HIV.D.DE349 - Disseminated mycosis extrapulmonary histoplasmosis, coccidioidomycosis @@ -7817,16 +7817,16 @@ define "Chronic isosporiasis (Care) Observation": @description: Client's symptoms include disseminated mycosis (extrapulmonary histoplasmosis, coccidioidomycosis) */ // TODO: Replace placeholder with relevant CQL logic -define "Disseminated mycosis extrapulmonary histoplasmosis, coccidioidomycosis (Care)": - exists "Disseminated mycosis extrapulmonary histoplasmosis, coccidioidomycosis (Care) Condition" - or exists "Disseminated mycosis extrapulmonary histoplasmosis, coccidioidomycosis (Care) Observation" -define "Disseminated mycosis extrapulmonary histoplasmosis, coccidioidomycosis (Care) Condition": +define "Disseminated mycosis extrapulmonary histoplasmosis, coccidioidomycosis": + exists "Disseminated mycosis extrapulmonary histoplasmosis, coccidioidomycosis Condition" + or exists "Disseminated mycosis extrapulmonary histoplasmosis, coccidioidomycosis Observation" +define "Disseminated mycosis extrapulmonary histoplasmosis, coccidioidomycosis Condition": [Condition: Concepts."Disseminated mycosis extrapulmonary histoplasmosis, coccidioidomycosis"] -define "Disseminated mycosis extrapulmonary histoplasmosis, coccidioidomycosis (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Disseminated mycosis extrapulmonary histoplasmosis, coccidioidomycosis Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Disseminated mycosis extrapulmonary histoplasmosis, coccidioidomycosis" -/* End of Disseminated mycosis extrapulmonary histoplasmosis, coccidioidomycosis (Care) */ +/* End of Disseminated mycosis extrapulmonary histoplasmosis, coccidioidomycosis */ /* @dataElement: HIV.D.DE350 - Disseminated endemic mycosis extrapulmonary histoplasmosis, coccidioidomycosis, penicilliosis @@ -7834,16 +7834,16 @@ define "Disseminated mycosis extrapulmonary histoplasmosis, coccidioidomycosis ( @description: Client's symptoms include disseminated endemic mycosis (extrapulmonary histoplasmosis, coccidioidomycosis, penicilliosis) */ // TODO: Replace placeholder with relevant CQL logic -define "Disseminated endemic mycosis extrapulmonary histoplasmosis, coccidioidomycosis, penicilliosis (Care)": - exists "Disseminated endemic mycosis extrapulmonary histoplasmosis, coccidioidomycosis, penicilliosis (Care) Condition" - or exists "Disseminated endemic mycosis extrapulmonary histoplasmosis, coccidioidomycosis, penicilliosis (Care) Observation" -define "Disseminated endemic mycosis extrapulmonary histoplasmosis, coccidioidomycosis, penicilliosis (Care) Condition": +define "Disseminated endemic mycosis extrapulmonary histoplasmosis, coccidioidomycosis, penicilliosis": + exists "Disseminated endemic mycosis extrapulmonary histoplasmosis, coccidioidomycosis, penicilliosis Condition" + or exists "Disseminated endemic mycosis extrapulmonary histoplasmosis, coccidioidomycosis, penicilliosis Observation" +define "Disseminated endemic mycosis extrapulmonary histoplasmosis, coccidioidomycosis, penicilliosis Condition": [Condition: Concepts."Disseminated endemic mycosis extrapulmonary histoplasmosis, coccidioidomycosis, penicilliosis"] -define "Disseminated endemic mycosis extrapulmonary histoplasmosis, coccidioidomycosis, penicilliosis (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Disseminated endemic mycosis extrapulmonary histoplasmosis, coccidioidomycosis, penicilliosis Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Disseminated endemic mycosis extrapulmonary histoplasmosis, coccidioidomycosis, penicilliosis" -/* End of Disseminated endemic mycosis extrapulmonary histoplasmosis, coccidioidomycosis, penicilliosis (Care) */ +/* End of Disseminated endemic mycosis extrapulmonary histoplasmosis, coccidioidomycosis, penicilliosis */ /* @dataElement: HIV.D.DE351 - Cerebral lymphoma @@ -7851,16 +7851,16 @@ define "Disseminated endemic mycosis extrapulmonary histoplasmosis, coccidioidom @description: Client's symptoms include cerebral lymphoma */ // TODO: Replace placeholder with relevant CQL logic -define "Cerebral lymphoma (Care)": - exists "Cerebral lymphoma (Care) Condition" - or exists "Cerebral lymphoma (Care) Observation" -define "Cerebral lymphoma (Care) Condition": +define "Cerebral lymphoma": + exists "Cerebral lymphoma Condition" + or exists "Cerebral lymphoma Observation" +define "Cerebral lymphoma Condition": [Condition: Concepts."Cerebral lymphoma"] -define "Cerebral lymphoma (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Cerebral lymphoma Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Cerebral lymphoma" -/* End of Cerebral lymphoma (Care) */ +/* End of Cerebral lymphoma */ /* @dataElement: HIV.D.DE352 - B-cell non-Hodgkin lymphoma @@ -7868,16 +7868,16 @@ define "Cerebral lymphoma (Care) Observation": @description: Client's symptoms include b-cell non-Hodgkin lymphoma */ // TODO: Replace placeholder with relevant CQL logic -define "B-cell non-Hodgkin lymphoma (Care)": - exists "B-cell non-Hodgkin lymphoma (Care) Condition" - or exists "B-cell non-Hodgkin lymphoma (Care) Observation" -define "B-cell non-Hodgkin lymphoma (Care) Condition": +define "B-cell non-Hodgkin lymphoma": + exists "B-cell non-Hodgkin lymphoma Condition" + or exists "B-cell non-Hodgkin lymphoma Observation" +define "B-cell non-Hodgkin lymphoma Condition": [Condition: Concepts."B-cell non-Hodgkin lymphoma"] -define "B-cell non-Hodgkin lymphoma (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "B-cell non-Hodgkin lymphoma Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."B-cell non-Hodgkin lymphoma" -/* End of B-cell non-Hodgkin lymphoma (Care) */ +/* End of B-cell non-Hodgkin lymphoma */ /* @dataElement: HIV.D.DE353 - HIV-associated nephropathy or cardiomyopathy @@ -7885,16 +7885,16 @@ define "B-cell non-Hodgkin lymphoma (Care) Observation": @description: Client's symptoms include HIV- associated nephropathy or cardiomyopathy */ // TODO: Replace placeholder with relevant CQL logic -define "HIV-associated nephropathy or cardiomyopathy (Care)": - exists "HIV-associated nephropathy or cardiomyopathy (Care) Condition" - or exists "HIV-associated nephropathy or cardiomyopathy (Care) Observation" -define "HIV-associated nephropathy or cardiomyopathy (Care) Condition": +define "HIV-associated nephropathy or cardiomyopathy": + exists "HIV-associated nephropathy or cardiomyopathy Condition" + or exists "HIV-associated nephropathy or cardiomyopathy Observation" +define "HIV-associated nephropathy or cardiomyopathy Condition": [Condition: Concepts."HIV-associated nephropathy or cardiomyopathy"] -define "HIV-associated nephropathy or cardiomyopathy (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "HIV-associated nephropathy or cardiomyopathy Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."HIV-associated nephropathy or cardiomyopathy" -/* End of HIV-associated nephropathy or cardiomyopathy (Care) */ +/* End of HIV-associated nephropathy or cardiomyopathy */ /* @dataElement: HIV.D.DE354 - Recurrent septicaemia including nontyphoidal Salmonella @@ -7902,16 +7902,16 @@ define "HIV-associated nephropathy or cardiomyopathy (Care) Observation": @description: Client's symptoms include recurrent bacteraemia (septicaemia) (including nontyphoidal salmonella) */ // TODO: Replace placeholder with relevant CQL logic -define "Recurrent septicaemia including nontyphoidal Salmonella (Care)": - exists "Recurrent septicaemia including nontyphoidal Salmonella (Care) Condition" - or exists "Recurrent septicaemia including nontyphoidal Salmonella (Care) Observation" -define "Recurrent septicaemia including nontyphoidal Salmonella (Care) Condition": +define "Recurrent septicaemia including nontyphoidal Salmonella": + exists "Recurrent septicaemia including nontyphoidal Salmonella Condition" + or exists "Recurrent septicaemia including nontyphoidal Salmonella Observation" +define "Recurrent septicaemia including nontyphoidal Salmonella Condition": [Condition: Concepts."Recurrent septicaemia including nontyphoidal Salmonella"] -define "Recurrent septicaemia including nontyphoidal Salmonella (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Recurrent septicaemia including nontyphoidal Salmonella Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Recurrent septicaemia including nontyphoidal Salmonella" -/* End of Recurrent septicaemia including nontyphoidal Salmonella (Care) */ +/* End of Recurrent septicaemia including nontyphoidal Salmonella */ /* @dataElement: HIV.D.DE355 - Invasive cervical carcinoma @@ -7919,16 +7919,16 @@ define "Recurrent septicaemia including nontyphoidal Salmonella (Care) Observati @description: Client's symptoms include invasive cervical carcinoma */ // TODO: Replace placeholder with relevant CQL logic -define "Invasive cervical carcinoma (Care)": - exists "Invasive cervical carcinoma (Care) Condition" - or exists "Invasive cervical carcinoma (Care) Observation" -define "Invasive cervical carcinoma (Care) Condition": +define "Invasive cervical carcinoma": + exists "Invasive cervical carcinoma Condition" + or exists "Invasive cervical carcinoma Observation" +define "Invasive cervical carcinoma Condition": [Condition: Concepts."Invasive cervical carcinoma"] -define "Invasive cervical carcinoma (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Invasive cervical carcinoma Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Invasive cervical carcinoma" -/* End of Invasive cervical carcinoma (Care) */ +/* End of Invasive cervical carcinoma */ /* @dataElement: HIV.D.DE356 - Atypical disseminated leishmaniasis @@ -7936,16 +7936,16 @@ define "Invasive cervical carcinoma (Care) Observation": @description: Client's symptoms include atypical disseminated leishmaniasis */ // TODO: Replace placeholder with relevant CQL logic -define "Atypical disseminated leishmaniasis (Care)": - exists "Atypical disseminated leishmaniasis (Care) Condition" - or exists "Atypical disseminated leishmaniasis (Care) Observation" -define "Atypical disseminated leishmaniasis (Care) Condition": +define "Atypical disseminated leishmaniasis": + exists "Atypical disseminated leishmaniasis Condition" + or exists "Atypical disseminated leishmaniasis Observation" +define "Atypical disseminated leishmaniasis Condition": [Condition: Concepts."Atypical disseminated leishmaniasis"] -define "Atypical disseminated leishmaniasis (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Atypical disseminated leishmaniasis Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Atypical disseminated leishmaniasis" -/* End of Atypical disseminated leishmaniasis (Care) */ +/* End of Atypical disseminated leishmaniasis */ /* @dataElement: HIV.D.DE357 - Neutropenia @@ -7953,16 +7953,16 @@ define "Atypical disseminated leishmaniasis (Care) Observation": @description: Client's symptoms include neutropenia, an abnormally low count of a type of white blood cell (neutrophils) */ // TODO: Replace placeholder with relevant CQL logic -define "Neutropenia (Care)": - exists "Neutropenia (Care) Condition" - or exists "Neutropenia (Care) Observation" -define "Neutropenia (Care) Condition": +define "Neutropenia": + exists "Neutropenia Condition" + or exists "Neutropenia Observation" +define "Neutropenia Condition": [Condition: Concepts."Neutropenia"] -define "Neutropenia (Care) Observation": - "WHO HIV clinical stage condition or symptom (Care) Observation" O +define "Neutropenia Observation": + "WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Neutropenia" -/* End of Neutropenia (Care) */ +/* End of Neutropenia */ /* @dataElement: HIV.D.DE364 - CD4 count @@ -7970,13 +7970,13 @@ define "Neutropenia (Care) Observation": @description: CD4 cell count in cells/mm^3 */ // TODO: Replace placeholder with relevant CQL logic -define "CD4 count (Care)": +define "CD4 count D.DE364": [Observation: Concepts."CD4 count - HIV.D.DE364"] O where O.status in { 'final', 'amended', 'corrected' } -define "CD4 count (Care) Value": - "CD4 count (Care)" O +define "CD4 count D.DE364 Value": + "CD4 count D.DE364" O return O.value -/* End of CD4 count (Care) */ +/* End of CD4 count D.DE364 */ /* @dataElement: HIV.D.DE367 - Baseline CD4 count @@ -7984,13 +7984,13 @@ define "CD4 count (Care) Value": @description: CD4 count performed at HIV diagnosis */ // TODO: Replace placeholder with relevant CQL logic -define "Baseline CD4 count (Care)": +define "Baseline CD4 count D.DE367": [Observation: Concepts."Baseline CD4 count - HIV.D.DE367"] O where O.status in { 'final', 'amended', 'corrected' } -define "Baseline CD4 count (Care) Value": - "Baseline CD4 count (Care)" O +define "Baseline CD4 count D.DE367 Value": + "Baseline CD4 count D.DE367" O return O.value -/* End of Baseline CD4 count (Care) */ +/* End of Baseline CD4 count D.DE367 */ /* @dataElement: HIV.D.DE368 - Date of baseline CD4 count test @@ -7998,13 +7998,13 @@ define "Baseline CD4 count (Care) Value": @description: Date and time when baseline CD4 count test was conducted */ // TODO: Replace placeholder with relevant CQL logic -define "Date of baseline CD4 count test (Care)": +define "Date of baseline CD4 count test D.DE368": [Observation: Concepts."Date of baseline CD4 count test - HIV.D.DE368"] O where O.status in { 'final', 'amended', 'corrected' } -define "Date of baseline CD4 count test (Care) Value": - "Date of baseline CD4 count test (Care)" O +define "Date of baseline CD4 count test D.DE368 Value": + "Date of baseline CD4 count test D.DE368" O return O.value -/* End of Date of baseline CD4 count test (Care) */ +/* End of Date of baseline CD4 count test D.DE368 */ /* @dataElement: HIV.D.DE383 - Time to start ART @@ -8012,12 +8012,12 @@ define "Date of baseline CD4 count test (Care) Value": @description: Time from HIV diagnosis to when client started ART */ // TODO: Replace placeholder with relevant CQL logic -define "Time to start ART (Care)": - exists "Time to start ART (Care) Observation" -define "Time to start ART (Care) Observation": +define "Time to start ART": + exists "Time to start ART Observation" +define "Time to start ART Observation": [Observation: Concepts."Time to start ART"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Time to start ART (Care) */ +/* End of Time to start ART */ /* @dataElement: HIV.D.DE384 - Within 7 days of HIV diagnosis @@ -8025,16 +8025,16 @@ define "Time to start ART (Care) Observation": @description: Client started ART within 7 days */ // TODO: Replace placeholder with relevant CQL logic -define "Within 7 days of HIV diagnosis (Care)": - exists "Within 7 days of HIV diagnosis (Care) Condition" - or exists "Within 7 days of HIV diagnosis (Care) Observation" -define "Within 7 days of HIV diagnosis (Care) Condition": +define "Within 7 days of HIV diagnosis": + exists "Within 7 days of HIV diagnosis Condition" + or exists "Within 7 days of HIV diagnosis Observation" +define "Within 7 days of HIV diagnosis Condition": [Condition: Concepts."Within 7 days of HIV diagnosis"] -define "Within 7 days of HIV diagnosis (Care) Observation": - "Time to start ART (Care) Observation" O +define "Within 7 days of HIV diagnosis Observation": + "Time to start ART Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Within 7 days of HIV diagnosis" -/* End of Within 7 days of HIV diagnosis (Care) */ +/* End of Within 7 days of HIV diagnosis */ /* @dataElement: HIV.D.DE385 - Within 30 days of HIV diagnosis @@ -8042,16 +8042,16 @@ define "Within 7 days of HIV diagnosis (Care) Observation": @description: Client started ART within 30 days of ART initiation (but over 7 days) */ // TODO: Replace placeholder with relevant CQL logic -define "Within 30 days of HIV diagnosis (Care)": - exists "Within 30 days of HIV diagnosis (Care) Condition" - or exists "Within 30 days of HIV diagnosis (Care) Observation" -define "Within 30 days of HIV diagnosis (Care) Condition": +define "Within 30 days of HIV diagnosis": + exists "Within 30 days of HIV diagnosis Condition" + or exists "Within 30 days of HIV diagnosis Observation" +define "Within 30 days of HIV diagnosis Condition": [Condition: Concepts."Within 30 days of HIV diagnosis"] -define "Within 30 days of HIV diagnosis (Care) Observation": - "Time to start ART (Care) Observation" O +define "Within 30 days of HIV diagnosis Observation": + "Time to start ART Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Within 30 days of HIV diagnosis" -/* End of Within 30 days of HIV diagnosis (Care) */ +/* End of Within 30 days of HIV diagnosis */ /* @dataElement: HIV.D.DE386 - Within 90 days of HIV diagnosis @@ -8059,16 +8059,16 @@ define "Within 30 days of HIV diagnosis (Care) Observation": @description: Client started ART within 90 days of ART initiation (but over 30 days) */ // TODO: Replace placeholder with relevant CQL logic -define "Within 90 days of HIV diagnosis (Care)": - exists "Within 90 days of HIV diagnosis (Care) Condition" - or exists "Within 90 days of HIV diagnosis (Care) Observation" -define "Within 90 days of HIV diagnosis (Care) Condition": +define "Within 90 days of HIV diagnosis": + exists "Within 90 days of HIV diagnosis Condition" + or exists "Within 90 days of HIV diagnosis Observation" +define "Within 90 days of HIV diagnosis Condition": [Condition: Concepts."Within 90 days of HIV diagnosis"] -define "Within 90 days of HIV diagnosis (Care) Observation": - "Time to start ART (Care) Observation" O +define "Within 90 days of HIV diagnosis Observation": + "Time to start ART Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Within 90 days of HIV diagnosis" -/* End of Within 90 days of HIV diagnosis (Care) */ +/* End of Within 90 days of HIV diagnosis */ /* @dataElement: HIV.D.DE387 - Viral load test result @@ -8076,13 +8076,13 @@ define "Within 90 days of HIV diagnosis (Care) Observation": @description: Result from the viral load test in number of copies/mL */ // TODO: Replace placeholder with relevant CQL logic -define "Viral load test result (Care)": +define "Viral load test result D.DE387": [Observation: Concepts."Viral load test result - HIV.D.DE387"] O where O.status in { 'final', 'amended', 'corrected' } -define "Viral load test result (Care) Value": - "Viral load test result (Care)" O +define "Viral load test result D.DE387 Value": + "Viral load test result D.DE387" O return O.value -/* End of Viral load test result (Care) */ +/* End of Viral load test result D.DE387 */ /* @dataElement: HIV.D.DE391 - Reason for HIV viral load test @@ -8090,12 +8090,12 @@ define "Viral load test result (Care) Value": @description: Whether the viral load is being tested for routine monitoring on a set schedule or for targeted monitoring for suspected treatment failure */ // TODO: Replace placeholder with relevant CQL logic -define "Reason for HIV viral load test (Care)": - exists "Reason for HIV viral load test (Care) Observation" -define "Reason for HIV viral load test (Care) Observation": +define "Reason for HIV viral load test": + exists "Reason for HIV viral load test Observation" +define "Reason for HIV viral load test Observation": [Observation: Concepts."Reason for HIV viral load test"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Reason for HIV viral load test (Care) */ +/* End of Reason for HIV viral load test */ /* @dataElement: HIV.D.DE392 - Routine viral load test @@ -8103,16 +8103,16 @@ define "Reason for HIV viral load test (Care) Observation": @description: Routine refers to viral load tests obtained at standard intervals following ART initiation to monitor viral load response to ART */ // TODO: Replace placeholder with relevant CQL logic -define "Routine viral load test (Care)": - exists "Routine viral load test (Care) Condition" - or exists "Routine viral load test (Care) Observation" -define "Routine viral load test (Care) Condition": +define "Routine viral load test": + exists "Routine viral load test Condition" + or exists "Routine viral load test Observation" +define "Routine viral load test Condition": [Condition: Concepts."Routine viral load test"] -define "Routine viral load test (Care) Observation": - "Reason for HIV viral load test (Care) Observation" O +define "Routine viral load test Observation": + "Reason for HIV viral load test Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Routine viral load test" -/* End of Routine viral load test (Care) */ +/* End of Routine viral load test */ /* @dataElement: HIV.D.DE393 - Targeted viral load monitoring @@ -8120,16 +8120,16 @@ define "Routine viral load test (Care) Observation": @description: Targeted refers to viral load tests obtained based on a specific clinical indication (such as concern about disease progression or failure to respond to ART) */ // TODO: Replace placeholder with relevant CQL logic -define "Targeted viral load monitoring (Care)": - exists "Targeted viral load monitoring (Care) Condition" - or exists "Targeted viral load monitoring (Care) Observation" -define "Targeted viral load monitoring (Care) Condition": +define "Targeted viral load monitoring": + exists "Targeted viral load monitoring Condition" + or exists "Targeted viral load monitoring Observation" +define "Targeted viral load monitoring Condition": [Condition: Concepts."Targeted viral load monitoring"] -define "Targeted viral load monitoring (Care) Observation": - "Reason for HIV viral load test (Care) Observation" O +define "Targeted viral load monitoring Observation": + "Reason for HIV viral load test Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Targeted viral load monitoring" -/* End of Targeted viral load monitoring (Care) */ +/* End of Targeted viral load monitoring */ /* @dataElement: HIV.D.DE394 - Initial viral load test @@ -8137,16 +8137,16 @@ define "Targeted viral load monitoring (Care) Observation": @description: The first viral load test of the client */ // TODO: Replace placeholder with relevant CQL logic -define "Initial viral load test (Care)": - exists "Initial viral load test (Care) Condition" - or exists "Initial viral load test (Care) Observation" -define "Initial viral load test (Care) Condition": +define "Initial viral load test": + exists "Initial viral load test Condition" + or exists "Initial viral load test Observation" +define "Initial viral load test Condition": [Condition: Concepts."Initial viral load test"] -define "Initial viral load test (Care) Observation": - "Reason for HIV viral load test (Care) Observation" O +define "Initial viral load test Observation": + "Reason for HIV viral load test Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Initial viral load test" -/* End of Initial viral load test (Care) */ +/* End of Initial viral load test */ /* @dataElement: HIV.D.DE395 - Follow-up viral load test after receiving enhanced adherence counselling @@ -8154,16 +8154,16 @@ define "Initial viral load test (Care) Observation": @description: A follow-up viral load test within 3-6 months after enhanced adherence counselling after client received a high viral load test result */ // TODO: Replace placeholder with relevant CQL logic -define "Follow-up viral load test after receiving enhanced adherence counselling (Care)": - exists "Follow-up viral load test after receiving enhanced adherence counselling (Care) Condition" - or exists "Follow-up viral load test after receiving enhanced adherence counselling (Care) Observation" -define "Follow-up viral load test after receiving enhanced adherence counselling (Care) Condition": +define "Follow-up viral load test after receiving enhanced adherence counselling": + exists "Follow-up viral load test after receiving enhanced adherence counselling Condition" + or exists "Follow-up viral load test after receiving enhanced adherence counselling Observation" +define "Follow-up viral load test after receiving enhanced adherence counselling Condition": [Condition: Concepts."Follow-up viral load test after receiving enhanced adherence counselling"] -define "Follow-up viral load test after receiving enhanced adherence counselling (Care) Observation": - "Reason for HIV viral load test (Care) Observation" O +define "Follow-up viral load test after receiving enhanced adherence counselling Observation": + "Reason for HIV viral load test Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Follow-up viral load test after receiving enhanced adherence counselling" -/* End of Follow-up viral load test after receiving enhanced adherence counselling (Care) */ +/* End of Follow-up viral load test after receiving enhanced adherence counselling */ /* @dataElement: HIV.D.DE399 - Monitoring examinations @@ -8171,12 +8171,12 @@ define "Follow-up viral load test after receiving enhanced adherence counselling @description: Name of examinations, test and results for any relevant investigations carried out for client */ // TODO: Replace placeholder with relevant CQL logic -define "Monitoring examinations (Care)": - exists "Monitoring examinations (Care) Observation" -define "Monitoring examinations (Care) Observation": +define "Monitoring examinations": + exists "Monitoring examinations Observation" +define "Monitoring examinations Observation": [Observation: Concepts."Monitoring examinations"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Monitoring examinations (Care) */ +/* End of Monitoring examinations */ /* @dataElement: HIV.D.DE400 - Haemoglobin Hb @@ -8184,16 +8184,16 @@ define "Monitoring examinations (Care) Observation": @description: Provider ordered a Haemoglobin (Hb) test, number in g/dL test */ // TODO: Replace placeholder with relevant CQL logic -define "Haemoglobin Hb (Care)": - exists "Haemoglobin Hb (Care) Condition" - or exists "Haemoglobin Hb (Care) Observation" -define "Haemoglobin Hb (Care) Condition": +define "Haemoglobin Hb": + exists "Haemoglobin Hb Condition" + or exists "Haemoglobin Hb Observation" +define "Haemoglobin Hb Condition": [Condition: Concepts."Haemoglobin Hb"] -define "Haemoglobin Hb (Care) Observation": - "Monitoring examinations (Care) Observation" O +define "Haemoglobin Hb Observation": + "Monitoring examinations Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Haemoglobin Hb" -/* End of Haemoglobin Hb (Care) */ +/* End of Haemoglobin Hb */ /* @dataElement: HIV.D.DE401 - Pregnancy test @@ -8201,16 +8201,16 @@ define "Haemoglobin Hb (Care) Observation": @description: Provider ordered a pregnancy test for client */ // TODO: Replace placeholder with relevant CQL logic -define "Pregnancy test (Care)": - exists "Pregnancy test (Care) Condition" - or exists "Pregnancy test (Care) Observation" -define "Pregnancy test (Care) Condition": +define "Pregnancy test": + exists "Pregnancy test Condition" + or exists "Pregnancy test Observation" +define "Pregnancy test Condition": [Condition: Concepts."Pregnancy test"] -define "Pregnancy test (Care) Observation": - "Monitoring examinations (Care) Observation" O +define "Pregnancy test Observation": + "Monitoring examinations Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Pregnancy test" -/* End of Pregnancy test (Care) */ +/* End of Pregnancy test */ /* @dataElement: HIV.D.DE402 - Syphilis test @@ -8218,16 +8218,16 @@ define "Pregnancy test (Care) Observation": @description: Provider ordered a syphilis test */ // TODO: Replace placeholder with relevant CQL logic -define "Syphilis test (Care)": - exists "Syphilis test (Care) Condition" - or exists "Syphilis test (Care) Observation" -define "Syphilis test (Care) Condition": +define "Syphilis test": + exists "Syphilis test Condition" + or exists "Syphilis test Observation" +define "Syphilis test Condition": [Condition: Concepts."Syphilis test"] -define "Syphilis test (Care) Observation": - "Monitoring examinations (Care) Observation" O +define "Syphilis test Observation": + "Monitoring examinations Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Syphilis test" -/* End of Syphilis test (Care) */ +/* End of Syphilis test */ /* @dataElement: HIV.D.DE403 - Chest X-ray CXR @@ -8235,16 +8235,16 @@ define "Syphilis test (Care) Observation": @description: Provider ordered a chest X-ray (CXR) */ // TODO: Replace placeholder with relevant CQL logic -define "Chest X-ray CXR (Care)": - exists "Chest X-ray CXR (Care) Condition" - or exists "Chest X-ray CXR (Care) Observation" -define "Chest X-ray CXR (Care) Condition": +define "Chest X-ray CXR": + exists "Chest X-ray CXR Condition" + or exists "Chest X-ray CXR Observation" +define "Chest X-ray CXR Condition": [Condition: Concepts."Chest X-ray CXR"] -define "Chest X-ray CXR (Care) Observation": - "Monitoring examinations (Care) Observation" O +define "Chest X-ray CXR Observation": + "Monitoring examinations Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Chest X-ray CXR" -/* End of Chest X-ray CXR (Care) */ +/* End of Chest X-ray CXR */ /* @dataElement: HIV.D.DE404 - Sputum or culture for TB @@ -8252,16 +8252,16 @@ define "Chest X-ray CXR (Care) Observation": @description: Provider ordered sputum or culture for TB */ // TODO: Replace placeholder with relevant CQL logic -define "Sputum or culture for TB (Care)": - exists "Sputum or culture for TB (Care) Condition" - or exists "Sputum or culture for TB (Care) Observation" -define "Sputum or culture for TB (Care) Condition": +define "Sputum or culture for TB": + exists "Sputum or culture for TB Condition" + or exists "Sputum or culture for TB Observation" +define "Sputum or culture for TB Condition": [Condition: Concepts."Sputum or culture for TB"] -define "Sputum or culture for TB (Care) Observation": - "Monitoring examinations (Care) Observation" O +define "Sputum or culture for TB Observation": + "Monitoring examinations Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Sputum or culture for TB" -/* End of Sputum or culture for TB (Care) */ +/* End of Sputum or culture for TB */ /* @dataElement: HIV.D.DE405 - HBsAg test HBV @@ -8269,16 +8269,16 @@ define "Sputum or culture for TB (Care) Observation": @description: Provider ordered an HBsAg test (HBV) test */ // TODO: Replace placeholder with relevant CQL logic -define "HBsAg test HBV (Care)": - exists "HBsAg test HBV (Care) Condition" - or exists "HBsAg test HBV (Care) Observation" -define "HBsAg test HBV (Care) Condition": +define "HBsAg test HBV": + exists "HBsAg test HBV Condition" + or exists "HBsAg test HBV Observation" +define "HBsAg test HBV Condition": [Condition: Concepts."HBsAg test HBV"] -define "HBsAg test HBV (Care) Observation": - "Monitoring examinations (Care) Observation" O +define "HBsAg test HBV Observation": + "Monitoring examinations Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."HBsAg test HBV" -/* End of HBsAg test HBV (Care) */ +/* End of HBsAg test HBV */ /* @dataElement: HIV.D.DE406 - HIV viral load test ordered @@ -8286,16 +8286,16 @@ define "HBsAg test HBV (Care) Observation": @description: Provider ordered an HIV viral load test */ // TODO: Replace placeholder with relevant CQL logic -define "HIV viral load test ordered (Care)": - exists "HIV viral load test ordered (Care) Condition" - or exists "HIV viral load test ordered (Care) Observation" -define "HIV viral load test ordered (Care) Condition": +define "HIV viral load test ordered": + exists "HIV viral load test ordered Condition" + or exists "HIV viral load test ordered Observation" +define "HIV viral load test ordered Condition": [Condition: Concepts."HIV viral load test ordered"] -define "HIV viral load test ordered (Care) Observation": - "Monitoring examinations (Care) Observation" O +define "HIV viral load test ordered Observation": + "Monitoring examinations Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."HIV viral load test ordered" -/* End of HIV viral load test ordered (Care) */ +/* End of HIV viral load test ordered */ /* @dataElement: HIV.D.DE407 - HIV viral load test scheduled @@ -8303,16 +8303,16 @@ define "HIV viral load test ordered (Care) Observation": @description: Scheduled an HIV viral load test with client */ // TODO: Replace placeholder with relevant CQL logic -define "HIV viral load test scheduled (Care)": - exists "HIV viral load test scheduled (Care) Condition" - or exists "HIV viral load test scheduled (Care) Observation" -define "HIV viral load test scheduled (Care) Condition": +define "HIV viral load test scheduled": + exists "HIV viral load test scheduled Condition" + or exists "HIV viral load test scheduled Observation" +define "HIV viral load test scheduled Condition": [Condition: Concepts."HIV viral load test scheduled"] -define "HIV viral load test scheduled (Care) Observation": - "Monitoring examinations (Care) Observation" O +define "HIV viral load test scheduled Observation": + "Monitoring examinations Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."HIV viral load test scheduled" -/* End of HIV viral load test scheduled (Care) */ +/* End of HIV viral load test scheduled */ /* @dataElement: HIV.D.DE408 - CD4 count ordered @@ -8320,16 +8320,16 @@ define "HIV viral load test scheduled (Care) Observation": @description: Provider ordered a CD4 cell count */ // TODO: Replace placeholder with relevant CQL logic -define "CD4 count ordered (Care)": - exists "CD4 count ordered (Care) Condition" - or exists "CD4 count ordered (Care) Observation" -define "CD4 count ordered (Care) Condition": +define "CD4 count ordered": + exists "CD4 count ordered Condition" + or exists "CD4 count ordered Observation" +define "CD4 count ordered Condition": [Condition: Concepts."CD4 count ordered"] -define "CD4 count ordered (Care) Observation": - "Monitoring examinations (Care) Observation" O +define "CD4 count ordered Observation": + "Monitoring examinations Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."CD4 count ordered" -/* End of CD4 count ordered (Care) */ +/* End of CD4 count ordered */ /* @dataElement: HIV.D.DE409 - CD4 count test scheduled @@ -8337,16 +8337,16 @@ define "CD4 count ordered (Care) Observation": @description: Scheduled a CD4 test with client */ // TODO: Replace placeholder with relevant CQL logic -define "CD4 count test scheduled (Care)": - exists "CD4 count test scheduled (Care) Condition" - or exists "CD4 count test scheduled (Care) Observation" -define "CD4 count test scheduled (Care) Condition": +define "CD4 count test scheduled": + exists "CD4 count test scheduled Condition" + or exists "CD4 count test scheduled Observation" +define "CD4 count test scheduled Condition": [Condition: Concepts."CD4 count test scheduled"] -define "CD4 count test scheduled (Care) Observation": - "Monitoring examinations (Care) Observation" O +define "CD4 count test scheduled Observation": + "Monitoring examinations Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."CD4 count test scheduled" -/* End of CD4 count test scheduled (Care) */ +/* End of CD4 count test scheduled */ /* @dataElement: HIV.D.DE410 - Cryptococcal antigen test @@ -8354,16 +8354,16 @@ define "CD4 count test scheduled (Care) Observation": @description: Provider ordered a cryptococcal antigen test */ // TODO: Replace placeholder with relevant CQL logic -define "Cryptococcal antigen test (Care)": - exists "Cryptococcal antigen test (Care) Condition" - or exists "Cryptococcal antigen test (Care) Observation" -define "Cryptococcal antigen test (Care) Condition": +define "Cryptococcal antigen test": + exists "Cryptococcal antigen test Condition" + or exists "Cryptococcal antigen test Observation" +define "Cryptococcal antigen test Condition": [Condition: Concepts."Cryptococcal antigen test"] -define "Cryptococcal antigen test (Care) Observation": - "Monitoring examinations (Care) Observation" O +define "Cryptococcal antigen test Observation": + "Monitoring examinations Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Cryptococcal antigen test" -/* End of Cryptococcal antigen test (Care) */ +/* End of Cryptococcal antigen test */ /* @dataElement: HIV.D.DE411 - Histoplasmosis antigen test @@ -8371,16 +8371,16 @@ define "Cryptococcal antigen test (Care) Observation": @description: Provider ordered a histoplasmosis antigen test */ // TODO: Replace placeholder with relevant CQL logic -define "Histoplasmosis antigen test (Care)": - exists "Histoplasmosis antigen test (Care) Condition" - or exists "Histoplasmosis antigen test (Care) Observation" -define "Histoplasmosis antigen test (Care) Condition": +define "Histoplasmosis antigen test": + exists "Histoplasmosis antigen test Condition" + or exists "Histoplasmosis antigen test Observation" +define "Histoplasmosis antigen test Condition": [Condition: Concepts."Histoplasmosis antigen test"] -define "Histoplasmosis antigen test (Care) Observation": - "Monitoring examinations (Care) Observation" O +define "Histoplasmosis antigen test Observation": + "Monitoring examinations Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Histoplasmosis antigen test" -/* End of Histoplasmosis antigen test (Care) */ +/* End of Histoplasmosis antigen test */ /* @dataElement: HIV.D.DE412 - Cervical cancer screening scheduled @@ -8388,16 +8388,16 @@ define "Histoplasmosis antigen test (Care) Observation": @description: Scheduled cervical cancer screening with client */ // TODO: Replace placeholder with relevant CQL logic -define "Cervical cancer screening scheduled (Care)": - exists "Cervical cancer screening scheduled (Care) Condition" - or exists "Cervical cancer screening scheduled (Care) Observation" -define "Cervical cancer screening scheduled (Care) Condition": +define "Cervical cancer screening scheduled": + exists "Cervical cancer screening scheduled Condition" + or exists "Cervical cancer screening scheduled Observation" +define "Cervical cancer screening scheduled Condition": [Condition: Concepts."Cervical cancer screening scheduled"] -define "Cervical cancer screening scheduled (Care) Observation": - "Monitoring examinations (Care) Observation" O +define "Cervical cancer screening scheduled Observation": + "Monitoring examinations Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Cervical cancer screening scheduled" -/* End of Cervical cancer screening scheduled (Care) */ +/* End of Cervical cancer screening scheduled */ /* @dataElement: HIV.D.DE413 - Date of scheduled monitoring examination @@ -8405,13 +8405,13 @@ define "Cervical cancer screening scheduled (Care) Observation": @description: Date of scheduled monitoring examination */ // TODO: Replace placeholder with relevant CQL logic -define "Date of scheduled monitoring examination (Care)": +define "Date of scheduled monitoring examination": [Observation: Concepts."Date of scheduled monitoring examination"] O where O.status in { 'final', 'amended', 'corrected' } -define "Date of scheduled monitoring examination (Care) Value": - "Date of scheduled monitoring examination (Care)" O +define "Date of scheduled monitoring examination Value": + "Date of scheduled monitoring examination" O return O.value -/* End of Date of scheduled monitoring examination (Care) */ +/* End of Date of scheduled monitoring examination */ /* @dataElement: HIV.D.DE417 - Date viral load test results received by client @@ -8419,13 +8419,13 @@ define "Date of scheduled monitoring examination (Care) Value": @description: The date on which the client received results from a viral load test */ // TODO: Replace placeholder with relevant CQL logic -define "Date viral load test results received by client (Care|DDE417)": +define "Date viral load test results received by client D.DE417": [Observation: Concepts."Date viral load test results received by client - HIV.D.DE417"] O where O.status in { 'final', 'amended', 'corrected' } -define "Date viral load test results received by client (Care|DDE417) Value": - "Date viral load test results received by client (Care|DDE417)" O +define "Date viral load test results received by client D.DE417 Value": + "Date viral load test results received by client D.DE417" O return O.value -/* End of Date viral load test results received by client (Care|DDE417) */ +/* End of Date viral load test results received by client D.DE417 */ /* @dataElement: HIV.D.DE418 - Reason for ARV drug regimen substitution @@ -8433,12 +8433,12 @@ define "Date viral load test results received by client (Care|DDE417) Value": @description: Reason why a substitution was made to the antiretroviral (ARV) drug regimen */ // TODO: Replace placeholder with relevant CQL logic -define "Reason for ARV drug regimen substitution (Care)": - exists "Reason for ARV drug regimen substitution (Care) Observation" -define "Reason for ARV drug regimen substitution (Care) Observation": +define "Reason for ARV drug regimen substitution": + exists "Reason for ARV drug regimen substitution Observation" +define "Reason for ARV drug regimen substitution Observation": [Observation: Concepts."Reason for ARV drug regimen substitution"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Reason for ARV drug regimen substitution (Care) */ +/* End of Reason for ARV drug regimen substitution */ /* @dataElement: HIV.D.DE419 - Toxicity/side effects @@ -8446,16 +8446,16 @@ define "Reason for ARV drug regimen substitution (Care) Observation": @description: A substitution was made to the regimen because of toxicity/side effects */ // TODO: Replace placeholder with relevant CQL logic -define "Toxicity/side effects (Care|DDE419)": - exists "Toxicity/side effects (Care|DDE419) Condition" - or exists "Toxicity/side effects (Care|DDE419) Observation" -define "Toxicity/side effects (Care|DDE419) Condition": +define "Toxicity/side effects D.DE419": + exists "Toxicity/side effects D.DE419 Condition" + or exists "Toxicity/side effects D.DE419 Observation" +define "Toxicity/side effects D.DE419 Condition": [Condition: Concepts."Toxicity/side effects - HIV.D.DE419"] -define "Toxicity/side effects (Care|DDE419) Observation": - "Reason for ARV drug regimen substitution (Care) Observation" O +define "Toxicity/side effects D.DE419 Observation": + "Reason for ARV drug regimen substitution Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Toxicity/side effects - HIV.D.DE419" -/* End of Toxicity/side effects (Care|DDE419) */ +/* End of Toxicity/side effects D.DE419 */ /* @dataElement: HIV.D.DE420 - Drug-drug interaction @@ -8463,16 +8463,16 @@ define "Toxicity/side effects (Care|DDE419) Observation": @description: A substitution was made to the regimen because of a drug-drug interaction */ // TODO: Replace placeholder with relevant CQL logic -define "Drug-drug interaction (Care)": - exists "Drug-drug interaction (Care) Condition" - or exists "Drug-drug interaction (Care) Observation" -define "Drug-drug interaction (Care) Condition": +define "Drug-drug interaction": + exists "Drug-drug interaction Condition" + or exists "Drug-drug interaction Observation" +define "Drug-drug interaction Condition": [Condition: Concepts."Drug-drug interaction"] -define "Drug-drug interaction (Care) Observation": - "Reason for ARV drug regimen substitution (Care) Observation" O +define "Drug-drug interaction Observation": + "Reason for ARV drug regimen substitution Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Drug-drug interaction" -/* End of Drug-drug interaction (Care) */ +/* End of Drug-drug interaction */ /* @dataElement: HIV.D.DE421 - Pregnancy @@ -8480,16 +8480,16 @@ define "Drug-drug interaction (Care) Observation": @description: A substitution was made to the regimen because of pregnancy */ // TODO: Replace placeholder with relevant CQL logic -define "Pregnancy (Care)": - exists "Pregnancy (Care) Condition" - or exists "Pregnancy (Care) Observation" -define "Pregnancy (Care) Condition": +define "Pregnancy": + exists "Pregnancy Condition" + or exists "Pregnancy Observation" +define "Pregnancy Condition": [Condition: Concepts."Pregnancy"] -define "Pregnancy (Care) Observation": - "Reason for ARV drug regimen substitution (Care) Observation" O +define "Pregnancy Observation": + "Reason for ARV drug regimen substitution Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Pregnancy" -/* End of Pregnancy (Care) */ +/* End of Pregnancy */ /* @dataElement: HIV.D.DE422 - New TB @@ -8497,16 +8497,16 @@ define "Pregnancy (Care) Observation": @description: A substitution was made to the regimen because of new tuberculosis (TB) */ // TODO: Replace placeholder with relevant CQL logic -define "New TB (Care)": - exists "New TB (Care) Condition" - or exists "New TB (Care) Observation" -define "New TB (Care) Condition": +define "New TB": + exists "New TB Condition" + or exists "New TB Observation" +define "New TB Condition": [Condition: Concepts."New TB"] -define "New TB (Care) Observation": - "Reason for ARV drug regimen substitution (Care) Observation" O +define "New TB Observation": + "Reason for ARV drug regimen substitution Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."New TB" -/* End of New TB (Care) */ +/* End of New TB */ /* @dataElement: HIV.D.DE423 - New drug available @@ -8514,16 +8514,16 @@ define "New TB (Care) Observation": @description: A substitution was made to the regimen because a new drug was available */ // TODO: Replace placeholder with relevant CQL logic -define "New drug available (Care)": - exists "New drug available (Care) Condition" - or exists "New drug available (Care) Observation" -define "New drug available (Care) Condition": +define "New drug available": + exists "New drug available Condition" + or exists "New drug available Observation" +define "New drug available Condition": [Condition: Concepts."New drug available"] -define "New drug available (Care) Observation": - "Reason for ARV drug regimen substitution (Care) Observation" O +define "New drug available Observation": + "Reason for ARV drug regimen substitution Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."New drug available" -/* End of New drug available (Care) */ +/* End of New drug available */ /* @dataElement: HIV.D.DE424 - Drug out of stock @@ -8531,16 +8531,16 @@ define "New drug available (Care) Observation": @description: A substitution was made to the regimen because drug was out of stock */ // TODO: Replace placeholder with relevant CQL logic -define "Drug out of stock (Care)": - exists "Drug out of stock (Care) Condition" - or exists "Drug out of stock (Care) Observation" -define "Drug out of stock (Care) Condition": +define "Drug out of stock": + exists "Drug out of stock Condition" + or exists "Drug out of stock Observation" +define "Drug out of stock Condition": [Condition: Concepts."Drug out of stock"] -define "Drug out of stock (Care) Observation": - "Reason for ARV drug regimen substitution (Care) Observation" O +define "Drug out of stock Observation": + "Reason for ARV drug regimen substitution Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Drug out of stock" -/* End of Drug out of stock (Care) */ +/* End of Drug out of stock */ /* @dataElement: HIV.D.DE425 - Other reason for regimen substitution @@ -8548,16 +8548,16 @@ define "Drug out of stock (Care) Observation": @description: A substitution was made for another reason */ // TODO: Replace placeholder with relevant CQL logic -define "Other reason for regimen substitution (Care)": - exists "Other reason for regimen substitution (Care) Condition" - or exists "Other reason for regimen substitution (Care) Observation" -define "Other reason for regimen substitution (Care) Condition": +define "Other reason for regimen substitution": + exists "Other reason for regimen substitution Condition" + or exists "Other reason for regimen substitution Observation" +define "Other reason for regimen substitution Condition": [Condition: Concepts."Other reason for regimen substitution"] -define "Other reason for regimen substitution (Care) Observation": - "Reason for ARV drug regimen substitution (Care) Observation" O +define "Other reason for regimen substitution Observation": + "Reason for ARV drug regimen substitution Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Other reason for regimen substitution" -/* End of Other reason for regimen substitution (Care) */ +/* End of Other reason for regimen substitution */ /* @dataElement: HIV.D.DE427 - Switch to second-line ART regimen recommended @@ -8565,13 +8565,13 @@ define "Other reason for regimen substitution (Care) Observation": @description: A switch to second-line ART regimen is recommended */ // TODO: Replace placeholder with relevant CQL logic -define "Switch to second-line ART regimen recommended (Care)": - exists "Switch to second-line ART regimen recommended (Care) Observation" -define "Switch to second-line ART regimen recommended (Care) Observation": +define "Switch to second-line ART regimen recommended": + exists "Switch to second-line ART regimen recommended Observation" +define "Switch to second-line ART regimen recommended Observation": [Observation: Concepts."Switch to second-line ART regimen recommended"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Switch to second-line ART regimen recommended (Care) */ +/* End of Switch to second-line ART regimen recommended */ /* @dataElement: HIV.D.DE436 - Regimen substitution recommended @@ -8579,13 +8579,13 @@ define "Switch to second-line ART regimen recommended (Care) Observation": @description: A drug substitution is recommended */ // TODO: Replace placeholder with relevant CQL logic -define "Regimen substitution recommended (Care)": - exists "Regimen substitution recommended (Care) Observation" -define "Regimen substitution recommended (Care) Observation": +define "Regimen substitution recommended": + exists "Regimen substitution recommended Observation" +define "Regimen substitution recommended Observation": [Observation: Concepts."Regimen substitution recommended"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Regimen substitution recommended (Care) */ +/* End of Regimen substitution recommended */ /* @dataElement: HIV.D.DE437 - Dose adjustment recommended @@ -8593,13 +8593,13 @@ define "Regimen substitution recommended (Care) Observation": @description: A dosage change is recommended */ // TODO: Replace placeholder with relevant CQL logic -define "Dose adjustment recommended (Care)": - exists "Dose adjustment recommended (Care) Observation" -define "Dose adjustment recommended (Care) Observation": +define "Dose adjustment recommended": + exists "Dose adjustment recommended Observation" +define "Dose adjustment recommended Observation": [Observation: Concepts."Dose adjustment recommended"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Dose adjustment recommended (Care) */ +/* End of Dose adjustment recommended */ /* @dataElement: HIV.D.DE443 - Suspicion of treatment failure or interruption @@ -8607,13 +8607,13 @@ define "Dose adjustment recommended (Care) Observation": @description: Client has been on ART, but has stopped taking it or a treatment failure is suspected */ // TODO: Replace placeholder with relevant CQL logic -define "Suspicion of treatment failure or interruption (Care)": - exists "Suspicion of treatment failure or interruption (Care) Observation" -define "Suspicion of treatment failure or interruption (Care) Observation": +define "Suspicion of treatment failure or interruption": + exists "Suspicion of treatment failure or interruption Observation" +define "Suspicion of treatment failure or interruption Observation": [Observation: Concepts."Suspicion of treatment failure or interruption"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Suspicion of treatment failure or interruption (Care) */ +/* End of Suspicion of treatment failure or interruption */ /* @dataElement: HIV.D.DE457 - Medications prescribed @@ -8621,12 +8621,12 @@ define "Suspicion of treatment failure or interruption (Care) Observation": @description: Name or regimen code of all other medications prescribed during the visit */ // TODO: Replace placeholder with relevant CQL logic -define "Medications prescribed (Care)": - exists "Medications prescribed (Care) Observation" -define "Medications prescribed (Care) Observation": +define "Medications prescribed D.DE457": + exists "Medications prescribed D.DE457 Observation" +define "Medications prescribed D.DE457 Observation": [Observation: Concepts."Medications prescribed - HIV.D.DE457"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Medications prescribed (Care) */ +/* End of Medications prescribed D.DE457 */ /* @dataElement: HIV.D.DE458 - Date medications prescribed @@ -8634,13 +8634,13 @@ define "Medications prescribed (Care) Observation": @description: Date the medications were prescribed */ // TODO: Replace placeholder with relevant CQL logic -define "Date medications prescribed (Care)": +define "Date medications prescribed D.DE458": [Observation: Concepts."Date medications prescribed - HIV.D.DE458"] O where O.status in { 'final', 'amended', 'corrected' } -define "Date medications prescribed (Care) Value": - "Date medications prescribed (Care)" O +define "Date medications prescribed D.DE458 Value": + "Date medications prescribed D.DE458" O return O.value -/* End of Date medications prescribed (Care) */ +/* End of Date medications prescribed D.DE458 */ /* @dataElement: HIV.D.DE459 - Dose of medications prescribed @@ -8648,13 +8648,13 @@ define "Date medications prescribed (Care) Value": @description: Number of doses (quantity taken at a single point in time) of drugs prescribed/dispensed */ // TODO: Replace placeholder with relevant CQL logic -define "Dose of medications prescribed (Care)": +define "Dose of medications prescribed": [Observation: Concepts."Dose of medications prescribed"] O where O.status in { 'final', 'amended', 'corrected' } -define "Dose of medications prescribed (Care) Value": - "Dose of medications prescribed (Care)" O +define "Dose of medications prescribed Value": + "Dose of medications prescribed" O return O.value -/* End of Dose of medications prescribed (Care) */ +/* End of Dose of medications prescribed */ /* @dataElement: HIV.D.DE460 - Number of days medications prescribed @@ -8662,13 +8662,13 @@ define "Dose of medications prescribed (Care) Value": @description: Number of days supply of each medication or regimen prescribed during the visit */ // TODO: Replace placeholder with relevant CQL logic -define "Number of days medications prescribed (Care)": +define "Number of days medications prescribed": [Observation: Concepts."Number of days medications prescribed"] O where O.status in { 'final', 'amended', 'corrected' } -define "Number of days medications prescribed (Care) Value": - "Number of days medications prescribed (Care)" O +define "Number of days medications prescribed Value": + "Number of days medications prescribed" O return O.value -/* End of Number of days medications prescribed (Care) */ +/* End of Number of days medications prescribed */ /* @dataElement: HIV.D.DE465 - Adherence counselling provided @@ -8676,13 +8676,13 @@ define "Number of days medications prescribed (Care) Value": @description: Counselling was carried out during visit */ // TODO: Replace placeholder with relevant CQL logic -define "Adherence counselling provided (Care)": - exists "Adherence counselling provided (Care) Observation" -define "Adherence counselling provided (Care) Observation": +define "Adherence counselling provided D.DE465": + exists "Adherence counselling provided D.DE465 Observation" +define "Adherence counselling provided D.DE465 Observation": [Observation: Concepts."Adherence counselling provided - HIV.D.DE465"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Adherence counselling provided (Care) */ +/* End of Adherence counselling provided D.DE465 */ /* @dataElement: HIV.D.DE466 - Type of treatment-limiting toxicity @@ -8690,12 +8690,12 @@ define "Adherence counselling provided (Care) Observation": @description: Type of treatment-limiting toxicity experienced by client. Treatment-limiting toxicity is defined as a serious adverse drug reaction that results in drug discontinuation or substitution. In addition, any reaction that leads to treatment interruption or requires changing the drug or regimen because of an adverse drug reaction is also considered a serious adverse drug reaction. */ // TODO: Replace placeholder with relevant CQL logic -define "Type of treatment-limiting toxicity (Care)": - exists "Type of treatment-limiting toxicity (Care) Observation" -define "Type of treatment-limiting toxicity (Care) Observation": +define "Type of treatment-limiting toxicity": + exists "Type of treatment-limiting toxicity Observation" +define "Type of treatment-limiting toxicity Observation": [Observation: Concepts."Type of treatment-limiting toxicity"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Type of treatment-limiting toxicity (Care) */ +/* End of Type of treatment-limiting toxicity */ /* @dataElement: HIV.D.DE467 - Gastrointestinal @@ -8703,16 +8703,16 @@ define "Type of treatment-limiting toxicity (Care) Observation": @description: Treatment-limiting toxicity due to GI issues (nausea, diarrhoea, abdominal pain, vomiting) */ // TODO: Replace placeholder with relevant CQL logic -define "Gastrointestinal (Care)": - exists "Gastrointestinal (Care) Condition" - or exists "Gastrointestinal (Care) Observation" -define "Gastrointestinal (Care) Condition": +define "Gastrointestinal": + exists "Gastrointestinal Condition" + or exists "Gastrointestinal Observation" +define "Gastrointestinal Condition": [Condition: Concepts."Gastrointestinal"] -define "Gastrointestinal (Care) Observation": - "Type of treatment-limiting toxicity (Care) Observation" O +define "Gastrointestinal Observation": + "Type of treatment-limiting toxicity Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Gastrointestinal" -/* End of Gastrointestinal (Care) */ +/* End of Gastrointestinal */ /* @dataElement: HIV.D.DE468 - Skin issues @@ -8720,16 +8720,16 @@ define "Gastrointestinal (Care) Observation": @description: Treatment-limiting toxicity due to skin issues (rash, hypersensitivity reaction) */ // TODO: Replace placeholder with relevant CQL logic -define "Skin issues (Care)": - exists "Skin issues (Care) Condition" - or exists "Skin issues (Care) Observation" -define "Skin issues (Care) Condition": +define "Skin issues": + exists "Skin issues Condition" + or exists "Skin issues Observation" +define "Skin issues Condition": [Condition: Concepts."Skin issues"] -define "Skin issues (Care) Observation": - "Type of treatment-limiting toxicity (Care) Observation" O +define "Skin issues Observation": + "Type of treatment-limiting toxicity Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Skin issues" -/* End of Skin issues (Care) */ +/* End of Skin issues */ /* @dataElement: HIV.D.DE469 - Peripheral neuropathy @@ -8737,16 +8737,16 @@ define "Skin issues (Care) Observation": @description: Treatment-limiting toxicity due to peripheral neuropathy (burning/numbness/ tingling) */ // TODO: Replace placeholder with relevant CQL logic -define "Peripheral neuropathy (Care)": - exists "Peripheral neuropathy (Care) Condition" - or exists "Peripheral neuropathy (Care) Observation" -define "Peripheral neuropathy (Care) Condition": +define "Peripheral neuropathy": + exists "Peripheral neuropathy Condition" + or exists "Peripheral neuropathy Observation" +define "Peripheral neuropathy Condition": [Condition: Concepts."Peripheral neuropathy"] -define "Peripheral neuropathy (Care) Observation": - "Type of treatment-limiting toxicity (Care) Observation" O +define "Peripheral neuropathy Observation": + "Type of treatment-limiting toxicity Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Peripheral neuropathy" -/* End of Peripheral neuropathy (Care) */ +/* End of Peripheral neuropathy */ /* @dataElement: HIV.D.DE470 - Central nervous system symptoms @@ -8754,16 +8754,16 @@ define "Peripheral neuropathy (Care) Observation": @description: Treatment-limiting toxicity due to central nervous system symptoms (dizzy, anxiety, nightmare, depression, seizures) */ // TODO: Replace placeholder with relevant CQL logic -define "Central nervous system symptoms (Care)": - exists "Central nervous system symptoms (Care) Condition" - or exists "Central nervous system symptoms (Care) Observation" -define "Central nervous system symptoms (Care) Condition": +define "Central nervous system symptoms": + exists "Central nervous system symptoms Condition" + or exists "Central nervous system symptoms Observation" +define "Central nervous system symptoms Condition": [Condition: Concepts."Central nervous system symptoms"] -define "Central nervous system symptoms (Care) Observation": - "Type of treatment-limiting toxicity (Care) Observation" O +define "Central nervous system symptoms Observation": + "Type of treatment-limiting toxicity Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Central nervous system symptoms" -/* End of Central nervous system symptoms (Care) */ +/* End of Central nervous system symptoms */ /* @dataElement: HIV.D.DE471 - Weight gain @@ -8771,16 +8771,16 @@ define "Central nervous system symptoms (Care) Observation": @description: Treatment-limiting toxicity due to weight gain */ // TODO: Replace placeholder with relevant CQL logic -define "Weight gain (Care)": - exists "Weight gain (Care) Condition" - or exists "Weight gain (Care) Observation" -define "Weight gain (Care) Condition": +define "Weight gain": + exists "Weight gain Condition" + or exists "Weight gain Observation" +define "Weight gain Condition": [Condition: Concepts."Weight gain"] -define "Weight gain (Care) Observation": - "Type of treatment-limiting toxicity (Care) Observation" O +define "Weight gain Observation": + "Type of treatment-limiting toxicity Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Weight gain" -/* End of Weight gain (Care) */ +/* End of Weight gain */ /* @dataElement: HIV.D.DE472 - Hepatic dysfunction @@ -8788,16 +8788,16 @@ define "Weight gain (Care) Observation": @description: Treatment-limiting toxicity due to hepatic dysfunction (jaundice) */ // TODO: Replace placeholder with relevant CQL logic -define "Hepatic dysfunction (Care)": - exists "Hepatic dysfunction (Care) Condition" - or exists "Hepatic dysfunction (Care) Observation" -define "Hepatic dysfunction (Care) Condition": +define "Hepatic dysfunction": + exists "Hepatic dysfunction Condition" + or exists "Hepatic dysfunction Observation" +define "Hepatic dysfunction Condition": [Condition: Concepts."Hepatic dysfunction"] -define "Hepatic dysfunction (Care) Observation": - "Type of treatment-limiting toxicity (Care) Observation" O +define "Hepatic dysfunction Observation": + "Type of treatment-limiting toxicity Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Hepatic dysfunction" -/* End of Hepatic dysfunction (Care) */ +/* End of Hepatic dysfunction */ /* @dataElement: HIV.D.DE473 - Haematological disorders @@ -8805,16 +8805,16 @@ define "Hepatic dysfunction (Care) Observation": @description: Treatment-limiting toxicity due to haematological (anaemia, neutropenia) disorders */ // TODO: Replace placeholder with relevant CQL logic -define "Haematological disorders (Care)": - exists "Haematological disorders (Care) Condition" - or exists "Haematological disorders (Care) Observation" -define "Haematological disorders (Care) Condition": +define "Haematological disorders": + exists "Haematological disorders Condition" + or exists "Haematological disorders Observation" +define "Haematological disorders Condition": [Condition: Concepts."Haematological disorders"] -define "Haematological disorders (Care) Observation": - "Type of treatment-limiting toxicity (Care) Observation" O +define "Haematological disorders Observation": + "Type of treatment-limiting toxicity Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Haematological disorders" -/* End of Haematological disorders (Care) */ +/* End of Haematological disorders */ /* @dataElement: HIV.D.DE474 - Fatigue @@ -8822,16 +8822,16 @@ define "Haematological disorders (Care) Observation": @description: Treatment-limiting toxicity due to fatigue */ // TODO: Replace placeholder with relevant CQL logic -define "Fatigue (Care)": - exists "Fatigue (Care) Condition" - or exists "Fatigue (Care) Observation" -define "Fatigue (Care) Condition": +define "Fatigue": + exists "Fatigue Condition" + or exists "Fatigue Observation" +define "Fatigue Condition": [Condition: Concepts."Fatigue"] -define "Fatigue (Care) Observation": - "Type of treatment-limiting toxicity (Care) Observation" O +define "Fatigue Observation": + "Type of treatment-limiting toxicity Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Fatigue" -/* End of Fatigue (Care) */ +/* End of Fatigue */ /* @dataElement: HIV.D.DE475 - Headache @@ -8839,16 +8839,16 @@ define "Fatigue (Care) Observation": @description: Treatment-limiting toxicity due to headache */ // TODO: Replace placeholder with relevant CQL logic -define "Headache (Care|DDE475)": - exists "Headache (Care|DDE475) Condition" - or exists "Headache (Care|DDE475) Observation" -define "Headache (Care|DDE475) Condition": +define "Headache D.DE475": + exists "Headache D.DE475 Condition" + or exists "Headache D.DE475 Observation" +define "Headache D.DE475 Condition": [Condition: Concepts."Headache - HIV.D.DE475"] -define "Headache (Care|DDE475) Observation": - "Type of treatment-limiting toxicity (Care) Observation" O +define "Headache D.DE475 Observation": + "Type of treatment-limiting toxicity Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Headache - HIV.D.DE475" -/* End of Headache (Care|DDE475) */ +/* End of Headache D.DE475 */ /* @dataElement: HIV.D.DE476 - Bone dysfunction @@ -8856,16 +8856,16 @@ define "Headache (Care|DDE475) Observation": @description: Treatment-limiting toxicity due to bone dysfunction (fractures, osteopenia) */ // TODO: Replace placeholder with relevant CQL logic -define "Bone dysfunction (Care)": - exists "Bone dysfunction (Care) Condition" - or exists "Bone dysfunction (Care) Observation" -define "Bone dysfunction (Care) Condition": +define "Bone dysfunction": + exists "Bone dysfunction Condition" + or exists "Bone dysfunction Observation" +define "Bone dysfunction Condition": [Condition: Concepts."Bone dysfunction"] -define "Bone dysfunction (Care) Observation": - "Type of treatment-limiting toxicity (Care) Observation" O +define "Bone dysfunction Observation": + "Type of treatment-limiting toxicity Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Bone dysfunction" -/* End of Bone dysfunction (Care) */ +/* End of Bone dysfunction */ /* @dataElement: HIV.D.DE477 - Metabolic symptoms @@ -8873,16 +8873,16 @@ define "Bone dysfunction (Care) Observation": @description: Treatment-limiting toxicity due to metabolic symptoms (body fat changes, hyperglycaemia, dyslipidaemia) */ // TODO: Replace placeholder with relevant CQL logic -define "Metabolic symptoms (Care)": - exists "Metabolic symptoms (Care) Condition" - or exists "Metabolic symptoms (Care) Observation" -define "Metabolic symptoms (Care) Condition": +define "Metabolic symptoms": + exists "Metabolic symptoms Condition" + or exists "Metabolic symptoms Observation" +define "Metabolic symptoms Condition": [Condition: Concepts."Metabolic symptoms"] -define "Metabolic symptoms (Care) Observation": - "Type of treatment-limiting toxicity (Care) Observation" O +define "Metabolic symptoms Observation": + "Type of treatment-limiting toxicity Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Metabolic symptoms" -/* End of Metabolic symptoms (Care) */ +/* End of Metabolic symptoms */ /* @dataElement: HIV.D.DE478 - Kidney dysfunction @@ -8890,16 +8890,16 @@ define "Metabolic symptoms (Care) Observation": @description: Treatment-limiting toxicity due to kidney dysfunction (nephrolithiasis, renal insufficiency) */ // TODO: Replace placeholder with relevant CQL logic -define "Kidney dysfunction (Care)": - exists "Kidney dysfunction (Care) Condition" - or exists "Kidney dysfunction (Care) Observation" -define "Kidney dysfunction (Care) Condition": +define "Kidney dysfunction": + exists "Kidney dysfunction Condition" + or exists "Kidney dysfunction Observation" +define "Kidney dysfunction Condition": [Condition: Concepts."Kidney dysfunction"] -define "Kidney dysfunction (Care) Observation": - "Type of treatment-limiting toxicity (Care) Observation" O +define "Kidney dysfunction Observation": + "Type of treatment-limiting toxicity Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Kidney dysfunction" -/* End of Kidney dysfunction (Care) */ +/* End of Kidney dysfunction */ /* @dataElement: HIV.D.DE479 - Unexpected adverse drug reaction @@ -8907,16 +8907,16 @@ define "Kidney dysfunction (Care) Observation": @description: Client experienced an unexpected adverse drug reaction */ // TODO: Replace placeholder with relevant CQL logic -define "Unexpected adverse drug reaction (Care)": - exists "Unexpected adverse drug reaction (Care) Condition" - or exists "Unexpected adverse drug reaction (Care) Observation" -define "Unexpected adverse drug reaction (Care) Condition": +define "Unexpected adverse drug reaction": + exists "Unexpected adverse drug reaction Condition" + or exists "Unexpected adverse drug reaction Observation" +define "Unexpected adverse drug reaction Condition": [Condition: Concepts."Unexpected adverse drug reaction"] -define "Unexpected adverse drug reaction (Care) Observation": - "Type of treatment-limiting toxicity (Care) Observation" O +define "Unexpected adverse drug reaction Observation": + "Type of treatment-limiting toxicity Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Unexpected adverse drug reaction" -/* End of Unexpected adverse drug reaction (Care) */ +/* End of Unexpected adverse drug reaction */ /* @dataElement: HIV.D.DE487 - Dates of substitution within second-line regimen @@ -8924,13 +8924,13 @@ define "Unexpected adverse drug reaction (Care) Observation": @description: Date on which ARV drug regimen for client was changed within the second-line regimen (substitution) */ // TODO: Replace placeholder with relevant CQL logic -define "Dates of substitution within second-line regimen (Care)": +define "Dates of substitution within second-line regimen": [Observation: Concepts."Dates of substitution within second-line regimen"] O where O.status in { 'final', 'amended', 'corrected' } -define "Dates of substitution within second-line regimen (Care) Value": - "Dates of substitution within second-line regimen (Care)" O +define "Dates of substitution within second-line regimen Value": + "Dates of substitution within second-line regimen" O return O.value -/* End of Dates of substitution within second-line regimen (Care) */ +/* End of Dates of substitution within second-line regimen */ /* @dataElement: HIV.D.DE493 - Dates of substitution within third-line regimen @@ -8938,13 +8938,13 @@ define "Dates of substitution within second-line regimen (Care) Value": @description: Date on which ARV drug regimen for client was changed within the third-line (substitution) */ // TODO: Replace placeholder with relevant CQL logic -define "Dates of substitution within third-line regimen (Care)": +define "Dates of substitution within third-line regimen": [Observation: Concepts."Dates of substitution within third-line regimen"] O where O.status in { 'final', 'amended', 'corrected' } -define "Dates of substitution within third-line regimen (Care) Value": - "Dates of substitution within third-line regimen (Care)" O +define "Dates of substitution within third-line regimen Value": + "Dates of substitution within third-line regimen" O return O.value -/* End of Dates of substitution within third-line regimen (Care) */ +/* End of Dates of substitution within third-line regimen */ /* @dataElement: HIV.D.DE496 - Enhanced adherence counselling provided @@ -8952,13 +8952,13 @@ define "Dates of substitution within third-line regimen (Care) Value": @description: Enhanced adherence counselling was provided to the client during the visit */ // TODO: Replace placeholder with relevant CQL logic -define "Enhanced adherence counselling provided (Care)": - exists "Enhanced adherence counselling provided (Care) Observation" -define "Enhanced adherence counselling provided (Care) Observation": +define "Enhanced adherence counselling provided": + exists "Enhanced adherence counselling provided Observation" +define "Enhanced adherence counselling provided Observation": [Observation: Concepts."Enhanced adherence counselling provided"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Enhanced adherence counselling provided (Care) */ +/* End of Enhanced adherence counselling provided */ /* @dataElement: HIV.D.DE507 - Counselling provided on diagnoses @@ -8966,13 +8966,13 @@ define "Enhanced adherence counselling provided (Care) Observation": @description: Counselling provided on diagnoses */ // TODO: Replace placeholder with relevant CQL logic -define "Counselling provided on diagnoses (Care)": - exists "Counselling provided on diagnoses (Care) Observation" -define "Counselling provided on diagnoses (Care) Observation": +define "Counselling provided on diagnoses": + exists "Counselling provided on diagnoses Observation" +define "Counselling provided on diagnoses Observation": [Observation: Concepts."Counselling provided on diagnoses"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Counselling provided on diagnoses (Care) */ +/* End of Counselling provided on diagnoses */ /* @dataElement: HIV.D.DE510 - Syphilis counselling and treatment @@ -8980,13 +8980,13 @@ define "Counselling provided on diagnoses (Care) Observation": @description: Whether counselling and treatment was provided to a client who has been diagnosed with syphilis */ // TODO: Replace placeholder with relevant CQL logic -define "Syphilis counselling and treatment (Care)": - exists "Syphilis counselling and treatment (Care) Observation" -define "Syphilis counselling and treatment (Care) Observation": +define "Syphilis counselling and treatment": + exists "Syphilis counselling and treatment Observation" +define "Syphilis counselling and treatment Observation": [Observation: Concepts."Syphilis counselling and treatment"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Syphilis counselling and treatment (Care) */ +/* End of Syphilis counselling and treatment */ /* @dataElement: HIV.D.DE519 - Other support services @@ -8994,12 +8994,12 @@ define "Syphilis counselling and treatment (Care) Observation": @description: Offer or refer for other support services */ // TODO: Replace placeholder with relevant CQL logic -define "Other support services (Care)": - exists "Other support services (Care) Observation" -define "Other support services (Care) Observation": +define "Other support services D.DE519": + exists "Other support services D.DE519 Observation" +define "Other support services D.DE519 Observation": [Observation: Concepts."Other support services - HIV.D.DE519"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Other support services (Care) */ +/* End of Other support services D.DE519 */ /* @dataElement: HIV.D.DE520 - Mental health services @@ -9007,16 +9007,16 @@ define "Other support services (Care) Observation": @description: Offer or refer for mental health services */ // TODO: Replace placeholder with relevant CQL logic -define "Mental health services (Care)": - exists "Mental health services (Care) Condition" - or exists "Mental health services (Care) Observation" -define "Mental health services (Care) Condition": +define "Mental health services D.DE520": + exists "Mental health services D.DE520 Condition" + or exists "Mental health services D.DE520 Observation" +define "Mental health services D.DE520 Condition": [Condition: Concepts."Mental health services - HIV.D.DE520"] -define "Mental health services (Care) Observation": - "Other support services (Care) Observation" O +define "Mental health services D.DE520 Observation": + "Other support services D.DE519 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Mental health services - HIV.D.DE520" -/* End of Mental health services (Care) */ +/* End of Mental health services D.DE520 */ /* @dataElement: HIV.D.DE521 - Psychosocial counselling, support and treatment adherence counselling @@ -9024,16 +9024,16 @@ define "Mental health services (Care) Observation": @description: Offer or refer for psychosocial counselling, support and treatment adherence counselling */ // TODO: Replace placeholder with relevant CQL logic -define "Psychosocial counselling, support and treatment adherence counselling (Care)": - exists "Psychosocial counselling, support and treatment adherence counselling (Care) Condition" - or exists "Psychosocial counselling, support and treatment adherence counselling (Care) Observation" -define "Psychosocial counselling, support and treatment adherence counselling (Care) Condition": +define "Psychosocial counselling, support and treatment adherence counselling D.DE521": + exists "Psychosocial counselling, support and treatment adherence counselling D.DE521 Condition" + or exists "Psychosocial counselling, support and treatment adherence counselling D.DE521 Observation" +define "Psychosocial counselling, support and treatment adherence counselling D.DE521 Condition": [Condition: Concepts."Psychosocial counselling, support and treatment adherence counselling - HIV.D.DE521"] -define "Psychosocial counselling, support and treatment adherence counselling (Care) Observation": - "Other support services (Care) Observation" O +define "Psychosocial counselling, support and treatment adherence counselling D.DE521 Observation": + "Other support services D.DE519 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Psychosocial counselling, support and treatment adherence counselling - HIV.D.DE521" -/* End of Psychosocial counselling, support and treatment adherence counselling (Care) */ +/* End of Psychosocial counselling, support and treatment adherence counselling D.DE521 */ /* @dataElement: HIV.D.DE522 - Legal and social services @@ -9041,16 +9041,16 @@ define "Psychosocial counselling, support and treatment adherence counselling (C @description: Offer or refer for legal and social services */ // TODO: Replace placeholder with relevant CQL logic -define "Legal and social services (Care)": - exists "Legal and social services (Care) Condition" - or exists "Legal and social services (Care) Observation" -define "Legal and social services (Care) Condition": +define "Legal and social services D.DE522": + exists "Legal and social services D.DE522 Condition" + or exists "Legal and social services D.DE522 Observation" +define "Legal and social services D.DE522 Condition": [Condition: Concepts."Legal and social services - HIV.D.DE522"] -define "Legal and social services (Care) Observation": - "Other support services (Care) Observation" O +define "Legal and social services D.DE522 Observation": + "Other support services D.DE519 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Legal and social services - HIV.D.DE522" -/* End of Legal and social services (Care) */ +/* End of Legal and social services D.DE522 */ /* @dataElement: HIV.D.DE523 - Services for responding to violence against women @@ -9058,16 +9058,16 @@ define "Legal and social services (Care) Observation": @description: Offer or refer for services for responding to violence against women, including first-line support and psychosocial support, post-rape care and other support services including shelters, legal services and women and child protection services */ // TODO: Replace placeholder with relevant CQL logic -define "Services for responding to violence against women (Care)": - exists "Services for responding to violence against women (Care) Condition" - or exists "Services for responding to violence against women (Care) Observation" -define "Services for responding to violence against women (Care) Condition": +define "Services for responding to violence against women D.DE523": + exists "Services for responding to violence against women D.DE523 Condition" + or exists "Services for responding to violence against women D.DE523 Observation" +define "Services for responding to violence against women D.DE523 Condition": [Condition: Concepts."Services for responding to violence against women - HIV.D.DE523"] -define "Services for responding to violence against women (Care) Observation": - "Other support services (Care) Observation" O +define "Services for responding to violence against women D.DE523 Observation": + "Other support services D.DE519 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Services for responding to violence against women - HIV.D.DE523" -/* End of Services for responding to violence against women (Care) */ +/* End of Services for responding to violence against women D.DE523 */ /* @dataElement: HIV.D.DE524 - Date/time of follow-up appointment @@ -9075,13 +9075,13 @@ define "Services for responding to violence against women (Care) Observation": @description: Date the client is to return for monitoring, re-supply or any other reason */ // TODO: Replace placeholder with relevant CQL logic -define "Date/time of follow-up appointment (Care)": +define "Date/time of follow-up appointment D.DE524": [Observation: Concepts."Date/time of follow-up appointment - HIV.D.DE524"] O where O.status in { 'final', 'amended', 'corrected' } -define "Date/time of follow-up appointment (Care) Value": - "Date/time of follow-up appointment (Care)" O +define "Date/time of follow-up appointment D.DE524 Value": + "Date/time of follow-up appointment D.DE524" O return O.value -/* End of Date/time of follow-up appointment (Care) */ +/* End of Date/time of follow-up appointment D.DE524 */ /* @dataElement: HIV.D.DE525 - Type of follow-up appointment @@ -9089,12 +9089,12 @@ define "Date/time of follow-up appointment (Care) Value": @description: Whether the visit will be clinical only, ARV drug pick-up or other. Client may have multiple follow-ups scheduled. */ // TODO: Replace placeholder with relevant CQL logic -define "Type of follow-up appointment (Care)": - exists "Type of follow-up appointment (Care) Observation" -define "Type of follow-up appointment (Care) Observation": +define "Type of follow-up appointment D.DE525": + exists "Type of follow-up appointment D.DE525 Observation" +define "Type of follow-up appointment D.DE525 Observation": [Observation: Concepts."Type of follow-up appointment - HIV.D.DE525"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Type of follow-up appointment (Care) */ +/* End of Type of follow-up appointment D.DE525 */ /* @dataElement: HIV.D.DE526 - Clinical visit @@ -9102,16 +9102,16 @@ define "Type of follow-up appointment (Care) Observation": @description: Appointment for clinical care by a provider */ // TODO: Replace placeholder with relevant CQL logic -define "Clinical visit (Care|DDE526)": - exists "Clinical visit (Care|DDE526) Condition" - or exists "Clinical visit (Care|DDE526) Observation" -define "Clinical visit (Care|DDE526) Condition": +define "Clinical visit D.DE526": + exists "Clinical visit D.DE526 Condition" + or exists "Clinical visit D.DE526 Observation" +define "Clinical visit D.DE526 Condition": [Condition: Concepts."Clinical visit - HIV.D.DE526"] -define "Clinical visit (Care|DDE526) Observation": - "Type of follow-up appointment (Care) Observation" O +define "Clinical visit D.DE526 Observation": + "Type of follow-up appointment D.DE525 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Clinical visit - HIV.D.DE526" -/* End of Clinical visit (Care|DDE526) */ +/* End of Clinical visit D.DE526 */ /* @dataElement: HIV.D.DE527 - Antiretroviral drug pick up @@ -9119,16 +9119,16 @@ define "Clinical visit (Care|DDE526) Observation": @description: Appointment for a drug pick up */ // TODO: Replace placeholder with relevant CQL logic -define "Antiretroviral drug pick up (Care)": - exists "Antiretroviral drug pick up (Care) Condition" - or exists "Antiretroviral drug pick up (Care) Observation" -define "Antiretroviral drug pick up (Care) Condition": +define "Antiretroviral drug pick up": + exists "Antiretroviral drug pick up Condition" + or exists "Antiretroviral drug pick up Observation" +define "Antiretroviral drug pick up Condition": [Condition: Concepts."Antiretroviral drug pick up"] -define "Antiretroviral drug pick up (Care) Observation": - "Type of follow-up appointment (Care) Observation" O +define "Antiretroviral drug pick up Observation": + "Type of follow-up appointment D.DE525 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Antiretroviral drug pick up" -/* End of Antiretroviral drug pick up (Care) */ +/* End of Antiretroviral drug pick up */ /* @dataElement: HIV.D.DE528 - Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer @@ -9136,16 +9136,16 @@ define "Antiretroviral drug pick up (Care) Observation": @description: Appointment for a post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer */ // TODO: Replace placeholder with relevant CQL logic -define "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer (Care|DDE528)": - exists "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer (Care|DDE528) Condition" - or exists "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer (Care|DDE528) Observation" -define "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer (Care|DDE528) Condition": +define "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer D.DE528": + exists "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer D.DE528 Condition" + or exists "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer D.DE528 Observation" +define "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer D.DE528 Condition": [Condition: Concepts."Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer - HIV.D.DE528"] -define "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer (Care|DDE528) Observation": - "Type of follow-up appointment (Care) Observation" O +define "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer D.DE528 Observation": + "Type of follow-up appointment D.DE525 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer - HIV.D.DE528" -/* End of Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer (Care|DDE528) */ +/* End of Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer D.DE528 */ /* @dataElement: HIV.D.DE529 - Other @@ -9153,16 +9153,16 @@ define "Post-treatment follow-up visit for cervical precancer lesions or invasiv @description: Other reason for the follow-up appointment */ // TODO: Replace placeholder with relevant CQL logic -define "Other (Care|DDE529)": - exists "Other (Care|DDE529) Condition" - or exists "Other (Care|DDE529) Observation" -define "Other (Care|DDE529) Condition": +define "Other D.DE529": + exists "Other D.DE529 Condition" + or exists "Other D.DE529 Observation" +define "Other D.DE529 Condition": [Condition: Concepts."Other - HIV.D.DE529"] -define "Other (Care|DDE529) Observation": - "Type of follow-up appointment (Care) Observation" O +define "Other D.DE529 Observation": + "Type of follow-up appointment D.DE525 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Other - HIV.D.DE529" -/* End of Other (Care|DDE529) */ +/* End of Other D.DE529 */ /* @dataElement: HIV.D.DE531 - Follow-up test recommended date @@ -9170,13 +9170,13 @@ define "Other (Care|DDE529) Observation": @description: A test or screening recommended for the client's care plan at a future date */ // TODO: Replace placeholder with relevant CQL logic -define "Follow-up test recommended date (Care)": +define "Follow-up test recommended date": [Observation: Concepts."Follow-up test recommended date"] O where O.status in { 'final', 'amended', 'corrected' } -define "Follow-up test recommended date (Care) Value": - "Follow-up test recommended date (Care)" O +define "Follow-up test recommended date Value": + "Follow-up test recommended date" O return O.value -/* End of Follow-up test recommended date (Care) */ +/* End of Follow-up test recommended date */ /* @dataElement: HIV.D.DE537 - Current medications @@ -9184,12 +9184,12 @@ define "Follow-up test recommended date (Care) Value": @description: List of all of the medications the client is currently taking */ // TODO: Replace placeholder with relevant CQL logic -define "Current medications (Care)": - exists "Current medications (Care) Observation" -define "Current medications (Care) Observation": +define "Current medications": + exists "Current medications Observation" +define "Current medications Observation": [Observation: Concepts."Current medications"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Current medications (Care) */ +/* End of Current medications */ /* @dataElement: HIV.D.DE538 - No medications @@ -9197,16 +9197,16 @@ define "Current medications (Care) Observation": @description: The client is currently not on any medications */ // TODO: Replace placeholder with relevant CQL logic -define "No medications (Care)": - exists "No medications (Care) Condition" - or exists "No medications (Care) Observation" -define "No medications (Care) Condition": +define "No medications": + exists "No medications Condition" + or exists "No medications Observation" +define "No medications Condition": [Condition: Concepts."No medications"] -define "No medications (Care) Observation": - "Current medications (Care) Observation" O +define "No medications Observation": + "Current medications Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."No medications" -/* End of No medications (Care) */ +/* End of No medications */ /* @dataElement: HIV.D.DE539 - Dont know of any current medications @@ -9214,16 +9214,16 @@ define "No medications (Care) Observation": @description: The client does not know if she is on any medications */ // TODO: Replace placeholder with relevant CQL logic -define "Dont know of any current medications (Care)": - exists "Dont know of any current medications (Care) Condition" - or exists "Dont know of any current medications (Care) Observation" -define "Dont know of any current medications (Care) Condition": +define "Dont know of any current medications": + exists "Dont know of any current medications Condition" + or exists "Dont know of any current medications Observation" +define "Dont know of any current medications Condition": [Condition: Concepts."Dont know of any current medications"] -define "Dont know of any current medications (Care) Observation": - "Current medications (Care) Observation" O +define "Dont know of any current medications Observation": + "Current medications Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Dont know of any current medications" -/* End of Dont know of any current medications (Care) */ +/* End of Dont know of any current medications */ /* @dataElement: HIV.D.DE540 - Analgesic @@ -9231,16 +9231,16 @@ define "Dont know of any current medications (Care) Observation": @description: Analgesic medication (painkiller) */ // TODO: Replace placeholder with relevant CQL logic -define "Analgesic (Care)": - exists "Analgesic (Care) Condition" - or exists "Analgesic (Care) Observation" -define "Analgesic (Care) Condition": +define "Analgesic": + exists "Analgesic Condition" + or exists "Analgesic Observation" +define "Analgesic Condition": [Condition: Concepts."Analgesic"] -define "Analgesic (Care) Observation": - "Current medications (Care) Observation" O +define "Analgesic Observation": + "Current medications Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Analgesic" -/* End of Analgesic (Care) */ +/* End of Analgesic */ /* @dataElement: HIV.D.DE541 - Antacids @@ -9248,16 +9248,16 @@ define "Analgesic (Care) Observation": @description: Antacids */ // TODO: Replace placeholder with relevant CQL logic -define "Antacids (Care)": - exists "Antacids (Care) Condition" - or exists "Antacids (Care) Observation" -define "Antacids (Care) Condition": +define "Antacids": + exists "Antacids Condition" + or exists "Antacids Observation" +define "Antacids Condition": [Condition: Concepts."Antacids"] -define "Antacids (Care) Observation": - "Current medications (Care) Observation" O +define "Antacids Observation": + "Current medications Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Antacids" -/* End of Antacids (Care) */ +/* End of Antacids */ /* @dataElement: HIV.D.DE542 - Antibiotics broad-spectrum @@ -9265,16 +9265,16 @@ define "Antacids (Care) Observation": @description: Client is currently taking broad-spectrum antibiotics */ // TODO: Replace placeholder with relevant CQL logic -define "Antibiotics broad-spectrum (Care)": - exists "Antibiotics broad-spectrum (Care) Condition" - or exists "Antibiotics broad-spectrum (Care) Observation" -define "Antibiotics broad-spectrum (Care) Condition": +define "Antibiotics broad-spectrum": + exists "Antibiotics broad-spectrum Condition" + or exists "Antibiotics broad-spectrum Observation" +define "Antibiotics broad-spectrum Condition": [Condition: Concepts."Antibiotics broad-spectrum"] -define "Antibiotics broad-spectrum (Care) Observation": - "Current medications (Care) Observation" O +define "Antibiotics broad-spectrum Observation": + "Current medications Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Antibiotics broad-spectrum" -/* End of Antibiotics broad-spectrum (Care) */ +/* End of Antibiotics broad-spectrum */ /* @dataElement: HIV.D.DE543 - Anticonvulsive @@ -9282,16 +9282,16 @@ define "Antibiotics broad-spectrum (Care) Observation": @description: Anticonvulsive medication */ // TODO: Replace placeholder with relevant CQL logic -define "Anticonvulsive (Care)": - exists "Anticonvulsive (Care) Condition" - or exists "Anticonvulsive (Care) Observation" -define "Anticonvulsive (Care) Condition": +define "Anticonvulsive": + exists "Anticonvulsive Condition" + or exists "Anticonvulsive Observation" +define "Anticonvulsive Condition": [Condition: Concepts."Anticonvulsive"] -define "Anticonvulsive (Care) Observation": - "Current medications (Care) Observation" O +define "Anticonvulsive Observation": + "Current medications Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Anticonvulsive" -/* End of Anticonvulsive (Care) */ +/* End of Anticonvulsive */ /* @dataElement: HIV.D.DE544 - Antidiabetic @@ -9299,16 +9299,16 @@ define "Anticonvulsive (Care) Observation": @description: Antidiabetic medication */ // TODO: Replace placeholder with relevant CQL logic -define "Antidiabetic (Care)": - exists "Antidiabetic (Care) Condition" - or exists "Antidiabetic (Care) Observation" -define "Antidiabetic (Care) Condition": +define "Antidiabetic": + exists "Antidiabetic Condition" + or exists "Antidiabetic Observation" +define "Antidiabetic Condition": [Condition: Concepts."Antidiabetic"] -define "Antidiabetic (Care) Observation": - "Current medications (Care) Observation" O +define "Antidiabetic Observation": + "Current medications Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Antidiabetic" -/* End of Antidiabetic (Care) */ +/* End of Antidiabetic */ /* @dataElement: HIV.D.DE545 - Antifungals @@ -9316,16 +9316,16 @@ define "Antidiabetic (Care) Observation": @description: Client is currently taking antifungals */ // TODO: Replace placeholder with relevant CQL logic -define "Antifungals (Care)": - exists "Antifungals (Care) Condition" - or exists "Antifungals (Care) Observation" -define "Antifungals (Care) Condition": +define "Antifungals": + exists "Antifungals Condition" + or exists "Antifungals Observation" +define "Antifungals Condition": [Condition: Concepts."Antifungals"] -define "Antifungals (Care) Observation": - "Current medications (Care) Observation" O +define "Antifungals Observation": + "Current medications Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Antifungals" -/* End of Antifungals (Care) */ +/* End of Antifungals */ /* @dataElement: HIV.D.DE546 - Antihelmintic @@ -9333,16 +9333,16 @@ define "Antifungals (Care) Observation": @description: Antihelmintic or antiparasitic medication */ // TODO: Replace placeholder with relevant CQL logic -define "Antihelmintic (Care)": - exists "Antihelmintic (Care) Condition" - or exists "Antihelmintic (Care) Observation" -define "Antihelmintic (Care) Condition": +define "Antihelmintic": + exists "Antihelmintic Condition" + or exists "Antihelmintic Observation" +define "Antihelmintic Condition": [Condition: Concepts."Antihelmintic"] -define "Antihelmintic (Care) Observation": - "Current medications (Care) Observation" O +define "Antihelmintic Observation": + "Current medications Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Antihelmintic" -/* End of Antihelmintic (Care) */ +/* End of Antihelmintic */ /* @dataElement: HIV.D.DE547 - Antihypertensive @@ -9350,16 +9350,16 @@ define "Antihelmintic (Care) Observation": @description: Antihypertensive medication */ // TODO: Replace placeholder with relevant CQL logic -define "Antihypertensive (Care)": - exists "Antihypertensive (Care) Condition" - or exists "Antihypertensive (Care) Observation" -define "Antihypertensive (Care) Condition": +define "Antihypertensive": + exists "Antihypertensive Condition" + or exists "Antihypertensive Observation" +define "Antihypertensive Condition": [Condition: Concepts."Antihypertensive"] -define "Antihypertensive (Care) Observation": - "Current medications (Care) Observation" O +define "Antihypertensive Observation": + "Current medications Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Antihypertensive" -/* End of Antihypertensive (Care) */ +/* End of Antihypertensive */ /* @dataElement: HIV.D.DE548 - Antimalarials @@ -9367,16 +9367,16 @@ define "Antihypertensive (Care) Observation": @description: Antimalarial medication */ // TODO: Replace placeholder with relevant CQL logic -define "Antimalarials (Care)": - exists "Antimalarials (Care) Condition" - or exists "Antimalarials (Care) Observation" -define "Antimalarials (Care) Condition": +define "Antimalarials": + exists "Antimalarials Condition" + or exists "Antimalarials Observation" +define "Antimalarials Condition": [Condition: Concepts."Antimalarials"] -define "Antimalarials (Care) Observation": - "Current medications (Care) Observation" O +define "Antimalarials Observation": + "Current medications Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Antimalarials" -/* End of Antimalarials (Care) */ +/* End of Antimalarials */ /* @dataElement: HIV.D.DE549 - Antiretrovirals ARVs @@ -9384,16 +9384,16 @@ define "Antimalarials (Care) Observation": @description: Antiretrovirals (ARVs) */ // TODO: Replace placeholder with relevant CQL logic -define "Antiretrovirals ARVs (Care)": - exists "Antiretrovirals ARVs (Care) Condition" - or exists "Antiretrovirals ARVs (Care) Observation" -define "Antiretrovirals ARVs (Care) Condition": +define "Antiretrovirals ARVs": + exists "Antiretrovirals ARVs Condition" + or exists "Antiretrovirals ARVs Observation" +define "Antiretrovirals ARVs Condition": [Condition: Concepts."Antiretrovirals ARVs"] -define "Antiretrovirals ARVs (Care) Observation": - "Current medications (Care) Observation" O +define "Antiretrovirals ARVs Observation": + "Current medications Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Antiretrovirals ARVs" -/* End of Antiretrovirals ARVs (Care) */ +/* End of Antiretrovirals ARVs */ /* @dataElement: HIV.D.DE550 - Antiparasitics @@ -9401,16 +9401,16 @@ define "Antiretrovirals ARVs (Care) Observation": @description: Client is currently taking antiparasitics */ // TODO: Replace placeholder with relevant CQL logic -define "Antiparasitics (Care)": - exists "Antiparasitics (Care) Condition" - or exists "Antiparasitics (Care) Observation" -define "Antiparasitics (Care) Condition": +define "Antiparasitics": + exists "Antiparasitics Condition" + or exists "Antiparasitics Observation" +define "Antiparasitics Condition": [Condition: Concepts."Antiparasitics"] -define "Antiparasitics (Care) Observation": - "Current medications (Care) Observation" O +define "Antiparasitics Observation": + "Current medications Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Antiparasitics" -/* End of Antiparasitics (Care) */ +/* End of Antiparasitics */ /* @dataElement: HIV.D.DE551 - Antivirals @@ -9418,16 +9418,16 @@ define "Antiparasitics (Care) Observation": @description: Antiviral medication */ // TODO: Replace placeholder with relevant CQL logic -define "Antivirals (Care)": - exists "Antivirals (Care) Condition" - or exists "Antivirals (Care) Observation" -define "Antivirals (Care) Condition": +define "Antivirals": + exists "Antivirals Condition" + or exists "Antivirals Observation" +define "Antivirals Condition": [Condition: Concepts."Antivirals"] -define "Antivirals (Care) Observation": - "Current medications (Care) Observation" O +define "Antivirals Observation": + "Current medications Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Antivirals" -/* End of Antivirals (Care) */ +/* End of Antivirals */ /* @dataElement: HIV.D.DE552 - Buprenorphine @@ -9435,16 +9435,16 @@ define "Antivirals (Care) Observation": @description: Opioid substitution to treat opioid dependence */ // TODO: Replace placeholder with relevant CQL logic -define "Buprenorphine (Care|DDE552)": - exists "Buprenorphine (Care|DDE552) Condition" - or exists "Buprenorphine (Care|DDE552) Observation" -define "Buprenorphine (Care|DDE552) Condition": +define "Buprenorphine D.DE552": + exists "Buprenorphine D.DE552 Condition" + or exists "Buprenorphine D.DE552 Observation" +define "Buprenorphine D.DE552 Condition": [Condition: Concepts."Buprenorphine - HIV.D.DE552"] -define "Buprenorphine (Care|DDE552) Observation": - "Current medications (Care) Observation" O +define "Buprenorphine D.DE552 Observation": + "Current medications Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Buprenorphine - HIV.D.DE552" -/* End of Buprenorphine (Care|DDE552) */ +/* End of Buprenorphine D.DE552 */ /* @dataElement: HIV.D.DE553 - Co-trimoxazole preventive therapy CPT @@ -9452,16 +9452,16 @@ define "Buprenorphine (Care|DDE552) Observation": @description: Combination of two antimicrobial drugs (sulfamethoxazole and trimethoprim) that covers a variety of bacterial, fungal and protozoan infections */ // TODO: Replace placeholder with relevant CQL logic -define "Co-trimoxazole preventive therapy CPT (Care)": - exists "Co-trimoxazole preventive therapy CPT (Care) Condition" - or exists "Co-trimoxazole preventive therapy CPT (Care) Observation" -define "Co-trimoxazole preventive therapy CPT (Care) Condition": +define "Co-trimoxazole preventive therapy CPT": + exists "Co-trimoxazole preventive therapy CPT Condition" + or exists "Co-trimoxazole preventive therapy CPT Observation" +define "Co-trimoxazole preventive therapy CPT Condition": [Condition: Concepts."Co-trimoxazole preventive therapy CPT"] -define "Co-trimoxazole preventive therapy CPT (Care) Observation": - "Current medications (Care) Observation" O +define "Co-trimoxazole preventive therapy CPT Observation": + "Current medications Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Co-trimoxazole preventive therapy CPT" -/* End of Co-trimoxazole preventive therapy CPT (Care) */ +/* End of Co-trimoxazole preventive therapy CPT */ /* @dataElement: HIV.D.DE554 - Hormonal family planning method @@ -9469,16 +9469,16 @@ define "Co-trimoxazole preventive therapy CPT (Care) Observation": @description: Hormonal family planning method */ // TODO: Replace placeholder with relevant CQL logic -define "Hormonal family planning method (Care)": - exists "Hormonal family planning method (Care) Condition" - or exists "Hormonal family planning method (Care) Observation" -define "Hormonal family planning method (Care) Condition": +define "Hormonal family planning method": + exists "Hormonal family planning method Condition" + or exists "Hormonal family planning method Observation" +define "Hormonal family planning method Condition": [Condition: Concepts."Hormonal family planning method"] -define "Hormonal family planning method (Care) Observation": - "Current medications (Care) Observation" O +define "Hormonal family planning method Observation": + "Current medications Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Hormonal family planning method" -/* End of Hormonal family planning method (Care) */ +/* End of Hormonal family planning method */ /* @dataElement: HIV.D.DE555 - Methadone @@ -9486,16 +9486,16 @@ define "Hormonal family planning method (Care) Observation": @description: Opioid substitution to treat opioid dependence */ // TODO: Replace placeholder with relevant CQL logic -define "Methadone (Care|DDE555)": - exists "Methadone (Care|DDE555) Condition" - or exists "Methadone (Care|DDE555) Observation" -define "Methadone (Care|DDE555) Condition": +define "Methadone D.DE555": + exists "Methadone D.DE555 Condition" + or exists "Methadone D.DE555 Observation" +define "Methadone D.DE555 Condition": [Condition: Concepts."Methadone - HIV.D.DE555"] -define "Methadone (Care|DDE555) Observation": - "Current medications (Care) Observation" O +define "Methadone D.DE555 Observation": + "Current medications Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Methadone - HIV.D.DE555" -/* End of Methadone (Care|DDE555) */ +/* End of Methadone D.DE555 */ /* @dataElement: HIV.D.DE556 - PrEP to prevent HIV @@ -9503,16 +9503,16 @@ define "Methadone (Care|DDE555) Observation": @description: Pre-exposure prophylaxis (PrEP) medication for preventing the acquisition of HIV */ // TODO: Replace placeholder with relevant CQL logic -define "PrEP to prevent HIV (Care)": - exists "PrEP to prevent HIV (Care) Condition" - or exists "PrEP to prevent HIV (Care) Observation" -define "PrEP to prevent HIV (Care) Condition": +define "PrEP to prevent HIV": + exists "PrEP to prevent HIV Condition" + or exists "PrEP to prevent HIV Observation" +define "PrEP to prevent HIV Condition": [Condition: Concepts."PrEP to prevent HIV"] -define "PrEP to prevent HIV (Care) Observation": - "Current medications (Care) Observation" O +define "PrEP to prevent HIV Observation": + "Current medications Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."PrEP to prevent HIV" -/* End of PrEP to prevent HIV (Care) */ +/* End of PrEP to prevent HIV */ /* @dataElement: HIV.D.DE557 - Other antibiotics @@ -9520,16 +9520,16 @@ define "PrEP to prevent HIV (Care) Observation": @description: Other antibiotics not listed above */ // TODO: Replace placeholder with relevant CQL logic -define "Other antibiotics (Care)": - exists "Other antibiotics (Care) Condition" - or exists "Other antibiotics (Care) Observation" -define "Other antibiotics (Care) Condition": +define "Other antibiotics": + exists "Other antibiotics Condition" + or exists "Other antibiotics Observation" +define "Other antibiotics Condition": [Condition: Concepts."Other antibiotics"] -define "Other antibiotics (Care) Observation": - "Current medications (Care) Observation" O +define "Other antibiotics Observation": + "Current medications Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Other antibiotics" -/* End of Other antibiotics (Care) */ +/* End of Other antibiotics */ /* @dataElement: HIV.D.DE558 - Other medications @@ -9537,16 +9537,16 @@ define "Other antibiotics (Care) Observation": @description: Other medications or supplements that are not listed above */ // TODO: Replace placeholder with relevant CQL logic -define "Other medications (Care)": - exists "Other medications (Care) Condition" - or exists "Other medications (Care) Observation" -define "Other medications (Care) Condition": +define "Other medications": + exists "Other medications Condition" + or exists "Other medications Observation" +define "Other medications Condition": [Condition: Concepts."Other medications"] -define "Other medications (Care) Observation": - "Current medications (Care) Observation" O +define "Other medications Observation": + "Current medications Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Other medications" -/* End of Other medications (Care) */ +/* End of Other medications */ /* @dataElement: HIV.D.DE656 - Date of cervical cancer screening test @@ -9554,13 +9554,13 @@ define "Other medications (Care) Observation": @description: Date of cervical cancer screening test */ // TODO: Replace placeholder with relevant CQL logic -define "Date of cervical cancer screening test (Care)": +define "Date of cervical cancer screening test": [Observation: Concepts."Date of cervical cancer screening test"] O where O.status in { 'final', 'amended', 'corrected' } -define "Date of cervical cancer screening test (Care) Value": - "Date of cervical cancer screening test (Care)" O +define "Date of cervical cancer screening test Value": + "Date of cervical cancer screening test" O return O.value -/* End of Date of cervical cancer screening test (Care) */ +/* End of Date of cervical cancer screening test */ /* @dataElement: HIV.D.DE657 - Lifetime screening test number @@ -9568,13 +9568,13 @@ define "Date of cervical cancer screening test (Care) Value": @description: Client's lifetime number of screenings for cervical cancer */ // TODO: Replace placeholder with relevant CQL logic -define "Lifetime screening test number (Care)": +define "Lifetime screening test number": [Observation: Concepts."Lifetime screening test number"] O where O.status in { 'final', 'amended', 'corrected' } -define "Lifetime screening test number (Care) Value": - "Lifetime screening test number (Care)" O +define "Lifetime screening test number Value": + "Lifetime screening test number" O return O.value -/* End of Lifetime screening test number (Care) */ +/* End of Lifetime screening test number */ /* @dataElement: HIV.D.DE658 - Cervical cancer primary screening test type @@ -9582,12 +9582,12 @@ define "Lifetime screening test number (Care) Value": @description: Type of cervical cancer screening test used in primary screening */ // TODO: Replace placeholder with relevant CQL logic -define "Cervical cancer primary screening test type (Care)": - exists "Cervical cancer primary screening test type (Care) Observation" -define "Cervical cancer primary screening test type (Care) Observation": +define "Cervical cancer primary screening test type": + exists "Cervical cancer primary screening test type Observation" +define "Cervical cancer primary screening test type Observation": [Observation: Concepts."Cervical cancer primary screening test type"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Cervical cancer primary screening test type (Care) */ +/* End of Cervical cancer primary screening test type */ /* @dataElement: HIV.D.DE659 - HPV-DNA @@ -9595,16 +9595,16 @@ define "Cervical cancer primary screening test type (Care) Observation": @description: Screened for cervical cancer using HPV-DNA test */ // TODO: Replace placeholder with relevant CQL logic -define "HPV-DNA (Care)": - exists "HPV-DNA (Care) Condition" - or exists "HPV-DNA (Care) Observation" -define "HPV-DNA (Care) Condition": +define "HPV-DNA": + exists "HPV-DNA Condition" + or exists "HPV-DNA Observation" +define "HPV-DNA Condition": [Condition: Concepts."HPV-DNA"] -define "HPV-DNA (Care) Observation": - "Cervical cancer primary screening test type (Care) Observation" O +define "HPV-DNA Observation": + "Cervical cancer primary screening test type Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."HPV-DNA" -/* End of HPV-DNA (Care) */ +/* End of HPV-DNA */ /* @dataElement: HIV.D.DE660 - VIA @@ -9612,16 +9612,16 @@ define "HPV-DNA (Care) Observation": @description: Screened for cervical cancer using visual inspection with acetic acid (VIA) */ // TODO: Replace placeholder with relevant CQL logic -define "VIA (Care)": - exists "VIA (Care) Condition" - or exists "VIA (Care) Observation" -define "VIA (Care) Condition": +define "VIA": + exists "VIA Condition" + or exists "VIA Observation" +define "VIA Condition": [Condition: Concepts."VIA"] -define "VIA (Care) Observation": - "Cervical cancer primary screening test type (Care) Observation" O +define "VIA Observation": + "Cervical cancer primary screening test type Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."VIA" -/* End of VIA (Care) */ +/* End of VIA */ /* @dataElement: HIV.D.DE661 - Cervical cytology @@ -9629,16 +9629,16 @@ define "VIA (Care) Observation": @description: Screened for cervical cancer using cervical cytology */ // TODO: Replace placeholder with relevant CQL logic -define "Cervical cytology (Care)": - exists "Cervical cytology (Care) Condition" - or exists "Cervical cytology (Care) Observation" -define "Cervical cytology (Care) Condition": +define "Cervical cytology": + exists "Cervical cytology Condition" + or exists "Cervical cytology Observation" +define "Cervical cytology Condition": [Condition: Concepts."Cervical cytology"] -define "Cervical cytology (Care) Observation": - "Cervical cancer primary screening test type (Care) Observation" O +define "Cervical cytology Observation": + "Cervical cancer primary screening test type Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Cervical cytology" -/* End of Cervical cytology (Care) */ +/* End of Cervical cytology */ /* @dataElement: HIV.D.DE662 - Other @@ -9646,16 +9646,16 @@ define "Cervical cytology (Care) Observation": @description: Screened for cervical cancer using other method */ // TODO: Replace placeholder with relevant CQL logic -define "Other (Care|DDE662)": - exists "Other (Care|DDE662) Condition" - or exists "Other (Care|DDE662) Observation" -define "Other (Care|DDE662) Condition": +define "Other D.DE662": + exists "Other D.DE662 Condition" + or exists "Other D.DE662 Observation" +define "Other D.DE662 Condition": [Condition: Concepts."Other - HIV.D.DE662"] -define "Other (Care|DDE662) Observation": - "Cervical cancer primary screening test type (Care) Observation" O +define "Other D.DE662 Observation": + "Cervical cancer primary screening test type Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Other - HIV.D.DE662" -/* End of Other (Care|DDE662) */ +/* End of Other D.DE662 */ /* @dataElement: HIV.D.DE705 - Date of diagnosis of cervical precancer lesions or invasive cervical cancer @@ -9663,13 +9663,13 @@ define "Other (Care|DDE662) Observation": @description: Date of diagnosis of cervical precancer lesions or invasive cervical cancer */ // TODO: Replace placeholder with relevant CQL logic -define "Date of diagnosis of cervical precancer lesions or invasive cervical cancer (Care)": +define "Date of diagnosis of cervical precancer lesions or invasive cervical cancer": [Observation: Concepts."Date of diagnosis of cervical precancer lesions or invasive cervical cancer"] O where O.status in { 'final', 'amended', 'corrected' } -define "Date of diagnosis of cervical precancer lesions or invasive cervical cancer (Care) Value": - "Date of diagnosis of cervical precancer lesions or invasive cervical cancer (Care)" O +define "Date of diagnosis of cervical precancer lesions or invasive cervical cancer Value": + "Date of diagnosis of cervical precancer lesions or invasive cervical cancer" O return O.value -/* End of Date of diagnosis of cervical precancer lesions or invasive cervical cancer (Care) */ +/* End of Date of diagnosis of cervical precancer lesions or invasive cervical cancer */ /* @dataElement: HIV.D.DE706 - Cervical cancer screening outcome @@ -9677,12 +9677,12 @@ define "Date of diagnosis of cervical precancer lesions or invasive cervical can @description: Client's screening outcome for cervical cancer */ // TODO: Replace placeholder with relevant CQL logic -define "Cervical cancer screening outcome (Care)": - exists "Cervical cancer screening outcome (Care) Observation" -define "Cervical cancer screening outcome (Care) Observation": +define "Cervical cancer screening outcome": + exists "Cervical cancer screening outcome Observation" +define "Cervical cancer screening outcome Observation": [Observation: Concepts."Cervical cancer screening outcome"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Cervical cancer screening outcome (Care) */ +/* End of Cervical cancer screening outcome */ /* @dataElement: HIV.D.DE707 - Positive for cervical precancer lesions @@ -9690,16 +9690,16 @@ define "Cervical cancer screening outcome (Care) Observation": @description: Screening outcome for cervical precancer lesions is positive */ // TODO: Replace placeholder with relevant CQL logic -define "Positive for cervical precancer lesions (Care)": - exists "Positive for cervical precancer lesions (Care) Condition" - or exists "Positive for cervical precancer lesions (Care) Observation" -define "Positive for cervical precancer lesions (Care) Condition": +define "Positive for cervical precancer lesions": + exists "Positive for cervical precancer lesions Condition" + or exists "Positive for cervical precancer lesions Observation" +define "Positive for cervical precancer lesions Condition": [Condition: Concepts."Positive for cervical precancer lesions"] -define "Positive for cervical precancer lesions (Care) Observation": - "Cervical cancer screening outcome (Care) Observation" O +define "Positive for cervical precancer lesions Observation": + "Cervical cancer screening outcome Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Positive for cervical precancer lesions" -/* End of Positive for cervical precancer lesions (Care) */ +/* End of Positive for cervical precancer lesions */ /* @dataElement: HIV.D.DE708 - Negative for cervical precancer lesions @@ -9707,16 +9707,16 @@ define "Positive for cervical precancer lesions (Care) Observation": @description: Screening outcome for cervical precancer lesions is negative */ // TODO: Replace placeholder with relevant CQL logic -define "Negative for cervical precancer lesions (Care)": - exists "Negative for cervical precancer lesions (Care) Condition" - or exists "Negative for cervical precancer lesions (Care) Observation" -define "Negative for cervical precancer lesions (Care) Condition": +define "Negative for cervical precancer lesions": + exists "Negative for cervical precancer lesions Condition" + or exists "Negative for cervical precancer lesions Observation" +define "Negative for cervical precancer lesions Condition": [Condition: Concepts."Negative for cervical precancer lesions"] -define "Negative for cervical precancer lesions (Care) Observation": - "Cervical cancer screening outcome (Care) Observation" O +define "Negative for cervical precancer lesions Observation": + "Cervical cancer screening outcome Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Negative for cervical precancer lesions" -/* End of Negative for cervical precancer lesions (Care) */ +/* End of Negative for cervical precancer lesions */ /* @dataElement: HIV.D.DE709 - Cervical cancer diagnosis @@ -9724,12 +9724,12 @@ define "Negative for cervical precancer lesions (Care) Observation": @description: Type of cervical cancer diagnosis */ // TODO: Replace placeholder with relevant CQL logic -define "Cervical cancer diagnosis (Care)": - exists "Cervical cancer diagnosis (Care) Observation" -define "Cervical cancer diagnosis (Care) Observation": +define "Cervical cancer diagnosis": + exists "Cervical cancer diagnosis Observation" +define "Cervical cancer diagnosis Observation": [Observation: Concepts."Cervical cancer diagnosis"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Cervical cancer diagnosis (Care) */ +/* End of Cervical cancer diagnosis */ /* @dataElement: HIV.D.DE710 - Cervical precancer lesions @@ -9737,16 +9737,16 @@ define "Cervical cancer diagnosis (Care) Observation": @description: Client is diagnosed with cervical precancer lesions */ // TODO: Replace placeholder with relevant CQL logic -define "Cervical precancer lesions (Care)": - exists "Cervical precancer lesions (Care) Condition" - or exists "Cervical precancer lesions (Care) Observation" -define "Cervical precancer lesions (Care) Condition": +define "Cervical precancer lesions": + exists "Cervical precancer lesions Condition" + or exists "Cervical precancer lesions Observation" +define "Cervical precancer lesions Condition": [Condition: Concepts."Cervical precancer lesions"] -define "Cervical precancer lesions (Care) Observation": - "Cervical cancer diagnosis (Care) Observation" O +define "Cervical precancer lesions Observation": + "Cervical cancer diagnosis Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Cervical precancer lesions" -/* End of Cervical precancer lesions (Care) */ +/* End of Cervical precancer lesions */ /* @dataElement: HIV.D.DE711 - Invasive cervical cancer @@ -9754,16 +9754,16 @@ define "Cervical precancer lesions (Care) Observation": @description: Client is diagnosed with invasive cervical cancer disease */ // TODO: Replace placeholder with relevant CQL logic -define "Invasive cervical cancer (Care)": - exists "Invasive cervical cancer (Care) Condition" - or exists "Invasive cervical cancer (Care) Observation" -define "Invasive cervical cancer (Care) Condition": +define "Invasive cervical cancer": + exists "Invasive cervical cancer Condition" + or exists "Invasive cervical cancer Observation" +define "Invasive cervical cancer Condition": [Condition: Concepts."Invasive cervical cancer"] -define "Invasive cervical cancer (Care) Observation": - "Cervical cancer diagnosis (Care) Observation" O +define "Invasive cervical cancer Observation": + "Cervical cancer diagnosis Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Invasive cervical cancer" -/* End of Invasive cervical cancer (Care) */ +/* End of Invasive cervical cancer */ /* @dataElement: HIV.D.DE712 - Cervical cancer stage at diagnosis @@ -9771,12 +9771,12 @@ define "Invasive cervical cancer (Care) Observation": @description: Cervical cancer stage at diagnosis of cervical cancer */ // TODO: Replace placeholder with relevant CQL logic -define "Cervical cancer stage at diagnosis (Care)": - exists "Cervical cancer stage at diagnosis (Care) Observation" -define "Cervical cancer stage at diagnosis (Care) Observation": +define "Cervical cancer stage at diagnosis": + exists "Cervical cancer stage at diagnosis Observation" +define "Cervical cancer stage at diagnosis Observation": [Observation: Concepts."Cervical cancer stage at diagnosis"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Cervical cancer stage at diagnosis (Care) */ +/* End of Cervical cancer stage at diagnosis */ /* @dataElement: HIV.D.DE713 - Stage 0 @@ -9784,16 +9784,16 @@ define "Cervical cancer stage at diagnosis (Care) Observation": @description: Stage 0 cervical cancer at diagnosis of cervical cancer */ // TODO: Replace placeholder with relevant CQL logic -define "Stage 0 (Care)": - exists "Stage 0 (Care) Condition" - or exists "Stage 0 (Care) Observation" -define "Stage 0 (Care) Condition": +define "Stage 0": + exists "Stage 0 Condition" + or exists "Stage 0 Observation" +define "Stage 0 Condition": [Condition: Concepts."Stage 0"] -define "Stage 0 (Care) Observation": - "Cervical cancer stage at diagnosis (Care) Observation" O +define "Stage 0 Observation": + "Cervical cancer stage at diagnosis Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Stage 0" -/* End of Stage 0 (Care) */ +/* End of Stage 0 */ /* @dataElement: HIV.D.DE714 - Stage I @@ -9801,16 +9801,16 @@ define "Stage 0 (Care) Observation": @description: Stage I cervical cancer at diagnosis of cervical cancer */ // TODO: Replace placeholder with relevant CQL logic -define "Stage I (Care)": - exists "Stage I (Care) Condition" - or exists "Stage I (Care) Observation" -define "Stage I (Care) Condition": +define "Stage I": + exists "Stage I Condition" + or exists "Stage I Observation" +define "Stage I Condition": [Condition: Concepts."Stage I"] -define "Stage I (Care) Observation": - "Cervical cancer stage at diagnosis (Care) Observation" O +define "Stage I Observation": + "Cervical cancer stage at diagnosis Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Stage I" -/* End of Stage I (Care) */ +/* End of Stage I */ /* @dataElement: HIV.D.DE715 - Stage II @@ -9818,16 +9818,16 @@ define "Stage I (Care) Observation": @description: Stage II cervical cancer at diagnosis of cervical cancer */ // TODO: Replace placeholder with relevant CQL logic -define "Stage II (Care)": - exists "Stage II (Care) Condition" - or exists "Stage II (Care) Observation" -define "Stage II (Care) Condition": +define "Stage II": + exists "Stage II Condition" + or exists "Stage II Observation" +define "Stage II Condition": [Condition: Concepts."Stage II"] -define "Stage II (Care) Observation": - "Cervical cancer stage at diagnosis (Care) Observation" O +define "Stage II Observation": + "Cervical cancer stage at diagnosis Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Stage II" -/* End of Stage II (Care) */ +/* End of Stage II */ /* @dataElement: HIV.D.DE716 - Stage III @@ -9835,16 +9835,16 @@ define "Stage II (Care) Observation": @description: Stage III cervical cancer at diagnosis of cervical cancer */ // TODO: Replace placeholder with relevant CQL logic -define "Stage III (Care)": - exists "Stage III (Care) Condition" - or exists "Stage III (Care) Observation" -define "Stage III (Care) Condition": +define "Stage III": + exists "Stage III Condition" + or exists "Stage III Observation" +define "Stage III Condition": [Condition: Concepts."Stage III"] -define "Stage III (Care) Observation": - "Cervical cancer stage at diagnosis (Care) Observation" O +define "Stage III Observation": + "Cervical cancer stage at diagnosis Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Stage III" -/* End of Stage III (Care) */ +/* End of Stage III */ /* @dataElement: HIV.D.DE717 - Stage IV @@ -9852,16 +9852,16 @@ define "Stage III (Care) Observation": @description: Stage IV cervical cancer at diagnosis of cervical cancer */ // TODO: Replace placeholder with relevant CQL logic -define "Stage IV (Care)": - exists "Stage IV (Care) Condition" - or exists "Stage IV (Care) Observation" -define "Stage IV (Care) Condition": +define "Stage IV": + exists "Stage IV Condition" + or exists "Stage IV Observation" +define "Stage IV Condition": [Condition: Concepts."Stage IV"] -define "Stage IV (Care) Observation": - "Cervical cancer stage at diagnosis (Care) Observation" O +define "Stage IV Observation": + "Cervical cancer stage at diagnosis Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Stage IV" -/* End of Stage IV (Care) */ +/* End of Stage IV */ /* @dataElement: HIV.D.DE718 - Date of treatment for cervical precancer lesions @@ -9869,13 +9869,13 @@ define "Stage IV (Care) Observation": @description: Date of treatment for cervical precancer lesions */ // TODO: Replace placeholder with relevant CQL logic -define "Date of treatment for cervical precancer lesions (Care)": +define "Date of treatment for cervical precancer lesions": [Observation: Concepts."Date of treatment for cervical precancer lesions"] O where O.status in { 'final', 'amended', 'corrected' } -define "Date of treatment for cervical precancer lesions (Care) Value": - "Date of treatment for cervical precancer lesions (Care)" O +define "Date of treatment for cervical precancer lesions Value": + "Date of treatment for cervical precancer lesions" O return O.value -/* End of Date of treatment for cervical precancer lesions (Care) */ +/* End of Date of treatment for cervical precancer lesions */ /* @dataElement: HIV.D.DE730 - Invasive cervical cancer treatment episode @@ -9883,13 +9883,13 @@ define "Date of treatment for cervical precancer lesions (Care) Value": @description: Client's lifetime number of treatments for invasive cervical cancer */ // TODO: Replace placeholder with relevant CQL logic -define "Invasive cervical cancer treatment episode (Care)": +define "Invasive cervical cancer treatment episode": [Observation: Concepts."Invasive cervical cancer treatment episode"] O where O.status in { 'final', 'amended', 'corrected' } -define "Invasive cervical cancer treatment episode (Care) Value": - "Invasive cervical cancer treatment episode (Care)" O +define "Invasive cervical cancer treatment episode Value": + "Invasive cervical cancer treatment episode" O return O.value -/* End of Invasive cervical cancer treatment episode (Care) */ +/* End of Invasive cervical cancer treatment episode */ /* @dataElement: HIV.D.DE731 - Invasive cervical cancer treatment method @@ -9897,12 +9897,12 @@ define "Invasive cervical cancer treatment episode (Care) Value": @description: Invasive cervical cancer treatment method */ // TODO: Replace placeholder with relevant CQL logic -define "Invasive cervical cancer treatment method (Care)": - exists "Invasive cervical cancer treatment method (Care) Observation" -define "Invasive cervical cancer treatment method (Care) Observation": +define "Invasive cervical cancer treatment method": + exists "Invasive cervical cancer treatment method Observation" +define "Invasive cervical cancer treatment method Observation": [Observation: Concepts."Invasive cervical cancer treatment method"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Invasive cervical cancer treatment method (Care) */ +/* End of Invasive cervical cancer treatment method */ /* @dataElement: HIV.D.DE732 - Conization @@ -9910,16 +9910,16 @@ define "Invasive cervical cancer treatment method (Care) Observation": @description: Invasive cervical cancer treatment method is a conization */ // TODO: Replace placeholder with relevant CQL logic -define "Conization (Care)": - exists "Conization (Care) Condition" - or exists "Conization (Care) Observation" -define "Conization (Care) Condition": +define "Conization": + exists "Conization Condition" + or exists "Conization Observation" +define "Conization Condition": [Condition: Concepts."Conization"] -define "Conization (Care) Observation": - "Invasive cervical cancer treatment method (Care) Observation" O +define "Conization Observation": + "Invasive cervical cancer treatment method Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Conization" -/* End of Conization (Care) */ +/* End of Conization */ /* @dataElement: HIV.D.DE733 - Trachelectomy @@ -9927,16 +9927,16 @@ define "Conization (Care) Observation": @description: Invasive cervical cancer treatment method is a trachelectomy */ // TODO: Replace placeholder with relevant CQL logic -define "Trachelectomy (Care)": - exists "Trachelectomy (Care) Condition" - or exists "Trachelectomy (Care) Observation" -define "Trachelectomy (Care) Condition": +define "Trachelectomy": + exists "Trachelectomy Condition" + or exists "Trachelectomy Observation" +define "Trachelectomy Condition": [Condition: Concepts."Trachelectomy"] -define "Trachelectomy (Care) Observation": - "Invasive cervical cancer treatment method (Care) Observation" O +define "Trachelectomy Observation": + "Invasive cervical cancer treatment method Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Trachelectomy" -/* End of Trachelectomy (Care) */ +/* End of Trachelectomy */ /* @dataElement: HIV.D.DE734 - Hysterectomy @@ -9944,16 +9944,16 @@ define "Trachelectomy (Care) Observation": @description: Invasive cervical cancer treatment method is a hysterectomy */ // TODO: Replace placeholder with relevant CQL logic -define "Hysterectomy (Care)": - exists "Hysterectomy (Care) Condition" - or exists "Hysterectomy (Care) Observation" -define "Hysterectomy (Care) Condition": +define "Hysterectomy": + exists "Hysterectomy Condition" + or exists "Hysterectomy Observation" +define "Hysterectomy Condition": [Condition: Concepts."Hysterectomy"] -define "Hysterectomy (Care) Observation": - "Invasive cervical cancer treatment method (Care) Observation" O +define "Hysterectomy Observation": + "Invasive cervical cancer treatment method Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Hysterectomy" -/* End of Hysterectomy (Care) */ +/* End of Hysterectomy */ /* @dataElement: HIV.D.DE735 - Management of invasive cervical cancer @@ -9961,16 +9961,16 @@ define "Hysterectomy (Care) Observation": @description: Invasive cervical cancer treatment method is management of invasive cervical cancer */ // TODO: Replace placeholder with relevant CQL logic -define "Management of invasive cervical cancer (Care)": - exists "Management of invasive cervical cancer (Care) Condition" - or exists "Management of invasive cervical cancer (Care) Observation" -define "Management of invasive cervical cancer (Care) Condition": +define "Management of invasive cervical cancer": + exists "Management of invasive cervical cancer Condition" + or exists "Management of invasive cervical cancer Observation" +define "Management of invasive cervical cancer Condition": [Condition: Concepts."Management of invasive cervical cancer"] -define "Management of invasive cervical cancer (Care) Observation": - "Invasive cervical cancer treatment method (Care) Observation" O +define "Management of invasive cervical cancer Observation": + "Invasive cervical cancer treatment method Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Management of invasive cervical cancer" -/* End of Management of invasive cervical cancer (Care) */ +/* End of Management of invasive cervical cancer */ /* @dataElement: HIV.D.DE736 - Radiotherapy @@ -9978,16 +9978,16 @@ define "Management of invasive cervical cancer (Care) Observation": @description: Invasive cervical cancer treatment method is a radiotherapy */ // TODO: Replace placeholder with relevant CQL logic -define "Radiotherapy (Care)": - exists "Radiotherapy (Care) Condition" - or exists "Radiotherapy (Care) Observation" -define "Radiotherapy (Care) Condition": +define "Radiotherapy": + exists "Radiotherapy Condition" + or exists "Radiotherapy Observation" +define "Radiotherapy Condition": [Condition: Concepts."Radiotherapy"] -define "Radiotherapy (Care) Observation": - "Invasive cervical cancer treatment method (Care) Observation" O +define "Radiotherapy Observation": + "Invasive cervical cancer treatment method Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Radiotherapy" -/* End of Radiotherapy (Care) */ +/* End of Radiotherapy */ /* @dataElement: HIV.D.DE737 - Chemotherapy @@ -9995,16 +9995,16 @@ define "Radiotherapy (Care) Observation": @description: Invasive cervical cancer treatment method is a chemotherapy */ // TODO: Replace placeholder with relevant CQL logic -define "Chemotherapy (Care)": - exists "Chemotherapy (Care) Condition" - or exists "Chemotherapy (Care) Observation" -define "Chemotherapy (Care) Condition": +define "Chemotherapy": + exists "Chemotherapy Condition" + or exists "Chemotherapy Observation" +define "Chemotherapy Condition": [Condition: Concepts."Chemotherapy"] -define "Chemotherapy (Care) Observation": - "Invasive cervical cancer treatment method (Care) Observation" O +define "Chemotherapy Observation": + "Invasive cervical cancer treatment method Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Chemotherapy" -/* End of Chemotherapy (Care) */ +/* End of Chemotherapy */ /* @dataElement: HIV.D.DE738 - Chemoradiation @@ -10012,16 +10012,16 @@ define "Chemotherapy (Care) Observation": @description: Invasive cervical cancer treatment method is a chemoradiation */ // TODO: Replace placeholder with relevant CQL logic -define "Chemoradiation (Care)": - exists "Chemoradiation (Care) Condition" - or exists "Chemoradiation (Care) Observation" -define "Chemoradiation (Care) Condition": +define "Chemoradiation": + exists "Chemoradiation Condition" + or exists "Chemoradiation Observation" +define "Chemoradiation Condition": [Condition: Concepts."Chemoradiation"] -define "Chemoradiation (Care) Observation": - "Invasive cervical cancer treatment method (Care) Observation" O +define "Chemoradiation Observation": + "Invasive cervical cancer treatment method Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Chemoradiation" -/* End of Chemoradiation (Care) */ +/* End of Chemoradiation */ /* @dataElement: HIV.D.DE739 - Other @@ -10029,16 +10029,16 @@ define "Chemoradiation (Care) Observation": @description: Invasive cervical cancer treatment method is a not in list */ // TODO: Replace placeholder with relevant CQL logic -define "Other (Care|DDE739)": - exists "Other (Care|DDE739) Condition" - or exists "Other (Care|DDE739) Observation" -define "Other (Care|DDE739) Condition": +define "Other D.DE739": + exists "Other D.DE739 Condition" + or exists "Other D.DE739 Observation" +define "Other D.DE739 Condition": [Condition: Concepts."Other - HIV.D.DE739"] -define "Other (Care|DDE739) Observation": - "Invasive cervical cancer treatment method (Care) Observation" O +define "Other D.DE739 Observation": + "Invasive cervical cancer treatment method Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Other - HIV.D.DE739" -/* End of Other (Care|DDE739) */ +/* End of Other D.DE739 */ /* @dataElement: HIV.D.DE745 - Cervical cancer screening interval amongst WLHIV @@ -10046,13 +10046,13 @@ define "Other (Care|DDE739) Observation": @description: Country-specific interval between cancer screenings amongst women living with HIV (typically 3 or 5 years) */ // TODO: Replace placeholder with relevant CQL logic -define "Cervical cancer screening interval amongst WLHIV (Care)": +define "Cervical cancer screening interval amongst WLHIV": [Observation: Concepts."Cervical cancer screening interval amongst WLHIV"] O where O.status in { 'final', 'amended', 'corrected' } -define "Cervical cancer screening interval amongst WLHIV (Care) Value": - "Cervical cancer screening interval amongst WLHIV (Care)" O +define "Cervical cancer screening interval amongst WLHIV Value": + "Cervical cancer screening interval amongst WLHIV" O return O.value -/* End of Cervical cancer screening interval amongst WLHIV (Care) */ +/* End of Cervical cancer screening interval amongst WLHIV */ /* @dataElement: HIV.D.DE753 - Offer other clinical services @@ -10060,12 +10060,12 @@ define "Cervical cancer screening interval amongst WLHIV (Care) Value": @description: Other clinical services offered or referrals given to the client */ // TODO: Replace placeholder with relevant CQL logic -define "Offer other clinical services (Care)": - exists "Offer other clinical services (Care) Observation" -define "Offer other clinical services (Care) Observation": +define "Offer other clinical services D.DE753": + exists "Offer other clinical services D.DE753 Observation" +define "Offer other clinical services D.DE753 Observation": [Observation: Concepts."Offer other clinical services - HIV.D.DE753"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Offer other clinical services (Care) */ +/* End of Offer other clinical services D.DE753 */ /* @dataElement: HIV.D.DE754 - Assessment and provision of vaccinations @@ -10073,16 +10073,16 @@ define "Offer other clinical services (Care) Observation": @description: Assessment and provision of vaccinations, such as for people from Key population member type, pregnant women and infants; and, where appropriate, tetanus vaccination for adolescent boys and men receiving VMMC */ // TODO: Replace placeholder with relevant CQL logic -define "Assessment and provision of vaccinations (Care)": - exists "Assessment and provision of vaccinations (Care) Condition" - or exists "Assessment and provision of vaccinations (Care) Observation" -define "Assessment and provision of vaccinations (Care) Condition": +define "Assessment and provision of vaccinations D.DE754": + exists "Assessment and provision of vaccinations D.DE754 Condition" + or exists "Assessment and provision of vaccinations D.DE754 Observation" +define "Assessment and provision of vaccinations D.DE754 Condition": [Condition: Concepts."Assessment and provision of vaccinations - HIV.D.DE754"] -define "Assessment and provision of vaccinations (Care) Observation": - "Offer other clinical services (Care) Observation" O +define "Assessment and provision of vaccinations D.DE754 Observation": + "Offer other clinical services D.DE753 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Assessment and provision of vaccinations - HIV.D.DE754" -/* End of Assessment and provision of vaccinations (Care) */ +/* End of Assessment and provision of vaccinations D.DE754 */ /* @dataElement: HIV.D.DE755 - Hepatitis B HBV and hepatitis C virus HCV testing and treatment @@ -10090,16 +10090,16 @@ define "Assessment and provision of vaccinations (Care) Observation": @description: Offer or refer for HBV and/or HCV testing and treatment */ // TODO: Replace placeholder with relevant CQL logic -define "Hepatitis B HBV and hepatitis C virus HCV testing and treatment (Care)": - exists "Hepatitis B HBV and hepatitis C virus HCV testing and treatment (Care) Condition" - or exists "Hepatitis B HBV and hepatitis C virus HCV testing and treatment (Care) Observation" -define "Hepatitis B HBV and hepatitis C virus HCV testing and treatment (Care) Condition": +define "Hepatitis B HBV and hepatitis C virus HCV testing and treatment": + exists "Hepatitis B HBV and hepatitis C virus HCV testing and treatment Condition" + or exists "Hepatitis B HBV and hepatitis C virus HCV testing and treatment Observation" +define "Hepatitis B HBV and hepatitis C virus HCV testing and treatment Condition": [Condition: Concepts."Hepatitis B HBV and hepatitis C virus HCV testing and treatment"] -define "Hepatitis B HBV and hepatitis C virus HCV testing and treatment (Care) Observation": - "Offer other clinical services (Care) Observation" O +define "Hepatitis B HBV and hepatitis C virus HCV testing and treatment Observation": + "Offer other clinical services D.DE753 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Hepatitis B HBV and hepatitis C virus HCV testing and treatment" -/* End of Hepatitis B HBV and hepatitis C virus HCV testing and treatment (Care) */ +/* End of Hepatitis B HBV and hepatitis C virus HCV testing and treatment */ /* @dataElement: HIV.D.DE756 - Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia @@ -10107,16 +10107,16 @@ define "Hepatitis B HBV and hepatitis C virus HCV testing and treatment (Care) O @description: Offer or refer for co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia */ // TODO: Replace placeholder with relevant CQL logic -define "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia (Care)": - exists "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia (Care) Condition" - or exists "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia (Care) Observation" -define "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia (Care) Condition": +define "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia D.DE756": + exists "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia D.DE756 Condition" + or exists "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia D.DE756 Observation" +define "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia D.DE756 Condition": [Condition: Concepts."Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia - HIV.D.DE756"] -define "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia (Care) Observation": - "Offer other clinical services (Care) Observation" O +define "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia D.DE756 Observation": + "Offer other clinical services D.DE753 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia - HIV.D.DE756" -/* End of Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia (Care) */ +/* End of Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia D.DE756 */ /* @dataElement: HIV.D.DE757 - Intensified TB case finding and linkage to TB treatment @@ -10124,16 +10124,16 @@ define "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumoni @description: Offer or refer for intensified TB case finding and linkage to TB treatment */ // TODO: Replace placeholder with relevant CQL logic -define "Intensified TB case finding and linkage to TB treatment (Care)": - exists "Intensified TB case finding and linkage to TB treatment (Care) Condition" - or exists "Intensified TB case finding and linkage to TB treatment (Care) Observation" -define "Intensified TB case finding and linkage to TB treatment (Care) Condition": +define "Intensified TB case finding and linkage to TB treatment D.DE757": + exists "Intensified TB case finding and linkage to TB treatment D.DE757 Condition" + or exists "Intensified TB case finding and linkage to TB treatment D.DE757 Observation" +define "Intensified TB case finding and linkage to TB treatment D.DE757 Condition": [Condition: Concepts."Intensified TB case finding and linkage to TB treatment - HIV.D.DE757"] -define "Intensified TB case finding and linkage to TB treatment (Care) Observation": - "Offer other clinical services (Care) Observation" O +define "Intensified TB case finding and linkage to TB treatment D.DE757 Observation": + "Offer other clinical services D.DE753 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Intensified TB case finding and linkage to TB treatment - HIV.D.DE757" -/* End of Intensified TB case finding and linkage to TB treatment (Care) */ +/* End of Intensified TB case finding and linkage to TB treatment D.DE757 */ /* @dataElement: HIV.D.DE758 - Provision of isoniazid preventive therapy if person does not have TB @@ -10141,16 +10141,16 @@ define "Intensified TB case finding and linkage to TB treatment (Care) Observati @description: Offer or refer for provision of isoniazid preventive therapy if person does not have TB */ // TODO: Replace placeholder with relevant CQL logic -define "Provision of isoniazid preventive therapy if person does not have TB (Care)": - exists "Provision of isoniazid preventive therapy if person does not have TB (Care) Condition" - or exists "Provision of isoniazid preventive therapy if person does not have TB (Care) Observation" -define "Provision of isoniazid preventive therapy if person does not have TB (Care) Condition": +define "Provision of isoniazid preventive therapy if person does not have TB D.DE758": + exists "Provision of isoniazid preventive therapy if person does not have TB D.DE758 Condition" + or exists "Provision of isoniazid preventive therapy if person does not have TB D.DE758 Observation" +define "Provision of isoniazid preventive therapy if person does not have TB D.DE758 Condition": [Condition: Concepts."Provision of isoniazid preventive therapy if person does not have TB - HIV.D.DE758"] -define "Provision of isoniazid preventive therapy if person does not have TB (Care) Observation": - "Offer other clinical services (Care) Observation" O +define "Provision of isoniazid preventive therapy if person does not have TB D.DE758 Observation": + "Offer other clinical services D.DE753 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Provision of isoniazid preventive therapy if person does not have TB - HIV.D.DE758" -/* End of Provision of isoniazid preventive therapy if person does not have TB (Care) */ +/* End of Provision of isoniazid preventive therapy if person does not have TB D.DE758 */ /* @dataElement: HIV.D.DE759 - Malaria prevention such as bed nets and prophylaxis, depending on epidemiology @@ -10158,16 +10158,16 @@ define "Provision of isoniazid preventive therapy if person does not have TB (Ca @description: Offer or refer for malaria prevention (such as bed nets and prophylaxis), depending on epidemiology */ // TODO: Replace placeholder with relevant CQL logic -define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (Care)": - exists "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (Care) Condition" - or exists "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (Care) Observation" -define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (Care) Condition": +define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology D.DE759": + exists "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology D.DE759 Condition" + or exists "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology D.DE759 Observation" +define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology D.DE759 Condition": [Condition: Concepts."Malaria prevention such as bed nets and prophylaxis, depending on epidemiology - HIV.D.DE759"] -define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (Care) Observation": - "Offer other clinical services (Care) Observation" O +define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology D.DE759 Observation": + "Offer other clinical services D.DE753 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Malaria prevention such as bed nets and prophylaxis, depending on epidemiology - HIV.D.DE759" -/* End of Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (Care) */ +/* End of Malaria prevention such as bed nets and prophylaxis, depending on epidemiology D.DE759 */ /* @dataElement: HIV.D.DE760 - Eligible for DSD ART @@ -10175,13 +10175,13 @@ define "Malaria prevention such as bed nets and prophylaxis, depending on epidem @description: Client is eligible for differentiated service delivery (DSD) for ART */ // TODO: Replace placeholder with relevant CQL logic -define "Eligible for DSD ART (Care)": - exists "Eligible for DSD ART (Care) Observation" -define "Eligible for DSD ART (Care) Observation": +define "Eligible for DSD ART": + exists "Eligible for DSD ART Observation" +define "Eligible for DSD ART Observation": [Observation: Concepts."Eligible for DSD ART"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Eligible for DSD ART (Care) */ +/* End of Eligible for DSD ART */ /* @dataElement: HIV.D.DE761 - Date DSD ART eligibility assessed @@ -10189,13 +10189,13 @@ define "Eligible for DSD ART (Care) Observation": @description: Date client was assessed for eligibility for differentiated service delivery (DSD) for ART */ // TODO: Replace placeholder with relevant CQL logic -define "Date DSD ART eligibility assessed (Care)": +define "Date DSD ART eligibility assessed": [Observation: Concepts."Date DSD ART eligibility assessed"] O where O.status in { 'final', 'amended', 'corrected' } -define "Date DSD ART eligibility assessed (Care) Value": - "Date DSD ART eligibility assessed (Care)" O +define "Date DSD ART eligibility assessed Value": + "Date DSD ART eligibility assessed" O return O.value -/* End of Date DSD ART eligibility assessed (Care) */ +/* End of Date DSD ART eligibility assessed */ /* @dataElement: HIV.D.DE762 - Currently enrolled in DSD ART model @@ -10203,13 +10203,13 @@ define "Date DSD ART eligibility assessed (Care) Value": @description: Client currently enrolled in differentiated service delivery (DSD) ART model */ // TODO: Replace placeholder with relevant CQL logic -define "Currently enrolled in DSD ART model (Care)": - exists "Currently enrolled in DSD ART model (Care) Observation" -define "Currently enrolled in DSD ART model (Care) Observation": +define "Currently enrolled in DSD ART model": + exists "Currently enrolled in DSD ART model Observation" +define "Currently enrolled in DSD ART model Observation": [Observation: Concepts."Currently enrolled in DSD ART model"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Currently enrolled in DSD ART model (Care) */ +/* End of Currently enrolled in DSD ART model */ /* @dataElement: HIV.D.DE763 - DSD ART start date @@ -10217,13 +10217,13 @@ define "Currently enrolled in DSD ART model (Care) Observation": @description: Date client started on differentiated service delivery (DSD) for ART */ // TODO: Replace placeholder with relevant CQL logic -define "DSD ART start date (Care)": +define "DSD ART start date": [Observation: Concepts."DSD ART start date"] O where O.status in { 'final', 'amended', 'corrected' } -define "DSD ART start date (Care) Value": - "DSD ART start date (Care)" O +define "DSD ART start date Value": + "DSD ART start date" O return O.value -/* End of DSD ART start date (Care) */ +/* End of DSD ART start date */ /* @dataElement: HIV.D.DE764 - DSD ART models @@ -10231,12 +10231,12 @@ define "DSD ART start date (Care) Value": @description: Type of DSD ART model client is enrolled in (country-specific) */ // TODO: Replace placeholder with relevant CQL logic -define "DSD ART models (Care)": - exists "DSD ART models (Care) Observation" -define "DSD ART models (Care) Observation": +define "DSD ART models": + exists "DSD ART models Observation" +define "DSD ART models Observation": [Observation: Concepts."DSD ART models"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of DSD ART models (Care) */ +/* End of DSD ART models */ /* @dataElement: HIV.D.DE765 - Fast track ART refill @@ -10244,16 +10244,16 @@ define "DSD ART models (Care) Observation": @description: Client is enrolled in fast track ART refill (DSD ART model) */ // TODO: Replace placeholder with relevant CQL logic -define "Fast track ART refill (Care)": - exists "Fast track ART refill (Care) Condition" - or exists "Fast track ART refill (Care) Observation" -define "Fast track ART refill (Care) Condition": +define "Fast track ART refill": + exists "Fast track ART refill Condition" + or exists "Fast track ART refill Observation" +define "Fast track ART refill Condition": [Condition: Concepts."Fast track ART refill"] -define "Fast track ART refill (Care) Observation": - "DSD ART models (Care) Observation" O +define "Fast track ART refill Observation": + "DSD ART models Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Fast track ART refill" -/* End of Fast track ART refill (Care) */ +/* End of Fast track ART refill */ /* @dataElement: HIV.D.DE766 - Facility adherence club @@ -10261,16 +10261,16 @@ define "Fast track ART refill (Care) Observation": @description: Client is enrolled in facility adherence club (DSD ART model) */ // TODO: Replace placeholder with relevant CQL logic -define "Facility adherence club (Care)": - exists "Facility adherence club (Care) Condition" - or exists "Facility adherence club (Care) Observation" -define "Facility adherence club (Care) Condition": +define "Facility adherence club": + exists "Facility adherence club Condition" + or exists "Facility adherence club Observation" +define "Facility adherence club Condition": [Condition: Concepts."Facility adherence club"] -define "Facility adherence club (Care) Observation": - "DSD ART models (Care) Observation" O +define "Facility adherence club Observation": + "DSD ART models Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Facility adherence club" -/* End of Facility adherence club (Care) */ +/* End of Facility adherence club */ /* @dataElement: HIV.D.DE767 - Community ART distribution point @@ -10278,16 +10278,16 @@ define "Facility adherence club (Care) Observation": @description: Client is enrolled in community ART distribution point (DSD ART model) */ // TODO: Replace placeholder with relevant CQL logic -define "Community ART distribution point (Care)": - exists "Community ART distribution point (Care) Condition" - or exists "Community ART distribution point (Care) Observation" -define "Community ART distribution point (Care) Condition": +define "Community ART distribution point": + exists "Community ART distribution point Condition" + or exists "Community ART distribution point Observation" +define "Community ART distribution point Condition": [Condition: Concepts."Community ART distribution point"] -define "Community ART distribution point (Care) Observation": - "DSD ART models (Care) Observation" O +define "Community ART distribution point Observation": + "DSD ART models Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Community ART distribution point" -/* End of Community ART distribution point (Care) */ +/* End of Community ART distribution point */ /* @dataElement: HIV.D.DE768 - CHW/peer educator community ART group @@ -10295,16 +10295,16 @@ define "Community ART distribution point (Care) Observation": @description: Client is enrolled in community health worker/peer educator community ART group (DSD ART model) */ // TODO: Replace placeholder with relevant CQL logic -define "CHW/peer educator community ART group (Care)": - exists "CHW/peer educator community ART group (Care) Condition" - or exists "CHW/peer educator community ART group (Care) Observation" -define "CHW/peer educator community ART group (Care) Condition": +define "CHW/peer educator community ART group": + exists "CHW/peer educator community ART group Condition" + or exists "CHW/peer educator community ART group Observation" +define "CHW/peer educator community ART group Condition": [Condition: Concepts."CHW/peer educator community ART group"] -define "CHW/peer educator community ART group (Care) Observation": - "DSD ART models (Care) Observation" O +define "CHW/peer educator community ART group Observation": + "DSD ART models Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."CHW/peer educator community ART group" -/* End of CHW/peer educator community ART group (Care) */ +/* End of CHW/peer educator community ART group */ /* @dataElement: HIV.D.DE769 - Patient/client community ART group @@ -10312,16 +10312,16 @@ define "CHW/peer educator community ART group (Care) Observation": @description: Client is enrolled in patient/client community ART group (DSD ART model) */ // TODO: Replace placeholder with relevant CQL logic -define "Patient/client community ART group (Care)": - exists "Patient/client community ART group (Care) Condition" - or exists "Patient/client community ART group (Care) Observation" -define "Patient/client community ART group (Care) Condition": +define "Patient/client community ART group": + exists "Patient/client community ART group Condition" + or exists "Patient/client community ART group Observation" +define "Patient/client community ART group Condition": [Condition: Concepts."Patient/client community ART group"] -define "Patient/client community ART group (Care) Observation": - "DSD ART models (Care) Observation" O +define "Patient/client community ART group Observation": + "DSD ART models Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Patient/client community ART group" -/* End of Patient/client community ART group (Care) */ +/* End of Patient/client community ART group */ /* @dataElement: HIV.D.DE770 - Other DSD ART model @@ -10329,16 +10329,16 @@ define "Patient/client community ART group (Care) Observation": @description: Client is enrolled in another DSD ART model */ // TODO: Replace placeholder with relevant CQL logic -define "Other DSD ART model (Care)": - exists "Other DSD ART model (Care) Condition" - or exists "Other DSD ART model (Care) Observation" -define "Other DSD ART model (Care) Condition": +define "Other DSD ART model": + exists "Other DSD ART model Condition" + or exists "Other DSD ART model Observation" +define "Other DSD ART model Condition": [Condition: Concepts."Other DSD ART model"] -define "Other DSD ART model (Care) Observation": - "DSD ART models (Care) Observation" O +define "Other DSD ART model Observation": + "DSD ART models Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Other DSD ART model" -/* End of Other DSD ART model (Care) */ +/* End of Other DSD ART model */ /* @dataElement: HIV.D.DE778 - Syndrome/STI diagnosed @@ -10346,12 +10346,12 @@ define "Other DSD ART model (Care) Observation": @description: Syndrome or STI for which client is diagnosed */ // TODO: Replace placeholder with relevant CQL logic -define "Syndrome/STI diagnosed (Care)": - exists "Syndrome/STI diagnosed (Care) Observation" -define "Syndrome/STI diagnosed (Care) Observation": +define "Syndrome/STI diagnosed D.DE778": + exists "Syndrome/STI diagnosed D.DE778 Observation" +define "Syndrome/STI diagnosed D.DE778 Observation": [Observation: Concepts."Syndrome/STI diagnosed - HIV.D.DE778"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Syndrome/STI diagnosed (Care) */ +/* End of Syndrome/STI diagnosed D.DE778 */ /* @dataElement: HIV.D.DE779 - Urethral discharge syndrome @@ -10359,16 +10359,16 @@ define "Syndrome/STI diagnosed (Care) Observation": @description: Client diagnosed with urethral discharge syndrome */ // TODO: Replace placeholder with relevant CQL logic -define "Urethral discharge syndrome (Care)": - exists "Urethral discharge syndrome (Care) Condition" - or exists "Urethral discharge syndrome (Care) Observation" -define "Urethral discharge syndrome (Care) Condition": +define "Urethral discharge syndrome D.DE779": + exists "Urethral discharge syndrome D.DE779 Condition" + or exists "Urethral discharge syndrome D.DE779 Observation" +define "Urethral discharge syndrome D.DE779 Condition": [Condition: Concepts."Urethral discharge syndrome - HIV.D.DE779"] -define "Urethral discharge syndrome (Care) Observation": - "Syndrome/STI diagnosed (Care) Observation" O +define "Urethral discharge syndrome D.DE779 Observation": + "Syndrome/STI diagnosed D.DE778 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Urethral discharge syndrome - HIV.D.DE779" -/* End of Urethral discharge syndrome (Care) */ +/* End of Urethral discharge syndrome D.DE779 */ /* @dataElement: HIV.D.DE780 - Vaginal discharge syndrome @@ -10376,16 +10376,16 @@ define "Urethral discharge syndrome (Care) Observation": @description: Client diagnosed with vaginal discharge syndrome */ // TODO: Replace placeholder with relevant CQL logic -define "Vaginal discharge syndrome (Care)": - exists "Vaginal discharge syndrome (Care) Condition" - or exists "Vaginal discharge syndrome (Care) Observation" -define "Vaginal discharge syndrome (Care) Condition": +define "Vaginal discharge syndrome D.DE780": + exists "Vaginal discharge syndrome D.DE780 Condition" + or exists "Vaginal discharge syndrome D.DE780 Observation" +define "Vaginal discharge syndrome D.DE780 Condition": [Condition: Concepts."Vaginal discharge syndrome - HIV.D.DE780"] -define "Vaginal discharge syndrome (Care) Observation": - "Syndrome/STI diagnosed (Care) Observation" O +define "Vaginal discharge syndrome D.DE780 Observation": + "Syndrome/STI diagnosed D.DE778 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Vaginal discharge syndrome - HIV.D.DE780" -/* End of Vaginal discharge syndrome (Care) */ +/* End of Vaginal discharge syndrome D.DE780 */ /* @dataElement: HIV.D.DE781 - Lower Abdominal pain @@ -10393,16 +10393,16 @@ define "Vaginal discharge syndrome (Care) Observation": @description: Client diagnosed with lower abdominal pain */ // TODO: Replace placeholder with relevant CQL logic -define "Lower Abdominal pain (Care)": - exists "Lower Abdominal pain (Care) Condition" - or exists "Lower Abdominal pain (Care) Observation" -define "Lower Abdominal pain (Care) Condition": +define "Lower Abdominal pain D.DE781": + exists "Lower Abdominal pain D.DE781 Condition" + or exists "Lower Abdominal pain D.DE781 Observation" +define "Lower Abdominal pain D.DE781 Condition": [Condition: Concepts."Lower Abdominal pain - HIV.D.DE781"] -define "Lower Abdominal pain (Care) Observation": - "Syndrome/STI diagnosed (Care) Observation" O +define "Lower Abdominal pain D.DE781 Observation": + "Syndrome/STI diagnosed D.DE778 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Lower Abdominal pain - HIV.D.DE781" -/* End of Lower Abdominal pain (Care) */ +/* End of Lower Abdominal pain D.DE781 */ /* @dataElement: HIV.D.DE782 - Genital ulcer disease syndrome @@ -10410,16 +10410,16 @@ define "Lower Abdominal pain (Care) Observation": @description: Client diagnosed with genital ulcer disease syndrome */ // TODO: Replace placeholder with relevant CQL logic -define "Genital ulcer disease syndrome (Care)": - exists "Genital ulcer disease syndrome (Care) Condition" - or exists "Genital ulcer disease syndrome (Care) Observation" -define "Genital ulcer disease syndrome (Care) Condition": +define "Genital ulcer disease syndrome D.DE782": + exists "Genital ulcer disease syndrome D.DE782 Condition" + or exists "Genital ulcer disease syndrome D.DE782 Observation" +define "Genital ulcer disease syndrome D.DE782 Condition": [Condition: Concepts."Genital ulcer disease syndrome - HIV.D.DE782"] -define "Genital ulcer disease syndrome (Care) Observation": - "Syndrome/STI diagnosed (Care) Observation" O +define "Genital ulcer disease syndrome D.DE782 Observation": + "Syndrome/STI diagnosed D.DE778 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Genital ulcer disease syndrome - HIV.D.DE782" -/* End of Genital ulcer disease syndrome (Care) */ +/* End of Genital ulcer disease syndrome D.DE782 */ /* @dataElement: HIV.D.DE783 - Anorectal discharge @@ -10427,16 +10427,16 @@ define "Genital ulcer disease syndrome (Care) Observation": @description: Client diagnosed with anorectal discharge */ // TODO: Replace placeholder with relevant CQL logic -define "Anorectal discharge (Care)": - exists "Anorectal discharge (Care) Condition" - or exists "Anorectal discharge (Care) Observation" -define "Anorectal discharge (Care) Condition": +define "Anorectal discharge D.DE783": + exists "Anorectal discharge D.DE783 Condition" + or exists "Anorectal discharge D.DE783 Observation" +define "Anorectal discharge D.DE783 Condition": [Condition: Concepts."Anorectal discharge - HIV.D.DE783"] -define "Anorectal discharge (Care) Observation": - "Syndrome/STI diagnosed (Care) Observation" O +define "Anorectal discharge D.DE783 Observation": + "Syndrome/STI diagnosed D.DE778 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Anorectal discharge - HIV.D.DE783" -/* End of Anorectal discharge (Care) */ +/* End of Anorectal discharge D.DE783 */ /* @dataElement: HIV.D.DE784 - Sent for testing @@ -10444,16 +10444,16 @@ define "Anorectal discharge (Care) Observation": @description: Specimen sent for testing */ // TODO: Replace placeholder with relevant CQL logic -define "Sent for testing (Care)": - exists "Sent for testing (Care) Condition" - or exists "Sent for testing (Care) Observation" -define "Sent for testing (Care) Condition": +define "Sent for testing D.DE784": + exists "Sent for testing D.DE784 Condition" + or exists "Sent for testing D.DE784 Observation" +define "Sent for testing D.DE784 Condition": [Condition: Concepts."Sent for testing - HIV.D.DE784"] -define "Sent for testing (Care) Observation": - "Syndrome/STI diagnosed (Care) Observation" O +define "Sent for testing D.DE784 Observation": + "Syndrome/STI diagnosed D.DE778 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Sent for testing - HIV.D.DE784" -/* End of Sent for testing (Care) */ +/* End of Sent for testing D.DE784 */ /* @dataElement: HIV.D.DE785 - Other @@ -10461,16 +10461,16 @@ define "Sent for testing (Care) Observation": @description: Other syndrome/STI diagnosed */ // TODO: Replace placeholder with relevant CQL logic -define "Other (Care|DDE785)": - exists "Other (Care|DDE785) Condition" - or exists "Other (Care|DDE785) Observation" -define "Other (Care|DDE785) Condition": +define "Other D.DE785": + exists "Other D.DE785 Condition" + or exists "Other D.DE785 Observation" +define "Other D.DE785 Condition": [Condition: Concepts."Other - HIV.D.DE785"] -define "Other (Care|DDE785) Observation": - "Syndrome/STI diagnosed (Care) Observation" O +define "Other D.DE785 Observation": + "Syndrome/STI diagnosed D.DE778 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Other - HIV.D.DE785" -/* End of Other (Care|DDE785) */ +/* End of Other D.DE785 */ /* @dataElement: HIV.D.DE787 - Any STI syndrome diagnosed @@ -10478,13 +10478,13 @@ define "Other (Care|DDE785) Observation": @description: Was the client diagnosed with any of the five STI syndromes during this visit? */ // TODO: Replace placeholder with relevant CQL logic -define "Any STI syndrome diagnosed (Care)": - exists "Any STI syndrome diagnosed (Care) Observation" -define "Any STI syndrome diagnosed (Care) Observation": +define "Any STI syndrome diagnosed D.DE787": + exists "Any STI syndrome diagnosed D.DE787 Observation" +define "Any STI syndrome diagnosed D.DE787 Observation": [Observation: Concepts."Any STI syndrome diagnosed - HIV.D.DE787"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Any STI syndrome diagnosed (Care) */ +/* End of Any STI syndrome diagnosed D.DE787 */ /* @dataElement: HIV.D.DE801 - Syphilis test date @@ -10492,13 +10492,13 @@ define "Any STI syndrome diagnosed (Care) Observation": @description: Date of syphilis test */ // TODO: Replace placeholder with relevant CQL logic -define "Syphilis test date (Care)": +define "Syphilis test date D.DE801": [Observation: Concepts."Syphilis test date - HIV.D.DE801"] O where O.status in { 'final', 'amended', 'corrected' } -define "Syphilis test date (Care) Value": - "Syphilis test date (Care)" O +define "Syphilis test date D.DE801 Value": + "Syphilis test date D.DE801" O return O.value -/* End of Syphilis test date (Care) */ +/* End of Syphilis test date D.DE801 */ /* @dataElement: HIV.D.DE802 - Syphilis test result @@ -10506,12 +10506,12 @@ define "Syphilis test date (Care) Value": @description: Result from syphilis test */ // TODO: Replace placeholder with relevant CQL logic -define "Syphilis test result (Care)": - exists "Syphilis test result (Care) Observation" -define "Syphilis test result (Care) Observation": +define "Syphilis test result D.DE802": + exists "Syphilis test result D.DE802 Observation" +define "Syphilis test result D.DE802 Observation": [Observation: Concepts."Syphilis test result - HIV.D.DE802"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Syphilis test result (Care) */ +/* End of Syphilis test result D.DE802 */ /* @dataElement: HIV.D.DE803 - Positive @@ -10519,16 +10519,16 @@ define "Syphilis test result (Care) Observation": @description: Test result is positive for syphilis */ // TODO: Replace placeholder with relevant CQL logic -define "Positive (Care|DDE803)": - exists "Positive (Care|DDE803) Condition" - or exists "Positive (Care|DDE803) Observation" -define "Positive (Care|DDE803) Condition": +define "Positive D.DE803": + exists "Positive D.DE803 Condition" + or exists "Positive D.DE803 Observation" +define "Positive D.DE803 Condition": [Condition: Concepts."Positive - HIV.D.DE803"] -define "Positive (Care|DDE803) Observation": - "Syphilis test result (Care) Observation" O +define "Positive D.DE803 Observation": + "Syphilis test result D.DE802 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Positive - HIV.D.DE803" -/* End of Positive (Care|DDE803) */ +/* End of Positive D.DE803 */ /* @dataElement: HIV.D.DE804 - Negative @@ -10536,16 +10536,16 @@ define "Positive (Care|DDE803) Observation": @description: Test result is negative for syphilis */ // TODO: Replace placeholder with relevant CQL logic -define "Negative (Care|DDE804)": - exists "Negative (Care|DDE804) Condition" - or exists "Negative (Care|DDE804) Observation" -define "Negative (Care|DDE804) Condition": +define "Negative D.DE804": + exists "Negative D.DE804 Condition" + or exists "Negative D.DE804 Observation" +define "Negative D.DE804 Condition": [Condition: Concepts."Negative - HIV.D.DE804"] -define "Negative (Care|DDE804) Observation": - "Syphilis test result (Care) Observation" O +define "Negative D.DE804 Observation": + "Syphilis test result D.DE802 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Negative - HIV.D.DE804" -/* End of Negative (Care|DDE804) */ +/* End of Negative D.DE804 */ /* @dataElement: HIV.D.DE805 - Inconclusive @@ -10553,16 +10553,16 @@ define "Negative (Care|DDE804) Observation": @description: Test result is inconclusive */ // TODO: Replace placeholder with relevant CQL logic -define "Inconclusive (Care|DDE805)": - exists "Inconclusive (Care|DDE805) Condition" - or exists "Inconclusive (Care|DDE805) Observation" -define "Inconclusive (Care|DDE805) Condition": +define "Inconclusive D.DE805": + exists "Inconclusive D.DE805 Condition" + or exists "Inconclusive D.DE805 Observation" +define "Inconclusive D.DE805 Condition": [Condition: Concepts."Inconclusive - HIV.D.DE805"] -define "Inconclusive (Care|DDE805) Observation": - "Syphilis test result (Care) Observation" O +define "Inconclusive D.DE805 Observation": + "Syphilis test result D.DE802 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Inconclusive - HIV.D.DE805" -/* End of Inconclusive (Care|DDE805) */ +/* End of Inconclusive D.DE805 */ /* @dataElement: HIV.D.DE806 - Syphilis treatment start date @@ -10570,13 +10570,13 @@ define "Inconclusive (Care|DDE805) Observation": @description: Date of initiation of syphilis treatment */ // TODO: Replace placeholder with relevant CQL logic -define "Syphilis treatment start date (Care)": +define "Syphilis treatment start date D.DE806": [Observation: Concepts."Syphilis treatment start date - HIV.D.DE806"] O where O.status in { 'final', 'amended', 'corrected' } -define "Syphilis treatment start date (Care) Value": - "Syphilis treatment start date (Care)" O +define "Syphilis treatment start date D.DE806 Value": + "Syphilis treatment start date D.DE806" O return O.value -/* End of Syphilis treatment start date (Care) */ +/* End of Syphilis treatment start date D.DE806 */ /* @dataElement: HIV.D.DE807 - Gonorrhoea test date @@ -10584,13 +10584,13 @@ define "Syphilis treatment start date (Care) Value": @description: Date of Gonorrhoea test */ // TODO: Replace placeholder with relevant CQL logic -define "Gonorrhoea test date (Care)": +define "Gonorrhoea test date D.DE807": [Observation: Concepts."Gonorrhoea test date - HIV.D.DE807"] O where O.status in { 'final', 'amended', 'corrected' } -define "Gonorrhoea test date (Care) Value": - "Gonorrhoea test date (Care)" O +define "Gonorrhoea test date D.DE807 Value": + "Gonorrhoea test date D.DE807" O return O.value -/* End of Gonorrhoea test date (Care) */ +/* End of Gonorrhoea test date D.DE807 */ /* @dataElement: HIV.D.DE808 - Gonorrhoea test result @@ -10598,12 +10598,12 @@ define "Gonorrhoea test date (Care) Value": @description: Result from Gonorrhoea test */ // TODO: Replace placeholder with relevant CQL logic -define "Gonorrhoea test result (Care)": - exists "Gonorrhoea test result (Care) Observation" -define "Gonorrhoea test result (Care) Observation": +define "Gonorrhoea test result D.DE808": + exists "Gonorrhoea test result D.DE808 Observation" +define "Gonorrhoea test result D.DE808 Observation": [Observation: Concepts."Gonorrhoea test result - HIV.D.DE808"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Gonorrhoea test result (Care) */ +/* End of Gonorrhoea test result D.DE808 */ /* @dataElement: HIV.D.DE809 - Positive @@ -10611,16 +10611,16 @@ define "Gonorrhoea test result (Care) Observation": @description: Test result is positive for Neisseria gonorrhoeae */ // TODO: Replace placeholder with relevant CQL logic -define "Positive (Care|DDE809)": - exists "Positive (Care|DDE809) Condition" - or exists "Positive (Care|DDE809) Observation" -define "Positive (Care|DDE809) Condition": +define "Positive D.DE809": + exists "Positive D.DE809 Condition" + or exists "Positive D.DE809 Observation" +define "Positive D.DE809 Condition": [Condition: Concepts."Positive - HIV.D.DE809"] -define "Positive (Care|DDE809) Observation": - "Gonorrhoea test result (Care) Observation" O +define "Positive D.DE809 Observation": + "Gonorrhoea test result D.DE808 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Positive - HIV.D.DE809" -/* End of Positive (Care|DDE809) */ +/* End of Positive D.DE809 */ /* @dataElement: HIV.D.DE810 - Negative @@ -10628,16 +10628,16 @@ define "Positive (Care|DDE809) Observation": @description: Test result is negative for Neisseria gonorrhoeae */ // TODO: Replace placeholder with relevant CQL logic -define "Negative (Care|DDE810)": - exists "Negative (Care|DDE810) Condition" - or exists "Negative (Care|DDE810) Observation" -define "Negative (Care|DDE810) Condition": +define "Negative D.DE810": + exists "Negative D.DE810 Condition" + or exists "Negative D.DE810 Observation" +define "Negative D.DE810 Condition": [Condition: Concepts."Negative - HIV.D.DE810"] -define "Negative (Care|DDE810) Observation": - "Gonorrhoea test result (Care) Observation" O +define "Negative D.DE810 Observation": + "Gonorrhoea test result D.DE808 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Negative - HIV.D.DE810" -/* End of Negative (Care|DDE810) */ +/* End of Negative D.DE810 */ /* @dataElement: HIV.D.DE811 - Inconclusive @@ -10645,16 +10645,16 @@ define "Negative (Care|DDE810) Observation": @description: Test result is inconclusive */ // TODO: Replace placeholder with relevant CQL logic -define "Inconclusive (Care|DDE811)": - exists "Inconclusive (Care|DDE811) Condition" - or exists "Inconclusive (Care|DDE811) Observation" -define "Inconclusive (Care|DDE811) Condition": +define "Inconclusive D.DE811": + exists "Inconclusive D.DE811 Condition" + or exists "Inconclusive D.DE811 Observation" +define "Inconclusive D.DE811 Condition": [Condition: Concepts."Inconclusive - HIV.D.DE811"] -define "Inconclusive (Care|DDE811) Observation": - "Gonorrhoea test result (Care) Observation" O +define "Inconclusive D.DE811 Observation": + "Gonorrhoea test result D.DE808 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Inconclusive - HIV.D.DE811" -/* End of Inconclusive (Care|DDE811) */ +/* End of Inconclusive D.DE811 */ /* @dataElement: HIV.D.DE812 - Gonorrhoea treatment start date @@ -10662,13 +10662,13 @@ define "Inconclusive (Care|DDE811) Observation": @description: Date of initiation of Gonorrhoea treatment */ // TODO: Replace placeholder with relevant CQL logic -define "Gonorrhoea treatment start date (Care)": +define "Gonorrhoea treatment start date D.DE812": [Observation: Concepts."Gonorrhoea treatment start date - HIV.D.DE812"] O where O.status in { 'final', 'amended', 'corrected' } -define "Gonorrhoea treatment start date (Care) Value": - "Gonorrhoea treatment start date (Care)" O +define "Gonorrhoea treatment start date D.DE812 Value": + "Gonorrhoea treatment start date D.DE812" O return O.value -/* End of Gonorrhoea treatment start date (Care) */ +/* End of Gonorrhoea treatment start date D.DE812 */ /* @dataElement: HIV.D.DE813 - Type of specimen @@ -10676,12 +10676,12 @@ define "Gonorrhoea treatment start date (Care) Value": @description: Type of specimen to be collected */ // TODO: Replace placeholder with relevant CQL logic -define "Type of specimen (Care)": - exists "Type of specimen (Care) Observation" -define "Type of specimen (Care) Observation": +define "Type of specimen D.DE813": + exists "Type of specimen D.DE813 Observation" +define "Type of specimen D.DE813 Observation": [Observation: Concepts."Type of specimen - HIV.D.DE813"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Type of specimen (Care) */ +/* End of Type of specimen D.DE813 */ /* @dataElement: HIV.D.DE814 - Blood @@ -10689,16 +10689,16 @@ define "Type of specimen (Care) Observation": @description: Blood specimen to be collected */ // TODO: Replace placeholder with relevant CQL logic -define "Blood (Care)": - exists "Blood (Care) Condition" - or exists "Blood (Care) Observation" -define "Blood (Care) Condition": +define "Blood D.DE814": + exists "Blood D.DE814 Condition" + or exists "Blood D.DE814 Observation" +define "Blood D.DE814 Condition": [Condition: Concepts."Blood - HIV.D.DE814"] -define "Blood (Care) Observation": - "Type of specimen (Care) Observation" O +define "Blood D.DE814 Observation": + "Type of specimen D.DE813 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Blood - HIV.D.DE814" -/* End of Blood (Care) */ +/* End of Blood D.DE814 */ /* @dataElement: HIV.D.DE815 - Urine @@ -10706,16 +10706,16 @@ define "Blood (Care) Observation": @description: Urine specimen to be collected */ // TODO: Replace placeholder with relevant CQL logic -define "Urine (Care)": - exists "Urine (Care) Condition" - or exists "Urine (Care) Observation" -define "Urine (Care) Condition": +define "Urine D.DE815": + exists "Urine D.DE815 Condition" + or exists "Urine D.DE815 Observation" +define "Urine D.DE815 Condition": [Condition: Concepts."Urine - HIV.D.DE815"] -define "Urine (Care) Observation": - "Type of specimen (Care) Observation" O +define "Urine D.DE815 Observation": + "Type of specimen D.DE813 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Urine - HIV.D.DE815" -/* End of Urine (Care) */ +/* End of Urine D.DE815 */ /* @dataElement: HIV.D.DE816 - Cervical or vaginal swab @@ -10723,16 +10723,16 @@ define "Urine (Care) Observation": @description: Cervical or vaginal swab to be collected */ // TODO: Replace placeholder with relevant CQL logic -define "Cervical or vaginal swab (Care)": - exists "Cervical or vaginal swab (Care) Condition" - or exists "Cervical or vaginal swab (Care) Observation" -define "Cervical or vaginal swab (Care) Condition": +define "Cervical or vaginal swab D.DE816": + exists "Cervical or vaginal swab D.DE816 Condition" + or exists "Cervical or vaginal swab D.DE816 Observation" +define "Cervical or vaginal swab D.DE816 Condition": [Condition: Concepts."Cervical or vaginal swab - HIV.D.DE816"] -define "Cervical or vaginal swab (Care) Observation": - "Type of specimen (Care) Observation" O +define "Cervical or vaginal swab D.DE816 Observation": + "Type of specimen D.DE813 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Cervical or vaginal swab - HIV.D.DE816" -/* End of Cervical or vaginal swab (Care) */ +/* End of Cervical or vaginal swab D.DE816 */ /* @dataElement: HIV.D.DE817 - Urethral or penile swab @@ -10740,16 +10740,16 @@ define "Cervical or vaginal swab (Care) Observation": @description: Urethral or penile swab to be collected */ // TODO: Replace placeholder with relevant CQL logic -define "Urethral or penile swab (Care)": - exists "Urethral or penile swab (Care) Condition" - or exists "Urethral or penile swab (Care) Observation" -define "Urethral or penile swab (Care) Condition": +define "Urethral or penile swab D.DE817": + exists "Urethral or penile swab D.DE817 Condition" + or exists "Urethral or penile swab D.DE817 Observation" +define "Urethral or penile swab D.DE817 Condition": [Condition: Concepts."Urethral or penile swab - HIV.D.DE817"] -define "Urethral or penile swab (Care) Observation": - "Type of specimen (Care) Observation" O +define "Urethral or penile swab D.DE817 Observation": + "Type of specimen D.DE813 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Urethral or penile swab - HIV.D.DE817" -/* End of Urethral or penile swab (Care) */ +/* End of Urethral or penile swab D.DE817 */ /* @dataElement: HIV.D.DE818 - Rectal swab @@ -10757,16 +10757,16 @@ define "Urethral or penile swab (Care) Observation": @description: Rectal swab to be collected */ // TODO: Replace placeholder with relevant CQL logic -define "Rectal swab (Care)": - exists "Rectal swab (Care) Condition" - or exists "Rectal swab (Care) Observation" -define "Rectal swab (Care) Condition": +define "Rectal swab D.DE818": + exists "Rectal swab D.DE818 Condition" + or exists "Rectal swab D.DE818 Observation" +define "Rectal swab D.DE818 Condition": [Condition: Concepts."Rectal swab - HIV.D.DE818"] -define "Rectal swab (Care) Observation": - "Type of specimen (Care) Observation" O +define "Rectal swab D.DE818 Observation": + "Type of specimen D.DE813 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Rectal swab - HIV.D.DE818" -/* End of Rectal swab (Care) */ +/* End of Rectal swab D.DE818 */ /* @dataElement: HIV.D.DE819 - Other @@ -10774,16 +10774,16 @@ define "Rectal swab (Care) Observation": @description: Other specimen type to be collected */ // TODO: Replace placeholder with relevant CQL logic -define "Other (Care|DDE819)": - exists "Other (Care|DDE819) Condition" - or exists "Other (Care|DDE819) Observation" -define "Other (Care|DDE819) Condition": +define "Other D.DE819": + exists "Other D.DE819 Condition" + or exists "Other D.DE819 Observation" +define "Other D.DE819 Condition": [Condition: Concepts."Other - HIV.D.DE819"] -define "Other (Care|DDE819) Observation": - "Type of specimen (Care) Observation" O +define "Other D.DE819 Observation": + "Type of specimen D.DE813 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Other - HIV.D.DE819" -/* End of Other (Care|DDE819) */ +/* End of Other D.DE819 */ /* @dataElement: HIV.D.DE828 - Neisseria gonorrhoeae test type @@ -10791,12 +10791,12 @@ define "Other (Care|DDE819) Observation": @description: Type of diagnostic test used for Neisseria gonorrhoeae */ // TODO: Replace placeholder with relevant CQL logic -define "Neisseria gonorrhoeae test type (Care)": - exists "Neisseria gonorrhoeae test type (Care) Observation" -define "Neisseria gonorrhoeae test type (Care) Observation": +define "Neisseria gonorrhoeae test type D.DE828": + exists "Neisseria gonorrhoeae test type D.DE828 Observation" +define "Neisseria gonorrhoeae test type D.DE828 Observation": [Observation: Concepts."Neisseria gonorrhoeae test type - HIV.D.DE828"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Neisseria gonorrhoeae test type (Care) */ +/* End of Neisseria gonorrhoeae test type D.DE828 */ /* @dataElement: HIV.D.DE829 - NAAT @@ -10804,16 +10804,16 @@ define "Neisseria gonorrhoeae test type (Care) Observation": @description: Nucleic Acid Amplification Test (NAAT) used */ // TODO: Replace placeholder with relevant CQL logic -define "NAAT (Care)": - exists "NAAT (Care) Condition" - or exists "NAAT (Care) Observation" -define "NAAT (Care) Condition": +define "NAAT D.DE829": + exists "NAAT D.DE829 Condition" + or exists "NAAT D.DE829 Observation" +define "NAAT D.DE829 Condition": [Condition: Concepts."NAAT - HIV.D.DE829"] -define "NAAT (Care) Observation": - "Neisseria gonorrhoeae test type (Care) Observation" O +define "NAAT D.DE829 Observation": + "Neisseria gonorrhoeae test type D.DE828 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."NAAT - HIV.D.DE829" -/* End of NAAT (Care) */ +/* End of NAAT D.DE829 */ /* @dataElement: HIV.D.DE830 - POC Test @@ -10821,16 +10821,16 @@ define "NAAT (Care) Observation": @description: Point-of-care (POC) test used */ // TODO: Replace placeholder with relevant CQL logic -define "POC Test (Care)": - exists "POC Test (Care) Condition" - or exists "POC Test (Care) Observation" -define "POC Test (Care) Condition": +define "POC Test D.DE830": + exists "POC Test D.DE830 Condition" + or exists "POC Test D.DE830 Observation" +define "POC Test D.DE830 Condition": [Condition: Concepts."POC Test - HIV.D.DE830"] -define "POC Test (Care) Observation": - "Neisseria gonorrhoeae test type (Care) Observation" O +define "POC Test D.DE830 Observation": + "Neisseria gonorrhoeae test type D.DE828 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."POC Test - HIV.D.DE830" -/* End of POC Test (Care) */ +/* End of POC Test D.DE830 */ /* @dataElement: HIV.D.DE831 - Culture @@ -10838,16 +10838,16 @@ define "POC Test (Care) Observation": @description: Culture test used */ // TODO: Replace placeholder with relevant CQL logic -define "Culture (Care)": - exists "Culture (Care) Condition" - or exists "Culture (Care) Observation" -define "Culture (Care) Condition": +define "Culture D.DE831": + exists "Culture D.DE831 Condition" + or exists "Culture D.DE831 Observation" +define "Culture D.DE831 Condition": [Condition: Concepts."Culture - HIV.D.DE831"] -define "Culture (Care) Observation": - "Neisseria gonorrhoeae test type (Care) Observation" O +define "Culture D.DE831 Observation": + "Neisseria gonorrhoeae test type D.DE828 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Culture - HIV.D.DE831" -/* End of Culture (Care) */ +/* End of Culture D.DE831 */ /* @dataElement: HIV.D.DE832 - Microscopy @@ -10855,16 +10855,16 @@ define "Culture (Care) Observation": @description: Microscopy test used */ // TODO: Replace placeholder with relevant CQL logic -define "Microscopy (Care)": - exists "Microscopy (Care) Condition" - or exists "Microscopy (Care) Observation" -define "Microscopy (Care) Condition": +define "Microscopy D.DE832": + exists "Microscopy D.DE832 Condition" + or exists "Microscopy D.DE832 Observation" +define "Microscopy D.DE832 Condition": [Condition: Concepts."Microscopy - HIV.D.DE832"] -define "Microscopy (Care) Observation": - "Neisseria gonorrhoeae test type (Care) Observation" O +define "Microscopy D.DE832 Observation": + "Neisseria gonorrhoeae test type D.DE828 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Microscopy - HIV.D.DE832" -/* End of Microscopy (Care) */ +/* End of Microscopy D.DE832 */ /* @dataElement: HIV.D.DE833 - Other @@ -10872,16 +10872,16 @@ define "Microscopy (Care) Observation": @description: Other type of test used */ // TODO: Replace placeholder with relevant CQL logic -define "Other (Care|DDE833)": - exists "Other (Care|DDE833) Condition" - or exists "Other (Care|DDE833) Observation" -define "Other (Care|DDE833) Condition": +define "Other D.DE833": + exists "Other D.DE833 Condition" + or exists "Other D.DE833 Observation" +define "Other D.DE833 Condition": [Condition: Concepts."Other - HIV.D.DE833"] -define "Other (Care|DDE833) Observation": - "Neisseria gonorrhoeae test type (Care) Observation" O +define "Other D.DE833 Observation": + "Neisseria gonorrhoeae test type D.DE828 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Other - HIV.D.DE833" -/* End of Other (Care|DDE833) */ +/* End of Other D.DE833 */ /* @dataElement: HIV.D.DE903 - Medication/drug @@ -10889,12 +10889,12 @@ define "Other (Care|DDE833) Observation": @description: Current or considered medication/drug, for the purpose of determining drug interactions */ // TODO: Replace placeholder with relevant CQL logic -define "Medication/drug (Care)": - exists "Medication/drug (Care) Observation" -define "Medication/drug (Care) Observation": +define "Medication/drug": + exists "Medication/drug Observation" +define "Medication/drug Observation": [Observation: Concepts."Medication/drug"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Medication/drug (Care) */ +/* End of Medication/drug */ /* @dataElement: HIV.D.DE904 - Rifampicin @@ -10902,16 +10902,16 @@ define "Medication/drug (Care) Observation": @description: Rifampicin currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Rifampicin (Care)": - exists "Rifampicin (Care) Condition" - or exists "Rifampicin (Care) Observation" -define "Rifampicin (Care) Condition": +define "Rifampicin": + exists "Rifampicin Condition" + or exists "Rifampicin Observation" +define "Rifampicin Condition": [Condition: Concepts."Rifampicin"] -define "Rifampicin (Care) Observation": - "Medication/drug (Care) Observation" O +define "Rifampicin Observation": + "Medication/drug Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Rifampicin" -/* End of Rifampicin (Care) */ +/* End of Rifampicin */ /* @dataElement: HIV.D.DE905 - Halofantrine @@ -10919,16 +10919,16 @@ define "Rifampicin (Care) Observation": @description: Halofantrine currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Halofantrine (Care)": - exists "Halofantrine (Care) Condition" - or exists "Halofantrine (Care) Observation" -define "Halofantrine (Care) Condition": +define "Halofantrine": + exists "Halofantrine Condition" + or exists "Halofantrine Observation" +define "Halofantrine Condition": [Condition: Concepts."Halofantrine"] -define "Halofantrine (Care) Observation": - "Medication/drug (Care) Observation" O +define "Halofantrine Observation": + "Medication/drug Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Halofantrine" -/* End of Halofantrine (Care) */ +/* End of Halofantrine */ /* @dataElement: HIV.D.DE906 - Lovastatin @@ -10936,16 +10936,16 @@ define "Halofantrine (Care) Observation": @description: Lovastatin currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Lovastatin (Care)": - exists "Lovastatin (Care) Condition" - or exists "Lovastatin (Care) Observation" -define "Lovastatin (Care) Condition": +define "Lovastatin": + exists "Lovastatin Condition" + or exists "Lovastatin Observation" +define "Lovastatin Condition": [Condition: Concepts."Lovastatin"] -define "Lovastatin (Care) Observation": - "Medication/drug (Care) Observation" O +define "Lovastatin Observation": + "Medication/drug Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Lovastatin" -/* End of Lovastatin (Care) */ +/* End of Lovastatin */ /* @dataElement: HIV.D.DE907 - Simvastatin @@ -10953,16 +10953,16 @@ define "Lovastatin (Care) Observation": @description: Simvastatin currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Simvastatin (Care)": - exists "Simvastatin (Care) Condition" - or exists "Simvastatin (Care) Observation" -define "Simvastatin (Care) Condition": +define "Simvastatin": + exists "Simvastatin Condition" + or exists "Simvastatin Observation" +define "Simvastatin Condition": [Condition: Concepts."Simvastatin"] -define "Simvastatin (Care) Observation": - "Medication/drug (Care) Observation" O +define "Simvastatin Observation": + "Medication/drug Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Simvastatin" -/* End of Simvastatin (Care) */ +/* End of Simvastatin */ /* @dataElement: HIV.D.DE908 - Hormonal contraception @@ -10970,16 +10970,16 @@ define "Simvastatin (Care) Observation": @description: Hormonal contraception currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Hormonal contraception (Care)": - exists "Hormonal contraception (Care) Condition" - or exists "Hormonal contraception (Care) Observation" -define "Hormonal contraception (Care) Condition": +define "Hormonal contraception": + exists "Hormonal contraception Condition" + or exists "Hormonal contraception Observation" +define "Hormonal contraception Condition": [Condition: Concepts."Hormonal contraception"] -define "Hormonal contraception (Care) Observation": - "Medication/drug (Care) Observation" O +define "Hormonal contraception Observation": + "Medication/drug Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Hormonal contraception" -/* End of Hormonal contraception (Care) */ +/* End of Hormonal contraception */ /* @dataElement: HIV.D.DE909 - Metformin @@ -10987,16 +10987,16 @@ define "Hormonal contraception (Care) Observation": @description: Metformin currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Metformin (Care)": - exists "Metformin (Care) Condition" - or exists "Metformin (Care) Observation" -define "Metformin (Care) Condition": +define "Metformin": + exists "Metformin Condition" + or exists "Metformin Observation" +define "Metformin Condition": [Condition: Concepts."Metformin"] -define "Metformin (Care) Observation": - "Medication/drug (Care) Observation" O +define "Metformin Observation": + "Medication/drug Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Metformin" -/* End of Metformin (Care) */ +/* End of Metformin */ /* @dataElement: HIV.D.DE910 - Astemizole @@ -11004,16 +11004,16 @@ define "Metformin (Care) Observation": @description: Astemizole currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Astemizole (Care)": - exists "Astemizole (Care) Condition" - or exists "Astemizole (Care) Observation" -define "Astemizole (Care) Condition": +define "Astemizole": + exists "Astemizole Condition" + or exists "Astemizole Observation" +define "Astemizole Condition": [Condition: Concepts."Astemizole"] -define "Astemizole (Care) Observation": - "Medication/drug (Care) Observation" O +define "Astemizole Observation": + "Medication/drug Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Astemizole" -/* End of Astemizole (Care) */ +/* End of Astemizole */ /* @dataElement: HIV.D.DE911 - Terfenadine @@ -11021,16 +11021,16 @@ define "Astemizole (Care) Observation": @description: Terfenadine currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Terfenadine (Care)": - exists "Terfenadine (Care) Condition" - or exists "Terfenadine (Care) Observation" -define "Terfenadine (Care) Condition": +define "Terfenadine": + exists "Terfenadine Condition" + or exists "Terfenadine Observation" +define "Terfenadine Condition": [Condition: Concepts."Terfenadine"] -define "Terfenadine (Care) Observation": - "Medication/drug (Care) Observation" O +define "Terfenadine Observation": + "Medication/drug Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Terfenadine" -/* End of Terfenadine (Care) */ +/* End of Terfenadine */ /* @dataElement: HIV.D.DE912 - TDF @@ -11038,16 +11038,16 @@ define "Terfenadine (Care) Observation": @description: TDF currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "TDF (Care|DDE912)": - exists "TDF (Care|DDE912) Condition" - or exists "TDF (Care|DDE912) Observation" -define "TDF (Care|DDE912) Condition": +define "TDF D.DE912": + exists "TDF D.DE912 Condition" + or exists "TDF D.DE912 Observation" +define "TDF D.DE912 Condition": [Condition: Concepts."TDF - HIV.D.DE912"] -define "TDF (Care|DDE912) Observation": - "Medication/drug (Care) Observation" O +define "TDF D.DE912 Observation": + "Medication/drug Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."TDF - HIV.D.DE912" -/* End of TDF (Care|DDE912) */ +/* End of TDF D.DE912 */ /* @dataElement: HIV.D.DE913 - Simeprevir @@ -11055,16 +11055,16 @@ define "TDF (Care|DDE912) Observation": @description: Simeprevir currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Simeprevir (Care)": - exists "Simeprevir (Care) Condition" - or exists "Simeprevir (Care) Observation" -define "Simeprevir (Care) Condition": +define "Simeprevir": + exists "Simeprevir Condition" + or exists "Simeprevir Observation" +define "Simeprevir Condition": [Condition: Concepts."Simeprevir"] -define "Simeprevir (Care) Observation": - "Medication/drug (Care) Observation" O +define "Simeprevir Observation": + "Medication/drug Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Simeprevir" -/* End of Simeprevir (Care) */ +/* End of Simeprevir */ /* @dataElement: HIV.D.DE914 - Ombitasvir + paritaprevir/ritonavir + dasabuvir @@ -11072,16 +11072,16 @@ define "Simeprevir (Care) Observation": @description: Ombitasvir + paritaprevir/ritonavir + dasabuvir currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Ombitasvir + paritaprevir/ritonavir + dasabuvir (Care)": - exists "Ombitasvir + paritaprevir/ritonavir + dasabuvir (Care) Condition" - or exists "Ombitasvir + paritaprevir/ritonavir + dasabuvir (Care) Observation" -define "Ombitasvir + paritaprevir/ritonavir + dasabuvir (Care) Condition": +define "Ombitasvir + paritaprevir/ritonavir + dasabuvir": + exists "Ombitasvir + paritaprevir/ritonavir + dasabuvir Condition" + or exists "Ombitasvir + paritaprevir/ritonavir + dasabuvir Observation" +define "Ombitasvir + paritaprevir/ritonavir + dasabuvir Condition": [Condition: Concepts."Ombitasvir + paritaprevir/ritonavir + dasabuvir"] -define "Ombitasvir + paritaprevir/ritonavir + dasabuvir (Care) Observation": - "Medication/drug (Care) Observation" O +define "Ombitasvir + paritaprevir/ritonavir + dasabuvir Observation": + "Medication/drug Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Ombitasvir + paritaprevir/ritonavir + dasabuvir" -/* End of Ombitasvir + paritaprevir/ritonavir + dasabuvir (Care) */ +/* End of Ombitasvir + paritaprevir/ritonavir + dasabuvir */ /* @dataElement: HIV.D.DE915 - Methadone @@ -11089,16 +11089,16 @@ define "Ombitasvir + paritaprevir/ritonavir + dasabuvir (Care) Observation": @description: Methadone currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Methadone (Care|DDE915)": - exists "Methadone (Care|DDE915) Condition" - or exists "Methadone (Care|DDE915) Observation" -define "Methadone (Care|DDE915) Condition": +define "Methadone D.DE915": + exists "Methadone D.DE915 Condition" + or exists "Methadone D.DE915 Observation" +define "Methadone D.DE915 Condition": [Condition: Concepts."Methadone - HIV.D.DE915"] -define "Methadone (Care|DDE915) Observation": - "Medication/drug (Care) Observation" O +define "Methadone D.DE915 Observation": + "Medication/drug Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Methadone - HIV.D.DE915" -/* End of Methadone (Care|DDE915) */ +/* End of Methadone D.DE915 */ /* @dataElement: HIV.D.DE916 - Buprenorphine @@ -11106,16 +11106,16 @@ define "Methadone (Care|DDE915) Observation": @description: Buprenorphine currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Buprenorphine (Care|DDE916)": - exists "Buprenorphine (Care|DDE916) Condition" - or exists "Buprenorphine (Care|DDE916) Observation" -define "Buprenorphine (Care|DDE916) Condition": +define "Buprenorphine D.DE916": + exists "Buprenorphine D.DE916 Condition" + or exists "Buprenorphine D.DE916 Observation" +define "Buprenorphine D.DE916 Condition": [Condition: Concepts."Buprenorphine - HIV.D.DE916"] -define "Buprenorphine (Care|DDE916) Observation": - "Medication/drug (Care) Observation" O +define "Buprenorphine D.DE916 Observation": + "Medication/drug Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Buprenorphine - HIV.D.DE916" -/* End of Buprenorphine (Care|DDE916) */ +/* End of Buprenorphine D.DE916 */ /* @dataElement: HIV.D.DE917 - Dofetilide @@ -11123,16 +11123,16 @@ define "Buprenorphine (Care|DDE916) Observation": @description: Dofetilide currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Dofetilide (Care)": - exists "Dofetilide (Care) Condition" - or exists "Dofetilide (Care) Observation" -define "Dofetilide (Care) Condition": +define "Dofetilide": + exists "Dofetilide Condition" + or exists "Dofetilide Observation" +define "Dofetilide Condition": [Condition: Concepts."Dofetilide"] -define "Dofetilide (Care) Observation": - "Medication/drug (Care) Observation" O +define "Dofetilide Observation": + "Medication/drug Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Dofetilide" -/* End of Dofetilide (Care) */ +/* End of Dofetilide */ /* @dataElement: HIV.D.DE918 - Carbamazepine @@ -11140,16 +11140,16 @@ define "Dofetilide (Care) Observation": @description: Carbamazepine currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Carbamazepine (Care)": - exists "Carbamazepine (Care) Condition" - or exists "Carbamazepine (Care) Observation" -define "Carbamazepine (Care) Condition": +define "Carbamazepine": + exists "Carbamazepine Condition" + or exists "Carbamazepine Observation" +define "Carbamazepine Condition": [Condition: Concepts."Carbamazepine"] -define "Carbamazepine (Care) Observation": - "Medication/drug (Care) Observation" O +define "Carbamazepine Observation": + "Medication/drug Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Carbamazepine" -/* End of Carbamazepine (Care) */ +/* End of Carbamazepine */ /* @dataElement: HIV.D.DE919 - Phenobarbital @@ -11157,16 +11157,16 @@ define "Carbamazepine (Care) Observation": @description: Phenobarbital currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Phenobarbital (Care)": - exists "Phenobarbital (Care) Condition" - or exists "Phenobarbital (Care) Observation" -define "Phenobarbital (Care) Condition": +define "Phenobarbital": + exists "Phenobarbital Condition" + or exists "Phenobarbital Observation" +define "Phenobarbital Condition": [Condition: Concepts."Phenobarbital"] -define "Phenobarbital (Care) Observation": - "Medication/drug (Care) Observation" O +define "Phenobarbital Observation": + "Medication/drug Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Phenobarbital" -/* End of Phenobarbital (Care) */ +/* End of Phenobarbital */ /* @dataElement: HIV.D.DE920 - Phenytoin @@ -11174,16 +11174,16 @@ define "Phenobarbital (Care) Observation": @description: Phenytoin currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Phenytoin (Care)": - exists "Phenytoin (Care) Condition" - or exists "Phenytoin (Care) Observation" -define "Phenytoin (Care) Condition": +define "Phenytoin": + exists "Phenytoin Condition" + or exists "Phenytoin Observation" +define "Phenytoin Condition": [Condition: Concepts."Phenytoin"] -define "Phenytoin (Care) Observation": - "Medication/drug (Care) Observation" O +define "Phenytoin Observation": + "Medication/drug Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Phenytoin" -/* End of Phenytoin (Care) */ +/* End of Phenytoin */ /* @dataElement: HIV.D.DE921 - Polyvalent cation products containing Mg, Al, Fe, Ca and Zn @@ -11191,16 +11191,16 @@ define "Phenytoin (Care) Observation": @description: Polyvalent cation products containing Mg, Al, Fe, Ca and Zn currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Polyvalent cation products containing Mg, Al, Fe, Ca and Zn (Care)": - exists "Polyvalent cation products containing Mg, Al, Fe, Ca and Zn (Care) Condition" - or exists "Polyvalent cation products containing Mg, Al, Fe, Ca and Zn (Care) Observation" -define "Polyvalent cation products containing Mg, Al, Fe, Ca and Zn (Care) Condition": +define "Polyvalent cation products containing Mg, Al, Fe, Ca and Zn": + exists "Polyvalent cation products containing Mg, Al, Fe, Ca and Zn Condition" + or exists "Polyvalent cation products containing Mg, Al, Fe, Ca and Zn Observation" +define "Polyvalent cation products containing Mg, Al, Fe, Ca and Zn Condition": [Condition: Concepts."Polyvalent cation products containing Mg, Al, Fe, Ca and Zn"] -define "Polyvalent cation products containing Mg, Al, Fe, Ca and Zn (Care) Observation": - "Medication/drug (Care) Observation" O +define "Polyvalent cation products containing Mg, Al, Fe, Ca and Zn Observation": + "Medication/drug Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Polyvalent cation products containing Mg, Al, Fe, Ca and Zn" -/* End of Polyvalent cation products containing Mg, Al, Fe, Ca and Zn (Care) */ +/* End of Polyvalent cation products containing Mg, Al, Fe, Ca and Zn */ /* @dataElement: HIV.D.DE922 - Amodiaquine @@ -11208,16 +11208,16 @@ define "Polyvalent cation products containing Mg, Al, Fe, Ca and Zn (Care) Obser @description: Amodiaquine currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Amodiaquine (Care)": - exists "Amodiaquine (Care) Condition" - or exists "Amodiaquine (Care) Observation" -define "Amodiaquine (Care) Condition": +define "Amodiaquine": + exists "Amodiaquine Condition" + or exists "Amodiaquine Observation" +define "Amodiaquine Condition": [Condition: Concepts."Amodiaquine"] -define "Amodiaquine (Care) Observation": - "Medication/drug (Care) Observation" O +define "Amodiaquine Observation": + "Medication/drug Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Amodiaquine" -/* End of Amodiaquine (Care) */ +/* End of Amodiaquine */ /* @dataElement: HIV.D.DE923 - Cisapride @@ -11225,16 +11225,16 @@ define "Amodiaquine (Care) Observation": @description: Cisapride currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Cisapride (Care)": - exists "Cisapride (Care) Condition" - or exists "Cisapride (Care) Observation" -define "Cisapride (Care) Condition": +define "Cisapride": + exists "Cisapride Condition" + or exists "Cisapride Observation" +define "Cisapride Condition": [Condition: Concepts."Cisapride"] -define "Cisapride (Care) Observation": - "Medication/drug (Care) Observation" O +define "Cisapride Observation": + "Medication/drug Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Cisapride" -/* End of Cisapride (Care) */ +/* End of Cisapride */ /* @dataElement: HIV.D.DE924 - Ergotamine @@ -11242,16 +11242,16 @@ define "Cisapride (Care) Observation": @description: Ergotamine currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Ergotamine (Care)": - exists "Ergotamine (Care) Condition" - or exists "Ergotamine (Care) Observation" -define "Ergotamine (Care) Condition": +define "Ergotamine": + exists "Ergotamine Condition" + or exists "Ergotamine Observation" +define "Ergotamine Condition": [Condition: Concepts."Ergotamine"] -define "Ergotamine (Care) Observation": - "Medication/drug (Care) Observation" O +define "Ergotamine Observation": + "Medication/drug Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Ergotamine" -/* End of Ergotamine (Care) */ +/* End of Ergotamine */ /* @dataElement: HIV.D.DE925 - Dihydroergotamine @@ -11259,16 +11259,16 @@ define "Ergotamine (Care) Observation": @description: Dihydroergotamine currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Dihydroergotamine (Care)": - exists "Dihydroergotamine (Care) Condition" - or exists "Dihydroergotamine (Care) Observation" -define "Dihydroergotamine (Care) Condition": +define "Dihydroergotamine": + exists "Dihydroergotamine Condition" + or exists "Dihydroergotamine Observation" +define "Dihydroergotamine Condition": [Condition: Concepts."Dihydroergotamine"] -define "Dihydroergotamine (Care) Observation": - "Medication/drug (Care) Observation" O +define "Dihydroergotamine Observation": + "Medication/drug Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Dihydroergotamine" -/* End of Dihydroergotamine (Care) */ +/* End of Dihydroergotamine */ /* @dataElement: HIV.D.DE926 - Midazolam @@ -11276,16 +11276,16 @@ define "Dihydroergotamine (Care) Observation": @description: Midazolam currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Midazolam (Care)": - exists "Midazolam (Care) Condition" - or exists "Midazolam (Care) Observation" -define "Midazolam (Care) Condition": +define "Midazolam": + exists "Midazolam Condition" + or exists "Midazolam Observation" +define "Midazolam Condition": [Condition: Concepts."Midazolam"] -define "Midazolam (Care) Observation": - "Medication/drug (Care) Observation" O +define "Midazolam Observation": + "Medication/drug Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Midazolam" -/* End of Midazolam (Care) */ +/* End of Midazolam */ /* @dataElement: HIV.D.DE927 - Triazolam @@ -11293,16 +11293,16 @@ define "Midazolam (Care) Observation": @description: Triazolam currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Triazolam (Care)": - exists "Triazolam (Care) Condition" - or exists "Triazolam (Care) Observation" -define "Triazolam (Care) Condition": +define "Triazolam": + exists "Triazolam Condition" + or exists "Triazolam Observation" +define "Triazolam Condition": [Condition: Concepts."Triazolam"] -define "Triazolam (Care) Observation": - "Medication/drug (Care) Observation" O +define "Triazolam Observation": + "Medication/drug Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Triazolam" -/* End of Triazolam (Care) */ +/* End of Triazolam */ /* @dataElement: HIV.D.DE928 - Estrogen-based hormonal contraception @@ -11310,16 +11310,16 @@ define "Triazolam (Care) Observation": @description: Estrogen-based hormonal contraception currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Estrogen-based hormonal contraception (Care)": - exists "Estrogen-based hormonal contraception (Care) Condition" - or exists "Estrogen-based hormonal contraception (Care) Observation" -define "Estrogen-based hormonal contraception (Care) Condition": +define "Estrogen-based hormonal contraception": + exists "Estrogen-based hormonal contraception Condition" + or exists "Estrogen-based hormonal contraception Observation" +define "Estrogen-based hormonal contraception Condition": [Condition: Concepts."Estrogen-based hormonal contraception"] -define "Estrogen-based hormonal contraception (Care) Observation": - "Medication/drug (Care) Observation" O +define "Estrogen-based hormonal contraception Observation": + "Medication/drug Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Estrogen-based hormonal contraception" -/* End of Estrogen-based hormonal contraception (Care) */ +/* End of Estrogen-based hormonal contraception */ /* @dataElement: HIV.D.DE929 - Ribavirin @@ -11327,16 +11327,16 @@ define "Estrogen-based hormonal contraception (Care) Observation": @description: Ribavirin currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Ribavirin (Care)": - exists "Ribavirin (Care) Condition" - or exists "Ribavirin (Care) Observation" -define "Ribavirin (Care) Condition": +define "Ribavirin": + exists "Ribavirin Condition" + or exists "Ribavirin Observation" +define "Ribavirin Condition": [Condition: Concepts."Ribavirin"] -define "Ribavirin (Care) Observation": - "Medication/drug (Care) Observation" O +define "Ribavirin Observation": + "Medication/drug Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Ribavirin" -/* End of Ribavirin (Care) */ +/* End of Ribavirin */ /* @dataElement: HIV.D.DE930 - Peginterferon alfa-2a @@ -11344,16 +11344,16 @@ define "Ribavirin (Care) Observation": @description: Peginterferon alfa-2a currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Peginterferon alfa-2a (Care)": - exists "Peginterferon alfa-2a (Care) Condition" - or exists "Peginterferon alfa-2a (Care) Observation" -define "Peginterferon alfa-2a (Care) Condition": +define "Peginterferon alfa-2a": + exists "Peginterferon alfa-2a Condition" + or exists "Peginterferon alfa-2a Observation" +define "Peginterferon alfa-2a Condition": [Condition: Concepts."Peginterferon alfa-2a"] -define "Peginterferon alfa-2a (Care) Observation": - "Medication/drug (Care) Observation" O +define "Peginterferon alfa-2a Observation": + "Medication/drug Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Peginterferon alfa-2a" -/* End of Peginterferon alfa-2a (Care) */ +/* End of Peginterferon alfa-2a */ /* @dataElement: HIV.D.DE931 - Other @@ -11361,16 +11361,16 @@ define "Peginterferon alfa-2a (Care) Observation": @description: Other medication currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Other (Care|DDE931)": - exists "Other (Care|DDE931) Condition" - or exists "Other (Care|DDE931) Observation" -define "Other (Care|DDE931) Condition": +define "Other D.DE931": + exists "Other D.DE931 Condition" + or exists "Other D.DE931 Observation" +define "Other D.DE931 Condition": [Condition: Concepts."Other - HIV.D.DE931"] -define "Other (Care|DDE931) Observation": - "Medication/drug (Care) Observation" O +define "Other D.DE931 Observation": + "Medication/drug Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Other - HIV.D.DE931" -/* End of Other (Care|DDE931) */ +/* End of Other D.DE931 */ /* @dataElement: HIV.D.DE933 - Medication change recommended @@ -11378,13 +11378,13 @@ define "Other (Care|DDE931) Observation": @description: A medication change is recommended for the client based upon current or considered medications */ // TODO: Replace placeholder with relevant CQL logic -define "Medication change recommended (Care)": - exists "Medication change recommended (Care) Observation" -define "Medication change recommended (Care) Observation": +define "Medication change recommended": + exists "Medication change recommended Observation" +define "Medication change recommended Observation": [Observation: Concepts."Medication change recommended"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Medication change recommended (Care) */ +/* End of Medication change recommended */ /* @dataElement: HIV.D.DE934 - WHO HIV clinical stage condition or symptom @@ -11392,12 +11392,12 @@ define "Medication change recommended (Care) Observation": @description: New or recurrent clinical events used to categorize HIV disease severity based at baseline and follow up */ // TODO: Replace placeholder with relevant CQL logic -define "WHO HIV clinical stage condition or symptom (HIV)": - exists "WHO HIV clinical stage condition or symptom (HIV) Observation" -define "WHO HIV clinical stage condition or symptom (HIV) Observation": +define "WHO HIV clinical stage condition or symptom D.DE934": + exists "WHO HIV clinical stage condition or symptom D.DE934 Observation" +define "WHO HIV clinical stage condition or symptom D.DE934 Observation": [Observation: Concepts."WHO HIV clinical stage condition or symptom - HIV.D.DE934"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of WHO HIV clinical stage condition or symptom (HIV) */ +/* End of WHO HIV clinical stage condition or symptom D.DE934 */ /* @dataElement: HIV.D.DE935 - Pulmonary TB @@ -11405,16 +11405,16 @@ define "WHO HIV clinical stage condition or symptom (HIV) Observation": @description: Client's symptoms include pulmonary TB */ // TODO: Replace placeholder with relevant CQL logic -define "Pulmonary TB (HIV)": - exists "Pulmonary TB (HIV) Condition" - or exists "Pulmonary TB (HIV) Observation" -define "Pulmonary TB (HIV) Condition": +define "Pulmonary TB D.DE935": + exists "Pulmonary TB D.DE935 Condition" + or exists "Pulmonary TB D.DE935 Observation" +define "Pulmonary TB D.DE935 Condition": [Condition: Concepts."Pulmonary TB - HIV.D.DE935"] -define "Pulmonary TB (HIV) Observation": - "WHO HIV clinical stage condition or symptom (HIV) Observation" O +define "Pulmonary TB D.DE935 Observation": + "WHO HIV clinical stage condition or symptom D.DE934 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Pulmonary TB - HIV.D.DE935" -/* End of Pulmonary TB (HIV) */ +/* End of Pulmonary TB D.DE935 */ /* @dataElement: HIV.D.DE936 - Lymph node TB @@ -11422,16 +11422,16 @@ define "Pulmonary TB (HIV) Observation": @description: Client's symptoms include lymph node TB */ // TODO: Replace placeholder with relevant CQL logic -define "Lymph node TB (HIV)": - exists "Lymph node TB (HIV) Condition" - or exists "Lymph node TB (HIV) Observation" -define "Lymph node TB (HIV) Condition": +define "Lymph node TB D.DE936": + exists "Lymph node TB D.DE936 Condition" + or exists "Lymph node TB D.DE936 Observation" +define "Lymph node TB D.DE936 Condition": [Condition: Concepts."Lymph node TB - HIV.D.DE936"] -define "Lymph node TB (HIV) Observation": - "WHO HIV clinical stage condition or symptom (HIV) Observation" O +define "Lymph node TB D.DE936 Observation": + "WHO HIV clinical stage condition or symptom D.DE934 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Lymph node TB - HIV.D.DE936" -/* End of Lymph node TB (HIV) */ +/* End of Lymph node TB D.DE936 */ /* @dataElement: HIV.D.DE937 - Extrapulmonary TB @@ -11439,16 +11439,16 @@ define "Lymph node TB (HIV) Observation": @description: Client's symptoms include extrapulmonary tuberculosis (TB) */ // TODO: Replace placeholder with relevant CQL logic -define "Extrapulmonary TB (HIV)": - exists "Extrapulmonary TB (HIV) Condition" - or exists "Extrapulmonary TB (HIV) Observation" -define "Extrapulmonary TB (HIV) Condition": +define "Extrapulmonary TB D.DE937": + exists "Extrapulmonary TB D.DE937 Condition" + or exists "Extrapulmonary TB D.DE937 Observation" +define "Extrapulmonary TB D.DE937 Condition": [Condition: Concepts."Extrapulmonary TB - HIV.D.DE937"] -define "Extrapulmonary TB (HIV) Observation": - "WHO HIV clinical stage condition or symptom (HIV) Observation" O +define "Extrapulmonary TB D.DE937 Observation": + "WHO HIV clinical stage condition or symptom D.DE934 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Extrapulmonary TB - HIV.D.DE937" -/* End of Extrapulmonary TB (HIV) */ +/* End of Extrapulmonary TB D.DE937 */ /* @dataElement: HIV.D.DE939 - TB diagnosis result @@ -11456,12 +11456,12 @@ define "Extrapulmonary TB (HIV) Observation": @description: Final result of the TB investigation (bacteriological and/or clinical) */ // TODO: Replace placeholder with relevant CQL logic -define "TB diagnosis result (HIV)": - exists "TB diagnosis result (HIV) Observation" -define "TB diagnosis result (HIV) Observation": +define "TB diagnosis result": + exists "TB diagnosis result Observation" +define "TB diagnosis result Observation": [Observation: Concepts."TB diagnosis result"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of TB diagnosis result (HIV) */ +/* End of TB diagnosis result */ /* @dataElement: HIV.D.DE940 - Diagnosed TB @@ -11469,16 +11469,16 @@ define "TB diagnosis result (HIV) Observation": @description: Client is diagnosed with TB disease */ // TODO: Replace placeholder with relevant CQL logic -define "Diagnosed TB (HIV)": - exists "Diagnosed TB (HIV) Condition" - or exists "Diagnosed TB (HIV) Observation" -define "Diagnosed TB (HIV) Condition": +define "Diagnosed TB": + exists "Diagnosed TB Condition" + or exists "Diagnosed TB Observation" +define "Diagnosed TB Condition": [Condition: Concepts."Diagnosed TB"] -define "Diagnosed TB (HIV) Observation": - "TB diagnosis result (HIV) Observation" O +define "Diagnosed TB Observation": + "TB diagnosis result Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Diagnosed TB" -/* End of Diagnosed TB (HIV) */ +/* End of Diagnosed TB */ /* @dataElement: HIV.D.DE941 - TB excluded @@ -11486,16 +11486,16 @@ define "Diagnosed TB (HIV) Observation": @description: Client is not diagnosed with TB */ // TODO: Replace placeholder with relevant CQL logic -define "TB excluded (HIV)": - exists "TB excluded (HIV) Condition" - or exists "TB excluded (HIV) Observation" -define "TB excluded (HIV) Condition": +define "TB excluded": + exists "TB excluded Condition" + or exists "TB excluded Observation" +define "TB excluded Condition": [Condition: Concepts."TB excluded"] -define "TB excluded (HIV) Observation": - "TB diagnosis result (HIV) Observation" O +define "TB excluded Observation": + "TB diagnosis result Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."TB excluded" -/* End of TB excluded (HIV) */ +/* End of TB excluded */ /* @dataElement: HIV.D.DE945 - Presumptive TB @@ -11503,13 +11503,13 @@ define "TB excluded (HIV) Observation": @description: Client has signs or symptoms of tuberculosis (TB) without laboratory confirmation */ // TODO: Replace placeholder with relevant CQL logic -define "Presumptive TB (HIV)": - exists "Presumptive TB (HIV) Observation" -define "Presumptive TB (HIV) Observation": +define "Presumptive TB D.DE945": + exists "Presumptive TB D.DE945 Observation" +define "Presumptive TB D.DE945 Observation": [Observation: Concepts."Presumptive TB - HIV.D.DE945"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Presumptive TB (HIV) */ +/* End of Presumptive TB D.DE945 */ /* @dataElement: HIV.D.DE952 - Date of TB diagnosis @@ -11517,13 +11517,13 @@ define "Presumptive TB (HIV) Observation": @description: The date when the diagnosis was established */ // TODO: Replace placeholder with relevant CQL logic -define "Date of TB diagnosis (HIV)": +define "Date of TB diagnosis": [Observation: Concepts."Date of TB diagnosis"] O where O.status in { 'final', 'amended', 'corrected' } -define "Date of TB diagnosis (HIV) Value": - "Date of TB diagnosis (HIV)" O +define "Date of TB diagnosis Value": + "Date of TB diagnosis" O return O.value -/* End of Date of TB diagnosis (HIV) */ +/* End of Date of TB diagnosis */ /* @dataElement: HIV.D.DE954 - TB preventive treatment TPT start date @@ -11531,13 +11531,13 @@ define "Date of TB diagnosis (HIV) Value": @description: The date on which the client began taking TPT */ // TODO: Replace placeholder with relevant CQL logic -define "TB preventive treatment TPT start date (HIV)": +define "TB preventive treatment TPT start date": [Observation: Concepts."TB preventive treatment TPT start date"] O where O.status in { 'final', 'amended', 'corrected' } -define "TB preventive treatment TPT start date (HIV) Value": - "TB preventive treatment TPT start date (HIV)" O +define "TB preventive treatment TPT start date Value": + "TB preventive treatment TPT start date" O return O.value -/* End of TB preventive treatment TPT start date (HIV) */ +/* End of TB preventive treatment TPT start date */ /* @dataElement: HIV.D.DE956 - TB screening algorithm @@ -11545,12 +11545,12 @@ define "TB preventive treatment TPT start date (HIV) Value": @description: Screening algorithm selected for screening activities */ // TODO: Replace placeholder with relevant CQL logic -define "TB screening algorithm (HIV)": - exists "TB screening algorithm (HIV) Observation" -define "TB screening algorithm (HIV) Observation": +define "TB screening algorithm": + exists "TB screening algorithm Observation" +define "TB screening algorithm Observation": [Observation: Concepts."TB screening algorithm"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of TB screening algorithm (HIV) */ +/* End of TB screening algorithm */ /* @dataElement: HIV.D.DE957 - Screening with cough @@ -11558,16 +11558,16 @@ define "TB screening algorithm (HIV) Observation": @description: Client screened for TB based on cough symptom */ // TODO: Replace placeholder with relevant CQL logic -define "Screening with cough (HIV)": - exists "Screening with cough (HIV) Condition" - or exists "Screening with cough (HIV) Observation" -define "Screening with cough (HIV) Condition": +define "Screening with cough": + exists "Screening with cough Condition" + or exists "Screening with cough Observation" +define "Screening with cough Condition": [Condition: Concepts."Screening with cough"] -define "Screening with cough (HIV) Observation": - "TB screening algorithm (HIV) Observation" O +define "Screening with cough Observation": + "TB screening algorithm Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Screening with cough" -/* End of Screening with cough (HIV) */ +/* End of Screening with cough */ /* @dataElement: HIV.D.DE958 - Screening with any TB symptom @@ -11575,16 +11575,16 @@ define "Screening with cough (HIV) Observation": @description: Client screened for TB based on any TB symptom */ // TODO: Replace placeholder with relevant CQL logic -define "Screening with any TB symptom (HIV)": - exists "Screening with any TB symptom (HIV) Condition" - or exists "Screening with any TB symptom (HIV) Observation" -define "Screening with any TB symptom (HIV) Condition": +define "Screening with any TB symptom": + exists "Screening with any TB symptom Condition" + or exists "Screening with any TB symptom Observation" +define "Screening with any TB symptom Condition": [Condition: Concepts."Screening with any TB symptom"] -define "Screening with any TB symptom (HIV) Observation": - "TB screening algorithm (HIV) Observation" O +define "Screening with any TB symptom Observation": + "TB screening algorithm Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Screening with any TB symptom" -/* End of Screening with any TB symptom (HIV) */ +/* End of Screening with any TB symptom */ /* @dataElement: HIV.D.DE959 - W4SS single screening algorithm @@ -11592,16 +11592,16 @@ define "Screening with any TB symptom (HIV) Observation": @description: Client screened for TB based on the WHO-recommended four-symptom screen */ // TODO: Replace placeholder with relevant CQL logic -define "W4SS single screening algorithm (HIV)": - exists "W4SS single screening algorithm (HIV) Condition" - or exists "W4SS single screening algorithm (HIV) Observation" -define "W4SS single screening algorithm (HIV) Condition": +define "W4SS single screening algorithm": + exists "W4SS single screening algorithm Condition" + or exists "W4SS single screening algorithm Observation" +define "W4SS single screening algorithm Condition": [Condition: Concepts."W4SS single screening algorithm"] -define "W4SS single screening algorithm (HIV) Observation": - "TB screening algorithm (HIV) Observation" O +define "W4SS single screening algorithm Observation": + "TB screening algorithm Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."W4SS single screening algorithm" -/* End of W4SS single screening algorithm (HIV) */ +/* End of W4SS single screening algorithm */ /* @dataElement: HIV.D.DE960 - CRP single screening algorithm @@ -11609,16 +11609,16 @@ define "W4SS single screening algorithm (HIV) Observation": @description: Client screened for TB based on C-reactive protein (CRP) testing */ // TODO: Replace placeholder with relevant CQL logic -define "CRP single screening algorithm (HIV)": - exists "CRP single screening algorithm (HIV) Condition" - or exists "CRP single screening algorithm (HIV) Observation" -define "CRP single screening algorithm (HIV) Condition": +define "CRP single screening algorithm": + exists "CRP single screening algorithm Condition" + or exists "CRP single screening algorithm Observation" +define "CRP single screening algorithm Condition": [Condition: Concepts."CRP single screening algorithm"] -define "CRP single screening algorithm (HIV) Observation": - "TB screening algorithm (HIV) Observation" O +define "CRP single screening algorithm Observation": + "TB screening algorithm Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."CRP single screening algorithm" -/* End of CRP single screening algorithm (HIV) */ +/* End of CRP single screening algorithm */ /* @dataElement: HIV.D.DE961 - CXR single screening algorithm @@ -11626,16 +11626,16 @@ define "CRP single screening algorithm (HIV) Observation": @description: Client screened for TB with a chest radiography (CXR) */ // TODO: Replace placeholder with relevant CQL logic -define "CXR single screening algorithm (HIV)": - exists "CXR single screening algorithm (HIV) Condition" - or exists "CXR single screening algorithm (HIV) Observation" -define "CXR single screening algorithm (HIV) Condition": +define "CXR single screening algorithm": + exists "CXR single screening algorithm Condition" + or exists "CXR single screening algorithm Observation" +define "CXR single screening algorithm Condition": [Condition: Concepts."CXR single screening algorithm"] -define "CXR single screening algorithm (HIV) Observation": - "TB screening algorithm (HIV) Observation" O +define "CXR single screening algorithm Observation": + "TB screening algorithm Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."CXR single screening algorithm" -/* End of CXR single screening algorithm (HIV) */ +/* End of CXR single screening algorithm */ /* @dataElement: HIV.D.DE962 - Parallel screening algorithm with W4SS and CRP @@ -11643,16 +11643,16 @@ define "CXR single screening algorithm (HIV) Observation": @description: Client screened for TB using parallel screening with WHO-recommended four-symptom screen and C-reactive protein (CRP) testing */ // TODO: Replace placeholder with relevant CQL logic -define "Parallel screening algorithm with W4SS and CRP (HIV)": - exists "Parallel screening algorithm with W4SS and CRP (HIV) Condition" - or exists "Parallel screening algorithm with W4SS and CRP (HIV) Observation" -define "Parallel screening algorithm with W4SS and CRP (HIV) Condition": +define "Parallel screening algorithm with W4SS and CRP": + exists "Parallel screening algorithm with W4SS and CRP Condition" + or exists "Parallel screening algorithm with W4SS and CRP Observation" +define "Parallel screening algorithm with W4SS and CRP Condition": [Condition: Concepts."Parallel screening algorithm with W4SS and CRP"] -define "Parallel screening algorithm with W4SS and CRP (HIV) Observation": - "TB screening algorithm (HIV) Observation" O +define "Parallel screening algorithm with W4SS and CRP Observation": + "TB screening algorithm Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Parallel screening algorithm with W4SS and CRP" -/* End of Parallel screening algorithm with W4SS and CRP (HIV) */ +/* End of Parallel screening algorithm with W4SS and CRP */ /* @dataElement: HIV.D.DE963 - Sequential positive screening algorithm with W4SS and CRP @@ -11660,16 +11660,16 @@ define "Parallel screening algorithm with W4SS and CRP (HIV) Observation": @description: Client screened for TB using sequential positive screening with WHO-recommended four-symptom screen and C-reactive protein (CRP) testing. */ // TODO: Replace placeholder with relevant CQL logic -define "Sequential positive screening algorithm with W4SS and CRP (HIV)": - exists "Sequential positive screening algorithm with W4SS and CRP (HIV) Condition" - or exists "Sequential positive screening algorithm with W4SS and CRP (HIV) Observation" -define "Sequential positive screening algorithm with W4SS and CRP (HIV) Condition": +define "Sequential positive screening algorithm with W4SS and CRP": + exists "Sequential positive screening algorithm with W4SS and CRP Condition" + or exists "Sequential positive screening algorithm with W4SS and CRP Observation" +define "Sequential positive screening algorithm with W4SS and CRP Condition": [Condition: Concepts."Sequential positive screening algorithm with W4SS and CRP"] -define "Sequential positive screening algorithm with W4SS and CRP (HIV) Observation": - "TB screening algorithm (HIV) Observation" O +define "Sequential positive screening algorithm with W4SS and CRP Observation": + "TB screening algorithm Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Sequential positive screening algorithm with W4SS and CRP" -/* End of Sequential positive screening algorithm with W4SS and CRP (HIV) */ +/* End of Sequential positive screening algorithm with W4SS and CRP */ /* @dataElement: HIV.D.DE964 - Sequential negative screening algorithm with W4SS and CRP @@ -11677,16 +11677,16 @@ define "Sequential positive screening algorithm with W4SS and CRP (HIV) Observat @description: Client screened for TB using sequential negative screening with WHO-recommended four-symptom screen and C-reactive protein (CRP) testing */ // TODO: Replace placeholder with relevant CQL logic -define "Sequential negative screening algorithm with W4SS and CRP (HIV)": - exists "Sequential negative screening algorithm with W4SS and CRP (HIV) Condition" - or exists "Sequential negative screening algorithm with W4SS and CRP (HIV) Observation" -define "Sequential negative screening algorithm with W4SS and CRP (HIV) Condition": +define "Sequential negative screening algorithm with W4SS and CRP": + exists "Sequential negative screening algorithm with W4SS and CRP Condition" + or exists "Sequential negative screening algorithm with W4SS and CRP Observation" +define "Sequential negative screening algorithm with W4SS and CRP Condition": [Condition: Concepts."Sequential negative screening algorithm with W4SS and CRP"] -define "Sequential negative screening algorithm with W4SS and CRP (HIV) Observation": - "TB screening algorithm (HIV) Observation" O +define "Sequential negative screening algorithm with W4SS and CRP Observation": + "TB screening algorithm Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Sequential negative screening algorithm with W4SS and CRP" -/* End of Sequential negative screening algorithm with W4SS and CRP (HIV) */ +/* End of Sequential negative screening algorithm with W4SS and CRP */ /* @dataElement: HIV.D.DE965 - Parallel screening algorithm with W4SS and CXR @@ -11694,16 +11694,16 @@ define "Sequential negative screening algorithm with W4SS and CRP (HIV) Observat @description: Client screened for TB using the parallel screening algorithm with W4SS and CXR */ // TODO: Replace placeholder with relevant CQL logic -define "Parallel screening algorithm with W4SS and CXR (HIV)": - exists "Parallel screening algorithm with W4SS and CXR (HIV) Condition" - or exists "Parallel screening algorithm with W4SS and CXR (HIV) Observation" -define "Parallel screening algorithm with W4SS and CXR (HIV) Condition": +define "Parallel screening algorithm with W4SS and CXR": + exists "Parallel screening algorithm with W4SS and CXR Condition" + or exists "Parallel screening algorithm with W4SS and CXR Observation" +define "Parallel screening algorithm with W4SS and CXR Condition": [Condition: Concepts."Parallel screening algorithm with W4SS and CXR"] -define "Parallel screening algorithm with W4SS and CXR (HIV) Observation": - "TB screening algorithm (HIV) Observation" O +define "Parallel screening algorithm with W4SS and CXR Observation": + "TB screening algorithm Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Parallel screening algorithm with W4SS and CXR" -/* End of Parallel screening algorithm with W4SS and CXR (HIV) */ +/* End of Parallel screening algorithm with W4SS and CXR */ /* @dataElement: HIV.D.DE966 - Sequential positive screening algorithm with W4SS and CXR @@ -11711,16 +11711,16 @@ define "Parallel screening algorithm with W4SS and CXR (HIV) Observation": @description: Client screened for TB using sequential positive screening with WHO-recommended four-symptom screen and chest radiography */ // TODO: Replace placeholder with relevant CQL logic -define "Sequential positive screening algorithm with W4SS and CXR (HIV)": - exists "Sequential positive screening algorithm with W4SS and CXR (HIV) Condition" - or exists "Sequential positive screening algorithm with W4SS and CXR (HIV) Observation" -define "Sequential positive screening algorithm with W4SS and CXR (HIV) Condition": +define "Sequential positive screening algorithm with W4SS and CXR": + exists "Sequential positive screening algorithm with W4SS and CXR Condition" + or exists "Sequential positive screening algorithm with W4SS and CXR Observation" +define "Sequential positive screening algorithm with W4SS and CXR Condition": [Condition: Concepts."Sequential positive screening algorithm with W4SS and CXR"] -define "Sequential positive screening algorithm with W4SS and CXR (HIV) Observation": - "TB screening algorithm (HIV) Observation" O +define "Sequential positive screening algorithm with W4SS and CXR Observation": + "TB screening algorithm Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Sequential positive screening algorithm with W4SS and CXR" -/* End of Sequential positive screening algorithm with W4SS and CXR (HIV) */ +/* End of Sequential positive screening algorithm with W4SS and CXR */ /* @dataElement: HIV.D.DE967 - Sequential negative screening algorithm with W4SS and CXR @@ -11728,16 +11728,16 @@ define "Sequential positive screening algorithm with W4SS and CXR (HIV) Observat @description: Client screened for TB using sequential negative screening with WHO-recommended four-symptom screen and chest radiography */ // TODO: Replace placeholder with relevant CQL logic -define "Sequential negative screening algorithm with W4SS and CXR (HIV)": - exists "Sequential negative screening algorithm with W4SS and CXR (HIV) Condition" - or exists "Sequential negative screening algorithm with W4SS and CXR (HIV) Observation" -define "Sequential negative screening algorithm with W4SS and CXR (HIV) Condition": +define "Sequential negative screening algorithm with W4SS and CXR": + exists "Sequential negative screening algorithm with W4SS and CXR Condition" + or exists "Sequential negative screening algorithm with W4SS and CXR Observation" +define "Sequential negative screening algorithm with W4SS and CXR Condition": [Condition: Concepts."Sequential negative screening algorithm with W4SS and CXR"] -define "Sequential negative screening algorithm with W4SS and CXR (HIV) Observation": - "TB screening algorithm (HIV) Observation" O +define "Sequential negative screening algorithm with W4SS and CXR Observation": + "TB screening algorithm Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Sequential negative screening algorithm with W4SS and CXR" -/* End of Sequential negative screening algorithm with W4SS and CXR (HIV) */ +/* End of Sequential negative screening algorithm with W4SS and CXR */ /* @dataElement: HIV.D.DE968 - Screening with mWRD @@ -11745,16 +11745,16 @@ define "Sequential negative screening algorithm with W4SS and CXR (HIV) Observat @description: Client screened for TB with a molecular WHO-recommended rapid diagnostic test (mWRD), such as an Xpert MTB/RIF test to detect Mycobacterium tuberculosis (MTB) */ // TODO: Replace placeholder with relevant CQL logic -define "Screening with mWRD (HIV)": - exists "Screening with mWRD (HIV) Condition" - or exists "Screening with mWRD (HIV) Observation" -define "Screening with mWRD (HIV) Condition": +define "Screening with mWRD": + exists "Screening with mWRD Condition" + or exists "Screening with mWRD Observation" +define "Screening with mWRD Condition": [Condition: Concepts."Screening with mWRD"] -define "Screening with mWRD (HIV) Observation": - "TB screening algorithm (HIV) Observation" O +define "Screening with mWRD Observation": + "TB screening algorithm Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Screening with mWRD" -/* End of Screening with mWRD (HIV) */ +/* End of Screening with mWRD */ /* @dataElement: HIV.D.DE969 - Clinical assessment @@ -11762,16 +11762,16 @@ define "Screening with mWRD (HIV) Observation": @description: Client screened for with a clinical evaluation for tuberculosis (TB) based on national guidelines. Clinical assessment may be used as an eligibility evaluation for testing with LF-LAM or for empiric TB treatment. */ // TODO: Replace placeholder with relevant CQL logic -define "Clinical assessment (HIV)": - exists "Clinical assessment (HIV) Condition" - or exists "Clinical assessment (HIV) Observation" -define "Clinical assessment (HIV) Condition": +define "Clinical assessment": + exists "Clinical assessment Condition" + or exists "Clinical assessment Observation" +define "Clinical assessment Condition": [Condition: Concepts."Clinical assessment"] -define "Clinical assessment (HIV) Observation": - "TB screening algorithm (HIV) Observation" O +define "Clinical assessment Observation": + "TB screening algorithm Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Clinical assessment" -/* End of Clinical assessment (HIV) */ +/* End of Clinical assessment */ /* @dataElement: HIV.D.DE970 - Other TB screening algorithm @@ -11779,16 +11779,16 @@ define "Clinical assessment (HIV) Observation": @description: Client screened for tuberculosis (TB) with a different screening method not listed */ // TODO: Replace placeholder with relevant CQL logic -define "Other TB screening algorithm (HIV)": - exists "Other TB screening algorithm (HIV) Condition" - or exists "Other TB screening algorithm (HIV) Observation" -define "Other TB screening algorithm (HIV) Condition": +define "Other TB screening algorithm": + exists "Other TB screening algorithm Condition" + or exists "Other TB screening algorithm Observation" +define "Other TB screening algorithm Condition": [Condition: Concepts."Other TB screening algorithm"] -define "Other TB screening algorithm (HIV) Observation": - "TB screening algorithm (HIV) Observation" O +define "Other TB screening algorithm Observation": + "TB screening algorithm Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Other TB screening algorithm" -/* End of Other TB screening algorithm (HIV) */ +/* End of Other TB screening algorithm */ /* @dataElement: HIV.D.DE973 - Symptoms of TB @@ -11796,12 +11796,12 @@ define "Other TB screening algorithm (HIV) Observation": @description: Symptoms that may indicate TB disease in clients living with HIV, based on a clinical algorithm */ // TODO: Replace placeholder with relevant CQL logic -define "Symptoms of TB (HIV)": - exists "Symptoms of TB (HIV) Observation" -define "Symptoms of TB (HIV) Observation": +define "Symptoms of TB": + exists "Symptoms of TB Observation" +define "Symptoms of TB Observation": [Observation: Concepts."Symptoms of TB"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Symptoms of TB (HIV) */ +/* End of Symptoms of TB */ /* @dataElement: HIV.D.DE974 - Current cough @@ -11809,16 +11809,16 @@ define "Symptoms of TB (HIV) Observation": @description: Client has a cough regardless of duration */ // TODO: Replace placeholder with relevant CQL logic -define "Current cough (HIV)": - exists "Current cough (HIV) Condition" - or exists "Current cough (HIV) Observation" -define "Current cough (HIV) Condition": +define "Current cough": + exists "Current cough Condition" + or exists "Current cough Observation" +define "Current cough Condition": [Condition: Concepts."Current cough"] -define "Current cough (HIV) Observation": - "Symptoms of TB (HIV) Observation" O +define "Current cough Observation": + "Symptoms of TB Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Current cough" -/* End of Current cough (HIV) */ +/* End of Current cough */ /* @dataElement: HIV.D.DE975 - Prolonged cough >=2w @@ -11826,16 +11826,16 @@ define "Current cough (HIV) Observation": @description: Client has a prolonged cough of 2 weeks or more */ // TODO: Replace placeholder with relevant CQL logic -define "Prolonged cough >=2w (HIV)": - exists "Prolonged cough >=2w (HIV) Condition" - or exists "Prolonged cough >=2w (HIV) Observation" -define "Prolonged cough >=2w (HIV) Condition": +define "Prolonged cough >=2w": + exists "Prolonged cough >=2w Condition" + or exists "Prolonged cough >=2w Observation" +define "Prolonged cough >=2w Condition": [Condition: Concepts."Prolonged cough >=2w"] -define "Prolonged cough >=2w (HIV) Observation": - "Symptoms of TB (HIV) Observation" O +define "Prolonged cough >=2w Observation": + "Symptoms of TB Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Prolonged cough >=2w" -/* End of Prolonged cough >=2w (HIV) */ +/* End of Prolonged cough >=2w */ /* @dataElement: HIV.D.DE976 - Fever of 39 °C or greater @@ -11843,16 +11843,16 @@ define "Prolonged cough >=2w (HIV) Observation": @description: Client has a fever with a measured temperature of 102.2 °F/39 °C or greater */ // TODO: Replace placeholder with relevant CQL logic -define "Fever of 39 °C or greater (HIV)": - exists "Fever of 39 °C or greater (HIV) Condition" - or exists "Fever of 39 °C or greater (HIV) Observation" -define "Fever of 39 °C or greater (HIV) Condition": +define "Fever of 39 °C or greater": + exists "Fever of 39 °C or greater Condition" + or exists "Fever of 39 °C or greater Observation" +define "Fever of 39 °C or greater Condition": [Condition: Concepts."Fever of 39 °C or greater"] -define "Fever of 39 °C or greater (HIV) Observation": - "Symptoms of TB (HIV) Observation" O +define "Fever of 39 °C or greater Observation": + "Symptoms of TB Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Fever of 39 °C or greater" -/* End of Fever of 39 °C or greater (HIV) */ +/* End of Fever of 39 °C or greater */ /* @dataElement: HIV.D.DE977 - Weight loss reported @@ -11860,16 +11860,16 @@ define "Fever of 39 °C or greater (HIV) Observation": @description: Unexplained weight loss */ // TODO: Replace placeholder with relevant CQL logic -define "Weight loss reported (HIV)": - exists "Weight loss reported (HIV) Condition" - or exists "Weight loss reported (HIV) Observation" -define "Weight loss reported (HIV) Condition": +define "Weight loss reported": + exists "Weight loss reported Condition" + or exists "Weight loss reported Observation" +define "Weight loss reported Condition": [Condition: Concepts."Weight loss reported"] -define "Weight loss reported (HIV) Observation": - "Symptoms of TB (HIV) Observation" O +define "Weight loss reported Observation": + "Symptoms of TB Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Weight loss reported" -/* End of Weight loss reported (HIV) */ +/* End of Weight loss reported */ /* @dataElement: HIV.D.DE978 - Night sweats @@ -11877,16 +11877,16 @@ define "Weight loss reported (HIV) Observation": @description: Client reports experiencing night sweats */ // TODO: Replace placeholder with relevant CQL logic -define "Night sweats (HIV)": - exists "Night sweats (HIV) Condition" - or exists "Night sweats (HIV) Observation" -define "Night sweats (HIV) Condition": +define "Night sweats": + exists "Night sweats Condition" + or exists "Night sweats Observation" +define "Night sweats Condition": [Condition: Concepts."Night sweats"] -define "Night sweats (HIV) Observation": - "Symptoms of TB (HIV) Observation" O +define "Night sweats Observation": + "Symptoms of TB Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Night sweats" -/* End of Night sweats (HIV) */ +/* End of Night sweats */ /* @dataElement: HIV.D.DE979 - Poor weight gain @@ -11894,16 +11894,16 @@ define "Night sweats (HIV) Observation": @description: Client reports poor weight gain of child or infant or growth curve flattening or weight for age <-2 Z-scores. */ // TODO: Replace placeholder with relevant CQL logic -define "Poor weight gain (HIV)": - exists "Poor weight gain (HIV) Condition" - or exists "Poor weight gain (HIV) Observation" -define "Poor weight gain (HIV) Condition": +define "Poor weight gain": + exists "Poor weight gain Condition" + or exists "Poor weight gain Observation" +define "Poor weight gain Condition": [Condition: Concepts."Poor weight gain"] -define "Poor weight gain (HIV) Observation": - "Symptoms of TB (HIV) Observation" O +define "Poor weight gain Observation": + "Symptoms of TB Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Poor weight gain" -/* End of Poor weight gain (HIV) */ +/* End of Poor weight gain */ /* @dataElement: HIV.D.DE980 - Reduced playfulness @@ -11911,16 +11911,16 @@ define "Poor weight gain (HIV) Observation": @description: Client reports reduced playfulness of child */ // TODO: Replace placeholder with relevant CQL logic -define "Reduced playfulness (HIV)": - exists "Reduced playfulness (HIV) Condition" - or exists "Reduced playfulness (HIV) Observation" -define "Reduced playfulness (HIV) Condition": +define "Reduced playfulness": + exists "Reduced playfulness Condition" + or exists "Reduced playfulness Observation" +define "Reduced playfulness Condition": [Condition: Concepts."Reduced playfulness"] -define "Reduced playfulness (HIV) Observation": - "Symptoms of TB (HIV) Observation" O +define "Reduced playfulness Observation": + "Symptoms of TB Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Reduced playfulness" -/* End of Reduced playfulness (HIV) */ +/* End of Reduced playfulness */ /* @dataElement: HIV.D.DE981 - Chest pain @@ -11928,16 +11928,16 @@ define "Reduced playfulness (HIV) Observation": @description: Client reports chest pain */ // TODO: Replace placeholder with relevant CQL logic -define "Chest pain (HIV)": - exists "Chest pain (HIV) Condition" - or exists "Chest pain (HIV) Observation" -define "Chest pain (HIV) Condition": +define "Chest pain": + exists "Chest pain Condition" + or exists "Chest pain Observation" +define "Chest pain Condition": [Condition: Concepts."Chest pain"] -define "Chest pain (HIV) Observation": - "Symptoms of TB (HIV) Observation" O +define "Chest pain Observation": + "Symptoms of TB Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Chest pain" -/* End of Chest pain (HIV) */ +/* End of Chest pain */ /* @dataElement: HIV.D.DE982 - Haemoptysis @@ -11945,16 +11945,16 @@ define "Chest pain (HIV) Observation": @description: Client reports experiencing haemoptysis */ // TODO: Replace placeholder with relevant CQL logic -define "Haemoptysis (HIV)": - exists "Haemoptysis (HIV) Condition" - or exists "Haemoptysis (HIV) Observation" -define "Haemoptysis (HIV) Condition": +define "Haemoptysis": + exists "Haemoptysis Condition" + or exists "Haemoptysis Observation" +define "Haemoptysis Condition": [Condition: Concepts."Haemoptysis"] -define "Haemoptysis (HIV) Observation": - "Symptoms of TB (HIV) Observation" O +define "Haemoptysis Observation": + "Symptoms of TB Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Haemoptysis" -/* End of Haemoptysis (HIV) */ +/* End of Haemoptysis */ /* @dataElement: HIV.D.DE983 - Lethargy @@ -11962,16 +11962,16 @@ define "Haemoptysis (HIV) Observation": @description: Client reports lethargy */ // TODO: Replace placeholder with relevant CQL logic -define "Lethargy (HIV)": - exists "Lethargy (HIV) Condition" - or exists "Lethargy (HIV) Observation" -define "Lethargy (HIV) Condition": +define "Lethargy D.DE983": + exists "Lethargy D.DE983 Condition" + or exists "Lethargy D.DE983 Observation" +define "Lethargy D.DE983 Condition": [Condition: Concepts."Lethargy - HIV.D.DE983"] -define "Lethargy (HIV) Observation": - "Symptoms of TB (HIV) Observation" O +define "Lethargy D.DE983 Observation": + "Symptoms of TB Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Lethargy - HIV.D.DE983" -/* End of Lethargy (HIV) */ +/* End of Lethargy D.DE983 */ /* @dataElement: HIV.D.DE984 - None @@ -11979,16 +11979,16 @@ define "Lethargy (HIV) Observation": @description: No symptoms of TB identified */ // TODO: Replace placeholder with relevant CQL logic -define "None (HIV)": - exists "None (HIV) Condition" - or exists "None (HIV) Observation" -define "None (HIV) Condition": +define "None": + exists "None Condition" + or exists "None Observation" +define "None Condition": [Condition: Concepts."None"] -define "None (HIV) Observation": - "Symptoms of TB (HIV) Observation" O +define "None Observation": + "Symptoms of TB Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."None" -/* End of None (HIV) */ +/* End of None */ /* @dataElement: HIV.D.DE985 - History of contact with a person with TB @@ -11996,13 +11996,13 @@ define "None (HIV) Observation": @description: Client had a history of a contact with a person with TB */ // TODO: Replace placeholder with relevant CQL logic -define "History of contact with a person with TB (HIV)": - exists "History of contact with a person with TB (HIV) Observation" -define "History of contact with a person with TB (HIV) Observation": +define "History of contact with a person with TB": + exists "History of contact with a person with TB Observation" +define "History of contact with a person with TB Observation": [Observation: Concepts."History of contact with a person with TB"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of History of contact with a person with TB (HIV) */ +/* End of History of contact with a person with TB */ /* @dataElement: HIV.D.DE986 - TB screening result @@ -12010,12 +12010,12 @@ define "History of contact with a person with TB (HIV) Observation": @description: Record the result of the tuberculosis (TB) screening */ // TODO: Replace placeholder with relevant CQL logic -define "TB screening result (HIV)": - exists "TB screening result (HIV) Observation" -define "TB screening result (HIV) Observation": +define "TB screening result": + exists "TB screening result Observation" +define "TB screening result Observation": [Observation: Concepts."TB screening result"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of TB screening result (HIV) */ +/* End of TB screening result */ /* @dataElement: HIV.D.DE987 - Screen positive for TB @@ -12023,16 +12023,16 @@ define "TB screening result (HIV) Observation": @description: Screening result was positive for tuberculosis (TB) */ // TODO: Replace placeholder with relevant CQL logic -define "Screen positive for TB (HIV)": - exists "Screen positive for TB (HIV) Condition" - or exists "Screen positive for TB (HIV) Observation" -define "Screen positive for TB (HIV) Condition": +define "Screen positive for TB": + exists "Screen positive for TB Condition" + or exists "Screen positive for TB Observation" +define "Screen positive for TB Condition": [Condition: Concepts."Screen positive for TB"] -define "Screen positive for TB (HIV) Observation": - "TB screening result (HIV) Observation" O +define "Screen positive for TB Observation": + "TB screening result Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Screen positive for TB" -/* End of Screen positive for TB (HIV) */ +/* End of Screen positive for TB */ /* @dataElement: HIV.D.DE988 - Screen negative for TB @@ -12040,16 +12040,16 @@ define "Screen positive for TB (HIV) Observation": @description: Screening result was negative for tuberculosis (TB) */ // TODO: Replace placeholder with relevant CQL logic -define "Screen negative for TB (HIV)": - exists "Screen negative for TB (HIV) Condition" - or exists "Screen negative for TB (HIV) Observation" -define "Screen negative for TB (HIV) Condition": +define "Screen negative for TB": + exists "Screen negative for TB Condition" + or exists "Screen negative for TB Observation" +define "Screen negative for TB Condition": [Condition: Concepts."Screen negative for TB"] -define "Screen negative for TB (HIV) Observation": - "TB screening result (HIV) Observation" O +define "Screen negative for TB Observation": + "TB screening result Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Screen negative for TB" -/* End of Screen negative for TB (HIV) */ +/* End of Screen negative for TB */ /* @dataElement: HIV.D.DE989 - Inconclusive @@ -12057,16 +12057,16 @@ define "Screen negative for TB (HIV) Observation": @description: Screening result was inconclusive for tuberculosis (TB) */ // TODO: Replace placeholder with relevant CQL logic -define "Inconclusive (HIV)": - exists "Inconclusive (HIV) Condition" - or exists "Inconclusive (HIV) Observation" -define "Inconclusive (HIV) Condition": +define "Inconclusive D.DE989": + exists "Inconclusive D.DE989 Condition" + or exists "Inconclusive D.DE989 Observation" +define "Inconclusive D.DE989 Condition": [Condition: Concepts."Inconclusive - HIV.D.DE989"] -define "Inconclusive (HIV) Observation": - "TB screening result (HIV) Observation" O +define "Inconclusive D.DE989 Observation": + "TB screening result Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Inconclusive - HIV.D.DE989" -/* End of Inconclusive (HIV) */ +/* End of Inconclusive D.DE989 */ /* @dataElement: HIV.D.DE990 - TB screening date @@ -12074,13 +12074,13 @@ define "Inconclusive (HIV) Observation": @description: Date the TB screening was conducted */ // TODO: Replace placeholder with relevant CQL logic -define "TB screening date (HIV)": +define "TB screening date": [Observation: Concepts."TB screening date"] O where O.status in { 'final', 'amended', 'corrected' } -define "TB screening date (HIV) Value": - "TB screening date (HIV)" O +define "TB screening date Value": + "TB screening date" O return O.value -/* End of TB screening date (HIV) */ +/* End of TB screening date */ /* @dataElement: HIV.D.DE992 - TB diagnostic test category @@ -12088,12 +12088,12 @@ define "TB screening date (HIV) Value": @description: The type of diagnostic test performed to detect tuberculosis (TB) disease */ // TODO: Replace placeholder with relevant CQL logic -define "TB diagnostic test category (HIV)": - exists "TB diagnostic test category (HIV) Observation" -define "TB diagnostic test category (HIV) Observation": +define "TB diagnostic test category": + exists "TB diagnostic test category Observation" +define "TB diagnostic test category Observation": [Observation: Concepts."TB diagnostic test category"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of TB diagnostic test category (HIV) */ +/* End of TB diagnostic test category */ /* @dataElement: HIV.D.DE993 - LF-LAM @@ -12101,16 +12101,16 @@ define "TB diagnostic test category (HIV) Observation": @description: Client tested for tuberculosis with a lateral flow urine lipoarabinomannan assay */ // TODO: Replace placeholder with relevant CQL logic -define "LF-LAM (HIV)": - exists "LF-LAM (HIV) Condition" - or exists "LF-LAM (HIV) Observation" -define "LF-LAM (HIV) Condition": +define "LF-LAM": + exists "LF-LAM Condition" + or exists "LF-LAM Observation" +define "LF-LAM Condition": [Condition: Concepts."LF-LAM"] -define "LF-LAM (HIV) Observation": - "TB diagnostic test category (HIV) Observation" O +define "LF-LAM Observation": + "TB diagnostic test category Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."LF-LAM" -/* End of LF-LAM (HIV) */ +/* End of LF-LAM */ /* @dataElement: HIV.D.DE994 - mWRD test for TB @@ -12118,16 +12118,16 @@ define "LF-LAM (HIV) Observation": @description: Client tested with a WHO-recommended molecular diagnostic test to detect Mycobacterium tuberculosis (MTB) */ // TODO: Replace placeholder with relevant CQL logic -define "mWRD test for TB (HIV)": - exists "mWRD test for TB (HIV) Condition" - or exists "mWRD test for TB (HIV) Observation" -define "mWRD test for TB (HIV) Condition": +define "mWRD test for TB": + exists "mWRD test for TB Condition" + or exists "mWRD test for TB Observation" +define "mWRD test for TB Condition": [Condition: Concepts."mWRD test for TB"] -define "mWRD test for TB (HIV) Observation": - "TB diagnostic test category (HIV) Observation" O +define "mWRD test for TB Observation": + "TB diagnostic test category Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."mWRD test for TB" -/* End of mWRD test for TB (HIV) */ +/* End of mWRD test for TB */ /* @dataElement: HIV.D.DE995 - Microscopy - Sputum acid-fast bacilli AFB @@ -12135,16 +12135,16 @@ define "mWRD test for TB (HIV) Observation": @description: Client tested for tuberculosis with a sputum acid-fast bacilli (AFB) */ // TODO: Replace placeholder with relevant CQL logic -define "Microscopy - Sputum acid-fast bacilli AFB (HIV)": - exists "Microscopy - Sputum acid-fast bacilli AFB (HIV) Condition" - or exists "Microscopy - Sputum acid-fast bacilli AFB (HIV) Observation" -define "Microscopy - Sputum acid-fast bacilli AFB (HIV) Condition": +define "Microscopy - Sputum acid-fast bacilli AFB": + exists "Microscopy - Sputum acid-fast bacilli AFB Condition" + or exists "Microscopy - Sputum acid-fast bacilli AFB Observation" +define "Microscopy - Sputum acid-fast bacilli AFB Condition": [Condition: Concepts."Microscopy - Sputum acid-fast bacilli AFB"] -define "Microscopy - Sputum acid-fast bacilli AFB (HIV) Observation": - "TB diagnostic test category (HIV) Observation" O +define "Microscopy - Sputum acid-fast bacilli AFB Observation": + "TB diagnostic test category Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Microscopy - Sputum acid-fast bacilli AFB" -/* End of Microscopy - Sputum acid-fast bacilli AFB (HIV) */ +/* End of Microscopy - Sputum acid-fast bacilli AFB */ /* @dataElement: HIV.D.DE996 - TB Culture @@ -12152,16 +12152,16 @@ define "Microscopy - Sputum acid-fast bacilli AFB (HIV) Observation": @description: Client tested for tuberculosis (TB) with a culture */ // TODO: Replace placeholder with relevant CQL logic -define "TB Culture (HIV)": - exists "TB Culture (HIV) Condition" - or exists "TB Culture (HIV) Observation" -define "TB Culture (HIV) Condition": +define "TB Culture": + exists "TB Culture Condition" + or exists "TB Culture Observation" +define "TB Culture Condition": [Condition: Concepts."TB Culture"] -define "TB Culture (HIV) Observation": - "TB diagnostic test category (HIV) Observation" O +define "TB Culture Observation": + "TB diagnostic test category Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."TB Culture" -/* End of TB Culture (HIV) */ +/* End of TB Culture */ /* @dataElement: HIV.D.DE997 - TB diagnostic test date @@ -12169,13 +12169,13 @@ define "TB Culture (HIV) Observation": @description: The date when TB diagnostic test was performed */ // TODO: Replace placeholder with relevant CQL logic -define "TB diagnostic test date (HIV)": +define "TB diagnostic test date": [Observation: Concepts."TB diagnostic test date"] O where O.status in { 'final', 'amended', 'corrected' } -define "TB diagnostic test date (HIV) Value": - "TB diagnostic test date (HIV)" O +define "TB diagnostic test date Value": + "TB diagnostic test date" O return O.value -/* End of TB diagnostic test date (HIV) */ +/* End of TB diagnostic test date */ /* @dataElement: HIV.D.DE1001 - TB treatment start date @@ -12183,13 +12183,13 @@ define "TB diagnostic test date (HIV) Value": @description: The date on which the client start or restarted tuberculosis (TB) treatment */ // TODO: Replace placeholder with relevant CQL logic -define "TB treatment start date (HIV)": +define "TB treatment start date": [Observation: Concepts."TB treatment start date"] O where O.status in { 'final', 'amended', 'corrected' } -define "TB treatment start date (HIV) Value": - "TB treatment start date (HIV)" O +define "TB treatment start date Value": + "TB treatment start date" O return O.value -/* End of TB treatment start date (HIV) */ +/* End of TB treatment start date */ /* @dataElement: HIV.D.DE1017 - Eligible for TB preventive treatment @@ -12197,13 +12197,13 @@ define "TB treatment start date (HIV) Value": @description: Client is eligible for tuberculosis preventive treatment (TPT) */ // TODO: Replace placeholder with relevant CQL logic -define "Eligible for TB preventive treatment (HIV)": - exists "Eligible for TB preventive treatment (HIV) Observation" -define "Eligible for TB preventive treatment (HIV) Observation": +define "Eligible for TB preventive treatment": + exists "Eligible for TB preventive treatment Observation" +define "Eligible for TB preventive treatment Observation": [Observation: Concepts."Eligible for TB preventive treatment"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Eligible for TB preventive treatment (HIV) */ +/* End of Eligible for TB preventive treatment */ /* @dataElement: HIV.D.DE1023 - TB prevention services accepted @@ -12211,13 +12211,13 @@ define "Eligible for TB preventive treatment (HIV) Observation": @description: Indicates if the client accepts to be evaluated for TB infection and to take the treatment in case he/she is eligible */ // TODO: Replace placeholder with relevant CQL logic -define "TB prevention services accepted (HIV)": - exists "TB prevention services accepted (HIV) Observation" -define "TB prevention services accepted (HIV) Observation": +define "TB prevention services accepted": + exists "TB prevention services accepted Observation" +define "TB prevention services accepted Observation": [Observation: Concepts."TB prevention services accepted"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of TB prevention services accepted (HIV) */ +/* End of TB prevention services accepted */ /* @dataElement: HIV.D.DE1026 - C reactive protein test result @@ -12225,13 +12225,13 @@ define "TB prevention services accepted (HIV) Observation": @description: Test result of the client's C reactive protein test result in mg/L */ // TODO: Replace placeholder with relevant CQL logic -define "C reactive protein test result (HIV)": +define "C reactive protein test result": [Observation: Concepts."C reactive protein test result"] O where O.status in { 'final', 'amended', 'corrected' } -define "C reactive protein test result (HIV) Value": - "C reactive protein test result (HIV)" O +define "C reactive protein test result Value": + "C reactive protein test result" O return O.value -/* End of C reactive protein test result (HIV) */ +/* End of C reactive protein test result */ /* @dataElement: HIV.D.DE1028 - TPT regimen type @@ -12239,12 +12239,12 @@ define "C reactive protein test result (HIV) Value": @description: Type of TPT regimen the client is currently on */ // TODO: Replace placeholder with relevant CQL logic -define "TPT regimen type (HIV)": - exists "TPT regimen type (HIV) Observation" -define "TPT regimen type (HIV) Observation": +define "TPT regimen type": + exists "TPT regimen type Observation" +define "TPT regimen type Observation": [Observation: Concepts."TPT regimen type"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of TPT regimen type (HIV) */ +/* End of TPT regimen type */ /* @dataElement: HIV.D.DE1029 - 3HP @@ -12252,16 +12252,16 @@ define "TPT regimen type (HIV) Observation": @description: The client's current TPT regimen is 3HP */ // TODO: Replace placeholder with relevant CQL logic -define "3HP (HIV)": - exists "3HP (HIV) Condition" - or exists "3HP (HIV) Observation" -define "3HP (HIV) Condition": +define "3HP": + exists "3HP Condition" + or exists "3HP Observation" +define "3HP Condition": [Condition: Concepts."3HP"] -define "3HP (HIV) Observation": - "TPT regimen type (HIV) Observation" O +define "3HP Observation": + "TPT regimen type Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."3HP" -/* End of 3HP (HIV) */ +/* End of 3HP */ /* @dataElement: HIV.D.DE1030 - 1HP @@ -12269,16 +12269,16 @@ define "3HP (HIV) Observation": @description: The client's current TPT regimen is 1HP */ // TODO: Replace placeholder with relevant CQL logic -define "1HP (HIV)": - exists "1HP (HIV) Condition" - or exists "1HP (HIV) Observation" -define "1HP (HIV) Condition": +define "1HP": + exists "1HP Condition" + or exists "1HP Observation" +define "1HP Condition": [Condition: Concepts."1HP"] -define "1HP (HIV) Observation": - "TPT regimen type (HIV) Observation" O +define "1HP Observation": + "TPT regimen type Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."1HP" -/* End of 1HP (HIV) */ +/* End of 1HP */ /* @dataElement: HIV.D.DE1031 - 6H @@ -12286,16 +12286,16 @@ define "1HP (HIV) Observation": @description: The client's current TPT regimen is 6H */ // TODO: Replace placeholder with relevant CQL logic -define "6H (HIV)": - exists "6H (HIV) Condition" - or exists "6H (HIV) Observation" -define "6H (HIV) Condition": +define "6H": + exists "6H Condition" + or exists "6H Observation" +define "6H Condition": [Condition: Concepts."6H"] -define "6H (HIV) Observation": - "TPT regimen type (HIV) Observation" O +define "6H Observation": + "TPT regimen type Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."6H" -/* End of 6H (HIV) */ +/* End of 6H */ /* @dataElement: HIV.D.DE1032 - Six months of levofloxacin daily @@ -12303,16 +12303,16 @@ define "6H (HIV) Observation": @description: The client's current TPT regimen is six months of levofloxacin daily */ // TODO: Replace placeholder with relevant CQL logic -define "Six months of levofloxacin daily (HIV)": - exists "Six months of levofloxacin daily (HIV) Condition" - or exists "Six months of levofloxacin daily (HIV) Observation" -define "Six months of levofloxacin daily (HIV) Condition": +define "Six months of levofloxacin daily": + exists "Six months of levofloxacin daily Condition" + or exists "Six months of levofloxacin daily Observation" +define "Six months of levofloxacin daily Condition": [Condition: Concepts."Six months of levofloxacin daily"] -define "Six months of levofloxacin daily (HIV) Observation": - "TPT regimen type (HIV) Observation" O +define "Six months of levofloxacin daily Observation": + "TPT regimen type Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Six months of levofloxacin daily" -/* End of Six months of levofloxacin daily (HIV) */ +/* End of Six months of levofloxacin daily */ /* @dataElement: HIV.D.DE1033 - Other TB preventive treatment TPT regimen @@ -12320,16 +12320,16 @@ define "Six months of levofloxacin daily (HIV) Observation": @description: The client's current TPT regimen is another regimen than those listed above */ // TODO: Replace placeholder with relevant CQL logic -define "Other TB preventive treatment TPT regimen (HIV)": - exists "Other TB preventive treatment TPT regimen (HIV) Condition" - or exists "Other TB preventive treatment TPT regimen (HIV) Observation" -define "Other TB preventive treatment TPT regimen (HIV) Condition": +define "Other TB preventive treatment TPT regimen": + exists "Other TB preventive treatment TPT regimen Condition" + or exists "Other TB preventive treatment TPT regimen Observation" +define "Other TB preventive treatment TPT regimen Condition": [Condition: Concepts."Other TB preventive treatment TPT regimen"] -define "Other TB preventive treatment TPT regimen (HIV) Observation": - "TPT regimen type (HIV) Observation" O +define "Other TB preventive treatment TPT regimen Observation": + "TPT regimen type Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Other TB preventive treatment TPT regimen" -/* End of Other TB preventive treatment TPT regimen (HIV) */ +/* End of Other TB preventive treatment TPT regimen */ /* @dataElement: HIV.D.DE1034 - TB preventive treatment TPT status @@ -12337,12 +12337,12 @@ define "Other TB preventive treatment TPT regimen (HIV) Observation": @description: Indicates the current status of TB preventive treatment (TPT) */ // TODO: Replace placeholder with relevant CQL logic -define "TB preventive treatment TPT status (HIV)": - exists "TB preventive treatment TPT status (HIV) Observation" -define "TB preventive treatment TPT status (HIV) Observation": +define "TB preventive treatment TPT status": + exists "TB preventive treatment TPT status Observation" +define "TB preventive treatment TPT status Observation": [Observation: Concepts."TB preventive treatment TPT status"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of TB preventive treatment TPT status (HIV) */ +/* End of TB preventive treatment TPT status */ /* @dataElement: HIV.D.DE1035 - Not started @@ -12350,16 +12350,16 @@ define "TB preventive treatment TPT status (HIV) Observation": @description: The client did not start the TB preventive treatment (TPT) */ // TODO: Replace placeholder with relevant CQL logic -define "Not started (HIV)": - exists "Not started (HIV) Condition" - or exists "Not started (HIV) Observation" -define "Not started (HIV) Condition": +define "Not started": + exists "Not started Condition" + or exists "Not started Observation" +define "Not started Condition": [Condition: Concepts."Not started"] -define "Not started (HIV) Observation": - "TB preventive treatment TPT status (HIV) Observation" O +define "Not started Observation": + "TB preventive treatment TPT status Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Not started" -/* End of Not started (HIV) */ +/* End of Not started */ /* @dataElement: HIV.D.DE1036 - On TPT @@ -12367,16 +12367,16 @@ define "Not started (HIV) Observation": @description: The client started the TB preventive treatment (TPT) and is currently taking the medication, without treatment interruptions */ // TODO: Replace placeholder with relevant CQL logic -define "On TPT (HIV)": - exists "On TPT (HIV) Condition" - or exists "On TPT (HIV) Observation" -define "On TPT (HIV) Condition": +define "On TPT": + exists "On TPT Condition" + or exists "On TPT Observation" +define "On TPT Condition": [Condition: Concepts."On TPT"] -define "On TPT (HIV) Observation": - "TB preventive treatment TPT status (HIV) Observation" O +define "On TPT Observation": + "TB preventive treatment TPT status Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."On TPT" -/* End of On TPT (HIV) */ +/* End of On TPT */ /* @dataElement: HIV.D.DE1037 - On TPT with interruptions @@ -12384,16 +12384,16 @@ define "On TPT (HIV) Observation": @description: The client started the TB preventive treatment (TPT) and is currently taking the medication, with treatment interruptions */ // TODO: Replace placeholder with relevant CQL logic -define "On TPT with interruptions (HIV)": - exists "On TPT with interruptions (HIV) Condition" - or exists "On TPT with interruptions (HIV) Observation" -define "On TPT with interruptions (HIV) Condition": +define "On TPT with interruptions": + exists "On TPT with interruptions Condition" + or exists "On TPT with interruptions Observation" +define "On TPT with interruptions Condition": [Condition: Concepts."On TPT with interruptions"] -define "On TPT with interruptions (HIV) Observation": - "TB preventive treatment TPT status (HIV) Observation" O +define "On TPT with interruptions Observation": + "TB preventive treatment TPT status Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."On TPT with interruptions" -/* End of On TPT with interruptions (HIV) */ +/* End of On TPT with interruptions */ /* @dataElement: HIV.D.DE1038 - On hold @@ -12401,16 +12401,16 @@ define "On TPT with interruptions (HIV) Observation": @description: The health care worker has temporarily stopped the TB preventive treatment (TPT), but TPT is expected to continue again later. May also be called 'suspended'. */ // TODO: Replace placeholder with relevant CQL logic -define "On hold (HIV)": - exists "On hold (HIV) Condition" - or exists "On hold (HIV) Observation" -define "On hold (HIV) Condition": +define "On hold": + exists "On hold Condition" + or exists "On hold Observation" +define "On hold Condition": [Condition: Concepts."On hold"] -define "On hold (HIV) Observation": - "TB preventive treatment TPT status (HIV) Observation" O +define "On hold Observation": + "TB preventive treatment TPT status Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."On hold" -/* End of On hold (HIV) */ +/* End of On hold */ /* @dataElement: HIV.D.DE1039 - Completed @@ -12418,16 +12418,16 @@ define "On hold (HIV) Observation": @description: TB preventive treatment (TPT) was completed */ // TODO: Replace placeholder with relevant CQL logic -define "Completed (HIV)": - exists "Completed (HIV) Condition" - or exists "Completed (HIV) Observation" -define "Completed (HIV) Condition": +define "Completed": + exists "Completed Condition" + or exists "Completed Observation" +define "Completed Condition": [Condition: Concepts."Completed"] -define "Completed (HIV) Observation": - "TB preventive treatment TPT status (HIV) Observation" O +define "Completed Observation": + "TB preventive treatment TPT status Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Completed" -/* End of Completed (HIV) */ +/* End of Completed */ /* @dataElement: HIV.E.DE41 - Timing of ART initiation @@ -12435,12 +12435,12 @@ define "Completed (HIV) Observation": @description: When the pregnant woman or mother initiated ART, for women living with HIV. */ // TODO: Replace placeholder with relevant CQL logic -define "Timing of ART initiation (PMTCT)": - exists "Timing of ART initiation (PMTCT) Observation" -define "Timing of ART initiation (PMTCT) Observation": +define "Timing of ART initiation": + exists "Timing of ART initiation Observation" +define "Timing of ART initiation Observation": [Observation: Concepts."Timing of ART initiation"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Timing of ART initiation (PMTCT) */ +/* End of Timing of ART initiation */ /* @dataElement: HIV.E.DE42 - Already on ART at first antenatal care visit @@ -12448,16 +12448,16 @@ define "Timing of ART initiation (PMTCT) Observation": @description: The pregnant woman was already on antiretroviral therapy (ART) at first antenatal care visit */ // TODO: Replace placeholder with relevant CQL logic -define "Already on ART at first antenatal care visit (PMTCT)": - exists "Already on ART at first antenatal care visit (PMTCT) Condition" - or exists "Already on ART at first antenatal care visit (PMTCT) Observation" -define "Already on ART at first antenatal care visit (PMTCT) Condition": +define "Already on ART at first antenatal care visit": + exists "Already on ART at first antenatal care visit Condition" + or exists "Already on ART at first antenatal care visit Observation" +define "Already on ART at first antenatal care visit Condition": [Condition: Concepts."Already on ART at first antenatal care visit"] -define "Already on ART at first antenatal care visit (PMTCT) Observation": - "Timing of ART initiation (PMTCT) Observation" O +define "Already on ART at first antenatal care visit Observation": + "Timing of ART initiation Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Already on ART at first antenatal care visit" -/* End of Already on ART at first antenatal care visit (PMTCT) */ +/* End of Already on ART at first antenatal care visit */ /* @dataElement: HIV.E.DE43 - Newly on ART during pregnancy @@ -12465,16 +12465,16 @@ define "Already on ART at first antenatal care visit (PMTCT) Observation": @description: The pregnant woman started ART during her pregnancy */ // TODO: Replace placeholder with relevant CQL logic -define "Newly on ART during pregnancy (PMTCT)": - exists "Newly on ART during pregnancy (PMTCT) Condition" - or exists "Newly on ART during pregnancy (PMTCT) Observation" -define "Newly on ART during pregnancy (PMTCT) Condition": +define "Newly on ART during pregnancy": + exists "Newly on ART during pregnancy Condition" + or exists "Newly on ART during pregnancy Observation" +define "Newly on ART during pregnancy Condition": [Condition: Concepts."Newly on ART during pregnancy"] -define "Newly on ART during pregnancy (PMTCT) Observation": - "Timing of ART initiation (PMTCT) Observation" O +define "Newly on ART during pregnancy Observation": + "Timing of ART initiation Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Newly on ART during pregnancy" -/* End of Newly on ART during pregnancy (PMTCT) */ +/* End of Newly on ART during pregnancy */ /* @dataElement: HIV.E.DE44 - Newly on ART during labour and delivery @@ -12482,16 +12482,16 @@ define "Newly on ART during pregnancy (PMTCT) Observation": @description: The woman started ART during labour and delivery */ // TODO: Replace placeholder with relevant CQL logic -define "Newly on ART during labour and delivery (PMTCT)": - exists "Newly on ART during labour and delivery (PMTCT) Condition" - or exists "Newly on ART during labour and delivery (PMTCT) Observation" -define "Newly on ART during labour and delivery (PMTCT) Condition": +define "Newly on ART during labour and delivery": + exists "Newly on ART during labour and delivery Condition" + or exists "Newly on ART during labour and delivery Observation" +define "Newly on ART during labour and delivery Condition": [Condition: Concepts."Newly on ART during labour and delivery"] -define "Newly on ART during labour and delivery (PMTCT) Observation": - "Timing of ART initiation (PMTCT) Observation" O +define "Newly on ART during labour and delivery Observation": + "Timing of ART initiation Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Newly on ART during labour and delivery" -/* End of Newly on ART during labour and delivery (PMTCT) */ +/* End of Newly on ART during labour and delivery */ /* @dataElement: HIV.E.DE46 - Delivery date @@ -12499,13 +12499,13 @@ define "Newly on ART during labour and delivery (PMTCT) Observation": @description: Date on which the woman delivered */ // TODO: Replace placeholder with relevant CQL logic -define "Delivery date (PMTCT)": +define "Delivery date": [Observation: Concepts."Delivery date"] O where O.status in { 'final', 'amended', 'corrected' } -define "Delivery date (PMTCT) Value": - "Delivery date (PMTCT)" O +define "Delivery date Value": + "Delivery date" O return O.value -/* End of Delivery date (PMTCT) */ +/* End of Delivery date */ /* @dataElement: HIV.E.DE67 - Place of delivery @@ -12513,12 +12513,12 @@ define "Delivery date (PMTCT) Value": @description: The type of place where the woman delivered */ // TODO: Replace placeholder with relevant CQL logic -define "Place of delivery (PMTCT)": - exists "Place of delivery (PMTCT) Observation" -define "Place of delivery (PMTCT) Observation": +define "Place of delivery": + exists "Place of delivery Observation" +define "Place of delivery Observation": [Observation: Concepts."Place of delivery"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Place of delivery (PMTCT) */ +/* End of Place of delivery */ /* @dataElement: HIV.E.DE68 - Health facility @@ -12526,16 +12526,16 @@ define "Place of delivery (PMTCT) Observation": @description: The woman delivered at a health facility */ // TODO: Replace placeholder with relevant CQL logic -define "Health facility (PMTCT)": - exists "Health facility (PMTCT) Condition" - or exists "Health facility (PMTCT) Observation" -define "Health facility (PMTCT) Condition": +define "Health facility": + exists "Health facility Condition" + or exists "Health facility Observation" +define "Health facility Condition": [Condition: Concepts."Health facility"] -define "Health facility (PMTCT) Observation": - "Place of delivery (PMTCT) Observation" O +define "Health facility Observation": + "Place of delivery Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Health facility" -/* End of Health facility (PMTCT) */ +/* End of Health facility */ /* @dataElement: HIV.E.DE69 - Home @@ -12543,16 +12543,16 @@ define "Health facility (PMTCT) Observation": @description: The woman delivered at home */ // TODO: Replace placeholder with relevant CQL logic -define "Home (PMTCT)": - exists "Home (PMTCT) Condition" - or exists "Home (PMTCT) Observation" -define "Home (PMTCT) Condition": +define "Home": + exists "Home Condition" + or exists "Home Observation" +define "Home Condition": [Condition: Concepts."Home"] -define "Home (PMTCT) Observation": - "Place of delivery (PMTCT) Observation" O +define "Home Observation": + "Place of delivery Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Home" -/* End of Home (PMTCT) */ +/* End of Home */ /* @dataElement: HIV.E.DE70 - Other @@ -12560,16 +12560,16 @@ define "Home (PMTCT) Observation": @description: The woman delivered at another location that is not at home or at a health facility */ // TODO: Replace placeholder with relevant CQL logic -define "Other (PMTCT)": - exists "Other (PMTCT) Condition" - or exists "Other (PMTCT) Observation" -define "Other (PMTCT) Condition": +define "Other E.DE70": + exists "Other E.DE70 Condition" + or exists "Other E.DE70 Observation" +define "Other E.DE70 Condition": [Condition: Concepts."Other - HIV.E.DE70"] -define "Other (PMTCT) Observation": - "Place of delivery (PMTCT) Observation" O +define "Other E.DE70 Observation": + "Place of delivery Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Other - HIV.E.DE70" -/* End of Other (PMTCT) */ +/* End of Other E.DE70 */ /* @dataElement: HIV.E.DE85 - ANC contact date @@ -12577,13 +12577,13 @@ define "Other (PMTCT) Observation": @description: The date and time of the client's ANC contact (in the ANC DAK this is called 'Contact date') */ // TODO: Replace placeholder with relevant CQL logic -define "ANC contact date (PMTCT)": +define "ANC contact date E.DE85": [Observation: Concepts."ANC contact date - HIV.E.DE85"] O where O.status in { 'final', 'amended', 'corrected' } -define "ANC contact date (PMTCT) Value": - "ANC contact date (PMTCT)" O +define "ANC contact date E.DE85 Value": + "ANC contact date E.DE85" O return O.value -/* End of ANC contact date (PMTCT) */ +/* End of ANC contact date E.DE85 */ /* @dataElement: HIV.E.DE87 - Infant date of birth @@ -12591,13 +12591,13 @@ define "ANC contact date (PMTCT) Value": @description: The infant's date of birth (DOB) if known */ // TODO: Replace placeholder with relevant CQL logic -define "Infant date of birth (PMTCT)": +define "Infant date of birth": [Observation: Concepts."Infant date of birth"] O where O.status in { 'final', 'amended', 'corrected' } -define "Infant date of birth (PMTCT) Value": - "Infant date of birth (PMTCT)" O +define "Infant date of birth Value": + "Infant date of birth" O return O.value -/* End of Infant date of birth (PMTCT) */ +/* End of Infant date of birth */ /* @dataElement: HIV.E.DE90 - Age of infant @@ -12605,13 +12605,13 @@ define "Infant date of birth (PMTCT) Value": @description: Infant age calculated using date of birth */ // TODO: Replace placeholder with relevant CQL logic -define "Age of infant (PMTCT)": +define "Age of infant": [Observation: Concepts."Age of infant"] O where O.status in { 'final', 'amended', 'corrected' } -define "Age of infant (PMTCT) Value": - "Age of infant (PMTCT)" O +define "Age of infant Value": + "Age of infant" O return O.value -/* End of Age of infant (PMTCT) */ +/* End of Age of infant */ /* @dataElement: HIV.E.DE112 - HIV-exposed infant or child @@ -12619,13 +12619,13 @@ define "Age of infant (PMTCT) Value": @description: Whether the infant or child was determined to have had HIV exposure */ // TODO: Replace placeholder with relevant CQL logic -define "HIV-exposed infant or child (PMTCT)": - exists "HIV-exposed infant or child (PMTCT) Observation" -define "HIV-exposed infant or child (PMTCT) Observation": +define "HIV-exposed infant or child E.DE112": + exists "HIV-exposed infant or child E.DE112 Observation" +define "HIV-exposed infant or child E.DE112 Observation": [Observation: Concepts."HIV-exposed infant or child - HIV.E.DE112"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of HIV-exposed infant or child (PMTCT) */ +/* End of HIV-exposed infant or child E.DE112 */ /* @dataElement: HIV.E.DE113 - Key population member* @@ -12633,13 +12633,13 @@ define "HIV-exposed infant or child (PMTCT) Observation": @description: Mother is a member of a key population which has an increased risk of HIV */ // TODO: Replace placeholder with relevant CQL logic -define "Key population member* (PMTCT)": - exists "Key population member* (PMTCT) Observation" -define "Key population member* (PMTCT) Observation": +define "Key population member* E.DE113": + exists "Key population member* E.DE113 Observation" +define "Key population member* E.DE113 Observation": [Observation: Concepts."Key population member* - HIV.E.DE113"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Key population member* (PMTCT) */ +/* End of Key population member* E.DE113 */ /* @dataElement: HIV.E.DE114 - Key population member type* @@ -12647,12 +12647,12 @@ define "Key population member* (PMTCT) Observation": @description: The type of key population that the infant's mother is included in */ // TODO: Replace placeholder with relevant CQL logic -define "Key population member type* (PMTCT)": - exists "Key population member type* (PMTCT) Observation" -define "Key population member type* (PMTCT) Observation": +define "Key population member type* E.DE114": + exists "Key population member type* E.DE114 Observation" +define "Key population member type* E.DE114 Observation": [Observation: Concepts."Key population member type* - HIV.E.DE114"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Key population member type* (PMTCT) */ +/* End of Key population member type* E.DE114 */ /* @dataElement: HIV.E.DE115 - Sex worker @@ -12660,16 +12660,16 @@ define "Key population member type* (PMTCT) Observation": @description: Infant's mother is a sex worker */ // TODO: Replace placeholder with relevant CQL logic -define "Sex worker (PMTCT)": - exists "Sex worker (PMTCT) Condition" - or exists "Sex worker (PMTCT) Observation" -define "Sex worker (PMTCT) Condition": +define "Sex worker E.DE115": + exists "Sex worker E.DE115 Condition" + or exists "Sex worker E.DE115 Observation" +define "Sex worker E.DE115 Condition": [Condition: Concepts."Sex worker - HIV.E.DE115"] -define "Sex worker (PMTCT) Observation": - "Key population member type* (PMTCT) Observation" O +define "Sex worker E.DE115 Observation": + "Key population member type* E.DE114 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Sex worker - HIV.E.DE115" -/* End of Sex worker (PMTCT) */ +/* End of Sex worker E.DE115 */ /* @dataElement: HIV.E.DE116 - People who inject drugs @@ -12677,16 +12677,16 @@ define "Sex worker (PMTCT) Observation": @description: Infant's mother is a person who injects drugs */ // TODO: Replace placeholder with relevant CQL logic -define "People who inject drugs (PMTCT)": - exists "People who inject drugs (PMTCT) Condition" - or exists "People who inject drugs (PMTCT) Observation" -define "People who inject drugs (PMTCT) Condition": +define "People who inject drugs E.DE116": + exists "People who inject drugs E.DE116 Condition" + or exists "People who inject drugs E.DE116 Observation" +define "People who inject drugs E.DE116 Condition": [Condition: Concepts."People who inject drugs - HIV.E.DE116"] -define "People who inject drugs (PMTCT) Observation": - "Key population member type* (PMTCT) Observation" O +define "People who inject drugs E.DE116 Observation": + "Key population member type* E.DE114 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."People who inject drugs - HIV.E.DE116" -/* End of People who inject drugs (PMTCT) */ +/* End of People who inject drugs E.DE116 */ /* @dataElement: HIV.E.DE117 - Trans and gender-diverse people @@ -12694,16 +12694,16 @@ define "People who inject drugs (PMTCT) Observation": @description: Infant's mother identifies as trans and gender-diverse */ // TODO: Replace placeholder with relevant CQL logic -define "Trans and gender-diverse people (PMTCT)": - exists "Trans and gender-diverse people (PMTCT) Condition" - or exists "Trans and gender-diverse people (PMTCT) Observation" -define "Trans and gender-diverse people (PMTCT) Condition": +define "Trans and gender-diverse people E.DE117": + exists "Trans and gender-diverse people E.DE117 Condition" + or exists "Trans and gender-diverse people E.DE117 Observation" +define "Trans and gender-diverse people E.DE117 Condition": [Condition: Concepts."Trans and gender-diverse people - HIV.E.DE117"] -define "Trans and gender-diverse people (PMTCT) Observation": - "Key population member type* (PMTCT) Observation" O +define "Trans and gender-diverse people E.DE117 Observation": + "Key population member type* E.DE114 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Trans and gender-diverse people - HIV.E.DE117" -/* End of Trans and gender-diverse people (PMTCT) */ +/* End of Trans and gender-diverse people E.DE117 */ /* @dataElement: HIV.E.DE118 - People living in prisons and other closed setting @@ -12711,16 +12711,16 @@ define "Trans and gender-diverse people (PMTCT) Observation": @description: Infant's mother is in a prison or closed setting */ // TODO: Replace placeholder with relevant CQL logic -define "People living in prisons and other closed setting (PMTCT)": - exists "People living in prisons and other closed setting (PMTCT) Condition" - or exists "People living in prisons and other closed setting (PMTCT) Observation" -define "People living in prisons and other closed setting (PMTCT) Condition": +define "People living in prisons and other closed setting": + exists "People living in prisons and other closed setting Condition" + or exists "People living in prisons and other closed setting Observation" +define "People living in prisons and other closed setting Condition": [Condition: Concepts."People living in prisons and other closed setting"] -define "People living in prisons and other closed setting (PMTCT) Observation": - "Key population member type* (PMTCT) Observation" O +define "People living in prisons and other closed setting Observation": + "Key population member type* E.DE114 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."People living in prisons and other closed setting" -/* End of People living in prisons and other closed setting (PMTCT) */ +/* End of People living in prisons and other closed setting */ /* @dataElement: HIV.E.DE155 - Signs of substantial risk of HIV infection @@ -12728,12 +12728,12 @@ define "People living in prisons and other closed setting (PMTCT) Observation": @description: Signs the client is at a substantial risk of HIV infection */ // TODO: Replace placeholder with relevant CQL logic -define "Signs of substantial risk of HIV infection (PMTCT)": - exists "Signs of substantial risk of HIV infection (PMTCT) Observation" -define "Signs of substantial risk of HIV infection (PMTCT) Observation": +define "Signs of substantial risk of HIV infection E.DE155": + exists "Signs of substantial risk of HIV infection E.DE155 Observation" +define "Signs of substantial risk of HIV infection E.DE155 Observation": [Observation: Concepts."Signs of substantial risk of HIV infection - HIV.E.DE155"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Signs of substantial risk of HIV infection (PMTCT) */ +/* End of Signs of substantial risk of HIV infection E.DE155 */ /* @dataElement: HIV.E.DE156 - No condom use during sex with more than one partner in the past 6 months @@ -12741,16 +12741,16 @@ define "Signs of substantial risk of HIV infection (PMTCT) Observation": @description: Recent vaginal or anal sexual intercourse without a condom with more than one partner */ // TODO: Replace placeholder with relevant CQL logic -define "No condom use during sex with more than one partner in the past 6 months (PMTCT)": - exists "No condom use during sex with more than one partner in the past 6 months (PMTCT) Condition" - or exists "No condom use during sex with more than one partner in the past 6 months (PMTCT) Observation" -define "No condom use during sex with more than one partner in the past 6 months (PMTCT) Condition": +define "No condom use during sex with more than one partner in the past 6 months E.DE156": + exists "No condom use during sex with more than one partner in the past 6 months E.DE156 Condition" + or exists "No condom use during sex with more than one partner in the past 6 months E.DE156 Observation" +define "No condom use during sex with more than one partner in the past 6 months E.DE156 Condition": [Condition: Concepts."No condom use during sex with more than one partner in the past 6 months - HIV.E.DE156"] -define "No condom use during sex with more than one partner in the past 6 months (PMTCT) Observation": - "Signs of substantial risk of HIV infection (PMTCT) Observation" O +define "No condom use during sex with more than one partner in the past 6 months E.DE156 Observation": + "Signs of substantial risk of HIV infection E.DE155 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."No condom use during sex with more than one partner in the past 6 months - HIV.E.DE156" -/* End of No condom use during sex with more than one partner in the past 6 months (PMTCT) */ +/* End of No condom use during sex with more than one partner in the past 6 months E.DE156 */ /* @dataElement: HIV.E.DE157 - STI in the past 6 months @@ -12758,16 +12758,16 @@ define "No condom use during sex with more than one partner in the past 6 months @description: A recent history (in the last 6 months) of a sexually transmitted infection (STI) by laboratory testing or self-report of syndromic STI treatment */ // TODO: Replace placeholder with relevant CQL logic -define "STI in the past 6 months (PMTCT)": - exists "STI in the past 6 months (PMTCT) Condition" - or exists "STI in the past 6 months (PMTCT) Observation" -define "STI in the past 6 months (PMTCT) Condition": +define "STI in the past 6 months E.DE157": + exists "STI in the past 6 months E.DE157 Condition" + or exists "STI in the past 6 months E.DE157 Observation" +define "STI in the past 6 months E.DE157 Condition": [Condition: Concepts."STI in the past 6 months - HIV.E.DE157"] -define "STI in the past 6 months (PMTCT) Observation": - "Signs of substantial risk of HIV infection (PMTCT) Observation" O +define "STI in the past 6 months E.DE157 Observation": + "Signs of substantial risk of HIV infection E.DE155 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."STI in the past 6 months - HIV.E.DE157" -/* End of STI in the past 6 months (PMTCT) */ +/* End of STI in the past 6 months E.DE157 */ /* @dataElement: HIV.E.DE158 - A sexual partner in the past 6 months had one or more HIV risk factors @@ -12775,16 +12775,16 @@ define "STI in the past 6 months (PMTCT) Observation": @description: A recent sex partner of the client had HIV risk factors */ // TODO: Replace placeholder with relevant CQL logic -define "A sexual partner in the past 6 months had one or more HIV risk factors (PMTCT)": - exists "A sexual partner in the past 6 months had one or more HIV risk factors (PMTCT) Condition" - or exists "A sexual partner in the past 6 months had one or more HIV risk factors (PMTCT) Observation" -define "A sexual partner in the past 6 months had one or more HIV risk factors (PMTCT) Condition": +define "A sexual partner in the past 6 months had one or more HIV risk factors E.DE158": + exists "A sexual partner in the past 6 months had one or more HIV risk factors E.DE158 Condition" + or exists "A sexual partner in the past 6 months had one or more HIV risk factors E.DE158 Observation" +define "A sexual partner in the past 6 months had one or more HIV risk factors E.DE158 Condition": [Condition: Concepts."A sexual partner in the past 6 months had one or more HIV risk factors - HIV.E.DE158"] -define "A sexual partner in the past 6 months had one or more HIV risk factors (PMTCT) Observation": - "Signs of substantial risk of HIV infection (PMTCT) Observation" O +define "A sexual partner in the past 6 months had one or more HIV risk factors E.DE158 Observation": + "Signs of substantial risk of HIV infection E.DE155 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."A sexual partner in the past 6 months had one or more HIV risk factors - HIV.E.DE158" -/* End of A sexual partner in the past 6 months had one or more HIV risk factors (PMTCT) */ +/* End of A sexual partner in the past 6 months had one or more HIV risk factors E.DE158 */ /* @dataElement: HIV.E.DE159 - PrEP requested by client @@ -12792,16 +12792,16 @@ define "A sexual partner in the past 6 months had one or more HIV risk factors ( @description: Client is requesting PrEP, reflecting a decision-making process has already taken place and suggesting of substantial risk of HIV */ // TODO: Replace placeholder with relevant CQL logic -define "PrEP requested by client (PMTCT)": - exists "PrEP requested by client (PMTCT) Condition" - or exists "PrEP requested by client (PMTCT) Observation" -define "PrEP requested by client (PMTCT) Condition": +define "PrEP requested by client E.DE159": + exists "PrEP requested by client E.DE159 Condition" + or exists "PrEP requested by client E.DE159 Observation" +define "PrEP requested by client E.DE159 Condition": [Condition: Concepts."PrEP requested by client - HIV.E.DE159"] -define "PrEP requested by client (PMTCT) Observation": - "Signs of substantial risk of HIV infection (PMTCT) Observation" O +define "PrEP requested by client E.DE159 Observation": + "Signs of substantial risk of HIV infection E.DE155 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."PrEP requested by client - HIV.E.DE159" -/* End of PrEP requested by client (PMTCT) */ +/* End of PrEP requested by client E.DE159 */ /* @dataElement: HIV.E.DE160 - Serodiscordant partner @@ -12809,13 +12809,13 @@ define "PrEP requested by client (PMTCT) Observation": @description: Mother's HIV status is different from a current partner's HIV status */ // TODO: Replace placeholder with relevant CQL logic -define "Serodiscordant partner (PMTCT)": - exists "Serodiscordant partner (PMTCT) Observation" -define "Serodiscordant partner (PMTCT) Observation": +define "Serodiscordant partner E.DE160": + exists "Serodiscordant partner E.DE160 Observation" +define "Serodiscordant partner E.DE160 Observation": [Observation: Concepts."Serodiscordant partner - HIV.E.DE160"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Serodiscordant partner (PMTCT) */ +/* End of Serodiscordant partner E.DE160 */ /* @dataElement: HIV.E.DE168 - HIV test type @@ -12823,12 +12823,12 @@ define "Serodiscordant partner (PMTCT) Observation": @description: Type of HIV test */ // TODO: Replace placeholder with relevant CQL logic -define "HIV test type (PMTCT)": - exists "HIV test type (PMTCT) Observation" -define "HIV test type (PMTCT) Observation": +define "HIV test type E.DE168": + exists "HIV test type E.DE168 Observation" +define "HIV test type E.DE168 Observation": [Observation: Concepts."HIV test type - HIV.E.DE168"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of HIV test type (PMTCT) */ +/* End of HIV test type E.DE168 */ /* @dataElement: HIV.E.DE169 - Rapid diagnostic test for HIV @@ -12836,16 +12836,16 @@ define "HIV test type (PMTCT) Observation": @description: Antibody test for HIV performed with a rapid diagnostic (RDT) */ // TODO: Replace placeholder with relevant CQL logic -define "Rapid diagnostic test for HIV (PMTCT)": - exists "Rapid diagnostic test for HIV (PMTCT) Condition" - or exists "Rapid diagnostic test for HIV (PMTCT) Observation" -define "Rapid diagnostic test for HIV (PMTCT) Condition": +define "Rapid diagnostic test for HIV E.DE169": + exists "Rapid diagnostic test for HIV E.DE169 Condition" + or exists "Rapid diagnostic test for HIV E.DE169 Observation" +define "Rapid diagnostic test for HIV E.DE169 Condition": [Condition: Concepts."Rapid diagnostic test for HIV - HIV.E.DE169"] -define "Rapid diagnostic test for HIV (PMTCT) Observation": - "HIV test type (PMTCT) Observation" O +define "Rapid diagnostic test for HIV E.DE169 Observation": + "HIV test type E.DE168 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Rapid diagnostic test for HIV - HIV.E.DE169" -/* End of Rapid diagnostic test for HIV (PMTCT) */ +/* End of Rapid diagnostic test for HIV E.DE169 */ /* @dataElement: HIV.E.DE170 - Enzyme immunoassay for HIV @@ -12853,16 +12853,16 @@ define "Rapid diagnostic test for HIV (PMTCT) Observation": @description: Antibody test for HIV performed with an enzyme immunoassay (EIA) */ // TODO: Replace placeholder with relevant CQL logic -define "Enzyme immunoassay for HIV (PMTCT)": - exists "Enzyme immunoassay for HIV (PMTCT) Condition" - or exists "Enzyme immunoassay for HIV (PMTCT) Observation" -define "Enzyme immunoassay for HIV (PMTCT) Condition": +define "Enzyme immunoassay for HIV E.DE170": + exists "Enzyme immunoassay for HIV E.DE170 Condition" + or exists "Enzyme immunoassay for HIV E.DE170 Observation" +define "Enzyme immunoassay for HIV E.DE170 Condition": [Condition: Concepts."Enzyme immunoassay for HIV - HIV.E.DE170"] -define "Enzyme immunoassay for HIV (PMTCT) Observation": - "HIV test type (PMTCT) Observation" O +define "Enzyme immunoassay for HIV E.DE170 Observation": + "HIV test type E.DE168 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Enzyme immunoassay for HIV - HIV.E.DE170" -/* End of Enzyme immunoassay for HIV (PMTCT) */ +/* End of Enzyme immunoassay for HIV E.DE170 */ /* @dataElement: HIV.E.DE171 - Nucleic acid test for HIV @@ -12870,16 +12870,16 @@ define "Enzyme immunoassay for HIV (PMTCT) Observation": @description: Virological test, which includes testing for early infant diagnosis */ // TODO: Replace placeholder with relevant CQL logic -define "Nucleic acid test for HIV (PMTCT)": - exists "Nucleic acid test for HIV (PMTCT) Condition" - or exists "Nucleic acid test for HIV (PMTCT) Observation" -define "Nucleic acid test for HIV (PMTCT) Condition": +define "Nucleic acid test for HIV E.DE171": + exists "Nucleic acid test for HIV E.DE171 Condition" + or exists "Nucleic acid test for HIV E.DE171 Observation" +define "Nucleic acid test for HIV E.DE171 Condition": [Condition: Concepts."Nucleic acid test for HIV - HIV.E.DE171"] -define "Nucleic acid test for HIV (PMTCT) Observation": - "HIV test type (PMTCT) Observation" O +define "Nucleic acid test for HIV E.DE171 Observation": + "HIV test type E.DE168 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Nucleic acid test for HIV - HIV.E.DE171" -/* End of Nucleic acid test for HIV (PMTCT) */ +/* End of Nucleic acid test for HIV E.DE171 */ /* @dataElement: HIV.E.DE172 - Dual HIV/syphilis rapid diagnostic test @@ -12887,16 +12887,16 @@ define "Nucleic acid test for HIV (PMTCT) Observation": @description: Antibody test for HIV and syphilis performed with a rapid diagnostic */ // TODO: Replace placeholder with relevant CQL logic -define "Dual HIV/syphilis rapid diagnostic test (PMTCT)": - exists "Dual HIV/syphilis rapid diagnostic test (PMTCT) Condition" - or exists "Dual HIV/syphilis rapid diagnostic test (PMTCT) Observation" -define "Dual HIV/syphilis rapid diagnostic test (PMTCT) Condition": +define "Dual HIV/syphilis rapid diagnostic test E.DE172": + exists "Dual HIV/syphilis rapid diagnostic test E.DE172 Condition" + or exists "Dual HIV/syphilis rapid diagnostic test E.DE172 Observation" +define "Dual HIV/syphilis rapid diagnostic test E.DE172 Condition": [Condition: Concepts."Dual HIV/syphilis rapid diagnostic test - HIV.E.DE172"] -define "Dual HIV/syphilis rapid diagnostic test (PMTCT) Observation": - "HIV test type (PMTCT) Observation" O +define "Dual HIV/syphilis rapid diagnostic test E.DE172 Observation": + "HIV test type E.DE168 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Dual HIV/syphilis rapid diagnostic test - HIV.E.DE172" -/* End of Dual HIV/syphilis rapid diagnostic test (PMTCT) */ +/* End of Dual HIV/syphilis rapid diagnostic test E.DE172 */ /* @dataElement: HIV.E.DE173 - Maternal and child health service visit @@ -12904,12 +12904,12 @@ define "Dual HIV/syphilis rapid diagnostic test (PMTCT) Observation": @description: Maternal and child health service visit attended by an HIV-exposed infant */ // TODO: Replace placeholder with relevant CQL logic -define "Maternal and child health service visit (PMTCT)": - exists "Maternal and child health service visit (PMTCT) Observation" -define "Maternal and child health service visit (PMTCT) Observation": +define "Maternal and child health service visit": + exists "Maternal and child health service visit Observation" +define "Maternal and child health service visit Observation": [Observation: Concepts."Maternal and child health service visit"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Maternal and child health service visit (PMTCT) */ +/* End of Maternal and child health service visit */ /* @dataElement: HIV.E.DE174 - 12-month visit @@ -12917,16 +12917,16 @@ define "Maternal and child health service visit (PMTCT) Observation": @description: HIV-exposed infant attending MCH services for a 12-month visit */ // TODO: Replace placeholder with relevant CQL logic -define "12-month visit (PMTCT)": - exists "12-month visit (PMTCT) Condition" - or exists "12-month visit (PMTCT) Observation" -define "12-month visit (PMTCT) Condition": +define "12-month visit": + exists "12-month visit Condition" + or exists "12-month visit Observation" +define "12-month visit Condition": [Condition: Concepts."12-month visit"] -define "12-month visit (PMTCT) Observation": - "Maternal and child health service visit (PMTCT) Observation" O +define "12-month visit Observation": + "Maternal and child health service visit Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."12-month visit" -/* End of 12-month visit (PMTCT) */ +/* End of 12-month visit */ /* @dataElement: HIV.E.DE175 - 24-month visit @@ -12934,16 +12934,16 @@ define "12-month visit (PMTCT) Observation": @description: HIV-exposed infants attending MCH services for a 24-month visit */ // TODO: Replace placeholder with relevant CQL logic -define "24-month visit (PMTCT)": - exists "24-month visit (PMTCT) Condition" - or exists "24-month visit (PMTCT) Observation" -define "24-month visit (PMTCT) Condition": +define "24-month visit": + exists "24-month visit Condition" + or exists "24-month visit Observation" +define "24-month visit Condition": [Condition: Concepts."24-month visit"] -define "24-month visit (PMTCT) Observation": - "Maternal and child health service visit (PMTCT) Observation" O +define "24-month visit Observation": + "Maternal and child health service visit Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."24-month visit" -/* End of 24-month visit (PMTCT) */ +/* End of 24-month visit */ /* @dataElement: HIV.E.DE176 - First visit after the end of breastfeeding @@ -12951,16 +12951,16 @@ define "24-month visit (PMTCT) Observation": @description: HIV-exposed infant attending MCH services for a first visit after the end of breastfeeding */ // TODO: Replace placeholder with relevant CQL logic -define "First visit after the end of breastfeeding (PMTCT)": - exists "First visit after the end of breastfeeding (PMTCT) Condition" - or exists "First visit after the end of breastfeeding (PMTCT) Observation" -define "First visit after the end of breastfeeding (PMTCT) Condition": +define "First visit after the end of breastfeeding": + exists "First visit after the end of breastfeeding Condition" + or exists "First visit after the end of breastfeeding Observation" +define "First visit after the end of breastfeeding Condition": [Condition: Concepts."First visit after the end of breastfeeding"] -define "First visit after the end of breastfeeding (PMTCT) Observation": - "Maternal and child health service visit (PMTCT) Observation" O +define "First visit after the end of breastfeeding Observation": + "Maternal and child health service visit Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."First visit after the end of breastfeeding" -/* End of First visit after the end of breastfeeding (PMTCT) */ +/* End of First visit after the end of breastfeeding */ /* @dataElement: HIV.E.DE179 - Registered in birth cohort @@ -12968,13 +12968,13 @@ define "First visit after the end of breastfeeding (PMTCT) Observation": @description: Whether the infant has been registered in a birth cohort */ // TODO: Replace placeholder with relevant CQL logic -define "Registered in birth cohort (PMTCT)": - exists "Registered in birth cohort (PMTCT) Observation" -define "Registered in birth cohort (PMTCT) Observation": +define "Registered in birth cohort": + exists "Registered in birth cohort Observation" +define "Registered in birth cohort Observation": [Observation: Concepts."Registered in birth cohort"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Registered in birth cohort (PMTCT) */ +/* End of Registered in birth cohort */ /* @dataElement: HIV.E.DE180 - EID sample number @@ -12982,12 +12982,12 @@ define "Registered in birth cohort (PMTCT) Observation": @description: Early infant diagnosis (EID) sample number */ // TODO: Replace placeholder with relevant CQL logic -define "EID sample number (PMTCT)": - exists "EID sample number (PMTCT) Observation" -define "EID sample number (PMTCT) Observation": +define "EID sample number": + exists "EID sample number Observation" +define "EID sample number Observation": [Observation: Concepts."EID sample number"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of EID sample number (PMTCT) */ +/* End of EID sample number */ /* @dataElement: HIV.E.DE181 - EID sample 1 @@ -12995,16 +12995,16 @@ define "EID sample number (PMTCT) Observation": @description: First sample used to test an infant for HIV */ // TODO: Replace placeholder with relevant CQL logic -define "EID sample 1 (PMTCT)": - exists "EID sample 1 (PMTCT) Condition" - or exists "EID sample 1 (PMTCT) Observation" -define "EID sample 1 (PMTCT) Condition": +define "EID sample 1": + exists "EID sample 1 Condition" + or exists "EID sample 1 Observation" +define "EID sample 1 Condition": [Condition: Concepts."EID sample 1"] -define "EID sample 1 (PMTCT) Observation": - "EID sample number (PMTCT) Observation" O +define "EID sample 1 Observation": + "EID sample number Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."EID sample 1" -/* End of EID sample 1 (PMTCT) */ +/* End of EID sample 1 */ /* @dataElement: HIV.E.DE182 - EID sample 2 @@ -13012,16 +13012,16 @@ define "EID sample 1 (PMTCT) Observation": @description: Second sample used to test an infant for HIV */ // TODO: Replace placeholder with relevant CQL logic -define "EID sample 2 (PMTCT)": - exists "EID sample 2 (PMTCT) Condition" - or exists "EID sample 2 (PMTCT) Observation" -define "EID sample 2 (PMTCT) Condition": +define "EID sample 2": + exists "EID sample 2 Condition" + or exists "EID sample 2 Observation" +define "EID sample 2 Condition": [Condition: Concepts."EID sample 2"] -define "EID sample 2 (PMTCT) Observation": - "EID sample number (PMTCT) Observation" O +define "EID sample 2 Observation": + "EID sample number Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."EID sample 2" -/* End of EID sample 2 (PMTCT) */ +/* End of EID sample 2 */ /* @dataElement: HIV.E.DE183 - EID test number @@ -13029,12 +13029,12 @@ define "EID sample 2 (PMTCT) Observation": @description: Early infant diagnosis (EID) HIV test number using the same sample */ // TODO: Replace placeholder with relevant CQL logic -define "EID test number (PMTCT)": - exists "EID test number (PMTCT) Observation" -define "EID test number (PMTCT) Observation": +define "EID test number": + exists "EID test number Observation" +define "EID test number Observation": [Observation: Concepts."EID test number"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of EID test number (PMTCT) */ +/* End of EID test number */ /* @dataElement: HIV.E.DE184 - EID test number 1 @@ -13042,16 +13042,16 @@ define "EID test number (PMTCT) Observation": @description: First test on a sample to test an infant for HIV */ // TODO: Replace placeholder with relevant CQL logic -define "EID test number 1 (PMTCT)": - exists "EID test number 1 (PMTCT) Condition" - or exists "EID test number 1 (PMTCT) Observation" -define "EID test number 1 (PMTCT) Condition": +define "EID test number 1": + exists "EID test number 1 Condition" + or exists "EID test number 1 Observation" +define "EID test number 1 Condition": [Condition: Concepts."EID test number 1"] -define "EID test number 1 (PMTCT) Observation": - "EID test number (PMTCT) Observation" O +define "EID test number 1 Observation": + "EID test number Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."EID test number 1" -/* End of EID test number 1 (PMTCT) */ +/* End of EID test number 1 */ /* @dataElement: HIV.E.DE185 - EID test number 2 @@ -13059,16 +13059,16 @@ define "EID test number 1 (PMTCT) Observation": @description: Second test on a sample to test an infant for HIV */ // TODO: Replace placeholder with relevant CQL logic -define "EID test number 2 (PMTCT)": - exists "EID test number 2 (PMTCT) Condition" - or exists "EID test number 2 (PMTCT) Observation" -define "EID test number 2 (PMTCT) Condition": +define "EID test number 2": + exists "EID test number 2 Condition" + or exists "EID test number 2 Observation" +define "EID test number 2 Condition": [Condition: Concepts."EID test number 2"] -define "EID test number 2 (PMTCT) Observation": - "EID test number (PMTCT) Observation" O +define "EID test number 2 Observation": + "EID test number Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."EID test number 2" -/* End of EID test number 2 (PMTCT) */ +/* End of EID test number 2 */ /* @dataElement: HIV.E.DE186 - EID test number 1 test result @@ -13076,12 +13076,12 @@ define "EID test number 2 (PMTCT) Observation": @description: Early infant diagnosis test number 1 test result */ // TODO: Replace placeholder with relevant CQL logic -define "EID test number 1 test result (PMTCT)": - exists "EID test number 1 test result (PMTCT) Observation" -define "EID test number 1 test result (PMTCT) Observation": +define "EID test number 1 test result": + exists "EID test number 1 test result Observation" +define "EID test number 1 test result Observation": [Observation: Concepts."EID test number 1 test result"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of EID test number 1 test result (PMTCT) */ +/* End of EID test number 1 test result */ /* @dataElement: HIV.E.DE187 - Positive @@ -13089,16 +13089,16 @@ define "EID test number 1 test result (PMTCT) Observation": @description: Positive HIV test result from the nucleic acid test */ // TODO: Replace placeholder with relevant CQL logic -define "Positive (PMTCT|EDE187)": - exists "Positive (PMTCT|EDE187) Condition" - or exists "Positive (PMTCT|EDE187) Observation" -define "Positive (PMTCT|EDE187) Condition": +define "Positive E.DE187": + exists "Positive E.DE187 Condition" + or exists "Positive E.DE187 Observation" +define "Positive E.DE187 Condition": [Condition: Concepts."Positive - HIV.E.DE187"] -define "Positive (PMTCT|EDE187) Observation": - "EID test number 1 test result (PMTCT) Observation" O +define "Positive E.DE187 Observation": + "EID test number 1 test result Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Positive - HIV.E.DE187" -/* End of Positive (PMTCT|EDE187) */ +/* End of Positive E.DE187 */ /* @dataElement: HIV.E.DE188 - Negative @@ -13106,16 +13106,16 @@ define "Positive (PMTCT|EDE187) Observation": @description: Negative HIV test result from the nucleic acid test */ // TODO: Replace placeholder with relevant CQL logic -define "Negative (PMTCT|EDE188)": - exists "Negative (PMTCT|EDE188) Condition" - or exists "Negative (PMTCT|EDE188) Observation" -define "Negative (PMTCT|EDE188) Condition": +define "Negative E.DE188": + exists "Negative E.DE188 Condition" + or exists "Negative E.DE188 Observation" +define "Negative E.DE188 Condition": [Condition: Concepts."Negative - HIV.E.DE188"] -define "Negative (PMTCT|EDE188) Observation": - "EID test number 1 test result (PMTCT) Observation" O +define "Negative E.DE188 Observation": + "EID test number 1 test result Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Negative - HIV.E.DE188" -/* End of Negative (PMTCT|EDE188) */ +/* End of Negative E.DE188 */ /* @dataElement: HIV.E.DE189 - Indeterminate @@ -13123,16 +13123,16 @@ define "Negative (PMTCT|EDE188) Observation": @description: Indeterminate HIV test result from the nucleic acid test */ // TODO: Replace placeholder with relevant CQL logic -define "Indeterminate (PMTCT|EDE189)": - exists "Indeterminate (PMTCT|EDE189) Condition" - or exists "Indeterminate (PMTCT|EDE189) Observation" -define "Indeterminate (PMTCT|EDE189) Condition": +define "Indeterminate E.DE189": + exists "Indeterminate E.DE189 Condition" + or exists "Indeterminate E.DE189 Observation" +define "Indeterminate E.DE189 Condition": [Condition: Concepts."Indeterminate - HIV.E.DE189"] -define "Indeterminate (PMTCT|EDE189) Observation": - "EID test number 1 test result (PMTCT) Observation" O +define "Indeterminate E.DE189 Observation": + "EID test number 1 test result Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Indeterminate - HIV.E.DE189" -/* End of Indeterminate (PMTCT|EDE189) */ +/* End of Indeterminate E.DE189 */ /* @dataElement: HIV.E.DE190 - EID test number 2 test result @@ -13140,12 +13140,12 @@ define "Indeterminate (PMTCT|EDE189) Observation": @description: Early infant diagnosis test number 2 test result */ // TODO: Replace placeholder with relevant CQL logic -define "EID test number 2 test result (PMTCT)": - exists "EID test number 2 test result (PMTCT) Observation" -define "EID test number 2 test result (PMTCT) Observation": +define "EID test number 2 test result": + exists "EID test number 2 test result Observation" +define "EID test number 2 test result Observation": [Observation: Concepts."EID test number 2 test result"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of EID test number 2 test result (PMTCT) */ +/* End of EID test number 2 test result */ /* @dataElement: HIV.E.DE191 - Positive @@ -13153,16 +13153,16 @@ define "EID test number 2 test result (PMTCT) Observation": @description: Positive HIV test result from the nucleic acid test */ // TODO: Replace placeholder with relevant CQL logic -define "Positive (PMTCT|EDE191)": - exists "Positive (PMTCT|EDE191) Condition" - or exists "Positive (PMTCT|EDE191) Observation" -define "Positive (PMTCT|EDE191) Condition": +define "Positive E.DE191": + exists "Positive E.DE191 Condition" + or exists "Positive E.DE191 Observation" +define "Positive E.DE191 Condition": [Condition: Concepts."Positive - HIV.E.DE191"] -define "Positive (PMTCT|EDE191) Observation": - "EID test number 2 test result (PMTCT) Observation" O +define "Positive E.DE191 Observation": + "EID test number 2 test result Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Positive - HIV.E.DE191" -/* End of Positive (PMTCT|EDE191) */ +/* End of Positive E.DE191 */ /* @dataElement: HIV.E.DE192 - Negative @@ -13170,16 +13170,16 @@ define "Positive (PMTCT|EDE191) Observation": @description: Negative HIV test result from the nucleic acid test */ // TODO: Replace placeholder with relevant CQL logic -define "Negative (PMTCT|EDE192)": - exists "Negative (PMTCT|EDE192) Condition" - or exists "Negative (PMTCT|EDE192) Observation" -define "Negative (PMTCT|EDE192) Condition": +define "Negative E.DE192": + exists "Negative E.DE192 Condition" + or exists "Negative E.DE192 Observation" +define "Negative E.DE192 Condition": [Condition: Concepts."Negative - HIV.E.DE192"] -define "Negative (PMTCT|EDE192) Observation": - "EID test number 2 test result (PMTCT) Observation" O +define "Negative E.DE192 Observation": + "EID test number 2 test result Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Negative - HIV.E.DE192" -/* End of Negative (PMTCT|EDE192) */ +/* End of Negative E.DE192 */ /* @dataElement: HIV.E.DE193 - Indeterminate @@ -13187,16 +13187,16 @@ define "Negative (PMTCT|EDE192) Observation": @description: Indeterminate HIV test result from the nucleic acid test */ // TODO: Replace placeholder with relevant CQL logic -define "Indeterminate (PMTCT|EDE193)": - exists "Indeterminate (PMTCT|EDE193) Condition" - or exists "Indeterminate (PMTCT|EDE193) Observation" -define "Indeterminate (PMTCT|EDE193) Condition": +define "Indeterminate E.DE193": + exists "Indeterminate E.DE193 Condition" + or exists "Indeterminate E.DE193 Observation" +define "Indeterminate E.DE193 Condition": [Condition: Concepts."Indeterminate - HIV.E.DE193"] -define "Indeterminate (PMTCT|EDE193) Observation": - "EID test number 2 test result (PMTCT) Observation" O +define "Indeterminate E.DE193 Observation": + "EID test number 2 test result Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Indeterminate - HIV.E.DE193" -/* End of Indeterminate (PMTCT|EDE193) */ +/* End of Indeterminate E.DE193 */ /* @dataElement: HIV.E.DE194 - Assay number in testing strategy @@ -13204,12 +13204,12 @@ define "Indeterminate (PMTCT|EDE193) Observation": @description: The number of the assay (test kit) in the HIV testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Assay number in testing strategy (PMTCT)": - exists "Assay number in testing strategy (PMTCT) Observation" -define "Assay number in testing strategy (PMTCT) Observation": +define "Assay number in testing strategy E.DE194": + exists "Assay number in testing strategy E.DE194 Observation" +define "Assay number in testing strategy E.DE194 Observation": [Observation: Concepts."Assay number in testing strategy - HIV.E.DE194"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Assay number in testing strategy (PMTCT) */ +/* End of Assay number in testing strategy E.DE194 */ /* @dataElement: HIV.E.DE195 - Assay 0 @@ -13217,16 +13217,16 @@ define "Assay number in testing strategy (PMTCT) Observation": @description: A community outreach test-for-triage or self-test which is not included in the HIV testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Assay 0 (PMTCT)": - exists "Assay 0 (PMTCT) Condition" - or exists "Assay 0 (PMTCT) Observation" -define "Assay 0 (PMTCT) Condition": +define "Assay 0 E.DE195": + exists "Assay 0 E.DE195 Condition" + or exists "Assay 0 E.DE195 Observation" +define "Assay 0 E.DE195 Condition": [Condition: Concepts."Assay 0 - HIV.E.DE195"] -define "Assay 0 (PMTCT) Observation": - "Assay number in testing strategy (PMTCT) Observation" O +define "Assay 0 E.DE195 Observation": + "Assay number in testing strategy E.DE194 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Assay 0 - HIV.E.DE195" -/* End of Assay 0 (PMTCT) */ +/* End of Assay 0 E.DE195 */ /* @dataElement: HIV.E.DE196 - Assay 1 @@ -13234,16 +13234,16 @@ define "Assay 0 (PMTCT) Observation": @description: The first test in the HIV testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Assay 1 (PMTCT)": - exists "Assay 1 (PMTCT) Condition" - or exists "Assay 1 (PMTCT) Observation" -define "Assay 1 (PMTCT) Condition": +define "Assay 1 E.DE196": + exists "Assay 1 E.DE196 Condition" + or exists "Assay 1 E.DE196 Observation" +define "Assay 1 E.DE196 Condition": [Condition: Concepts."Assay 1 - HIV.E.DE196"] -define "Assay 1 (PMTCT) Observation": - "Assay number in testing strategy (PMTCT) Observation" O +define "Assay 1 E.DE196 Observation": + "Assay number in testing strategy E.DE194 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Assay 1 - HIV.E.DE196" -/* End of Assay 1 (PMTCT) */ +/* End of Assay 1 E.DE196 */ /* @dataElement: HIV.E.DE197 - Assay 2 @@ -13251,16 +13251,16 @@ define "Assay 1 (PMTCT) Observation": @description: The second test in the HIV testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Assay 2 (PMTCT)": - exists "Assay 2 (PMTCT) Condition" - or exists "Assay 2 (PMTCT) Observation" -define "Assay 2 (PMTCT) Condition": +define "Assay 2 E.DE197": + exists "Assay 2 E.DE197 Condition" + or exists "Assay 2 E.DE197 Observation" +define "Assay 2 E.DE197 Condition": [Condition: Concepts."Assay 2 - HIV.E.DE197"] -define "Assay 2 (PMTCT) Observation": - "Assay number in testing strategy (PMTCT) Observation" O +define "Assay 2 E.DE197 Observation": + "Assay number in testing strategy E.DE194 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Assay 2 - HIV.E.DE197" -/* End of Assay 2 (PMTCT) */ +/* End of Assay 2 E.DE197 */ /* @dataElement: HIV.E.DE198 - Assay 3 @@ -13268,16 +13268,16 @@ define "Assay 2 (PMTCT) Observation": @description: The third test in the HIV testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Assay 3 (PMTCT)": - exists "Assay 3 (PMTCT) Condition" - or exists "Assay 3 (PMTCT) Observation" -define "Assay 3 (PMTCT) Condition": +define "Assay 3 E.DE198": + exists "Assay 3 E.DE198 Condition" + or exists "Assay 3 E.DE198 Observation" +define "Assay 3 E.DE198 Condition": [Condition: Concepts."Assay 3 - HIV.E.DE198"] -define "Assay 3 (PMTCT) Observation": - "Assay number in testing strategy (PMTCT) Observation" O +define "Assay 3 E.DE198 Observation": + "Assay number in testing strategy E.DE194 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Assay 3 - HIV.E.DE198" -/* End of Assay 3 (PMTCT) */ +/* End of Assay 3 E.DE198 */ /* @dataElement: HIV.E.DE199 - Assay 1 repeated @@ -13285,16 +13285,16 @@ define "Assay 3 (PMTCT) Observation": @description: The first test in the HIV testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Assay 1 repeated (PMTCT)": - exists "Assay 1 repeated (PMTCT) Condition" - or exists "Assay 1 repeated (PMTCT) Observation" -define "Assay 1 repeated (PMTCT) Condition": +define "Assay 1 repeated E.DE199": + exists "Assay 1 repeated E.DE199 Condition" + or exists "Assay 1 repeated E.DE199 Observation" +define "Assay 1 repeated E.DE199 Condition": [Condition: Concepts."Assay 1 repeated - HIV.E.DE199"] -define "Assay 1 repeated (PMTCT) Observation": - "Assay number in testing strategy (PMTCT) Observation" O +define "Assay 1 repeated E.DE199 Observation": + "Assay number in testing strategy E.DE194 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Assay 1 repeated - HIV.E.DE199" -/* End of Assay 1 repeated (PMTCT) */ +/* End of Assay 1 repeated E.DE199 */ /* @dataElement: HIV.E.DE200 - Test result of HIV assay 1 @@ -13302,12 +13302,12 @@ define "Assay 1 repeated (PMTCT) Observation": @description: The result of the first HIV assay in the testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Test result of HIV assay 1 (PMTCT)": - exists "Test result of HIV assay 1 (PMTCT) Observation" -define "Test result of HIV assay 1 (PMTCT) Observation": +define "Test result of HIV assay 1 E.DE200": + exists "Test result of HIV assay 1 E.DE200 Observation" +define "Test result of HIV assay 1 E.DE200 Observation": [Observation: Concepts."Test result of HIV assay 1 - HIV.E.DE200"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Test result of HIV assay 1 (PMTCT) */ +/* End of Test result of HIV assay 1 E.DE200 */ /* @dataElement: HIV.E.DE201 - Reactive @@ -13315,16 +13315,16 @@ define "Test result of HIV assay 1 (PMTCT) Observation": @description: The result of the HIV assay in the testing strategy was reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Reactive (PMTCT|EDE201)": - exists "Reactive (PMTCT|EDE201) Condition" - or exists "Reactive (PMTCT|EDE201) Observation" -define "Reactive (PMTCT|EDE201) Condition": +define "Reactive E.DE201": + exists "Reactive E.DE201 Condition" + or exists "Reactive E.DE201 Observation" +define "Reactive E.DE201 Condition": [Condition: Concepts."Reactive - HIV.E.DE201"] -define "Reactive (PMTCT|EDE201) Observation": - "Test result of HIV assay 1 (PMTCT) Observation" O +define "Reactive E.DE201 Observation": + "Test result of HIV assay 1 E.DE200 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Reactive - HIV.E.DE201" -/* End of Reactive (PMTCT|EDE201) */ +/* End of Reactive E.DE201 */ /* @dataElement: HIV.E.DE202 - Non-reactive @@ -13332,16 +13332,16 @@ define "Reactive (PMTCT|EDE201) Observation": @description: The result of the HIV assay in the testing strategy was non-reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Non-reactive (PMTCT|EDE202)": - exists "Non-reactive (PMTCT|EDE202) Condition" - or exists "Non-reactive (PMTCT|EDE202) Observation" -define "Non-reactive (PMTCT|EDE202) Condition": +define "Non-reactive E.DE202": + exists "Non-reactive E.DE202 Condition" + or exists "Non-reactive E.DE202 Observation" +define "Non-reactive E.DE202 Condition": [Condition: Concepts."Non-reactive - HIV.E.DE202"] -define "Non-reactive (PMTCT|EDE202) Observation": - "Test result of HIV assay 1 (PMTCT) Observation" O +define "Non-reactive E.DE202 Observation": + "Test result of HIV assay 1 E.DE200 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Non-reactive - HIV.E.DE202" -/* End of Non-reactive (PMTCT|EDE202) */ +/* End of Non-reactive E.DE202 */ /* @dataElement: HIV.E.DE203 - Invalid @@ -13349,16 +13349,16 @@ define "Non-reactive (PMTCT|EDE202) Observation": @description: The result of the HIV assay in the testing strategy was invalid */ // TODO: Replace placeholder with relevant CQL logic -define "Invalid (PMTCT|EDE203)": - exists "Invalid (PMTCT|EDE203) Condition" - or exists "Invalid (PMTCT|EDE203) Observation" -define "Invalid (PMTCT|EDE203) Condition": +define "Invalid E.DE203": + exists "Invalid E.DE203 Condition" + or exists "Invalid E.DE203 Observation" +define "Invalid E.DE203 Condition": [Condition: Concepts."Invalid - HIV.E.DE203"] -define "Invalid (PMTCT|EDE203) Observation": - "Test result of HIV assay 1 (PMTCT) Observation" O +define "Invalid E.DE203 Observation": + "Test result of HIV assay 1 E.DE200 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Invalid - HIV.E.DE203" -/* End of Invalid (PMTCT|EDE203) */ +/* End of Invalid E.DE203 */ /* @dataElement: HIV.E.DE204 - Test result of HIV assay 2 @@ -13366,12 +13366,12 @@ define "Invalid (PMTCT|EDE203) Observation": @description: The result of the second HIV assay in the testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Test result of HIV assay 2 (PMTCT)": - exists "Test result of HIV assay 2 (PMTCT) Observation" -define "Test result of HIV assay 2 (PMTCT) Observation": +define "Test result of HIV assay 2 E.DE204": + exists "Test result of HIV assay 2 E.DE204 Observation" +define "Test result of HIV assay 2 E.DE204 Observation": [Observation: Concepts."Test result of HIV assay 2 - HIV.E.DE204"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Test result of HIV assay 2 (PMTCT) */ +/* End of Test result of HIV assay 2 E.DE204 */ /* @dataElement: HIV.E.DE205 - Reactive @@ -13379,16 +13379,16 @@ define "Test result of HIV assay 2 (PMTCT) Observation": @description: The result of the HIV assay in the testing strategy was reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Reactive (PMTCT|EDE205)": - exists "Reactive (PMTCT|EDE205) Condition" - or exists "Reactive (PMTCT|EDE205) Observation" -define "Reactive (PMTCT|EDE205) Condition": +define "Reactive E.DE205": + exists "Reactive E.DE205 Condition" + or exists "Reactive E.DE205 Observation" +define "Reactive E.DE205 Condition": [Condition: Concepts."Reactive - HIV.E.DE205"] -define "Reactive (PMTCT|EDE205) Observation": - "Test result of HIV assay 2 (PMTCT) Observation" O +define "Reactive E.DE205 Observation": + "Test result of HIV assay 2 E.DE204 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Reactive - HIV.E.DE205" -/* End of Reactive (PMTCT|EDE205) */ +/* End of Reactive E.DE205 */ /* @dataElement: HIV.E.DE206 - Non-reactive @@ -13396,16 +13396,16 @@ define "Reactive (PMTCT|EDE205) Observation": @description: The result of the HIV assay in the testing strategy was non-reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Non-reactive (PMTCT|EDE206)": - exists "Non-reactive (PMTCT|EDE206) Condition" - or exists "Non-reactive (PMTCT|EDE206) Observation" -define "Non-reactive (PMTCT|EDE206) Condition": +define "Non-reactive E.DE206": + exists "Non-reactive E.DE206 Condition" + or exists "Non-reactive E.DE206 Observation" +define "Non-reactive E.DE206 Condition": [Condition: Concepts."Non-reactive - HIV.E.DE206"] -define "Non-reactive (PMTCT|EDE206) Observation": - "Test result of HIV assay 2 (PMTCT) Observation" O +define "Non-reactive E.DE206 Observation": + "Test result of HIV assay 2 E.DE204 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Non-reactive - HIV.E.DE206" -/* End of Non-reactive (PMTCT|EDE206) */ +/* End of Non-reactive E.DE206 */ /* @dataElement: HIV.E.DE207 - Invalid @@ -13413,16 +13413,16 @@ define "Non-reactive (PMTCT|EDE206) Observation": @description: The result of the HIV assay in the testing strategy was invalid */ // TODO: Replace placeholder with relevant CQL logic -define "Invalid (PMTCT|EDE207)": - exists "Invalid (PMTCT|EDE207) Condition" - or exists "Invalid (PMTCT|EDE207) Observation" -define "Invalid (PMTCT|EDE207) Condition": +define "Invalid E.DE207": + exists "Invalid E.DE207 Condition" + or exists "Invalid E.DE207 Observation" +define "Invalid E.DE207 Condition": [Condition: Concepts."Invalid - HIV.E.DE207"] -define "Invalid (PMTCT|EDE207) Observation": - "Test result of HIV assay 2 (PMTCT) Observation" O +define "Invalid E.DE207 Observation": + "Test result of HIV assay 2 E.DE204 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Invalid - HIV.E.DE207" -/* End of Invalid (PMTCT|EDE207) */ +/* End of Invalid E.DE207 */ /* @dataElement: HIV.E.DE208 - Test result of HIV assay 3 @@ -13430,12 +13430,12 @@ define "Invalid (PMTCT|EDE207) Observation": @description: The result of the third HIV assay in the testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Test result of HIV assay 3 (PMTCT)": - exists "Test result of HIV assay 3 (PMTCT) Observation" -define "Test result of HIV assay 3 (PMTCT) Observation": +define "Test result of HIV assay 3 E.DE208": + exists "Test result of HIV assay 3 E.DE208 Observation" +define "Test result of HIV assay 3 E.DE208 Observation": [Observation: Concepts."Test result of HIV assay 3 - HIV.E.DE208"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Test result of HIV assay 3 (PMTCT) */ +/* End of Test result of HIV assay 3 E.DE208 */ /* @dataElement: HIV.E.DE209 - Reactive @@ -13443,16 +13443,16 @@ define "Test result of HIV assay 3 (PMTCT) Observation": @description: The result of the HIV assay in the testing strategy was reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Reactive (PMTCT|EDE209)": - exists "Reactive (PMTCT|EDE209) Condition" - or exists "Reactive (PMTCT|EDE209) Observation" -define "Reactive (PMTCT|EDE209) Condition": +define "Reactive E.DE209": + exists "Reactive E.DE209 Condition" + or exists "Reactive E.DE209 Observation" +define "Reactive E.DE209 Condition": [Condition: Concepts."Reactive - HIV.E.DE209"] -define "Reactive (PMTCT|EDE209) Observation": - "Test result of HIV assay 3 (PMTCT) Observation" O +define "Reactive E.DE209 Observation": + "Test result of HIV assay 3 E.DE208 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Reactive - HIV.E.DE209" -/* End of Reactive (PMTCT|EDE209) */ +/* End of Reactive E.DE209 */ /* @dataElement: HIV.E.DE210 - Non-reactive @@ -13460,16 +13460,16 @@ define "Reactive (PMTCT|EDE209) Observation": @description: The result of the HIV assay in the testing strategy was non-reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Non-reactive (PMTCT|EDE210)": - exists "Non-reactive (PMTCT|EDE210) Condition" - or exists "Non-reactive (PMTCT|EDE210) Observation" -define "Non-reactive (PMTCT|EDE210) Condition": +define "Non-reactive E.DE210": + exists "Non-reactive E.DE210 Condition" + or exists "Non-reactive E.DE210 Observation" +define "Non-reactive E.DE210 Condition": [Condition: Concepts."Non-reactive - HIV.E.DE210"] -define "Non-reactive (PMTCT|EDE210) Observation": - "Test result of HIV assay 3 (PMTCT) Observation" O +define "Non-reactive E.DE210 Observation": + "Test result of HIV assay 3 E.DE208 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Non-reactive - HIV.E.DE210" -/* End of Non-reactive (PMTCT|EDE210) */ +/* End of Non-reactive E.DE210 */ /* @dataElement: HIV.E.DE211 - Invalid @@ -13477,16 +13477,16 @@ define "Non-reactive (PMTCT|EDE210) Observation": @description: The result of the HIV assay in the testing strategy was invalid */ // TODO: Replace placeholder with relevant CQL logic -define "Invalid (PMTCT|EDE211)": - exists "Invalid (PMTCT|EDE211) Condition" - or exists "Invalid (PMTCT|EDE211) Observation" -define "Invalid (PMTCT|EDE211) Condition": +define "Invalid E.DE211": + exists "Invalid E.DE211 Condition" + or exists "Invalid E.DE211 Observation" +define "Invalid E.DE211 Condition": [Condition: Concepts."Invalid - HIV.E.DE211"] -define "Invalid (PMTCT|EDE211) Observation": - "Test result of HIV assay 3 (PMTCT) Observation" O +define "Invalid E.DE211 Observation": + "Test result of HIV assay 3 E.DE208 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Invalid - HIV.E.DE211" -/* End of Invalid (PMTCT|EDE211) */ +/* End of Invalid E.DE211 */ /* @dataElement: HIV.E.DE212 - Test result of HIV assay 1 repeated @@ -13494,12 +13494,12 @@ define "Invalid (PMTCT|EDE211) Observation": @description: The result of the repeated first HIV assay in the testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Test result of HIV assay 1 repeated (PMTCT)": - exists "Test result of HIV assay 1 repeated (PMTCT) Observation" -define "Test result of HIV assay 1 repeated (PMTCT) Observation": +define "Test result of HIV assay 1 repeated E.DE212": + exists "Test result of HIV assay 1 repeated E.DE212 Observation" +define "Test result of HIV assay 1 repeated E.DE212 Observation": [Observation: Concepts."Test result of HIV assay 1 repeated - HIV.E.DE212"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Test result of HIV assay 1 repeated (PMTCT) */ +/* End of Test result of HIV assay 1 repeated E.DE212 */ /* @dataElement: HIV.E.DE213 - Reactive @@ -13507,16 +13507,16 @@ define "Test result of HIV assay 1 repeated (PMTCT) Observation": @description: The result of the HIV assay in the testing strategy was reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Reactive (PMTCT|EDE213)": - exists "Reactive (PMTCT|EDE213) Condition" - or exists "Reactive (PMTCT|EDE213) Observation" -define "Reactive (PMTCT|EDE213) Condition": +define "Reactive E.DE213": + exists "Reactive E.DE213 Condition" + or exists "Reactive E.DE213 Observation" +define "Reactive E.DE213 Condition": [Condition: Concepts."Reactive - HIV.E.DE213"] -define "Reactive (PMTCT|EDE213) Observation": - "Test result of HIV assay 1 repeated (PMTCT) Observation" O +define "Reactive E.DE213 Observation": + "Test result of HIV assay 1 repeated E.DE212 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Reactive - HIV.E.DE213" -/* End of Reactive (PMTCT|EDE213) */ +/* End of Reactive E.DE213 */ /* @dataElement: HIV.E.DE214 - Non-reactive @@ -13524,16 +13524,16 @@ define "Reactive (PMTCT|EDE213) Observation": @description: The result of the HIV assay in the testing strategy was non-reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Non-reactive (PMTCT|EDE214)": - exists "Non-reactive (PMTCT|EDE214) Condition" - or exists "Non-reactive (PMTCT|EDE214) Observation" -define "Non-reactive (PMTCT|EDE214) Condition": +define "Non-reactive E.DE214": + exists "Non-reactive E.DE214 Condition" + or exists "Non-reactive E.DE214 Observation" +define "Non-reactive E.DE214 Condition": [Condition: Concepts."Non-reactive - HIV.E.DE214"] -define "Non-reactive (PMTCT|EDE214) Observation": - "Test result of HIV assay 1 repeated (PMTCT) Observation" O +define "Non-reactive E.DE214 Observation": + "Test result of HIV assay 1 repeated E.DE212 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Non-reactive - HIV.E.DE214" -/* End of Non-reactive (PMTCT|EDE214) */ +/* End of Non-reactive E.DE214 */ /* @dataElement: HIV.E.DE215 - Invalid @@ -13541,16 +13541,16 @@ define "Non-reactive (PMTCT|EDE214) Observation": @description: The result of the HIV assay in the testing strategy was invalid */ // TODO: Replace placeholder with relevant CQL logic -define "Invalid (PMTCT|EDE215)": - exists "Invalid (PMTCT|EDE215) Condition" - or exists "Invalid (PMTCT|EDE215) Observation" -define "Invalid (PMTCT|EDE215) Condition": +define "Invalid E.DE215": + exists "Invalid E.DE215 Condition" + or exists "Invalid E.DE215 Observation" +define "Invalid E.DE215 Condition": [Condition: Concepts."Invalid - HIV.E.DE215"] -define "Invalid (PMTCT|EDE215) Observation": - "Test result of HIV assay 1 repeated (PMTCT) Observation" O +define "Invalid E.DE215 Observation": + "Test result of HIV assay 1 repeated E.DE212 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Invalid - HIV.E.DE215" -/* End of Invalid (PMTCT|EDE215) */ +/* End of Invalid E.DE215 */ /* @dataElement: HIV.E.DE216 - Test result of syphilis assay 1 @@ -13558,12 +13558,12 @@ define "Invalid (PMTCT|EDE215) Observation": @description: The result of the first syphilis assay in the testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Test result of syphilis assay 1 (PMTCT)": - exists "Test result of syphilis assay 1 (PMTCT) Observation" -define "Test result of syphilis assay 1 (PMTCT) Observation": +define "Test result of syphilis assay 1": + exists "Test result of syphilis assay 1 Observation" +define "Test result of syphilis assay 1 Observation": [Observation: Concepts."Test result of syphilis assay 1"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Test result of syphilis assay 1 (PMTCT) */ +/* End of Test result of syphilis assay 1 */ /* @dataElement: HIV.E.DE217 - Reactive @@ -13571,16 +13571,16 @@ define "Test result of syphilis assay 1 (PMTCT) Observation": @description: The result of the first syphilis assay in the testing strategy was reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Reactive (PMTCT|EDE217)": - exists "Reactive (PMTCT|EDE217) Condition" - or exists "Reactive (PMTCT|EDE217) Observation" -define "Reactive (PMTCT|EDE217) Condition": +define "Reactive E.DE217": + exists "Reactive E.DE217 Condition" + or exists "Reactive E.DE217 Observation" +define "Reactive E.DE217 Condition": [Condition: Concepts."Reactive - HIV.E.DE217"] -define "Reactive (PMTCT|EDE217) Observation": - "Test result of syphilis assay 1 (PMTCT) Observation" O +define "Reactive E.DE217 Observation": + "Test result of syphilis assay 1 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Reactive - HIV.E.DE217" -/* End of Reactive (PMTCT|EDE217) */ +/* End of Reactive E.DE217 */ /* @dataElement: HIV.E.DE218 - Non-reactive @@ -13588,16 +13588,16 @@ define "Reactive (PMTCT|EDE217) Observation": @description: The result of the first syphilis assay in the testing strategy was non-reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Non-reactive (PMTCT|EDE218)": - exists "Non-reactive (PMTCT|EDE218) Condition" - or exists "Non-reactive (PMTCT|EDE218) Observation" -define "Non-reactive (PMTCT|EDE218) Condition": +define "Non-reactive E.DE218": + exists "Non-reactive E.DE218 Condition" + or exists "Non-reactive E.DE218 Observation" +define "Non-reactive E.DE218 Condition": [Condition: Concepts."Non-reactive - HIV.E.DE218"] -define "Non-reactive (PMTCT|EDE218) Observation": - "Test result of syphilis assay 1 (PMTCT) Observation" O +define "Non-reactive E.DE218 Observation": + "Test result of syphilis assay 1 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Non-reactive - HIV.E.DE218" -/* End of Non-reactive (PMTCT|EDE218) */ +/* End of Non-reactive E.DE218 */ /* @dataElement: HIV.E.DE219 - Invalid @@ -13605,16 +13605,16 @@ define "Non-reactive (PMTCT|EDE218) Observation": @description: The result of the HIV assay in the testing strategy was invalid */ // TODO: Replace placeholder with relevant CQL logic -define "Invalid (PMTCT|EDE219)": - exists "Invalid (PMTCT|EDE219) Condition" - or exists "Invalid (PMTCT|EDE219) Observation" -define "Invalid (PMTCT|EDE219) Condition": +define "Invalid E.DE219": + exists "Invalid E.DE219 Condition" + or exists "Invalid E.DE219 Observation" +define "Invalid E.DE219 Condition": [Condition: Concepts."Invalid - HIV.E.DE219"] -define "Invalid (PMTCT|EDE219) Observation": - "Test result of syphilis assay 1 (PMTCT) Observation" O +define "Invalid E.DE219 Observation": + "Test result of syphilis assay 1 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Invalid - HIV.E.DE219" -/* End of Invalid (PMTCT|EDE219) */ +/* End of Invalid E.DE219 */ /* @dataElement: HIV.E.DE220 - Test result of syphilis assay 1 repeated @@ -13622,12 +13622,12 @@ define "Invalid (PMTCT|EDE219) Observation": @description: The result of the first syphilis assay repeated in the testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Test result of syphilis assay 1 repeated (PMTCT)": - exists "Test result of syphilis assay 1 repeated (PMTCT) Observation" -define "Test result of syphilis assay 1 repeated (PMTCT) Observation": +define "Test result of syphilis assay 1 repeated": + exists "Test result of syphilis assay 1 repeated Observation" +define "Test result of syphilis assay 1 repeated Observation": [Observation: Concepts."Test result of syphilis assay 1 repeated"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Test result of syphilis assay 1 repeated (PMTCT) */ +/* End of Test result of syphilis assay 1 repeated */ /* @dataElement: HIV.E.DE221 - Reactive @@ -13635,16 +13635,16 @@ define "Test result of syphilis assay 1 repeated (PMTCT) Observation": @description: The result of the first syphilis assay repeated in the testing strategy was reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Reactive (PMTCT|EDE221)": - exists "Reactive (PMTCT|EDE221) Condition" - or exists "Reactive (PMTCT|EDE221) Observation" -define "Reactive (PMTCT|EDE221) Condition": +define "Reactive E.DE221": + exists "Reactive E.DE221 Condition" + or exists "Reactive E.DE221 Observation" +define "Reactive E.DE221 Condition": [Condition: Concepts."Reactive - HIV.E.DE221"] -define "Reactive (PMTCT|EDE221) Observation": - "Test result of syphilis assay 1 repeated (PMTCT) Observation" O +define "Reactive E.DE221 Observation": + "Test result of syphilis assay 1 repeated Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Reactive - HIV.E.DE221" -/* End of Reactive (PMTCT|EDE221) */ +/* End of Reactive E.DE221 */ /* @dataElement: HIV.E.DE222 - Non-reactive @@ -13652,16 +13652,16 @@ define "Reactive (PMTCT|EDE221) Observation": @description: The result of the first syphilis assay repeated in the testing strategy was non-reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Non-reactive (PMTCT|EDE222)": - exists "Non-reactive (PMTCT|EDE222) Condition" - or exists "Non-reactive (PMTCT|EDE222) Observation" -define "Non-reactive (PMTCT|EDE222) Condition": +define "Non-reactive E.DE222": + exists "Non-reactive E.DE222 Condition" + or exists "Non-reactive E.DE222 Observation" +define "Non-reactive E.DE222 Condition": [Condition: Concepts."Non-reactive - HIV.E.DE222"] -define "Non-reactive (PMTCT|EDE222) Observation": - "Test result of syphilis assay 1 repeated (PMTCT) Observation" O +define "Non-reactive E.DE222 Observation": + "Test result of syphilis assay 1 repeated Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Non-reactive - HIV.E.DE222" -/* End of Non-reactive (PMTCT|EDE222) */ +/* End of Non-reactive E.DE222 */ /* @dataElement: HIV.E.DE223 - Invalid @@ -13669,16 +13669,16 @@ define "Non-reactive (PMTCT|EDE222) Observation": @description: The result of the first syphilis assay repeated in the testing strategy was invalid */ // TODO: Replace placeholder with relevant CQL logic -define "Invalid (PMTCT|EDE223)": - exists "Invalid (PMTCT|EDE223) Condition" - or exists "Invalid (PMTCT|EDE223) Observation" -define "Invalid (PMTCT|EDE223) Condition": +define "Invalid E.DE223": + exists "Invalid E.DE223 Condition" + or exists "Invalid E.DE223 Observation" +define "Invalid E.DE223 Condition": [Condition: Concepts."Invalid - HIV.E.DE223"] -define "Invalid (PMTCT|EDE223) Observation": - "Test result of syphilis assay 1 repeated (PMTCT) Observation" O +define "Invalid E.DE223 Observation": + "Test result of syphilis assay 1 repeated Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Invalid - HIV.E.DE223" -/* End of Invalid (PMTCT|EDE223) */ +/* End of Invalid E.DE223 */ /* @dataElement: HIV.E.DE224 - HIV test date @@ -13686,13 +13686,13 @@ define "Invalid (PMTCT|EDE223) Observation": @description: Date of the HIV test */ // TODO: Replace placeholder with relevant CQL logic -define "HIV test date (PMTCT)": +define "HIV test date E.DE224": [Observation: Concepts."HIV test date - HIV.E.DE224"] O where O.status in { 'final', 'amended', 'corrected' } -define "HIV test date (PMTCT) Value": - "HIV test date (PMTCT)" O +define "HIV test date E.DE224 Value": + "HIV test date E.DE224" O return O.value -/* End of HIV test date (PMTCT) */ +/* End of HIV test date E.DE224 */ /* @dataElement: HIV.E.DE225 - Infant HIV status @@ -13700,12 +13700,12 @@ define "HIV test date (PMTCT) Value": @description: HIV status reported after applying the HIV testing algorithm. No single HIV test can provide an HIV-positive diagnosis. */ // TODO: Replace placeholder with relevant CQL logic -define "Infant HIV status (PMTCT)": - exists "Infant HIV status (PMTCT) Observation" -define "Infant HIV status (PMTCT) Observation": +define "Infant HIV status": + exists "Infant HIV status Observation" +define "Infant HIV status Observation": [Observation: Concepts."Infant HIV status"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Infant HIV status (PMTCT) */ +/* End of Infant HIV status */ /* @dataElement: HIV.E.DE226 - HIV-positive @@ -13713,16 +13713,16 @@ define "Infant HIV status (PMTCT) Observation": @description: Infant is HIV-positive */ // TODO: Replace placeholder with relevant CQL logic -define "HIV-positive (PMTCT|EDE226)": - exists "HIV-positive (PMTCT|EDE226) Condition" - or exists "HIV-positive (PMTCT|EDE226) Observation" -define "HIV-positive (PMTCT|EDE226) Condition": +define "HIV-positive E.DE226": + exists "HIV-positive E.DE226 Condition" + or exists "HIV-positive E.DE226 Observation" +define "HIV-positive E.DE226 Condition": [Condition: Concepts."HIV-positive - HIV.E.DE226"] -define "HIV-positive (PMTCT|EDE226) Observation": - "Infant HIV status (PMTCT) Observation" O +define "HIV-positive E.DE226 Observation": + "Infant HIV status Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."HIV-positive - HIV.E.DE226" -/* End of HIV-positive (PMTCT|EDE226) */ +/* End of HIV-positive E.DE226 */ /* @dataElement: HIV.E.DE227 - HIV-negative @@ -13730,16 +13730,16 @@ define "HIV-positive (PMTCT|EDE226) Observation": @description: Infant is HIV-negative */ // TODO: Replace placeholder with relevant CQL logic -define "HIV-negative (PMTCT)": - exists "HIV-negative (PMTCT) Condition" - or exists "HIV-negative (PMTCT) Observation" -define "HIV-negative (PMTCT) Condition": +define "HIV-negative E.DE227": + exists "HIV-negative E.DE227 Condition" + or exists "HIV-negative E.DE227 Observation" +define "HIV-negative E.DE227 Condition": [Condition: Concepts."HIV-negative - HIV.E.DE227"] -define "HIV-negative (PMTCT) Observation": - "Infant HIV status (PMTCT) Observation" O +define "HIV-negative E.DE227 Observation": + "Infant HIV status Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."HIV-negative - HIV.E.DE227" -/* End of HIV-negative (PMTCT) */ +/* End of HIV-negative E.DE227 */ /* @dataElement: HIV.E.DE228 - Unknown @@ -13747,16 +13747,16 @@ define "HIV-negative (PMTCT) Observation": @description: Infant has unknown HIV status */ // TODO: Replace placeholder with relevant CQL logic -define "Unknown (PMTCT)": - exists "Unknown (PMTCT) Condition" - or exists "Unknown (PMTCT) Observation" -define "Unknown (PMTCT) Condition": +define "Unknown E.DE228": + exists "Unknown E.DE228 Condition" + or exists "Unknown E.DE228 Observation" +define "Unknown E.DE228 Condition": [Condition: Concepts."Unknown - HIV.E.DE228"] -define "Unknown (PMTCT) Observation": - "Infant HIV status (PMTCT) Observation" O +define "Unknown E.DE228 Observation": + "Infant HIV status Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Unknown - HIV.E.DE228" -/* End of Unknown (PMTCT) */ +/* End of Unknown E.DE228 */ /* @dataElement: HIV.E.DE229 - Infant ART start date @@ -13764,13 +13764,13 @@ define "Unknown (PMTCT) Observation": @description: The date on which the infant was started or restarted on antiretroviral therapy (ART) */ // TODO: Replace placeholder with relevant CQL logic -define "Infant ART start date (PMTCT)": +define "Infant ART start date": [Observation: Concepts."Infant ART start date"] O where O.status in { 'final', 'amended', 'corrected' } -define "Infant ART start date (PMTCT) Value": - "Infant ART start date (PMTCT)" O +define "Infant ART start date Value": + "Infant ART start date" O return O.value -/* End of Infant ART start date (PMTCT) */ +/* End of Infant ART start date */ /* @dataElement: HIV.E.DE230 - Final diagnosis of HIV-exposed infant @@ -13778,12 +13778,12 @@ define "Infant ART start date (PMTCT) Value": @description: HIV-exposed infant final status at 18 months or 3 months after cessation of breastfeeding (whichever is later). */ // TODO: Replace placeholder with relevant CQL logic -define "Final diagnosis of HIV-exposed infant (PMTCT)": - exists "Final diagnosis of HIV-exposed infant (PMTCT) Observation" -define "Final diagnosis of HIV-exposed infant (PMTCT) Observation": +define "Final diagnosis of HIV-exposed infant E.DE230": + exists "Final diagnosis of HIV-exposed infant E.DE230 Observation" +define "Final diagnosis of HIV-exposed infant E.DE230 Observation": [Observation: Concepts."Final diagnosis of HIV-exposed infant - HIV.E.DE230"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Final diagnosis of HIV-exposed infant (PMTCT) */ +/* End of Final diagnosis of HIV-exposed infant E.DE230 */ /* @dataElement: HIV.E.DE231 - HIV-positive @@ -13791,16 +13791,16 @@ define "Final diagnosis of HIV-exposed infant (PMTCT) Observation": @description: The infant is HIV-positive */ // TODO: Replace placeholder with relevant CQL logic -define "HIV-positive (PMTCT|EDE231)": - exists "HIV-positive (PMTCT|EDE231) Condition" - or exists "HIV-positive (PMTCT|EDE231) Observation" -define "HIV-positive (PMTCT|EDE231) Condition": +define "HIV-positive E.DE231": + exists "HIV-positive E.DE231 Condition" + or exists "HIV-positive E.DE231 Observation" +define "HIV-positive E.DE231 Condition": [Condition: Concepts."HIV-positive - HIV.E.DE231"] -define "HIV-positive (PMTCT|EDE231) Observation": - "Final diagnosis of HIV-exposed infant (PMTCT) Observation" O +define "HIV-positive E.DE231 Observation": + "Final diagnosis of HIV-exposed infant E.DE230 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."HIV-positive - HIV.E.DE231" -/* End of HIV-positive (PMTCT|EDE231) */ +/* End of HIV-positive E.DE231 */ /* @dataElement: HIV.E.DE232 - HIV-negative and no longer breastfeeding @@ -13808,16 +13808,16 @@ define "HIV-positive (PMTCT|EDE231) Observation": @description: The infant is HIV-negative and the mother has quit breastfeeding */ // TODO: Replace placeholder with relevant CQL logic -define "HIV-negative and no longer breastfeeding (PMTCT)": - exists "HIV-negative and no longer breastfeeding (PMTCT) Condition" - or exists "HIV-negative and no longer breastfeeding (PMTCT) Observation" -define "HIV-negative and no longer breastfeeding (PMTCT) Condition": +define "HIV-negative and no longer breastfeeding": + exists "HIV-negative and no longer breastfeeding Condition" + or exists "HIV-negative and no longer breastfeeding Observation" +define "HIV-negative and no longer breastfeeding Condition": [Condition: Concepts."HIV-negative and no longer breastfeeding"] -define "HIV-negative and no longer breastfeeding (PMTCT) Observation": - "Final diagnosis of HIV-exposed infant (PMTCT) Observation" O +define "HIV-negative and no longer breastfeeding Observation": + "Final diagnosis of HIV-exposed infant E.DE230 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."HIV-negative and no longer breastfeeding" -/* End of HIV-negative and no longer breastfeeding (PMTCT) */ +/* End of HIV-negative and no longer breastfeeding */ /* @dataElement: HIV.E.DE233 - HIV status unknown @@ -13825,16 +13825,16 @@ define "HIV-negative and no longer breastfeeding (PMTCT) Observation": @description: The final HIV status of the child is unknown because the infant died, was lost to follow-up or transferred out without ever having an HIV-positive diagnosis or is active in care but was not tested at 18 months */ // TODO: Replace placeholder with relevant CQL logic -define "HIV status unknown (PMTCT)": - exists "HIV status unknown (PMTCT) Condition" - or exists "HIV status unknown (PMTCT) Observation" -define "HIV status unknown (PMTCT) Condition": +define "HIV status unknown": + exists "HIV status unknown Condition" + or exists "HIV status unknown Observation" +define "HIV status unknown Condition": [Condition: Concepts."HIV status unknown"] -define "HIV status unknown (PMTCT) Observation": - "Final diagnosis of HIV-exposed infant (PMTCT) Observation" O +define "HIV status unknown Observation": + "Final diagnosis of HIV-exposed infant E.DE230 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."HIV status unknown" -/* End of HIV status unknown (PMTCT) */ +/* End of HIV status unknown */ /* @dataElement: HIV.G.DE1 - CD4 count @@ -13842,13 +13842,13 @@ define "HIV status unknown (PMTCT) Observation": @description: CD4 cell count in cells/mm^3 */ // TODO: Replace placeholder with relevant CQL logic -define "CD4 count (Diagnostics)": +define "CD4 count G.DE1": [Observation: Concepts."CD4 count - HIV.G.DE1"] O where O.status in { 'final', 'amended', 'corrected' } -define "CD4 count (Diagnostics) Value": - "CD4 count (Diagnostics)" O +define "CD4 count G.DE1 Value": + "CD4 count G.DE1" O return O.value -/* End of CD4 count (Diagnostics) */ +/* End of CD4 count G.DE1 */ /* @dataElement: HIV.G.DE3 - Baseline CD4 count @@ -13856,13 +13856,13 @@ define "CD4 count (Diagnostics) Value": @description: CD4 count performed at HIV diagnosis */ // TODO: Replace placeholder with relevant CQL logic -define "Baseline CD4 count (Diagnostics)": +define "Baseline CD4 count G.DE3": [Observation: Concepts."Baseline CD4 count - HIV.G.DE3"] O where O.status in { 'final', 'amended', 'corrected' } -define "Baseline CD4 count (Diagnostics) Value": - "Baseline CD4 count (Diagnostics)" O +define "Baseline CD4 count G.DE3 Value": + "Baseline CD4 count G.DE3" O return O.value -/* End of Baseline CD4 count (Diagnostics) */ +/* End of Baseline CD4 count G.DE3 */ /* @dataElement: HIV.G.DE8 - Date of viral load sample collection @@ -13870,13 +13870,13 @@ define "Baseline CD4 count (Diagnostics) Value": @description: Date and time when the sample was collected to test the client's HIV viral load */ // TODO: Replace placeholder with relevant CQL logic -define "Date of viral load sample collection (Diagnostics)": +define "Date of viral load sample collection G.DE8": [Observation: Concepts."Date of viral load sample collection - HIV.G.DE8"] O where O.status in { 'final', 'amended', 'corrected' } -define "Date of viral load sample collection (Diagnostics) Value": - "Date of viral load sample collection (Diagnostics)" O +define "Date of viral load sample collection G.DE8 Value": + "Date of viral load sample collection G.DE8" O return O.value -/* End of Date of viral load sample collection (Diagnostics) */ +/* End of Date of viral load sample collection G.DE8 */ /* @dataElement: HIV.G.DE12 - Viral load test result @@ -13884,13 +13884,13 @@ define "Date of viral load sample collection (Diagnostics) Value": @description: Result from the viral load test in number of copies/mL */ // TODO: Replace placeholder with relevant CQL logic -define "Viral load test result (Diagnostics)": +define "Viral load test result G.DE12": [Observation: Concepts."Viral load test result - HIV.G.DE12"] O where O.status in { 'final', 'amended', 'corrected' } -define "Viral load test result (Diagnostics) Value": - "Viral load test result (Diagnostics)" O +define "Viral load test result G.DE12 Value": + "Viral load test result G.DE12" O return O.value -/* End of Viral load test result (Diagnostics) */ +/* End of Viral load test result G.DE12 */ /* @dataElement: HIV.G.DE17 - HBsAg test date @@ -13898,13 +13898,13 @@ define "Viral load test result (Diagnostics) Value": @description: Date client was tested for hepatitis B virus (HBV) */ // TODO: Replace placeholder with relevant CQL logic -define "HBsAg test date (Diagnostics)": +define "HBsAg test date G.DE17": [Observation: Concepts."HBsAg test date - HIV.G.DE17"] O where O.status in { 'final', 'amended', 'corrected' } -define "HBsAg test date (Diagnostics) Value": - "HBsAg test date (Diagnostics)" O +define "HBsAg test date G.DE17 Value": + "HBsAg test date G.DE17" O return O.value -/* End of HBsAg test date (Diagnostics) */ +/* End of HBsAg test date G.DE17 */ /* @dataElement: HIV.G.DE18 - HBsAg test result @@ -13912,12 +13912,12 @@ define "HBsAg test date (Diagnostics) Value": @description: Hepatitis B virus test result (HBsAg) */ // TODO: Replace placeholder with relevant CQL logic -define "HBsAg test result (Diagnostics)": - exists "HBsAg test result (Diagnostics) Observation" -define "HBsAg test result (Diagnostics) Observation": +define "HBsAg test result G.DE18": + exists "HBsAg test result G.DE18 Observation" +define "HBsAg test result G.DE18 Observation": [Observation: Concepts."HBsAg test result - HIV.G.DE18"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of HBsAg test result (Diagnostics) */ +/* End of HBsAg test result G.DE18 */ /* @dataElement: HIV.G.DE19 - Positive @@ -13925,16 +13925,16 @@ define "HBsAg test result (Diagnostics) Observation": @description: HBsAg test result was positive */ // TODO: Replace placeholder with relevant CQL logic -define "Positive (Diagnostics|GDE19)": - exists "Positive (Diagnostics|GDE19) Condition" - or exists "Positive (Diagnostics|GDE19) Observation" -define "Positive (Diagnostics|GDE19) Condition": +define "Positive G.DE19": + exists "Positive G.DE19 Condition" + or exists "Positive G.DE19 Observation" +define "Positive G.DE19 Condition": [Condition: Concepts."Positive - HIV.G.DE19"] -define "Positive (Diagnostics|GDE19) Observation": - "HBsAg test result (Diagnostics) Observation" O +define "Positive G.DE19 Observation": + "HBsAg test result G.DE18 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Positive - HIV.G.DE19" -/* End of Positive (Diagnostics|GDE19) */ +/* End of Positive G.DE19 */ /* @dataElement: HIV.G.DE20 - Negative @@ -13942,16 +13942,16 @@ define "Positive (Diagnostics|GDE19) Observation": @description: HBsAg test result was negative */ // TODO: Replace placeholder with relevant CQL logic -define "Negative (Diagnostics|GDE20)": - exists "Negative (Diagnostics|GDE20) Condition" - or exists "Negative (Diagnostics|GDE20) Observation" -define "Negative (Diagnostics|GDE20) Condition": +define "Negative G.DE20": + exists "Negative G.DE20 Condition" + or exists "Negative G.DE20 Observation" +define "Negative G.DE20 Condition": [Condition: Concepts."Negative - HIV.G.DE20"] -define "Negative (Diagnostics|GDE20) Observation": - "HBsAg test result (Diagnostics) Observation" O +define "Negative G.DE20 Observation": + "HBsAg test result G.DE18 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Negative - HIV.G.DE20" -/* End of Negative (Diagnostics|GDE20) */ +/* End of Negative G.DE20 */ /* @dataElement: HIV.G.DE21 - Indeterminate @@ -13959,16 +13959,16 @@ define "Negative (Diagnostics|GDE20) Observation": @description: HBsAg test result was indeterminate */ // TODO: Replace placeholder with relevant CQL logic -define "Indeterminate (Diagnostics|GDE21)": - exists "Indeterminate (Diagnostics|GDE21) Condition" - or exists "Indeterminate (Diagnostics|GDE21) Observation" -define "Indeterminate (Diagnostics|GDE21) Condition": +define "Indeterminate G.DE21": + exists "Indeterminate G.DE21 Condition" + or exists "Indeterminate G.DE21 Observation" +define "Indeterminate G.DE21 Condition": [Condition: Concepts."Indeterminate - HIV.G.DE21"] -define "Indeterminate (Diagnostics|GDE21) Observation": - "HBsAg test result (Diagnostics) Observation" O +define "Indeterminate G.DE21 Observation": + "HBsAg test result G.DE18 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Indeterminate - HIV.G.DE21" -/* End of Indeterminate (Diagnostics|GDE21) */ +/* End of Indeterminate G.DE21 */ /* @dataElement: HIV.G.DE42 - HCV test date @@ -13976,13 +13976,13 @@ define "Indeterminate (Diagnostics|GDE21) Observation": @description: Date client was tested for hepatitis C virus (HCV antibody, HCV RNA or HCV core antigen) */ // TODO: Replace placeholder with relevant CQL logic -define "HCV test date (Diagnostics)": +define "HCV test date G.DE42": [Observation: Concepts."HCV test date - HIV.G.DE42"] O where O.status in { 'final', 'amended', 'corrected' } -define "HCV test date (Diagnostics) Value": - "HCV test date (Diagnostics)" O +define "HCV test date G.DE42 Value": + "HCV test date G.DE42" O return O.value -/* End of HCV test date (Diagnostics) */ +/* End of HCV test date G.DE42 */ /* @dataElement: HIV.G.DE43 - HCV test result @@ -13990,12 +13990,12 @@ define "HCV test date (Diagnostics) Value": @description: Hepatitis C virus test result (HCV antibody, HCV RNA or HCV core antigen) */ // TODO: Replace placeholder with relevant CQL logic -define "HCV test result (Diagnostics)": - exists "HCV test result (Diagnostics) Observation" -define "HCV test result (Diagnostics) Observation": +define "HCV test result G.DE43": + exists "HCV test result G.DE43 Observation" +define "HCV test result G.DE43 Observation": [Observation: Concepts."HCV test result - HIV.G.DE43"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of HCV test result (Diagnostics) */ +/* End of HCV test result G.DE43 */ /* @dataElement: HIV.G.DE44 - Positive @@ -14003,16 +14003,16 @@ define "HCV test result (Diagnostics) Observation": @description: HCV test result was positive */ // TODO: Replace placeholder with relevant CQL logic -define "Positive (Diagnostics|GDE44)": - exists "Positive (Diagnostics|GDE44) Condition" - or exists "Positive (Diagnostics|GDE44) Observation" -define "Positive (Diagnostics|GDE44) Condition": +define "Positive G.DE44": + exists "Positive G.DE44 Condition" + or exists "Positive G.DE44 Observation" +define "Positive G.DE44 Condition": [Condition: Concepts."Positive - HIV.G.DE44"] -define "Positive (Diagnostics|GDE44) Observation": - "HCV test result (Diagnostics) Observation" O +define "Positive G.DE44 Observation": + "HCV test result G.DE43 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Positive - HIV.G.DE44" -/* End of Positive (Diagnostics|GDE44) */ +/* End of Positive G.DE44 */ /* @dataElement: HIV.G.DE45 - Negative @@ -14020,16 +14020,16 @@ define "Positive (Diagnostics|GDE44) Observation": @description: HCV test result was negative */ // TODO: Replace placeholder with relevant CQL logic -define "Negative (Diagnostics|GDE45)": - exists "Negative (Diagnostics|GDE45) Condition" - or exists "Negative (Diagnostics|GDE45) Observation" -define "Negative (Diagnostics|GDE45) Condition": +define "Negative G.DE45": + exists "Negative G.DE45 Condition" + or exists "Negative G.DE45 Observation" +define "Negative G.DE45 Condition": [Condition: Concepts."Negative - HIV.G.DE45"] -define "Negative (Diagnostics|GDE45) Observation": - "HCV test result (Diagnostics) Observation" O +define "Negative G.DE45 Observation": + "HCV test result G.DE43 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Negative - HIV.G.DE45" -/* End of Negative (Diagnostics|GDE45) */ +/* End of Negative G.DE45 */ /* @dataElement: HIV.G.DE46 - Indeterminate @@ -14037,16 +14037,16 @@ define "Negative (Diagnostics|GDE45) Observation": @description: HCV test result was indeterminate */ // TODO: Replace placeholder with relevant CQL logic -define "Indeterminate (Diagnostics|GDE46)": - exists "Indeterminate (Diagnostics|GDE46) Condition" - or exists "Indeterminate (Diagnostics|GDE46) Observation" -define "Indeterminate (Diagnostics|GDE46) Condition": +define "Indeterminate G.DE46": + exists "Indeterminate G.DE46 Condition" + or exists "Indeterminate G.DE46 Observation" +define "Indeterminate G.DE46 Condition": [Condition: Concepts."Indeterminate - HIV.G.DE46"] -define "Indeterminate (Diagnostics|GDE46) Observation": - "HCV test result (Diagnostics) Observation" O +define "Indeterminate G.DE46 Observation": + "HCV test result G.DE43 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Indeterminate - HIV.G.DE46" -/* End of Indeterminate (Diagnostics|GDE46) */ +/* End of Indeterminate G.DE46 */ /* @dataElement: HIV.G.DE47 - HCV viral load test date @@ -14054,13 +14054,13 @@ define "Indeterminate (Diagnostics|GDE46) Observation": @description: Hepatitis C viral load test date */ // TODO: Replace placeholder with relevant CQL logic -define "HCV viral load test date (Diagnostics)": +define "HCV viral load test date G.DE47": [Observation: Concepts."HCV viral load test date - HIV.G.DE47"] O where O.status in { 'final', 'amended', 'corrected' } -define "HCV viral load test date (Diagnostics) Value": - "HCV viral load test date (Diagnostics)" O +define "HCV viral load test date G.DE47 Value": + "HCV viral load test date G.DE47" O return O.value -/* End of HCV viral load test date (Diagnostics) */ +/* End of HCV viral load test date G.DE47 */ /* @dataElement: HIV.G.DE48 - HCV viral load test result @@ -14068,12 +14068,12 @@ define "HCV viral load test date (Diagnostics) Value": @description: Hepatitis C viral load test result (qualitative) */ // TODO: Replace placeholder with relevant CQL logic -define "HCV viral load test result (Diagnostics)": - exists "HCV viral load test result (Diagnostics) Observation" -define "HCV viral load test result (Diagnostics) Observation": +define "HCV viral load test result G.DE48": + exists "HCV viral load test result G.DE48 Observation" +define "HCV viral load test result G.DE48 Observation": [Observation: Concepts."HCV viral load test result - HIV.G.DE48"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of HCV viral load test result (Diagnostics) */ +/* End of HCV viral load test result G.DE48 */ /* @dataElement: HIV.G.DE49 - Detected @@ -14081,16 +14081,16 @@ define "HCV viral load test result (Diagnostics) Observation": @description: HCV was detected */ // TODO: Replace placeholder with relevant CQL logic -define "Detected (Diagnostics)": - exists "Detected (Diagnostics) Condition" - or exists "Detected (Diagnostics) Observation" -define "Detected (Diagnostics) Condition": +define "Detected G.DE49": + exists "Detected G.DE49 Condition" + or exists "Detected G.DE49 Observation" +define "Detected G.DE49 Condition": [Condition: Concepts."Detected - HIV.G.DE49"] -define "Detected (Diagnostics) Observation": - "HCV viral load test result (Diagnostics) Observation" O +define "Detected G.DE49 Observation": + "HCV viral load test result G.DE48 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Detected - HIV.G.DE49" -/* End of Detected (Diagnostics) */ +/* End of Detected G.DE49 */ /* @dataElement: HIV.G.DE50 - Not detected @@ -14098,16 +14098,16 @@ define "Detected (Diagnostics) Observation": @description: HCV was not detected */ // TODO: Replace placeholder with relevant CQL logic -define "Not detected (Diagnostics)": - exists "Not detected (Diagnostics) Condition" - or exists "Not detected (Diagnostics) Observation" -define "Not detected (Diagnostics) Condition": +define "Not detected G.DE50": + exists "Not detected G.DE50 Condition" + or exists "Not detected G.DE50 Observation" +define "Not detected G.DE50 Condition": [Condition: Concepts."Not detected - HIV.G.DE50"] -define "Not detected (Diagnostics) Observation": - "HCV viral load test result (Diagnostics) Observation" O +define "Not detected G.DE50 Observation": + "HCV viral load test result G.DE48 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Not detected - HIV.G.DE50" -/* End of Not detected (Diagnostics) */ +/* End of Not detected G.DE50 */ /* @dataElement: HIV.G.DE69 - Syphilis test date @@ -14115,13 +14115,13 @@ define "Not detected (Diagnostics) Observation": @description: Date of syphilis test */ // TODO: Replace placeholder with relevant CQL logic -define "Syphilis test date (Diagnostics)": +define "Syphilis test date G.DE69": [Observation: Concepts."Syphilis test date - HIV.G.DE69"] O where O.status in { 'final', 'amended', 'corrected' } -define "Syphilis test date (Diagnostics) Value": - "Syphilis test date (Diagnostics)" O +define "Syphilis test date G.DE69 Value": + "Syphilis test date G.DE69" O return O.value -/* End of Syphilis test date (Diagnostics) */ +/* End of Syphilis test date G.DE69 */ /* @dataElement: HIV.G.DE70 - Syphilis test result @@ -14129,12 +14129,12 @@ define "Syphilis test date (Diagnostics) Value": @description: Result from syphilis test */ // TODO: Replace placeholder with relevant CQL logic -define "Syphilis test result (Diagnostics)": - exists "Syphilis test result (Diagnostics) Observation" -define "Syphilis test result (Diagnostics) Observation": +define "Syphilis test result G.DE70": + exists "Syphilis test result G.DE70 Observation" +define "Syphilis test result G.DE70 Observation": [Observation: Concepts."Syphilis test result - HIV.G.DE70"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Syphilis test result (Diagnostics) */ +/* End of Syphilis test result G.DE70 */ /* @dataElement: HIV.G.DE71 - Positive @@ -14142,16 +14142,16 @@ define "Syphilis test result (Diagnostics) Observation": @description: Test result is positive for syphilis */ // TODO: Replace placeholder with relevant CQL logic -define "Positive (Diagnostics|GDE71)": - exists "Positive (Diagnostics|GDE71) Condition" - or exists "Positive (Diagnostics|GDE71) Observation" -define "Positive (Diagnostics|GDE71) Condition": +define "Positive G.DE71": + exists "Positive G.DE71 Condition" + or exists "Positive G.DE71 Observation" +define "Positive G.DE71 Condition": [Condition: Concepts."Positive - HIV.G.DE71"] -define "Positive (Diagnostics|GDE71) Observation": - "Syphilis test result (Diagnostics) Observation" O +define "Positive G.DE71 Observation": + "Syphilis test result G.DE70 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Positive - HIV.G.DE71" -/* End of Positive (Diagnostics|GDE71) */ +/* End of Positive G.DE71 */ /* @dataElement: HIV.G.DE72 - Negative @@ -14159,16 +14159,16 @@ define "Positive (Diagnostics|GDE71) Observation": @description: Test result is negative for syphilis */ // TODO: Replace placeholder with relevant CQL logic -define "Negative (Diagnostics|GDE72)": - exists "Negative (Diagnostics|GDE72) Condition" - or exists "Negative (Diagnostics|GDE72) Observation" -define "Negative (Diagnostics|GDE72) Condition": +define "Negative G.DE72": + exists "Negative G.DE72 Condition" + or exists "Negative G.DE72 Observation" +define "Negative G.DE72 Condition": [Condition: Concepts."Negative - HIV.G.DE72"] -define "Negative (Diagnostics|GDE72) Observation": - "Syphilis test result (Diagnostics) Observation" O +define "Negative G.DE72 Observation": + "Syphilis test result G.DE70 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Negative - HIV.G.DE72" -/* End of Negative (Diagnostics|GDE72) */ +/* End of Negative G.DE72 */ /* @dataElement: HIV.G.DE73 - Inconclusive @@ -14176,16 +14176,16 @@ define "Negative (Diagnostics|GDE72) Observation": @description: Test result is inconclusive */ // TODO: Replace placeholder with relevant CQL logic -define "Inconclusive (Diagnostics)": - exists "Inconclusive (Diagnostics) Condition" - or exists "Inconclusive (Diagnostics) Observation" -define "Inconclusive (Diagnostics) Condition": +define "Inconclusive G.DE73": + exists "Inconclusive G.DE73 Condition" + or exists "Inconclusive G.DE73 Observation" +define "Inconclusive G.DE73 Condition": [Condition: Concepts."Inconclusive - HIV.G.DE73"] -define "Inconclusive (Diagnostics) Observation": - "Syphilis test result (Diagnostics) Observation" O +define "Inconclusive G.DE73 Observation": + "Syphilis test result G.DE70 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Inconclusive - HIV.G.DE73" -/* End of Inconclusive (Diagnostics) */ +/* End of Inconclusive G.DE73 */ /* @dataElement: HIV.H.DE34 - HIV status of partner or contact @@ -14193,12 +14193,12 @@ define "Inconclusive (Diagnostics) Observation": @description: HIV status of the partner or contact given by the index case */ // TODO: Replace placeholder with relevant CQL logic -define "HIV status of partner or contact (Follow)": - exists "HIV status of partner or contact (Follow) Observation" -define "HIV status of partner or contact (Follow) Observation": +define "HIV status of partner or contact": + exists "HIV status of partner or contact Observation" +define "HIV status of partner or contact Observation": [Observation: Concepts."HIV status of partner or contact"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of HIV status of partner or contact (Follow) */ +/* End of HIV status of partner or contact */ /* @dataElement: HIV.H.DE35 - Already knew positive @@ -14206,16 +14206,16 @@ define "HIV status of partner or contact (Follow) Observation": @description: The partner or contact of the index case already knew they are HIV-positive */ // TODO: Replace placeholder with relevant CQL logic -define "Already knew positive (Follow)": - exists "Already knew positive (Follow) Condition" - or exists "Already knew positive (Follow) Observation" -define "Already knew positive (Follow) Condition": +define "Already knew positive": + exists "Already knew positive Condition" + or exists "Already knew positive Observation" +define "Already knew positive Condition": [Condition: Concepts."Already knew positive"] -define "Already knew positive (Follow) Observation": - "HIV status of partner or contact (Follow) Observation" O +define "Already knew positive Observation": + "HIV status of partner or contact Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Already knew positive" -/* End of Already knew positive (Follow) */ +/* End of Already knew positive */ /* @dataElement: HIV.H.DE36 - Newly diagnosed @@ -14223,16 +14223,16 @@ define "Already knew positive (Follow) Observation": @description: The partner or contact of the index case is newly diagnosed as HIV-positive */ // TODO: Replace placeholder with relevant CQL logic -define "Newly diagnosed (Follow)": - exists "Newly diagnosed (Follow) Condition" - or exists "Newly diagnosed (Follow) Observation" -define "Newly diagnosed (Follow) Condition": +define "Newly diagnosed": + exists "Newly diagnosed Condition" + or exists "Newly diagnosed Observation" +define "Newly diagnosed Condition": [Condition: Concepts."Newly diagnosed"] -define "Newly diagnosed (Follow) Observation": - "HIV status of partner or contact (Follow) Observation" O +define "Newly diagnosed Observation": + "HIV status of partner or contact Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Newly diagnosed" -/* End of Newly diagnosed (Follow) */ +/* End of Newly diagnosed */ /* @dataElement: HIV.H.DE37 - Negative @@ -14240,16 +14240,16 @@ define "Newly diagnosed (Follow) Observation": @description: The partner or contact of the index case is newly diagnosed is HIV-negative */ // TODO: Replace placeholder with relevant CQL logic -define "Negative (Follow)": - exists "Negative (Follow) Condition" - or exists "Negative (Follow) Observation" -define "Negative (Follow) Condition": +define "Negative H.DE37": + exists "Negative H.DE37 Condition" + or exists "Negative H.DE37 Observation" +define "Negative H.DE37 Condition": [Condition: Concepts."Negative - HIV.H.DE37"] -define "Negative (Follow) Observation": - "HIV status of partner or contact (Follow) Observation" O +define "Negative H.DE37 Observation": + "HIV status of partner or contact Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Negative - HIV.H.DE37" -/* End of Negative (Follow) */ +/* End of Negative H.DE37 */ /* @dataElement: HIV.H.DE41 - HIV treatment outcome @@ -14257,12 +14257,12 @@ define "Negative (Follow) Observation": @description: The outcome for the client which is used for reporting retention/attrition. */ // TODO: Replace placeholder with relevant CQL logic -define "HIV treatment outcome (Follow)": - exists "HIV treatment outcome (Follow) Observation" -define "HIV treatment outcome (Follow) Observation": +define "HIV treatment outcome": + exists "HIV treatment outcome Observation" +define "HIV treatment outcome Observation": [Observation: Concepts."HIV treatment outcome"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of HIV treatment outcome (Follow) */ +/* End of HIV treatment outcome */ /* @dataElement: HIV.H.DE42 - Lost to follow-up @@ -14270,16 +14270,16 @@ define "HIV treatment outcome (Follow) Observation": @description: Twenty-eight days or more since last missed appointment */ // TODO: Replace placeholder with relevant CQL logic -define "Lost to follow-up (Follow)": - exists "Lost to follow-up (Follow) Condition" - or exists "Lost to follow-up (Follow) Observation" -define "Lost to follow-up (Follow) Condition": +define "Lost to follow-up": + exists "Lost to follow-up Condition" + or exists "Lost to follow-up Observation" +define "Lost to follow-up Condition": [Condition: Concepts."Lost to follow-up"] -define "Lost to follow-up (Follow) Observation": - "HIV treatment outcome (Follow) Observation" O +define "Lost to follow-up Observation": + "HIV treatment outcome Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Lost to follow-up" -/* End of Lost to follow-up (Follow) */ +/* End of Lost to follow-up */ /* @dataElement: HIV.H.DE43 - Transferred out @@ -14287,16 +14287,16 @@ define "Lost to follow-up (Follow) Observation": @description: The client transferred to another facility */ // TODO: Replace placeholder with relevant CQL logic -define "Transferred out (Follow)": - exists "Transferred out (Follow) Condition" - or exists "Transferred out (Follow) Observation" -define "Transferred out (Follow) Condition": +define "Transferred out": + exists "Transferred out Condition" + or exists "Transferred out Observation" +define "Transferred out Condition": [Condition: Concepts."Transferred out"] -define "Transferred out (Follow) Observation": - "HIV treatment outcome (Follow) Observation" O +define "Transferred out Observation": + "HIV treatment outcome Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Transferred out" -/* End of Transferred out (Follow) */ +/* End of Transferred out */ /* @dataElement: HIV.H.DE44 - Death documented @@ -14304,16 +14304,16 @@ define "Transferred out (Follow) Observation": @description: People living with HIV previously on ART who are confirmed to have died from any cause */ // TODO: Replace placeholder with relevant CQL logic -define "Death documented (Follow)": - exists "Death documented (Follow) Condition" - or exists "Death documented (Follow) Observation" -define "Death documented (Follow) Condition": +define "Death documented": + exists "Death documented Condition" + or exists "Death documented Observation" +define "Death documented Condition": [Condition: Concepts."Death documented"] -define "Death documented (Follow) Observation": - "HIV treatment outcome (Follow) Observation" O +define "Death documented Observation": + "HIV treatment outcome Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Death documented" -/* End of Death documented (Follow) */ +/* End of Death documented */ /* @dataElement: HIV.H.DE45 - Refused stopped treatment @@ -14321,16 +14321,16 @@ define "Death documented (Follow) Observation": @description: Client was contacted and confirmed to have stopped ART (reasons may include stigma and discrimination, faith healing, etc.) */ // TODO: Replace placeholder with relevant CQL logic -define "Refused stopped treatment (Follow)": - exists "Refused stopped treatment (Follow) Condition" - or exists "Refused stopped treatment (Follow) Observation" -define "Refused stopped treatment (Follow) Condition": +define "Refused stopped treatment": + exists "Refused stopped treatment Condition" + or exists "Refused stopped treatment Observation" +define "Refused stopped treatment Condition": [Condition: Concepts."Refused stopped treatment"] -define "Refused stopped treatment (Follow) Observation": - "HIV treatment outcome (Follow) Observation" O +define "Refused stopped treatment Observation": + "HIV treatment outcome Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Refused stopped treatment" -/* End of Refused stopped treatment (Follow) */ +/* End of Refused stopped treatment */ /* @dataElement: HIV.H.DE47 - On ART @@ -14338,13 +14338,13 @@ define "Refused stopped treatment (Follow) Observation": @description: Client is currently taking ART */ // TODO: Replace placeholder with relevant CQL logic -define "On ART (Follow)": - exists "On ART (Follow) Observation" -define "On ART (Follow) Observation": +define "On ART H.DE47": + exists "On ART H.DE47 Observation" +define "On ART H.DE47 Observation": [Observation: Concepts."On ART - HIV.H.DE47"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of On ART (Follow) */ +/* End of On ART H.DE47 */ /* @dataElement: HIV.H.DE73 - Date ART stopped @@ -14352,13 +14352,13 @@ define "On ART (Follow) Observation": @description: Date on which client stopped ART */ // TODO: Replace placeholder with relevant CQL logic -define "Date ART stopped (Follow)": +define "Date ART stopped H.DE73": [Observation: Concepts."Date ART stopped - HIV.H.DE73"] O where O.status in { 'final', 'amended', 'corrected' } -define "Date ART stopped (Follow) Value": - "Date ART stopped (Follow)" O +define "Date ART stopped H.DE73 Value": + "Date ART stopped H.DE73" O return O.value -/* End of Date ART stopped (Follow) */ +/* End of Date ART stopped H.DE73 */ /* @dataElement: HIV.H.DE74 - Reason ART stopped @@ -14366,12 +14366,12 @@ define "Date ART stopped (Follow) Value": @description: Reason why client intentionally stopped ART */ // TODO: Replace placeholder with relevant CQL logic -define "Reason ART stopped (Follow)": - exists "Reason ART stopped (Follow) Observation" -define "Reason ART stopped (Follow) Observation": +define "Reason ART stopped H.DE74": + exists "Reason ART stopped H.DE74 Observation" +define "Reason ART stopped H.DE74 Observation": [Observation: Concepts."Reason ART stopped - HIV.H.DE74"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Reason ART stopped (Follow) */ +/* End of Reason ART stopped H.DE74 */ /* @dataElement: HIV.H.DE75 - Toxicity/side effects @@ -14379,16 +14379,16 @@ define "Reason ART stopped (Follow) Observation": @description: Client stopped ART because of toxicity/side effects */ // TODO: Replace placeholder with relevant CQL logic -define "Toxicity/side effects (Follow)": - exists "Toxicity/side effects (Follow) Condition" - or exists "Toxicity/side effects (Follow) Observation" -define "Toxicity/side effects (Follow) Condition": +define "Toxicity/side effects H.DE75": + exists "Toxicity/side effects H.DE75 Condition" + or exists "Toxicity/side effects H.DE75 Observation" +define "Toxicity/side effects H.DE75 Condition": [Condition: Concepts."Toxicity/side effects - HIV.H.DE75"] -define "Toxicity/side effects (Follow) Observation": - "Reason ART stopped (Follow) Observation" O +define "Toxicity/side effects H.DE75 Observation": + "Reason ART stopped H.DE74 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Toxicity/side effects - HIV.H.DE75" -/* End of Toxicity/side effects (Follow) */ +/* End of Toxicity/side effects H.DE75 */ /* @dataElement: HIV.H.DE76 - Severe illness, hospitalization @@ -14396,16 +14396,16 @@ define "Toxicity/side effects (Follow) Observation": @description: Client stopped ART because of severe illness, hospitalization */ // TODO: Replace placeholder with relevant CQL logic -define "Severe illness, hospitalization (Follow)": - exists "Severe illness, hospitalization (Follow) Condition" - or exists "Severe illness, hospitalization (Follow) Observation" -define "Severe illness, hospitalization (Follow) Condition": +define "Severe illness, hospitalization H.DE76": + exists "Severe illness, hospitalization H.DE76 Condition" + or exists "Severe illness, hospitalization H.DE76 Observation" +define "Severe illness, hospitalization H.DE76 Condition": [Condition: Concepts."Severe illness, hospitalization - HIV.H.DE76"] -define "Severe illness, hospitalization (Follow) Observation": - "Reason ART stopped (Follow) Observation" O +define "Severe illness, hospitalization H.DE76 Observation": + "Reason ART stopped H.DE74 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Severe illness, hospitalization - HIV.H.DE76" -/* End of Severe illness, hospitalization (Follow) */ +/* End of Severe illness, hospitalization H.DE76 */ /* @dataElement: HIV.H.DE77 - Drugs out of stock @@ -14413,16 +14413,16 @@ define "Severe illness, hospitalization (Follow) Observation": @description: Client stopped ART because of drugs being out of stock */ // TODO: Replace placeholder with relevant CQL logic -define "Drugs out of stock (Follow)": - exists "Drugs out of stock (Follow) Condition" - or exists "Drugs out of stock (Follow) Observation" -define "Drugs out of stock (Follow) Condition": +define "Drugs out of stock ": + exists "Drugs out of stock Condition" + or exists "Drugs out of stock Observation" +define "Drugs out of stock Condition": [Condition: Concepts."Drugs out of stock "] -define "Drugs out of stock (Follow) Observation": - "Reason ART stopped (Follow) Observation" O +define "Drugs out of stock Observation": + "Reason ART stopped H.DE74 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Drugs out of stock " -/* End of Drugs out of stock (Follow) */ +/* End of Drugs out of stock */ /* @dataElement: HIV.H.DE78 - Client lacks finances @@ -14430,16 +14430,16 @@ define "Drugs out of stock (Follow) Observation": @description: Client stopped ART because client lacked finances */ // TODO: Replace placeholder with relevant CQL logic -define "Client lacks finances (Follow)": - exists "Client lacks finances (Follow) Condition" - or exists "Client lacks finances (Follow) Observation" -define "Client lacks finances (Follow) Condition": +define "Client lacks finances ": + exists "Client lacks finances Condition" + or exists "Client lacks finances Observation" +define "Client lacks finances Condition": [Condition: Concepts."Client lacks finances "] -define "Client lacks finances (Follow) Observation": - "Reason ART stopped (Follow) Observation" O +define "Client lacks finances Observation": + "Reason ART stopped H.DE74 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Client lacks finances " -/* End of Client lacks finances (Follow) */ +/* End of Client lacks finances */ /* @dataElement: HIV.H.DE79 - Excluded HIV infection in infant @@ -14447,16 +14447,16 @@ define "Client lacks finances (Follow) Observation": @description: Client stopped ART because the infant was determined to not have HIV */ // TODO: Replace placeholder with relevant CQL logic -define "Excluded HIV infection in infant (Follow)": - exists "Excluded HIV infection in infant (Follow) Condition" - or exists "Excluded HIV infection in infant (Follow) Observation" -define "Excluded HIV infection in infant (Follow) Condition": +define "Excluded HIV infection in infant H.DE79": + exists "Excluded HIV infection in infant H.DE79 Condition" + or exists "Excluded HIV infection in infant H.DE79 Observation" +define "Excluded HIV infection in infant H.DE79 Condition": [Condition: Concepts."Excluded HIV infection in infant - HIV.H.DE79"] -define "Excluded HIV infection in infant (Follow) Observation": - "Reason ART stopped (Follow) Observation" O +define "Excluded HIV infection in infant H.DE79 Observation": + "Reason ART stopped H.DE74 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Excluded HIV infection in infant - HIV.H.DE79" -/* End of Excluded HIV infection in infant (Follow) */ +/* End of Excluded HIV infection in infant H.DE79 */ /* @dataElement: HIV.H.DE80 - Other reason for stopping ART @@ -14464,16 +14464,16 @@ define "Excluded HIV infection in infant (Follow) Observation": @description: Client stopped ART for other reason */ // TODO: Replace placeholder with relevant CQL logic -define "Other reason for stopping ART (Follow)": - exists "Other reason for stopping ART (Follow) Condition" - or exists "Other reason for stopping ART (Follow) Observation" -define "Other reason for stopping ART (Follow) Condition": +define "Other reason for stopping ART H.DE80": + exists "Other reason for stopping ART H.DE80 Condition" + or exists "Other reason for stopping ART H.DE80 Observation" +define "Other reason for stopping ART H.DE80 Condition": [Condition: Concepts."Other reason for stopping ART - HIV.H.DE80"] -define "Other reason for stopping ART (Follow) Observation": - "Reason ART stopped (Follow) Observation" O +define "Other reason for stopping ART H.DE80 Observation": + "Reason ART stopped H.DE74 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Other reason for stopping ART - HIV.H.DE80" -/* End of Other reason for stopping ART (Follow) */ +/* End of Other reason for stopping ART H.DE80 */ /* @dataElement: HIV.PRV.DE1 - At elevated risk for HIV acquisition @@ -14481,13 +14481,13 @@ define "Other reason for stopping ART (Follow) Observation": @description: Client is at elevated risk for HIV acquisition, defined according to country/programme context */ // TODO: Replace placeholder with relevant CQL logic -define "At elevated risk for HIV acquisition (Prevention)": - exists "At elevated risk for HIV acquisition (Prevention) Observation" -define "At elevated risk for HIV acquisition (Prevention) Observation": +define "At elevated risk for HIV acquisition PRV.DE1": + exists "At elevated risk for HIV acquisition PRV.DE1 Observation" +define "At elevated risk for HIV acquisition PRV.DE1 Observation": [Observation: Concepts."At elevated risk for HIV acquisition - HIV.PRV.DE1"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of At elevated risk for HIV acquisition (Prevention) */ +/* End of At elevated risk for HIV acquisition PRV.DE1 */ /* @dataElement: HIV.PRV.DE2 - HIV prevention intervention @@ -14495,12 +14495,12 @@ define "At elevated risk for HIV acquisition (Prevention) Observation": @description: HIV prevention intervention that client accessed */ // TODO: Replace placeholder with relevant CQL logic -define "HIV prevention intervention (Prevention)": - exists "HIV prevention intervention (Prevention) Observation" -define "HIV prevention intervention (Prevention) Observation": +define "HIV prevention intervention": + exists "HIV prevention intervention Observation" +define "HIV prevention intervention Observation": [Observation: Concepts."HIV prevention intervention"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of HIV prevention intervention (Prevention) */ +/* End of HIV prevention intervention */ /* @dataElement: HIV.PRV.DE3 - PrEP service @@ -14508,16 +14508,16 @@ define "HIV prevention intervention (Prevention) Observation": @description: Client accessed PrEP services */ // TODO: Replace placeholder with relevant CQL logic -define "PrEP service (Prevention)": - exists "PrEP service (Prevention) Condition" - or exists "PrEP service (Prevention) Observation" -define "PrEP service (Prevention) Condition": +define "PrEP service": + exists "PrEP service Condition" + or exists "PrEP service Observation" +define "PrEP service Condition": [Condition: Concepts."PrEP service"] -define "PrEP service (Prevention) Observation": - "HIV prevention intervention (Prevention) Observation" O +define "PrEP service Observation": + "HIV prevention intervention Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."PrEP service" -/* End of PrEP service (Prevention) */ +/* End of PrEP service */ /* @dataElement: HIV.PRV.DE4 - OAMT @@ -14525,16 +14525,16 @@ define "PrEP service (Prevention) Observation": @description: Client accessed opioid agonist maintenance treatment (OAMT) services */ // TODO: Replace placeholder with relevant CQL logic -define "OAMT (Prevention)": - exists "OAMT (Prevention) Condition" - or exists "OAMT (Prevention) Observation" -define "OAMT (Prevention) Condition": +define "OAMT": + exists "OAMT Condition" + or exists "OAMT Observation" +define "OAMT Condition": [Condition: Concepts."OAMT"] -define "OAMT (Prevention) Observation": - "HIV prevention intervention (Prevention) Observation" O +define "OAMT Observation": + "HIV prevention intervention Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."OAMT" -/* End of OAMT (Prevention) */ +/* End of OAMT */ /* @dataElement: HIV.PRV.DE5 - NSP @@ -14542,16 +14542,16 @@ define "OAMT (Prevention) Observation": @description: Client accessed needle-syringe programme (NSP) services */ // TODO: Replace placeholder with relevant CQL logic -define "NSP (Prevention)": - exists "NSP (Prevention) Condition" - or exists "NSP (Prevention) Observation" -define "NSP (Prevention) Condition": +define "NSP": + exists "NSP Condition" + or exists "NSP Observation" +define "NSP Condition": [Condition: Concepts."NSP"] -define "NSP (Prevention) Observation": - "HIV prevention intervention (Prevention) Observation" O +define "NSP Observation": + "HIV prevention intervention Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."NSP" -/* End of NSP (Prevention) */ +/* End of NSP */ /* @dataElement: HIV.PRV.DE6 - STI services @@ -14559,16 +14559,16 @@ define "NSP (Prevention) Observation": @description: Client accessed sexually transmitted infection (STI) services */ // TODO: Replace placeholder with relevant CQL logic -define "STI services (Prevention)": - exists "STI services (Prevention) Condition" - or exists "STI services (Prevention) Observation" -define "STI services (Prevention) Condition": +define "STI services": + exists "STI services Condition" + or exists "STI services Observation" +define "STI services Condition": [Condition: Concepts."STI services"] -define "STI services (Prevention) Observation": - "HIV prevention intervention (Prevention) Observation" O +define "STI services Observation": + "HIV prevention intervention Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."STI services" -/* End of STI services (Prevention) */ +/* End of STI services */ /* @dataElement: HIV.PRV.DE7 - VMMC @@ -14576,16 +14576,16 @@ define "STI services (Prevention) Observation": @description: Client accessed voluntary medical male circumcision (VMMC) services */ // TODO: Replace placeholder with relevant CQL logic -define "VMMC (Prevention)": - exists "VMMC (Prevention) Condition" - or exists "VMMC (Prevention) Observation" -define "VMMC (Prevention) Condition": +define "VMMC": + exists "VMMC Condition" + or exists "VMMC Observation" +define "VMMC Condition": [Condition: Concepts."VMMC"] -define "VMMC (Prevention) Observation": - "HIV prevention intervention (Prevention) Observation" O +define "VMMC Observation": + "HIV prevention intervention Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."VMMC" -/* End of VMMC (Prevention) */ +/* End of VMMC */ /* @dataElement: HIV.PRV.DE8 - Other @@ -14593,16 +14593,16 @@ define "VMMC (Prevention) Observation": @description: Client accessed other HIV prevention services */ // TODO: Replace placeholder with relevant CQL logic -define "Other (Prevention)": - exists "Other (Prevention) Condition" - or exists "Other (Prevention) Observation" -define "Other (Prevention) Condition": +define "Other PRV.DE8": + exists "Other PRV.DE8 Condition" + or exists "Other PRV.DE8 Observation" +define "Other PRV.DE8 Condition": [Condition: Concepts."Other - HIV.PRV.DE8"] -define "Other (Prevention) Observation": - "HIV prevention intervention (Prevention) Observation" O +define "Other PRV.DE8 Observation": + "HIV prevention intervention Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Other - HIV.PRV.DE8" -/* End of Other (Prevention) */ +/* End of Other PRV.DE8 */ /* @dataElement: HIV.PRV.DE10 - Date accessed HIV prevention intervention @@ -14610,13 +14610,13 @@ define "Other (Prevention) Observation": @description: Date the client accessed HIV prevention intervention */ // TODO: Replace placeholder with relevant CQL logic -define "Date accessed HIV prevention intervention (Prevention)": +define "Date accessed HIV prevention intervention": [Observation: Concepts."Date accessed HIV prevention intervention"] O where O.status in { 'final', 'amended', 'corrected' } -define "Date accessed HIV prevention intervention (Prevention) Value": - "Date accessed HIV prevention intervention (Prevention)" O +define "Date accessed HIV prevention intervention Value": + "Date accessed HIV prevention intervention" O return O.value -/* End of Date accessed HIV prevention intervention (Prevention) */ +/* End of Date accessed HIV prevention intervention */ /* @dataElement: HIV.PRV.DE11 - HIV status of contact @@ -14624,12 +14624,12 @@ define "Date accessed HIV prevention intervention (Prevention) Value": @description: The HIV status of the client's contact */ // TODO: Replace placeholder with relevant CQL logic -define "HIV status of contact (Prevention)": - exists "HIV status of contact (Prevention) Observation" -define "HIV status of contact (Prevention) Observation": +define "HIV status of contact": + exists "HIV status of contact Observation" +define "HIV status of contact Observation": [Observation: Concepts."HIV status of contact"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of HIV status of contact (Prevention) */ +/* End of HIV status of contact */ /* @dataElement: HIV.PRV.DE12 - HIV-positive @@ -14637,16 +14637,16 @@ define "HIV status of contact (Prevention) Observation": @description: Client's contact is HIV-positive */ // TODO: Replace placeholder with relevant CQL logic -define "HIV-positive (Prevention)": - exists "HIV-positive (Prevention) Condition" - or exists "HIV-positive (Prevention) Observation" -define "HIV-positive (Prevention) Condition": +define "HIV-positive PRV.DE12": + exists "HIV-positive PRV.DE12 Condition" + or exists "HIV-positive PRV.DE12 Observation" +define "HIV-positive PRV.DE12 Condition": [Condition: Concepts."HIV-positive - HIV.PRV.DE12"] -define "HIV-positive (Prevention) Observation": - "HIV status of contact (Prevention) Observation" O +define "HIV-positive PRV.DE12 Observation": + "HIV status of contact Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."HIV-positive - HIV.PRV.DE12" -/* End of HIV-positive (Prevention) */ +/* End of HIV-positive PRV.DE12 */ /* @dataElement: HIV.PRV.DE13 - HIV-negative @@ -14654,16 +14654,16 @@ define "HIV-positive (Prevention) Observation": @description: Client's contact is HIV-negative */ // TODO: Replace placeholder with relevant CQL logic -define "HIV-negative (Prevention)": - exists "HIV-negative (Prevention) Condition" - or exists "HIV-negative (Prevention) Observation" -define "HIV-negative (Prevention) Condition": +define "HIV-negative PRV.DE13": + exists "HIV-negative PRV.DE13 Condition" + or exists "HIV-negative PRV.DE13 Observation" +define "HIV-negative PRV.DE13 Condition": [Condition: Concepts."HIV-negative - HIV.PRV.DE13"] -define "HIV-negative (Prevention) Observation": - "HIV status of contact (Prevention) Observation" O +define "HIV-negative PRV.DE13 Observation": + "HIV status of contact Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."HIV-negative - HIV.PRV.DE13" -/* End of HIV-negative (Prevention) */ +/* End of HIV-negative PRV.DE13 */ /* @dataElement: HIV.PRV.DE14 - Unknown @@ -14671,16 +14671,16 @@ define "HIV-negative (Prevention) Observation": @description: Client does not know contact's HIV status */ // TODO: Replace placeholder with relevant CQL logic -define "Unknown (Prevention)": - exists "Unknown (Prevention) Condition" - or exists "Unknown (Prevention) Observation" -define "Unknown (Prevention) Condition": +define "Unknown PRV.DE14": + exists "Unknown PRV.DE14 Condition" + or exists "Unknown PRV.DE14 Observation" +define "Unknown PRV.DE14 Condition": [Condition: Concepts."Unknown - HIV.PRV.DE14"] -define "Unknown (Prevention) Observation": - "HIV status of contact (Prevention) Observation" O +define "Unknown PRV.DE14 Observation": + "HIV status of contact Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Unknown - HIV.PRV.DE14" -/* End of Unknown (Prevention) */ +/* End of Unknown PRV.DE14 */ /* @dataElement: HIV.PRV.DE15 - Date injecting equipment provided @@ -14688,13 +14688,13 @@ define "Unknown (Prevention) Observation": @description: Date client was provided with injecting equipment */ // TODO: Replace placeholder with relevant CQL logic -define "Date injecting equipment provided (Prevention)": +define "Date injecting equipment provided": [Observation: Concepts."Date injecting equipment provided"] O where O.status in { 'final', 'amended', 'corrected' } -define "Date injecting equipment provided (Prevention) Value": - "Date injecting equipment provided (Prevention)" O +define "Date injecting equipment provided Value": + "Date injecting equipment provided" O return O.value -/* End of Date injecting equipment provided (Prevention) */ +/* End of Date injecting equipment provided */ /* @dataElement: HIV.PRV.DE17 - Date OAMT initiated @@ -14702,13 +14702,13 @@ define "Date injecting equipment provided (Prevention) Value": @description: Date client initiated opioid agonist maintenance treatment (OAMT) */ // TODO: Replace placeholder with relevant CQL logic -define "Date OAMT initiated (Prevention)": +define "Date OAMT initiated": [Observation: Concepts."Date OAMT initiated"] O where O.status in { 'final', 'amended', 'corrected' } -define "Date OAMT initiated (Prevention) Value": - "Date OAMT initiated (Prevention)" O +define "Date OAMT initiated Value": + "Date OAMT initiated" O return O.value -/* End of Date OAMT initiated (Prevention) */ +/* End of Date OAMT initiated */ /* @dataElement: HIV.PRV.DE20 - Currently on OAMT @@ -14716,13 +14716,13 @@ define "Date OAMT initiated (Prevention) Value": @description: Client is currently on opioid agonist maintenance treatment (OAMT) at reporting date, defined according to country/program to account for medication dispensed and LTFU criterion */ // TODO: Replace placeholder with relevant CQL logic -define "Currently on OAMT (Prevention)": - exists "Currently on OAMT (Prevention) Observation" -define "Currently on OAMT (Prevention) Observation": +define "Currently on OAMT": + exists "Currently on OAMT Observation" +define "Currently on OAMT Observation": [Observation: Concepts."Currently on OAMT"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Currently on OAMT (Prevention) */ +/* End of Currently on OAMT */ /* @dataElement: HIV.PRV.DE21 - Retained on OAMT @@ -14730,13 +14730,13 @@ define "Currently on OAMT (Prevention) Observation": @description: Client is retained on opioid agonist maintenance treatment (OAMT) at reporting date, defined according to country/program to account for medication dispensed and LTFU criterion */ // TODO: Replace placeholder with relevant CQL logic -define "Retained on OAMT (Prevention)": - exists "Retained on OAMT (Prevention) Observation" -define "Retained on OAMT (Prevention) Observation": +define "Retained on OAMT": + exists "Retained on OAMT Observation" +define "Retained on OAMT Observation": [Observation: Concepts."Retained on OAMT"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Retained on OAMT (Prevention) */ +/* End of Retained on OAMT */ /* @dataElement: HIV.PRV.DE25 - Date of loss to follow-up or OAMT stopped @@ -14744,13 +14744,13 @@ define "Retained on OAMT (Prevention) Observation": @description: Date of loss to follow-up or opioid agonist maintenance treatment (OAMT) stopped */ // TODO: Replace placeholder with relevant CQL logic -define "Date of loss to follow-up or OAMT stopped (Prevention)": +define "Date of loss to follow-up or OAMT stopped": [Observation: Concepts."Date of loss to follow-up or OAMT stopped"] O where O.status in { 'final', 'amended', 'corrected' } -define "Date of loss to follow-up or OAMT stopped (Prevention) Value": - "Date of loss to follow-up or OAMT stopped (Prevention)" O +define "Date of loss to follow-up or OAMT stopped Value": + "Date of loss to follow-up or OAMT stopped" O return O.value -/* End of Date of loss to follow-up or OAMT stopped (Prevention) */ +/* End of Date of loss to follow-up or OAMT stopped */ /* @dataElement: HIV.PRV.DE27 - Date medications prescribed @@ -14758,13 +14758,13 @@ define "Date of loss to follow-up or OAMT stopped (Prevention) Value": @description: Date the client was prescribed medications */ // TODO: Replace placeholder with relevant CQL logic -define "Date medications prescribed (Prevention)": +define "Date medications prescribed PRV.DE27": [Observation: Concepts."Date medications prescribed - HIV.PRV.DE27"] O where O.status in { 'final', 'amended', 'corrected' } -define "Date medications prescribed (Prevention) Value": - "Date medications prescribed (Prevention)" O +define "Date medications prescribed PRV.DE27 Value": + "Date medications prescribed PRV.DE27" O return O.value -/* End of Date medications prescribed (Prevention) */ +/* End of Date medications prescribed PRV.DE27 */ /* @dataElement: HIV.PRV.DE28 - Number of days prescribed @@ -14772,13 +14772,13 @@ define "Date medications prescribed (Prevention) Value": @description: Days of medication client has been prescribed */ // TODO: Replace placeholder with relevant CQL logic -define "Number of days prescribed (Prevention)": +define "Number of days prescribed PRV.DE28": [Observation: Concepts."Number of days prescribed - HIV.PRV.DE28"] O where O.status in { 'final', 'amended', 'corrected' } -define "Number of days prescribed (Prevention) Value": - "Number of days prescribed (Prevention)" O +define "Number of days prescribed PRV.DE28 Value": + "Number of days prescribed PRV.DE28" O return O.value -/* End of Number of days prescribed (Prevention) */ +/* End of Number of days prescribed PRV.DE28 */ /* @dataElement: HIV.SRV.DE1 - HIV test date @@ -14786,13 +14786,13 @@ define "Number of days prescribed (Prevention) Value": @description: Date of the HIV test */ // TODO: Replace placeholder with relevant CQL logic -define "HIV test date (Surveillance)": +define "HIV test date SRV.DE1": [Observation: Concepts."HIV test date - HIV.SRV.DE1"] O where O.status in { 'final', 'amended', 'corrected' } -define "HIV test date (Surveillance) Value": - "HIV test date (Surveillance)" O +define "HIV test date SRV.DE1 Value": + "HIV test date SRV.DE1" O return O.value -/* End of HIV test date (Surveillance) */ +/* End of HIV test date SRV.DE1 */ /* @dataElement: HIV.SRV.DE2 - HIV test result @@ -14800,12 +14800,12 @@ define "HIV test date (Surveillance) Value": @description: The result from HIV testing after applying the testing algorithm */ // TODO: Replace placeholder with relevant CQL logic -define "HIV test result (Surveillance)": - exists "HIV test result (Surveillance) Observation" -define "HIV test result (Surveillance) Observation": +define "HIV test result SRV.DE2": + exists "HIV test result SRV.DE2 Observation" +define "HIV test result SRV.DE2 Observation": [Observation: Concepts."HIV test result - HIV.SRV.DE2"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of HIV test result (Surveillance) */ +/* End of HIV test result SRV.DE2 */ /* @dataElement: HIV.SRV.DE3 - Baseline CD4 count @@ -14813,13 +14813,13 @@ define "HIV test result (Surveillance) Observation": @description: CD4 count performed at HIV diagnosis */ // TODO: Replace placeholder with relevant CQL logic -define "Baseline CD4 count (Surveillance)": +define "Baseline CD4 count SRV.DE3": [Observation: Concepts."Baseline CD4 count - HIV.SRV.DE3"] O where O.status in { 'final', 'amended', 'corrected' } -define "Baseline CD4 count (Surveillance) Value": - "Baseline CD4 count (Surveillance)" O +define "Baseline CD4 count SRV.DE3 Value": + "Baseline CD4 count SRV.DE3" O return O.value -/* End of Baseline CD4 count (Surveillance) */ +/* End of Baseline CD4 count SRV.DE3 */ /* @dataElement: HIV.SRV.DE4 - Date of baseline CD4 count test @@ -14827,13 +14827,13 @@ define "Baseline CD4 count (Surveillance) Value": @description: Date and time when baseline CD4 count test was conducted */ // TODO: Replace placeholder with relevant CQL logic -define "Date of baseline CD4 count test (Surveillance)": +define "Date of baseline CD4 count test SRV.DE4": [Observation: Concepts."Date of baseline CD4 count test - HIV.SRV.DE4"] O where O.status in { 'final', 'amended', 'corrected' } -define "Date of baseline CD4 count test (Surveillance) Value": - "Date of baseline CD4 count test (Surveillance)" O +define "Date of baseline CD4 count test SRV.DE4 Value": + "Date of baseline CD4 count test SRV.DE4" O return O.value -/* End of Date of baseline CD4 count test (Surveillance) */ +/* End of Date of baseline CD4 count test SRV.DE4 */ /* @dataElement: HIV.SRV.DE5 - HIV clinical stage @@ -14841,12 +14841,12 @@ define "Date of baseline CD4 count test (Surveillance) Value": @description: WHO clinical stage of client based on signs and symptoms. WHO clinical staging is a way to categorize HIV disease severity based on new or recurrent clinical events. There are 4 WHO clinical stages that range from mild symptoms (WHO clinical stage 1) to severe symptoms (WHO clinical stage 4). */ // TODO: Replace placeholder with relevant CQL logic -define "HIV clinical stage (Surveillance)": - exists "HIV clinical stage (Surveillance) Observation" -define "HIV clinical stage (Surveillance) Observation": +define "HIV clinical stage SRV.DE5": + exists "HIV clinical stage SRV.DE5 Observation" +define "HIV clinical stage SRV.DE5 Observation": [Observation: Concepts."HIV clinical stage - HIV.SRV.DE5"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of HIV clinical stage (Surveillance) */ +/* End of HIV clinical stage SRV.DE5 */ /* @dataElement: HIV.SRV.DE6 - ART start date @@ -14854,13 +14854,13 @@ define "HIV clinical stage (Surveillance) Observation": @description: The date on which the client started or restarted antiretroviral therapy (ART) */ // TODO: Replace placeholder with relevant CQL logic -define "ART start date (Surveillance)": +define "ART start date SRV.DE6": [Observation: Concepts."ART start date - HIV.SRV.DE6"] O where O.status in { 'final', 'amended', 'corrected' } -define "ART start date (Surveillance) Value": - "ART start date (Surveillance)" O +define "ART start date SRV.DE6 Value": + "ART start date SRV.DE6" O return O.value -/* End of ART start date (Surveillance) */ +/* End of ART start date SRV.DE6 */ /* @dataElement: HIV.SRV.DE7 - Currently pregnant @@ -14868,13 +14868,13 @@ define "ART start date (Surveillance) Value": @description: Client is currently pregnant */ // TODO: Replace placeholder with relevant CQL logic -define "Currently pregnant (Surveillance)": - exists "Currently pregnant (Surveillance) Observation" -define "Currently pregnant (Surveillance) Observation": +define "Currently pregnant SRV.DE7": + exists "Currently pregnant SRV.DE7 Observation" +define "Currently pregnant SRV.DE7 Observation": [Observation: Concepts."Currently pregnant - HIV.SRV.DE7"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Currently pregnant (Surveillance) */ +/* End of Currently pregnant SRV.DE7 */ /* @dataElement: HIV.SRV.DE8 - CD4 count @@ -14882,13 +14882,13 @@ define "Currently pregnant (Surveillance) Observation": @description: CD4 cell count in cells/mm^3 */ // TODO: Replace placeholder with relevant CQL logic -define "CD4 count (Surveillance)": +define "CD4 count SRV.DE8": [Observation: Concepts."CD4 count - HIV.SRV.DE8"] O where O.status in { 'final', 'amended', 'corrected' } -define "CD4 count (Surveillance) Value": - "CD4 count (Surveillance)" O +define "CD4 count SRV.DE8 Value": + "CD4 count SRV.DE8" O return O.value -/* End of CD4 count (Surveillance) */ +/* End of CD4 count SRV.DE8 */ /* @dataElement: HIV.SRV.DE12 - Date of viral load sample collection @@ -14896,13 +14896,13 @@ define "CD4 count (Surveillance) Value": @description: Date and time when the sample was collected to test the client's HIV viral load */ // TODO: Replace placeholder with relevant CQL logic -define "Date of viral load sample collection (Surveillance)": +define "Date of viral load sample collection SRV.DE12": [Observation: Concepts."Date of viral load sample collection - HIV.SRV.DE12"] O where O.status in { 'final', 'amended', 'corrected' } -define "Date of viral load sample collection (Surveillance) Value": - "Date of viral load sample collection (Surveillance)" O +define "Date of viral load sample collection SRV.DE12 Value": + "Date of viral load sample collection SRV.DE12" O return O.value -/* End of Date of viral load sample collection (Surveillance) */ +/* End of Date of viral load sample collection SRV.DE12 */ /* @dataElement: HIV.SRV.DE13 - Viral load test result @@ -14910,13 +14910,13 @@ define "Date of viral load sample collection (Surveillance) Value": @description: Result from the viral load test in number of copies/mL */ // TODO: Replace placeholder with relevant CQL logic -define "Viral load test result (Surveillance)": +define "Viral load test result SRV.DE13": [Observation: Concepts."Viral load test result - HIV.SRV.DE13"] O where O.status in { 'final', 'amended', 'corrected' } -define "Viral load test result (Surveillance) Value": - "Viral load test result (Surveillance)" O +define "Viral load test result SRV.DE13 Value": + "Viral load test result SRV.DE13" O return O.value -/* End of Viral load test result (Surveillance) */ +/* End of Viral load test result SRV.DE13 */ /* @dataElement: HIV.SRV.DE15 - Visit date @@ -14924,13 +14924,13 @@ define "Viral load test result (Surveillance) Value": @description: The date and time of the client's visit */ // TODO: Replace placeholder with relevant CQL logic -define "Visit date (Surveillance)": +define "Visit date SRV.DE15": [Observation: Concepts."Visit date - HIV.SRV.DE15"] O where O.status in { 'final', 'amended', 'corrected' } -define "Visit date (Surveillance) Value": - "Visit date (Surveillance)" O +define "Visit date SRV.DE15 Value": + "Visit date SRV.DE15" O return O.value -/* End of Visit date (Surveillance) */ +/* End of Visit date SRV.DE15 */ /* @dataElement: HIV.SRV.DE18 - ANC contact date @@ -14938,13 +14938,13 @@ define "Visit date (Surveillance) Value": @description: The date and time of the client's ANC contact (in the ANC DAK this is called 'Contact date') */ // TODO: Replace placeholder with relevant CQL logic -define "ANC contact date (Surveillance)": +define "ANC contact date SRV.DE18": [Observation: Concepts."ANC contact date - HIV.SRV.DE18"] O where O.status in { 'final', 'amended', 'corrected' } -define "ANC contact date (Surveillance) Value": - "ANC contact date (Surveillance)" O +define "ANC contact date SRV.DE18 Value": + "ANC contact date SRV.DE18" O return O.value -/* End of ANC contact date (Surveillance) */ +/* End of ANC contact date SRV.DE18 */ /* @dataElement: HIV.SRV.DE20 - HIV-exposed infant or child @@ -14952,13 +14952,13 @@ define "ANC contact date (Surveillance) Value": @description: Whether the infant or child was determined to have had HIV exposure */ // TODO: Replace placeholder with relevant CQL logic -define "HIV-exposed infant or child (Surveillance)": - exists "HIV-exposed infant or child (Surveillance) Observation" -define "HIV-exposed infant or child (Surveillance) Observation": +define "HIV-exposed infant or child SRV.DE20": + exists "HIV-exposed infant or child SRV.DE20 Observation" +define "HIV-exposed infant or child SRV.DE20 Observation": [Observation: Concepts."HIV-exposed infant or child - HIV.SRV.DE20"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of HIV-exposed infant or child (Surveillance) */ +/* End of HIV-exposed infant or child SRV.DE20 */ /* @dataElement: HIV.SRV.DE21 - Test result of HIV assay 1 @@ -14966,12 +14966,12 @@ define "HIV-exposed infant or child (Surveillance) Observation": @description: The result of the first HIV assay in the testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Test result of HIV assay 1 (Surveillance)": - exists "Test result of HIV assay 1 (Surveillance) Observation" -define "Test result of HIV assay 1 (Surveillance) Observation": +define "Test result of HIV assay 1 SRV.DE21": + exists "Test result of HIV assay 1 SRV.DE21 Observation" +define "Test result of HIV assay 1 SRV.DE21 Observation": [Observation: Concepts."Test result of HIV assay 1 - HIV.SRV.DE21"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Test result of HIV assay 1 (Surveillance) */ +/* End of Test result of HIV assay 1 SRV.DE21 */ /* @dataElement: HIV.SRV.DE22 - Final diagnosis of HIV-exposed infant @@ -14979,12 +14979,12 @@ define "Test result of HIV assay 1 (Surveillance) Observation": @description: HIV-exposed infant final status at 18 months or 3 months after cessation of breastfeeding (whichever is later). */ // TODO: Replace placeholder with relevant CQL logic -define "Final diagnosis of HIV-exposed infant (Surveillance)": - exists "Final diagnosis of HIV-exposed infant (Surveillance) Observation" -define "Final diagnosis of HIV-exposed infant (Surveillance) Observation": +define "Final diagnosis of HIV-exposed infant SRV.DE22": + exists "Final diagnosis of HIV-exposed infant SRV.DE22 Observation" +define "Final diagnosis of HIV-exposed infant SRV.DE22 Observation": [Observation: Concepts."Final diagnosis of HIV-exposed infant - HIV.SRV.DE22"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Final diagnosis of HIV-exposed infant (Surveillance) */ +/* End of Final diagnosis of HIV-exposed infant SRV.DE22 */ /* @dataElement: HIV.Config.DE6 - Malaria-endemic setting @@ -14992,13 +14992,13 @@ define "Final diagnosis of HIV-exposed infant (Surveillance) Observation": @description: Whether the setting is a malaria-endemic setting */ // TODO: Replace placeholder with relevant CQL logic -define "Malaria-endemic setting (Configuration)": - exists "Malaria-endemic setting (Configuration) Observation" -define "Malaria-endemic setting (Configuration) Observation": +define "Malaria-endemic setting": + exists "Malaria-endemic setting Observation" +define "Malaria-endemic setting Observation": [Observation: Concepts."Malaria-endemic setting"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Malaria-endemic setting (Configuration) */ +/* End of Malaria-endemic setting */ /* @dataElement: HIV.Config.DE12 - HIV burden of the setting @@ -15006,12 +15006,12 @@ define "Malaria-endemic setting (Configuration) Observation": @description: HIV burden of the setting (high or low) based on the national HIV prevalence or where the HIV prevalence and/or incidence in a geographical setting is higher than national prevalence and, therefore, needs priority in the HIV response */ // TODO: Replace placeholder with relevant CQL logic -define "HIV burden of the setting (Configuration)": - exists "HIV burden of the setting (Configuration) Observation" -define "HIV burden of the setting (Configuration) Observation": +define "HIV burden of the setting": + exists "HIV burden of the setting Observation" +define "HIV burden of the setting Observation": [Observation: Concepts."HIV burden of the setting"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of HIV burden of the setting (Configuration) */ +/* End of HIV burden of the setting */ /* @dataElement: HIV.Config.DE13 - High HIV burden setting @@ -15019,16 +15019,16 @@ define "HIV burden of the setting (Configuration) Observation": @description: Settings with >5% national HIV prevalence and subpopulations and geographic settings where HIV prevalence and/or incidence is higher than nationally. */ // TODO: Replace placeholder with relevant CQL logic -define "High HIV burden setting (Configuration)": - exists "High HIV burden setting (Configuration) Condition" - or exists "High HIV burden setting (Configuration) Observation" -define "High HIV burden setting (Configuration) Condition": +define "High HIV burden setting": + exists "High HIV burden setting Condition" + or exists "High HIV burden setting Observation" +define "High HIV burden setting Condition": [Condition: Concepts."High HIV burden setting"] -define "High HIV burden setting (Configuration) Observation": - "HIV burden of the setting (Configuration) Observation" O +define "High HIV burden setting Observation": + "HIV burden of the setting Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."High HIV burden setting" -/* End of High HIV burden setting (Configuration) */ +/* End of High HIV burden setting */ /* @dataElement: HIV.Config.DE14 - Low HIV burden setting @@ -15036,16 +15036,16 @@ define "High HIV burden setting (Configuration) Observation": @description: Settings with <5% HIV national prevalence but where certain populations (primarily key populations and their partners) and geographic settings may have higher HIV prevalence and/or incidence than nationally and, therefore, need priority in the HIV response */ // TODO: Replace placeholder with relevant CQL logic -define "Low HIV burden setting (Configuration)": - exists "Low HIV burden setting (Configuration) Condition" - or exists "Low HIV burden setting (Configuration) Observation" -define "Low HIV burden setting (Configuration) Condition": +define "Low HIV burden setting": + exists "Low HIV burden setting Condition" + or exists "Low HIV burden setting Observation" +define "Low HIV burden setting Condition": [Condition: Concepts."Low HIV burden setting"] -define "Low HIV burden setting (Configuration) Observation": - "HIV burden of the setting (Configuration) Observation" O +define "Low HIV burden setting Observation": + "HIV burden of the setting Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Low HIV burden setting" -/* End of Low HIV burden setting (Configuration) */ +/* End of Low HIV burden setting */ /* @dataElement: HIV.Config.DE15 - HPV DNA testing operational at the health facility @@ -15053,13 +15053,13 @@ define "Low HIV burden setting (Configuration) Observation": @description: Is HPV DNA testing operational at the health facility for cervical cancer screening? */ // TODO: Replace placeholder with relevant CQL logic -define "HPV DNA testing operational at the health facility (Configuration)": - exists "HPV DNA testing operational at the health facility (Configuration) Observation" -define "HPV DNA testing operational at the health facility (Configuration) Observation": +define "HPV DNA testing operational at the health facility": + exists "HPV DNA testing operational at the health facility Observation" +define "HPV DNA testing operational at the health facility Observation": [Observation: Concepts."HPV DNA testing operational at the health facility"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of HPV DNA testing operational at the health facility (Configuration) */ +/* End of HPV DNA testing operational at the health facility */ /* @dataElement: HIV.Config.DE19 - Other priority populations @@ -15067,12 +15067,12 @@ define "HPV DNA testing operational at the health facility (Configuration) Obser @description: Other populations of priority of HIV prevention and care in local context (provided during adaptation) */ // TODO: Replace placeholder with relevant CQL logic -define "Other priority populations (Configuration)": - exists "Other priority populations (Configuration) Observation" -define "Other priority populations (Configuration) Observation": +define "Other priority populations": + exists "Other priority populations Observation" +define "Other priority populations Observation": [Observation: Concepts."Other priority populations"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Other priority populations (Configuration) */ +/* End of Other priority populations */ /* @dataElement: HIV.Config.DE20 - Reporting period end date @@ -15080,13 +15080,13 @@ define "Other priority populations (Configuration) Observation": @description: End date of the reporting period */ // TODO: Replace placeholder with relevant CQL logic -define "Reporting period end date (Configuration)": +define "Reporting period end date": [Observation: Concepts."Reporting period end date"] O where O.status in { 'final', 'amended', 'corrected' } -define "Reporting period end date (Configuration) Value": - "Reporting period end date (Configuration)" O +define "Reporting period end date Value": + "Reporting period end date" O return O.value -/* End of Reporting period end date (Configuration) */ +/* End of Reporting period end date */ /* @dataElement: HIV.Config.DE21 - Reporting period start date @@ -15094,13 +15094,13 @@ define "Reporting period end date (Configuration) Value": @description: Start date of the reporting period */ // TODO: Replace placeholder with relevant CQL logic -define "Reporting period start date (Configuration)": +define "Reporting period start date": [Observation: Concepts."Reporting period start date"] O where O.status in { 'final', 'amended', 'corrected' } -define "Reporting period start date (Configuration) Value": - "Reporting period start date (Configuration)" O +define "Reporting period start date Value": + "Reporting period start date" O return O.value -/* End of Reporting period start date (Configuration) */ +/* End of Reporting period start date */ /* @dataElement: HIV.Config.DE22 - Reporting date @@ -15108,13 +15108,13 @@ define "Reporting period start date (Configuration) Value": @description: Reporting date, for surveys performed on a specific date */ // TODO: Replace placeholder with relevant CQL logic -define "Reporting date (Configuration)": +define "Reporting date": [Observation: Concepts."Reporting date"] O where O.status in { 'final', 'amended', 'corrected' } -define "Reporting date (Configuration) Value": - "Reporting date (Configuration)" O +define "Reporting date Value": + "Reporting date" O return O.value -/* End of Reporting date (Configuration) */ +/* End of Reporting date */ /* diff --git a/input/cql/HIVEncounterElements.cql b/input/cql/HIVEncounterElements.cql index ec9f252a25a..b1ff3862409 100644 --- a/input/cql/HIVEncounterElements.cql +++ b/input/cql/HIVEncounterElements.cql @@ -27,8607 +27,8607 @@ context Patient // in at least one Decision Support Table or Aggregate Indicator /* -@dataElement: HIV.A.DE16 - Estimated age (Registration) +@dataElement: HIV.A.DE16 - Estimated age @activity: HIV.A6.1 Review sociodemographic data with client | HIV.A5 Create new client record @description: If DOB is unknown, enter the client's estimated age. Display client's age in number of years. */ // TODO: Replace placeholder with relevant CQL logic -define "Estimated age (Registration)": - Elements."Estimated age (Registration)" O +define "Estimated age": + Elements."Estimated age" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -define "Estimated age (Registration) Value": - "Estimated age (Registration)" O +define "Estimated age Value": + "Estimated age" O return O.value -/* End of Estimated age (Registration) */ +/* End of Estimated age */ /* -@dataElement: HIV.B.DE1 - Reason for visit (HTS) +@dataElement: HIV.B.DE1 - Reason for visit @activity: HIV.B1 Determine reason for visit @description: Reason for HIV testing services visit */ // TODO: Replace placeholder with relevant CQL logic -define "Reason for visit (HTS)": - exists "Reason for visit (HTS) Observation" -define "Reason for visit (HTS) Observation": - Elements."Reason for visit (HTS) Observation" O +define "Reason for visit B.DE1": + exists "Reason for visit B.DE1 Observation" +define "Reason for visit B.DE1 Observation": + Elements."Reason for visit B.DE1 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Reason for visit (HTS) */ +/* End of Reason for visit B.DE1 */ /* -@dataElement: HIV.B.DE2 - First-time HIV test (HTS) +@dataElement: HIV.B.DE2 - First-time HIV test @activity: HIV.B1 Determine reason for visit @description: First encounter for screening for human immunodeficiency virus */ // TODO: Replace placeholder with relevant CQL logic -define "First-time HIV test (HTS)": - exists "First-time HIV test (HTS) Condition" - or exists "First-time HIV test (HTS) Observation" -define "First-time HIV test (HTS) Condition": - Elements."First-time HIV test (HTS) Condition" C +define "First-time HIV test": + exists "First-time HIV test Condition" + or exists "First-time HIV test Observation" +define "First-time HIV test Condition": + Elements."First-time HIV test Condition" C where C.prevalenceInterval() starts on or before Today -define "First-time HIV test (HTS) Observation": - Elements."First-time HIV test (HTS) Observation" O +define "First-time HIV test Observation": + Elements."First-time HIV test Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of First-time HIV test (HTS) */ +/* End of First-time HIV test */ /* -@dataElement: HIV.B.DE3 - Retesting for HIV (HTS|BDE3) +@dataElement: HIV.B.DE3 - Retesting for HIV @activity: HIV.B1 Determine reason for visit @description: Retesting for human immunodeficiency virus */ // TODO: Replace placeholder with relevant CQL logic -define "Retesting for HIV (HTS|BDE3)": - exists "Retesting for HIV (HTS|BDE3) Condition" - or exists "Retesting for HIV (HTS|BDE3) Observation" -define "Retesting for HIV (HTS|BDE3) Condition": - Elements."Retesting for HIV (HTS|BDE3) Condition" C +define "Retesting for HIV B.DE3": + exists "Retesting for HIV B.DE3 Condition" + or exists "Retesting for HIV B.DE3 Observation" +define "Retesting for HIV B.DE3 Condition": + Elements."Retesting for HIV B.DE3 Condition" C where C.prevalenceInterval() starts on or before Today -define "Retesting for HIV (HTS|BDE3) Observation": - Elements."Retesting for HIV (HTS|BDE3) Observation" O +define "Retesting for HIV B.DE3 Observation": + Elements."Retesting for HIV B.DE3 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Retesting for HIV (HTS|BDE3) */ +/* End of Retesting for HIV B.DE3 */ /* -@dataElement: HIV.B.DE4 - HIV testing services visit (HTS) +@dataElement: HIV.B.DE4 - HIV testing services visit @activity: HIV.B1 Determine reason for visit @description: Client attending facility for HIV testing services visit */ // TODO: Replace placeholder with relevant CQL logic -define "HIV testing services visit (HTS)": - exists "HIV testing services visit (HTS) Condition" - or exists "HIV testing services visit (HTS) Observation" -define "HIV testing services visit (HTS) Condition": - Elements."HIV testing services visit (HTS) Condition" C +define "HIV testing services visit": + exists "HIV testing services visit Condition" + or exists "HIV testing services visit Observation" +define "HIV testing services visit Condition": + Elements."HIV testing services visit Condition" C where C.prevalenceInterval() starts on or before Today -define "HIV testing services visit (HTS) Observation": - Elements."HIV testing services visit (HTS) Observation" O +define "HIV testing services visit Observation": + Elements."HIV testing services visit Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of HIV testing services visit (HTS) */ +/* End of HIV testing services visit */ /* -@dataElement: HIV.B.DE14 - Date/time of suspected exposure to HIV (HTS) +@dataElement: HIV.B.DE14 - Date/time of suspected exposure to HIV @activity: HIV.B1 Determine reason for visit @description: Date and time when the client had suspected exposure to HIV */ // TODO: Replace placeholder with relevant CQL logic -define "Date/time of suspected exposure to HIV (HTS)": - Elements."Date/time of suspected exposure to HIV (HTS)" O +define "Date/time of suspected exposure to HIV B.DE14": + Elements."Date/time of suspected exposure to HIV B.DE14" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -define "Date/time of suspected exposure to HIV (HTS) Value": - "Date/time of suspected exposure to HIV (HTS)" O +define "Date/time of suspected exposure to HIV B.DE14 Value": + "Date/time of suspected exposure to HIV B.DE14" O return O.value -/* End of Date/time of suspected exposure to HIV (HTS) */ +/* End of Date/time of suspected exposure to HIV B.DE14 */ /* -@dataElement: HIV.B.DE49 - Key population member* (HTS) +@dataElement: HIV.B.DE49 - Key population member* @activity: HIV.B6 Capture or update client history @description: Client is a member of a key population that has an increased risk of HIV */ // TODO: Replace placeholder with relevant CQL logic -define "Key population member* (HTS)": - exists "Key population member* (HTS) Observation" -define "Key population member* (HTS) Observation": - Elements."Key population member* (HTS) Observation" O +define "Key population member* B.DE49": + exists "Key population member* B.DE49 Observation" +define "Key population member* B.DE49 Observation": + Elements."Key population member* B.DE49 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Key population member* (HTS) */ +/* End of Key population member* B.DE49 */ /* -@dataElement: HIV.B.DE80 - HIV test conducted (HTS) +@dataElement: HIV.B.DE80 - HIV test conducted @activity: HIV.B7 Test for HIV using testing algorithm @description: An HIV test was performed on the client during the visit */ // TODO: Replace placeholder with relevant CQL logic -define "HIV test conducted (HTS)": - exists "HIV test conducted (HTS) Observation" -define "HIV test conducted (HTS) Observation": - Elements."HIV test conducted (HTS) Observation" O +define "HIV test conducted": + exists "HIV test conducted Observation" +define "HIV test conducted Observation": + Elements."HIV test conducted Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of HIV test conducted (HTS) */ +/* End of HIV test conducted */ /* -@dataElement: HIV.B.DE88 - Assay number in testing strategy (HTS) +@dataElement: HIV.B.DE88 - Assay number in testing strategy @activity: HIV.B7 Test for HIV using testing algorithm @description: The number of the assay (test kit) in the HIV testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Assay number in testing strategy (HTS)": - exists "Assay number in testing strategy (HTS) Observation" -define "Assay number in testing strategy (HTS) Observation": - Elements."Assay number in testing strategy (HTS) Observation" O +define "Assay number in testing strategy B.DE88": + exists "Assay number in testing strategy B.DE88 Observation" +define "Assay number in testing strategy B.DE88 Observation": + Elements."Assay number in testing strategy B.DE88 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Assay number in testing strategy (HTS) */ +/* End of Assay number in testing strategy B.DE88 */ /* -@dataElement: HIV.B.DE89 - Assay 0 (HTS) +@dataElement: HIV.B.DE89 - Assay 0 @activity: HIV.B7 Test for HIV using testing algorithm @description: A community outreach test-for-triage or self-test which is not included in the HIV testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Assay 0 (HTS)": - exists "Assay 0 (HTS) Condition" - or exists "Assay 0 (HTS) Observation" -define "Assay 0 (HTS) Condition": - Elements."Assay 0 (HTS) Condition" C +define "Assay 0 B.DE89": + exists "Assay 0 B.DE89 Condition" + or exists "Assay 0 B.DE89 Observation" +define "Assay 0 B.DE89 Condition": + Elements."Assay 0 B.DE89 Condition" C where C.prevalenceInterval() starts on or before Today -define "Assay 0 (HTS) Observation": - Elements."Assay 0 (HTS) Observation" O +define "Assay 0 B.DE89 Observation": + Elements."Assay 0 B.DE89 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Assay 0 (HTS) */ +/* End of Assay 0 B.DE89 */ /* -@dataElement: HIV.B.DE90 - Assay 1 (HTS) +@dataElement: HIV.B.DE90 - Assay 1 @activity: HIV.B7 Test for HIV using testing algorithm @description: The first test in the HIV testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Assay 1 (HTS)": - exists "Assay 1 (HTS) Condition" - or exists "Assay 1 (HTS) Observation" -define "Assay 1 (HTS) Condition": - Elements."Assay 1 (HTS) Condition" C +define "Assay 1 B.DE90": + exists "Assay 1 B.DE90 Condition" + or exists "Assay 1 B.DE90 Observation" +define "Assay 1 B.DE90 Condition": + Elements."Assay 1 B.DE90 Condition" C where C.prevalenceInterval() starts on or before Today -define "Assay 1 (HTS) Observation": - Elements."Assay 1 (HTS) Observation" O +define "Assay 1 B.DE90 Observation": + Elements."Assay 1 B.DE90 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Assay 1 (HTS) */ +/* End of Assay 1 B.DE90 */ /* -@dataElement: HIV.B.DE91 - Assay 2 (HTS) +@dataElement: HIV.B.DE91 - Assay 2 @activity: HIV.B7 Test for HIV using testing algorithm @description: The second test in the HIV testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Assay 2 (HTS)": - exists "Assay 2 (HTS) Condition" - or exists "Assay 2 (HTS) Observation" -define "Assay 2 (HTS) Condition": - Elements."Assay 2 (HTS) Condition" C +define "Assay 2 B.DE91": + exists "Assay 2 B.DE91 Condition" + or exists "Assay 2 B.DE91 Observation" +define "Assay 2 B.DE91 Condition": + Elements."Assay 2 B.DE91 Condition" C where C.prevalenceInterval() starts on or before Today -define "Assay 2 (HTS) Observation": - Elements."Assay 2 (HTS) Observation" O +define "Assay 2 B.DE91 Observation": + Elements."Assay 2 B.DE91 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Assay 2 (HTS) */ +/* End of Assay 2 B.DE91 */ /* -@dataElement: HIV.B.DE92 - Assay 3 (HTS) +@dataElement: HIV.B.DE92 - Assay 3 @activity: HIV.B7 Test for HIV using testing algorithm @description: The third test in the HIV testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Assay 3 (HTS)": - exists "Assay 3 (HTS) Condition" - or exists "Assay 3 (HTS) Observation" -define "Assay 3 (HTS) Condition": - Elements."Assay 3 (HTS) Condition" C +define "Assay 3 B.DE92": + exists "Assay 3 B.DE92 Condition" + or exists "Assay 3 B.DE92 Observation" +define "Assay 3 B.DE92 Condition": + Elements."Assay 3 B.DE92 Condition" C where C.prevalenceInterval() starts on or before Today -define "Assay 3 (HTS) Observation": - Elements."Assay 3 (HTS) Observation" O +define "Assay 3 B.DE92 Observation": + Elements."Assay 3 B.DE92 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Assay 3 (HTS) */ +/* End of Assay 3 B.DE92 */ /* -@dataElement: HIV.B.DE93 - Assay 1 repeated (HTS) +@dataElement: HIV.B.DE93 - Assay 1 repeated @activity: HIV.B7 Test for HIV using testing algorithm @description: The first test in the HIV testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Assay 1 repeated (HTS)": - exists "Assay 1 repeated (HTS) Condition" - or exists "Assay 1 repeated (HTS) Observation" -define "Assay 1 repeated (HTS) Condition": - Elements."Assay 1 repeated (HTS) Condition" C +define "Assay 1 repeated B.DE93": + exists "Assay 1 repeated B.DE93 Condition" + or exists "Assay 1 repeated B.DE93 Observation" +define "Assay 1 repeated B.DE93 Condition": + Elements."Assay 1 repeated B.DE93 Condition" C where C.prevalenceInterval() starts on or before Today -define "Assay 1 repeated (HTS) Observation": - Elements."Assay 1 repeated (HTS) Observation" O +define "Assay 1 repeated B.DE93 Observation": + Elements."Assay 1 repeated B.DE93 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Assay 1 repeated (HTS) */ +/* End of Assay 1 repeated B.DE93 */ /* -@dataElement: HIV.B.DE94 - Test result of HIV assay 1 (HTS) +@dataElement: HIV.B.DE94 - Test result of HIV assay 1 @activity: HIV.B7 Test for HIV using testing algorithm @description: The result of the first HIV assay in the testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Test result of HIV assay 1 (HTS)": - exists "Test result of HIV assay 1 (HTS) Observation" -define "Test result of HIV assay 1 (HTS) Observation": - Elements."Test result of HIV assay 1 (HTS) Observation" O +define "Test result of HIV assay 1 B.DE94": + exists "Test result of HIV assay 1 B.DE94 Observation" +define "Test result of HIV assay 1 B.DE94 Observation": + Elements."Test result of HIV assay 1 B.DE94 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Test result of HIV assay 1 (HTS) */ +/* End of Test result of HIV assay 1 B.DE94 */ /* -@dataElement: HIV.B.DE95 - Reactive (HTS|BDE95) +@dataElement: HIV.B.DE95 - Reactive @activity: HIV.B7 Test for HIV using testing algorithm @description: The result of the HIV assay in the testing strategy was reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Reactive (HTS|BDE95)": - exists "Reactive (HTS|BDE95) Condition" - or exists "Reactive (HTS|BDE95) Observation" -define "Reactive (HTS|BDE95) Condition": - Elements."Reactive (HTS|BDE95) Condition" C +define "Reactive B.DE95": + exists "Reactive B.DE95 Condition" + or exists "Reactive B.DE95 Observation" +define "Reactive B.DE95 Condition": + Elements."Reactive B.DE95 Condition" C where C.prevalenceInterval() starts on or before Today -define "Reactive (HTS|BDE95) Observation": - Elements."Reactive (HTS|BDE95) Observation" O +define "Reactive B.DE95 Observation": + Elements."Reactive B.DE95 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Reactive (HTS|BDE95) */ +/* End of Reactive B.DE95 */ /* -@dataElement: HIV.B.DE96 - Non-reactive (HTS|BDE96) +@dataElement: HIV.B.DE96 - Non-reactive @activity: HIV.B7 Test for HIV using testing algorithm @description: The result of the HIV assay in the testing strategy was non-reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Non-reactive (HTS|BDE96)": - exists "Non-reactive (HTS|BDE96) Condition" - or exists "Non-reactive (HTS|BDE96) Observation" -define "Non-reactive (HTS|BDE96) Condition": - Elements."Non-reactive (HTS|BDE96) Condition" C +define "Non-reactive B.DE96": + exists "Non-reactive B.DE96 Condition" + or exists "Non-reactive B.DE96 Observation" +define "Non-reactive B.DE96 Condition": + Elements."Non-reactive B.DE96 Condition" C where C.prevalenceInterval() starts on or before Today -define "Non-reactive (HTS|BDE96) Observation": - Elements."Non-reactive (HTS|BDE96) Observation" O +define "Non-reactive B.DE96 Observation": + Elements."Non-reactive B.DE96 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Non-reactive (HTS|BDE96) */ +/* End of Non-reactive B.DE96 */ /* -@dataElement: HIV.B.DE97 - Invalid (HTS|BDE97) +@dataElement: HIV.B.DE97 - Invalid @activity: HIV.B7 Test for HIV using testing algorithm @description: The result of the HIV assay in the testing strategy was invalid */ // TODO: Replace placeholder with relevant CQL logic -define "Invalid (HTS|BDE97)": - exists "Invalid (HTS|BDE97) Condition" - or exists "Invalid (HTS|BDE97) Observation" -define "Invalid (HTS|BDE97) Condition": - Elements."Invalid (HTS|BDE97) Condition" C +define "Invalid B.DE97": + exists "Invalid B.DE97 Condition" + or exists "Invalid B.DE97 Observation" +define "Invalid B.DE97 Condition": + Elements."Invalid B.DE97 Condition" C where C.prevalenceInterval() starts on or before Today -define "Invalid (HTS|BDE97) Observation": - Elements."Invalid (HTS|BDE97) Observation" O +define "Invalid B.DE97 Observation": + Elements."Invalid B.DE97 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Invalid (HTS|BDE97) */ +/* End of Invalid B.DE97 */ /* -@dataElement: HIV.B.DE98 - Test result of HIV assay 2 (HTS) +@dataElement: HIV.B.DE98 - Test result of HIV assay 2 @activity: HIV.B7 Test for HIV using testing algorithm @description: The result of the second HIV assay in the testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Test result of HIV assay 2 (HTS)": - exists "Test result of HIV assay 2 (HTS) Observation" -define "Test result of HIV assay 2 (HTS) Observation": - Elements."Test result of HIV assay 2 (HTS) Observation" O +define "Test result of HIV assay 2 B.DE98": + exists "Test result of HIV assay 2 B.DE98 Observation" +define "Test result of HIV assay 2 B.DE98 Observation": + Elements."Test result of HIV assay 2 B.DE98 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Test result of HIV assay 2 (HTS) */ +/* End of Test result of HIV assay 2 B.DE98 */ /* -@dataElement: HIV.B.DE99 - Reactive (HTS|BDE99) +@dataElement: HIV.B.DE99 - Reactive @activity: HIV.B7 Test for HIV using testing algorithm @description: The result of the HIV assay in the testing strategy was reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Reactive (HTS|BDE99)": - exists "Reactive (HTS|BDE99) Condition" - or exists "Reactive (HTS|BDE99) Observation" -define "Reactive (HTS|BDE99) Condition": - Elements."Reactive (HTS|BDE99) Condition" C +define "Reactive B.DE99": + exists "Reactive B.DE99 Condition" + or exists "Reactive B.DE99 Observation" +define "Reactive B.DE99 Condition": + Elements."Reactive B.DE99 Condition" C where C.prevalenceInterval() starts on or before Today -define "Reactive (HTS|BDE99) Observation": - Elements."Reactive (HTS|BDE99) Observation" O +define "Reactive B.DE99 Observation": + Elements."Reactive B.DE99 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Reactive (HTS|BDE99) */ +/* End of Reactive B.DE99 */ /* -@dataElement: HIV.B.DE100 - Non-reactive (HTS|BDE100) +@dataElement: HIV.B.DE100 - Non-reactive @activity: HIV.B7 Test for HIV using testing algorithm @description: The result of the HIV assay in the testing strategy was non-reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Non-reactive (HTS|BDE100)": - exists "Non-reactive (HTS|BDE100) Condition" - or exists "Non-reactive (HTS|BDE100) Observation" -define "Non-reactive (HTS|BDE100) Condition": - Elements."Non-reactive (HTS|BDE100) Condition" C +define "Non-reactive B.DE100": + exists "Non-reactive B.DE100 Condition" + or exists "Non-reactive B.DE100 Observation" +define "Non-reactive B.DE100 Condition": + Elements."Non-reactive B.DE100 Condition" C where C.prevalenceInterval() starts on or before Today -define "Non-reactive (HTS|BDE100) Observation": - Elements."Non-reactive (HTS|BDE100) Observation" O +define "Non-reactive B.DE100 Observation": + Elements."Non-reactive B.DE100 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Non-reactive (HTS|BDE100) */ +/* End of Non-reactive B.DE100 */ /* -@dataElement: HIV.B.DE101 - Invalid (HTS|BDE101) +@dataElement: HIV.B.DE101 - Invalid @activity: HIV.B7 Test for HIV using testing algorithm @description: The result of the HIV assay in the testing strategy was invalid */ // TODO: Replace placeholder with relevant CQL logic -define "Invalid (HTS|BDE101)": - exists "Invalid (HTS|BDE101) Condition" - or exists "Invalid (HTS|BDE101) Observation" -define "Invalid (HTS|BDE101) Condition": - Elements."Invalid (HTS|BDE101) Condition" C +define "Invalid B.DE101": + exists "Invalid B.DE101 Condition" + or exists "Invalid B.DE101 Observation" +define "Invalid B.DE101 Condition": + Elements."Invalid B.DE101 Condition" C where C.prevalenceInterval() starts on or before Today -define "Invalid (HTS|BDE101) Observation": - Elements."Invalid (HTS|BDE101) Observation" O +define "Invalid B.DE101 Observation": + Elements."Invalid B.DE101 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Invalid (HTS|BDE101) */ +/* End of Invalid B.DE101 */ /* -@dataElement: HIV.B.DE102 - Test result of HIV assay 3 (HTS) +@dataElement: HIV.B.DE102 - Test result of HIV assay 3 @activity: HIV.B7 Test for HIV using testing algorithm @description: The result of the third HIV assay in the testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Test result of HIV assay 3 (HTS)": - exists "Test result of HIV assay 3 (HTS) Observation" -define "Test result of HIV assay 3 (HTS) Observation": - Elements."Test result of HIV assay 3 (HTS) Observation" O +define "Test result of HIV assay 3 B.DE102": + exists "Test result of HIV assay 3 B.DE102 Observation" +define "Test result of HIV assay 3 B.DE102 Observation": + Elements."Test result of HIV assay 3 B.DE102 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Test result of HIV assay 3 (HTS) */ +/* End of Test result of HIV assay 3 B.DE102 */ /* -@dataElement: HIV.B.DE103 - Reactive (HTS|BDE103) +@dataElement: HIV.B.DE103 - Reactive @activity: HIV.B7 Test for HIV using testing algorithm @description: The result of the HIV assay in the testing strategy was reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Reactive (HTS|BDE103)": - exists "Reactive (HTS|BDE103) Condition" - or exists "Reactive (HTS|BDE103) Observation" -define "Reactive (HTS|BDE103) Condition": - Elements."Reactive (HTS|BDE103) Condition" C +define "Reactive B.DE103": + exists "Reactive B.DE103 Condition" + or exists "Reactive B.DE103 Observation" +define "Reactive B.DE103 Condition": + Elements."Reactive B.DE103 Condition" C where C.prevalenceInterval() starts on or before Today -define "Reactive (HTS|BDE103) Observation": - Elements."Reactive (HTS|BDE103) Observation" O +define "Reactive B.DE103 Observation": + Elements."Reactive B.DE103 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Reactive (HTS|BDE103) */ +/* End of Reactive B.DE103 */ /* -@dataElement: HIV.B.DE104 - Non-reactive (HTS|BDE104) +@dataElement: HIV.B.DE104 - Non-reactive @activity: HIV.B7 Test for HIV using testing algorithm @description: The result of the HIV assay in the testing strategy was non-reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Non-reactive (HTS|BDE104)": - exists "Non-reactive (HTS|BDE104) Condition" - or exists "Non-reactive (HTS|BDE104) Observation" -define "Non-reactive (HTS|BDE104) Condition": - Elements."Non-reactive (HTS|BDE104) Condition" C +define "Non-reactive B.DE104": + exists "Non-reactive B.DE104 Condition" + or exists "Non-reactive B.DE104 Observation" +define "Non-reactive B.DE104 Condition": + Elements."Non-reactive B.DE104 Condition" C where C.prevalenceInterval() starts on or before Today -define "Non-reactive (HTS|BDE104) Observation": - Elements."Non-reactive (HTS|BDE104) Observation" O +define "Non-reactive B.DE104 Observation": + Elements."Non-reactive B.DE104 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Non-reactive (HTS|BDE104) */ +/* End of Non-reactive B.DE104 */ /* -@dataElement: HIV.B.DE105 - Invalid (HTS|BDE105) +@dataElement: HIV.B.DE105 - Invalid @activity: HIV.B7 Test for HIV using testing algorithm @description: The result of the HIV assay in the testing strategy was invalid */ // TODO: Replace placeholder with relevant CQL logic -define "Invalid (HTS|BDE105)": - exists "Invalid (HTS|BDE105) Condition" - or exists "Invalid (HTS|BDE105) Observation" -define "Invalid (HTS|BDE105) Condition": - Elements."Invalid (HTS|BDE105) Condition" C +define "Invalid B.DE105": + exists "Invalid B.DE105 Condition" + or exists "Invalid B.DE105 Observation" +define "Invalid B.DE105 Condition": + Elements."Invalid B.DE105 Condition" C where C.prevalenceInterval() starts on or before Today -define "Invalid (HTS|BDE105) Observation": - Elements."Invalid (HTS|BDE105) Observation" O +define "Invalid B.DE105 Observation": + Elements."Invalid B.DE105 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Invalid (HTS|BDE105) */ +/* End of Invalid B.DE105 */ /* -@dataElement: HIV.B.DE106 - Test result of HIV assay 1 repeated (HTS) +@dataElement: HIV.B.DE106 - Test result of HIV assay 1 repeated @activity: HIV.B7 Test for HIV using testing algorithm @description: The result of the repeated first HIV assay in the testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Test result of HIV assay 1 repeated (HTS)": - exists "Test result of HIV assay 1 repeated (HTS) Observation" -define "Test result of HIV assay 1 repeated (HTS) Observation": - Elements."Test result of HIV assay 1 repeated (HTS) Observation" O +define "Test result of HIV assay 1 repeated B.DE106": + exists "Test result of HIV assay 1 repeated B.DE106 Observation" +define "Test result of HIV assay 1 repeated B.DE106 Observation": + Elements."Test result of HIV assay 1 repeated B.DE106 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Test result of HIV assay 1 repeated (HTS) */ +/* End of Test result of HIV assay 1 repeated B.DE106 */ /* -@dataElement: HIV.B.DE107 - Reactive (HTS|BDE107) +@dataElement: HIV.B.DE107 - Reactive @activity: HIV.B7 Test for HIV using testing algorithm @description: The result of the HIV assay in the testing strategy was reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Reactive (HTS|BDE107)": - exists "Reactive (HTS|BDE107) Condition" - or exists "Reactive (HTS|BDE107) Observation" -define "Reactive (HTS|BDE107) Condition": - Elements."Reactive (HTS|BDE107) Condition" C +define "Reactive B.DE107": + exists "Reactive B.DE107 Condition" + or exists "Reactive B.DE107 Observation" +define "Reactive B.DE107 Condition": + Elements."Reactive B.DE107 Condition" C where C.prevalenceInterval() starts on or before Today -define "Reactive (HTS|BDE107) Observation": - Elements."Reactive (HTS|BDE107) Observation" O +define "Reactive B.DE107 Observation": + Elements."Reactive B.DE107 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Reactive (HTS|BDE107) */ +/* End of Reactive B.DE107 */ /* -@dataElement: HIV.B.DE108 - Non-reactive (HTS|BDE108) +@dataElement: HIV.B.DE108 - Non-reactive @activity: HIV.B7 Test for HIV using testing algorithm @description: The result of the HIV assay in the testing strategy was non-reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Non-reactive (HTS|BDE108)": - exists "Non-reactive (HTS|BDE108) Condition" - or exists "Non-reactive (HTS|BDE108) Observation" -define "Non-reactive (HTS|BDE108) Condition": - Elements."Non-reactive (HTS|BDE108) Condition" C +define "Non-reactive B.DE108": + exists "Non-reactive B.DE108 Condition" + or exists "Non-reactive B.DE108 Observation" +define "Non-reactive B.DE108 Condition": + Elements."Non-reactive B.DE108 Condition" C where C.prevalenceInterval() starts on or before Today -define "Non-reactive (HTS|BDE108) Observation": - Elements."Non-reactive (HTS|BDE108) Observation" O +define "Non-reactive B.DE108 Observation": + Elements."Non-reactive B.DE108 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Non-reactive (HTS|BDE108) */ +/* End of Non-reactive B.DE108 */ /* -@dataElement: HIV.B.DE109 - Invalid (HTS|BDE109) +@dataElement: HIV.B.DE109 - Invalid @activity: HIV.B7 Test for HIV using testing algorithm @description: The result of the HIV assay in the testing strategy was invalid */ // TODO: Replace placeholder with relevant CQL logic -define "Invalid (HTS|BDE109)": - exists "Invalid (HTS|BDE109) Condition" - or exists "Invalid (HTS|BDE109) Observation" -define "Invalid (HTS|BDE109) Condition": - Elements."Invalid (HTS|BDE109) Condition" C +define "Invalid B.DE109": + exists "Invalid B.DE109 Condition" + or exists "Invalid B.DE109 Observation" +define "Invalid B.DE109 Condition": + Elements."Invalid B.DE109 Condition" C where C.prevalenceInterval() starts on or before Today -define "Invalid (HTS|BDE109) Observation": - Elements."Invalid (HTS|BDE109) Observation" O +define "Invalid B.DE109 Observation": + Elements."Invalid B.DE109 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Invalid (HTS|BDE109) */ +/* End of Invalid B.DE109 */ /* -@dataElement: HIV.B.DE141 - Partner virally suppressed on ART (HTS) +@dataElement: HIV.B.DE141 - Partner virally suppressed on ART @activity: HIV.B6 Capture or update client history @description: ART and virally suppression status of a partner of the client */ // TODO: Replace placeholder with relevant CQL logic -define "Partner virally suppressed on ART (HTS)": - exists "Partner virally suppressed on ART (HTS) Observation" -define "Partner virally suppressed on ART (HTS) Observation": - Elements."Partner virally suppressed on ART (HTS) Observation" O +define "Partner virally suppressed on ART": + exists "Partner virally suppressed on ART Observation" +define "Partner virally suppressed on ART Observation": + Elements."Partner virally suppressed on ART Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Partner virally suppressed on ART (HTS) */ +/* End of Partner virally suppressed on ART */ /* -@dataElement: HIV.B.DE142 - Counselling provided (HTS) +@dataElement: HIV.B.DE142 - Counselling provided @activity: HIV.B8 Provide post-test counselling @description: Whether counselling was provided to a client during the visit */ // TODO: Replace placeholder with relevant CQL logic -define "Counselling provided (HTS)": - exists "Counselling provided (HTS) Observation" -define "Counselling provided (HTS) Observation": - Elements."Counselling provided (HTS) Observation" O +define "Counselling provided": + exists "Counselling provided Observation" +define "Counselling provided Observation": + Elements."Counselling provided Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Counselling provided (HTS) */ +/* End of Counselling provided */ /* -@dataElement: HIV.B.DE143 - HIV-positive counselling conducted (HTS) +@dataElement: HIV.B.DE143 - HIV-positive counselling conducted @activity: HIV.B8 Provide post-test counselling @description: Whether counselling was provided to a client who has been diagnosed with HIV */ // TODO: Replace placeholder with relevant CQL logic -define "HIV-positive counselling conducted (HTS)": - exists "HIV-positive counselling conducted (HTS) Condition" - or exists "HIV-positive counselling conducted (HTS) Observation" -define "HIV-positive counselling conducted (HTS) Condition": - Elements."HIV-positive counselling conducted (HTS) Condition" C +define "HIV-positive counselling conducted": + exists "HIV-positive counselling conducted Condition" + or exists "HIV-positive counselling conducted Observation" +define "HIV-positive counselling conducted Condition": + Elements."HIV-positive counselling conducted Condition" C where C.prevalenceInterval() starts on or before Today -define "HIV-positive counselling conducted (HTS) Observation": - Elements."HIV-positive counselling conducted (HTS) Observation" O +define "HIV-positive counselling conducted Observation": + Elements."HIV-positive counselling conducted Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of HIV-positive counselling conducted (HTS) */ +/* End of HIV-positive counselling conducted */ /* -@dataElement: HIV.B.DE144 - Hepatitis B positive counselling conducted (HTS) +@dataElement: HIV.B.DE144 - Hepatitis B positive counselling conducted @activity: HIV.B8 Provide post-test counselling @description: Whether counselling was provided to a client who has been diagnosed with hepatitis B */ // TODO: Replace placeholder with relevant CQL logic -define "Hepatitis B positive counselling conducted (HTS)": - exists "Hepatitis B positive counselling conducted (HTS) Condition" - or exists "Hepatitis B positive counselling conducted (HTS) Observation" -define "Hepatitis B positive counselling conducted (HTS) Condition": - Elements."Hepatitis B positive counselling conducted (HTS) Condition" C +define "Hepatitis B positive counselling conducted": + exists "Hepatitis B positive counselling conducted Condition" + or exists "Hepatitis B positive counselling conducted Observation" +define "Hepatitis B positive counselling conducted Condition": + Elements."Hepatitis B positive counselling conducted Condition" C where C.prevalenceInterval() starts on or before Today -define "Hepatitis B positive counselling conducted (HTS) Observation": - Elements."Hepatitis B positive counselling conducted (HTS) Observation" O +define "Hepatitis B positive counselling conducted Observation": + Elements."Hepatitis B positive counselling conducted Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Hepatitis B positive counselling conducted (HTS) */ +/* End of Hepatitis B positive counselling conducted */ /* -@dataElement: HIV.B.DE145 - Hepatitis C positive counselling conducted (HTS) +@dataElement: HIV.B.DE145 - Hepatitis C positive counselling conducted @activity: HIV.B8 Provide post-test counselling @description: Whether counselling was provided to a client who has been diagnosed with hepatitis C */ // TODO: Replace placeholder with relevant CQL logic -define "Hepatitis C positive counselling conducted (HTS)": - exists "Hepatitis C positive counselling conducted (HTS) Condition" - or exists "Hepatitis C positive counselling conducted (HTS) Observation" -define "Hepatitis C positive counselling conducted (HTS) Condition": - Elements."Hepatitis C positive counselling conducted (HTS) Condition" C +define "Hepatitis C positive counselling conducted": + exists "Hepatitis C positive counselling conducted Condition" + or exists "Hepatitis C positive counselling conducted Observation" +define "Hepatitis C positive counselling conducted Condition": + Elements."Hepatitis C positive counselling conducted Condition" C where C.prevalenceInterval() starts on or before Today -define "Hepatitis C positive counselling conducted (HTS) Observation": - Elements."Hepatitis C positive counselling conducted (HTS) Observation" O +define "Hepatitis C positive counselling conducted Observation": + Elements."Hepatitis C positive counselling conducted Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Hepatitis C positive counselling conducted (HTS) */ +/* End of Hepatitis C positive counselling conducted */ /* -@dataElement: HIV.B.DE146 - Syphilis counselling, treatment and further testing (HTS) +@dataElement: HIV.B.DE146 - Syphilis counselling, treatment and further testing @activity: HIV.B8 Provide post-test counselling @description: Whether counselling and treatment was provided to a client who has been diagnosed with syphilis. Additional testing (RPR test) recommended. */ // TODO: Replace placeholder with relevant CQL logic -define "Syphilis counselling, treatment and further testing (HTS)": - exists "Syphilis counselling, treatment and further testing (HTS) Condition" - or exists "Syphilis counselling, treatment and further testing (HTS) Observation" -define "Syphilis counselling, treatment and further testing (HTS) Condition": - Elements."Syphilis counselling, treatment and further testing (HTS) Condition" C +define "Syphilis counselling, treatment and further testing": + exists "Syphilis counselling, treatment and further testing Condition" + or exists "Syphilis counselling, treatment and further testing Observation" +define "Syphilis counselling, treatment and further testing Condition": + Elements."Syphilis counselling, treatment and further testing Condition" C where C.prevalenceInterval() starts on or before Today -define "Syphilis counselling, treatment and further testing (HTS) Observation": - Elements."Syphilis counselling, treatment and further testing (HTS) Observation" O +define "Syphilis counselling, treatment and further testing Observation": + Elements."Syphilis counselling, treatment and further testing Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Syphilis counselling, treatment and further testing (HTS) */ +/* End of Syphilis counselling, treatment and further testing */ /* -@dataElement: HIV.B.DE147 - Linked to enrolment in care and ART initiation (HTS) +@dataElement: HIV.B.DE147 - Linked to enrolment in care and ART initiation @activity: HIV.B8 Provide post-test counselling @description: Linkage made from HIV testing to enrolment in care following an HIV diagnosis */ // TODO: Replace placeholder with relevant CQL logic -define "Linked to enrolment in care and ART initiation (HTS)": - exists "Linked to enrolment in care and ART initiation (HTS) Condition" - or exists "Linked to enrolment in care and ART initiation (HTS) Observation" -define "Linked to enrolment in care and ART initiation (HTS) Condition": - Elements."Linked to enrolment in care and ART initiation (HTS) Condition" C +define "Linked to enrolment in care and ART initiation": + exists "Linked to enrolment in care and ART initiation Condition" + or exists "Linked to enrolment in care and ART initiation Observation" +define "Linked to enrolment in care and ART initiation Condition": + Elements."Linked to enrolment in care and ART initiation Condition" C where C.prevalenceInterval() starts on or before Today -define "Linked to enrolment in care and ART initiation (HTS) Observation": - Elements."Linked to enrolment in care and ART initiation (HTS) Observation" O +define "Linked to enrolment in care and ART initiation Observation": + Elements."Linked to enrolment in care and ART initiation Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Linked to enrolment in care and ART initiation (HTS) */ +/* End of Linked to enrolment in care and ART initiation */ /* -@dataElement: HIV.B.DE148 - VMMC counselling provided (HTS) +@dataElement: HIV.B.DE148 - VMMC counselling provided @activity: HIV.B8 Provide post-test counselling @description: Whether counselling for voluntary medical male circumcision (VMMC) was provided following an HIV-negative test */ // TODO: Replace placeholder with relevant CQL logic -define "VMMC counselling provided (HTS)": - exists "VMMC counselling provided (HTS) Condition" - or exists "VMMC counselling provided (HTS) Observation" -define "VMMC counselling provided (HTS) Condition": - Elements."VMMC counselling provided (HTS) Condition" C +define "VMMC counselling provided": + exists "VMMC counselling provided Condition" + or exists "VMMC counselling provided Observation" +define "VMMC counselling provided Condition": + Elements."VMMC counselling provided Condition" C where C.prevalenceInterval() starts on or before Today -define "VMMC counselling provided (HTS) Observation": - Elements."VMMC counselling provided (HTS) Observation" O +define "VMMC counselling provided Observation": + Elements."VMMC counselling provided Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of VMMC counselling provided (HTS) */ +/* End of VMMC counselling provided */ /* -@dataElement: HIV.B.DE149 - Prevention services offered and referrals (HTS) +@dataElement: HIV.B.DE149 - Prevention services offered and referrals @activity: HIV.B9 Determine recommended services @description: Offer or refer to prevention services */ // TODO: Replace placeholder with relevant CQL logic -define "Prevention services offered and referrals (HTS)": - exists "Prevention services offered and referrals (HTS) Observation" -define "Prevention services offered and referrals (HTS) Observation": - Elements."Prevention services offered and referrals (HTS) Observation" O +define "Prevention services offered and referrals B.DE149": + exists "Prevention services offered and referrals B.DE149 Observation" +define "Prevention services offered and referrals B.DE149 Observation": + Elements."Prevention services offered and referrals B.DE149 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Prevention services offered and referrals (HTS) */ +/* End of Prevention services offered and referrals B.DE149 */ /* -@dataElement: HIV.B.DE150 - Offer male and female condoms and condom-compatible lubricants (HTS) +@dataElement: HIV.B.DE150 - Offer male and female condoms and condom-compatible lubricants @activity: HIV.B9 Determine recommended services @description: Offer male and female condoms and condom-compatible lubricants */ // TODO: Replace placeholder with relevant CQL logic -define "Offer male and female condoms and condom-compatible lubricants (HTS)": - exists "Offer male and female condoms and condom-compatible lubricants (HTS) Condition" - or exists "Offer male and female condoms and condom-compatible lubricants (HTS) Observation" -define "Offer male and female condoms and condom-compatible lubricants (HTS) Condition": - Elements."Offer male and female condoms and condom-compatible lubricants (HTS) Condition" C +define "Offer male and female condoms and condom-compatible lubricants B.DE150": + exists "Offer male and female condoms and condom-compatible lubricants B.DE150 Condition" + or exists "Offer male and female condoms and condom-compatible lubricants B.DE150 Observation" +define "Offer male and female condoms and condom-compatible lubricants B.DE150 Condition": + Elements."Offer male and female condoms and condom-compatible lubricants B.DE150 Condition" C where C.prevalenceInterval() starts on or before Today -define "Offer male and female condoms and condom-compatible lubricants (HTS) Observation": - Elements."Offer male and female condoms and condom-compatible lubricants (HTS) Observation" O +define "Offer male and female condoms and condom-compatible lubricants B.DE150 Observation": + Elements."Offer male and female condoms and condom-compatible lubricants B.DE150 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Offer male and female condoms and condom-compatible lubricants (HTS) */ +/* End of Offer male and female condoms and condom-compatible lubricants B.DE150 */ /* -@dataElement: HIV.B.DE151 - Offer pre-exposure prophylaxis PrEP for people at elevated risk for HIV acquisition (HTS) +@dataElement: HIV.B.DE151 - Offer pre-exposure prophylaxis PrEP for people at elevated risk for HIV acquisition @activity: HIV.B9 Determine recommended services @description: Offer pre-exposure prophylaxis (PrEP) to people with substantial ongoing risk of HIV infection */ // TODO: Replace placeholder with relevant CQL logic -define "Offer pre-exposure prophylaxis PrEP for people at elevated risk for HIV acquisition (HTS)": - exists "Offer pre-exposure prophylaxis PrEP for people at elevated risk for HIV acquisition (HTS) Condition" - or exists "Offer pre-exposure prophylaxis PrEP for people at elevated risk for HIV acquisition (HTS) Observation" -define "Offer pre-exposure prophylaxis PrEP for people at elevated risk for HIV acquisition (HTS) Condition": - Elements."Offer pre-exposure prophylaxis PrEP for people at elevated risk for HIV acquisition (HTS) Condition" C +define "Offer pre-exposure prophylaxis PrEP for people at elevated risk for HIV acquisition": + exists "Offer pre-exposure prophylaxis PrEP for people at elevated risk for HIV acquisition Condition" + or exists "Offer pre-exposure prophylaxis PrEP for people at elevated risk for HIV acquisition Observation" +define "Offer pre-exposure prophylaxis PrEP for people at elevated risk for HIV acquisition Condition": + Elements."Offer pre-exposure prophylaxis PrEP for people at elevated risk for HIV acquisition Condition" C where C.prevalenceInterval() starts on or before Today -define "Offer pre-exposure prophylaxis PrEP for people at elevated risk for HIV acquisition (HTS) Observation": - Elements."Offer pre-exposure prophylaxis PrEP for people at elevated risk for HIV acquisition (HTS) Observation" O +define "Offer pre-exposure prophylaxis PrEP for people at elevated risk for HIV acquisition Observation": + Elements."Offer pre-exposure prophylaxis PrEP for people at elevated risk for HIV acquisition Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Offer pre-exposure prophylaxis PrEP for people at elevated risk for HIV acquisition (HTS) */ +/* End of Offer pre-exposure prophylaxis PrEP for people at elevated risk for HIV acquisition */ /* -@dataElement: HIV.B.DE152 - Offer post-exposure prophylaxis PEP following suspected exposure (HTS) +@dataElement: HIV.B.DE152 - Offer post-exposure prophylaxis PEP following suspected exposure @activity: HIV.B9 Determine recommended services @description: Offer or refer client for PEP following suspected exposure */ // TODO: Replace placeholder with relevant CQL logic -define "Offer post-exposure prophylaxis PEP following suspected exposure (HTS)": - exists "Offer post-exposure prophylaxis PEP following suspected exposure (HTS) Condition" - or exists "Offer post-exposure prophylaxis PEP following suspected exposure (HTS) Observation" -define "Offer post-exposure prophylaxis PEP following suspected exposure (HTS) Condition": - Elements."Offer post-exposure prophylaxis PEP following suspected exposure (HTS) Condition" C +define "Offer post-exposure prophylaxis PEP following suspected exposure": + exists "Offer post-exposure prophylaxis PEP following suspected exposure Condition" + or exists "Offer post-exposure prophylaxis PEP following suspected exposure Observation" +define "Offer post-exposure prophylaxis PEP following suspected exposure Condition": + Elements."Offer post-exposure prophylaxis PEP following suspected exposure Condition" C where C.prevalenceInterval() starts on or before Today -define "Offer post-exposure prophylaxis PEP following suspected exposure (HTS) Observation": - Elements."Offer post-exposure prophylaxis PEP following suspected exposure (HTS) Observation" O +define "Offer post-exposure prophylaxis PEP following suspected exposure Observation": + Elements."Offer post-exposure prophylaxis PEP following suspected exposure Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Offer post-exposure prophylaxis PEP following suspected exposure (HTS) */ +/* End of Offer post-exposure prophylaxis PEP following suspected exposure */ /* -@dataElement: HIV.B.DE153 - Voluntary medical male circumcision VMMC (HTS) +@dataElement: HIV.B.DE153 - Voluntary medical male circumcision VMMC @activity: HIV.B9 Determine recommended services @description: Offer referral for VMMC services */ // TODO: Replace placeholder with relevant CQL logic -define "Voluntary medical male circumcision VMMC (HTS)": - exists "Voluntary medical male circumcision VMMC (HTS) Condition" - or exists "Voluntary medical male circumcision VMMC (HTS) Observation" -define "Voluntary medical male circumcision VMMC (HTS) Condition": - Elements."Voluntary medical male circumcision VMMC (HTS) Condition" C +define "Voluntary medical male circumcision VMMC": + exists "Voluntary medical male circumcision VMMC Condition" + or exists "Voluntary medical male circumcision VMMC Observation" +define "Voluntary medical male circumcision VMMC Condition": + Elements."Voluntary medical male circumcision VMMC Condition" C where C.prevalenceInterval() starts on or before Today -define "Voluntary medical male circumcision VMMC (HTS) Observation": - Elements."Voluntary medical male circumcision VMMC (HTS) Observation" O +define "Voluntary medical male circumcision VMMC Observation": + Elements."Voluntary medical male circumcision VMMC Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Voluntary medical male circumcision VMMC (HTS) */ +/* End of Voluntary medical male circumcision VMMC */ /* -@dataElement: HIV.B.DE154 - Harm reduction for people who inject drugs (HTS) +@dataElement: HIV.B.DE154 - Harm reduction for people who inject drugs @activity: HIV.B9 Determine recommended services @description: Offer or refer to harm reduction services for people who inject drugs (needle and syringe programmes, opioid substitution therapy, other drug-dependence treatment and opioid overdose prevention and management) */ // TODO: Replace placeholder with relevant CQL logic -define "Harm reduction for people who inject drugs (HTS)": - exists "Harm reduction for people who inject drugs (HTS) Condition" - or exists "Harm reduction for people who inject drugs (HTS) Observation" -define "Harm reduction for people who inject drugs (HTS) Condition": - Elements."Harm reduction for people who inject drugs (HTS) Condition" C +define "Harm reduction for people who inject drugs B.DE154": + exists "Harm reduction for people who inject drugs B.DE154 Condition" + or exists "Harm reduction for people who inject drugs B.DE154 Observation" +define "Harm reduction for people who inject drugs B.DE154 Condition": + Elements."Harm reduction for people who inject drugs B.DE154 Condition" C where C.prevalenceInterval() starts on or before Today -define "Harm reduction for people who inject drugs (HTS) Observation": - Elements."Harm reduction for people who inject drugs (HTS) Observation" O +define "Harm reduction for people who inject drugs B.DE154 Observation": + Elements."Harm reduction for people who inject drugs B.DE154 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Harm reduction for people who inject drugs (HTS) */ +/* End of Harm reduction for people who inject drugs B.DE154 */ /* -@dataElement: HIV.B.DE155 - Behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations (HTS) +@dataElement: HIV.B.DE155 - Behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations @activity: HIV.B9 Determine recommended services @description: Offer or refer to behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations */ // TODO: Replace placeholder with relevant CQL logic -define "Behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations (HTS)": - exists "Behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations (HTS) Condition" - or exists "Behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations (HTS) Observation" -define "Behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations (HTS) Condition": - Elements."Behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations (HTS) Condition" C +define "Behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations": + exists "Behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations Condition" + or exists "Behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations Observation" +define "Behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations Condition": + Elements."Behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations Condition" C where C.prevalenceInterval() starts on or before Today -define "Behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations (HTS) Observation": - Elements."Behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations (HTS) Observation" O +define "Behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations Observation": + Elements."Behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations (HTS) */ +/* End of Behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations */ /* -@dataElement: HIV.B.DE156 - HIV testing for partners and biological children (HTS) +@dataElement: HIV.B.DE156 - HIV testing for partners and biological children @activity: HIV.B9 Determine recommended services @description: Offer voluntary testing for all partners and biological children of positive cases (includes partner services and index case testing), as welll as partners and social contacts of people from key populations, where appropriate */ // TODO: Replace placeholder with relevant CQL logic -define "HIV testing for partners and biological children (HTS)": - exists "HIV testing for partners and biological children (HTS) Condition" - or exists "HIV testing for partners and biological children (HTS) Observation" -define "HIV testing for partners and biological children (HTS) Condition": - Elements."HIV testing for partners and biological children (HTS) Condition" C +define "HIV testing for partners and biological children B.DE156": + exists "HIV testing for partners and biological children B.DE156 Condition" + or exists "HIV testing for partners and biological children B.DE156 Observation" +define "HIV testing for partners and biological children B.DE156 Condition": + Elements."HIV testing for partners and biological children B.DE156 Condition" C where C.prevalenceInterval() starts on or before Today -define "HIV testing for partners and biological children (HTS) Observation": - Elements."HIV testing for partners and biological children (HTS) Observation" O +define "HIV testing for partners and biological children B.DE156 Observation": + Elements."HIV testing for partners and biological children B.DE156 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of HIV testing for partners and biological children (HTS) */ +/* End of HIV testing for partners and biological children B.DE156 */ /* -@dataElement: HIV.B.DE157 - HIV testing for partners and social contacts of people from key populations, where appropriate (HTS) +@dataElement: HIV.B.DE157 - HIV testing for partners and social contacts of people from key populations, where appropriate @activity: HIV.B9 Determine recommended services @description: Offer voluntary testing for partners and social contacts of people from key populations, where appropriate */ // TODO: Replace placeholder with relevant CQL logic -define "HIV testing for partners and social contacts of people from key populations, where appropriate (HTS)": - exists "HIV testing for partners and social contacts of people from key populations, where appropriate (HTS) Condition" - or exists "HIV testing for partners and social contacts of people from key populations, where appropriate (HTS) Observation" -define "HIV testing for partners and social contacts of people from key populations, where appropriate (HTS) Condition": - Elements."HIV testing for partners and social contacts of people from key populations, where appropriate (HTS) Condition" C +define "HIV testing for partners and social contacts of people from key populations, where appropriate": + exists "HIV testing for partners and social contacts of people from key populations, where appropriate Condition" + or exists "HIV testing for partners and social contacts of people from key populations, where appropriate Observation" +define "HIV testing for partners and social contacts of people from key populations, where appropriate Condition": + Elements."HIV testing for partners and social contacts of people from key populations, where appropriate Condition" C where C.prevalenceInterval() starts on or before Today -define "HIV testing for partners and social contacts of people from key populations, where appropriate (HTS) Observation": - Elements."HIV testing for partners and social contacts of people from key populations, where appropriate (HTS) Observation" O +define "HIV testing for partners and social contacts of people from key populations, where appropriate Observation": + Elements."HIV testing for partners and social contacts of people from key populations, where appropriate Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of HIV testing for partners and social contacts of people from key populations, where appropriate (HTS) */ +/* End of HIV testing for partners and social contacts of people from key populations, where appropriate */ /* -@dataElement: HIV.B.DE158 - Sexual and reproductive health integrated services (HTS) +@dataElement: HIV.B.DE158 - Sexual and reproductive health integrated services @activity: HIV.B9 Determine recommended services @description: Offer or refer to sexual and reproductive health services */ // TODO: Replace placeholder with relevant CQL logic -define "Sexual and reproductive health integrated services (HTS)": - exists "Sexual and reproductive health integrated services (HTS) Observation" -define "Sexual and reproductive health integrated services (HTS) Observation": - Elements."Sexual and reproductive health integrated services (HTS) Observation" O +define "Sexual and reproductive health integrated services B.DE158": + exists "Sexual and reproductive health integrated services B.DE158 Observation" +define "Sexual and reproductive health integrated services B.DE158 Observation": + Elements."Sexual and reproductive health integrated services B.DE158 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Sexual and reproductive health integrated services (HTS) */ +/* End of Sexual and reproductive health integrated services B.DE158 */ /* -@dataElement: HIV.B.DE159 - Contraception and family planning (HTS) +@dataElement: HIV.B.DE159 - Contraception and family planning @activity: HIV.B9 Determine recommended services @description: Offer contraception and family planning services */ // TODO: Replace placeholder with relevant CQL logic -define "Contraception and family planning (HTS)": - exists "Contraception and family planning (HTS) Condition" - or exists "Contraception and family planning (HTS) Observation" -define "Contraception and family planning (HTS) Condition": - Elements."Contraception and family planning (HTS) Condition" C +define "Contraception and family planning B.DE159": + exists "Contraception and family planning B.DE159 Condition" + or exists "Contraception and family planning B.DE159 Observation" +define "Contraception and family planning B.DE159 Condition": + Elements."Contraception and family planning B.DE159 Condition" C where C.prevalenceInterval() starts on or before Today -define "Contraception and family planning (HTS) Observation": - Elements."Contraception and family planning (HTS) Observation" O +define "Contraception and family planning B.DE159 Observation": + Elements."Contraception and family planning B.DE159 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Contraception and family planning (HTS) */ +/* End of Contraception and family planning B.DE159 */ /* -@dataElement: HIV.B.DE160 - Check pregnancy status (HTS) +@dataElement: HIV.B.DE160 - Check pregnancy status @activity: HIV.B9 Determine recommended services @description: Check women's pregnancy status */ // TODO: Replace placeholder with relevant CQL logic -define "Check pregnancy status (HTS)": - exists "Check pregnancy status (HTS) Condition" - or exists "Check pregnancy status (HTS) Observation" -define "Check pregnancy status (HTS) Condition": - Elements."Check pregnancy status (HTS) Condition" C +define "Check pregnancy status B.DE160": + exists "Check pregnancy status B.DE160 Condition" + or exists "Check pregnancy status B.DE160 Observation" +define "Check pregnancy status B.DE160 Condition": + Elements."Check pregnancy status B.DE160 Condition" C where C.prevalenceInterval() starts on or before Today -define "Check pregnancy status (HTS) Observation": - Elements."Check pregnancy status (HTS) Observation" O +define "Check pregnancy status B.DE160 Observation": + Elements."Check pregnancy status B.DE160 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Check pregnancy status (HTS) */ +/* End of Check pregnancy status B.DE160 */ /* -@dataElement: HIV.B.DE161 - Prevention of mother-to-child transmission counselling (HTS) +@dataElement: HIV.B.DE161 - Prevention of mother-to-child transmission counselling @activity: HIV.B9 Determine recommended services @description: Offer services for prevention of mother-to-child transmission (counselling) */ // TODO: Replace placeholder with relevant CQL logic -define "Prevention of mother-to-child transmission counselling (HTS)": - exists "Prevention of mother-to-child transmission counselling (HTS) Condition" - or exists "Prevention of mother-to-child transmission counselling (HTS) Observation" -define "Prevention of mother-to-child transmission counselling (HTS) Condition": - Elements."Prevention of mother-to-child transmission counselling (HTS) Condition" C +define "Prevention of mother-to-child transmission counselling": + exists "Prevention of mother-to-child transmission counselling Condition" + or exists "Prevention of mother-to-child transmission counselling Observation" +define "Prevention of mother-to-child transmission counselling Condition": + Elements."Prevention of mother-to-child transmission counselling Condition" C where C.prevalenceInterval() starts on or before Today -define "Prevention of mother-to-child transmission counselling (HTS) Observation": - Elements."Prevention of mother-to-child transmission counselling (HTS) Observation" O +define "Prevention of mother-to-child transmission counselling Observation": + Elements."Prevention of mother-to-child transmission counselling Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Prevention of mother-to-child transmission counselling (HTS) */ +/* End of Prevention of mother-to-child transmission counselling */ /* -@dataElement: HIV.B.DE162 - Cervical cancer screening and treatment counselling (HTS) +@dataElement: HIV.B.DE162 - Cervical cancer screening and treatment counselling @activity: HIV.B9 Determine recommended services @description: Offer cervical cancer screening and treatment counselling and services */ // TODO: Replace placeholder with relevant CQL logic -define "Cervical cancer screening and treatment counselling (HTS)": - exists "Cervical cancer screening and treatment counselling (HTS) Condition" - or exists "Cervical cancer screening and treatment counselling (HTS) Observation" -define "Cervical cancer screening and treatment counselling (HTS) Condition": - Elements."Cervical cancer screening and treatment counselling (HTS) Condition" C +define "Cervical cancer screening and treatment counselling": + exists "Cervical cancer screening and treatment counselling Condition" + or exists "Cervical cancer screening and treatment counselling Observation" +define "Cervical cancer screening and treatment counselling Condition": + Elements."Cervical cancer screening and treatment counselling Condition" C where C.prevalenceInterval() starts on or before Today -define "Cervical cancer screening and treatment counselling (HTS) Observation": - Elements."Cervical cancer screening and treatment counselling (HTS) Observation" O +define "Cervical cancer screening and treatment counselling Observation": + Elements."Cervical cancer screening and treatment counselling Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Cervical cancer screening and treatment counselling (HTS) */ +/* End of Cervical cancer screening and treatment counselling */ /* -@dataElement: HIV.B.DE163 - Anal cancer screening for men who have sex with men (HTS) +@dataElement: HIV.B.DE163 - Anal cancer screening for men who have sex with men @activity: HIV.B9 Determine recommended services @description: Offer services for anal cancer screening (for men who have sex with men) */ // TODO: Replace placeholder with relevant CQL logic -define "Anal cancer screening for men who have sex with men (HTS)": - exists "Anal cancer screening for men who have sex with men (HTS) Condition" - or exists "Anal cancer screening for men who have sex with men (HTS) Observation" -define "Anal cancer screening for men who have sex with men (HTS) Condition": - Elements."Anal cancer screening for men who have sex with men (HTS) Condition" C +define "Anal cancer screening for men who have sex with men B.DE163": + exists "Anal cancer screening for men who have sex with men B.DE163 Condition" + or exists "Anal cancer screening for men who have sex with men B.DE163 Observation" +define "Anal cancer screening for men who have sex with men B.DE163 Condition": + Elements."Anal cancer screening for men who have sex with men B.DE163 Condition" C where C.prevalenceInterval() starts on or before Today -define "Anal cancer screening for men who have sex with men (HTS) Observation": - Elements."Anal cancer screening for men who have sex with men (HTS) Observation" O +define "Anal cancer screening for men who have sex with men B.DE163 Observation": + Elements."Anal cancer screening for men who have sex with men B.DE163 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Anal cancer screening for men who have sex with men (HTS) */ +/* End of Anal cancer screening for men who have sex with men B.DE163 */ /* -@dataElement: HIV.B.DE164 - STI testing and treatment services (HTS) +@dataElement: HIV.B.DE164 - STI testing and treatment services @activity: HIV.B9 Determine recommended services @description: Offer sexually transmitted infection (STI) testing and treatment services */ // TODO: Replace placeholder with relevant CQL logic -define "STI testing and treatment services (HTS)": - exists "STI testing and treatment services (HTS) Condition" - or exists "STI testing and treatment services (HTS) Observation" -define "STI testing and treatment services (HTS) Condition": - Elements."STI testing and treatment services (HTS) Condition" C +define "STI testing and treatment services": + exists "STI testing and treatment services Condition" + or exists "STI testing and treatment services Observation" +define "STI testing and treatment services Condition": + Elements."STI testing and treatment services Condition" C where C.prevalenceInterval() starts on or before Today -define "STI testing and treatment services (HTS) Observation": - Elements."STI testing and treatment services (HTS) Observation" O +define "STI testing and treatment services Observation": + Elements."STI testing and treatment services Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of STI testing and treatment services (HTS) */ +/* End of STI testing and treatment services */ /* -@dataElement: HIV.B.DE165 - Offer other clinical services (HTS) +@dataElement: HIV.B.DE165 - Offer other clinical services @activity: HIV.B9 Determine recommended services @description: Other clinical services offered or referrals given to the client */ // TODO: Replace placeholder with relevant CQL logic -define "Offer other clinical services (HTS)": - exists "Offer other clinical services (HTS) Observation" -define "Offer other clinical services (HTS) Observation": - Elements."Offer other clinical services (HTS) Observation" O +define "Offer other clinical services B.DE165": + exists "Offer other clinical services B.DE165 Observation" +define "Offer other clinical services B.DE165 Observation": + Elements."Offer other clinical services B.DE165 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Offer other clinical services (HTS) */ +/* End of Offer other clinical services B.DE165 */ /* -@dataElement: HIV.B.DE166 - Assessment and provision of vaccinations (HTS) +@dataElement: HIV.B.DE166 - Assessment and provision of vaccinations @activity: HIV.B9 Determine recommended services @description: Assessment and provision of vaccinations, such as for people from key populations, pregnant women and infants; and, where appropriate, tetanus vaccination for adolescent boys and men receiving VMMC */ // TODO: Replace placeholder with relevant CQL logic -define "Assessment and provision of vaccinations (HTS)": - exists "Assessment and provision of vaccinations (HTS) Condition" - or exists "Assessment and provision of vaccinations (HTS) Observation" -define "Assessment and provision of vaccinations (HTS) Condition": - Elements."Assessment and provision of vaccinations (HTS) Condition" C +define "Assessment and provision of vaccinations B.DE166": + exists "Assessment and provision of vaccinations B.DE166 Condition" + or exists "Assessment and provision of vaccinations B.DE166 Observation" +define "Assessment and provision of vaccinations B.DE166 Condition": + Elements."Assessment and provision of vaccinations B.DE166 Condition" C where C.prevalenceInterval() starts on or before Today -define "Assessment and provision of vaccinations (HTS) Observation": - Elements."Assessment and provision of vaccinations (HTS) Observation" O +define "Assessment and provision of vaccinations B.DE166 Observation": + Elements."Assessment and provision of vaccinations B.DE166 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Assessment and provision of vaccinations (HTS) */ +/* End of Assessment and provision of vaccinations B.DE166 */ /* -@dataElement: HIV.B.DE167 - Hepatitis B HBV and hepatitis C virus HCV testing and treatment provided (HTS) +@dataElement: HIV.B.DE167 - Hepatitis B HBV and hepatitis C virus HCV testing and treatment provided @activity: HIV.B9 Determine recommended services @description: Offer or refer for HBV and/or HCV testing and treatment */ // TODO: Replace placeholder with relevant CQL logic -define "Hepatitis B HBV and hepatitis C virus HCV testing and treatment provided (HTS)": - exists "Hepatitis B HBV and hepatitis C virus HCV testing and treatment provided (HTS) Condition" - or exists "Hepatitis B HBV and hepatitis C virus HCV testing and treatment provided (HTS) Observation" -define "Hepatitis B HBV and hepatitis C virus HCV testing and treatment provided (HTS) Condition": - Elements."Hepatitis B HBV and hepatitis C virus HCV testing and treatment provided (HTS) Condition" C +define "Hepatitis B HBV and hepatitis C virus HCV testing and treatment provided": + exists "Hepatitis B HBV and hepatitis C virus HCV testing and treatment provided Condition" + or exists "Hepatitis B HBV and hepatitis C virus HCV testing and treatment provided Observation" +define "Hepatitis B HBV and hepatitis C virus HCV testing and treatment provided Condition": + Elements."Hepatitis B HBV and hepatitis C virus HCV testing and treatment provided Condition" C where C.prevalenceInterval() starts on or before Today -define "Hepatitis B HBV and hepatitis C virus HCV testing and treatment provided (HTS) Observation": - Elements."Hepatitis B HBV and hepatitis C virus HCV testing and treatment provided (HTS) Observation" O +define "Hepatitis B HBV and hepatitis C virus HCV testing and treatment provided Observation": + Elements."Hepatitis B HBV and hepatitis C virus HCV testing and treatment provided Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Hepatitis B HBV and hepatitis C virus HCV testing and treatment provided (HTS) */ +/* End of Hepatitis B HBV and hepatitis C virus HCV testing and treatment provided */ /* -@dataElement: HIV.B.DE168 - Co-trimoxazole chemoprophylaxis to prevent Pneumocystis carinii pneumonia provided (HTS) +@dataElement: HIV.B.DE168 - Co-trimoxazole chemoprophylaxis to prevent Pneumocystis carinii pneumonia provided @activity: HIV.B9 Determine recommended services @description: Offer or refer for co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia */ // TODO: Replace placeholder with relevant CQL logic -define "Co-trimoxazole chemoprophylaxis to prevent Pneumocystis carinii pneumonia provided (HTS)": - exists "Co-trimoxazole chemoprophylaxis to prevent Pneumocystis carinii pneumonia provided (HTS) Condition" - or exists "Co-trimoxazole chemoprophylaxis to prevent Pneumocystis carinii pneumonia provided (HTS) Observation" -define "Co-trimoxazole chemoprophylaxis to prevent Pneumocystis carinii pneumonia provided (HTS) Condition": - Elements."Co-trimoxazole chemoprophylaxis to prevent Pneumocystis carinii pneumonia provided (HTS) Condition" C +define "Co-trimoxazole chemoprophylaxis to prevent Pneumocystis carinii pneumonia provided": + exists "Co-trimoxazole chemoprophylaxis to prevent Pneumocystis carinii pneumonia provided Condition" + or exists "Co-trimoxazole chemoprophylaxis to prevent Pneumocystis carinii pneumonia provided Observation" +define "Co-trimoxazole chemoprophylaxis to prevent Pneumocystis carinii pneumonia provided Condition": + Elements."Co-trimoxazole chemoprophylaxis to prevent Pneumocystis carinii pneumonia provided Condition" C where C.prevalenceInterval() starts on or before Today -define "Co-trimoxazole chemoprophylaxis to prevent Pneumocystis carinii pneumonia provided (HTS) Observation": - Elements."Co-trimoxazole chemoprophylaxis to prevent Pneumocystis carinii pneumonia provided (HTS) Observation" O +define "Co-trimoxazole chemoprophylaxis to prevent Pneumocystis carinii pneumonia provided Observation": + Elements."Co-trimoxazole chemoprophylaxis to prevent Pneumocystis carinii pneumonia provided Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Co-trimoxazole chemoprophylaxis to prevent Pneumocystis carinii pneumonia provided (HTS) */ +/* End of Co-trimoxazole chemoprophylaxis to prevent Pneumocystis carinii pneumonia provided */ /* -@dataElement: HIV.B.DE169 - Intensified TB case finding and linkage to TB treatment provided (HTS) +@dataElement: HIV.B.DE169 - Intensified TB case finding and linkage to TB treatment provided @activity: HIV.B9 Determine recommended services @description: Offer or refer for intensified TB case finding and linkage to TB treatment */ // TODO: Replace placeholder with relevant CQL logic -define "Intensified TB case finding and linkage to TB treatment provided (HTS)": - exists "Intensified TB case finding and linkage to TB treatment provided (HTS) Condition" - or exists "Intensified TB case finding and linkage to TB treatment provided (HTS) Observation" -define "Intensified TB case finding and linkage to TB treatment provided (HTS) Condition": - Elements."Intensified TB case finding and linkage to TB treatment provided (HTS) Condition" C +define "Intensified TB case finding and linkage to TB treatment provided": + exists "Intensified TB case finding and linkage to TB treatment provided Condition" + or exists "Intensified TB case finding and linkage to TB treatment provided Observation" +define "Intensified TB case finding and linkage to TB treatment provided Condition": + Elements."Intensified TB case finding and linkage to TB treatment provided Condition" C where C.prevalenceInterval() starts on or before Today -define "Intensified TB case finding and linkage to TB treatment provided (HTS) Observation": - Elements."Intensified TB case finding and linkage to TB treatment provided (HTS) Observation" O +define "Intensified TB case finding and linkage to TB treatment provided Observation": + Elements."Intensified TB case finding and linkage to TB treatment provided Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Intensified TB case finding and linkage to TB treatment provided (HTS) */ +/* End of Intensified TB case finding and linkage to TB treatment provided */ /* -@dataElement: HIV.B.DE170 - Provision of isoniazid preventive therapy if person does not have TB (HTS) +@dataElement: HIV.B.DE170 - Provision of isoniazid preventive therapy if person does not have TB @activity: HIV.B9 Determine recommended services @description: Offer or refer for provision of isoniazid preventive therapy if person does not have TB */ // TODO: Replace placeholder with relevant CQL logic -define "Provision of isoniazid preventive therapy if person does not have TB (HTS)": - exists "Provision of isoniazid preventive therapy if person does not have TB (HTS) Condition" - or exists "Provision of isoniazid preventive therapy if person does not have TB (HTS) Observation" -define "Provision of isoniazid preventive therapy if person does not have TB (HTS) Condition": - Elements."Provision of isoniazid preventive therapy if person does not have TB (HTS) Condition" C +define "Provision of isoniazid preventive therapy if person does not have TB B.DE170": + exists "Provision of isoniazid preventive therapy if person does not have TB B.DE170 Condition" + or exists "Provision of isoniazid preventive therapy if person does not have TB B.DE170 Observation" +define "Provision of isoniazid preventive therapy if person does not have TB B.DE170 Condition": + Elements."Provision of isoniazid preventive therapy if person does not have TB B.DE170 Condition" C where C.prevalenceInterval() starts on or before Today -define "Provision of isoniazid preventive therapy if person does not have TB (HTS) Observation": - Elements."Provision of isoniazid preventive therapy if person does not have TB (HTS) Observation" O +define "Provision of isoniazid preventive therapy if person does not have TB B.DE170 Observation": + Elements."Provision of isoniazid preventive therapy if person does not have TB B.DE170 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Provision of isoniazid preventive therapy if person does not have TB (HTS) */ +/* End of Provision of isoniazid preventive therapy if person does not have TB B.DE170 */ /* -@dataElement: HIV.B.DE171 - Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (HTS) +@dataElement: HIV.B.DE171 - Malaria prevention such as bed nets and prophylaxis, depending on epidemiology @activity: HIV.B9 Determine recommended services @description: Offer or refer for malaria prevention (such as bed nets and prophylaxis), depending on epidemiology */ // TODO: Replace placeholder with relevant CQL logic -define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (HTS)": - exists "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (HTS) Condition" - or exists "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (HTS) Observation" -define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (HTS) Condition": - Elements."Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (HTS) Condition" C +define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology B.DE171": + exists "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology B.DE171 Condition" + or exists "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology B.DE171 Observation" +define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology B.DE171 Condition": + Elements."Malaria prevention such as bed nets and prophylaxis, depending on epidemiology B.DE171 Condition" C where C.prevalenceInterval() starts on or before Today -define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (HTS) Observation": - Elements."Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (HTS) Observation" O +define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology B.DE171 Observation": + Elements."Malaria prevention such as bed nets and prophylaxis, depending on epidemiology B.DE171 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (HTS) */ +/* End of Malaria prevention such as bed nets and prophylaxis, depending on epidemiology B.DE171 */ /* -@dataElement: HIV.B.DE172 - Other support services (HTS) +@dataElement: HIV.B.DE172 - Other support services @activity: HIV.B9 Determine recommended services @description: Offer or refer for other support services */ // TODO: Replace placeholder with relevant CQL logic -define "Other support services (HTS)": - exists "Other support services (HTS) Observation" -define "Other support services (HTS) Observation": - Elements."Other support services (HTS) Observation" O +define "Other support services B.DE172": + exists "Other support services B.DE172 Observation" +define "Other support services B.DE172 Observation": + Elements."Other support services B.DE172 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Other support services (HTS) */ +/* End of Other support services B.DE172 */ /* -@dataElement: HIV.B.DE173 - Mental health services (HTS) +@dataElement: HIV.B.DE173 - Mental health services @activity: HIV.B9 Determine recommended services @description: Offer or refer for mental health services */ // TODO: Replace placeholder with relevant CQL logic -define "Mental health services (HTS)": - exists "Mental health services (HTS) Condition" - or exists "Mental health services (HTS) Observation" -define "Mental health services (HTS) Condition": - Elements."Mental health services (HTS) Condition" C +define "Mental health services B.DE173": + exists "Mental health services B.DE173 Condition" + or exists "Mental health services B.DE173 Observation" +define "Mental health services B.DE173 Condition": + Elements."Mental health services B.DE173 Condition" C where C.prevalenceInterval() starts on or before Today -define "Mental health services (HTS) Observation": - Elements."Mental health services (HTS) Observation" O +define "Mental health services B.DE173 Observation": + Elements."Mental health services B.DE173 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Mental health services (HTS) */ +/* End of Mental health services B.DE173 */ /* -@dataElement: HIV.B.DE174 - Psychosocial counselling, support and treatment adherence counselling (HTS) +@dataElement: HIV.B.DE174 - Psychosocial counselling, support and treatment adherence counselling @activity: HIV.B9 Determine recommended services @description: Offer or refer for psychosocial counselling, support and treatment adherence counselling */ // TODO: Replace placeholder with relevant CQL logic -define "Psychosocial counselling, support and treatment adherence counselling (HTS)": - exists "Psychosocial counselling, support and treatment adherence counselling (HTS) Condition" - or exists "Psychosocial counselling, support and treatment adherence counselling (HTS) Observation" -define "Psychosocial counselling, support and treatment adherence counselling (HTS) Condition": - Elements."Psychosocial counselling, support and treatment adherence counselling (HTS) Condition" C +define "Psychosocial counselling, support and treatment adherence counselling B.DE174": + exists "Psychosocial counselling, support and treatment adherence counselling B.DE174 Condition" + or exists "Psychosocial counselling, support and treatment adherence counselling B.DE174 Observation" +define "Psychosocial counselling, support and treatment adherence counselling B.DE174 Condition": + Elements."Psychosocial counselling, support and treatment adherence counselling B.DE174 Condition" C where C.prevalenceInterval() starts on or before Today -define "Psychosocial counselling, support and treatment adherence counselling (HTS) Observation": - Elements."Psychosocial counselling, support and treatment adherence counselling (HTS) Observation" O +define "Psychosocial counselling, support and treatment adherence counselling B.DE174 Observation": + Elements."Psychosocial counselling, support and treatment adherence counselling B.DE174 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Psychosocial counselling, support and treatment adherence counselling (HTS) */ +/* End of Psychosocial counselling, support and treatment adherence counselling B.DE174 */ /* -@dataElement: HIV.B.DE175 - Support for disclosure and partner services (HTS) +@dataElement: HIV.B.DE175 - Support for disclosure and partner services @activity: HIV.B9 Determine recommended services @description: Offer or refer for support for disclosure and partner services */ // TODO: Replace placeholder with relevant CQL logic -define "Support for disclosure and partner services (HTS)": - exists "Support for disclosure and partner services (HTS) Condition" - or exists "Support for disclosure and partner services (HTS) Observation" -define "Support for disclosure and partner services (HTS) Condition": - Elements."Support for disclosure and partner services (HTS) Condition" C +define "Support for disclosure and partner services B.DE175": + exists "Support for disclosure and partner services B.DE175 Condition" + or exists "Support for disclosure and partner services B.DE175 Observation" +define "Support for disclosure and partner services B.DE175 Condition": + Elements."Support for disclosure and partner services B.DE175 Condition" C where C.prevalenceInterval() starts on or before Today -define "Support for disclosure and partner services (HTS) Observation": - Elements."Support for disclosure and partner services (HTS) Observation" O +define "Support for disclosure and partner services B.DE175 Observation": + Elements."Support for disclosure and partner services B.DE175 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Support for disclosure and partner services (HTS) */ +/* End of Support for disclosure and partner services B.DE175 */ /* -@dataElement: HIV.B.DE176 - Legal and social services (HTS) +@dataElement: HIV.B.DE176 - Legal and social services @activity: HIV.B9 Determine recommended services @description: Offer or refer for legal and social services */ // TODO: Replace placeholder with relevant CQL logic -define "Legal and social services (HTS)": - exists "Legal and social services (HTS) Condition" - or exists "Legal and social services (HTS) Observation" -define "Legal and social services (HTS) Condition": - Elements."Legal and social services (HTS) Condition" C +define "Legal and social services B.DE176": + exists "Legal and social services B.DE176 Condition" + or exists "Legal and social services B.DE176 Observation" +define "Legal and social services B.DE176 Condition": + Elements."Legal and social services B.DE176 Condition" C where C.prevalenceInterval() starts on or before Today -define "Legal and social services (HTS) Observation": - Elements."Legal and social services (HTS) Observation" O +define "Legal and social services B.DE176 Observation": + Elements."Legal and social services B.DE176 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Legal and social services (HTS) */ +/* End of Legal and social services B.DE176 */ /* -@dataElement: HIV.B.DE177 - Services for responding to violence against women (HTS) +@dataElement: HIV.B.DE177 - Services for responding to violence against women @activity: HIV.B9 Determine recommended services @description: Offer or refer for services for responding to violence against women, including first-line support and psychosocial support, post-rape care and other support services including shelters, legal services and women and child protection services */ // TODO: Replace placeholder with relevant CQL logic -define "Services for responding to violence against women (HTS)": - exists "Services for responding to violence against women (HTS) Condition" - or exists "Services for responding to violence against women (HTS) Observation" -define "Services for responding to violence against women (HTS) Condition": - Elements."Services for responding to violence against women (HTS) Condition" C +define "Services for responding to violence against women B.DE177": + exists "Services for responding to violence against women B.DE177 Condition" + or exists "Services for responding to violence against women B.DE177 Observation" +define "Services for responding to violence against women B.DE177 Condition": + Elements."Services for responding to violence against women B.DE177 Condition" C where C.prevalenceInterval() starts on or before Today -define "Services for responding to violence against women (HTS) Observation": - Elements."Services for responding to violence against women (HTS) Observation" O +define "Services for responding to violence against women B.DE177 Observation": + Elements."Services for responding to violence against women B.DE177 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Services for responding to violence against women (HTS) */ +/* End of Services for responding to violence against women B.DE177 */ /* -@dataElement: HIV.B.DE191 - Type of follow-up appointment (HTS) +@dataElement: HIV.B.DE191 - Type of follow-up appointment @activity: HIV.B20 Schedule retest @description: Type of follow-up appointment for testing services */ // TODO: Replace placeholder with relevant CQL logic -define "Type of follow-up appointment (HTS)": - exists "Type of follow-up appointment (HTS) Observation" -define "Type of follow-up appointment (HTS) Observation": - Elements."Type of follow-up appointment (HTS) Observation" O +define "Type of follow-up appointment B.DE191": + exists "Type of follow-up appointment B.DE191 Observation" +define "Type of follow-up appointment B.DE191 Observation": + Elements."Type of follow-up appointment B.DE191 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Type of follow-up appointment (HTS) */ +/* End of Type of follow-up appointment B.DE191 */ /* -@dataElement: HIV.B.DE192 - Retesting for HIV (HTS|BDE192) +@dataElement: HIV.B.DE192 - Retesting for HIV @activity: HIV.B20 Schedule retest @description: Retesting follow-up appointment */ // TODO: Replace placeholder with relevant CQL logic -define "Retesting for HIV (HTS|BDE192)": - exists "Retesting for HIV (HTS|BDE192) Condition" - or exists "Retesting for HIV (HTS|BDE192) Observation" -define "Retesting for HIV (HTS|BDE192) Condition": - Elements."Retesting for HIV (HTS|BDE192) Condition" C +define "Retesting for HIV B.DE192": + exists "Retesting for HIV B.DE192 Condition" + or exists "Retesting for HIV B.DE192 Observation" +define "Retesting for HIV B.DE192 Condition": + Elements."Retesting for HIV B.DE192 Condition" C where C.prevalenceInterval() starts on or before Today -define "Retesting for HIV (HTS|BDE192) Observation": - Elements."Retesting for HIV (HTS|BDE192) Observation" O +define "Retesting for HIV B.DE192 Observation": + Elements."Retesting for HIV B.DE192 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Retesting for HIV (HTS|BDE192) */ +/* End of Retesting for HIV B.DE192 */ /* -@dataElement: HIV.B.DE193 - Other (HTS|BDE193) +@dataElement: HIV.B.DE193 - Other @activity: HIV.B20 Schedule retest @description: Other reason for the follow-up appointment */ // TODO: Replace placeholder with relevant CQL logic -define "Other (HTS|BDE193)": - exists "Other (HTS|BDE193) Condition" - or exists "Other (HTS|BDE193) Observation" -define "Other (HTS|BDE193) Condition": - Elements."Other (HTS|BDE193) Condition" C +define "Other B.DE193": + exists "Other B.DE193 Condition" + or exists "Other B.DE193 Observation" +define "Other B.DE193 Condition": + Elements."Other B.DE193 Condition" C where C.prevalenceInterval() starts on or before Today -define "Other (HTS|BDE193) Observation": - Elements."Other (HTS|BDE193) Observation" O +define "Other B.DE193 Observation": + Elements."Other B.DE193 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Other (HTS|BDE193) */ +/* End of Other B.DE193 */ /* -@dataElement: HIV.B.DE195 - Date/time of follow-up appointment (HTS) +@dataElement: HIV.B.DE195 - Date/time of follow-up appointment @activity: HIV.B20 Schedule retest @description: Date the patient is to return for monitoring, re-supply or any other reason */ // TODO: Replace placeholder with relevant CQL logic -define "Date/time of follow-up appointment (HTS)": - Elements."Date/time of follow-up appointment (HTS)" O +define "Date/time of follow-up appointment B.DE195": + Elements."Date/time of follow-up appointment B.DE195" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -define "Date/time of follow-up appointment (HTS) Value": - "Date/time of follow-up appointment (HTS)" O +define "Date/time of follow-up appointment B.DE195 Value": + "Date/time of follow-up appointment B.DE195" O return O.value -/* End of Date/time of follow-up appointment (HTS) */ +/* End of Date/time of follow-up appointment B.DE195 */ /* -@dataElement: HIV.B.DE224 - HIV retest prior to starting ART conducted (HTS) +@dataElement: HIV.B.DE224 - HIV retest prior to starting ART conducted @activity: HIV.B20 Schedule retest @description: HIV retest prior to starting ART conducted */ // TODO: Replace placeholder with relevant CQL logic -define "HIV retest prior to starting ART conducted (HTS)": - exists "HIV retest prior to starting ART conducted (HTS) Observation" -define "HIV retest prior to starting ART conducted (HTS) Observation": - Elements."HIV retest prior to starting ART conducted (HTS) Observation" O +define "HIV retest prior to starting ART conducted": + exists "HIV retest prior to starting ART conducted Observation" +define "HIV retest prior to starting ART conducted Observation": + Elements."HIV retest prior to starting ART conducted Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of HIV retest prior to starting ART conducted (HTS) */ +/* End of HIV retest prior to starting ART conducted */ /* -@dataElement: HIV.C.DE9 - Date/time of suspected exposure to HIV (PrEP) +@dataElement: HIV.C.DE9 - Date/time of suspected exposure to HIV @activity: HIV.C3 Capture or update client history @description: When the suspect exposure to HIV took place */ // TODO: Replace placeholder with relevant CQL logic -define "Date/time of suspected exposure to HIV (PrEP)": - Elements."Date/time of suspected exposure to HIV (PrEP)" O +define "Date/time of suspected exposure to HIV C.DE9": + Elements."Date/time of suspected exposure to HIV C.DE9" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -define "Date/time of suspected exposure to HIV (PrEP) Value": - "Date/time of suspected exposure to HIV (PrEP)" O +define "Date/time of suspected exposure to HIV C.DE9 Value": + "Date/time of suspected exposure to HIV C.DE9" O return O.value -/* End of Date/time of suspected exposure to HIV (PrEP) */ +/* End of Date/time of suspected exposure to HIV C.DE9 */ /* -@dataElement: HIV.C.DE10 - Currently on PrEP (PrEP) +@dataElement: HIV.C.DE10 - Currently on PrEP @activity: HIV.C3 Capture or update client history @description: The client is currently taking PrEP. Oral pre-exposure prophylaxis (PrEP) of HIV is the use of ARV drugs by people who are not infected with HIV to block the acquisition of HIV. */ // TODO: Replace placeholder with relevant CQL logic -define "Currently on PrEP (PrEP)": - exists "Currently on PrEP (PrEP) Observation" -define "Currently on PrEP (PrEP) Observation": - Elements."Currently on PrEP (PrEP) Observation" O +define "Currently on PrEP": + exists "Currently on PrEP Observation" +define "Currently on PrEP Observation": + Elements."Currently on PrEP Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Currently on PrEP (PrEP) */ +/* End of Currently on PrEP */ /* -@dataElement: HIV.C.DE17 - Current PrEP regimen (PrEP) +@dataElement: HIV.C.DE17 - Current PrEP regimen @activity: HIV.C3 Capture or update client history @description: HIV pre-exposure prophylaxis (PrEP) regimen */ // TODO: Replace placeholder with relevant CQL logic -define "Current PrEP regimen (PrEP)": - exists "Current PrEP regimen (PrEP) Observation" -define "Current PrEP regimen (PrEP) Observation": - Elements."Current PrEP regimen (PrEP) Observation" O +define "Current PrEP regimen": + exists "Current PrEP regimen Observation" +define "Current PrEP regimen Observation": + Elements."Current PrEP regimen Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Current PrEP regimen (PrEP) */ +/* End of Current PrEP regimen */ /* -@dataElement: HIV.C.DE18 - TDF + FTC (PrEP|CDE18) +@dataElement: HIV.C.DE18 - TDF + FTC @activity: HIV.C3 Capture or update client history @description: Treated with tenofovir disoproxil fumarate (TDF) and emtricitabine (FTC) pre-exposure prophylaxis (PrEP) regimen (oral PrEP) */ // TODO: Replace placeholder with relevant CQL logic -define "TDF + FTC (PrEP|CDE18)": - exists "TDF + FTC (PrEP|CDE18) Condition" - or exists "TDF + FTC (PrEP|CDE18) Observation" -define "TDF + FTC (PrEP|CDE18) Condition": - Elements."TDF + FTC (PrEP|CDE18) Condition" C +define "TDF + FTC C.DE18": + exists "TDF + FTC C.DE18 Condition" + or exists "TDF + FTC C.DE18 Observation" +define "TDF + FTC C.DE18 Condition": + Elements."TDF + FTC C.DE18 Condition" C where C.prevalenceInterval() starts on or before Today -define "TDF + FTC (PrEP|CDE18) Observation": - Elements."TDF + FTC (PrEP|CDE18) Observation" O +define "TDF + FTC C.DE18 Observation": + Elements."TDF + FTC C.DE18 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of TDF + FTC (PrEP|CDE18) */ +/* End of TDF + FTC C.DE18 */ /* -@dataElement: HIV.C.DE19 - TDF (PrEP) +@dataElement: HIV.C.DE19 - TDF @activity: HIV.C3 Capture or update client history @description: Treated with single-agent tenofovir disoproxil fumarate (TDF) pre-exposure prophylaxis (PrEP) regimen (oral PrEP) */ // TODO: Replace placeholder with relevant CQL logic -define "TDF (PrEP)": - exists "TDF (PrEP) Condition" - or exists "TDF (PrEP) Observation" -define "TDF (PrEP) Condition": - Elements."TDF (PrEP) Condition" C +define "TDF C.DE19": + exists "TDF C.DE19 Condition" + or exists "TDF C.DE19 Observation" +define "TDF C.DE19 Condition": + Elements."TDF C.DE19 Condition" C where C.prevalenceInterval() starts on or before Today -define "TDF (PrEP) Observation": - Elements."TDF (PrEP) Observation" O +define "TDF C.DE19 Observation": + Elements."TDF C.DE19 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of TDF (PrEP) */ +/* End of TDF C.DE19 */ /* -@dataElement: HIV.C.DE20 - TDF + 3TC (PrEP|CDE20) +@dataElement: HIV.C.DE20 - TDF + 3TC @activity: HIV.C3 Capture or update client history @description: Treated with tenofovir disoproxil fumarate (TDF) and lamivudine (3TC) pre-exposure prophylaxis (PrEP) regimen (oral PrEP) */ // TODO: Replace placeholder with relevant CQL logic -define "TDF + 3TC (PrEP|CDE20)": - exists "TDF + 3TC (PrEP|CDE20) Condition" - or exists "TDF + 3TC (PrEP|CDE20) Observation" -define "TDF + 3TC (PrEP|CDE20) Condition": - Elements."TDF + 3TC (PrEP|CDE20) Condition" C +define "TDF + 3TC C.DE20": + exists "TDF + 3TC C.DE20 Condition" + or exists "TDF + 3TC C.DE20 Observation" +define "TDF + 3TC C.DE20 Condition": + Elements."TDF + 3TC C.DE20 Condition" C where C.prevalenceInterval() starts on or before Today -define "TDF + 3TC (PrEP|CDE20) Observation": - Elements."TDF + 3TC (PrEP|CDE20) Observation" O +define "TDF + 3TC C.DE20 Observation": + Elements."TDF + 3TC C.DE20 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of TDF + 3TC (PrEP|CDE20) */ +/* End of TDF + 3TC C.DE20 */ /* -@dataElement: HIV.C.DE21 - Other TDF-based regimen (PrEP) +@dataElement: HIV.C.DE21 - Other TDF-based regimen @activity: HIV.C3 Capture or update client history @description: Treated with other tenofovir disoproxil fumarate (TDF)-based regimen (oral PrEP) */ // TODO: Replace placeholder with relevant CQL logic -define "Other TDF-based regimen (PrEP)": - exists "Other TDF-based regimen (PrEP) Condition" - or exists "Other TDF-based regimen (PrEP) Observation" -define "Other TDF-based regimen (PrEP) Condition": - Elements."Other TDF-based regimen (PrEP) Condition" C +define "Other TDF-based regimen": + exists "Other TDF-based regimen Condition" + or exists "Other TDF-based regimen Observation" +define "Other TDF-based regimen Condition": + Elements."Other TDF-based regimen Condition" C where C.prevalenceInterval() starts on or before Today -define "Other TDF-based regimen (PrEP) Observation": - Elements."Other TDF-based regimen (PrEP) Observation" O +define "Other TDF-based regimen Observation": + Elements."Other TDF-based regimen Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Other TDF-based regimen (PrEP) */ +/* End of Other TDF-based regimen */ /* -@dataElement: HIV.C.DE22 - Dapivirine vaginal ring DVR (PrEP|CDE22) +@dataElement: HIV.C.DE22 - Dapivirine vaginal ring DVR @activity: HIV.C3 Capture or update client history @description: Dapivirine vaginal ring (DVR) for HIV prevention */ // TODO: Replace placeholder with relevant CQL logic -define "Dapivirine vaginal ring DVR (PrEP|CDE22)": - exists "Dapivirine vaginal ring DVR (PrEP|CDE22) Condition" - or exists "Dapivirine vaginal ring DVR (PrEP|CDE22) Observation" -define "Dapivirine vaginal ring DVR (PrEP|CDE22) Condition": - Elements."Dapivirine vaginal ring DVR (PrEP|CDE22) Condition" C +define "Dapivirine vaginal ring DVR C.DE22": + exists "Dapivirine vaginal ring DVR C.DE22 Condition" + or exists "Dapivirine vaginal ring DVR C.DE22 Observation" +define "Dapivirine vaginal ring DVR C.DE22 Condition": + Elements."Dapivirine vaginal ring DVR C.DE22 Condition" C where C.prevalenceInterval() starts on or before Today -define "Dapivirine vaginal ring DVR (PrEP|CDE22) Observation": - Elements."Dapivirine vaginal ring DVR (PrEP|CDE22) Observation" O +define "Dapivirine vaginal ring DVR C.DE22 Observation": + Elements."Dapivirine vaginal ring DVR C.DE22 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Dapivirine vaginal ring DVR (PrEP|CDE22) */ +/* End of Dapivirine vaginal ring DVR C.DE22 */ /* -@dataElement: HIV.C.DE23 - CAB-LA (PrEP|CDE23) +@dataElement: HIV.C.DE23 - CAB-LA @activity: HIV.C3 Capture or update client history @description: Long-acting injectable cabotegravir */ // TODO: Replace placeholder with relevant CQL logic -define "CAB-LA (PrEP|CDE23)": - exists "CAB-LA (PrEP|CDE23) Condition" - or exists "CAB-LA (PrEP|CDE23) Observation" -define "CAB-LA (PrEP|CDE23) Condition": - Elements."CAB-LA (PrEP|CDE23) Condition" C +define "CAB-LA C.DE23": + exists "CAB-LA C.DE23 Condition" + or exists "CAB-LA C.DE23 Observation" +define "CAB-LA C.DE23 Condition": + Elements."CAB-LA C.DE23 Condition" C where C.prevalenceInterval() starts on or before Today -define "CAB-LA (PrEP|CDE23) Observation": - Elements."CAB-LA (PrEP|CDE23) Observation" O +define "CAB-LA C.DE23 Observation": + Elements."CAB-LA C.DE23 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of CAB-LA (PrEP|CDE23) */ +/* End of CAB-LA C.DE23 */ /* -@dataElement: HIV.C.DE31 - PEP history (PrEP) +@dataElement: HIV.C.DE31 - PEP history @activity: HIV.C3 Capture or update client history @description: The client's history in taking post-exposure prophylaxis (PEP) for HIV prevention */ // TODO: Replace placeholder with relevant CQL logic -define "PEP history (PrEP)": - exists "PEP history (PrEP) Observation" -define "PEP history (PrEP) Observation": - Elements."PEP history (PrEP) Observation" O +define "PEP history": + exists "PEP history Observation" +define "PEP history Observation": + Elements."PEP history Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of PEP history (PrEP) */ +/* End of PEP history */ /* -@dataElement: HIV.C.DE32 - First-time user (PrEP|CDE32) +@dataElement: HIV.C.DE32 - First-time user @activity: HIV.C3 Capture or update client history @description: The client has never used post-exposure prophylaxis (PEP) before */ // TODO: Replace placeholder with relevant CQL logic -define "First-time user (PrEP|CDE32)": - exists "First-time user (PrEP|CDE32) Condition" - or exists "First-time user (PrEP|CDE32) Observation" -define "First-time user (PrEP|CDE32) Condition": - Elements."First-time user (PrEP|CDE32) Condition" C +define "First-time user C.DE32": + exists "First-time user C.DE32 Condition" + or exists "First-time user C.DE32 Observation" +define "First-time user C.DE32 Condition": + Elements."First-time user C.DE32 Condition" C where C.prevalenceInterval() starts on or before Today -define "First-time user (PrEP|CDE32) Observation": - Elements."First-time user (PrEP|CDE32) Observation" O +define "First-time user C.DE32 Observation": + Elements."First-time user C.DE32 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of First-time user (PrEP|CDE32) */ +/* End of First-time user C.DE32 */ /* -@dataElement: HIV.C.DE33 - Repeat user (PrEP) +@dataElement: HIV.C.DE33 - Repeat user @activity: HIV.C3 Capture or update client history @description: The client has used post-exposure prophylaxis (PEP) before */ // TODO: Replace placeholder with relevant CQL logic -define "Repeat user (PrEP)": - exists "Repeat user (PrEP) Condition" - or exists "Repeat user (PrEP) Observation" -define "Repeat user (PrEP) Condition": - Elements."Repeat user (PrEP) Condition" C +define "Repeat user": + exists "Repeat user Condition" + or exists "Repeat user Observation" +define "Repeat user Condition": + Elements."Repeat user Condition" C where C.prevalenceInterval() starts on or before Today -define "Repeat user (PrEP) Observation": - Elements."Repeat user (PrEP) Observation" O +define "Repeat user Observation": + Elements."Repeat user Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Repeat user (PrEP) */ +/* End of Repeat user */ /* -@dataElement: HIV.C.DE36 - Signs of substantial risk of HIV infection (PrEP) +@dataElement: HIV.C.DE36 - Signs of substantial risk of HIV infection @activity: HIV.C3 Capture or update client history @description: Signs the client is at a substantial risk of HIV infection */ // TODO: Replace placeholder with relevant CQL logic -define "Signs of substantial risk of HIV infection (PrEP)": - exists "Signs of substantial risk of HIV infection (PrEP) Observation" -define "Signs of substantial risk of HIV infection (PrEP) Observation": - Elements."Signs of substantial risk of HIV infection (PrEP) Observation" O +define "Signs of substantial risk of HIV infection C.DE36": + exists "Signs of substantial risk of HIV infection C.DE36 Observation" +define "Signs of substantial risk of HIV infection C.DE36 Observation": + Elements."Signs of substantial risk of HIV infection C.DE36 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Signs of substantial risk of HIV infection (PrEP) */ +/* End of Signs of substantial risk of HIV infection C.DE36 */ /* -@dataElement: HIV.C.DE37 - No condom use during sex with more than one partner in the past 6 months (PrEP) +@dataElement: HIV.C.DE37 - No condom use during sex with more than one partner in the past 6 months @activity: HIV.C3 Capture or update client history @description: Recent vaginal or anal sexual intercourse without a condom with more than one partner */ // TODO: Replace placeholder with relevant CQL logic -define "No condom use during sex with more than one partner in the past 6 months (PrEP)": - exists "No condom use during sex with more than one partner in the past 6 months (PrEP) Condition" - or exists "No condom use during sex with more than one partner in the past 6 months (PrEP) Observation" -define "No condom use during sex with more than one partner in the past 6 months (PrEP) Condition": - Elements."No condom use during sex with more than one partner in the past 6 months (PrEP) Condition" C +define "No condom use during sex with more than one partner in the past 6 months C.DE37": + exists "No condom use during sex with more than one partner in the past 6 months C.DE37 Condition" + or exists "No condom use during sex with more than one partner in the past 6 months C.DE37 Observation" +define "No condom use during sex with more than one partner in the past 6 months C.DE37 Condition": + Elements."No condom use during sex with more than one partner in the past 6 months C.DE37 Condition" C where C.prevalenceInterval() starts on or before Today -define "No condom use during sex with more than one partner in the past 6 months (PrEP) Observation": - Elements."No condom use during sex with more than one partner in the past 6 months (PrEP) Observation" O +define "No condom use during sex with more than one partner in the past 6 months C.DE37 Observation": + Elements."No condom use during sex with more than one partner in the past 6 months C.DE37 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of No condom use during sex with more than one partner in the past 6 months (PrEP) */ +/* End of No condom use during sex with more than one partner in the past 6 months C.DE37 */ /* -@dataElement: HIV.C.DE38 - STI in the past 6 months (PrEP) +@dataElement: HIV.C.DE38 - STI in the past 6 months @activity: HIV.C3 Capture or update client history @description: A recent history (in the last 6 months) of a sexually transmitted infection (STI ) by laboratory testing, self-report or syndromic STI treatment */ // TODO: Replace placeholder with relevant CQL logic -define "STI in the past 6 months (PrEP)": - exists "STI in the past 6 months (PrEP) Condition" - or exists "STI in the past 6 months (PrEP) Observation" -define "STI in the past 6 months (PrEP) Condition": - Elements."STI in the past 6 months (PrEP) Condition" C +define "STI in the past 6 months C.DE38": + exists "STI in the past 6 months C.DE38 Condition" + or exists "STI in the past 6 months C.DE38 Observation" +define "STI in the past 6 months C.DE38 Condition": + Elements."STI in the past 6 months C.DE38 Condition" C where C.prevalenceInterval() starts on or before Today -define "STI in the past 6 months (PrEP) Observation": - Elements."STI in the past 6 months (PrEP) Observation" O +define "STI in the past 6 months C.DE38 Observation": + Elements."STI in the past 6 months C.DE38 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of STI in the past 6 months (PrEP) */ +/* End of STI in the past 6 months C.DE38 */ /* -@dataElement: HIV.C.DE39 - A sexual partner in the past 6 months had one or more HIV risk factors (PrEP) +@dataElement: HIV.C.DE39 - A sexual partner in the past 6 months had one or more HIV risk factors @activity: HIV.C3 Capture or update client history @description: A recent sex partner of the client had HIV risk factors */ // TODO: Replace placeholder with relevant CQL logic -define "A sexual partner in the past 6 months had one or more HIV risk factors (PrEP)": - exists "A sexual partner in the past 6 months had one or more HIV risk factors (PrEP) Condition" - or exists "A sexual partner in the past 6 months had one or more HIV risk factors (PrEP) Observation" -define "A sexual partner in the past 6 months had one or more HIV risk factors (PrEP) Condition": - Elements."A sexual partner in the past 6 months had one or more HIV risk factors (PrEP) Condition" C +define "A sexual partner in the past 6 months had one or more HIV risk factors C.DE39": + exists "A sexual partner in the past 6 months had one or more HIV risk factors C.DE39 Condition" + or exists "A sexual partner in the past 6 months had one or more HIV risk factors C.DE39 Observation" +define "A sexual partner in the past 6 months had one or more HIV risk factors C.DE39 Condition": + Elements."A sexual partner in the past 6 months had one or more HIV risk factors C.DE39 Condition" C where C.prevalenceInterval() starts on or before Today -define "A sexual partner in the past 6 months had one or more HIV risk factors (PrEP) Observation": - Elements."A sexual partner in the past 6 months had one or more HIV risk factors (PrEP) Observation" O +define "A sexual partner in the past 6 months had one or more HIV risk factors C.DE39 Observation": + Elements."A sexual partner in the past 6 months had one or more HIV risk factors C.DE39 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of A sexual partner in the past 6 months had one or more HIV risk factors (PrEP) */ +/* End of A sexual partner in the past 6 months had one or more HIV risk factors C.DE39 */ /* -@dataElement: HIV.C.DE40 - PrEP requested by client (PrEP) +@dataElement: HIV.C.DE40 - PrEP requested by client @activity: HIV.C3 Capture or update client history @description: Client is requesting PrEP, reflecting a decision-making process has already taken place and suggesting of substantial risk of HIV */ // TODO: Replace placeholder with relevant CQL logic -define "PrEP requested by client (PrEP)": - exists "PrEP requested by client (PrEP) Condition" - or exists "PrEP requested by client (PrEP) Observation" -define "PrEP requested by client (PrEP) Condition": - Elements."PrEP requested by client (PrEP) Condition" C +define "PrEP requested by client C.DE40": + exists "PrEP requested by client C.DE40 Condition" + or exists "PrEP requested by client C.DE40 Observation" +define "PrEP requested by client C.DE40 Condition": + Elements."PrEP requested by client C.DE40 Condition" C where C.prevalenceInterval() starts on or before Today -define "PrEP requested by client (PrEP) Observation": - Elements."PrEP requested by client (PrEP) Observation" O +define "PrEP requested by client C.DE40 Observation": + Elements."PrEP requested by client C.DE40 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of PrEP requested by client (PrEP) */ +/* End of PrEP requested by client C.DE40 */ /* -@dataElement: HIV.C.DE46 - Acute HIV infection symptoms (PrEP|CDE46) +@dataElement: HIV.C.DE46 - Acute HIV infection symptoms @activity: HIV.C3 Capture or update client history @description: Symptoms that could suggest an acute HIV infection */ // TODO: Replace placeholder with relevant CQL logic -define "Acute HIV infection symptoms (PrEP|CDE46)": - exists "Acute HIV infection symptoms (PrEP|CDE46) Observation" -define "Acute HIV infection symptoms (PrEP|CDE46) Observation": - Elements."Acute HIV infection symptoms (PrEP|CDE46) Observation" O +define "Acute HIV infection symptoms C.DE46": + exists "Acute HIV infection symptoms C.DE46 Observation" +define "Acute HIV infection symptoms C.DE46 Observation": + Elements."Acute HIV infection symptoms C.DE46 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Acute HIV infection symptoms (PrEP|CDE46) */ +/* End of Acute HIV infection symptoms C.DE46 */ /* -@dataElement: HIV.C.DE47 - Fever (PrEP) +@dataElement: HIV.C.DE47 - Fever @activity: HIV.C3 Capture or update client history @description: Client's symptoms include a fever */ // TODO: Replace placeholder with relevant CQL logic -define "Fever (PrEP)": - exists "Fever (PrEP) Condition" - or exists "Fever (PrEP) Observation" -define "Fever (PrEP) Condition": - Elements."Fever (PrEP) Condition" C +define "Fever": + exists "Fever Condition" + or exists "Fever Observation" +define "Fever Condition": + Elements."Fever Condition" C where C.prevalenceInterval() starts on or before Today -define "Fever (PrEP) Observation": - Elements."Fever (PrEP) Observation" O +define "Fever Observation": + Elements."Fever Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Fever (PrEP) */ +/* End of Fever */ /* -@dataElement: HIV.C.DE48 - Sore throat (PrEP) +@dataElement: HIV.C.DE48 - Sore throat @activity: HIV.C3 Capture or update client history @description: Client's symptoms include a sore throat */ // TODO: Replace placeholder with relevant CQL logic -define "Sore throat (PrEP)": - exists "Sore throat (PrEP) Condition" - or exists "Sore throat (PrEP) Observation" -define "Sore throat (PrEP) Condition": - Elements."Sore throat (PrEP) Condition" C +define "Sore throat": + exists "Sore throat Condition" + or exists "Sore throat Observation" +define "Sore throat Condition": + Elements."Sore throat Condition" C where C.prevalenceInterval() starts on or before Today -define "Sore throat (PrEP) Observation": - Elements."Sore throat (PrEP) Observation" O +define "Sore throat Observation": + Elements."Sore throat Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Sore throat (PrEP) */ +/* End of Sore throat */ /* -@dataElement: HIV.C.DE49 - Aches (PrEP) +@dataElement: HIV.C.DE49 - Aches @activity: HIV.C3 Capture or update client history @description: Client's symptoms include aches */ // TODO: Replace placeholder with relevant CQL logic -define "Aches (PrEP)": - exists "Aches (PrEP) Condition" - or exists "Aches (PrEP) Observation" -define "Aches (PrEP) Condition": - Elements."Aches (PrEP) Condition" C +define "Aches": + exists "Aches Condition" + or exists "Aches Observation" +define "Aches Condition": + Elements."Aches Condition" C where C.prevalenceInterval() starts on or before Today -define "Aches (PrEP) Observation": - Elements."Aches (PrEP) Observation" O +define "Aches Observation": + Elements."Aches Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Aches (PrEP) */ +/* End of Aches */ /* -@dataElement: HIV.C.DE50 - Pains (PrEP) +@dataElement: HIV.C.DE50 - Pains @activity: HIV.C3 Capture or update client history @description: Client's symptoms include pains */ // TODO: Replace placeholder with relevant CQL logic -define "Pains (PrEP)": - exists "Pains (PrEP) Condition" - or exists "Pains (PrEP) Observation" -define "Pains (PrEP) Condition": - Elements."Pains (PrEP) Condition" C +define "Pains": + exists "Pains Condition" + or exists "Pains Observation" +define "Pains Condition": + Elements."Pains Condition" C where C.prevalenceInterval() starts on or before Today -define "Pains (PrEP) Observation": - Elements."Pains (PrEP) Observation" O +define "Pains Observation": + Elements."Pains Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Pains (PrEP) */ +/* End of Pains */ /* -@dataElement: HIV.C.DE51 - Swollen glands (PrEP) +@dataElement: HIV.C.DE51 - Swollen glands @activity: HIV.C3 Capture or update client history @description: Client's symptoms include swollen glands */ // TODO: Replace placeholder with relevant CQL logic -define "Swollen glands (PrEP)": - exists "Swollen glands (PrEP) Condition" - or exists "Swollen glands (PrEP) Observation" -define "Swollen glands (PrEP) Condition": - Elements."Swollen glands (PrEP) Condition" C +define "Swollen glands": + exists "Swollen glands Condition" + or exists "Swollen glands Observation" +define "Swollen glands Condition": + Elements."Swollen glands Condition" C where C.prevalenceInterval() starts on or before Today -define "Swollen glands (PrEP) Observation": - Elements."Swollen glands (PrEP) Observation" O +define "Swollen glands Observation": + Elements."Swollen glands Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Swollen glands (PrEP) */ +/* End of Swollen glands */ /* -@dataElement: HIV.C.DE52 - Mouth sores (PrEP) +@dataElement: HIV.C.DE52 - Mouth sores @activity: HIV.C3 Capture or update client history @description: Client's symptoms include a mouth sores */ // TODO: Replace placeholder with relevant CQL logic -define "Mouth sores (PrEP)": - exists "Mouth sores (PrEP) Condition" - or exists "Mouth sores (PrEP) Observation" -define "Mouth sores (PrEP) Condition": - Elements."Mouth sores (PrEP) Condition" C +define "Mouth sores": + exists "Mouth sores Condition" + or exists "Mouth sores Observation" +define "Mouth sores Condition": + Elements."Mouth sores Condition" C where C.prevalenceInterval() starts on or before Today -define "Mouth sores (PrEP) Observation": - Elements."Mouth sores (PrEP) Observation" O +define "Mouth sores Observation": + Elements."Mouth sores Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Mouth sores (PrEP) */ +/* End of Mouth sores */ /* -@dataElement: HIV.C.DE53 - Headaches (PrEP) +@dataElement: HIV.C.DE53 - Headaches @activity: HIV.C3 Capture or update client history @description: Client's symptoms include a headaches */ // TODO: Replace placeholder with relevant CQL logic -define "Headaches (PrEP)": - exists "Headaches (PrEP) Condition" - or exists "Headaches (PrEP) Observation" -define "Headaches (PrEP) Condition": - Elements."Headaches (PrEP) Condition" C +define "Headaches": + exists "Headaches Condition" + or exists "Headaches Observation" +define "Headaches Condition": + Elements."Headaches Condition" C where C.prevalenceInterval() starts on or before Today -define "Headaches (PrEP) Observation": - Elements."Headaches (PrEP) Observation" O +define "Headaches Observation": + Elements."Headaches Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Headaches (PrEP) */ +/* End of Headaches */ /* -@dataElement: HIV.C.DE54 - Rash (PrEP) +@dataElement: HIV.C.DE54 - Rash @activity: HIV.C3 Capture or update client history @description: Client's symptoms include a rash */ // TODO: Replace placeholder with relevant CQL logic -define "Rash (PrEP)": - exists "Rash (PrEP) Condition" - or exists "Rash (PrEP) Observation" -define "Rash (PrEP) Condition": - Elements."Rash (PrEP) Condition" C +define "Rash": + exists "Rash Condition" + or exists "Rash Observation" +define "Rash Condition": + Elements."Rash Condition" C where C.prevalenceInterval() starts on or before Today -define "Rash (PrEP) Observation": - Elements."Rash (PrEP) Observation" O +define "Rash Observation": + Elements."Rash Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Rash (PrEP) */ +/* End of Rash */ /* -@dataElement: HIV.C.DE55 - Sex partners HIV treatment status (PrEP) +@dataElement: HIV.C.DE55 - Sex partners HIV treatment status @activity: HIV.C3 Capture or update client history @description: Treatment adherence of client's sex partner for partners that are HIV-positive */ // TODO: Replace placeholder with relevant CQL logic -define "Sex partners HIV treatment status (PrEP)": - exists "Sex partners HIV treatment status (PrEP) Observation" -define "Sex partners HIV treatment status (PrEP) Observation": - Elements."Sex partners HIV treatment status (PrEP) Observation" O +define "Sex partners HIV treatment status": + exists "Sex partners HIV treatment status Observation" +define "Sex partners HIV treatment status Observation": + Elements."Sex partners HIV treatment status Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Sex partners HIV treatment status (PrEP) */ +/* End of Sex partners HIV treatment status */ /* -@dataElement: HIV.C.DE56 - Not on ART (PrEP) +@dataElement: HIV.C.DE56 - Not on ART @activity: HIV.C3 Capture or update client history @description: Sex partner is HIV-positive and not on ART */ // TODO: Replace placeholder with relevant CQL logic -define "Not on ART (PrEP)": - exists "Not on ART (PrEP) Condition" - or exists "Not on ART (PrEP) Observation" -define "Not on ART (PrEP) Condition": - Elements."Not on ART (PrEP) Condition" C +define "Not on ART": + exists "Not on ART Condition" + or exists "Not on ART Observation" +define "Not on ART Condition": + Elements."Not on ART Condition" C where C.prevalenceInterval() starts on or before Today -define "Not on ART (PrEP) Observation": - Elements."Not on ART (PrEP) Observation" O +define "Not on ART Observation": + Elements."Not on ART Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Not on ART (PrEP) */ +/* End of Not on ART */ /* -@dataElement: HIV.C.DE57 - On ART less than 6 months (PrEP) +@dataElement: HIV.C.DE57 - On ART less than 6 months @activity: HIV.C3 Capture or update client history @description: Sex partner is HIV-positive and is on ART less than 6 months. ART may take up to 6 months to suppress viral load. In studies of serodiscordant couples, pre-exposure prophylaxis (PrEP) has provided a useful bridge to full viral suppression by the partner during that time. */ // TODO: Replace placeholder with relevant CQL logic -define "On ART less than 6 months (PrEP)": - exists "On ART less than 6 months (PrEP) Condition" - or exists "On ART less than 6 months (PrEP) Observation" -define "On ART less than 6 months (PrEP) Condition": - Elements."On ART less than 6 months (PrEP) Condition" C +define "On ART less than 6 months": + exists "On ART less than 6 months Condition" + or exists "On ART less than 6 months Observation" +define "On ART less than 6 months Condition": + Elements."On ART less than 6 months Condition" C where C.prevalenceInterval() starts on or before Today -define "On ART less than 6 months (PrEP) Observation": - Elements."On ART less than 6 months (PrEP) Observation" O +define "On ART less than 6 months Observation": + Elements."On ART less than 6 months Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of On ART less than 6 months (PrEP) */ +/* End of On ART less than 6 months */ /* -@dataElement: HIV.C.DE58 - Partner has suspected low adherence to ART (PrEP) +@dataElement: HIV.C.DE58 - Partner has suspected low adherence to ART @activity: HIV.C3 Capture or update client history @description: Sex partner is HIV-positive and is suspected to have low adherence to ART. There have been gaps in the partner's treatment adherence or the couple is not communicating openly about treatment adherence and viral load test results. */ // TODO: Replace placeholder with relevant CQL logic -define "Partner has suspected low adherence to ART (PrEP)": - exists "Partner has suspected low adherence to ART (PrEP) Condition" - or exists "Partner has suspected low adherence to ART (PrEP) Observation" -define "Partner has suspected low adherence to ART (PrEP) Condition": - Elements."Partner has suspected low adherence to ART (PrEP) Condition" C +define "Partner has suspected low adherence to ART": + exists "Partner has suspected low adherence to ART Condition" + or exists "Partner has suspected low adherence to ART Observation" +define "Partner has suspected low adherence to ART Condition": + Elements."Partner has suspected low adherence to ART Condition" C where C.prevalenceInterval() starts on or before Today -define "Partner has suspected low adherence to ART (PrEP) Observation": - Elements."Partner has suspected low adherence to ART (PrEP) Observation" O +define "Partner has suspected low adherence to ART Observation": + Elements."Partner has suspected low adherence to ART Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Partner has suspected low adherence to ART (PrEP) */ +/* End of Partner has suspected low adherence to ART */ /* -@dataElement: HIV.C.DE59 - Partner is not virally suppressed (PrEP) +@dataElement: HIV.C.DE59 - Partner is not virally suppressed @activity: HIV.C3 Capture or update client history @description: Sex partner is HIV-positive and not virally suppressed */ // TODO: Replace placeholder with relevant CQL logic -define "Partner is not virally suppressed (PrEP)": - exists "Partner is not virally suppressed (PrEP) Condition" - or exists "Partner is not virally suppressed (PrEP) Observation" -define "Partner is not virally suppressed (PrEP) Condition": - Elements."Partner is not virally suppressed (PrEP) Condition" C +define "Partner is not virally suppressed": + exists "Partner is not virally suppressed Condition" + or exists "Partner is not virally suppressed Observation" +define "Partner is not virally suppressed Condition": + Elements."Partner is not virally suppressed Condition" C where C.prevalenceInterval() starts on or before Today -define "Partner is not virally suppressed (PrEP) Observation": - Elements."Partner is not virally suppressed (PrEP) Observation" O +define "Partner is not virally suppressed Observation": + Elements."Partner is not virally suppressed Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Partner is not virally suppressed (PrEP) */ +/* End of Partner is not virally suppressed */ /* -@dataElement: HIV.C.DE60 - Partner is virally suppressed and has been on ART for 6 months or more (PrEP) +@dataElement: HIV.C.DE60 - Partner is virally suppressed and has been on ART for 6 months or more @activity: HIV.C3 Capture or update client history @description: Sex partner is HIV-positive and virally suppressed with 6 months or more on ART */ // TODO: Replace placeholder with relevant CQL logic -define "Partner is virally suppressed and has been on ART for 6 months or more (PrEP)": - exists "Partner is virally suppressed and has been on ART for 6 months or more (PrEP) Condition" - or exists "Partner is virally suppressed and has been on ART for 6 months or more (PrEP) Observation" -define "Partner is virally suppressed and has been on ART for 6 months or more (PrEP) Condition": - Elements."Partner is virally suppressed and has been on ART for 6 months or more (PrEP) Condition" C +define "Partner is virally suppressed and has been on ART for 6 months or more": + exists "Partner is virally suppressed and has been on ART for 6 months or more Condition" + or exists "Partner is virally suppressed and has been on ART for 6 months or more Observation" +define "Partner is virally suppressed and has been on ART for 6 months or more Condition": + Elements."Partner is virally suppressed and has been on ART for 6 months or more Condition" C where C.prevalenceInterval() starts on or before Today -define "Partner is virally suppressed and has been on ART for 6 months or more (PrEP) Observation": - Elements."Partner is virally suppressed and has been on ART for 6 months or more (PrEP) Observation" O +define "Partner is virally suppressed and has been on ART for 6 months or more Observation": + Elements."Partner is virally suppressed and has been on ART for 6 months or more Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Partner is virally suppressed and has been on ART for 6 months or more (PrEP) */ +/* End of Partner is virally suppressed and has been on ART for 6 months or more */ /* -@dataElement: HIV.C.DE61 - Suitable for PrEP (PrEP) +@dataElement: HIV.C.DE61 - Suitable for PrEP @activity: HIV.C8 Suitable for PrEP or PEP? @description: The client is suitable for PrEP */ // TODO: Replace placeholder with relevant CQL logic -define "Suitable for PrEP (PrEP)": - exists "Suitable for PrEP (PrEP) Observation" -define "Suitable for PrEP (PrEP) Observation": - Elements."Suitable for PrEP (PrEP) Observation" O +define "Suitable for PrEP": + exists "Suitable for PrEP Observation" +define "Suitable for PrEP Observation": + Elements."Suitable for PrEP Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Suitable for PrEP (PrEP) */ +/* End of Suitable for PrEP */ /* -@dataElement: HIV.C.DE91 - Preferred PEP backbone regimen (PrEP) +@dataElement: HIV.C.DE91 - Preferred PEP backbone regimen @activity: HIV.C23 Prescribe or administer PrEP or PEP @description: Preferred backbone regimen for PEP */ // TODO: Replace placeholder with relevant CQL logic -define "Preferred PEP backbone regimen (PrEP)": - exists "Preferred PEP backbone regimen (PrEP) Observation" -define "Preferred PEP backbone regimen (PrEP) Observation": - Elements."Preferred PEP backbone regimen (PrEP) Observation" O +define "Preferred PEP backbone regimen": + exists "Preferred PEP backbone regimen Observation" +define "Preferred PEP backbone regimen Observation": + Elements."Preferred PEP backbone regimen Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Preferred PEP backbone regimen (PrEP) */ +/* End of Preferred PEP backbone regimen */ /* -@dataElement: HIV.C.DE92 - TDF + 3TC (PrEP|CDE92) +@dataElement: HIV.C.DE92 - TDF + 3TC @activity: HIV.C23 Prescribe or administer PrEP or PEP @description: Preferred backbone containing tenofovir disoproxil fumarate and lamivudine */ // TODO: Replace placeholder with relevant CQL logic -define "TDF + 3TC (PrEP|CDE92)": - exists "TDF + 3TC (PrEP|CDE92) Condition" - or exists "TDF + 3TC (PrEP|CDE92) Observation" -define "TDF + 3TC (PrEP|CDE92) Condition": - Elements."TDF + 3TC (PrEP|CDE92) Condition" C +define "TDF + 3TC C.DE92": + exists "TDF + 3TC C.DE92 Condition" + or exists "TDF + 3TC C.DE92 Observation" +define "TDF + 3TC C.DE92 Condition": + Elements."TDF + 3TC C.DE92 Condition" C where C.prevalenceInterval() starts on or before Today -define "TDF + 3TC (PrEP|CDE92) Observation": - Elements."TDF + 3TC (PrEP|CDE92) Observation" O +define "TDF + 3TC C.DE92 Observation": + Elements."TDF + 3TC C.DE92 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of TDF + 3TC (PrEP|CDE92) */ +/* End of TDF + 3TC C.DE92 */ /* -@dataElement: HIV.C.DE93 - TDF + FTC (PrEP|CDE93) +@dataElement: HIV.C.DE93 - TDF + FTC @activity: HIV.C23 Prescribe or administer PrEP or PEP @description: Preferred backbone containing tenofovir disoproxil fumarate and emtricitabine */ // TODO: Replace placeholder with relevant CQL logic -define "TDF + FTC (PrEP|CDE93)": - exists "TDF + FTC (PrEP|CDE93) Condition" - or exists "TDF + FTC (PrEP|CDE93) Observation" -define "TDF + FTC (PrEP|CDE93) Condition": - Elements."TDF + FTC (PrEP|CDE93) Condition" C +define "TDF + FTC C.DE93": + exists "TDF + FTC C.DE93 Condition" + or exists "TDF + FTC C.DE93 Observation" +define "TDF + FTC C.DE93 Condition": + Elements."TDF + FTC C.DE93 Condition" C where C.prevalenceInterval() starts on or before Today -define "TDF + FTC (PrEP|CDE93) Observation": - Elements."TDF + FTC (PrEP|CDE93) Observation" O +define "TDF + FTC C.DE93 Observation": + Elements."TDF + FTC C.DE93 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of TDF + FTC (PrEP|CDE93) */ +/* End of TDF + FTC C.DE93 */ /* -@dataElement: HIV.C.DE94 - AZT + 3TC (PrEP) +@dataElement: HIV.C.DE94 - AZT + 3TC @activity: HIV.C23 Prescribe or administer PrEP or PEP @description: Preferred backbone containing zidovudine and lamivudine */ // TODO: Replace placeholder with relevant CQL logic -define "AZT + 3TC (PrEP)": - exists "AZT + 3TC (PrEP) Condition" - or exists "AZT + 3TC (PrEP) Observation" -define "AZT + 3TC (PrEP) Condition": - Elements."AZT + 3TC (PrEP) Condition" C +define "AZT + 3TC": + exists "AZT + 3TC Condition" + or exists "AZT + 3TC Observation" +define "AZT + 3TC Condition": + Elements."AZT + 3TC Condition" C where C.prevalenceInterval() starts on or before Today -define "AZT + 3TC (PrEP) Observation": - Elements."AZT + 3TC (PrEP) Observation" O +define "AZT + 3TC Observation": + Elements."AZT + 3TC Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of AZT + 3TC (PrEP) */ +/* End of AZT + 3TC */ /* -@dataElement: HIV.C.DE95 - Alternative PEP backbone regimen (PrEP) +@dataElement: HIV.C.DE95 - Alternative PEP backbone regimen @activity: HIV.C3 Capture or update client history @description: Alternative backbone regimen for PEP */ // TODO: Replace placeholder with relevant CQL logic -define "Alternative PEP backbone regimen (PrEP)": - exists "Alternative PEP backbone regimen (PrEP) Observation" -define "Alternative PEP backbone regimen (PrEP) Observation": - Elements."Alternative PEP backbone regimen (PrEP) Observation" O +define "Alternative PEP backbone regimen": + exists "Alternative PEP backbone regimen Observation" +define "Alternative PEP backbone regimen Observation": + Elements."Alternative PEP backbone regimen Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Alternative PEP backbone regimen (PrEP) */ +/* End of Alternative PEP backbone regimen */ /* -@dataElement: HIV.C.DE96 - ABC + 3TC (PrEP) +@dataElement: HIV.C.DE96 - ABC + 3TC @activity: HIV.C3 Capture or update client history @description: Alternative backbone containing abacavir and lamivudine */ // TODO: Replace placeholder with relevant CQL logic -define "ABC + 3TC (PrEP)": - exists "ABC + 3TC (PrEP) Condition" - or exists "ABC + 3TC (PrEP) Observation" -define "ABC + 3TC (PrEP) Condition": - Elements."ABC + 3TC (PrEP) Condition" C +define "ABC + 3TC": + exists "ABC + 3TC Condition" + or exists "ABC + 3TC Observation" +define "ABC + 3TC Condition": + Elements."ABC + 3TC Condition" C where C.prevalenceInterval() starts on or before Today -define "ABC + 3TC (PrEP) Observation": - Elements."ABC + 3TC (PrEP) Observation" O +define "ABC + 3TC Observation": + Elements."ABC + 3TC Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of ABC + 3TC (PrEP) */ +/* End of ABC + 3TC */ /* -@dataElement: HIV.C.DE97 - TDF + 3TC (PrEP|CDE97) +@dataElement: HIV.C.DE97 - TDF + 3TC @activity: HIV.C3 Capture or update client history @description: Alternative backbone containing tenofovir disoproxil fumarate and lamivudine */ // TODO: Replace placeholder with relevant CQL logic -define "TDF + 3TC (PrEP|CDE97)": - exists "TDF + 3TC (PrEP|CDE97) Condition" - or exists "TDF + 3TC (PrEP|CDE97) Observation" -define "TDF + 3TC (PrEP|CDE97) Condition": - Elements."TDF + 3TC (PrEP|CDE97) Condition" C +define "TDF + 3TC C.DE97": + exists "TDF + 3TC C.DE97 Condition" + or exists "TDF + 3TC C.DE97 Observation" +define "TDF + 3TC C.DE97 Condition": + Elements."TDF + 3TC C.DE97 Condition" C where C.prevalenceInterval() starts on or before Today -define "TDF + 3TC (PrEP|CDE97) Observation": - Elements."TDF + 3TC (PrEP|CDE97) Observation" O +define "TDF + 3TC C.DE97 Observation": + Elements."TDF + 3TC C.DE97 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of TDF + 3TC (PrEP|CDE97) */ +/* End of TDF + 3TC C.DE97 */ /* -@dataElement: HIV.C.DE98 - TDF + FTC (PrEP|CDE98) +@dataElement: HIV.C.DE98 - TDF + FTC @activity: HIV.C3 Capture or update client history @description: Alternative backbone containing tenofovir disoproxil fumarate and emtricitabine */ // TODO: Replace placeholder with relevant CQL logic -define "TDF + FTC (PrEP|CDE98)": - exists "TDF + FTC (PrEP|CDE98) Condition" - or exists "TDF + FTC (PrEP|CDE98) Observation" -define "TDF + FTC (PrEP|CDE98) Condition": - Elements."TDF + FTC (PrEP|CDE98) Condition" C +define "TDF + FTC C.DE98": + exists "TDF + FTC C.DE98 Condition" + or exists "TDF + FTC C.DE98 Observation" +define "TDF + FTC C.DE98 Condition": + Elements."TDF + FTC C.DE98 Condition" C where C.prevalenceInterval() starts on or before Today -define "TDF + FTC (PrEP|CDE98) Observation": - Elements."TDF + FTC (PrEP|CDE98) Observation" O +define "TDF + FTC C.DE98 Observation": + Elements."TDF + FTC C.DE98 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of TDF + FTC (PrEP|CDE98) */ +/* End of TDF + FTC C.DE98 */ /* -@dataElement: HIV.C.DE99 - Preferred third PEP drug (PrEP) +@dataElement: HIV.C.DE99 - Preferred third PEP drug @activity: HIV.C23 Prescribe or administer PrEP or PEP @description: Preferred third drug for PEP */ // TODO: Replace placeholder with relevant CQL logic -define "Preferred third PEP drug (PrEP)": - exists "Preferred third PEP drug (PrEP) Observation" -define "Preferred third PEP drug (PrEP) Observation": - Elements."Preferred third PEP drug (PrEP) Observation" O +define "Preferred third PEP drug": + exists "Preferred third PEP drug Observation" +define "Preferred third PEP drug Observation": + Elements."Preferred third PEP drug Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Preferred third PEP drug (PrEP) */ +/* End of Preferred third PEP drug */ /* -@dataElement: HIV.C.DE100 - DTG (PrEP) +@dataElement: HIV.C.DE100 - DTG @activity: HIV.C23 Prescribe or administer PrEP or PEP @description: Preferred third drug of dolutegravir */ // TODO: Replace placeholder with relevant CQL logic -define "DTG (PrEP)": - exists "DTG (PrEP) Condition" - or exists "DTG (PrEP) Observation" -define "DTG (PrEP) Condition": - Elements."DTG (PrEP) Condition" C +define "DTG C.DE100": + exists "DTG C.DE100 Condition" + or exists "DTG C.DE100 Observation" +define "DTG C.DE100 Condition": + Elements."DTG C.DE100 Condition" C where C.prevalenceInterval() starts on or before Today -define "DTG (PrEP) Observation": - Elements."DTG (PrEP) Observation" O +define "DTG C.DE100 Observation": + Elements."DTG C.DE100 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of DTG (PrEP) */ +/* End of DTG C.DE100 */ /* -@dataElement: HIV.C.DE101 - Alternative third PEP drug (PrEP) +@dataElement: HIV.C.DE101 - Alternative third PEP drug @activity: HIV.C3 Capture or update client history @description: Alternative third drug for PEP */ // TODO: Replace placeholder with relevant CQL logic -define "Alternative third PEP drug (PrEP)": - exists "Alternative third PEP drug (PrEP) Observation" -define "Alternative third PEP drug (PrEP) Observation": - Elements."Alternative third PEP drug (PrEP) Observation" O +define "Alternative third PEP drug": + exists "Alternative third PEP drug Observation" +define "Alternative third PEP drug Observation": + Elements."Alternative third PEP drug Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Alternative third PEP drug (PrEP) */ +/* End of Alternative third PEP drug */ /* -@dataElement: HIV.C.DE102 - ATV/r (PrEP) +@dataElement: HIV.C.DE102 - ATV/r @activity: HIV.C3 Capture or update client history @description: Alternative third drug of atazanavir/ritonavir (ATV/r) */ // TODO: Replace placeholder with relevant CQL logic -define "ATV/r (PrEP)": - exists "ATV/r (PrEP) Condition" - or exists "ATV/r (PrEP) Observation" -define "ATV/r (PrEP) Condition": - Elements."ATV/r (PrEP) Condition" C +define "ATV/r C.DE102": + exists "ATV/r C.DE102 Condition" + or exists "ATV/r C.DE102 Observation" +define "ATV/r C.DE102 Condition": + Elements."ATV/r C.DE102 Condition" C where C.prevalenceInterval() starts on or before Today -define "ATV/r (PrEP) Observation": - Elements."ATV/r (PrEP) Observation" O +define "ATV/r C.DE102 Observation": + Elements."ATV/r C.DE102 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of ATV/r (PrEP) */ +/* End of ATV/r C.DE102 */ /* -@dataElement: HIV.C.DE103 - DRV/r (PrEP) +@dataElement: HIV.C.DE103 - DRV/r @activity: HIV.C3 Capture or update client history @description: Alternative third drug of darunavir/ritonavir (DRV/r) */ // TODO: Replace placeholder with relevant CQL logic -define "DRV/r (PrEP)": - exists "DRV/r (PrEP) Condition" - or exists "DRV/r (PrEP) Observation" -define "DRV/r (PrEP) Condition": - Elements."DRV/r (PrEP) Condition" C +define "DRV/r C.DE103": + exists "DRV/r C.DE103 Condition" + or exists "DRV/r C.DE103 Observation" +define "DRV/r C.DE103 Condition": + Elements."DRV/r C.DE103 Condition" C where C.prevalenceInterval() starts on or before Today -define "DRV/r (PrEP) Observation": - Elements."DRV/r (PrEP) Observation" O +define "DRV/r C.DE103 Observation": + Elements."DRV/r C.DE103 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of DRV/r (PrEP) */ +/* End of DRV/r C.DE103 */ /* -@dataElement: HIV.C.DE104 - LPV/r (PrEP) +@dataElement: HIV.C.DE104 - LPV/r @activity: HIV.C3 Capture or update client history @description: Alternative third drug of lopinavir/ritonavir (LPV/r) */ // TODO: Replace placeholder with relevant CQL logic -define "LPV/r (PrEP)": - exists "LPV/r (PrEP) Condition" - or exists "LPV/r (PrEP) Observation" -define "LPV/r (PrEP) Condition": - Elements."LPV/r (PrEP) Condition" C +define "LPV/r C.DE104": + exists "LPV/r C.DE104 Condition" + or exists "LPV/r C.DE104 Observation" +define "LPV/r C.DE104 Condition": + Elements."LPV/r C.DE104 Condition" C where C.prevalenceInterval() starts on or before Today -define "LPV/r (PrEP) Observation": - Elements."LPV/r (PrEP) Observation" O +define "LPV/r C.DE104 Observation": + Elements."LPV/r C.DE104 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of LPV/r (PrEP) */ +/* End of LPV/r C.DE104 */ /* -@dataElement: HIV.C.DE105 - RAL (PrEP) +@dataElement: HIV.C.DE105 - RAL @activity: HIV.C3 Capture or update client history @description: Alternative third drug of raltegravir (RAL) */ // TODO: Replace placeholder with relevant CQL logic -define "RAL (PrEP)": - exists "RAL (PrEP) Condition" - or exists "RAL (PrEP) Observation" -define "RAL (PrEP) Condition": - Elements."RAL (PrEP) Condition" C +define "RAL C.DE105": + exists "RAL C.DE105 Condition" + or exists "RAL C.DE105 Observation" +define "RAL C.DE105 Condition": + Elements."RAL C.DE105 Condition" C where C.prevalenceInterval() starts on or before Today -define "RAL (PrEP) Observation": - Elements."RAL (PrEP) Observation" O +define "RAL C.DE105 Observation": + Elements."RAL C.DE105 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of RAL (PrEP) */ +/* End of RAL C.DE105 */ /* -@dataElement: HIV.C.DE106 - Estimated creatinine clearance (PrEP) +@dataElement: HIV.C.DE106 - Estimated creatinine clearance @activity: HIV.C23 Prescribe or administer PrEP or PEP @description: Estimated creatinine clearance of the client returned from lab in mL/min */ // TODO: Replace placeholder with relevant CQL logic -define "Estimated creatinine clearance (PrEP)": - Elements."Estimated creatinine clearance (PrEP)" O +define "Estimated creatinine clearance": + Elements."Estimated creatinine clearance" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -define "Estimated creatinine clearance (PrEP) Value": - "Estimated creatinine clearance (PrEP)" O +define "Estimated creatinine clearance Value": + "Estimated creatinine clearance" O return O.value -/* End of Estimated creatinine clearance (PrEP) */ +/* End of Estimated creatinine clearance */ /* -@dataElement: HIV.C.DE112 - Contraindications to PrEP usage (PrEP) +@dataElement: HIV.C.DE112 - Contraindications to PrEP usage @activity: HIV.C23 Prescribe or administer PrEP or PEP @description: Listing of contraindications to pre-exposure prophylaxis (PrEP) */ // TODO: Replace placeholder with relevant CQL logic -define "Contraindications to PrEP usage (PrEP)": - exists "Contraindications to PrEP usage (PrEP) Observation" -define "Contraindications to PrEP usage (PrEP) Observation": - Elements."Contraindications to PrEP usage (PrEP) Observation" O +define "Contraindications to PrEP usage": + exists "Contraindications to PrEP usage Observation" +define "Contraindications to PrEP usage Observation": + Elements."Contraindications to PrEP usage Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Contraindications to PrEP usage (PrEP) */ +/* End of Contraindications to PrEP usage */ /* -@dataElement: HIV.C.DE113 - Tenofovir disoproxil fumarate TDF allergy or contraindication (PrEP) +@dataElement: HIV.C.DE113 - Tenofovir disoproxil fumarate TDF allergy or contraindication @activity: HIV.C23 Prescribe or administer PrEP or PEP @description: Allergy to pre-exposure prophylaxis (PrEP) tenofovir disoproxil fumarate (TDF) */ // TODO: Replace placeholder with relevant CQL logic -define "Tenofovir disoproxil fumarate TDF allergy or contraindication (PrEP)": - exists "Tenofovir disoproxil fumarate TDF allergy or contraindication (PrEP) Condition" - or exists "Tenofovir disoproxil fumarate TDF allergy or contraindication (PrEP) Observation" -define "Tenofovir disoproxil fumarate TDF allergy or contraindication (PrEP) Condition": - Elements."Tenofovir disoproxil fumarate TDF allergy or contraindication (PrEP) Condition" C +define "Tenofovir disoproxil fumarate TDF allergy or contraindication": + exists "Tenofovir disoproxil fumarate TDF allergy or contraindication Condition" + or exists "Tenofovir disoproxil fumarate TDF allergy or contraindication Observation" +define "Tenofovir disoproxil fumarate TDF allergy or contraindication Condition": + Elements."Tenofovir disoproxil fumarate TDF allergy or contraindication Condition" C where C.prevalenceInterval() starts on or before Today -define "Tenofovir disoproxil fumarate TDF allergy or contraindication (PrEP) Observation": - Elements."Tenofovir disoproxil fumarate TDF allergy or contraindication (PrEP) Observation" O +define "Tenofovir disoproxil fumarate TDF allergy or contraindication Observation": + Elements."Tenofovir disoproxil fumarate TDF allergy or contraindication Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Tenofovir disoproxil fumarate TDF allergy or contraindication (PrEP) */ +/* End of Tenofovir disoproxil fumarate TDF allergy or contraindication */ /* -@dataElement: HIV.C.DE114 - HIV-positive (PrEP) +@dataElement: HIV.C.DE114 - HIV-positive @activity: HIV.C23 Prescribe or administer PrEP or PEP @description: Client is HIV-positive */ // TODO: Replace placeholder with relevant CQL logic -define "HIV-positive (PrEP)": - exists "HIV-positive (PrEP) Condition" - or exists "HIV-positive (PrEP) Observation" -define "HIV-positive (PrEP) Condition": - Elements."HIV-positive (PrEP) Condition" C +define "HIV-positive C.DE114": + exists "HIV-positive C.DE114 Condition" + or exists "HIV-positive C.DE114 Observation" +define "HIV-positive C.DE114 Condition": + Elements."HIV-positive C.DE114 Condition" C where C.prevalenceInterval() starts on or before Today -define "HIV-positive (PrEP) Observation": - Elements."HIV-positive (PrEP) Observation" O +define "HIV-positive C.DE114 Observation": + Elements."HIV-positive C.DE114 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of HIV-positive (PrEP) */ +/* End of HIV-positive C.DE114 */ /* -@dataElement: HIV.C.DE115 - Low estimated creatinine clearance (PrEP) +@dataElement: HIV.C.DE115 - Low estimated creatinine clearance @activity: HIV.C23 Prescribe or administer PrEP or PEP @description: Estimated creatinine clearance of less than 60 ml/min (if known) */ // TODO: Replace placeholder with relevant CQL logic -define "Low estimated creatinine clearance (PrEP)": - exists "Low estimated creatinine clearance (PrEP) Condition" - or exists "Low estimated creatinine clearance (PrEP) Observation" -define "Low estimated creatinine clearance (PrEP) Condition": - Elements."Low estimated creatinine clearance (PrEP) Condition" C +define "Low estimated creatinine clearance": + exists "Low estimated creatinine clearance Condition" + or exists "Low estimated creatinine clearance Observation" +define "Low estimated creatinine clearance Condition": + Elements."Low estimated creatinine clearance Condition" C where C.prevalenceInterval() starts on or before Today -define "Low estimated creatinine clearance (PrEP) Observation": - Elements."Low estimated creatinine clearance (PrEP) Observation" O +define "Low estimated creatinine clearance Observation": + Elements."Low estimated creatinine clearance Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Low estimated creatinine clearance (PrEP) */ +/* End of Low estimated creatinine clearance */ /* -@dataElement: HIV.C.DE116 - Acute HIV infection symptoms (PrEP|CDE116) +@dataElement: HIV.C.DE116 - Acute HIV infection symptoms @activity: HIV.C23 Prescribe or administer PrEP or PEP @description: Symptoms that could suggest an acute HIV infection */ // TODO: Replace placeholder with relevant CQL logic -define "Acute HIV infection symptoms (PrEP|CDE116)": - exists "Acute HIV infection symptoms (PrEP|CDE116) Condition" - or exists "Acute HIV infection symptoms (PrEP|CDE116) Observation" -define "Acute HIV infection symptoms (PrEP|CDE116) Condition": - Elements."Acute HIV infection symptoms (PrEP|CDE116) Condition" C +define "Acute HIV infection symptoms C.DE116": + exists "Acute HIV infection symptoms C.DE116 Condition" + or exists "Acute HIV infection symptoms C.DE116 Observation" +define "Acute HIV infection symptoms C.DE116 Condition": + Elements."Acute HIV infection symptoms C.DE116 Condition" C where C.prevalenceInterval() starts on or before Today -define "Acute HIV infection symptoms (PrEP|CDE116) Observation": - Elements."Acute HIV infection symptoms (PrEP|CDE116) Observation" O +define "Acute HIV infection symptoms C.DE116 Observation": + Elements."Acute HIV infection symptoms C.DE116 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Acute HIV infection symptoms (PrEP|CDE116) */ +/* End of Acute HIV infection symptoms C.DE116 */ /* -@dataElement: HIV.C.DE117 - Probable recent exposure to HIV (PrEP) +@dataElement: HIV.C.DE117 - Probable recent exposure to HIV @activity: HIV.C23 Prescribe or administer PrEP or PEP @description: When the client is reported to have had probable recent exposure to HIV */ // TODO: Replace placeholder with relevant CQL logic -define "Probable recent exposure to HIV (PrEP)": - exists "Probable recent exposure to HIV (PrEP) Condition" - or exists "Probable recent exposure to HIV (PrEP) Observation" -define "Probable recent exposure to HIV (PrEP) Condition": - Elements."Probable recent exposure to HIV (PrEP) Condition" C +define "Probable recent exposure to HIV": + exists "Probable recent exposure to HIV Condition" + or exists "Probable recent exposure to HIV Observation" +define "Probable recent exposure to HIV Condition": + Elements."Probable recent exposure to HIV Condition" C where C.prevalenceInterval() starts on or before Today -define "Probable recent exposure to HIV (PrEP) Observation": - Elements."Probable recent exposure to HIV (PrEP) Observation" O +define "Probable recent exposure to HIV Observation": + Elements."Probable recent exposure to HIV Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Probable recent exposure to HIV (PrEP) */ +/* End of Probable recent exposure to HIV */ /* -@dataElement: HIV.C.DE118 - Other allergy or contraindication to a medicine in the PrEP regimen (PrEP) +@dataElement: HIV.C.DE118 - Other allergy or contraindication to a medicine in the PrEP regimen @activity: HIV.C23 Prescribe or administer PrEP or PEP @description: Client has another allergy or contraindication to a medicine in the pre-exposure prophylaxis (PrEP) regimen */ // TODO: Replace placeholder with relevant CQL logic -define "Other allergy or contraindication to a medicine in the PrEP regimen (PrEP)": - exists "Other allergy or contraindication to a medicine in the PrEP regimen (PrEP) Condition" - or exists "Other allergy or contraindication to a medicine in the PrEP regimen (PrEP) Observation" -define "Other allergy or contraindication to a medicine in the PrEP regimen (PrEP) Condition": - Elements."Other allergy or contraindication to a medicine in the PrEP regimen (PrEP) Condition" C +define "Other allergy or contraindication to a medicine in the PrEP regimen": + exists "Other allergy or contraindication to a medicine in the PrEP regimen Condition" + or exists "Other allergy or contraindication to a medicine in the PrEP regimen Observation" +define "Other allergy or contraindication to a medicine in the PrEP regimen Condition": + Elements."Other allergy or contraindication to a medicine in the PrEP regimen Condition" C where C.prevalenceInterval() starts on or before Today -define "Other allergy or contraindication to a medicine in the PrEP regimen (PrEP) Observation": - Elements."Other allergy or contraindication to a medicine in the PrEP regimen (PrEP) Observation" O +define "Other allergy or contraindication to a medicine in the PrEP regimen Observation": + Elements."Other allergy or contraindication to a medicine in the PrEP regimen Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Other allergy or contraindication to a medicine in the PrEP regimen (PrEP) */ +/* End of Other allergy or contraindication to a medicine in the PrEP regimen */ /* -@dataElement: HIV.C.DE123 - Adherence counselling provided (PrEP) +@dataElement: HIV.C.DE123 - Adherence counselling provided @activity: HIV.C23 Prescribe or administer PrEP or PEP @description: Whether adherence counselling was provided */ // TODO: Replace placeholder with relevant CQL logic -define "Adherence counselling provided (PrEP)": - exists "Adherence counselling provided (PrEP) Observation" -define "Adherence counselling provided (PrEP) Observation": - Elements."Adherence counselling provided (PrEP) Observation" O +define "Adherence counselling provided C.DE123": + exists "Adherence counselling provided C.DE123 Observation" +define "Adherence counselling provided C.DE123 Observation": + Elements."Adherence counselling provided C.DE123 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Adherence counselling provided (PrEP) */ +/* End of Adherence counselling provided C.DE123 */ /* -@dataElement: HIV.C.DE124 - Date/time of follow-up appointment (PrEP) +@dataElement: HIV.C.DE124 - Date/time of follow-up appointment @activity: HIV.C24 Schedule follow-up @description: Date the client is to return for monitoring, re-supply, or any other reason */ // TODO: Replace placeholder with relevant CQL logic -define "Date/time of follow-up appointment (PrEP)": - Elements."Date/time of follow-up appointment (PrEP)" O +define "Date/time of follow-up appointment C.DE124": + Elements."Date/time of follow-up appointment C.DE124" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -define "Date/time of follow-up appointment (PrEP) Value": - "Date/time of follow-up appointment (PrEP)" O +define "Date/time of follow-up appointment C.DE124 Value": + "Date/time of follow-up appointment C.DE124" O return O.value -/* End of Date/time of follow-up appointment (PrEP) */ +/* End of Date/time of follow-up appointment C.DE124 */ /* -@dataElement: HIV.C.DE125 - Type of follow-up appointment (PrEP) +@dataElement: HIV.C.DE125 - Type of follow-up appointment @activity: HIV.C24 Schedule follow-up @description: Type of follow-up appointment for testing services */ // TODO: Replace placeholder with relevant CQL logic -define "Type of follow-up appointment (PrEP)": - exists "Type of follow-up appointment (PrEP) Observation" -define "Type of follow-up appointment (PrEP) Observation": - Elements."Type of follow-up appointment (PrEP) Observation" O +define "Type of follow-up appointment C.DE125": + exists "Type of follow-up appointment C.DE125 Observation" +define "Type of follow-up appointment C.DE125 Observation": + Elements."Type of follow-up appointment C.DE125 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Type of follow-up appointment (PrEP) */ +/* End of Type of follow-up appointment C.DE125 */ /* -@dataElement: HIV.C.DE126 - Retesting for HIV (PrEP) +@dataElement: HIV.C.DE126 - Retesting for HIV @activity: HIV.C24 Schedule follow-up @description: Retesting follow-up appointment */ // TODO: Replace placeholder with relevant CQL logic -define "Retesting for HIV (PrEP)": - exists "Retesting for HIV (PrEP) Condition" - or exists "Retesting for HIV (PrEP) Observation" -define "Retesting for HIV (PrEP) Condition": - Elements."Retesting for HIV (PrEP) Condition" C +define "Retesting for HIV C.DE126": + exists "Retesting for HIV C.DE126 Condition" + or exists "Retesting for HIV C.DE126 Observation" +define "Retesting for HIV C.DE126 Condition": + Elements."Retesting for HIV C.DE126 Condition" C where C.prevalenceInterval() starts on or before Today -define "Retesting for HIV (PrEP) Observation": - Elements."Retesting for HIV (PrEP) Observation" O +define "Retesting for HIV C.DE126 Observation": + Elements."Retesting for HIV C.DE126 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Retesting for HIV (PrEP) */ +/* End of Retesting for HIV C.DE126 */ /* -@dataElement: HIV.C.DE127 - Follow-up appointment for PrEP (PrEP) +@dataElement: HIV.C.DE127 - Follow-up appointment for PrEP @activity: HIV.C24 Schedule follow-up @description: Retesting follow-up appointment */ // TODO: Replace placeholder with relevant CQL logic -define "Follow-up appointment for PrEP (PrEP)": - exists "Follow-up appointment for PrEP (PrEP) Condition" - or exists "Follow-up appointment for PrEP (PrEP) Observation" -define "Follow-up appointment for PrEP (PrEP) Condition": - Elements."Follow-up appointment for PrEP (PrEP) Condition" C +define "Follow-up appointment for PrEP": + exists "Follow-up appointment for PrEP Condition" + or exists "Follow-up appointment for PrEP Observation" +define "Follow-up appointment for PrEP Condition": + Elements."Follow-up appointment for PrEP Condition" C where C.prevalenceInterval() starts on or before Today -define "Follow-up appointment for PrEP (PrEP) Observation": - Elements."Follow-up appointment for PrEP (PrEP) Observation" O +define "Follow-up appointment for PrEP Observation": + Elements."Follow-up appointment for PrEP Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Follow-up appointment for PrEP (PrEP) */ +/* End of Follow-up appointment for PrEP */ /* -@dataElement: HIV.C.DE128 - Other (PrEP|CDE128) +@dataElement: HIV.C.DE128 - Other @activity: HIV.C24 Schedule follow-up @description: Other reason for the follow-up appointment */ // TODO: Replace placeholder with relevant CQL logic -define "Other (PrEP|CDE128)": - exists "Other (PrEP|CDE128) Condition" - or exists "Other (PrEP|CDE128) Observation" -define "Other (PrEP|CDE128) Condition": - Elements."Other (PrEP|CDE128) Condition" C +define "Other C.DE128": + exists "Other C.DE128 Condition" + or exists "Other C.DE128 Observation" +define "Other C.DE128 Condition": + Elements."Other C.DE128 Condition" C where C.prevalenceInterval() starts on or before Today -define "Other (PrEP|CDE128) Observation": - Elements."Other (PrEP|CDE128) Observation" O +define "Other C.DE128 Observation": + Elements."Other C.DE128 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Other (PrEP|CDE128) */ +/* End of Other C.DE128 */ /* -@dataElement: HIV.C.DE131 - Prevention services offered and referrals (PrEP) +@dataElement: HIV.C.DE131 - Prevention services offered and referrals @activity: HIV.C10 Counsel on risk and prevention @description: Offer or refer to prevention services */ // TODO: Replace placeholder with relevant CQL logic -define "Prevention services offered and referrals (PrEP)": - exists "Prevention services offered and referrals (PrEP) Observation" -define "Prevention services offered and referrals (PrEP) Observation": - Elements."Prevention services offered and referrals (PrEP) Observation" O +define "Prevention services offered and referrals C.DE131": + exists "Prevention services offered and referrals C.DE131 Observation" +define "Prevention services offered and referrals C.DE131 Observation": + Elements."Prevention services offered and referrals C.DE131 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Prevention services offered and referrals (PrEP) */ +/* End of Prevention services offered and referrals C.DE131 */ /* -@dataElement: HIV.C.DE132 - Male and female condoms and condom-compatible lubricants offered (PrEP) +@dataElement: HIV.C.DE132 - Male and female condoms and condom-compatible lubricants offered @activity: HIV.C10 Counsel on risk and prevention @description: Offer male and female condoms and condom-compatible lubricants */ // TODO: Replace placeholder with relevant CQL logic -define "Male and female condoms and condom-compatible lubricants offered (PrEP)": - exists "Male and female condoms and condom-compatible lubricants offered (PrEP) Condition" - or exists "Male and female condoms and condom-compatible lubricants offered (PrEP) Observation" -define "Male and female condoms and condom-compatible lubricants offered (PrEP) Condition": - Elements."Male and female condoms and condom-compatible lubricants offered (PrEP) Condition" C +define "Male and female condoms and condom-compatible lubricants offered": + exists "Male and female condoms and condom-compatible lubricants offered Condition" + or exists "Male and female condoms and condom-compatible lubricants offered Observation" +define "Male and female condoms and condom-compatible lubricants offered Condition": + Elements."Male and female condoms and condom-compatible lubricants offered Condition" C where C.prevalenceInterval() starts on or before Today -define "Male and female condoms and condom-compatible lubricants offered (PrEP) Observation": - Elements."Male and female condoms and condom-compatible lubricants offered (PrEP) Observation" O +define "Male and female condoms and condom-compatible lubricants offered Observation": + Elements."Male and female condoms and condom-compatible lubricants offered Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Male and female condoms and condom-compatible lubricants offered (PrEP) */ +/* End of Male and female condoms and condom-compatible lubricants offered */ /* -@dataElement: HIV.C.DE133 - Voluntary medical male circumcision VMMC referral (PrEP) +@dataElement: HIV.C.DE133 - Voluntary medical male circumcision VMMC referral @activity: HIV.C10 Counsel on risk and prevention @description: Offer referral for VMMC services */ // TODO: Replace placeholder with relevant CQL logic -define "Voluntary medical male circumcision VMMC referral (PrEP)": - exists "Voluntary medical male circumcision VMMC referral (PrEP) Condition" - or exists "Voluntary medical male circumcision VMMC referral (PrEP) Observation" -define "Voluntary medical male circumcision VMMC referral (PrEP) Condition": - Elements."Voluntary medical male circumcision VMMC referral (PrEP) Condition" C +define "Voluntary medical male circumcision VMMC referral": + exists "Voluntary medical male circumcision VMMC referral Condition" + or exists "Voluntary medical male circumcision VMMC referral Observation" +define "Voluntary medical male circumcision VMMC referral Condition": + Elements."Voluntary medical male circumcision VMMC referral Condition" C where C.prevalenceInterval() starts on or before Today -define "Voluntary medical male circumcision VMMC referral (PrEP) Observation": - Elements."Voluntary medical male circumcision VMMC referral (PrEP) Observation" O +define "Voluntary medical male circumcision VMMC referral Observation": + Elements."Voluntary medical male circumcision VMMC referral Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Voluntary medical male circumcision VMMC referral (PrEP) */ +/* End of Voluntary medical male circumcision VMMC referral */ /* -@dataElement: HIV.C.DE134 - Harm reduction for people who inject drugs (PrEP) +@dataElement: HIV.C.DE134 - Harm reduction for people who inject drugs @activity: HIV.C10 Counsel on risk and prevention @description: Offer or refer to harm reduction for people who inject drugs (needle and syringe programmes, opioid substitution therapy, other drug-dependence treatment and opioid overdose prevention and management) services */ // TODO: Replace placeholder with relevant CQL logic -define "Harm reduction for people who inject drugs (PrEP)": - exists "Harm reduction for people who inject drugs (PrEP) Condition" - or exists "Harm reduction for people who inject drugs (PrEP) Observation" -define "Harm reduction for people who inject drugs (PrEP) Condition": - Elements."Harm reduction for people who inject drugs (PrEP) Condition" C +define "Harm reduction for people who inject drugs C.DE134": + exists "Harm reduction for people who inject drugs C.DE134 Condition" + or exists "Harm reduction for people who inject drugs C.DE134 Observation" +define "Harm reduction for people who inject drugs C.DE134 Condition": + Elements."Harm reduction for people who inject drugs C.DE134 Condition" C where C.prevalenceInterval() starts on or before Today -define "Harm reduction for people who inject drugs (PrEP) Observation": - Elements."Harm reduction for people who inject drugs (PrEP) Observation" O +define "Harm reduction for people who inject drugs C.DE134 Observation": + Elements."Harm reduction for people who inject drugs C.DE134 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Harm reduction for people who inject drugs (PrEP) */ +/* End of Harm reduction for people who inject drugs C.DE134 */ /* -@dataElement: HIV.C.DE135 - Behavioural interventions to support risk reduction (PrEP) +@dataElement: HIV.C.DE135 - Behavioural interventions to support risk reduction @activity: HIV.C10 Counsel on risk and prevention @description: Offer or refer to services for behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations */ // TODO: Replace placeholder with relevant CQL logic -define "Behavioural interventions to support risk reduction (PrEP)": - exists "Behavioural interventions to support risk reduction (PrEP) Condition" - or exists "Behavioural interventions to support risk reduction (PrEP) Observation" -define "Behavioural interventions to support risk reduction (PrEP) Condition": - Elements."Behavioural interventions to support risk reduction (PrEP) Condition" C +define "Behavioural interventions to support risk reduction C.DE135": + exists "Behavioural interventions to support risk reduction C.DE135 Condition" + or exists "Behavioural interventions to support risk reduction C.DE135 Observation" +define "Behavioural interventions to support risk reduction C.DE135 Condition": + Elements."Behavioural interventions to support risk reduction C.DE135 Condition" C where C.prevalenceInterval() starts on or before Today -define "Behavioural interventions to support risk reduction (PrEP) Observation": - Elements."Behavioural interventions to support risk reduction (PrEP) Observation" O +define "Behavioural interventions to support risk reduction C.DE135 Observation": + Elements."Behavioural interventions to support risk reduction C.DE135 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Behavioural interventions to support risk reduction (PrEP) */ +/* End of Behavioural interventions to support risk reduction C.DE135 */ /* -@dataElement: HIV.C.DE149 - Sexual and reproductive health integrated services (PrEP) +@dataElement: HIV.C.DE149 - Sexual and reproductive health integrated services @activity: HIV.C10 Counsel on risk and prevention @description: Offer or refer to sexual and reproductive health services */ // TODO: Replace placeholder with relevant CQL logic -define "Sexual and reproductive health integrated services (PrEP)": - exists "Sexual and reproductive health integrated services (PrEP) Observation" -define "Sexual and reproductive health integrated services (PrEP) Observation": - Elements."Sexual and reproductive health integrated services (PrEP) Observation" O +define "Sexual and reproductive health integrated services C.DE149": + exists "Sexual and reproductive health integrated services C.DE149 Observation" +define "Sexual and reproductive health integrated services C.DE149 Observation": + Elements."Sexual and reproductive health integrated services C.DE149 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Sexual and reproductive health integrated services (PrEP) */ +/* End of Sexual and reproductive health integrated services C.DE149 */ /* -@dataElement: HIV.C.DE150 - Contraception and family planning (PrEP) +@dataElement: HIV.C.DE150 - Contraception and family planning @activity: HIV.C10 Counsel on risk and prevention @description: Offer contraception and family planning services */ // TODO: Replace placeholder with relevant CQL logic -define "Contraception and family planning (PrEP)": - exists "Contraception and family planning (PrEP) Condition" - or exists "Contraception and family planning (PrEP) Observation" -define "Contraception and family planning (PrEP) Condition": - Elements."Contraception and family planning (PrEP) Condition" C +define "Contraception and family planning C.DE150": + exists "Contraception and family planning C.DE150 Condition" + or exists "Contraception and family planning C.DE150 Observation" +define "Contraception and family planning C.DE150 Condition": + Elements."Contraception and family planning C.DE150 Condition" C where C.prevalenceInterval() starts on or before Today -define "Contraception and family planning (PrEP) Observation": - Elements."Contraception and family planning (PrEP) Observation" O +define "Contraception and family planning C.DE150 Observation": + Elements."Contraception and family planning C.DE150 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Contraception and family planning (PrEP) */ +/* End of Contraception and family planning C.DE150 */ /* -@dataElement: HIV.C.DE151 - Check pregnancy status (PrEP) +@dataElement: HIV.C.DE151 - Check pregnancy status @activity: HIV.C10 Counsel on risk and prevention @description: Check woman's pregnancy status */ // TODO: Replace placeholder with relevant CQL logic -define "Check pregnancy status (PrEP)": - exists "Check pregnancy status (PrEP) Condition" - or exists "Check pregnancy status (PrEP) Observation" -define "Check pregnancy status (PrEP) Condition": - Elements."Check pregnancy status (PrEP) Condition" C +define "Check pregnancy status C.DE151": + exists "Check pregnancy status C.DE151 Condition" + or exists "Check pregnancy status C.DE151 Observation" +define "Check pregnancy status C.DE151 Condition": + Elements."Check pregnancy status C.DE151 Condition" C where C.prevalenceInterval() starts on or before Today -define "Check pregnancy status (PrEP) Observation": - Elements."Check pregnancy status (PrEP) Observation" O +define "Check pregnancy status C.DE151 Observation": + Elements."Check pregnancy status C.DE151 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Check pregnancy status (PrEP) */ +/* End of Check pregnancy status C.DE151 */ /* -@dataElement: HIV.C.DE152 - Prevent mother-to-child transmission (PrEP) +@dataElement: HIV.C.DE152 - Prevent mother-to-child transmission @activity: HIV.C10 Counsel on risk and prevention @description: Offer services (counselling) to help prevent of mother-to-child transmission */ // TODO: Replace placeholder with relevant CQL logic -define "Prevent mother-to-child transmission (PrEP)": - exists "Prevent mother-to-child transmission (PrEP) Condition" - or exists "Prevent mother-to-child transmission (PrEP) Observation" -define "Prevent mother-to-child transmission (PrEP) Condition": - Elements."Prevent mother-to-child transmission (PrEP) Condition" C +define "Prevent mother-to-child transmission": + exists "Prevent mother-to-child transmission Condition" + or exists "Prevent mother-to-child transmission Observation" +define "Prevent mother-to-child transmission Condition": + Elements."Prevent mother-to-child transmission Condition" C where C.prevalenceInterval() starts on or before Today -define "Prevent mother-to-child transmission (PrEP) Observation": - Elements."Prevent mother-to-child transmission (PrEP) Observation" O +define "Prevent mother-to-child transmission Observation": + Elements."Prevent mother-to-child transmission Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Prevent mother-to-child transmission (PrEP) */ +/* End of Prevent mother-to-child transmission */ /* -@dataElement: HIV.C.DE153 - Cervical cancer screening and treatment (PrEP) +@dataElement: HIV.C.DE153 - Cervical cancer screening and treatment @activity: HIV.C10 Counsel on risk and prevention @description: Offer cervical cancer screening and treatment services */ // TODO: Replace placeholder with relevant CQL logic -define "Cervical cancer screening and treatment (PrEP)": - exists "Cervical cancer screening and treatment (PrEP) Condition" - or exists "Cervical cancer screening and treatment (PrEP) Observation" -define "Cervical cancer screening and treatment (PrEP) Condition": - Elements."Cervical cancer screening and treatment (PrEP) Condition" C +define "Cervical cancer screening and treatment": + exists "Cervical cancer screening and treatment Condition" + or exists "Cervical cancer screening and treatment Observation" +define "Cervical cancer screening and treatment Condition": + Elements."Cervical cancer screening and treatment Condition" C where C.prevalenceInterval() starts on or before Today -define "Cervical cancer screening and treatment (PrEP) Observation": - Elements."Cervical cancer screening and treatment (PrEP) Observation" O +define "Cervical cancer screening and treatment Observation": + Elements."Cervical cancer screening and treatment Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Cervical cancer screening and treatment (PrEP) */ +/* End of Cervical cancer screening and treatment */ /* -@dataElement: HIV.C.DE154 - Anal cancer screening for men who have sex with men (PrEP) +@dataElement: HIV.C.DE154 - Anal cancer screening for men who have sex with men @activity: HIV.C10 Counsel on risk and prevention @description: Offer anal cancer screening (for men who have sex with men) services */ // TODO: Replace placeholder with relevant CQL logic -define "Anal cancer screening for men who have sex with men (PrEP)": - exists "Anal cancer screening for men who have sex with men (PrEP) Condition" - or exists "Anal cancer screening for men who have sex with men (PrEP) Observation" -define "Anal cancer screening for men who have sex with men (PrEP) Condition": - Elements."Anal cancer screening for men who have sex with men (PrEP) Condition" C +define "Anal cancer screening for men who have sex with men C.DE154": + exists "Anal cancer screening for men who have sex with men C.DE154 Condition" + or exists "Anal cancer screening for men who have sex with men C.DE154 Observation" +define "Anal cancer screening for men who have sex with men C.DE154 Condition": + Elements."Anal cancer screening for men who have sex with men C.DE154 Condition" C where C.prevalenceInterval() starts on or before Today -define "Anal cancer screening for men who have sex with men (PrEP) Observation": - Elements."Anal cancer screening for men who have sex with men (PrEP) Observation" O +define "Anal cancer screening for men who have sex with men C.DE154 Observation": + Elements."Anal cancer screening for men who have sex with men C.DE154 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Anal cancer screening for men who have sex with men (PrEP) */ +/* End of Anal cancer screening for men who have sex with men C.DE154 */ /* -@dataElement: HIV.C.DE155 - STI testing and treatment (PrEP) +@dataElement: HIV.C.DE155 - STI testing and treatment @activity: HIV.C10 Counsel on risk and prevention @description: Offer STI testing and treatment services */ // TODO: Replace placeholder with relevant CQL logic -define "STI testing and treatment (PrEP)": - exists "STI testing and treatment (PrEP) Condition" - or exists "STI testing and treatment (PrEP) Observation" -define "STI testing and treatment (PrEP) Condition": - Elements."STI testing and treatment (PrEP) Condition" C +define "STI testing and treatment C.DE155": + exists "STI testing and treatment C.DE155 Condition" + or exists "STI testing and treatment C.DE155 Observation" +define "STI testing and treatment C.DE155 Condition": + Elements."STI testing and treatment C.DE155 Condition" C where C.prevalenceInterval() starts on or before Today -define "STI testing and treatment (PrEP) Observation": - Elements."STI testing and treatment (PrEP) Observation" O +define "STI testing and treatment C.DE155 Observation": + Elements."STI testing and treatment C.DE155 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of STI testing and treatment (PrEP) */ +/* End of STI testing and treatment C.DE155 */ /* -@dataElement: HIV.C.DE156 - HIV testing for partners and biological children (PrEP) +@dataElement: HIV.C.DE156 - HIV testing for partners and biological children @activity: HIV.C10 Counsel on risk and prevention @description: Offer testing for all partners and biological children of positive cases (includes partner services and index case testing), as well as partners and social contacts of people from key populations, where appropriate */ // TODO: Replace placeholder with relevant CQL logic -define "HIV testing for partners and biological children (PrEP)": - exists "HIV testing for partners and biological children (PrEP) Condition" - or exists "HIV testing for partners and biological children (PrEP) Observation" -define "HIV testing for partners and biological children (PrEP) Condition": - Elements."HIV testing for partners and biological children (PrEP) Condition" C +define "HIV testing for partners and biological children C.DE156": + exists "HIV testing for partners and biological children C.DE156 Condition" + or exists "HIV testing for partners and biological children C.DE156 Observation" +define "HIV testing for partners and biological children C.DE156 Condition": + Elements."HIV testing for partners and biological children C.DE156 Condition" C where C.prevalenceInterval() starts on or before Today -define "HIV testing for partners and biological children (PrEP) Observation": - Elements."HIV testing for partners and biological children (PrEP) Observation" O +define "HIV testing for partners and biological children C.DE156 Observation": + Elements."HIV testing for partners and biological children C.DE156 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of HIV testing for partners and biological children (PrEP) */ +/* End of HIV testing for partners and biological children C.DE156 */ /* -@dataElement: HIV.C.DE157 - Offer other clinical services (PrEP) +@dataElement: HIV.C.DE157 - Offer other clinical services @activity: HIV.C10 Counsel on risk and prevention @description: Other clinical services offered or referrals given to the client */ // TODO: Replace placeholder with relevant CQL logic -define "Offer other clinical services (PrEP)": - exists "Offer other clinical services (PrEP) Observation" -define "Offer other clinical services (PrEP) Observation": - Elements."Offer other clinical services (PrEP) Observation" O +define "Offer other clinical services C.DE157": + exists "Offer other clinical services C.DE157 Observation" +define "Offer other clinical services C.DE157 Observation": + Elements."Offer other clinical services C.DE157 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Offer other clinical services (PrEP) */ +/* End of Offer other clinical services C.DE157 */ /* -@dataElement: HIV.C.DE158 - Assessment and provision of vaccinations (PrEP) +@dataElement: HIV.C.DE158 - Assessment and provision of vaccinations @activity: HIV.C10 Counsel on risk and prevention @description: Assessment and provision of vaccinations, such as for people from key populations, pregnant women and infants; and, where appropriate, tetanus vaccination for adolescent boys and men receiving VMMC */ // TODO: Replace placeholder with relevant CQL logic -define "Assessment and provision of vaccinations (PrEP)": - exists "Assessment and provision of vaccinations (PrEP) Condition" - or exists "Assessment and provision of vaccinations (PrEP) Observation" -define "Assessment and provision of vaccinations (PrEP) Condition": - Elements."Assessment and provision of vaccinations (PrEP) Condition" C +define "Assessment and provision of vaccinations C.DE158": + exists "Assessment and provision of vaccinations C.DE158 Condition" + or exists "Assessment and provision of vaccinations C.DE158 Observation" +define "Assessment and provision of vaccinations C.DE158 Condition": + Elements."Assessment and provision of vaccinations C.DE158 Condition" C where C.prevalenceInterval() starts on or before Today -define "Assessment and provision of vaccinations (PrEP) Observation": - Elements."Assessment and provision of vaccinations (PrEP) Observation" O +define "Assessment and provision of vaccinations C.DE158 Observation": + Elements."Assessment and provision of vaccinations C.DE158 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Assessment and provision of vaccinations (PrEP) */ +/* End of Assessment and provision of vaccinations C.DE158 */ /* -@dataElement: HIV.C.DE159 - Hepatitis B virus HBV and hepatitis C virus HCV testing and treatment (PrEP) +@dataElement: HIV.C.DE159 - Hepatitis B virus HBV and hepatitis C virus HCV testing and treatment @activity: HIV.C10 Counsel on risk and prevention @description: Offer or refer for HBV testing and vaccination and HCV testing and treatment */ // TODO: Replace placeholder with relevant CQL logic -define "Hepatitis B virus HBV and hepatitis C virus HCV testing and treatment (PrEP)": - exists "Hepatitis B virus HBV and hepatitis C virus HCV testing and treatment (PrEP) Condition" - or exists "Hepatitis B virus HBV and hepatitis C virus HCV testing and treatment (PrEP) Observation" -define "Hepatitis B virus HBV and hepatitis C virus HCV testing and treatment (PrEP) Condition": - Elements."Hepatitis B virus HBV and hepatitis C virus HCV testing and treatment (PrEP) Condition" C +define "Hepatitis B virus HBV and hepatitis C virus HCV testing and treatment": + exists "Hepatitis B virus HBV and hepatitis C virus HCV testing and treatment Condition" + or exists "Hepatitis B virus HBV and hepatitis C virus HCV testing and treatment Observation" +define "Hepatitis B virus HBV and hepatitis C virus HCV testing and treatment Condition": + Elements."Hepatitis B virus HBV and hepatitis C virus HCV testing and treatment Condition" C where C.prevalenceInterval() starts on or before Today -define "Hepatitis B virus HBV and hepatitis C virus HCV testing and treatment (PrEP) Observation": - Elements."Hepatitis B virus HBV and hepatitis C virus HCV testing and treatment (PrEP) Observation" O +define "Hepatitis B virus HBV and hepatitis C virus HCV testing and treatment Observation": + Elements."Hepatitis B virus HBV and hepatitis C virus HCV testing and treatment Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Hepatitis B virus HBV and hepatitis C virus HCV testing and treatment (PrEP) */ +/* End of Hepatitis B virus HBV and hepatitis C virus HCV testing and treatment */ /* -@dataElement: HIV.C.DE160 - Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia (PrEP) +@dataElement: HIV.C.DE160 - Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia @activity: HIV.C10 Counsel on risk and prevention @description: Offer or refer for co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia */ // TODO: Replace placeholder with relevant CQL logic -define "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia (PrEP)": - exists "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia (PrEP) Condition" - or exists "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia (PrEP) Observation" -define "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia (PrEP) Condition": - Elements."Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia (PrEP) Condition" C +define "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia C.DE160": + exists "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia C.DE160 Condition" + or exists "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia C.DE160 Observation" +define "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia C.DE160 Condition": + Elements."Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia C.DE160 Condition" C where C.prevalenceInterval() starts on or before Today -define "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia (PrEP) Observation": - Elements."Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia (PrEP) Observation" O +define "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia C.DE160 Observation": + Elements."Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia C.DE160 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia (PrEP) */ +/* End of Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia C.DE160 */ /* -@dataElement: HIV.C.DE161 - Intensified TB case finding and linkage to TB treatment (PrEP) +@dataElement: HIV.C.DE161 - Intensified TB case finding and linkage to TB treatment @activity: HIV.C10 Counsel on risk and prevention @description: Offer or refer for TB case finding and linkage to TB treatment */ // TODO: Replace placeholder with relevant CQL logic -define "Intensified TB case finding and linkage to TB treatment (PrEP)": - exists "Intensified TB case finding and linkage to TB treatment (PrEP) Condition" - or exists "Intensified TB case finding and linkage to TB treatment (PrEP) Observation" -define "Intensified TB case finding and linkage to TB treatment (PrEP) Condition": - Elements."Intensified TB case finding and linkage to TB treatment (PrEP) Condition" C +define "Intensified TB case finding and linkage to TB treatment C.DE161": + exists "Intensified TB case finding and linkage to TB treatment C.DE161 Condition" + or exists "Intensified TB case finding and linkage to TB treatment C.DE161 Observation" +define "Intensified TB case finding and linkage to TB treatment C.DE161 Condition": + Elements."Intensified TB case finding and linkage to TB treatment C.DE161 Condition" C where C.prevalenceInterval() starts on or before Today -define "Intensified TB case finding and linkage to TB treatment (PrEP) Observation": - Elements."Intensified TB case finding and linkage to TB treatment (PrEP) Observation" O +define "Intensified TB case finding and linkage to TB treatment C.DE161 Observation": + Elements."Intensified TB case finding and linkage to TB treatment C.DE161 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Intensified TB case finding and linkage to TB treatment (PrEP) */ +/* End of Intensified TB case finding and linkage to TB treatment C.DE161 */ /* -@dataElement: HIV.C.DE162 - Provision of isoniazid preventive therapy if person does not have TB (PrEP) +@dataElement: HIV.C.DE162 - Provision of isoniazid preventive therapy if person does not have TB @activity: HIV.C10 Counsel on risk and prevention @description: Offer or refer for provision of isoniazid preventive therapy if person does not have TB */ // TODO: Replace placeholder with relevant CQL logic -define "Provision of isoniazid preventive therapy if person does not have TB (PrEP)": - exists "Provision of isoniazid preventive therapy if person does not have TB (PrEP) Condition" - or exists "Provision of isoniazid preventive therapy if person does not have TB (PrEP) Observation" -define "Provision of isoniazid preventive therapy if person does not have TB (PrEP) Condition": - Elements."Provision of isoniazid preventive therapy if person does not have TB (PrEP) Condition" C +define "Provision of isoniazid preventive therapy if person does not have TB C.DE162": + exists "Provision of isoniazid preventive therapy if person does not have TB C.DE162 Condition" + or exists "Provision of isoniazid preventive therapy if person does not have TB C.DE162 Observation" +define "Provision of isoniazid preventive therapy if person does not have TB C.DE162 Condition": + Elements."Provision of isoniazid preventive therapy if person does not have TB C.DE162 Condition" C where C.prevalenceInterval() starts on or before Today -define "Provision of isoniazid preventive therapy if person does not have TB (PrEP) Observation": - Elements."Provision of isoniazid preventive therapy if person does not have TB (PrEP) Observation" O +define "Provision of isoniazid preventive therapy if person does not have TB C.DE162 Observation": + Elements."Provision of isoniazid preventive therapy if person does not have TB C.DE162 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Provision of isoniazid preventive therapy if person does not have TB (PrEP) */ +/* End of Provision of isoniazid preventive therapy if person does not have TB C.DE162 */ /* -@dataElement: HIV.C.DE163 - Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (PrEP) +@dataElement: HIV.C.DE163 - Malaria prevention such as bed nets and prophylaxis, depending on epidemiology @activity: HIV.C10 Counsel on risk and prevention @description: Offer or refer for malaria prevention (such as bed nets and prophylaxis), depending on epidemiology */ // TODO: Replace placeholder with relevant CQL logic -define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (PrEP)": - exists "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (PrEP) Condition" - or exists "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (PrEP) Observation" -define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (PrEP) Condition": - Elements."Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (PrEP) Condition" C +define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology C.DE163": + exists "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology C.DE163 Condition" + or exists "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology C.DE163 Observation" +define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology C.DE163 Condition": + Elements."Malaria prevention such as bed nets and prophylaxis, depending on epidemiology C.DE163 Condition" C where C.prevalenceInterval() starts on or before Today -define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (PrEP) Observation": - Elements."Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (PrEP) Observation" O +define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology C.DE163 Observation": + Elements."Malaria prevention such as bed nets and prophylaxis, depending on epidemiology C.DE163 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (PrEP) */ +/* End of Malaria prevention such as bed nets and prophylaxis, depending on epidemiology C.DE163 */ /* -@dataElement: HIV.C.DE164 - Other support services (PrEP) +@dataElement: HIV.C.DE164 - Other support services @activity: HIV.C10 Counsel on risk and prevention @description: Offer or refer for other support services */ // TODO: Replace placeholder with relevant CQL logic -define "Other support services (PrEP)": - exists "Other support services (PrEP) Observation" -define "Other support services (PrEP) Observation": - Elements."Other support services (PrEP) Observation" O +define "Other support services C.DE164": + exists "Other support services C.DE164 Observation" +define "Other support services C.DE164 Observation": + Elements."Other support services C.DE164 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Other support services (PrEP) */ +/* End of Other support services C.DE164 */ /* -@dataElement: HIV.C.DE165 - Mental health services (PrEP) +@dataElement: HIV.C.DE165 - Mental health services @activity: HIV.C10 Counsel on risk and prevention @description: Offer or refer for mental health services */ // TODO: Replace placeholder with relevant CQL logic -define "Mental health services (PrEP)": - exists "Mental health services (PrEP) Condition" - or exists "Mental health services (PrEP) Observation" -define "Mental health services (PrEP) Condition": - Elements."Mental health services (PrEP) Condition" C +define "Mental health services C.DE165": + exists "Mental health services C.DE165 Condition" + or exists "Mental health services C.DE165 Observation" +define "Mental health services C.DE165 Condition": + Elements."Mental health services C.DE165 Condition" C where C.prevalenceInterval() starts on or before Today -define "Mental health services (PrEP) Observation": - Elements."Mental health services (PrEP) Observation" O +define "Mental health services C.DE165 Observation": + Elements."Mental health services C.DE165 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Mental health services (PrEP) */ +/* End of Mental health services C.DE165 */ /* -@dataElement: HIV.C.DE166 - Psychosocial counselling, support and treatment adherence counselling (PrEP) +@dataElement: HIV.C.DE166 - Psychosocial counselling, support and treatment adherence counselling @activity: HIV.C10 Counsel on risk and prevention @description: Offer or refer for psychosocial counselling, support and treatment adherence counselling */ // TODO: Replace placeholder with relevant CQL logic -define "Psychosocial counselling, support and treatment adherence counselling (PrEP)": - exists "Psychosocial counselling, support and treatment adherence counselling (PrEP) Condition" - or exists "Psychosocial counselling, support and treatment adherence counselling (PrEP) Observation" -define "Psychosocial counselling, support and treatment adherence counselling (PrEP) Condition": - Elements."Psychosocial counselling, support and treatment adherence counselling (PrEP) Condition" C +define "Psychosocial counselling, support and treatment adherence counselling C.DE166": + exists "Psychosocial counselling, support and treatment adherence counselling C.DE166 Condition" + or exists "Psychosocial counselling, support and treatment adherence counselling C.DE166 Observation" +define "Psychosocial counselling, support and treatment adherence counselling C.DE166 Condition": + Elements."Psychosocial counselling, support and treatment adherence counselling C.DE166 Condition" C where C.prevalenceInterval() starts on or before Today -define "Psychosocial counselling, support and treatment adherence counselling (PrEP) Observation": - Elements."Psychosocial counselling, support and treatment adherence counselling (PrEP) Observation" O +define "Psychosocial counselling, support and treatment adherence counselling C.DE166 Observation": + Elements."Psychosocial counselling, support and treatment adherence counselling C.DE166 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Psychosocial counselling, support and treatment adherence counselling (PrEP) */ +/* End of Psychosocial counselling, support and treatment adherence counselling C.DE166 */ /* -@dataElement: HIV.C.DE167 - Support for disclosure and partner services (PrEP) +@dataElement: HIV.C.DE167 - Support for disclosure and partner services @activity: HIV.C10 Counsel on risk and prevention @description: Offer or refer for support for disclosure and partner services */ // TODO: Replace placeholder with relevant CQL logic -define "Support for disclosure and partner services (PrEP)": - exists "Support for disclosure and partner services (PrEP) Condition" - or exists "Support for disclosure and partner services (PrEP) Observation" -define "Support for disclosure and partner services (PrEP) Condition": - Elements."Support for disclosure and partner services (PrEP) Condition" C +define "Support for disclosure and partner services C.DE167": + exists "Support for disclosure and partner services C.DE167 Condition" + or exists "Support for disclosure and partner services C.DE167 Observation" +define "Support for disclosure and partner services C.DE167 Condition": + Elements."Support for disclosure and partner services C.DE167 Condition" C where C.prevalenceInterval() starts on or before Today -define "Support for disclosure and partner services (PrEP) Observation": - Elements."Support for disclosure and partner services (PrEP) Observation" O +define "Support for disclosure and partner services C.DE167 Observation": + Elements."Support for disclosure and partner services C.DE167 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Support for disclosure and partner services (PrEP) */ +/* End of Support for disclosure and partner services C.DE167 */ /* -@dataElement: HIV.C.DE168 - Legal and social services (PrEP) +@dataElement: HIV.C.DE168 - Legal and social services @activity: HIV.C10 Counsel on risk and prevention @description: Offer or refer for legal and social services */ // TODO: Replace placeholder with relevant CQL logic -define "Legal and social services (PrEP)": - exists "Legal and social services (PrEP) Condition" - or exists "Legal and social services (PrEP) Observation" -define "Legal and social services (PrEP) Condition": - Elements."Legal and social services (PrEP) Condition" C +define "Legal and social services C.DE168": + exists "Legal and social services C.DE168 Condition" + or exists "Legal and social services C.DE168 Observation" +define "Legal and social services C.DE168 Condition": + Elements."Legal and social services C.DE168 Condition" C where C.prevalenceInterval() starts on or before Today -define "Legal and social services (PrEP) Observation": - Elements."Legal and social services (PrEP) Observation" O +define "Legal and social services C.DE168 Observation": + Elements."Legal and social services C.DE168 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Legal and social services (PrEP) */ +/* End of Legal and social services C.DE168 */ /* -@dataElement: HIV.C.DE169 - Services for responding to violence against women (PrEP) +@dataElement: HIV.C.DE169 - Services for responding to violence against women @activity: HIV.C10 Counsel on risk and prevention @description: Offer or refer for services for responding to violence against women, including first-line support and psychosocial support, post-rape care and other support services including shelters, legal services and women and child protection services */ // TODO: Replace placeholder with relevant CQL logic -define "Services for responding to violence against women (PrEP)": - exists "Services for responding to violence against women (PrEP) Condition" - or exists "Services for responding to violence against women (PrEP) Observation" -define "Services for responding to violence against women (PrEP) Condition": - Elements."Services for responding to violence against women (PrEP) Condition" C +define "Services for responding to violence against women C.DE169": + exists "Services for responding to violence against women C.DE169 Condition" + or exists "Services for responding to violence against women C.DE169 Observation" +define "Services for responding to violence against women C.DE169 Condition": + Elements."Services for responding to violence against women C.DE169 Condition" C where C.prevalenceInterval() starts on or before Today -define "Services for responding to violence against women (PrEP) Observation": - Elements."Services for responding to violence against women (PrEP) Observation" O +define "Services for responding to violence against women C.DE169 Observation": + Elements."Services for responding to violence against women C.DE169 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Services for responding to violence against women (PrEP) */ +/* End of Services for responding to violence against women C.DE169 */ /* -@dataElement: HIV.D.DE1 - Reason for visit (Care) +@dataElement: HIV.D.DE1 - Reason for visit @activity: HIV.D1 Determine reason for visit @description: Whether visit was scheduled or unscheduled, clinical only, or for ARV drug pick-up */ // TODO: Replace placeholder with relevant CQL logic -define "Reason for visit (Care)": - exists "Reason for visit (Care) Observation" -define "Reason for visit (Care) Observation": - Elements."Reason for visit (Care) Observation" O +define "Reason for visit D.DE1": + exists "Reason for visit D.DE1 Observation" +define "Reason for visit D.DE1 Observation": + Elements."Reason for visit D.DE1 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Reason for visit (Care) */ +/* End of Reason for visit D.DE1 */ /* -@dataElement: HIV.D.DE2 - First clinical visit (Care) +@dataElement: HIV.D.DE2 - First clinical visit @activity: HIV.D1 Determine reason for visit @description: The client's first appointment for clinical care by a provider at the facility */ // TODO: Replace placeholder with relevant CQL logic -define "First clinical visit (Care)": - exists "First clinical visit (Care) Condition" - or exists "First clinical visit (Care) Observation" -define "First clinical visit (Care) Condition": - Elements."First clinical visit (Care) Condition" C +define "First clinical visit": + exists "First clinical visit Condition" + or exists "First clinical visit Observation" +define "First clinical visit Condition": + Elements."First clinical visit Condition" C where C.prevalenceInterval() starts on or before Today -define "First clinical visit (Care) Observation": - Elements."First clinical visit (Care) Observation" O +define "First clinical visit Observation": + Elements."First clinical visit Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of First clinical visit (Care) */ +/* End of First clinical visit */ /* -@dataElement: HIV.D.DE3 - Clinical visit (Care|DDE3) +@dataElement: HIV.D.DE3 - Clinical visit @activity: HIV.D1 Determine reason for visit @description: Appointment for clinical care by a provider */ // TODO: Replace placeholder with relevant CQL logic -define "Clinical visit (Care|DDE3)": - exists "Clinical visit (Care|DDE3) Condition" - or exists "Clinical visit (Care|DDE3) Observation" -define "Clinical visit (Care|DDE3) Condition": - Elements."Clinical visit (Care|DDE3) Condition" C +define "Clinical visit D.DE3": + exists "Clinical visit D.DE3 Condition" + or exists "Clinical visit D.DE3 Observation" +define "Clinical visit D.DE3 Condition": + Elements."Clinical visit D.DE3 Condition" C where C.prevalenceInterval() starts on or before Today -define "Clinical visit (Care|DDE3) Observation": - Elements."Clinical visit (Care|DDE3) Observation" O +define "Clinical visit D.DE3 Observation": + Elements."Clinical visit D.DE3 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Clinical visit (Care|DDE3) */ +/* End of Clinical visit D.DE3 */ /* -@dataElement: HIV.D.DE4 - ART initiation (Care) +@dataElement: HIV.D.DE4 - ART initiation @activity: HIV.D1 Determine reason for visit @description: Appointment for initiation of ART */ // TODO: Replace placeholder with relevant CQL logic -define "ART initiation (Care)": - exists "ART initiation (Care) Condition" - or exists "ART initiation (Care) Observation" -define "ART initiation (Care) Condition": - Elements."ART initiation (Care) Condition" C +define "ART initiation": + exists "ART initiation Condition" + or exists "ART initiation Observation" +define "ART initiation Condition": + Elements."ART initiation Condition" C where C.prevalenceInterval() starts on or before Today -define "ART initiation (Care) Observation": - Elements."ART initiation (Care) Observation" O +define "ART initiation Observation": + Elements."ART initiation Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of ART initiation (Care) */ +/* End of ART initiation */ /* -@dataElement: HIV.D.DE5 - ART drug pick up (Care) +@dataElement: HIV.D.DE5 - ART drug pick up @activity: HIV.D1 Determine reason for visit @description: Appointment for an antiretroviral drug pick up */ // TODO: Replace placeholder with relevant CQL logic -define "ART drug pick up (Care)": - exists "ART drug pick up (Care) Condition" - or exists "ART drug pick up (Care) Observation" -define "ART drug pick up (Care) Condition": - Elements."ART drug pick up (Care) Condition" C +define "ART drug pick up": + exists "ART drug pick up Condition" + or exists "ART drug pick up Observation" +define "ART drug pick up Condition": + Elements."ART drug pick up Condition" C where C.prevalenceInterval() starts on or before Today -define "ART drug pick up (Care) Observation": - Elements."ART drug pick up (Care) Observation" O +define "ART drug pick up Observation": + Elements."ART drug pick up Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of ART drug pick up (Care) */ +/* End of ART drug pick up */ /* -@dataElement: HIV.D.DE6 - Issues and concerns (Care) +@dataElement: HIV.D.DE6 - Issues and concerns @activity: HIV.D1 Determine reason for visit @description: Visit to address issues and concerns */ // TODO: Replace placeholder with relevant CQL logic -define "Issues and concerns (Care)": - exists "Issues and concerns (Care) Condition" - or exists "Issues and concerns (Care) Observation" -define "Issues and concerns (Care) Condition": - Elements."Issues and concerns (Care) Condition" C +define "Issues and concerns": + exists "Issues and concerns Condition" + or exists "Issues and concerns Observation" +define "Issues and concerns Condition": + Elements."Issues and concerns Condition" C where C.prevalenceInterval() starts on or before Today -define "Issues and concerns (Care) Observation": - Elements."Issues and concerns (Care) Observation" O +define "Issues and concerns Observation": + Elements."Issues and concerns Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Issues and concerns (Care) */ +/* End of Issues and concerns */ /* -@dataElement: HIV.D.DE7 - Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer (Care|DDE7) +@dataElement: HIV.D.DE7 - Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer @activity: HIV.D1 Determine reason for visit @description: Appointment for a post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer */ // TODO: Replace placeholder with relevant CQL logic -define "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer (Care|DDE7)": - exists "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer (Care|DDE7) Condition" - or exists "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer (Care|DDE7) Observation" -define "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer (Care|DDE7) Condition": - Elements."Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer (Care|DDE7) Condition" C +define "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer D.DE7": + exists "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer D.DE7 Condition" + or exists "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer D.DE7 Observation" +define "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer D.DE7 Condition": + Elements."Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer D.DE7 Condition" C where C.prevalenceInterval() starts on or before Today -define "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer (Care|DDE7) Observation": - Elements."Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer (Care|DDE7) Observation" O +define "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer D.DE7 Observation": + Elements."Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer D.DE7 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer (Care|DDE7) */ +/* End of Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer D.DE7 */ /* -@dataElement: HIV.D.DE9 - Body temperature (Care) +@dataElement: HIV.D.DE9 - Body temperature @activity: HIV.D2 Take vital signs @description: Temperature of the client in Celsius */ // TODO: Replace placeholder with relevant CQL logic -define "Body temperature (Care)": - Elements."Body temperature (Care)" O +define "Body temperature": + Elements."Body temperature" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -define "Body temperature (Care) Value": - "Body temperature (Care)" O +define "Body temperature Value": + "Body temperature" O return O.value -/* End of Body temperature (Care) */ +/* End of Body temperature */ /* -@dataElement: HIV.D.DE13 - Body weight (Care) +@dataElement: HIV.D.DE13 - Body weight @activity: HIV.D2 Take vital signs @description: The client's current weight in kilograms */ // TODO: Replace placeholder with relevant CQL logic -define "Body weight (Care)": - Elements."Body weight (Care)" O +define "Body weight": + Elements."Body weight" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -define "Body weight (Care) Value": - "Body weight (Care)" O +define "Body weight Value": + "Body weight" O return O.value -/* End of Body weight (Care) */ +/* End of Body weight */ /* -@dataElement: HIV.D.DE17 - Signs of serious illness (Care) +@dataElement: HIV.D.DE17 - Signs of serious illness @activity: HIV.D3 Check for signs of serious illness @description: Signs that may indicate the client has a serious illness and needs triage or an emergency referral */ // TODO: Replace placeholder with relevant CQL logic -define "Signs of serious illness (Care)": - exists "Signs of serious illness (Care) Observation" -define "Signs of serious illness (Care) Observation": - Elements."Signs of serious illness (Care) Observation" O +define "Signs of serious illness": + exists "Signs of serious illness Observation" +define "Signs of serious illness Observation": + Elements."Signs of serious illness Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Signs of serious illness (Care) */ +/* End of Signs of serious illness */ /* -@dataElement: HIV.D.DE18 - Fever of 39 C or greater (Care) +@dataElement: HIV.D.DE18 - Fever of 39 C or greater @activity: HIV.D3 Check for signs of serious illness @description: Client has a fever with a measured temperature of 102.2 F/39 C or greater */ // TODO: Replace placeholder with relevant CQL logic -define "Fever of 39 C or greater (Care)": - exists "Fever of 39 C or greater (Care) Condition" - or exists "Fever of 39 C or greater (Care) Observation" -define "Fever of 39 C or greater (Care) Condition": - Elements."Fever of 39 C or greater (Care) Condition" C +define "Fever of 39 C or greater": + exists "Fever of 39 C or greater Condition" + or exists "Fever of 39 C or greater Observation" +define "Fever of 39 C or greater Condition": + Elements."Fever of 39 C or greater Condition" C where C.prevalenceInterval() starts on or before Today -define "Fever of 39 C or greater (Care) Observation": - Elements."Fever of 39 C or greater (Care) Observation" O +define "Fever of 39 C or greater Observation": + Elements."Fever of 39 C or greater Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Fever of 39 C or greater (Care) */ +/* End of Fever of 39 C or greater */ /* -@dataElement: HIV.D.DE19 - Tachycardia (Care) +@dataElement: HIV.D.DE19 - Tachycardia @activity: HIV.D3 Check for signs of serious illness @description: Heart rate above a rate per minute based on age */ // TODO: Replace placeholder with relevant CQL logic -define "Tachycardia (Care)": - exists "Tachycardia (Care) Condition" - or exists "Tachycardia (Care) Observation" -define "Tachycardia (Care) Condition": - Elements."Tachycardia (Care) Condition" C +define "Tachycardia": + exists "Tachycardia Condition" + or exists "Tachycardia Observation" +define "Tachycardia Condition": + Elements."Tachycardia Condition" C where C.prevalenceInterval() starts on or before Today -define "Tachycardia (Care) Observation": - Elements."Tachycardia (Care) Observation" O +define "Tachycardia Observation": + Elements."Tachycardia Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Tachycardia (Care) */ +/* End of Tachycardia */ /* -@dataElement: HIV.D.DE20 - Tachypnea (Care) +@dataElement: HIV.D.DE20 - Tachypnea @activity: HIV.D3 Check for signs of serious illness @description: Respiratory rate above a number of breaths per minute based on age */ // TODO: Replace placeholder with relevant CQL logic -define "Tachypnea (Care)": - exists "Tachypnea (Care) Condition" - or exists "Tachypnea (Care) Observation" -define "Tachypnea (Care) Condition": - Elements."Tachypnea (Care) Condition" C +define "Tachypnea": + exists "Tachypnea Condition" + or exists "Tachypnea Observation" +define "Tachypnea Condition": + Elements."Tachypnea Condition" C where C.prevalenceInterval() starts on or before Today -define "Tachypnea (Care) Observation": - Elements."Tachypnea (Care) Observation" O +define "Tachypnea Observation": + Elements."Tachypnea Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Tachypnea (Care) */ +/* End of Tachypnea */ /* -@dataElement: HIV.D.DE21 - Unable to walk unaided (Care) +@dataElement: HIV.D.DE21 - Unable to walk unaided @activity: HIV.D3 Check for signs of serious illness @description: Client is not able to walk without help */ // TODO: Replace placeholder with relevant CQL logic -define "Unable to walk unaided (Care)": - exists "Unable to walk unaided (Care) Condition" - or exists "Unable to walk unaided (Care) Observation" -define "Unable to walk unaided (Care) Condition": - Elements."Unable to walk unaided (Care) Condition" C +define "Unable to walk unaided": + exists "Unable to walk unaided Condition" + or exists "Unable to walk unaided Observation" +define "Unable to walk unaided Condition": + Elements."Unable to walk unaided Condition" C where C.prevalenceInterval() starts on or before Today -define "Unable to walk unaided (Care) Observation": - Elements."Unable to walk unaided (Care) Observation" O +define "Unable to walk unaided Observation": + Elements."Unable to walk unaided Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Unable to walk unaided (Care) */ +/* End of Unable to walk unaided */ /* -@dataElement: HIV.D.DE22 - Lethargy (Care) +@dataElement: HIV.D.DE22 - Lethargy @activity: HIV.D3 Check for signs of serious illness @description: Client is exhibiting lethargy as a sign of serious illness */ // TODO: Replace placeholder with relevant CQL logic -define "Lethargy (Care)": - exists "Lethargy (Care) Condition" - or exists "Lethargy (Care) Observation" -define "Lethargy (Care) Condition": - Elements."Lethargy (Care) Condition" C +define "Lethargy D.DE22": + exists "Lethargy D.DE22 Condition" + or exists "Lethargy D.DE22 Observation" +define "Lethargy D.DE22 Condition": + Elements."Lethargy D.DE22 Condition" C where C.prevalenceInterval() starts on or before Today -define "Lethargy (Care) Observation": - Elements."Lethargy (Care) Observation" O +define "Lethargy D.DE22 Observation": + Elements."Lethargy D.DE22 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Lethargy (Care) */ +/* End of Lethargy D.DE22 */ /* -@dataElement: HIV.D.DE23 - Unconsciousness (Care) +@dataElement: HIV.D.DE23 - Unconsciousness @activity: HIV.D3 Check for signs of serious illness @description: Client is currently unconscious */ // TODO: Replace placeholder with relevant CQL logic -define "Unconsciousness (Care)": - exists "Unconsciousness (Care) Condition" - or exists "Unconsciousness (Care) Observation" -define "Unconsciousness (Care) Condition": - Elements."Unconsciousness (Care) Condition" C +define "Unconsciousness": + exists "Unconsciousness Condition" + or exists "Unconsciousness Observation" +define "Unconsciousness Condition": + Elements."Unconsciousness Condition" C where C.prevalenceInterval() starts on or before Today -define "Unconsciousness (Care) Observation": - Elements."Unconsciousness (Care) Observation" O +define "Unconsciousness Observation": + Elements."Unconsciousness Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Unconsciousness (Care) */ +/* End of Unconsciousness */ /* -@dataElement: HIV.D.DE24 - Convulsions (Care) +@dataElement: HIV.D.DE24 - Convulsions @activity: HIV.D3 Check for signs of serious illness @description: Client is convulsing */ // TODO: Replace placeholder with relevant CQL logic -define "Convulsions (Care)": - exists "Convulsions (Care) Condition" - or exists "Convulsions (Care) Observation" -define "Convulsions (Care) Condition": - Elements."Convulsions (Care) Condition" C +define "Convulsions": + exists "Convulsions Condition" + or exists "Convulsions Observation" +define "Convulsions Condition": + Elements."Convulsions Condition" C where C.prevalenceInterval() starts on or before Today -define "Convulsions (Care) Observation": - Elements."Convulsions (Care) Observation" O +define "Convulsions Observation": + Elements."Convulsions Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Convulsions (Care) */ +/* End of Convulsions */ /* -@dataElement: HIV.D.DE25 - Unable to drink (Care) +@dataElement: HIV.D.DE25 - Unable to drink @activity: HIV.D3 Check for signs of serious illness @description: Child is not able to drink */ // TODO: Replace placeholder with relevant CQL logic -define "Unable to drink (Care)": - exists "Unable to drink (Care) Condition" - or exists "Unable to drink (Care) Observation" -define "Unable to drink (Care) Condition": - Elements."Unable to drink (Care) Condition" C +define "Unable to drink": + exists "Unable to drink Condition" + or exists "Unable to drink Observation" +define "Unable to drink Condition": + Elements."Unable to drink Condition" C where C.prevalenceInterval() starts on or before Today -define "Unable to drink (Care) Observation": - Elements."Unable to drink (Care) Observation" O +define "Unable to drink Observation": + Elements."Unable to drink Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Unable to drink (Care) */ +/* End of Unable to drink */ /* -@dataElement: HIV.D.DE26 - Unable to breastfeed (Care) +@dataElement: HIV.D.DE26 - Unable to breastfeed @activity: HIV.D3 Check for signs of serious illness @description: Infant or child is not able to breastfeed */ // TODO: Replace placeholder with relevant CQL logic -define "Unable to breastfeed (Care)": - exists "Unable to breastfeed (Care) Condition" - or exists "Unable to breastfeed (Care) Observation" -define "Unable to breastfeed (Care) Condition": - Elements."Unable to breastfeed (Care) Condition" C +define "Unable to breastfeed": + exists "Unable to breastfeed Condition" + or exists "Unable to breastfeed Observation" +define "Unable to breastfeed Condition": + Elements."Unable to breastfeed Condition" C where C.prevalenceInterval() starts on or before Today -define "Unable to breastfeed (Care) Observation": - Elements."Unable to breastfeed (Care) Observation" O +define "Unable to breastfeed Observation": + Elements."Unable to breastfeed Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Unable to breastfeed (Care) */ +/* End of Unable to breastfeed */ /* -@dataElement: HIV.D.DE27 - Repeated vomiting (Care) +@dataElement: HIV.D.DE27 - Repeated vomiting @activity: HIV.D3 Check for signs of serious illness @description: Client is repeatedly vomiting */ // TODO: Replace placeholder with relevant CQL logic -define "Repeated vomiting (Care)": - exists "Repeated vomiting (Care) Condition" - or exists "Repeated vomiting (Care) Observation" -define "Repeated vomiting (Care) Condition": - Elements."Repeated vomiting (Care) Condition" C +define "Repeated vomiting": + exists "Repeated vomiting Condition" + or exists "Repeated vomiting Observation" +define "Repeated vomiting Condition": + Elements."Repeated vomiting Condition" C where C.prevalenceInterval() starts on or before Today -define "Repeated vomiting (Care) Observation": - Elements."Repeated vomiting (Care) Observation" O +define "Repeated vomiting Observation": + Elements."Repeated vomiting Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Repeated vomiting (Care) */ +/* End of Repeated vomiting */ /* -@dataElement: HIV.D.DE28 - Headache (Care|DDE28) +@dataElement: HIV.D.DE28 - Headache @activity: HIV.D3 Check for signs of serious illness @description: Client is exhibiting a headache */ // TODO: Replace placeholder with relevant CQL logic -define "Headache (Care|DDE28)": - exists "Headache (Care|DDE28) Condition" - or exists "Headache (Care|DDE28) Observation" -define "Headache (Care|DDE28) Condition": - Elements."Headache (Care|DDE28) Condition" C +define "Headache D.DE28": + exists "Headache D.DE28 Condition" + or exists "Headache D.DE28 Observation" +define "Headache D.DE28 Condition": + Elements."Headache D.DE28 Condition" C where C.prevalenceInterval() starts on or before Today -define "Headache (Care|DDE28) Observation": - Elements."Headache (Care|DDE28) Observation" O +define "Headache D.DE28 Observation": + Elements."Headache D.DE28 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Headache (Care|DDE28) */ +/* End of Headache D.DE28 */ /* -@dataElement: HIV.D.DE29 - Other sign of serious illness (Care) +@dataElement: HIV.D.DE29 - Other sign of serious illness @activity: HIV.D3 Check for signs of serious illness @description: Client is exhibiting another sign of a serious illness */ // TODO: Replace placeholder with relevant CQL logic -define "Other sign of serious illness (Care)": - exists "Other sign of serious illness (Care) Condition" - or exists "Other sign of serious illness (Care) Observation" -define "Other sign of serious illness (Care) Condition": - Elements."Other sign of serious illness (Care) Condition" C +define "Other sign of serious illness": + exists "Other sign of serious illness Condition" + or exists "Other sign of serious illness Observation" +define "Other sign of serious illness Condition": + Elements."Other sign of serious illness Condition" C where C.prevalenceInterval() starts on or before Today -define "Other sign of serious illness (Care) Observation": - Elements."Other sign of serious illness (Care) Observation" O +define "Other sign of serious illness Observation": + Elements."Other sign of serious illness Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Other sign of serious illness (Care) */ +/* End of Other sign of serious illness */ /* -@dataElement: HIV.D.DE37 - Serodiscordant partner (Care) +@dataElement: HIV.D.DE37 - Serodiscordant partner @activity: HIV.D8 Capture or update client history @description: Client's HIV status is different from a current partner's HIV status */ // TODO: Replace placeholder with relevant CQL logic -define "Serodiscordant partner (Care)": - exists "Serodiscordant partner (Care) Observation" -define "Serodiscordant partner (Care) Observation": - Elements."Serodiscordant partner (Care) Observation" O +define "Serodiscordant partner D.DE37": + exists "Serodiscordant partner D.DE37 Observation" +define "Serodiscordant partner D.DE37 Observation": + Elements."Serodiscordant partner D.DE37 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Serodiscordant partner (Care) */ +/* End of Serodiscordant partner D.DE37 */ /* -@dataElement: HIV.D.DE42 - Established on ART (Care) +@dataElement: HIV.D.DE42 - Established on ART @activity: HIV.D8 Capture or update client history @description: Is the client successfully established on ART? */ // TODO: Replace placeholder with relevant CQL logic -define "Established on ART (Care)": - exists "Established on ART (Care) Observation" -define "Established on ART (Care) Observation": - Elements."Established on ART (Care) Observation" O +define "Established on ART": + exists "Established on ART Observation" +define "Established on ART Observation": + Elements."Established on ART Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Established on ART (Care) */ +/* End of Established on ART */ /* -@dataElement: HIV.D.DE77 - Preferred first-line ART regimen (Care) +@dataElement: HIV.D.DE77 - Preferred first-line ART regimen @activity: HIV.D8 Capture or update client history @description: The preferred first-line ART regimen for the client according to WHO (or national) guidelines */ // TODO: Replace placeholder with relevant CQL logic -define "Preferred first-line ART regimen (Care)": - exists "Preferred first-line ART regimen (Care) Observation" -define "Preferred first-line ART regimen (Care) Observation": - Elements."Preferred first-line ART regimen (Care) Observation" O +define "Preferred first-line ART regimen": + exists "Preferred first-line ART regimen Observation" +define "Preferred first-line ART regimen Observation": + Elements."Preferred first-line ART regimen Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Preferred first-line ART regimen (Care) */ +/* End of Preferred first-line ART regimen */ /* -@dataElement: HIV.D.DE78 - Alternative first-line ART regimen (Care) +@dataElement: HIV.D.DE78 - Alternative first-line ART regimen @activity: HIV.D8 Capture or update client history @description: The alternative first-line ART regimen for the client according to WHO (or national) guidelines */ // TODO: Replace placeholder with relevant CQL logic -define "Alternative first-line ART regimen (Care)": - exists "Alternative first-line ART regimen (Care) Observation" -define "Alternative first-line ART regimen (Care) Observation": - Elements."Alternative first-line ART regimen (Care) Observation" O +define "Alternative first-line ART regimen": + exists "Alternative first-line ART regimen Observation" +define "Alternative first-line ART regimen Observation": + Elements."Alternative first-line ART regimen Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Alternative first-line ART regimen (Care) */ +/* End of Alternative first-line ART regimen */ /* -@dataElement: HIV.D.DE79 - First-line ART regimen under special circumstances (Care) +@dataElement: HIV.D.DE79 - First-line ART regimen under special circumstances @activity: HIV.D8 Capture or update client history @description: The first-line ART regimen for the client under special circumstances according to WHO (or national) guidelines */ // TODO: Replace placeholder with relevant CQL logic -define "First-line ART regimen under special circumstances (Care)": - exists "First-line ART regimen under special circumstances (Care) Observation" -define "First-line ART regimen under special circumstances (Care) Observation": - Elements."First-line ART regimen under special circumstances (Care) Observation" O +define "First-line ART regimen under special circumstances": + exists "First-line ART regimen under special circumstances Observation" +define "First-line ART regimen under special circumstances Observation": + Elements."First-line ART regimen under special circumstances Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of First-line ART regimen under special circumstances (Care) */ +/* End of First-line ART regimen under special circumstances */ /* -@dataElement: HIV.D.DE80 - Preferred second-line ART regimen (Care) +@dataElement: HIV.D.DE80 - Preferred second-line ART regimen @activity: HIV.D8 Capture or update client history @description: The preferred second-line ART regimen for the client according to WHO (or national) guidelines */ // TODO: Replace placeholder with relevant CQL logic -define "Preferred second-line ART regimen (Care)": - exists "Preferred second-line ART regimen (Care) Observation" -define "Preferred second-line ART regimen (Care) Observation": - Elements."Preferred second-line ART regimen (Care) Observation" O +define "Preferred second-line ART regimen": + exists "Preferred second-line ART regimen Observation" +define "Preferred second-line ART regimen Observation": + Elements."Preferred second-line ART regimen Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Preferred second-line ART regimen (Care) */ +/* End of Preferred second-line ART regimen */ /* -@dataElement: HIV.D.DE81 - Alternative second-line ART regimen (Care) +@dataElement: HIV.D.DE81 - Alternative second-line ART regimen @activity: HIV.D8 Capture or update client history @description: The alternative second-line ART regimen for the client according to WHO (or national) guidelines */ // TODO: Replace placeholder with relevant CQL logic -define "Alternative second-line ART regimen (Care)": - exists "Alternative second-line ART regimen (Care) Observation" -define "Alternative second-line ART regimen (Care) Observation": - Elements."Alternative second-line ART regimen (Care) Observation" O +define "Alternative second-line ART regimen": + exists "Alternative second-line ART regimen Observation" +define "Alternative second-line ART regimen Observation": + Elements."Alternative second-line ART regimen Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Alternative second-line ART regimen (Care) */ +/* End of Alternative second-line ART regimen */ /* -@dataElement: HIV.D.DE82 - Optimal regimen for transition (Care) +@dataElement: HIV.D.DE82 - Optimal regimen for transition @activity: HIV.D8 Capture or update client history @description: The optimal regimen for transition to DTG-based regimens for children established on ART */ // TODO: Replace placeholder with relevant CQL logic -define "Optimal regimen for transition (Care)": - exists "Optimal regimen for transition (Care) Observation" -define "Optimal regimen for transition (Care) Observation": - Elements."Optimal regimen for transition (Care) Observation" O +define "Optimal regimen for transition": + exists "Optimal regimen for transition Observation" +define "Optimal regimen for transition Observation": + Elements."Optimal regimen for transition Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Optimal regimen for transition (Care) */ +/* End of Optimal regimen for transition */ /* -@dataElement: HIV.D.DE83 - Current ART regimen first-, second-, or third-line (Care) +@dataElement: HIV.D.DE83 - Current ART regimen first-, second-, or third-line @activity: HIV.D8 Capture or update client history @description: ART regimen for treating clients living with HIV, based on national guidance */ // TODO: Replace placeholder with relevant CQL logic -define "Current ART regimen first-, second-, or third-line (Care)": - exists "Current ART regimen first-, second-, or third-line (Care) Observation" -define "Current ART regimen first-, second-, or third-line (Care) Observation": - Elements."Current ART regimen first-, second-, or third-line (Care) Observation" O +define "Current ART regimen first-, second-, or third-line": + exists "Current ART regimen first-, second-, or third-line Observation" +define "Current ART regimen first-, second-, or third-line Observation": + Elements."Current ART regimen first-, second-, or third-line Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Current ART regimen first-, second-, or third-line (Care) */ +/* End of Current ART regimen first-, second-, or third-line */ /* -@dataElement: HIV.D.DE84 - First-line ART regimen for adults and adolescents (Care) +@dataElement: HIV.D.DE84 - First-line ART regimen for adults and adolescents @activity: HIV.D8 Capture or update client history @description: First-line ART regimen for adults and adolescents living with HIV */ // TODO: Replace placeholder with relevant CQL logic -define "First-line ART regimen for adults and adolescents (Care)": - exists "First-line ART regimen for adults and adolescents (Care) Condition" - or exists "First-line ART regimen for adults and adolescents (Care) Observation" -define "First-line ART regimen for adults and adolescents (Care) Condition": - Elements."First-line ART regimen for adults and adolescents (Care) Condition" C +define "First-line ART regimen for adults and adolescents": + exists "First-line ART regimen for adults and adolescents Condition" + or exists "First-line ART regimen for adults and adolescents Observation" +define "First-line ART regimen for adults and adolescents Condition": + Elements."First-line ART regimen for adults and adolescents Condition" C where C.prevalenceInterval() starts on or before Today -define "First-line ART regimen for adults and adolescents (Care) Observation": - Elements."First-line ART regimen for adults and adolescents (Care) Observation" O +define "First-line ART regimen for adults and adolescents Observation": + Elements."First-line ART regimen for adults and adolescents Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of First-line ART regimen for adults and adolescents (Care) */ +/* End of First-line ART regimen for adults and adolescents */ /* -@dataElement: HIV.D.DE85 - First-line ART regimen for children (Care) +@dataElement: HIV.D.DE85 - First-line ART regimen for children @activity: HIV.D8 Capture or update client history @description: First-line ART regimen for children living with HIV */ // TODO: Replace placeholder with relevant CQL logic -define "First-line ART regimen for children (Care)": - exists "First-line ART regimen for children (Care) Condition" - or exists "First-line ART regimen for children (Care) Observation" -define "First-line ART regimen for children (Care) Condition": - Elements."First-line ART regimen for children (Care) Condition" C +define "First-line ART regimen for children": + exists "First-line ART regimen for children Condition" + or exists "First-line ART regimen for children Observation" +define "First-line ART regimen for children Condition": + Elements."First-line ART regimen for children Condition" C where C.prevalenceInterval() starts on or before Today -define "First-line ART regimen for children (Care) Observation": - Elements."First-line ART regimen for children (Care) Observation" O +define "First-line ART regimen for children Observation": + Elements."First-line ART regimen for children Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of First-line ART regimen for children (Care) */ +/* End of First-line ART regimen for children */ /* -@dataElement: HIV.D.DE86 - First-line ART regimen for neonates (Care) +@dataElement: HIV.D.DE86 - First-line ART regimen for neonates @activity: HIV.D8 Capture or update client history @description: First-line ART regimen for neonates living with HIV */ // TODO: Replace placeholder with relevant CQL logic -define "First-line ART regimen for neonates (Care)": - exists "First-line ART regimen for neonates (Care) Condition" - or exists "First-line ART regimen for neonates (Care) Observation" -define "First-line ART regimen for neonates (Care) Condition": - Elements."First-line ART regimen for neonates (Care) Condition" C +define "First-line ART regimen for neonates": + exists "First-line ART regimen for neonates Condition" + or exists "First-line ART regimen for neonates Observation" +define "First-line ART regimen for neonates Condition": + Elements."First-line ART regimen for neonates Condition" C where C.prevalenceInterval() starts on or before Today -define "First-line ART regimen for neonates (Care) Observation": - Elements."First-line ART regimen for neonates (Care) Observation" O +define "First-line ART regimen for neonates Observation": + Elements."First-line ART regimen for neonates Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of First-line ART regimen for neonates (Care) */ +/* End of First-line ART regimen for neonates */ /* -@dataElement: HIV.D.DE87 - Second-line ART regimen for adults and adolescents (Care) +@dataElement: HIV.D.DE87 - Second-line ART regimen for adults and adolescents @activity: HIV.D8 Capture or update client history @description: Second-line ART regimen for adults and adolescents living with HIV */ // TODO: Replace placeholder with relevant CQL logic -define "Second-line ART regimen for adults and adolescents (Care)": - exists "Second-line ART regimen for adults and adolescents (Care) Condition" - or exists "Second-line ART regimen for adults and adolescents (Care) Observation" -define "Second-line ART regimen for adults and adolescents (Care) Condition": - Elements."Second-line ART regimen for adults and adolescents (Care) Condition" C +define "Second-line ART regimen for adults and adolescents": + exists "Second-line ART regimen for adults and adolescents Condition" + or exists "Second-line ART regimen for adults and adolescents Observation" +define "Second-line ART regimen for adults and adolescents Condition": + Elements."Second-line ART regimen for adults and adolescents Condition" C where C.prevalenceInterval() starts on or before Today -define "Second-line ART regimen for adults and adolescents (Care) Observation": - Elements."Second-line ART regimen for adults and adolescents (Care) Observation" O +define "Second-line ART regimen for adults and adolescents Observation": + Elements."Second-line ART regimen for adults and adolescents Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Second-line ART regimen for adults and adolescents (Care) */ +/* End of Second-line ART regimen for adults and adolescents */ /* -@dataElement: HIV.D.DE88 - Second-line ART regimen for children (Care) +@dataElement: HIV.D.DE88 - Second-line ART regimen for children @activity: HIV.D8 Capture or update client history @description: Second-line ART regimen for children living with HIV */ // TODO: Replace placeholder with relevant CQL logic -define "Second-line ART regimen for children (Care)": - exists "Second-line ART regimen for children (Care) Condition" - or exists "Second-line ART regimen for children (Care) Observation" -define "Second-line ART regimen for children (Care) Condition": - Elements."Second-line ART regimen for children (Care) Condition" C +define "Second-line ART regimen for children": + exists "Second-line ART regimen for children Condition" + or exists "Second-line ART regimen for children Observation" +define "Second-line ART regimen for children Condition": + Elements."Second-line ART regimen for children Condition" C where C.prevalenceInterval() starts on or before Today -define "Second-line ART regimen for children (Care) Observation": - Elements."Second-line ART regimen for children (Care) Observation" O +define "Second-line ART regimen for children Observation": + Elements."Second-line ART regimen for children Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Second-line ART regimen for children (Care) */ +/* End of Second-line ART regimen for children */ /* -@dataElement: HIV.D.DE89 - Third-line ART regimen (Care) +@dataElement: HIV.D.DE89 - Third-line ART regimen @activity: HIV.D8 Capture or update client history @description: Third-line ART regimen for people living with HIV (Not defined by WHO. National programmes should develop policies for third-line ART) */ // TODO: Replace placeholder with relevant CQL logic -define "Third-line ART regimen (Care)": - exists "Third-line ART regimen (Care) Condition" - or exists "Third-line ART regimen (Care) Observation" -define "Third-line ART regimen (Care) Condition": - Elements."Third-line ART regimen (Care) Condition" C +define "Third-line ART regimen": + exists "Third-line ART regimen Condition" + or exists "Third-line ART regimen Observation" +define "Third-line ART regimen Condition": + Elements."Third-line ART regimen Condition" C where C.prevalenceInterval() starts on or before Today -define "Third-line ART regimen (Care) Observation": - Elements."Third-line ART regimen (Care) Observation" O +define "Third-line ART regimen Observation": + Elements."Third-line ART regimen Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Third-line ART regimen (Care) */ +/* End of Third-line ART regimen */ /* -@dataElement: HIV.D.DE128 - ART regimen composition (Care) +@dataElement: HIV.D.DE128 - ART regimen composition @activity: HIV.D8 Capture or update client history @description: Drug composition of client's current ART regimen */ // TODO: Replace placeholder with relevant CQL logic -define "ART regimen composition (Care)": - exists "ART regimen composition (Care) Observation" -define "ART regimen composition (Care) Observation": - Elements."ART regimen composition (Care) Observation" O +define "ART regimen composition": + exists "ART regimen composition Observation" +define "ART regimen composition Observation": + Elements."ART regimen composition Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of ART regimen composition (Care) */ +/* End of ART regimen composition */ /* -@dataElement: HIV.D.DE129 - ABC (Care) +@dataElement: HIV.D.DE129 - ABC @activity: HIV.D8 Capture or update client history @description: Treated with abacavir (ABC) */ // TODO: Replace placeholder with relevant CQL logic -define "ABC (Care)": - exists "ABC (Care) Condition" - or exists "ABC (Care) Observation" -define "ABC (Care) Condition": - Elements."ABC (Care) Condition" C +define "ABC": + exists "ABC Condition" + or exists "ABC Observation" +define "ABC Condition": + Elements."ABC Condition" C where C.prevalenceInterval() starts on or before Today -define "ABC (Care) Observation": - Elements."ABC (Care) Observation" O +define "ABC Observation": + Elements."ABC Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of ABC (Care) */ +/* End of ABC */ /* -@dataElement: HIV.D.DE130 - FTC (Care) +@dataElement: HIV.D.DE130 - FTC @activity: HIV.D8 Capture or update client history @description: Treated with emtricitabine (FTC) */ // TODO: Replace placeholder with relevant CQL logic -define "FTC (Care)": - exists "FTC (Care) Condition" - or exists "FTC (Care) Observation" -define "FTC (Care) Condition": - Elements."FTC (Care) Condition" C +define "FTC": + exists "FTC Condition" + or exists "FTC Observation" +define "FTC Condition": + Elements."FTC Condition" C where C.prevalenceInterval() starts on or before Today -define "FTC (Care) Observation": - Elements."FTC (Care) Observation" O +define "FTC Observation": + Elements."FTC Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of FTC (Care) */ +/* End of FTC */ /* -@dataElement: HIV.D.DE131 - 3TC (Care) +@dataElement: HIV.D.DE131 - 3TC @activity: HIV.D8 Capture or update client history @description: Treated with lamivudine (3TC) */ // TODO: Replace placeholder with relevant CQL logic -define "3TC (Care)": - exists "3TC (Care) Condition" - or exists "3TC (Care) Observation" -define "3TC (Care) Condition": - Elements."3TC (Care) Condition" C +define "3TC": + exists "3TC Condition" + or exists "3TC Observation" +define "3TC Condition": + Elements."3TC Condition" C where C.prevalenceInterval() starts on or before Today -define "3TC (Care) Observation": - Elements."3TC (Care) Observation" O +define "3TC Observation": + Elements."3TC Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of 3TC (Care) */ +/* End of 3TC */ /* -@dataElement: HIV.D.DE132 - AZT (Care) +@dataElement: HIV.D.DE132 - AZT @activity: HIV.D8 Capture or update client history @description: Treated with zidovudine (AZT) */ // TODO: Replace placeholder with relevant CQL logic -define "AZT (Care)": - exists "AZT (Care) Condition" - or exists "AZT (Care) Observation" -define "AZT (Care) Condition": - Elements."AZT (Care) Condition" C +define "AZT": + exists "AZT Condition" + or exists "AZT Observation" +define "AZT Condition": + Elements."AZT Condition" C where C.prevalenceInterval() starts on or before Today -define "AZT (Care) Observation": - Elements."AZT (Care) Observation" O +define "AZT Observation": + Elements."AZT Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of AZT (Care) */ +/* End of AZT */ /* -@dataElement: HIV.D.DE133 - DDI (Care) +@dataElement: HIV.D.DE133 - DDI @activity: HIV.D8 Capture or update client history @description: Treated with didanosine (DDI) */ // TODO: Replace placeholder with relevant CQL logic -define "DDI (Care)": - exists "DDI (Care) Condition" - or exists "DDI (Care) Observation" -define "DDI (Care) Condition": - Elements."DDI (Care) Condition" C +define "DDI": + exists "DDI Condition" + or exists "DDI Observation" +define "DDI Condition": + Elements."DDI Condition" C where C.prevalenceInterval() starts on or before Today -define "DDI (Care) Observation": - Elements."DDI (Care) Observation" O +define "DDI Observation": + Elements."DDI Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of DDI (Care) */ +/* End of DDI */ /* -@dataElement: HIV.D.DE134 - D4T (Care) +@dataElement: HIV.D.DE134 - D4T @activity: HIV.D8 Capture or update client history @description: Treated with stavudine (D4T) */ // TODO: Replace placeholder with relevant CQL logic -define "D4T (Care)": - exists "D4T (Care) Condition" - or exists "D4T (Care) Observation" -define "D4T (Care) Condition": - Elements."D4T (Care) Condition" C +define "D4T": + exists "D4T Condition" + or exists "D4T Observation" +define "D4T Condition": + Elements."D4T Condition" C where C.prevalenceInterval() starts on or before Today -define "D4T (Care) Observation": - Elements."D4T (Care) Observation" O +define "D4T Observation": + Elements."D4T Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of D4T (Care) */ +/* End of D4T */ /* -@dataElement: HIV.D.DE135 - TDF (Care|DDE135) +@dataElement: HIV.D.DE135 - TDF @activity: HIV.D8 Capture or update client history @description: Treated with tenofovir (TDF) */ // TODO: Replace placeholder with relevant CQL logic -define "TDF (Care|DDE135)": - exists "TDF (Care|DDE135) Condition" - or exists "TDF (Care|DDE135) Observation" -define "TDF (Care|DDE135) Condition": - Elements."TDF (Care|DDE135) Condition" C +define "TDF D.DE135": + exists "TDF D.DE135 Condition" + or exists "TDF D.DE135 Observation" +define "TDF D.DE135 Condition": + Elements."TDF D.DE135 Condition" C where C.prevalenceInterval() starts on or before Today -define "TDF (Care|DDE135) Observation": - Elements."TDF (Care|DDE135) Observation" O +define "TDF D.DE135 Observation": + Elements."TDF D.DE135 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of TDF (Care|DDE135) */ +/* End of TDF D.DE135 */ /* -@dataElement: HIV.D.DE136 - EFV (Care) +@dataElement: HIV.D.DE136 - EFV @activity: HIV.D8 Capture or update client history @description: Treated with efavirenz (EFV) */ // TODO: Replace placeholder with relevant CQL logic -define "EFV (Care)": - exists "EFV (Care) Condition" - or exists "EFV (Care) Observation" -define "EFV (Care) Condition": - Elements."EFV (Care) Condition" C +define "EFV": + exists "EFV Condition" + or exists "EFV Observation" +define "EFV Condition": + Elements."EFV Condition" C where C.prevalenceInterval() starts on or before Today -define "EFV (Care) Observation": - Elements."EFV (Care) Observation" O +define "EFV Observation": + Elements."EFV Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of EFV (Care) */ +/* End of EFV */ /* -@dataElement: HIV.D.DE137 - ETV (Care) +@dataElement: HIV.D.DE137 - ETV @activity: HIV.D8 Capture or update client history @description: Treated with etravirine (ETV) */ // TODO: Replace placeholder with relevant CQL logic -define "ETV (Care)": - exists "ETV (Care) Condition" - or exists "ETV (Care) Observation" -define "ETV (Care) Condition": - Elements."ETV (Care) Condition" C +define "ETV": + exists "ETV Condition" + or exists "ETV Observation" +define "ETV Condition": + Elements."ETV Condition" C where C.prevalenceInterval() starts on or before Today -define "ETV (Care) Observation": - Elements."ETV (Care) Observation" O +define "ETV Observation": + Elements."ETV Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of ETV (Care) */ +/* End of ETV */ /* -@dataElement: HIV.D.DE138 - NVP (Care) +@dataElement: HIV.D.DE138 - NVP @activity: HIV.D8 Capture or update client history @description: Treated with nevirapine (NVP) */ // TODO: Replace placeholder with relevant CQL logic -define "NVP (Care)": - exists "NVP (Care) Condition" - or exists "NVP (Care) Observation" -define "NVP (Care) Condition": - Elements."NVP (Care) Condition" C +define "NVP": + exists "NVP Condition" + or exists "NVP Observation" +define "NVP Condition": + Elements."NVP Condition" C where C.prevalenceInterval() starts on or before Today -define "NVP (Care) Observation": - Elements."NVP (Care) Observation" O +define "NVP Observation": + Elements."NVP Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of NVP (Care) */ +/* End of NVP */ /* -@dataElement: HIV.D.DE139 - RIL (Care) +@dataElement: HIV.D.DE139 - RIL @activity: HIV.D8 Capture or update client history @description: Treated with rilpivirine (RIL) */ // TODO: Replace placeholder with relevant CQL logic -define "RIL (Care)": - exists "RIL (Care) Condition" - or exists "RIL (Care) Observation" -define "RIL (Care) Condition": - Elements."RIL (Care) Condition" C +define "RIL": + exists "RIL Condition" + or exists "RIL Observation" +define "RIL Condition": + Elements."RIL Condition" C where C.prevalenceInterval() starts on or before Today -define "RIL (Care) Observation": - Elements."RIL (Care) Observation" O +define "RIL Observation": + Elements."RIL Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of RIL (Care) */ +/* End of RIL */ /* -@dataElement: HIV.D.DE140 - ATV/r (Care) +@dataElement: HIV.D.DE140 - ATV/r @activity: HIV.D8 Capture or update client history @description: Treated with atazanavir/ritonavir (ATV/r) */ // TODO: Replace placeholder with relevant CQL logic -define "ATV/r (Care)": - exists "ATV/r (Care) Condition" - or exists "ATV/r (Care) Observation" -define "ATV/r (Care) Condition": - Elements."ATV/r (Care) Condition" C +define "ATV/r D.DE140": + exists "ATV/r D.DE140 Condition" + or exists "ATV/r D.DE140 Observation" +define "ATV/r D.DE140 Condition": + Elements."ATV/r D.DE140 Condition" C where C.prevalenceInterval() starts on or before Today -define "ATV/r (Care) Observation": - Elements."ATV/r (Care) Observation" O +define "ATV/r D.DE140 Observation": + Elements."ATV/r D.DE140 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of ATV/r (Care) */ +/* End of ATV/r D.DE140 */ /* -@dataElement: HIV.D.DE141 - LPV/r (Care) +@dataElement: HIV.D.DE141 - LPV/r @activity: HIV.D8 Capture or update client history @description: Treated with lopinavir/ritonavir (LPV/r) */ // TODO: Replace placeholder with relevant CQL logic -define "LPV/r (Care)": - exists "LPV/r (Care) Condition" - or exists "LPV/r (Care) Observation" -define "LPV/r (Care) Condition": - Elements."LPV/r (Care) Condition" C +define "LPV/r D.DE141": + exists "LPV/r D.DE141 Condition" + or exists "LPV/r D.DE141 Observation" +define "LPV/r D.DE141 Condition": + Elements."LPV/r D.DE141 Condition" C where C.prevalenceInterval() starts on or before Today -define "LPV/r (Care) Observation": - Elements."LPV/r (Care) Observation" O +define "LPV/r D.DE141 Observation": + Elements."LPV/r D.DE141 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of LPV/r (Care) */ +/* End of LPV/r D.DE141 */ /* -@dataElement: HIV.D.DE142 - DRV/r (Care) +@dataElement: HIV.D.DE142 - DRV/r @activity: HIV.D8 Capture or update client history @description: Treated with darunavir/ritonavir (DRV/r) */ // TODO: Replace placeholder with relevant CQL logic -define "DRV/r (Care)": - exists "DRV/r (Care) Condition" - or exists "DRV/r (Care) Observation" -define "DRV/r (Care) Condition": - Elements."DRV/r (Care) Condition" C +define "DRV/r D.DE142": + exists "DRV/r D.DE142 Condition" + or exists "DRV/r D.DE142 Observation" +define "DRV/r D.DE142 Condition": + Elements."DRV/r D.DE142 Condition" C where C.prevalenceInterval() starts on or before Today -define "DRV/r (Care) Observation": - Elements."DRV/r (Care) Observation" O +define "DRV/r D.DE142 Observation": + Elements."DRV/r D.DE142 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of DRV/r (Care) */ +/* End of DRV/r D.DE142 */ /* -@dataElement: HIV.D.DE143 - RTV (Care) +@dataElement: HIV.D.DE143 - RTV @activity: HIV.D8 Capture or update client history @description: Treated with ritonavir (RTV) */ // TODO: Replace placeholder with relevant CQL logic -define "RTV (Care)": - exists "RTV (Care) Condition" - or exists "RTV (Care) Observation" -define "RTV (Care) Condition": - Elements."RTV (Care) Condition" C +define "RTV": + exists "RTV Condition" + or exists "RTV Observation" +define "RTV Condition": + Elements."RTV Condition" C where C.prevalenceInterval() starts on or before Today -define "RTV (Care) Observation": - Elements."RTV (Care) Observation" O +define "RTV Observation": + Elements."RTV Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of RTV (Care) */ +/* End of RTV */ /* -@dataElement: HIV.D.DE144 - DTG (Care) +@dataElement: HIV.D.DE144 - DTG @activity: HIV.D8 Capture or update client history @description: Treated with dolutegravir (DTG) */ // TODO: Replace placeholder with relevant CQL logic -define "DTG (Care)": - exists "DTG (Care) Condition" - or exists "DTG (Care) Observation" -define "DTG (Care) Condition": - Elements."DTG (Care) Condition" C +define "DTG D.DE144": + exists "DTG D.DE144 Condition" + or exists "DTG D.DE144 Observation" +define "DTG D.DE144 Condition": + Elements."DTG D.DE144 Condition" C where C.prevalenceInterval() starts on or before Today -define "DTG (Care) Observation": - Elements."DTG (Care) Observation" O +define "DTG D.DE144 Observation": + Elements."DTG D.DE144 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of DTG (Care) */ +/* End of DTG D.DE144 */ /* -@dataElement: HIV.D.DE145 - RAL (Care) +@dataElement: HIV.D.DE145 - RAL @activity: HIV.D8 Capture or update client history @description: Treated with raltegravir (RAL) */ // TODO: Replace placeholder with relevant CQL logic -define "RAL (Care)": - exists "RAL (Care) Condition" - or exists "RAL (Care) Observation" -define "RAL (Care) Condition": - Elements."RAL (Care) Condition" C +define "RAL D.DE145": + exists "RAL D.DE145 Condition" + or exists "RAL D.DE145 Observation" +define "RAL D.DE145 Condition": + Elements."RAL D.DE145 Condition" C where C.prevalenceInterval() starts on or before Today -define "RAL (Care) Observation": - Elements."RAL (Care) Observation" O +define "RAL D.DE145 Observation": + Elements."RAL D.DE145 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of RAL (Care) */ +/* End of RAL D.DE145 */ /* -@dataElement: HIV.D.DE152 - Prevention services offered and referrals (Care) +@dataElement: HIV.D.DE152 - Prevention services offered and referrals @activity: HIV.D12 Determine recommended screenings and tests @description: Offer or refer for prevention services */ // TODO: Replace placeholder with relevant CQL logic -define "Prevention services offered and referrals (Care)": - exists "Prevention services offered and referrals (Care) Observation" -define "Prevention services offered and referrals (Care) Observation": - Elements."Prevention services offered and referrals (Care) Observation" O +define "Prevention services offered and referrals D.DE152": + exists "Prevention services offered and referrals D.DE152 Observation" +define "Prevention services offered and referrals D.DE152 Observation": + Elements."Prevention services offered and referrals D.DE152 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Prevention services offered and referrals (Care) */ +/* End of Prevention services offered and referrals D.DE152 */ /* -@dataElement: HIV.D.DE153 - Offer male and female condoms and condom-compatible lubricants (Care) +@dataElement: HIV.D.DE153 - Offer male and female condoms and condom-compatible lubricants @activity: HIV.D26 Offer sexual and reproductive health services @description: Offer male and female condoms and condom-compatible lubricants */ // TODO: Replace placeholder with relevant CQL logic -define "Offer male and female condoms and condom-compatible lubricants (Care)": - exists "Offer male and female condoms and condom-compatible lubricants (Care) Condition" - or exists "Offer male and female condoms and condom-compatible lubricants (Care) Observation" -define "Offer male and female condoms and condom-compatible lubricants (Care) Condition": - Elements."Offer male and female condoms and condom-compatible lubricants (Care) Condition" C +define "Offer male and female condoms and condom-compatible lubricants D.DE153": + exists "Offer male and female condoms and condom-compatible lubricants D.DE153 Condition" + or exists "Offer male and female condoms and condom-compatible lubricants D.DE153 Observation" +define "Offer male and female condoms and condom-compatible lubricants D.DE153 Condition": + Elements."Offer male and female condoms and condom-compatible lubricants D.DE153 Condition" C where C.prevalenceInterval() starts on or before Today -define "Offer male and female condoms and condom-compatible lubricants (Care) Observation": - Elements."Offer male and female condoms and condom-compatible lubricants (Care) Observation" O +define "Offer male and female condoms and condom-compatible lubricants D.DE153 Observation": + Elements."Offer male and female condoms and condom-compatible lubricants D.DE153 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Offer male and female condoms and condom-compatible lubricants (Care) */ +/* End of Offer male and female condoms and condom-compatible lubricants D.DE153 */ /* -@dataElement: HIV.D.DE154 - Harm reduction for people who inject drugs (Care) +@dataElement: HIV.D.DE154 - Harm reduction for people who inject drugs @activity: HIV.D12 Determine recommended screenings and tests @description: Offer or refer people who inject drugs to harm reduction services (needle and syringe programmes, opioid substitution therapy, other drug-dependence treatment and opioid overdose prevention and management) */ // TODO: Replace placeholder with relevant CQL logic -define "Harm reduction for people who inject drugs (Care)": - exists "Harm reduction for people who inject drugs (Care) Condition" - or exists "Harm reduction for people who inject drugs (Care) Observation" -define "Harm reduction for people who inject drugs (Care) Condition": - Elements."Harm reduction for people who inject drugs (Care) Condition" C +define "Harm reduction for people who inject drugs D.DE154": + exists "Harm reduction for people who inject drugs D.DE154 Condition" + or exists "Harm reduction for people who inject drugs D.DE154 Observation" +define "Harm reduction for people who inject drugs D.DE154 Condition": + Elements."Harm reduction for people who inject drugs D.DE154 Condition" C where C.prevalenceInterval() starts on or before Today -define "Harm reduction for people who inject drugs (Care) Observation": - Elements."Harm reduction for people who inject drugs (Care) Observation" O +define "Harm reduction for people who inject drugs D.DE154 Observation": + Elements."Harm reduction for people who inject drugs D.DE154 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Harm reduction for people who inject drugs (Care) */ +/* End of Harm reduction for people who inject drugs D.DE154 */ /* -@dataElement: HIV.D.DE155 - Behavioural interventions to support risk reduction (Care) +@dataElement: HIV.D.DE155 - Behavioural interventions to support risk reduction @activity: HIV.D12 Determine recommended screenings and tests @description: Offer or refer to services for behavioural interventions to support risk reduction, particularly for people with HIV and members of key populations */ // TODO: Replace placeholder with relevant CQL logic -define "Behavioural interventions to support risk reduction (Care)": - exists "Behavioural interventions to support risk reduction (Care) Condition" - or exists "Behavioural interventions to support risk reduction (Care) Observation" -define "Behavioural interventions to support risk reduction (Care) Condition": - Elements."Behavioural interventions to support risk reduction (Care) Condition" C +define "Behavioural interventions to support risk reduction D.DE155": + exists "Behavioural interventions to support risk reduction D.DE155 Condition" + or exists "Behavioural interventions to support risk reduction D.DE155 Observation" +define "Behavioural interventions to support risk reduction D.DE155 Condition": + Elements."Behavioural interventions to support risk reduction D.DE155 Condition" C where C.prevalenceInterval() starts on or before Today -define "Behavioural interventions to support risk reduction (Care) Observation": - Elements."Behavioural interventions to support risk reduction (Care) Observation" O +define "Behavioural interventions to support risk reduction D.DE155 Observation": + Elements."Behavioural interventions to support risk reduction D.DE155 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Behavioural interventions to support risk reduction (Care) */ +/* End of Behavioural interventions to support risk reduction D.DE155 */ /* -@dataElement: HIV.D.DE156 - Sexual and reproductive health integrated services (Care) +@dataElement: HIV.D.DE156 - Sexual and reproductive health integrated services @activity: HIV.D12 Determine recommended screenings and tests @description: Offer or refer to sexual and reproductive health services */ // TODO: Replace placeholder with relevant CQL logic -define "Sexual and reproductive health integrated services (Care)": - exists "Sexual and reproductive health integrated services (Care) Observation" -define "Sexual and reproductive health integrated services (Care) Observation": - Elements."Sexual and reproductive health integrated services (Care) Observation" O +define "Sexual and reproductive health integrated services D.DE156": + exists "Sexual and reproductive health integrated services D.DE156 Observation" +define "Sexual and reproductive health integrated services D.DE156 Observation": + Elements."Sexual and reproductive health integrated services D.DE156 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Sexual and reproductive health integrated services (Care) */ +/* End of Sexual and reproductive health integrated services D.DE156 */ /* -@dataElement: HIV.D.DE157 - Contraception and family planning (Care) +@dataElement: HIV.D.DE157 - Contraception and family planning @activity: HIV.D12 Determine recommended screenings and tests @description: Offer contraception and family planning services */ // TODO: Replace placeholder with relevant CQL logic -define "Contraception and family planning (Care)": - exists "Contraception and family planning (Care) Condition" - or exists "Contraception and family planning (Care) Observation" -define "Contraception and family planning (Care) Condition": - Elements."Contraception and family planning (Care) Condition" C +define "Contraception and family planning D.DE157": + exists "Contraception and family planning D.DE157 Condition" + or exists "Contraception and family planning D.DE157 Observation" +define "Contraception and family planning D.DE157 Condition": + Elements."Contraception and family planning D.DE157 Condition" C where C.prevalenceInterval() starts on or before Today -define "Contraception and family planning (Care) Observation": - Elements."Contraception and family planning (Care) Observation" O +define "Contraception and family planning D.DE157 Observation": + Elements."Contraception and family planning D.DE157 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Contraception and family planning (Care) */ +/* End of Contraception and family planning D.DE157 */ /* -@dataElement: HIV.D.DE158 - Check pregnancy status (Care) +@dataElement: HIV.D.DE158 - Check pregnancy status @activity: HIV.D12 Determine recommended screenings and tests @description: Check woman's pregnancy status */ // TODO: Replace placeholder with relevant CQL logic -define "Check pregnancy status (Care)": - exists "Check pregnancy status (Care) Condition" - or exists "Check pregnancy status (Care) Observation" -define "Check pregnancy status (Care) Condition": - Elements."Check pregnancy status (Care) Condition" C +define "Check pregnancy status D.DE158": + exists "Check pregnancy status D.DE158 Condition" + or exists "Check pregnancy status D.DE158 Observation" +define "Check pregnancy status D.DE158 Condition": + Elements."Check pregnancy status D.DE158 Condition" C where C.prevalenceInterval() starts on or before Today -define "Check pregnancy status (Care) Observation": - Elements."Check pregnancy status (Care) Observation" O +define "Check pregnancy status D.DE158 Observation": + Elements."Check pregnancy status D.DE158 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Check pregnancy status (Care) */ +/* End of Check pregnancy status D.DE158 */ /* -@dataElement: HIV.D.DE159 - Prevention of mother-to-child transmission (Care) +@dataElement: HIV.D.DE159 - Prevention of mother-to-child transmission @activity: HIV.D12 Determine recommended screenings and tests @description: Offer prevention of mother-to-child transmission services (counselling) */ // TODO: Replace placeholder with relevant CQL logic -define "Prevention of mother-to-child transmission (Care)": - exists "Prevention of mother-to-child transmission (Care) Condition" - or exists "Prevention of mother-to-child transmission (Care) Observation" -define "Prevention of mother-to-child transmission (Care) Condition": - Elements."Prevention of mother-to-child transmission (Care) Condition" C +define "Prevention of mother-to-child transmission": + exists "Prevention of mother-to-child transmission Condition" + or exists "Prevention of mother-to-child transmission Observation" +define "Prevention of mother-to-child transmission Condition": + Elements."Prevention of mother-to-child transmission Condition" C where C.prevalenceInterval() starts on or before Today -define "Prevention of mother-to-child transmission (Care) Observation": - Elements."Prevention of mother-to-child transmission (Care) Observation" O +define "Prevention of mother-to-child transmission Observation": + Elements."Prevention of mother-to-child transmission Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Prevention of mother-to-child transmission (Care) */ +/* End of Prevention of mother-to-child transmission */ /* -@dataElement: HIV.D.DE160 - STI testing and treatment (Care) +@dataElement: HIV.D.DE160 - STI testing and treatment @activity: HIV.D12 Determine recommended screenings and tests @description: Offer STI testing and treatment services */ // TODO: Replace placeholder with relevant CQL logic -define "STI testing and treatment (Care)": - exists "STI testing and treatment (Care) Condition" - or exists "STI testing and treatment (Care) Observation" -define "STI testing and treatment (Care) Condition": - Elements."STI testing and treatment (Care) Condition" C +define "STI testing and treatment D.DE160": + exists "STI testing and treatment D.DE160 Condition" + or exists "STI testing and treatment D.DE160 Observation" +define "STI testing and treatment D.DE160 Condition": + Elements."STI testing and treatment D.DE160 Condition" C where C.prevalenceInterval() starts on or before Today -define "STI testing and treatment (Care) Observation": - Elements."STI testing and treatment (Care) Observation" O +define "STI testing and treatment D.DE160 Observation": + Elements."STI testing and treatment D.DE160 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of STI testing and treatment (Care) */ +/* End of STI testing and treatment D.DE160 */ /* -@dataElement: HIV.D.DE186 - HIV clinical stage (Care) +@dataElement: HIV.D.DE186 - HIV clinical stage @activity: HIV.D8 Capture or update client history @description: WHO clinical stage of client based on signs and symptoms. WHO clinical staging is a way to categorize HIV disease severity based on new or recurrent clinical events. There are 4 WHO clinical stages that range from mild symptoms (WHO clinical stage 1) to severe symptoms (WHO clinical stage 4). */ // TODO: Replace placeholder with relevant CQL logic -define "HIV clinical stage (Care)": - exists "HIV clinical stage (Care) Observation" -define "HIV clinical stage (Care) Observation": - Elements."HIV clinical stage (Care) Observation" O +define "HIV clinical stage D.DE186": + exists "HIV clinical stage D.DE186 Observation" +define "HIV clinical stage D.DE186 Observation": + Elements."HIV clinical stage D.DE186 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of HIV clinical stage (Care) */ +/* End of HIV clinical stage D.DE186 */ /* -@dataElement: HIV.D.DE187 - WHO HIV clinical stage 1 (Care) +@dataElement: HIV.D.DE187 - WHO HIV clinical stage 1 @activity: HIV.D8 Capture or update client history @description: Client is currently assessed to be at a clinical stage 1, based on clinical assessment and diagnostics */ // TODO: Replace placeholder with relevant CQL logic -define "WHO HIV clinical stage 1 (Care)": - exists "WHO HIV clinical stage 1 (Care) Condition" - or exists "WHO HIV clinical stage 1 (Care) Observation" -define "WHO HIV clinical stage 1 (Care) Condition": - Elements."WHO HIV clinical stage 1 (Care) Condition" C +define "WHO HIV clinical stage 1": + exists "WHO HIV clinical stage 1 Condition" + or exists "WHO HIV clinical stage 1 Observation" +define "WHO HIV clinical stage 1 Condition": + Elements."WHO HIV clinical stage 1 Condition" C where C.prevalenceInterval() starts on or before Today -define "WHO HIV clinical stage 1 (Care) Observation": - Elements."WHO HIV clinical stage 1 (Care) Observation" O +define "WHO HIV clinical stage 1 Observation": + Elements."WHO HIV clinical stage 1 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of WHO HIV clinical stage 1 (Care) */ +/* End of WHO HIV clinical stage 1 */ /* -@dataElement: HIV.D.DE188 - WHO HIV clinical stage 2 (Care) +@dataElement: HIV.D.DE188 - WHO HIV clinical stage 2 @activity: HIV.D8 Capture or update client history @description: Client is currently assessed to be at a clinical stage 2, based on clinical assessment and diagnostics */ // TODO: Replace placeholder with relevant CQL logic -define "WHO HIV clinical stage 2 (Care)": - exists "WHO HIV clinical stage 2 (Care) Condition" - or exists "WHO HIV clinical stage 2 (Care) Observation" -define "WHO HIV clinical stage 2 (Care) Condition": - Elements."WHO HIV clinical stage 2 (Care) Condition" C +define "WHO HIV clinical stage 2": + exists "WHO HIV clinical stage 2 Condition" + or exists "WHO HIV clinical stage 2 Observation" +define "WHO HIV clinical stage 2 Condition": + Elements."WHO HIV clinical stage 2 Condition" C where C.prevalenceInterval() starts on or before Today -define "WHO HIV clinical stage 2 (Care) Observation": - Elements."WHO HIV clinical stage 2 (Care) Observation" O +define "WHO HIV clinical stage 2 Observation": + Elements."WHO HIV clinical stage 2 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of WHO HIV clinical stage 2 (Care) */ +/* End of WHO HIV clinical stage 2 */ /* -@dataElement: HIV.D.DE189 - WHO HIV clinical stage 3 (Care) +@dataElement: HIV.D.DE189 - WHO HIV clinical stage 3 @activity: HIV.D8 Capture or update client history @description: Client is currently assessed to be at a clinical stage 3, based on clinical assessment and diagnostics */ // TODO: Replace placeholder with relevant CQL logic -define "WHO HIV clinical stage 3 (Care)": - exists "WHO HIV clinical stage 3 (Care) Condition" - or exists "WHO HIV clinical stage 3 (Care) Observation" -define "WHO HIV clinical stage 3 (Care) Condition": - Elements."WHO HIV clinical stage 3 (Care) Condition" C +define "WHO HIV clinical stage 3": + exists "WHO HIV clinical stage 3 Condition" + or exists "WHO HIV clinical stage 3 Observation" +define "WHO HIV clinical stage 3 Condition": + Elements."WHO HIV clinical stage 3 Condition" C where C.prevalenceInterval() starts on or before Today -define "WHO HIV clinical stage 3 (Care) Observation": - Elements."WHO HIV clinical stage 3 (Care) Observation" O +define "WHO HIV clinical stage 3 Observation": + Elements."WHO HIV clinical stage 3 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of WHO HIV clinical stage 3 (Care) */ +/* End of WHO HIV clinical stage 3 */ /* -@dataElement: HIV.D.DE190 - WHO HIV clinical stage 4 (Care) +@dataElement: HIV.D.DE190 - WHO HIV clinical stage 4 @activity: HIV.D8 Capture or update client history @description: Client is currently assessed to be at a clinical stage 4, based on clinical assessment and diagnostics */ // TODO: Replace placeholder with relevant CQL logic -define "WHO HIV clinical stage 4 (Care)": - exists "WHO HIV clinical stage 4 (Care) Condition" - or exists "WHO HIV clinical stage 4 (Care) Observation" -define "WHO HIV clinical stage 4 (Care) Condition": - Elements."WHO HIV clinical stage 4 (Care) Condition" C +define "WHO HIV clinical stage 4": + exists "WHO HIV clinical stage 4 Condition" + or exists "WHO HIV clinical stage 4 Observation" +define "WHO HIV clinical stage 4 Condition": + Elements."WHO HIV clinical stage 4 Condition" C where C.prevalenceInterval() starts on or before Today -define "WHO HIV clinical stage 4 (Care) Observation": - Elements."WHO HIV clinical stage 4 (Care) Observation" O +define "WHO HIV clinical stage 4 Observation": + Elements."WHO HIV clinical stage 4 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of WHO HIV clinical stage 4 (Care) */ +/* End of WHO HIV clinical stage 4 */ /* -@dataElement: HIV.D.DE195 - Date of scheduled review of viral load test results (Care) +@dataElement: HIV.D.DE195 - Date of scheduled review of viral load test results @activity: HIV.D10 Counsel returning client @description: Expected date when client's viral load test results will be returned and reviewed */ // TODO: Replace placeholder with relevant CQL logic -define "Date of scheduled review of viral load test results (Care)": - Elements."Date of scheduled review of viral load test results (Care)" O +define "Date of scheduled review of viral load test results": + Elements."Date of scheduled review of viral load test results" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -define "Date of scheduled review of viral load test results (Care) Value": - "Date of scheduled review of viral load test results (Care)" O +define "Date of scheduled review of viral load test results Value": + "Date of scheduled review of viral load test results" O return O.value -/* End of Date of scheduled review of viral load test results (Care) */ +/* End of Date of scheduled review of viral load test results */ /* -@dataElement: HIV.D.DE225 - Treatment failure (Care) +@dataElement: HIV.D.DE225 - Treatment failure @activity: HIV.D17 Check for signs of treatment failure @description: ART treatment failure */ // TODO: Replace placeholder with relevant CQL logic -define "Treatment failure (Care)": - exists "Treatment failure (Care) Observation" -define "Treatment failure (Care) Observation": - Elements."Treatment failure (Care) Observation" O +define "Treatment failure": + exists "Treatment failure Observation" +define "Treatment failure Observation": + Elements."Treatment failure Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Treatment failure (Care) */ +/* End of Treatment failure */ /* -@dataElement: HIV.D.DE226 - Clinical failure (Care) +@dataElement: HIV.D.DE226 - Clinical failure @activity: HIV.D17 Check for signs of treatment failure @description: New or recurrent clinical event indicating severe immunodeficiency in adults or advanced or severe immunodeficiency in children */ // TODO: Replace placeholder with relevant CQL logic -define "Clinical failure (Care)": - exists "Clinical failure (Care) Condition" - or exists "Clinical failure (Care) Observation" -define "Clinical failure (Care) Condition": - Elements."Clinical failure (Care) Condition" C +define "Clinical failure": + exists "Clinical failure Condition" + or exists "Clinical failure Observation" +define "Clinical failure Condition": + Elements."Clinical failure Condition" C where C.prevalenceInterval() starts on or before Today -define "Clinical failure (Care) Observation": - Elements."Clinical failure (Care) Observation" O +define "Clinical failure Observation": + Elements."Clinical failure Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Clinical failure (Care) */ +/* End of Clinical failure */ /* -@dataElement: HIV.D.DE227 - Immunological failure (Care) +@dataElement: HIV.D.DE227 - Immunological failure @activity: HIV.D17 Check for signs of treatment failure @description: CD4 count at or below 250 cells/mm3 following clinical failure */ // TODO: Replace placeholder with relevant CQL logic -define "Immunological failure (Care)": - exists "Immunological failure (Care) Condition" - or exists "Immunological failure (Care) Observation" -define "Immunological failure (Care) Condition": - Elements."Immunological failure (Care) Condition" C +define "Immunological failure": + exists "Immunological failure Condition" + or exists "Immunological failure Observation" +define "Immunological failure Condition": + Elements."Immunological failure Condition" C where C.prevalenceInterval() starts on or before Today -define "Immunological failure (Care) Observation": - Elements."Immunological failure (Care) Observation" O +define "Immunological failure Observation": + Elements."Immunological failure Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Immunological failure (Care) */ +/* End of Immunological failure */ /* -@dataElement: HIV.D.DE228 - Virological failure (Care) +@dataElement: HIV.D.DE228 - Virological failure @activity: HIV.D17 Check for signs of treatment failure @description: The inability to achieve or maintain viral suppression below a certain threshold indicated by viral load above 1000 copies/mL based on two consecutive viral load measurements in 3 months, with adherence support following the first viral load test */ // TODO: Replace placeholder with relevant CQL logic -define "Virological failure (Care)": - exists "Virological failure (Care) Condition" - or exists "Virological failure (Care) Observation" -define "Virological failure (Care) Condition": - Elements."Virological failure (Care) Condition" C +define "Virological failure": + exists "Virological failure Condition" + or exists "Virological failure Observation" +define "Virological failure Condition": + Elements."Virological failure Condition" C where C.prevalenceInterval() starts on or before Today -define "Virological failure (Care) Observation": - Elements."Virological failure (Care) Observation" O +define "Virological failure Observation": + Elements."Virological failure Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Virological failure (Care) */ +/* End of Virological failure */ /* -@dataElement: HIV.D.DE289 - WHO HIV clinical stage condition or symptom (Care) +@dataElement: HIV.D.DE289 - WHO HIV clinical stage condition or symptom @activity: HIV.D15 Determine clinical stage of HIV @description: New or recurrent clinical events used to categorize HIV disease severity based at baseline and follow up */ // TODO: Replace placeholder with relevant CQL logic -define "WHO HIV clinical stage condition or symptom (Care)": - exists "WHO HIV clinical stage condition or symptom (Care) Observation" -define "WHO HIV clinical stage condition or symptom (Care) Observation": - Elements."WHO HIV clinical stage condition or symptom (Care) Observation" O +define "WHO HIV clinical stage condition or symptom D.DE289": + exists "WHO HIV clinical stage condition or symptom D.DE289 Observation" +define "WHO HIV clinical stage condition or symptom D.DE289 Observation": + Elements."WHO HIV clinical stage condition or symptom D.DE289 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of WHO HIV clinical stage condition or symptom (Care) */ +/* End of WHO HIV clinical stage condition or symptom D.DE289 */ /* -@dataElement: HIV.D.DE290 - Asymptomatic (Care) +@dataElement: HIV.D.DE290 - Asymptomatic @activity: HIV.D15 Determine clinical stage of HIV @description: No HIV-related symptoms reported and no clinical signs on examination */ // TODO: Replace placeholder with relevant CQL logic -define "Asymptomatic (Care)": - exists "Asymptomatic (Care) Condition" - or exists "Asymptomatic (Care) Observation" -define "Asymptomatic (Care) Condition": - Elements."Asymptomatic (Care) Condition" C +define "Asymptomatic": + exists "Asymptomatic Condition" + or exists "Asymptomatic Observation" +define "Asymptomatic Condition": + Elements."Asymptomatic Condition" C where C.prevalenceInterval() starts on or before Today -define "Asymptomatic (Care) Observation": - Elements."Asymptomatic (Care) Observation" O +define "Asymptomatic Observation": + Elements."Asymptomatic Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Asymptomatic (Care) */ +/* End of Asymptomatic */ /* -@dataElement: HIV.D.DE291 - Persistent generalized lymphadenopathy (Care) +@dataElement: HIV.D.DE291 - Persistent generalized lymphadenopathy @activity: HIV.D15 Determine clinical stage of HIV @description: Persistent enlarged lymph nodes >1 cm at two or more non-contiguous sites (excluding inguinal) without known cause */ // TODO: Replace placeholder with relevant CQL logic -define "Persistent generalized lymphadenopathy (Care)": - exists "Persistent generalized lymphadenopathy (Care) Condition" - or exists "Persistent generalized lymphadenopathy (Care) Observation" -define "Persistent generalized lymphadenopathy (Care) Condition": - Elements."Persistent generalized lymphadenopathy (Care) Condition" C +define "Persistent generalized lymphadenopathy": + exists "Persistent generalized lymphadenopathy Condition" + or exists "Persistent generalized lymphadenopathy Observation" +define "Persistent generalized lymphadenopathy Condition": + Elements."Persistent generalized lymphadenopathy Condition" C where C.prevalenceInterval() starts on or before Today -define "Persistent generalized lymphadenopathy (Care) Observation": - Elements."Persistent generalized lymphadenopathy (Care) Observation" O +define "Persistent generalized lymphadenopathy Observation": + Elements."Persistent generalized lymphadenopathy Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Persistent generalized lymphadenopathy (Care) */ +/* End of Persistent generalized lymphadenopathy */ /* -@dataElement: HIV.D.DE292 - Moderate unexplained weight loss (Care) +@dataElement: HIV.D.DE292 - Moderate unexplained weight loss @activity: HIV.D15 Determine clinical stage of HIV @description: Moderate unexplained weight loss (<10% of presumed or measured body weight) */ // TODO: Replace placeholder with relevant CQL logic -define "Moderate unexplained weight loss (Care)": - exists "Moderate unexplained weight loss (Care) Condition" - or exists "Moderate unexplained weight loss (Care) Observation" -define "Moderate unexplained weight loss (Care) Condition": - Elements."Moderate unexplained weight loss (Care) Condition" C +define "Moderate unexplained weight loss": + exists "Moderate unexplained weight loss Condition" + or exists "Moderate unexplained weight loss Observation" +define "Moderate unexplained weight loss Condition": + Elements."Moderate unexplained weight loss Condition" C where C.prevalenceInterval() starts on or before Today -define "Moderate unexplained weight loss (Care) Observation": - Elements."Moderate unexplained weight loss (Care) Observation" O +define "Moderate unexplained weight loss Observation": + Elements."Moderate unexplained weight loss Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Moderate unexplained weight loss (Care) */ +/* End of Moderate unexplained weight loss */ /* -@dataElement: HIV.D.DE293 - Recurrent respiratory tract infections (Care) +@dataElement: HIV.D.DE293 - Recurrent respiratory tract infections @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include recurrent respiratory tract infections including sinusitis, tonsillitis, otitis media or pharyngitis */ // TODO: Replace placeholder with relevant CQL logic -define "Recurrent respiratory tract infections (Care)": - exists "Recurrent respiratory tract infections (Care) Condition" - or exists "Recurrent respiratory tract infections (Care) Observation" -define "Recurrent respiratory tract infections (Care) Condition": - Elements."Recurrent respiratory tract infections (Care) Condition" C +define "Recurrent respiratory tract infections": + exists "Recurrent respiratory tract infections Condition" + or exists "Recurrent respiratory tract infections Observation" +define "Recurrent respiratory tract infections Condition": + Elements."Recurrent respiratory tract infections Condition" C where C.prevalenceInterval() starts on or before Today -define "Recurrent respiratory tract infections (Care) Observation": - Elements."Recurrent respiratory tract infections (Care) Observation" O +define "Recurrent respiratory tract infections Observation": + Elements."Recurrent respiratory tract infections Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Recurrent respiratory tract infections (Care) */ +/* End of Recurrent respiratory tract infections */ /* -@dataElement: HIV.D.DE294 - Unexplained persistent hepatosplenomegaly (Care) +@dataElement: HIV.D.DE294 - Unexplained persistent hepatosplenomegaly @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include unexplained persistent hepatosplenomegaly */ // TODO: Replace placeholder with relevant CQL logic -define "Unexplained persistent hepatosplenomegaly (Care)": - exists "Unexplained persistent hepatosplenomegaly (Care) Condition" - or exists "Unexplained persistent hepatosplenomegaly (Care) Observation" -define "Unexplained persistent hepatosplenomegaly (Care) Condition": - Elements."Unexplained persistent hepatosplenomegaly (Care) Condition" C +define "Unexplained persistent hepatosplenomegaly": + exists "Unexplained persistent hepatosplenomegaly Condition" + or exists "Unexplained persistent hepatosplenomegaly Observation" +define "Unexplained persistent hepatosplenomegaly Condition": + Elements."Unexplained persistent hepatosplenomegaly Condition" C where C.prevalenceInterval() starts on or before Today -define "Unexplained persistent hepatosplenomegaly (Care) Observation": - Elements."Unexplained persistent hepatosplenomegaly (Care) Observation" O +define "Unexplained persistent hepatosplenomegaly Observation": + Elements."Unexplained persistent hepatosplenomegaly Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Unexplained persistent hepatosplenomegaly (Care) */ +/* End of Unexplained persistent hepatosplenomegaly */ /* -@dataElement: HIV.D.DE295 - Herpes zoster (Care) +@dataElement: HIV.D.DE295 - Herpes zoster @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include herpes zoster */ // TODO: Replace placeholder with relevant CQL logic -define "Herpes zoster (Care)": - exists "Herpes zoster (Care) Condition" - or exists "Herpes zoster (Care) Observation" -define "Herpes zoster (Care) Condition": - Elements."Herpes zoster (Care) Condition" C +define "Herpes zoster": + exists "Herpes zoster Condition" + or exists "Herpes zoster Observation" +define "Herpes zoster Condition": + Elements."Herpes zoster Condition" C where C.prevalenceInterval() starts on or before Today -define "Herpes zoster (Care) Observation": - Elements."Herpes zoster (Care) Observation" O +define "Herpes zoster Observation": + Elements."Herpes zoster Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Herpes zoster (Care) */ +/* End of Herpes zoster */ /* -@dataElement: HIV.D.DE296 - Angular cheilitis (Care) +@dataElement: HIV.D.DE296 - Angular cheilitis @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include angular cheilitis */ // TODO: Replace placeholder with relevant CQL logic -define "Angular cheilitis (Care)": - exists "Angular cheilitis (Care) Condition" - or exists "Angular cheilitis (Care) Observation" -define "Angular cheilitis (Care) Condition": - Elements."Angular cheilitis (Care) Condition" C +define "Angular cheilitis": + exists "Angular cheilitis Condition" + or exists "Angular cheilitis Observation" +define "Angular cheilitis Condition": + Elements."Angular cheilitis Condition" C where C.prevalenceInterval() starts on or before Today -define "Angular cheilitis (Care) Observation": - Elements."Angular cheilitis (Care) Observation" O +define "Angular cheilitis Observation": + Elements."Angular cheilitis Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Angular cheilitis (Care) */ +/* End of Angular cheilitis */ /* -@dataElement: HIV.D.DE297 - Linear gingival erythema (Care) +@dataElement: HIV.D.DE297 - Linear gingival erythema @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include linear gingival erythema */ // TODO: Replace placeholder with relevant CQL logic -define "Linear gingival erythema (Care)": - exists "Linear gingival erythema (Care) Condition" - or exists "Linear gingival erythema (Care) Observation" -define "Linear gingival erythema (Care) Condition": - Elements."Linear gingival erythema (Care) Condition" C +define "Linear gingival erythema": + exists "Linear gingival erythema Condition" + or exists "Linear gingival erythema Observation" +define "Linear gingival erythema Condition": + Elements."Linear gingival erythema Condition" C where C.prevalenceInterval() starts on or before Today -define "Linear gingival erythema (Care) Observation": - Elements."Linear gingival erythema (Care) Observation" O +define "Linear gingival erythema Observation": + Elements."Linear gingival erythema Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Linear gingival erythema (Care) */ +/* End of Linear gingival erythema */ /* -@dataElement: HIV.D.DE298 - Recurrent oral ulceration (Care) +@dataElement: HIV.D.DE298 - Recurrent oral ulceration @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include recurrent oral ulceration */ // TODO: Replace placeholder with relevant CQL logic -define "Recurrent oral ulceration (Care)": - exists "Recurrent oral ulceration (Care) Condition" - or exists "Recurrent oral ulceration (Care) Observation" -define "Recurrent oral ulceration (Care) Condition": - Elements."Recurrent oral ulceration (Care) Condition" C +define "Recurrent oral ulceration": + exists "Recurrent oral ulceration Condition" + or exists "Recurrent oral ulceration Observation" +define "Recurrent oral ulceration Condition": + Elements."Recurrent oral ulceration Condition" C where C.prevalenceInterval() starts on or before Today -define "Recurrent oral ulceration (Care) Observation": - Elements."Recurrent oral ulceration (Care) Observation" O +define "Recurrent oral ulceration Observation": + Elements."Recurrent oral ulceration Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Recurrent oral ulceration (Care) */ +/* End of Recurrent oral ulceration */ /* -@dataElement: HIV.D.DE299 - Papular pruritic eruption (Care) +@dataElement: HIV.D.DE299 - Papular pruritic eruption @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include papular pruritic eruption */ // TODO: Replace placeholder with relevant CQL logic -define "Papular pruritic eruption (Care)": - exists "Papular pruritic eruption (Care) Condition" - or exists "Papular pruritic eruption (Care) Observation" -define "Papular pruritic eruption (Care) Condition": - Elements."Papular pruritic eruption (Care) Condition" C +define "Papular pruritic eruption": + exists "Papular pruritic eruption Condition" + or exists "Papular pruritic eruption Observation" +define "Papular pruritic eruption Condition": + Elements."Papular pruritic eruption Condition" C where C.prevalenceInterval() starts on or before Today -define "Papular pruritic eruption (Care) Observation": - Elements."Papular pruritic eruption (Care) Observation" O +define "Papular pruritic eruption Observation": + Elements."Papular pruritic eruption Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Papular pruritic eruption (Care) */ +/* End of Papular pruritic eruption */ /* -@dataElement: HIV.D.DE300 - Fungal nail infections (Care) +@dataElement: HIV.D.DE300 - Fungal nail infections @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include fungal nail infections */ // TODO: Replace placeholder with relevant CQL logic -define "Fungal nail infections (Care)": - exists "Fungal nail infections (Care) Condition" - or exists "Fungal nail infections (Care) Observation" -define "Fungal nail infections (Care) Condition": - Elements."Fungal nail infections (Care) Condition" C +define "Fungal nail infections": + exists "Fungal nail infections Condition" + or exists "Fungal nail infections Observation" +define "Fungal nail infections Condition": + Elements."Fungal nail infections Condition" C where C.prevalenceInterval() starts on or before Today -define "Fungal nail infections (Care) Observation": - Elements."Fungal nail infections (Care) Observation" O +define "Fungal nail infections Observation": + Elements."Fungal nail infections Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Fungal nail infections (Care) */ +/* End of Fungal nail infections */ /* -@dataElement: HIV.D.DE301 - Seborrhoeic dermatitis (Care) +@dataElement: HIV.D.DE301 - Seborrhoeic dermatitis @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include seborrhoeic dermatitis */ // TODO: Replace placeholder with relevant CQL logic -define "Seborrhoeic dermatitis (Care)": - exists "Seborrhoeic dermatitis (Care) Condition" - or exists "Seborrhoeic dermatitis (Care) Observation" -define "Seborrhoeic dermatitis (Care) Condition": - Elements."Seborrhoeic dermatitis (Care) Condition" C +define "Seborrhoeic dermatitis": + exists "Seborrhoeic dermatitis Condition" + or exists "Seborrhoeic dermatitis Observation" +define "Seborrhoeic dermatitis Condition": + Elements."Seborrhoeic dermatitis Condition" C where C.prevalenceInterval() starts on or before Today -define "Seborrhoeic dermatitis (Care) Observation": - Elements."Seborrhoeic dermatitis (Care) Observation" O +define "Seborrhoeic dermatitis Observation": + Elements."Seborrhoeic dermatitis Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Seborrhoeic dermatitis (Care) */ +/* End of Seborrhoeic dermatitis */ /* -@dataElement: HIV.D.DE302 - Extensive wart virus infection (Care) +@dataElement: HIV.D.DE302 - Extensive wart virus infection @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include extensive wart virus infection */ // TODO: Replace placeholder with relevant CQL logic -define "Extensive wart virus infection (Care)": - exists "Extensive wart virus infection (Care) Condition" - or exists "Extensive wart virus infection (Care) Observation" -define "Extensive wart virus infection (Care) Condition": - Elements."Extensive wart virus infection (Care) Condition" C +define "Extensive wart virus infection": + exists "Extensive wart virus infection Condition" + or exists "Extensive wart virus infection Observation" +define "Extensive wart virus infection Condition": + Elements."Extensive wart virus infection Condition" C where C.prevalenceInterval() starts on or before Today -define "Extensive wart virus infection (Care) Observation": - Elements."Extensive wart virus infection (Care) Observation" O +define "Extensive wart virus infection Observation": + Elements."Extensive wart virus infection Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Extensive wart virus infection (Care) */ +/* End of Extensive wart virus infection */ /* -@dataElement: HIV.D.DE303 - Extensive molluscum contagiosum (Care) +@dataElement: HIV.D.DE303 - Extensive molluscum contagiosum @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include extensive molluscum contagiosum */ // TODO: Replace placeholder with relevant CQL logic -define "Extensive molluscum contagiosum (Care)": - exists "Extensive molluscum contagiosum (Care) Condition" - or exists "Extensive molluscum contagiosum (Care) Observation" -define "Extensive molluscum contagiosum (Care) Condition": - Elements."Extensive molluscum contagiosum (Care) Condition" C +define "Extensive molluscum contagiosum": + exists "Extensive molluscum contagiosum Condition" + or exists "Extensive molluscum contagiosum Observation" +define "Extensive molluscum contagiosum Condition": + Elements."Extensive molluscum contagiosum Condition" C where C.prevalenceInterval() starts on or before Today -define "Extensive molluscum contagiosum (Care) Observation": - Elements."Extensive molluscum contagiosum (Care) Observation" O +define "Extensive molluscum contagiosum Observation": + Elements."Extensive molluscum contagiosum Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Extensive molluscum contagiosum (Care) */ +/* End of Extensive molluscum contagiosum */ /* -@dataElement: HIV.D.DE304 - Unexplained persistent parotid enlargement (Care) +@dataElement: HIV.D.DE304 - Unexplained persistent parotid enlargement @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include unexplained persistent parotid enlargement */ // TODO: Replace placeholder with relevant CQL logic -define "Unexplained persistent parotid enlargement (Care)": - exists "Unexplained persistent parotid enlargement (Care) Condition" - or exists "Unexplained persistent parotid enlargement (Care) Observation" -define "Unexplained persistent parotid enlargement (Care) Condition": - Elements."Unexplained persistent parotid enlargement (Care) Condition" C +define "Unexplained persistent parotid enlargement": + exists "Unexplained persistent parotid enlargement Condition" + or exists "Unexplained persistent parotid enlargement Observation" +define "Unexplained persistent parotid enlargement Condition": + Elements."Unexplained persistent parotid enlargement Condition" C where C.prevalenceInterval() starts on or before Today -define "Unexplained persistent parotid enlargement (Care) Observation": - Elements."Unexplained persistent parotid enlargement (Care) Observation" O +define "Unexplained persistent parotid enlargement Observation": + Elements."Unexplained persistent parotid enlargement Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Unexplained persistent parotid enlargement (Care) */ +/* End of Unexplained persistent parotid enlargement */ /* -@dataElement: HIV.D.DE305 - Unexplained severe weight loss in adults (Care) +@dataElement: HIV.D.DE305 - Unexplained severe weight loss in adults @activity: HIV.D15 Determine clinical stage of HIV @description: Unexplained severe weight loss (>10% of presumed or measured body weight) */ // TODO: Replace placeholder with relevant CQL logic -define "Unexplained severe weight loss in adults (Care)": - exists "Unexplained severe weight loss in adults (Care) Condition" - or exists "Unexplained severe weight loss in adults (Care) Observation" -define "Unexplained severe weight loss in adults (Care) Condition": - Elements."Unexplained severe weight loss in adults (Care) Condition" C +define "Unexplained severe weight loss in adults": + exists "Unexplained severe weight loss in adults Condition" + or exists "Unexplained severe weight loss in adults Observation" +define "Unexplained severe weight loss in adults Condition": + Elements."Unexplained severe weight loss in adults Condition" C where C.prevalenceInterval() starts on or before Today -define "Unexplained severe weight loss in adults (Care) Observation": - Elements."Unexplained severe weight loss in adults (Care) Observation" O +define "Unexplained severe weight loss in adults Observation": + Elements."Unexplained severe weight loss in adults Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Unexplained severe weight loss in adults (Care) */ +/* End of Unexplained severe weight loss in adults */ /* -@dataElement: HIV.D.DE306 - Unexplained moderate malnutrition not adequately responding to standard therapy (Care) +@dataElement: HIV.D.DE306 - Unexplained moderate malnutrition not adequately responding to standard therapy @activity: HIV.D15 Determine clinical stage of HIV @description: Defined as weight-for-height < - 2 z-score or mid-upper arm circumference 115 mm to <125 mm. For children younger than five years of age: stunting is defined as severe acute malnutrition - either weight for height < -3 z-score or mid-upper arm circumference <115 mm or the presence of oedema. */ // TODO: Replace placeholder with relevant CQL logic -define "Unexplained moderate malnutrition not adequately responding to standard therapy (Care)": - exists "Unexplained moderate malnutrition not adequately responding to standard therapy (Care) Condition" - or exists "Unexplained moderate malnutrition not adequately responding to standard therapy (Care) Observation" -define "Unexplained moderate malnutrition not adequately responding to standard therapy (Care) Condition": - Elements."Unexplained moderate malnutrition not adequately responding to standard therapy (Care) Condition" C +define "Unexplained moderate malnutrition not adequately responding to standard therapy": + exists "Unexplained moderate malnutrition not adequately responding to standard therapy Condition" + or exists "Unexplained moderate malnutrition not adequately responding to standard therapy Observation" +define "Unexplained moderate malnutrition not adequately responding to standard therapy Condition": + Elements."Unexplained moderate malnutrition not adequately responding to standard therapy Condition" C where C.prevalenceInterval() starts on or before Today -define "Unexplained moderate malnutrition not adequately responding to standard therapy (Care) Observation": - Elements."Unexplained moderate malnutrition not adequately responding to standard therapy (Care) Observation" O +define "Unexplained moderate malnutrition not adequately responding to standard therapy Observation": + Elements."Unexplained moderate malnutrition not adequately responding to standard therapy Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Unexplained moderate malnutrition not adequately responding to standard therapy (Care) */ +/* End of Unexplained moderate malnutrition not adequately responding to standard therapy */ /* -@dataElement: HIV.D.DE307 - Unexplained chronic diarrhoea for longer than 1 month (Care) +@dataElement: HIV.D.DE307 - Unexplained chronic diarrhoea for longer than 1 month @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include unexplained chronic diarrhoea for longer than 1 month */ // TODO: Replace placeholder with relevant CQL logic -define "Unexplained chronic diarrhoea for longer than 1 month (Care)": - exists "Unexplained chronic diarrhoea for longer than 1 month (Care) Condition" - or exists "Unexplained chronic diarrhoea for longer than 1 month (Care) Observation" -define "Unexplained chronic diarrhoea for longer than 1 month (Care) Condition": - Elements."Unexplained chronic diarrhoea for longer than 1 month (Care) Condition" C +define "Unexplained chronic diarrhoea for longer than 1 month": + exists "Unexplained chronic diarrhoea for longer than 1 month Condition" + or exists "Unexplained chronic diarrhoea for longer than 1 month Observation" +define "Unexplained chronic diarrhoea for longer than 1 month Condition": + Elements."Unexplained chronic diarrhoea for longer than 1 month Condition" C where C.prevalenceInterval() starts on or before Today -define "Unexplained chronic diarrhoea for longer than 1 month (Care) Observation": - Elements."Unexplained chronic diarrhoea for longer than 1 month (Care) Observation" O +define "Unexplained chronic diarrhoea for longer than 1 month Observation": + Elements."Unexplained chronic diarrhoea for longer than 1 month Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Unexplained chronic diarrhoea for longer than 1 month (Care) */ +/* End of Unexplained chronic diarrhoea for longer than 1 month */ /* -@dataElement: HIV.D.DE308 - Unexplained persistent diarrhoea 14 days or more (Care) +@dataElement: HIV.D.DE308 - Unexplained persistent diarrhoea 14 days or more @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include unexplained persistent diarrhoea (14 days or more) */ // TODO: Replace placeholder with relevant CQL logic -define "Unexplained persistent diarrhoea 14 days or more (Care)": - exists "Unexplained persistent diarrhoea 14 days or more (Care) Condition" - or exists "Unexplained persistent diarrhoea 14 days or more (Care) Observation" -define "Unexplained persistent diarrhoea 14 days or more (Care) Condition": - Elements."Unexplained persistent diarrhoea 14 days or more (Care) Condition" C +define "Unexplained persistent diarrhoea 14 days or more": + exists "Unexplained persistent diarrhoea 14 days or more Condition" + or exists "Unexplained persistent diarrhoea 14 days or more Observation" +define "Unexplained persistent diarrhoea 14 days or more Condition": + Elements."Unexplained persistent diarrhoea 14 days or more Condition" C where C.prevalenceInterval() starts on or before Today -define "Unexplained persistent diarrhoea 14 days or more (Care) Observation": - Elements."Unexplained persistent diarrhoea 14 days or more (Care) Observation" O +define "Unexplained persistent diarrhoea 14 days or more Observation": + Elements."Unexplained persistent diarrhoea 14 days or more Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Unexplained persistent diarrhoea 14 days or more (Care) */ +/* End of Unexplained persistent diarrhoea 14 days or more */ /* -@dataElement: HIV.D.DE309 - Unexplained persistent fever above 37.5 C, intermittent or constant, for longer than one 1 month (Care) +@dataElement: HIV.D.DE309 - Unexplained persistent fever above 37.5 C, intermittent or constant, for longer than one 1 month @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include unexplained persistent fever (above 37.5 C, intermittent or constant, for longer than one 1 month) */ // TODO: Replace placeholder with relevant CQL logic -define "Unexplained persistent fever above 37.5 C, intermittent or constant, for longer than one 1 month (Care)": - exists "Unexplained persistent fever above 37.5 C, intermittent or constant, for longer than one 1 month (Care) Condition" - or exists "Unexplained persistent fever above 37.5 C, intermittent or constant, for longer than one 1 month (Care) Observation" -define "Unexplained persistent fever above 37.5 C, intermittent or constant, for longer than one 1 month (Care) Condition": - Elements."Unexplained persistent fever above 37.5 C, intermittent or constant, for longer than one 1 month (Care) Condition" C +define "Unexplained persistent fever above 37.5 C, intermittent or constant, for longer than one 1 month": + exists "Unexplained persistent fever above 37.5 C, intermittent or constant, for longer than one 1 month Condition" + or exists "Unexplained persistent fever above 37.5 C, intermittent or constant, for longer than one 1 month Observation" +define "Unexplained persistent fever above 37.5 C, intermittent or constant, for longer than one 1 month Condition": + Elements."Unexplained persistent fever above 37.5 C, intermittent or constant, for longer than one 1 month Condition" C where C.prevalenceInterval() starts on or before Today -define "Unexplained persistent fever above 37.5 C, intermittent or constant, for longer than one 1 month (Care) Observation": - Elements."Unexplained persistent fever above 37.5 C, intermittent or constant, for longer than one 1 month (Care) Observation" O +define "Unexplained persistent fever above 37.5 C, intermittent or constant, for longer than one 1 month Observation": + Elements."Unexplained persistent fever above 37.5 C, intermittent or constant, for longer than one 1 month Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Unexplained persistent fever above 37.5 C, intermittent or constant, for longer than one 1 month (Care) */ +/* End of Unexplained persistent fever above 37.5 C, intermittent or constant, for longer than one 1 month */ /* -@dataElement: HIV.D.DE310 - Persistent oral candidiasis (Care) +@dataElement: HIV.D.DE310 - Persistent oral candidiasis @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include persistent oral candidiasis */ // TODO: Replace placeholder with relevant CQL logic -define "Persistent oral candidiasis (Care)": - exists "Persistent oral candidiasis (Care) Condition" - or exists "Persistent oral candidiasis (Care) Observation" -define "Persistent oral candidiasis (Care) Condition": - Elements."Persistent oral candidiasis (Care) Condition" C +define "Persistent oral candidiasis": + exists "Persistent oral candidiasis Condition" + or exists "Persistent oral candidiasis Observation" +define "Persistent oral candidiasis Condition": + Elements."Persistent oral candidiasis Condition" C where C.prevalenceInterval() starts on or before Today -define "Persistent oral candidiasis (Care) Observation": - Elements."Persistent oral candidiasis (Care) Observation" O +define "Persistent oral candidiasis Observation": + Elements."Persistent oral candidiasis Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Persistent oral candidiasis (Care) */ +/* End of Persistent oral candidiasis */ /* -@dataElement: HIV.D.DE311 - Oral hairy leukoplakia (Care) +@dataElement: HIV.D.DE311 - Oral hairy leukoplakia @activity: HIV.D15 Determine clinical stage of HIV @description: Client has fine white small linear or corrugated lesions on lateral borders of the tongue that do not scrape off */ // TODO: Replace placeholder with relevant CQL logic -define "Oral hairy leukoplakia (Care)": - exists "Oral hairy leukoplakia (Care) Condition" - or exists "Oral hairy leukoplakia (Care) Observation" -define "Oral hairy leukoplakia (Care) Condition": - Elements."Oral hairy leukoplakia (Care) Condition" C +define "Oral hairy leukoplakia": + exists "Oral hairy leukoplakia Condition" + or exists "Oral hairy leukoplakia Observation" +define "Oral hairy leukoplakia Condition": + Elements."Oral hairy leukoplakia Condition" C where C.prevalenceInterval() starts on or before Today -define "Oral hairy leukoplakia (Care) Observation": - Elements."Oral hairy leukoplakia (Care) Observation" O +define "Oral hairy leukoplakia Observation": + Elements."Oral hairy leukoplakia Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Oral hairy leukoplakia (Care) */ +/* End of Oral hairy leukoplakia */ /* -@dataElement: HIV.D.DE312 - Pulmonary TB (Care) +@dataElement: HIV.D.DE312 - Pulmonary TB @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include pulmonary TB */ // TODO: Replace placeholder with relevant CQL logic -define "Pulmonary TB (Care)": - exists "Pulmonary TB (Care) Condition" - or exists "Pulmonary TB (Care) Observation" -define "Pulmonary TB (Care) Condition": - Elements."Pulmonary TB (Care) Condition" C +define "Pulmonary TB D.DE312": + exists "Pulmonary TB D.DE312 Condition" + or exists "Pulmonary TB D.DE312 Observation" +define "Pulmonary TB D.DE312 Condition": + Elements."Pulmonary TB D.DE312 Condition" C where C.prevalenceInterval() starts on or before Today -define "Pulmonary TB (Care) Observation": - Elements."Pulmonary TB (Care) Observation" O +define "Pulmonary TB D.DE312 Observation": + Elements."Pulmonary TB D.DE312 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Pulmonary TB (Care) */ +/* End of Pulmonary TB D.DE312 */ /* -@dataElement: HIV.D.DE313 - Lymph node TB (Care) +@dataElement: HIV.D.DE313 - Lymph node TB @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include lymph node TB */ // TODO: Replace placeholder with relevant CQL logic -define "Lymph node TB (Care)": - exists "Lymph node TB (Care) Condition" - or exists "Lymph node TB (Care) Observation" -define "Lymph node TB (Care) Condition": - Elements."Lymph node TB (Care) Condition" C +define "Lymph node TB D.DE313": + exists "Lymph node TB D.DE313 Condition" + or exists "Lymph node TB D.DE313 Observation" +define "Lymph node TB D.DE313 Condition": + Elements."Lymph node TB D.DE313 Condition" C where C.prevalenceInterval() starts on or before Today -define "Lymph node TB (Care) Observation": - Elements."Lymph node TB (Care) Observation" O +define "Lymph node TB D.DE313 Observation": + Elements."Lymph node TB D.DE313 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Lymph node TB (Care) */ +/* End of Lymph node TB D.DE313 */ /* -@dataElement: HIV.D.DE314 - Severe bacterial infections such as pneumonia, empyema, pyomyositis, bone or joint infection, meningitis, bacteraemia (Care) +@dataElement: HIV.D.DE314 - Severe bacterial infections such as pneumonia, empyema, pyomyositis, bone or joint infection, meningitis, bacteraemia @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include severe bacterial infections (such as pneumonia, empyema, pyomyositis, bone or joint infection, meningitis, bacteraemia) */ // TODO: Replace placeholder with relevant CQL logic -define "Severe bacterial infections such as pneumonia, empyema, pyomyositis, bone or joint infection, meningitis, bacteraemia (Care)": - exists "Severe bacterial infections such as pneumonia, empyema, pyomyositis, bone or joint infection, meningitis, bacteraemia (Care) Condition" - or exists "Severe bacterial infections such as pneumonia, empyema, pyomyositis, bone or joint infection, meningitis, bacteraemia (Care) Observation" -define "Severe bacterial infections such as pneumonia, empyema, pyomyositis, bone or joint infection, meningitis, bacteraemia (Care) Condition": - Elements."Severe bacterial infections such as pneumonia, empyema, pyomyositis, bone or joint infection, meningitis, bacteraemia (Care) Condition" C +define "Severe bacterial infections such as pneumonia, empyema, pyomyositis, bone or joint infection, meningitis, bacteraemia": + exists "Severe bacterial infections such as pneumonia, empyema, pyomyositis, bone or joint infection, meningitis, bacteraemia Condition" + or exists "Severe bacterial infections such as pneumonia, empyema, pyomyositis, bone or joint infection, meningitis, bacteraemia Observation" +define "Severe bacterial infections such as pneumonia, empyema, pyomyositis, bone or joint infection, meningitis, bacteraemia Condition": + Elements."Severe bacterial infections such as pneumonia, empyema, pyomyositis, bone or joint infection, meningitis, bacteraemia Condition" C where C.prevalenceInterval() starts on or before Today -define "Severe bacterial infections such as pneumonia, empyema, pyomyositis, bone or joint infection, meningitis, bacteraemia (Care) Observation": - Elements."Severe bacterial infections such as pneumonia, empyema, pyomyositis, bone or joint infection, meningitis, bacteraemia (Care) Observation" O +define "Severe bacterial infections such as pneumonia, empyema, pyomyositis, bone or joint infection, meningitis, bacteraemia Observation": + Elements."Severe bacterial infections such as pneumonia, empyema, pyomyositis, bone or joint infection, meningitis, bacteraemia Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Severe bacterial infections such as pneumonia, empyema, pyomyositis, bone or joint infection, meningitis, bacteraemia (Care) */ +/* End of Severe bacterial infections such as pneumonia, empyema, pyomyositis, bone or joint infection, meningitis, bacteraemia */ /* -@dataElement: HIV.D.DE315 - Severe recurrent bacterial pneumonia (Care) +@dataElement: HIV.D.DE315 - Severe recurrent bacterial pneumonia @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include severe recurrent bacterial pneumonia */ // TODO: Replace placeholder with relevant CQL logic -define "Severe recurrent bacterial pneumonia (Care)": - exists "Severe recurrent bacterial pneumonia (Care) Condition" - or exists "Severe recurrent bacterial pneumonia (Care) Observation" -define "Severe recurrent bacterial pneumonia (Care) Condition": - Elements."Severe recurrent bacterial pneumonia (Care) Condition" C +define "Severe recurrent bacterial pneumonia": + exists "Severe recurrent bacterial pneumonia Condition" + or exists "Severe recurrent bacterial pneumonia Observation" +define "Severe recurrent bacterial pneumonia Condition": + Elements."Severe recurrent bacterial pneumonia Condition" C where C.prevalenceInterval() starts on or before Today -define "Severe recurrent bacterial pneumonia (Care) Observation": - Elements."Severe recurrent bacterial pneumonia (Care) Observation" O +define "Severe recurrent bacterial pneumonia Observation": + Elements."Severe recurrent bacterial pneumonia Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Severe recurrent bacterial pneumonia (Care) */ +/* End of Severe recurrent bacterial pneumonia */ /* -@dataElement: HIV.D.DE316 - Acute necrotizing ulcerative stomatitis (Care) +@dataElement: HIV.D.DE316 - Acute necrotizing ulcerative stomatitis @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include acute necrotizing ulcerative stomatitis */ // TODO: Replace placeholder with relevant CQL logic -define "Acute necrotizing ulcerative stomatitis (Care)": - exists "Acute necrotizing ulcerative stomatitis (Care) Condition" - or exists "Acute necrotizing ulcerative stomatitis (Care) Observation" -define "Acute necrotizing ulcerative stomatitis (Care) Condition": - Elements."Acute necrotizing ulcerative stomatitis (Care) Condition" C +define "Acute necrotizing ulcerative stomatitis": + exists "Acute necrotizing ulcerative stomatitis Condition" + or exists "Acute necrotizing ulcerative stomatitis Observation" +define "Acute necrotizing ulcerative stomatitis Condition": + Elements."Acute necrotizing ulcerative stomatitis Condition" C where C.prevalenceInterval() starts on or before Today -define "Acute necrotizing ulcerative stomatitis (Care) Observation": - Elements."Acute necrotizing ulcerative stomatitis (Care) Observation" O +define "Acute necrotizing ulcerative stomatitis Observation": + Elements."Acute necrotizing ulcerative stomatitis Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Acute necrotizing ulcerative stomatitis (Care) */ +/* End of Acute necrotizing ulcerative stomatitis */ /* -@dataElement: HIV.D.DE317 - Acute necrotizing ulcerative gingivitis (Care) +@dataElement: HIV.D.DE317 - Acute necrotizing ulcerative gingivitis @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include acute necrotizing ulcerative gingivitis */ // TODO: Replace placeholder with relevant CQL logic -define "Acute necrotizing ulcerative gingivitis (Care)": - exists "Acute necrotizing ulcerative gingivitis (Care) Condition" - or exists "Acute necrotizing ulcerative gingivitis (Care) Observation" -define "Acute necrotizing ulcerative gingivitis (Care) Condition": - Elements."Acute necrotizing ulcerative gingivitis (Care) Condition" C +define "Acute necrotizing ulcerative gingivitis": + exists "Acute necrotizing ulcerative gingivitis Condition" + or exists "Acute necrotizing ulcerative gingivitis Observation" +define "Acute necrotizing ulcerative gingivitis Condition": + Elements."Acute necrotizing ulcerative gingivitis Condition" C where C.prevalenceInterval() starts on or before Today -define "Acute necrotizing ulcerative gingivitis (Care) Observation": - Elements."Acute necrotizing ulcerative gingivitis (Care) Observation" O +define "Acute necrotizing ulcerative gingivitis Observation": + Elements."Acute necrotizing ulcerative gingivitis Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Acute necrotizing ulcerative gingivitis (Care) */ +/* End of Acute necrotizing ulcerative gingivitis */ /* -@dataElement: HIV.D.DE318 - Acute necrotizing ulcerative periodontitis (Care) +@dataElement: HIV.D.DE318 - Acute necrotizing ulcerative periodontitis @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include acute necrotizing ulcerative periodontitis */ // TODO: Replace placeholder with relevant CQL logic -define "Acute necrotizing ulcerative periodontitis (Care)": - exists "Acute necrotizing ulcerative periodontitis (Care) Condition" - or exists "Acute necrotizing ulcerative periodontitis (Care) Observation" -define "Acute necrotizing ulcerative periodontitis (Care) Condition": - Elements."Acute necrotizing ulcerative periodontitis (Care) Condition" C +define "Acute necrotizing ulcerative periodontitis": + exists "Acute necrotizing ulcerative periodontitis Condition" + or exists "Acute necrotizing ulcerative periodontitis Observation" +define "Acute necrotizing ulcerative periodontitis Condition": + Elements."Acute necrotizing ulcerative periodontitis Condition" C where C.prevalenceInterval() starts on or before Today -define "Acute necrotizing ulcerative periodontitis (Care) Observation": - Elements."Acute necrotizing ulcerative periodontitis (Care) Observation" O +define "Acute necrotizing ulcerative periodontitis Observation": + Elements."Acute necrotizing ulcerative periodontitis Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Acute necrotizing ulcerative periodontitis (Care) */ +/* End of Acute necrotizing ulcerative periodontitis */ /* -@dataElement: HIV.D.DE319 - Unexplained anaemia <8 g/dL (Care) +@dataElement: HIV.D.DE319 - Unexplained anaemia <8 g/dL @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include unexplained anaemia (<8 g/dL) */ // TODO: Replace placeholder with relevant CQL logic -define "Unexplained anaemia <8 g/dL (Care)": - exists "Unexplained anaemia <8 g/dL (Care) Condition" - or exists "Unexplained anaemia <8 g/dL (Care) Observation" -define "Unexplained anaemia <8 g/dL (Care) Condition": - Elements."Unexplained anaemia <8 g/dL (Care) Condition" C +define "Unexplained anaemia <8 g/dL": + exists "Unexplained anaemia <8 g/dL Condition" + or exists "Unexplained anaemia <8 g/dL Observation" +define "Unexplained anaemia <8 g/dL Condition": + Elements."Unexplained anaemia <8 g/dL Condition" C where C.prevalenceInterval() starts on or before Today -define "Unexplained anaemia <8 g/dL (Care) Observation": - Elements."Unexplained anaemia <8 g/dL (Care) Observation" O +define "Unexplained anaemia <8 g/dL Observation": + Elements."Unexplained anaemia <8 g/dL Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Unexplained anaemia <8 g/dL (Care) */ +/* End of Unexplained anaemia <8 g/dL */ /* -@dataElement: HIV.D.DE320 - Neutropaenia <0.5 x 10^9/L (Care) +@dataElement: HIV.D.DE320 - Neutropaenia <0.5 x 10^9/L @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include neutropaenia (<0.5 x 10^9/L) */ // TODO: Replace placeholder with relevant CQL logic -define "Neutropaenia <0.5 x 10^9/L (Care)": - exists "Neutropaenia <0.5 x 10^9/L (Care) Condition" - or exists "Neutropaenia <0.5 x 10^9/L (Care) Observation" -define "Neutropaenia <0.5 x 10^9/L (Care) Condition": - Elements."Neutropaenia <0.5 x 10^9/L (Care) Condition" C +define "Neutropaenia <0.5 x 10^9/L": + exists "Neutropaenia <0.5 x 10^9/L Condition" + or exists "Neutropaenia <0.5 x 10^9/L Observation" +define "Neutropaenia <0.5 x 10^9/L Condition": + Elements."Neutropaenia <0.5 x 10^9/L Condition" C where C.prevalenceInterval() starts on or before Today -define "Neutropaenia <0.5 x 10^9/L (Care) Observation": - Elements."Neutropaenia <0.5 x 10^9/L (Care) Observation" O +define "Neutropaenia <0.5 x 10^9/L Observation": + Elements."Neutropaenia <0.5 x 10^9/L Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Neutropaenia <0.5 x 10^9/L (Care) */ +/* End of Neutropaenia <0.5 x 10^9/L */ /* -@dataElement: HIV.D.DE321 - Chronic thrombocytopaenia <50 x 10^9/L (Care) +@dataElement: HIV.D.DE321 - Chronic thrombocytopaenia <50 x 10^9/L @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include chronic thrombocytopaenia (<50 x 10^9/L) */ // TODO: Replace placeholder with relevant CQL logic -define "Chronic thrombocytopaenia <50 x 10^9/L (Care)": - exists "Chronic thrombocytopaenia <50 x 10^9/L (Care) Condition" - or exists "Chronic thrombocytopaenia <50 x 10^9/L (Care) Observation" -define "Chronic thrombocytopaenia <50 x 10^9/L (Care) Condition": - Elements."Chronic thrombocytopaenia <50 x 10^9/L (Care) Condition" C +define "Chronic thrombocytopaenia <50 x 10^9/L": + exists "Chronic thrombocytopaenia <50 x 10^9/L Condition" + or exists "Chronic thrombocytopaenia <50 x 10^9/L Observation" +define "Chronic thrombocytopaenia <50 x 10^9/L Condition": + Elements."Chronic thrombocytopaenia <50 x 10^9/L Condition" C where C.prevalenceInterval() starts on or before Today -define "Chronic thrombocytopaenia <50 x 10^9/L (Care) Observation": - Elements."Chronic thrombocytopaenia <50 x 10^9/L (Care) Observation" O +define "Chronic thrombocytopaenia <50 x 10^9/L Observation": + Elements."Chronic thrombocytopaenia <50 x 10^9/L Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Chronic thrombocytopaenia <50 x 10^9/L (Care) */ +/* End of Chronic thrombocytopaenia <50 x 10^9/L */ /* -@dataElement: HIV.D.DE322 - Symptomatic lymphoid interstitial pneumonitis (Care) +@dataElement: HIV.D.DE322 - Symptomatic lymphoid interstitial pneumonitis @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include symptomatic lymphoid interstitial pneumonitis */ // TODO: Replace placeholder with relevant CQL logic -define "Symptomatic lymphoid interstitial pneumonitis (Care)": - exists "Symptomatic lymphoid interstitial pneumonitis (Care) Condition" - or exists "Symptomatic lymphoid interstitial pneumonitis (Care) Observation" -define "Symptomatic lymphoid interstitial pneumonitis (Care) Condition": - Elements."Symptomatic lymphoid interstitial pneumonitis (Care) Condition" C +define "Symptomatic lymphoid interstitial pneumonitis": + exists "Symptomatic lymphoid interstitial pneumonitis Condition" + or exists "Symptomatic lymphoid interstitial pneumonitis Observation" +define "Symptomatic lymphoid interstitial pneumonitis Condition": + Elements."Symptomatic lymphoid interstitial pneumonitis Condition" C where C.prevalenceInterval() starts on or before Today -define "Symptomatic lymphoid interstitial pneumonitis (Care) Observation": - Elements."Symptomatic lymphoid interstitial pneumonitis (Care) Observation" O +define "Symptomatic lymphoid interstitial pneumonitis Observation": + Elements."Symptomatic lymphoid interstitial pneumonitis Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Symptomatic lymphoid interstitial pneumonitis (Care) */ +/* End of Symptomatic lymphoid interstitial pneumonitis */ /* -@dataElement: HIV.D.DE323 - Chronic HIV-associated lung disease, including bronchiectasis (Care) +@dataElement: HIV.D.DE323 - Chronic HIV-associated lung disease, including bronchiectasis @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include chronic HIV-associated lung disease, including bronchiectasis */ // TODO: Replace placeholder with relevant CQL logic -define "Chronic HIV-associated lung disease, including bronchiectasis (Care)": - exists "Chronic HIV-associated lung disease, including bronchiectasis (Care) Condition" - or exists "Chronic HIV-associated lung disease, including bronchiectasis (Care) Observation" -define "Chronic HIV-associated lung disease, including bronchiectasis (Care) Condition": - Elements."Chronic HIV-associated lung disease, including bronchiectasis (Care) Condition" C +define "Chronic HIV-associated lung disease, including bronchiectasis": + exists "Chronic HIV-associated lung disease, including bronchiectasis Condition" + or exists "Chronic HIV-associated lung disease, including bronchiectasis Observation" +define "Chronic HIV-associated lung disease, including bronchiectasis Condition": + Elements."Chronic HIV-associated lung disease, including bronchiectasis Condition" C where C.prevalenceInterval() starts on or before Today -define "Chronic HIV-associated lung disease, including bronchiectasis (Care) Observation": - Elements."Chronic HIV-associated lung disease, including bronchiectasis (Care) Observation" O +define "Chronic HIV-associated lung disease, including bronchiectasis Observation": + Elements."Chronic HIV-associated lung disease, including bronchiectasis Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Chronic HIV-associated lung disease, including bronchiectasis (Care) */ +/* End of Chronic HIV-associated lung disease, including bronchiectasis */ /* -@dataElement: HIV.D.DE324 - HIV wasting syndrome (Care) +@dataElement: HIV.D.DE324 - HIV wasting syndrome @activity: HIV.D15 Determine clinical stage of HIV @description: Unexplained involuntary weight loss (>10% baseline body weight), with obvious wasting or body mass index <18.5; PLUS EITHER unexplained chronic reported for longer than one month; OR reports of fever or night sweats for more than one month without other cause and lack of response to antibiotics or antimalarial agents; malaria must be excluded in malarious areas. */ // TODO: Replace placeholder with relevant CQL logic -define "HIV wasting syndrome (Care)": - exists "HIV wasting syndrome (Care) Condition" - or exists "HIV wasting syndrome (Care) Observation" -define "HIV wasting syndrome (Care) Condition": - Elements."HIV wasting syndrome (Care) Condition" C +define "HIV wasting syndrome": + exists "HIV wasting syndrome Condition" + or exists "HIV wasting syndrome Observation" +define "HIV wasting syndrome Condition": + Elements."HIV wasting syndrome Condition" C where C.prevalenceInterval() starts on or before Today -define "HIV wasting syndrome (Care) Observation": - Elements."HIV wasting syndrome (Care) Observation" O +define "HIV wasting syndrome Observation": + Elements."HIV wasting syndrome Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of HIV wasting syndrome (Care) */ +/* End of HIV wasting syndrome */ /* -@dataElement: HIV.D.DE325 - Unexplained severe wasting not responding to standard therapy (Care) +@dataElement: HIV.D.DE325 - Unexplained severe wasting not responding to standard therapy @activity: HIV.D15 Determine clinical stage of HIV @description: Client has unexplained severe wasting not responding to standard therapy . For under 5 years old, defined as weight-for-height < -3 z-score */ // TODO: Replace placeholder with relevant CQL logic -define "Unexplained severe wasting not responding to standard therapy (Care)": - exists "Unexplained severe wasting not responding to standard therapy (Care) Condition" - or exists "Unexplained severe wasting not responding to standard therapy (Care) Observation" -define "Unexplained severe wasting not responding to standard therapy (Care) Condition": - Elements."Unexplained severe wasting not responding to standard therapy (Care) Condition" C +define "Unexplained severe wasting not responding to standard therapy": + exists "Unexplained severe wasting not responding to standard therapy Condition" + or exists "Unexplained severe wasting not responding to standard therapy Observation" +define "Unexplained severe wasting not responding to standard therapy Condition": + Elements."Unexplained severe wasting not responding to standard therapy Condition" C where C.prevalenceInterval() starts on or before Today -define "Unexplained severe wasting not responding to standard therapy (Care) Observation": - Elements."Unexplained severe wasting not responding to standard therapy (Care) Observation" O +define "Unexplained severe wasting not responding to standard therapy Observation": + Elements."Unexplained severe wasting not responding to standard therapy Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Unexplained severe wasting not responding to standard therapy (Care) */ +/* End of Unexplained severe wasting not responding to standard therapy */ /* -@dataElement: HIV.D.DE326 - Unexplained stunting not responding to standard therapy (Care) +@dataElement: HIV.D.DE326 - Unexplained stunting not responding to standard therapy @activity: HIV.D15 Determine clinical stage of HIV @description: Client has unexplained stunting not responding to standard therapy . For under 5 years old, defined as length-for- age/height-for-age < -2 z-score */ // TODO: Replace placeholder with relevant CQL logic -define "Unexplained stunting not responding to standard therapy (Care)": - exists "Unexplained stunting not responding to standard therapy (Care) Condition" - or exists "Unexplained stunting not responding to standard therapy (Care) Observation" -define "Unexplained stunting not responding to standard therapy (Care) Condition": - Elements."Unexplained stunting not responding to standard therapy (Care) Condition" C +define "Unexplained stunting not responding to standard therapy": + exists "Unexplained stunting not responding to standard therapy Condition" + or exists "Unexplained stunting not responding to standard therapy Observation" +define "Unexplained stunting not responding to standard therapy Condition": + Elements."Unexplained stunting not responding to standard therapy Condition" C where C.prevalenceInterval() starts on or before Today -define "Unexplained stunting not responding to standard therapy (Care) Observation": - Elements."Unexplained stunting not responding to standard therapy (Care) Observation" O +define "Unexplained stunting not responding to standard therapy Observation": + Elements."Unexplained stunting not responding to standard therapy Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Unexplained stunting not responding to standard therapy (Care) */ +/* End of Unexplained stunting not responding to standard therapy */ /* -@dataElement: HIV.D.DE327 - Unexplained severe malnutrition not responding to standard therapy (Care) +@dataElement: HIV.D.DE327 - Unexplained severe malnutrition not responding to standard therapy @activity: HIV.D15 Determine clinical stage of HIV @description: Client has unexplained severe malnutrition not responding to standard therapy . For under 5 years old, weight for height < -3 z-score or mid-upper arm circumference <115 mm or the presence of oedema */ // TODO: Replace placeholder with relevant CQL logic -define "Unexplained severe malnutrition not responding to standard therapy (Care)": - exists "Unexplained severe malnutrition not responding to standard therapy (Care) Condition" - or exists "Unexplained severe malnutrition not responding to standard therapy (Care) Observation" -define "Unexplained severe malnutrition not responding to standard therapy (Care) Condition": - Elements."Unexplained severe malnutrition not responding to standard therapy (Care) Condition" C +define "Unexplained severe malnutrition not responding to standard therapy": + exists "Unexplained severe malnutrition not responding to standard therapy Condition" + or exists "Unexplained severe malnutrition not responding to standard therapy Observation" +define "Unexplained severe malnutrition not responding to standard therapy Condition": + Elements."Unexplained severe malnutrition not responding to standard therapy Condition" C where C.prevalenceInterval() starts on or before Today -define "Unexplained severe malnutrition not responding to standard therapy (Care) Observation": - Elements."Unexplained severe malnutrition not responding to standard therapy (Care) Observation" O +define "Unexplained severe malnutrition not responding to standard therapy Observation": + Elements."Unexplained severe malnutrition not responding to standard therapy Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Unexplained severe malnutrition not responding to standard therapy (Care) */ +/* End of Unexplained severe malnutrition not responding to standard therapy */ /* -@dataElement: HIV.D.DE328 - Pneumocystis jirovecii pneumonia (Care) +@dataElement: HIV.D.DE328 - Pneumocystis jirovecii pneumonia @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include pneumocystis (jirovecii) pneumonia */ // TODO: Replace placeholder with relevant CQL logic -define "Pneumocystis jirovecii pneumonia (Care)": - exists "Pneumocystis jirovecii pneumonia (Care) Condition" - or exists "Pneumocystis jirovecii pneumonia (Care) Observation" -define "Pneumocystis jirovecii pneumonia (Care) Condition": - Elements."Pneumocystis jirovecii pneumonia (Care) Condition" C +define "Pneumocystis jirovecii pneumonia": + exists "Pneumocystis jirovecii pneumonia Condition" + or exists "Pneumocystis jirovecii pneumonia Observation" +define "Pneumocystis jirovecii pneumonia Condition": + Elements."Pneumocystis jirovecii pneumonia Condition" C where C.prevalenceInterval() starts on or before Today -define "Pneumocystis jirovecii pneumonia (Care) Observation": - Elements."Pneumocystis jirovecii pneumonia (Care) Observation" O +define "Pneumocystis jirovecii pneumonia Observation": + Elements."Pneumocystis jirovecii pneumonia Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Pneumocystis jirovecii pneumonia (Care) */ +/* End of Pneumocystis jirovecii pneumonia */ /* -@dataElement: HIV.D.DE329 - Recurrent severe bacterial pneumonia (Care) +@dataElement: HIV.D.DE329 - Recurrent severe bacterial pneumonia @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include recurrent severe bacterial pneumonia */ // TODO: Replace placeholder with relevant CQL logic -define "Recurrent severe bacterial pneumonia (Care)": - exists "Recurrent severe bacterial pneumonia (Care) Condition" - or exists "Recurrent severe bacterial pneumonia (Care) Observation" -define "Recurrent severe bacterial pneumonia (Care) Condition": - Elements."Recurrent severe bacterial pneumonia (Care) Condition" C +define "Recurrent severe bacterial pneumonia": + exists "Recurrent severe bacterial pneumonia Condition" + or exists "Recurrent severe bacterial pneumonia Observation" +define "Recurrent severe bacterial pneumonia Condition": + Elements."Recurrent severe bacterial pneumonia Condition" C where C.prevalenceInterval() starts on or before Today -define "Recurrent severe bacterial pneumonia (Care) Observation": - Elements."Recurrent severe bacterial pneumonia (Care) Observation" O +define "Recurrent severe bacterial pneumonia Observation": + Elements."Recurrent severe bacterial pneumonia Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Recurrent severe bacterial pneumonia (Care) */ +/* End of Recurrent severe bacterial pneumonia */ /* -@dataElement: HIV.D.DE330 - Recurrent severe bacterial infections such as empyema, pyomyositis, bone or joint infection, meningitis, but excluding pneumonia (Care) +@dataElement: HIV.D.DE330 - Recurrent severe bacterial infections such as empyema, pyomyositis, bone or joint infection, meningitis, but excluding pneumonia @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include recurrent severe bacterial infections (such as empyema, pyomyositis, bone or joint infection, meningitis, but excluding pneumonia) */ // TODO: Replace placeholder with relevant CQL logic -define "Recurrent severe bacterial infections such as empyema, pyomyositis, bone or joint infection, meningitis, but excluding pneumonia (Care)": - exists "Recurrent severe bacterial infections such as empyema, pyomyositis, bone or joint infection, meningitis, but excluding pneumonia (Care) Condition" - or exists "Recurrent severe bacterial infections such as empyema, pyomyositis, bone or joint infection, meningitis, but excluding pneumonia (Care) Observation" -define "Recurrent severe bacterial infections such as empyema, pyomyositis, bone or joint infection, meningitis, but excluding pneumonia (Care) Condition": - Elements."Recurrent severe bacterial infections such as empyema, pyomyositis, bone or joint infection, meningitis, but excluding pneumonia (Care) Condition" C +define "Recurrent severe bacterial infections such as empyema, pyomyositis, bone or joint infection, meningitis, but excluding pneumonia": + exists "Recurrent severe bacterial infections such as empyema, pyomyositis, bone or joint infection, meningitis, but excluding pneumonia Condition" + or exists "Recurrent severe bacterial infections such as empyema, pyomyositis, bone or joint infection, meningitis, but excluding pneumonia Observation" +define "Recurrent severe bacterial infections such as empyema, pyomyositis, bone or joint infection, meningitis, but excluding pneumonia Condition": + Elements."Recurrent severe bacterial infections such as empyema, pyomyositis, bone or joint infection, meningitis, but excluding pneumonia Condition" C where C.prevalenceInterval() starts on or before Today -define "Recurrent severe bacterial infections such as empyema, pyomyositis, bone or joint infection, meningitis, but excluding pneumonia (Care) Observation": - Elements."Recurrent severe bacterial infections such as empyema, pyomyositis, bone or joint infection, meningitis, but excluding pneumonia (Care) Observation" O +define "Recurrent severe bacterial infections such as empyema, pyomyositis, bone or joint infection, meningitis, but excluding pneumonia Observation": + Elements."Recurrent severe bacterial infections such as empyema, pyomyositis, bone or joint infection, meningitis, but excluding pneumonia Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Recurrent severe bacterial infections such as empyema, pyomyositis, bone or joint infection, meningitis, but excluding pneumonia (Care) */ +/* End of Recurrent severe bacterial infections such as empyema, pyomyositis, bone or joint infection, meningitis, but excluding pneumonia */ /* -@dataElement: HIV.D.DE331 - Empyema (Care) +@dataElement: HIV.D.DE331 - Empyema @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include recurrent empyema */ // TODO: Replace placeholder with relevant CQL logic -define "Empyema (Care)": - exists "Empyema (Care) Condition" - or exists "Empyema (Care) Observation" -define "Empyema (Care) Condition": - Elements."Empyema (Care) Condition" C +define "Empyema": + exists "Empyema Condition" + or exists "Empyema Observation" +define "Empyema Condition": + Elements."Empyema Condition" C where C.prevalenceInterval() starts on or before Today -define "Empyema (Care) Observation": - Elements."Empyema (Care) Observation" O +define "Empyema Observation": + Elements."Empyema Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Empyema (Care) */ +/* End of Empyema */ /* -@dataElement: HIV.D.DE332 - Pyomyositis (Care) +@dataElement: HIV.D.DE332 - Pyomyositis @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include recurrent pyomyositis */ // TODO: Replace placeholder with relevant CQL logic -define "Pyomyositis (Care)": - exists "Pyomyositis (Care) Condition" - or exists "Pyomyositis (Care) Observation" -define "Pyomyositis (Care) Condition": - Elements."Pyomyositis (Care) Condition" C +define "Pyomyositis": + exists "Pyomyositis Condition" + or exists "Pyomyositis Observation" +define "Pyomyositis Condition": + Elements."Pyomyositis Condition" C where C.prevalenceInterval() starts on or before Today -define "Pyomyositis (Care) Observation": - Elements."Pyomyositis (Care) Observation" O +define "Pyomyositis Observation": + Elements."Pyomyositis Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Pyomyositis (Care) */ +/* End of Pyomyositis */ /* -@dataElement: HIV.D.DE333 - Bone or joint infection (Care) +@dataElement: HIV.D.DE333 - Bone or joint infection @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include recurrent bone or joint infections */ // TODO: Replace placeholder with relevant CQL logic -define "Bone or joint infection (Care)": - exists "Bone or joint infection (Care) Condition" - or exists "Bone or joint infection (Care) Observation" -define "Bone or joint infection (Care) Condition": - Elements."Bone or joint infection (Care) Condition" C +define "Bone or joint infection": + exists "Bone or joint infection Condition" + or exists "Bone or joint infection Observation" +define "Bone or joint infection Condition": + Elements."Bone or joint infection Condition" C where C.prevalenceInterval() starts on or before Today -define "Bone or joint infection (Care) Observation": - Elements."Bone or joint infection (Care) Observation" O +define "Bone or joint infection Observation": + Elements."Bone or joint infection Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Bone or joint infection (Care) */ +/* End of Bone or joint infection */ /* -@dataElement: HIV.D.DE334 - Meningitis (Care) +@dataElement: HIV.D.DE334 - Meningitis @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include recurrent meningitis */ // TODO: Replace placeholder with relevant CQL logic -define "Meningitis (Care)": - exists "Meningitis (Care) Condition" - or exists "Meningitis (Care) Observation" -define "Meningitis (Care) Condition": - Elements."Meningitis (Care) Condition" C +define "Meningitis": + exists "Meningitis Condition" + or exists "Meningitis Observation" +define "Meningitis Condition": + Elements."Meningitis Condition" C where C.prevalenceInterval() starts on or before Today -define "Meningitis (Care) Observation": - Elements."Meningitis (Care) Observation" O +define "Meningitis Observation": + Elements."Meningitis Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Meningitis (Care) */ +/* End of Meningitis */ /* -@dataElement: HIV.D.DE335 - Chronic herpes simplex infection orolabial or cutaneous of more than 1 month duration or visceral at any site (Care) +@dataElement: HIV.D.DE335 - Chronic herpes simplex infection orolabial or cutaneous of more than 1 month duration or visceral at any site @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include chronic herpes simplex infection (orolabial or cutaneous of more than 1 month duration or visceral at any site) */ // TODO: Replace placeholder with relevant CQL logic -define "Chronic herpes simplex infection orolabial or cutaneous of more than 1 month duration or visceral at any site (Care)": - exists "Chronic herpes simplex infection orolabial or cutaneous of more than 1 month duration or visceral at any site (Care) Condition" - or exists "Chronic herpes simplex infection orolabial or cutaneous of more than 1 month duration or visceral at any site (Care) Observation" -define "Chronic herpes simplex infection orolabial or cutaneous of more than 1 month duration or visceral at any site (Care) Condition": - Elements."Chronic herpes simplex infection orolabial or cutaneous of more than 1 month duration or visceral at any site (Care) Condition" C +define "Chronic herpes simplex infection orolabial or cutaneous of more than 1 month duration or visceral at any site": + exists "Chronic herpes simplex infection orolabial or cutaneous of more than 1 month duration or visceral at any site Condition" + or exists "Chronic herpes simplex infection orolabial or cutaneous of more than 1 month duration or visceral at any site Observation" +define "Chronic herpes simplex infection orolabial or cutaneous of more than 1 month duration or visceral at any site Condition": + Elements."Chronic herpes simplex infection orolabial or cutaneous of more than 1 month duration or visceral at any site Condition" C where C.prevalenceInterval() starts on or before Today -define "Chronic herpes simplex infection orolabial or cutaneous of more than 1 month duration or visceral at any site (Care) Observation": - Elements."Chronic herpes simplex infection orolabial or cutaneous of more than 1 month duration or visceral at any site (Care) Observation" O +define "Chronic herpes simplex infection orolabial or cutaneous of more than 1 month duration or visceral at any site Observation": + Elements."Chronic herpes simplex infection orolabial or cutaneous of more than 1 month duration or visceral at any site Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Chronic herpes simplex infection orolabial or cutaneous of more than 1 month duration or visceral at any site (Care) */ +/* End of Chronic herpes simplex infection orolabial or cutaneous of more than 1 month duration or visceral at any site */ /* -@dataElement: HIV.D.DE336 - Chronic herpes simplex infection orolabial, genital or anorectal of more than 1 month in duration or visceral at any site (Care) +@dataElement: HIV.D.DE336 - Chronic herpes simplex infection orolabial, genital or anorectal of more than 1 month in duration or visceral at any site @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include chronic herpes simplex infection (orolabial, genital or anorectal of more than one month in duration or visceral at any site) */ // TODO: Replace placeholder with relevant CQL logic -define "Chronic herpes simplex infection orolabial, genital or anorectal of more than 1 month in duration or visceral at any site (Care)": - exists "Chronic herpes simplex infection orolabial, genital or anorectal of more than 1 month in duration or visceral at any site (Care) Condition" - or exists "Chronic herpes simplex infection orolabial, genital or anorectal of more than 1 month in duration or visceral at any site (Care) Observation" -define "Chronic herpes simplex infection orolabial, genital or anorectal of more than 1 month in duration or visceral at any site (Care) Condition": - Elements."Chronic herpes simplex infection orolabial, genital or anorectal of more than 1 month in duration or visceral at any site (Care) Condition" C +define "Chronic herpes simplex infection orolabial, genital or anorectal of more than 1 month in duration or visceral at any site": + exists "Chronic herpes simplex infection orolabial, genital or anorectal of more than 1 month in duration or visceral at any site Condition" + or exists "Chronic herpes simplex infection orolabial, genital or anorectal of more than 1 month in duration or visceral at any site Observation" +define "Chronic herpes simplex infection orolabial, genital or anorectal of more than 1 month in duration or visceral at any site Condition": + Elements."Chronic herpes simplex infection orolabial, genital or anorectal of more than 1 month in duration or visceral at any site Condition" C where C.prevalenceInterval() starts on or before Today -define "Chronic herpes simplex infection orolabial, genital or anorectal of more than 1 month in duration or visceral at any site (Care) Observation": - Elements."Chronic herpes simplex infection orolabial, genital or anorectal of more than 1 month in duration or visceral at any site (Care) Observation" O +define "Chronic herpes simplex infection orolabial, genital or anorectal of more than 1 month in duration or visceral at any site Observation": + Elements."Chronic herpes simplex infection orolabial, genital or anorectal of more than 1 month in duration or visceral at any site Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Chronic herpes simplex infection orolabial, genital or anorectal of more than 1 month in duration or visceral at any site (Care) */ +/* End of Chronic herpes simplex infection orolabial, genital or anorectal of more than 1 month in duration or visceral at any site */ /* -@dataElement: HIV.D.DE337 - Oesophageal candidiasis or candidiasis of trachea, bronchi or lungs (Care) +@dataElement: HIV.D.DE337 - Oesophageal candidiasis or candidiasis of trachea, bronchi or lungs @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include oesophageal candidiasis (or candidiasis of trachea, bronchi or lungs) */ // TODO: Replace placeholder with relevant CQL logic -define "Oesophageal candidiasis or candidiasis of trachea, bronchi or lungs (Care)": - exists "Oesophageal candidiasis or candidiasis of trachea, bronchi or lungs (Care) Condition" - or exists "Oesophageal candidiasis or candidiasis of trachea, bronchi or lungs (Care) Observation" -define "Oesophageal candidiasis or candidiasis of trachea, bronchi or lungs (Care) Condition": - Elements."Oesophageal candidiasis or candidiasis of trachea, bronchi or lungs (Care) Condition" C +define "Oesophageal candidiasis or candidiasis of trachea, bronchi or lungs": + exists "Oesophageal candidiasis or candidiasis of trachea, bronchi or lungs Condition" + or exists "Oesophageal candidiasis or candidiasis of trachea, bronchi or lungs Observation" +define "Oesophageal candidiasis or candidiasis of trachea, bronchi or lungs Condition": + Elements."Oesophageal candidiasis or candidiasis of trachea, bronchi or lungs Condition" C where C.prevalenceInterval() starts on or before Today -define "Oesophageal candidiasis or candidiasis of trachea, bronchi or lungs (Care) Observation": - Elements."Oesophageal candidiasis or candidiasis of trachea, bronchi or lungs (Care) Observation" O +define "Oesophageal candidiasis or candidiasis of trachea, bronchi or lungs Observation": + Elements."Oesophageal candidiasis or candidiasis of trachea, bronchi or lungs Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Oesophageal candidiasis or candidiasis of trachea, bronchi or lungs (Care) */ +/* End of Oesophageal candidiasis or candidiasis of trachea, bronchi or lungs */ /* -@dataElement: HIV.D.DE338 - Extrapulmonary TB (Care) +@dataElement: HIV.D.DE338 - Extrapulmonary TB @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include extrapulmonary tuberculosis */ // TODO: Replace placeholder with relevant CQL logic -define "Extrapulmonary TB (Care)": - exists "Extrapulmonary TB (Care) Condition" - or exists "Extrapulmonary TB (Care) Observation" -define "Extrapulmonary TB (Care) Condition": - Elements."Extrapulmonary TB (Care) Condition" C +define "Extrapulmonary TB D.DE338": + exists "Extrapulmonary TB D.DE338 Condition" + or exists "Extrapulmonary TB D.DE338 Observation" +define "Extrapulmonary TB D.DE338 Condition": + Elements."Extrapulmonary TB D.DE338 Condition" C where C.prevalenceInterval() starts on or before Today -define "Extrapulmonary TB (Care) Observation": - Elements."Extrapulmonary TB (Care) Observation" O +define "Extrapulmonary TB D.DE338 Observation": + Elements."Extrapulmonary TB D.DE338 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Extrapulmonary TB (Care) */ +/* End of Extrapulmonary TB D.DE338 */ /* -@dataElement: HIV.D.DE339 - Kaposi sarcoma (Care) +@dataElement: HIV.D.DE339 - Kaposi sarcoma @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include Kaposi sarcoma */ // TODO: Replace placeholder with relevant CQL logic -define "Kaposi sarcoma (Care)": - exists "Kaposi sarcoma (Care) Condition" - or exists "Kaposi sarcoma (Care) Observation" -define "Kaposi sarcoma (Care) Condition": - Elements."Kaposi sarcoma (Care) Condition" C +define "Kaposi sarcoma": + exists "Kaposi sarcoma Condition" + or exists "Kaposi sarcoma Observation" +define "Kaposi sarcoma Condition": + Elements."Kaposi sarcoma Condition" C where C.prevalenceInterval() starts on or before Today -define "Kaposi sarcoma (Care) Observation": - Elements."Kaposi sarcoma (Care) Observation" O +define "Kaposi sarcoma Observation": + Elements."Kaposi sarcoma Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Kaposi sarcoma (Care) */ +/* End of Kaposi sarcoma */ /* -@dataElement: HIV.D.DE340 - Cytomegalovirus infection retinitis or infection of other organs (Care) +@dataElement: HIV.D.DE340 - Cytomegalovirus infection retinitis or infection of other organs @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include cytomegalovirus infection (retinitis or infection of other organs) */ // TODO: Replace placeholder with relevant CQL logic -define "Cytomegalovirus infection retinitis or infection of other organs (Care)": - exists "Cytomegalovirus infection retinitis or infection of other organs (Care) Condition" - or exists "Cytomegalovirus infection retinitis or infection of other organs (Care) Observation" -define "Cytomegalovirus infection retinitis or infection of other organs (Care) Condition": - Elements."Cytomegalovirus infection retinitis or infection of other organs (Care) Condition" C +define "Cytomegalovirus infection retinitis or infection of other organs": + exists "Cytomegalovirus infection retinitis or infection of other organs Condition" + or exists "Cytomegalovirus infection retinitis or infection of other organs Observation" +define "Cytomegalovirus infection retinitis or infection of other organs Condition": + Elements."Cytomegalovirus infection retinitis or infection of other organs Condition" C where C.prevalenceInterval() starts on or before Today -define "Cytomegalovirus infection retinitis or infection of other organs (Care) Observation": - Elements."Cytomegalovirus infection retinitis or infection of other organs (Care) Observation" O +define "Cytomegalovirus infection retinitis or infection of other organs Observation": + Elements."Cytomegalovirus infection retinitis or infection of other organs Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Cytomegalovirus infection retinitis or infection of other organs (Care) */ +/* End of Cytomegalovirus infection retinitis or infection of other organs */ /* -@dataElement: HIV.D.DE341 - Central nervous system toxoplasmosis (Care) +@dataElement: HIV.D.DE341 - Central nervous system toxoplasmosis @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include central nervous system toxoplasmosis */ // TODO: Replace placeholder with relevant CQL logic -define "Central nervous system toxoplasmosis (Care)": - exists "Central nervous system toxoplasmosis (Care) Condition" - or exists "Central nervous system toxoplasmosis (Care) Observation" -define "Central nervous system toxoplasmosis (Care) Condition": - Elements."Central nervous system toxoplasmosis (Care) Condition" C +define "Central nervous system toxoplasmosis": + exists "Central nervous system toxoplasmosis Condition" + or exists "Central nervous system toxoplasmosis Observation" +define "Central nervous system toxoplasmosis Condition": + Elements."Central nervous system toxoplasmosis Condition" C where C.prevalenceInterval() starts on or before Today -define "Central nervous system toxoplasmosis (Care) Observation": - Elements."Central nervous system toxoplasmosis (Care) Observation" O +define "Central nervous system toxoplasmosis Observation": + Elements."Central nervous system toxoplasmosis Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Central nervous system toxoplasmosis (Care) */ +/* End of Central nervous system toxoplasmosis */ /* -@dataElement: HIV.D.DE342 - HIV encephalopathy (Care) +@dataElement: HIV.D.DE342 - HIV encephalopathy @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include HIV encephalopathy */ // TODO: Replace placeholder with relevant CQL logic -define "HIV encephalopathy (Care)": - exists "HIV encephalopathy (Care) Condition" - or exists "HIV encephalopathy (Care) Observation" -define "HIV encephalopathy (Care) Condition": - Elements."HIV encephalopathy (Care) Condition" C +define "HIV encephalopathy": + exists "HIV encephalopathy Condition" + or exists "HIV encephalopathy Observation" +define "HIV encephalopathy Condition": + Elements."HIV encephalopathy Condition" C where C.prevalenceInterval() starts on or before Today -define "HIV encephalopathy (Care) Observation": - Elements."HIV encephalopathy (Care) Observation" O +define "HIV encephalopathy Observation": + Elements."HIV encephalopathy Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of HIV encephalopathy (Care) */ +/* End of HIV encephalopathy */ /* -@dataElement: HIV.D.DE343 - Extrapulmonary cryptococcosis, including meningitis (Care) +@dataElement: HIV.D.DE343 - Extrapulmonary cryptococcosis, including meningitis @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include extrapulmonary cryptococcosis, including meningitis */ // TODO: Replace placeholder with relevant CQL logic -define "Extrapulmonary cryptococcosis, including meningitis (Care)": - exists "Extrapulmonary cryptococcosis, including meningitis (Care) Condition" - or exists "Extrapulmonary cryptococcosis, including meningitis (Care) Observation" -define "Extrapulmonary cryptococcosis, including meningitis (Care) Condition": - Elements."Extrapulmonary cryptococcosis, including meningitis (Care) Condition" C +define "Extrapulmonary cryptococcosis, including meningitis": + exists "Extrapulmonary cryptococcosis, including meningitis Condition" + or exists "Extrapulmonary cryptococcosis, including meningitis Observation" +define "Extrapulmonary cryptococcosis, including meningitis Condition": + Elements."Extrapulmonary cryptococcosis, including meningitis Condition" C where C.prevalenceInterval() starts on or before Today -define "Extrapulmonary cryptococcosis, including meningitis (Care) Observation": - Elements."Extrapulmonary cryptococcosis, including meningitis (Care) Observation" O +define "Extrapulmonary cryptococcosis, including meningitis Observation": + Elements."Extrapulmonary cryptococcosis, including meningitis Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Extrapulmonary cryptococcosis, including meningitis (Care) */ +/* End of Extrapulmonary cryptococcosis, including meningitis */ /* -@dataElement: HIV.D.DE344 - Disseminated nontuberculous mycobacterial infection (Care) +@dataElement: HIV.D.DE344 - Disseminated nontuberculous mycobacterial infection @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include disseminated nontuberculous mycobacterial infection */ // TODO: Replace placeholder with relevant CQL logic -define "Disseminated nontuberculous mycobacterial infection (Care)": - exists "Disseminated nontuberculous mycobacterial infection (Care) Condition" - or exists "Disseminated nontuberculous mycobacterial infection (Care) Observation" -define "Disseminated nontuberculous mycobacterial infection (Care) Condition": - Elements."Disseminated nontuberculous mycobacterial infection (Care) Condition" C +define "Disseminated nontuberculous mycobacterial infection": + exists "Disseminated nontuberculous mycobacterial infection Condition" + or exists "Disseminated nontuberculous mycobacterial infection Observation" +define "Disseminated nontuberculous mycobacterial infection Condition": + Elements."Disseminated nontuberculous mycobacterial infection Condition" C where C.prevalenceInterval() starts on or before Today -define "Disseminated nontuberculous mycobacterial infection (Care) Observation": - Elements."Disseminated nontuberculous mycobacterial infection (Care) Observation" O +define "Disseminated nontuberculous mycobacterial infection Observation": + Elements."Disseminated nontuberculous mycobacterial infection Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Disseminated nontuberculous mycobacterial infection (Care) */ +/* End of Disseminated nontuberculous mycobacterial infection */ /* -@dataElement: HIV.D.DE345 - Progressive multifocal leukoencephalopathy (Care) +@dataElement: HIV.D.DE345 - Progressive multifocal leukoencephalopathy @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include progressive multifocal leukoencephalopathy */ // TODO: Replace placeholder with relevant CQL logic -define "Progressive multifocal leukoencephalopathy (Care)": - exists "Progressive multifocal leukoencephalopathy (Care) Condition" - or exists "Progressive multifocal leukoencephalopathy (Care) Observation" -define "Progressive multifocal leukoencephalopathy (Care) Condition": - Elements."Progressive multifocal leukoencephalopathy (Care) Condition" C +define "Progressive multifocal leukoencephalopathy": + exists "Progressive multifocal leukoencephalopathy Condition" + or exists "Progressive multifocal leukoencephalopathy Observation" +define "Progressive multifocal leukoencephalopathy Condition": + Elements."Progressive multifocal leukoencephalopathy Condition" C where C.prevalenceInterval() starts on or before Today -define "Progressive multifocal leukoencephalopathy (Care) Observation": - Elements."Progressive multifocal leukoencephalopathy (Care) Observation" O +define "Progressive multifocal leukoencephalopathy Observation": + Elements."Progressive multifocal leukoencephalopathy Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Progressive multifocal leukoencephalopathy (Care) */ +/* End of Progressive multifocal leukoencephalopathy */ /* -@dataElement: HIV.D.DE346 - Chronic cryptosporidiosis (Care) +@dataElement: HIV.D.DE346 - Chronic cryptosporidiosis @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include chronic cryptosporidiosis */ // TODO: Replace placeholder with relevant CQL logic -define "Chronic cryptosporidiosis (Care)": - exists "Chronic cryptosporidiosis (Care) Condition" - or exists "Chronic cryptosporidiosis (Care) Observation" -define "Chronic cryptosporidiosis (Care) Condition": - Elements."Chronic cryptosporidiosis (Care) Condition" C +define "Chronic cryptosporidiosis": + exists "Chronic cryptosporidiosis Condition" + or exists "Chronic cryptosporidiosis Observation" +define "Chronic cryptosporidiosis Condition": + Elements."Chronic cryptosporidiosis Condition" C where C.prevalenceInterval() starts on or before Today -define "Chronic cryptosporidiosis (Care) Observation": - Elements."Chronic cryptosporidiosis (Care) Observation" O +define "Chronic cryptosporidiosis Observation": + Elements."Chronic cryptosporidiosis Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Chronic cryptosporidiosis (Care) */ +/* End of Chronic cryptosporidiosis */ /* -@dataElement: HIV.D.DE347 - Chronic cryptosporidiosis with diarrhoea (Care) +@dataElement: HIV.D.DE347 - Chronic cryptosporidiosis with diarrhoea @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include chronic cryptosporidiosis (with diarrhoea) */ // TODO: Replace placeholder with relevant CQL logic -define "Chronic cryptosporidiosis with diarrhoea (Care)": - exists "Chronic cryptosporidiosis with diarrhoea (Care) Condition" - or exists "Chronic cryptosporidiosis with diarrhoea (Care) Observation" -define "Chronic cryptosporidiosis with diarrhoea (Care) Condition": - Elements."Chronic cryptosporidiosis with diarrhoea (Care) Condition" C +define "Chronic cryptosporidiosis with diarrhoea": + exists "Chronic cryptosporidiosis with diarrhoea Condition" + or exists "Chronic cryptosporidiosis with diarrhoea Observation" +define "Chronic cryptosporidiosis with diarrhoea Condition": + Elements."Chronic cryptosporidiosis with diarrhoea Condition" C where C.prevalenceInterval() starts on or before Today -define "Chronic cryptosporidiosis with diarrhoea (Care) Observation": - Elements."Chronic cryptosporidiosis with diarrhoea (Care) Observation" O +define "Chronic cryptosporidiosis with diarrhoea Observation": + Elements."Chronic cryptosporidiosis with diarrhoea Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Chronic cryptosporidiosis with diarrhoea (Care) */ +/* End of Chronic cryptosporidiosis with diarrhoea */ /* -@dataElement: HIV.D.DE348 - Chronic isosporiasis (Care) +@dataElement: HIV.D.DE348 - Chronic isosporiasis @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include chronic isosporiasis */ // TODO: Replace placeholder with relevant CQL logic -define "Chronic isosporiasis (Care)": - exists "Chronic isosporiasis (Care) Condition" - or exists "Chronic isosporiasis (Care) Observation" -define "Chronic isosporiasis (Care) Condition": - Elements."Chronic isosporiasis (Care) Condition" C +define "Chronic isosporiasis": + exists "Chronic isosporiasis Condition" + or exists "Chronic isosporiasis Observation" +define "Chronic isosporiasis Condition": + Elements."Chronic isosporiasis Condition" C where C.prevalenceInterval() starts on or before Today -define "Chronic isosporiasis (Care) Observation": - Elements."Chronic isosporiasis (Care) Observation" O +define "Chronic isosporiasis Observation": + Elements."Chronic isosporiasis Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Chronic isosporiasis (Care) */ +/* End of Chronic isosporiasis */ /* -@dataElement: HIV.D.DE349 - Disseminated mycosis extrapulmonary histoplasmosis, coccidioidomycosis (Care) +@dataElement: HIV.D.DE349 - Disseminated mycosis extrapulmonary histoplasmosis, coccidioidomycosis @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include disseminated mycosis (extrapulmonary histoplasmosis, coccidioidomycosis) */ // TODO: Replace placeholder with relevant CQL logic -define "Disseminated mycosis extrapulmonary histoplasmosis, coccidioidomycosis (Care)": - exists "Disseminated mycosis extrapulmonary histoplasmosis, coccidioidomycosis (Care) Condition" - or exists "Disseminated mycosis extrapulmonary histoplasmosis, coccidioidomycosis (Care) Observation" -define "Disseminated mycosis extrapulmonary histoplasmosis, coccidioidomycosis (Care) Condition": - Elements."Disseminated mycosis extrapulmonary histoplasmosis, coccidioidomycosis (Care) Condition" C +define "Disseminated mycosis extrapulmonary histoplasmosis, coccidioidomycosis": + exists "Disseminated mycosis extrapulmonary histoplasmosis, coccidioidomycosis Condition" + or exists "Disseminated mycosis extrapulmonary histoplasmosis, coccidioidomycosis Observation" +define "Disseminated mycosis extrapulmonary histoplasmosis, coccidioidomycosis Condition": + Elements."Disseminated mycosis extrapulmonary histoplasmosis, coccidioidomycosis Condition" C where C.prevalenceInterval() starts on or before Today -define "Disseminated mycosis extrapulmonary histoplasmosis, coccidioidomycosis (Care) Observation": - Elements."Disseminated mycosis extrapulmonary histoplasmosis, coccidioidomycosis (Care) Observation" O +define "Disseminated mycosis extrapulmonary histoplasmosis, coccidioidomycosis Observation": + Elements."Disseminated mycosis extrapulmonary histoplasmosis, coccidioidomycosis Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Disseminated mycosis extrapulmonary histoplasmosis, coccidioidomycosis (Care) */ +/* End of Disseminated mycosis extrapulmonary histoplasmosis, coccidioidomycosis */ /* -@dataElement: HIV.D.DE350 - Disseminated endemic mycosis extrapulmonary histoplasmosis, coccidioidomycosis, penicilliosis (Care) +@dataElement: HIV.D.DE350 - Disseminated endemic mycosis extrapulmonary histoplasmosis, coccidioidomycosis, penicilliosis @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include disseminated endemic mycosis (extrapulmonary histoplasmosis, coccidioidomycosis, penicilliosis) */ // TODO: Replace placeholder with relevant CQL logic -define "Disseminated endemic mycosis extrapulmonary histoplasmosis, coccidioidomycosis, penicilliosis (Care)": - exists "Disseminated endemic mycosis extrapulmonary histoplasmosis, coccidioidomycosis, penicilliosis (Care) Condition" - or exists "Disseminated endemic mycosis extrapulmonary histoplasmosis, coccidioidomycosis, penicilliosis (Care) Observation" -define "Disseminated endemic mycosis extrapulmonary histoplasmosis, coccidioidomycosis, penicilliosis (Care) Condition": - Elements."Disseminated endemic mycosis extrapulmonary histoplasmosis, coccidioidomycosis, penicilliosis (Care) Condition" C +define "Disseminated endemic mycosis extrapulmonary histoplasmosis, coccidioidomycosis, penicilliosis": + exists "Disseminated endemic mycosis extrapulmonary histoplasmosis, coccidioidomycosis, penicilliosis Condition" + or exists "Disseminated endemic mycosis extrapulmonary histoplasmosis, coccidioidomycosis, penicilliosis Observation" +define "Disseminated endemic mycosis extrapulmonary histoplasmosis, coccidioidomycosis, penicilliosis Condition": + Elements."Disseminated endemic mycosis extrapulmonary histoplasmosis, coccidioidomycosis, penicilliosis Condition" C where C.prevalenceInterval() starts on or before Today -define "Disseminated endemic mycosis extrapulmonary histoplasmosis, coccidioidomycosis, penicilliosis (Care) Observation": - Elements."Disseminated endemic mycosis extrapulmonary histoplasmosis, coccidioidomycosis, penicilliosis (Care) Observation" O +define "Disseminated endemic mycosis extrapulmonary histoplasmosis, coccidioidomycosis, penicilliosis Observation": + Elements."Disseminated endemic mycosis extrapulmonary histoplasmosis, coccidioidomycosis, penicilliosis Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Disseminated endemic mycosis extrapulmonary histoplasmosis, coccidioidomycosis, penicilliosis (Care) */ +/* End of Disseminated endemic mycosis extrapulmonary histoplasmosis, coccidioidomycosis, penicilliosis */ /* -@dataElement: HIV.D.DE351 - Cerebral lymphoma (Care) +@dataElement: HIV.D.DE351 - Cerebral lymphoma @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include cerebral lymphoma */ // TODO: Replace placeholder with relevant CQL logic -define "Cerebral lymphoma (Care)": - exists "Cerebral lymphoma (Care) Condition" - or exists "Cerebral lymphoma (Care) Observation" -define "Cerebral lymphoma (Care) Condition": - Elements."Cerebral lymphoma (Care) Condition" C +define "Cerebral lymphoma": + exists "Cerebral lymphoma Condition" + or exists "Cerebral lymphoma Observation" +define "Cerebral lymphoma Condition": + Elements."Cerebral lymphoma Condition" C where C.prevalenceInterval() starts on or before Today -define "Cerebral lymphoma (Care) Observation": - Elements."Cerebral lymphoma (Care) Observation" O +define "Cerebral lymphoma Observation": + Elements."Cerebral lymphoma Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Cerebral lymphoma (Care) */ +/* End of Cerebral lymphoma */ /* -@dataElement: HIV.D.DE352 - B-cell non-Hodgkin lymphoma (Care) +@dataElement: HIV.D.DE352 - B-cell non-Hodgkin lymphoma @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include b-cell non-Hodgkin lymphoma */ // TODO: Replace placeholder with relevant CQL logic -define "B-cell non-Hodgkin lymphoma (Care)": - exists "B-cell non-Hodgkin lymphoma (Care) Condition" - or exists "B-cell non-Hodgkin lymphoma (Care) Observation" -define "B-cell non-Hodgkin lymphoma (Care) Condition": - Elements."B-cell non-Hodgkin lymphoma (Care) Condition" C +define "B-cell non-Hodgkin lymphoma": + exists "B-cell non-Hodgkin lymphoma Condition" + or exists "B-cell non-Hodgkin lymphoma Observation" +define "B-cell non-Hodgkin lymphoma Condition": + Elements."B-cell non-Hodgkin lymphoma Condition" C where C.prevalenceInterval() starts on or before Today -define "B-cell non-Hodgkin lymphoma (Care) Observation": - Elements."B-cell non-Hodgkin lymphoma (Care) Observation" O +define "B-cell non-Hodgkin lymphoma Observation": + Elements."B-cell non-Hodgkin lymphoma Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of B-cell non-Hodgkin lymphoma (Care) */ +/* End of B-cell non-Hodgkin lymphoma */ /* -@dataElement: HIV.D.DE353 - HIV-associated nephropathy or cardiomyopathy (Care) +@dataElement: HIV.D.DE353 - HIV-associated nephropathy or cardiomyopathy @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include HIV- associated nephropathy or cardiomyopathy */ // TODO: Replace placeholder with relevant CQL logic -define "HIV-associated nephropathy or cardiomyopathy (Care)": - exists "HIV-associated nephropathy or cardiomyopathy (Care) Condition" - or exists "HIV-associated nephropathy or cardiomyopathy (Care) Observation" -define "HIV-associated nephropathy or cardiomyopathy (Care) Condition": - Elements."HIV-associated nephropathy or cardiomyopathy (Care) Condition" C +define "HIV-associated nephropathy or cardiomyopathy": + exists "HIV-associated nephropathy or cardiomyopathy Condition" + or exists "HIV-associated nephropathy or cardiomyopathy Observation" +define "HIV-associated nephropathy or cardiomyopathy Condition": + Elements."HIV-associated nephropathy or cardiomyopathy Condition" C where C.prevalenceInterval() starts on or before Today -define "HIV-associated nephropathy or cardiomyopathy (Care) Observation": - Elements."HIV-associated nephropathy or cardiomyopathy (Care) Observation" O +define "HIV-associated nephropathy or cardiomyopathy Observation": + Elements."HIV-associated nephropathy or cardiomyopathy Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of HIV-associated nephropathy or cardiomyopathy (Care) */ +/* End of HIV-associated nephropathy or cardiomyopathy */ /* -@dataElement: HIV.D.DE354 - Recurrent septicaemia including nontyphoidal Salmonella (Care) +@dataElement: HIV.D.DE354 - Recurrent septicaemia including nontyphoidal Salmonella @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include recurrent bacteraemia (septicaemia) (including nontyphoidal salmonella) */ // TODO: Replace placeholder with relevant CQL logic -define "Recurrent septicaemia including nontyphoidal Salmonella (Care)": - exists "Recurrent septicaemia including nontyphoidal Salmonella (Care) Condition" - or exists "Recurrent septicaemia including nontyphoidal Salmonella (Care) Observation" -define "Recurrent septicaemia including nontyphoidal Salmonella (Care) Condition": - Elements."Recurrent septicaemia including nontyphoidal Salmonella (Care) Condition" C +define "Recurrent septicaemia including nontyphoidal Salmonella": + exists "Recurrent septicaemia including nontyphoidal Salmonella Condition" + or exists "Recurrent septicaemia including nontyphoidal Salmonella Observation" +define "Recurrent septicaemia including nontyphoidal Salmonella Condition": + Elements."Recurrent septicaemia including nontyphoidal Salmonella Condition" C where C.prevalenceInterval() starts on or before Today -define "Recurrent septicaemia including nontyphoidal Salmonella (Care) Observation": - Elements."Recurrent septicaemia including nontyphoidal Salmonella (Care) Observation" O +define "Recurrent septicaemia including nontyphoidal Salmonella Observation": + Elements."Recurrent septicaemia including nontyphoidal Salmonella Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Recurrent septicaemia including nontyphoidal Salmonella (Care) */ +/* End of Recurrent septicaemia including nontyphoidal Salmonella */ /* -@dataElement: HIV.D.DE355 - Invasive cervical carcinoma (Care) +@dataElement: HIV.D.DE355 - Invasive cervical carcinoma @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include invasive cervical carcinoma */ // TODO: Replace placeholder with relevant CQL logic -define "Invasive cervical carcinoma (Care)": - exists "Invasive cervical carcinoma (Care) Condition" - or exists "Invasive cervical carcinoma (Care) Observation" -define "Invasive cervical carcinoma (Care) Condition": - Elements."Invasive cervical carcinoma (Care) Condition" C +define "Invasive cervical carcinoma": + exists "Invasive cervical carcinoma Condition" + or exists "Invasive cervical carcinoma Observation" +define "Invasive cervical carcinoma Condition": + Elements."Invasive cervical carcinoma Condition" C where C.prevalenceInterval() starts on or before Today -define "Invasive cervical carcinoma (Care) Observation": - Elements."Invasive cervical carcinoma (Care) Observation" O +define "Invasive cervical carcinoma Observation": + Elements."Invasive cervical carcinoma Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Invasive cervical carcinoma (Care) */ +/* End of Invasive cervical carcinoma */ /* -@dataElement: HIV.D.DE356 - Atypical disseminated leishmaniasis (Care) +@dataElement: HIV.D.DE356 - Atypical disseminated leishmaniasis @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include atypical disseminated leishmaniasis */ // TODO: Replace placeholder with relevant CQL logic -define "Atypical disseminated leishmaniasis (Care)": - exists "Atypical disseminated leishmaniasis (Care) Condition" - or exists "Atypical disseminated leishmaniasis (Care) Observation" -define "Atypical disseminated leishmaniasis (Care) Condition": - Elements."Atypical disseminated leishmaniasis (Care) Condition" C +define "Atypical disseminated leishmaniasis": + exists "Atypical disseminated leishmaniasis Condition" + or exists "Atypical disseminated leishmaniasis Observation" +define "Atypical disseminated leishmaniasis Condition": + Elements."Atypical disseminated leishmaniasis Condition" C where C.prevalenceInterval() starts on or before Today -define "Atypical disseminated leishmaniasis (Care) Observation": - Elements."Atypical disseminated leishmaniasis (Care) Observation" O +define "Atypical disseminated leishmaniasis Observation": + Elements."Atypical disseminated leishmaniasis Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Atypical disseminated leishmaniasis (Care) */ +/* End of Atypical disseminated leishmaniasis */ /* -@dataElement: HIV.D.DE357 - Neutropenia (Care) +@dataElement: HIV.D.DE357 - Neutropenia @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include neutropenia, an abnormally low count of a type of white blood cell (neutrophils) */ // TODO: Replace placeholder with relevant CQL logic -define "Neutropenia (Care)": - exists "Neutropenia (Care) Condition" - or exists "Neutropenia (Care) Observation" -define "Neutropenia (Care) Condition": - Elements."Neutropenia (Care) Condition" C +define "Neutropenia": + exists "Neutropenia Condition" + or exists "Neutropenia Observation" +define "Neutropenia Condition": + Elements."Neutropenia Condition" C where C.prevalenceInterval() starts on or before Today -define "Neutropenia (Care) Observation": - Elements."Neutropenia (Care) Observation" O +define "Neutropenia Observation": + Elements."Neutropenia Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Neutropenia (Care) */ +/* End of Neutropenia */ /* -@dataElement: HIV.D.DE364 - CD4 count (Care) +@dataElement: HIV.D.DE364 - CD4 count @activity: HIV.D20 Diagnostics @description: CD4 cell count in cells/mm^3 */ // TODO: Replace placeholder with relevant CQL logic -define "CD4 count (Care)": - Elements."CD4 count (Care)" O +define "CD4 count D.DE364": + Elements."CD4 count D.DE364" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -define "CD4 count (Care) Value": - "CD4 count (Care)" O +define "CD4 count D.DE364 Value": + "CD4 count D.DE364" O return O.value -/* End of CD4 count (Care) */ +/* End of CD4 count D.DE364 */ /* -@dataElement: HIV.D.DE399 - Monitoring examinations (Care) +@dataElement: HIV.D.DE399 - Monitoring examinations @activity: HIV.D20 Diagnostics @description: Name of examinations, test and results for any relevant investigations carried out for client */ // TODO: Replace placeholder with relevant CQL logic -define "Monitoring examinations (Care)": - exists "Monitoring examinations (Care) Observation" -define "Monitoring examinations (Care) Observation": - Elements."Monitoring examinations (Care) Observation" O +define "Monitoring examinations": + exists "Monitoring examinations Observation" +define "Monitoring examinations Observation": + Elements."Monitoring examinations Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Monitoring examinations (Care) */ +/* End of Monitoring examinations */ /* -@dataElement: HIV.D.DE400 - Haemoglobin Hb (Care) +@dataElement: HIV.D.DE400 - Haemoglobin Hb @activity: HIV.D20 Diagnostics @description: Provider ordered a Haemoglobin (Hb) test, number in g/dL test */ // TODO: Replace placeholder with relevant CQL logic -define "Haemoglobin Hb (Care)": - exists "Haemoglobin Hb (Care) Condition" - or exists "Haemoglobin Hb (Care) Observation" -define "Haemoglobin Hb (Care) Condition": - Elements."Haemoglobin Hb (Care) Condition" C +define "Haemoglobin Hb": + exists "Haemoglobin Hb Condition" + or exists "Haemoglobin Hb Observation" +define "Haemoglobin Hb Condition": + Elements."Haemoglobin Hb Condition" C where C.prevalenceInterval() starts on or before Today -define "Haemoglobin Hb (Care) Observation": - Elements."Haemoglobin Hb (Care) Observation" O +define "Haemoglobin Hb Observation": + Elements."Haemoglobin Hb Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Haemoglobin Hb (Care) */ +/* End of Haemoglobin Hb */ /* -@dataElement: HIV.D.DE401 - Pregnancy test (Care) +@dataElement: HIV.D.DE401 - Pregnancy test @activity: HIV.D20 Diagnostics @description: Provider ordered a pregnancy test for client */ // TODO: Replace placeholder with relevant CQL logic -define "Pregnancy test (Care)": - exists "Pregnancy test (Care) Condition" - or exists "Pregnancy test (Care) Observation" -define "Pregnancy test (Care) Condition": - Elements."Pregnancy test (Care) Condition" C +define "Pregnancy test": + exists "Pregnancy test Condition" + or exists "Pregnancy test Observation" +define "Pregnancy test Condition": + Elements."Pregnancy test Condition" C where C.prevalenceInterval() starts on or before Today -define "Pregnancy test (Care) Observation": - Elements."Pregnancy test (Care) Observation" O +define "Pregnancy test Observation": + Elements."Pregnancy test Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Pregnancy test (Care) */ +/* End of Pregnancy test */ /* -@dataElement: HIV.D.DE402 - Syphilis test (Care) +@dataElement: HIV.D.DE402 - Syphilis test @activity: HIV.D20 Diagnostics @description: Provider ordered a syphilis test */ // TODO: Replace placeholder with relevant CQL logic -define "Syphilis test (Care)": - exists "Syphilis test (Care) Condition" - or exists "Syphilis test (Care) Observation" -define "Syphilis test (Care) Condition": - Elements."Syphilis test (Care) Condition" C +define "Syphilis test": + exists "Syphilis test Condition" + or exists "Syphilis test Observation" +define "Syphilis test Condition": + Elements."Syphilis test Condition" C where C.prevalenceInterval() starts on or before Today -define "Syphilis test (Care) Observation": - Elements."Syphilis test (Care) Observation" O +define "Syphilis test Observation": + Elements."Syphilis test Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Syphilis test (Care) */ +/* End of Syphilis test */ /* -@dataElement: HIV.D.DE403 - Chest X-ray CXR (Care) +@dataElement: HIV.D.DE403 - Chest X-ray CXR @activity: HIV.D20 Diagnostics @description: Provider ordered a chest X-ray (CXR) */ // TODO: Replace placeholder with relevant CQL logic -define "Chest X-ray CXR (Care)": - exists "Chest X-ray CXR (Care) Condition" - or exists "Chest X-ray CXR (Care) Observation" -define "Chest X-ray CXR (Care) Condition": - Elements."Chest X-ray CXR (Care) Condition" C +define "Chest X-ray CXR": + exists "Chest X-ray CXR Condition" + or exists "Chest X-ray CXR Observation" +define "Chest X-ray CXR Condition": + Elements."Chest X-ray CXR Condition" C where C.prevalenceInterval() starts on or before Today -define "Chest X-ray CXR (Care) Observation": - Elements."Chest X-ray CXR (Care) Observation" O +define "Chest X-ray CXR Observation": + Elements."Chest X-ray CXR Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Chest X-ray CXR (Care) */ +/* End of Chest X-ray CXR */ /* -@dataElement: HIV.D.DE404 - Sputum or culture for TB (Care) +@dataElement: HIV.D.DE404 - Sputum or culture for TB @activity: HIV.D20 Diagnostics @description: Provider ordered sputum or culture for TB */ // TODO: Replace placeholder with relevant CQL logic -define "Sputum or culture for TB (Care)": - exists "Sputum or culture for TB (Care) Condition" - or exists "Sputum or culture for TB (Care) Observation" -define "Sputum or culture for TB (Care) Condition": - Elements."Sputum or culture for TB (Care) Condition" C +define "Sputum or culture for TB": + exists "Sputum or culture for TB Condition" + or exists "Sputum or culture for TB Observation" +define "Sputum or culture for TB Condition": + Elements."Sputum or culture for TB Condition" C where C.prevalenceInterval() starts on or before Today -define "Sputum or culture for TB (Care) Observation": - Elements."Sputum or culture for TB (Care) Observation" O +define "Sputum or culture for TB Observation": + Elements."Sputum or culture for TB Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Sputum or culture for TB (Care) */ +/* End of Sputum or culture for TB */ /* -@dataElement: HIV.D.DE405 - HBsAg test HBV (Care) +@dataElement: HIV.D.DE405 - HBsAg test HBV @activity: HIV.D20 Diagnostics @description: Provider ordered an HBsAg test (HBV) test */ // TODO: Replace placeholder with relevant CQL logic -define "HBsAg test HBV (Care)": - exists "HBsAg test HBV (Care) Condition" - or exists "HBsAg test HBV (Care) Observation" -define "HBsAg test HBV (Care) Condition": - Elements."HBsAg test HBV (Care) Condition" C +define "HBsAg test HBV": + exists "HBsAg test HBV Condition" + or exists "HBsAg test HBV Observation" +define "HBsAg test HBV Condition": + Elements."HBsAg test HBV Condition" C where C.prevalenceInterval() starts on or before Today -define "HBsAg test HBV (Care) Observation": - Elements."HBsAg test HBV (Care) Observation" O +define "HBsAg test HBV Observation": + Elements."HBsAg test HBV Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of HBsAg test HBV (Care) */ +/* End of HBsAg test HBV */ /* -@dataElement: HIV.D.DE406 - HIV viral load test ordered (Care) +@dataElement: HIV.D.DE406 - HIV viral load test ordered @activity: HIV.D20 Diagnostics @description: Provider ordered an HIV viral load test */ // TODO: Replace placeholder with relevant CQL logic -define "HIV viral load test ordered (Care)": - exists "HIV viral load test ordered (Care) Condition" - or exists "HIV viral load test ordered (Care) Observation" -define "HIV viral load test ordered (Care) Condition": - Elements."HIV viral load test ordered (Care) Condition" C +define "HIV viral load test ordered": + exists "HIV viral load test ordered Condition" + or exists "HIV viral load test ordered Observation" +define "HIV viral load test ordered Condition": + Elements."HIV viral load test ordered Condition" C where C.prevalenceInterval() starts on or before Today -define "HIV viral load test ordered (Care) Observation": - Elements."HIV viral load test ordered (Care) Observation" O +define "HIV viral load test ordered Observation": + Elements."HIV viral load test ordered Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of HIV viral load test ordered (Care) */ +/* End of HIV viral load test ordered */ /* -@dataElement: HIV.D.DE407 - HIV viral load test scheduled (Care) +@dataElement: HIV.D.DE407 - HIV viral load test scheduled @activity: HIV.D20 Diagnostics @description: Scheduled an HIV viral load test with client */ // TODO: Replace placeholder with relevant CQL logic -define "HIV viral load test scheduled (Care)": - exists "HIV viral load test scheduled (Care) Condition" - or exists "HIV viral load test scheduled (Care) Observation" -define "HIV viral load test scheduled (Care) Condition": - Elements."HIV viral load test scheduled (Care) Condition" C +define "HIV viral load test scheduled": + exists "HIV viral load test scheduled Condition" + or exists "HIV viral load test scheduled Observation" +define "HIV viral load test scheduled Condition": + Elements."HIV viral load test scheduled Condition" C where C.prevalenceInterval() starts on or before Today -define "HIV viral load test scheduled (Care) Observation": - Elements."HIV viral load test scheduled (Care) Observation" O +define "HIV viral load test scheduled Observation": + Elements."HIV viral load test scheduled Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of HIV viral load test scheduled (Care) */ +/* End of HIV viral load test scheduled */ /* -@dataElement: HIV.D.DE408 - CD4 count ordered (Care) +@dataElement: HIV.D.DE408 - CD4 count ordered @activity: HIV.D20 Diagnostics @description: Provider ordered a CD4 cell count */ // TODO: Replace placeholder with relevant CQL logic -define "CD4 count ordered (Care)": - exists "CD4 count ordered (Care) Condition" - or exists "CD4 count ordered (Care) Observation" -define "CD4 count ordered (Care) Condition": - Elements."CD4 count ordered (Care) Condition" C +define "CD4 count ordered": + exists "CD4 count ordered Condition" + or exists "CD4 count ordered Observation" +define "CD4 count ordered Condition": + Elements."CD4 count ordered Condition" C where C.prevalenceInterval() starts on or before Today -define "CD4 count ordered (Care) Observation": - Elements."CD4 count ordered (Care) Observation" O +define "CD4 count ordered Observation": + Elements."CD4 count ordered Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of CD4 count ordered (Care) */ +/* End of CD4 count ordered */ /* -@dataElement: HIV.D.DE409 - CD4 count test scheduled (Care) +@dataElement: HIV.D.DE409 - CD4 count test scheduled @activity: HIV.D20 Diagnostics @description: Scheduled a CD4 test with client */ // TODO: Replace placeholder with relevant CQL logic -define "CD4 count test scheduled (Care)": - exists "CD4 count test scheduled (Care) Condition" - or exists "CD4 count test scheduled (Care) Observation" -define "CD4 count test scheduled (Care) Condition": - Elements."CD4 count test scheduled (Care) Condition" C +define "CD4 count test scheduled": + exists "CD4 count test scheduled Condition" + or exists "CD4 count test scheduled Observation" +define "CD4 count test scheduled Condition": + Elements."CD4 count test scheduled Condition" C where C.prevalenceInterval() starts on or before Today -define "CD4 count test scheduled (Care) Observation": - Elements."CD4 count test scheduled (Care) Observation" O +define "CD4 count test scheduled Observation": + Elements."CD4 count test scheduled Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of CD4 count test scheduled (Care) */ +/* End of CD4 count test scheduled */ /* -@dataElement: HIV.D.DE410 - Cryptococcal antigen test (Care) +@dataElement: HIV.D.DE410 - Cryptococcal antigen test @activity: HIV.D20 Diagnostics @description: Provider ordered a cryptococcal antigen test */ // TODO: Replace placeholder with relevant CQL logic -define "Cryptococcal antigen test (Care)": - exists "Cryptococcal antigen test (Care) Condition" - or exists "Cryptococcal antigen test (Care) Observation" -define "Cryptococcal antigen test (Care) Condition": - Elements."Cryptococcal antigen test (Care) Condition" C +define "Cryptococcal antigen test": + exists "Cryptococcal antigen test Condition" + or exists "Cryptococcal antigen test Observation" +define "Cryptococcal antigen test Condition": + Elements."Cryptococcal antigen test Condition" C where C.prevalenceInterval() starts on or before Today -define "Cryptococcal antigen test (Care) Observation": - Elements."Cryptococcal antigen test (Care) Observation" O +define "Cryptococcal antigen test Observation": + Elements."Cryptococcal antigen test Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Cryptococcal antigen test (Care) */ +/* End of Cryptococcal antigen test */ /* -@dataElement: HIV.D.DE411 - Histoplasmosis antigen test (Care) +@dataElement: HIV.D.DE411 - Histoplasmosis antigen test @activity: HIV.D20 Diagnostics @description: Provider ordered a histoplasmosis antigen test */ // TODO: Replace placeholder with relevant CQL logic -define "Histoplasmosis antigen test (Care)": - exists "Histoplasmosis antigen test (Care) Condition" - or exists "Histoplasmosis antigen test (Care) Observation" -define "Histoplasmosis antigen test (Care) Condition": - Elements."Histoplasmosis antigen test (Care) Condition" C +define "Histoplasmosis antigen test": + exists "Histoplasmosis antigen test Condition" + or exists "Histoplasmosis antigen test Observation" +define "Histoplasmosis antigen test Condition": + Elements."Histoplasmosis antigen test Condition" C where C.prevalenceInterval() starts on or before Today -define "Histoplasmosis antigen test (Care) Observation": - Elements."Histoplasmosis antigen test (Care) Observation" O +define "Histoplasmosis antigen test Observation": + Elements."Histoplasmosis antigen test Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Histoplasmosis antigen test (Care) */ +/* End of Histoplasmosis antigen test */ /* -@dataElement: HIV.D.DE412 - Cervical cancer screening scheduled (Care) +@dataElement: HIV.D.DE412 - Cervical cancer screening scheduled @activity: HIV.D28 Offer other services @description: Scheduled cervical cancer screening with client */ // TODO: Replace placeholder with relevant CQL logic -define "Cervical cancer screening scheduled (Care)": - exists "Cervical cancer screening scheduled (Care) Condition" - or exists "Cervical cancer screening scheduled (Care) Observation" -define "Cervical cancer screening scheduled (Care) Condition": - Elements."Cervical cancer screening scheduled (Care) Condition" C +define "Cervical cancer screening scheduled": + exists "Cervical cancer screening scheduled Condition" + or exists "Cervical cancer screening scheduled Observation" +define "Cervical cancer screening scheduled Condition": + Elements."Cervical cancer screening scheduled Condition" C where C.prevalenceInterval() starts on or before Today -define "Cervical cancer screening scheduled (Care) Observation": - Elements."Cervical cancer screening scheduled (Care) Observation" O +define "Cervical cancer screening scheduled Observation": + Elements."Cervical cancer screening scheduled Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Cervical cancer screening scheduled (Care) */ +/* End of Cervical cancer screening scheduled */ /* -@dataElement: HIV.D.DE413 - Date of scheduled monitoring examination (Care) +@dataElement: HIV.D.DE413 - Date of scheduled monitoring examination @activity: HIV.D28 Offer other services @description: Date of scheduled monitoring examination */ // TODO: Replace placeholder with relevant CQL logic -define "Date of scheduled monitoring examination (Care)": - Elements."Date of scheduled monitoring examination (Care)" O +define "Date of scheduled monitoring examination": + Elements."Date of scheduled monitoring examination" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -define "Date of scheduled monitoring examination (Care) Value": - "Date of scheduled monitoring examination (Care)" O +define "Date of scheduled monitoring examination Value": + "Date of scheduled monitoring examination" O return O.value -/* End of Date of scheduled monitoring examination (Care) */ +/* End of Date of scheduled monitoring examination */ /* -@dataElement: HIV.D.DE427 - Switch to second-line ART regimen recommended (Care) +@dataElement: HIV.D.DE427 - Switch to second-line ART regimen recommended @activity: HIV.D21 Determine regimen and treatment options @description: A switch to second-line ART regimen is recommended */ // TODO: Replace placeholder with relevant CQL logic -define "Switch to second-line ART regimen recommended (Care)": - exists "Switch to second-line ART regimen recommended (Care) Observation" -define "Switch to second-line ART regimen recommended (Care) Observation": - Elements."Switch to second-line ART regimen recommended (Care) Observation" O +define "Switch to second-line ART regimen recommended": + exists "Switch to second-line ART regimen recommended Observation" +define "Switch to second-line ART regimen recommended Observation": + Elements."Switch to second-line ART regimen recommended Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Switch to second-line ART regimen recommended (Care) */ +/* End of Switch to second-line ART regimen recommended */ /* -@dataElement: HIV.D.DE436 - Regimen substitution recommended (Care) +@dataElement: HIV.D.DE436 - Regimen substitution recommended @activity: HIV.D23 Prescribe @description: A drug substitution is recommended */ // TODO: Replace placeholder with relevant CQL logic -define "Regimen substitution recommended (Care)": - exists "Regimen substitution recommended (Care) Observation" -define "Regimen substitution recommended (Care) Observation": - Elements."Regimen substitution recommended (Care) Observation" O +define "Regimen substitution recommended": + exists "Regimen substitution recommended Observation" +define "Regimen substitution recommended Observation": + Elements."Regimen substitution recommended Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Regimen substitution recommended (Care) */ +/* End of Regimen substitution recommended */ /* -@dataElement: HIV.D.DE437 - Dose adjustment recommended (Care) +@dataElement: HIV.D.DE437 - Dose adjustment recommended @activity: HIV.D23 Prescribe @description: A dosage change is recommended */ // TODO: Replace placeholder with relevant CQL logic -define "Dose adjustment recommended (Care)": - exists "Dose adjustment recommended (Care) Observation" -define "Dose adjustment recommended (Care) Observation": - Elements."Dose adjustment recommended (Care) Observation" O +define "Dose adjustment recommended": + exists "Dose adjustment recommended Observation" +define "Dose adjustment recommended Observation": + Elements."Dose adjustment recommended Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Dose adjustment recommended (Care) */ +/* End of Dose adjustment recommended */ /* -@dataElement: HIV.D.DE443 - Suspicion of treatment failure or interruption (Care) +@dataElement: HIV.D.DE443 - Suspicion of treatment failure or interruption @activity: HIV.D23 Prescribe @description: Client has been on ART, but has stopped taking it or a treatment failure is suspected */ // TODO: Replace placeholder with relevant CQL logic -define "Suspicion of treatment failure or interruption (Care)": - exists "Suspicion of treatment failure or interruption (Care) Observation" -define "Suspicion of treatment failure or interruption (Care) Observation": - Elements."Suspicion of treatment failure or interruption (Care) Observation" O +define "Suspicion of treatment failure or interruption": + exists "Suspicion of treatment failure or interruption Observation" +define "Suspicion of treatment failure or interruption Observation": + Elements."Suspicion of treatment failure or interruption Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Suspicion of treatment failure or interruption (Care) */ +/* End of Suspicion of treatment failure or interruption */ /* -@dataElement: HIV.D.DE465 - Adherence counselling provided (Care) +@dataElement: HIV.D.DE465 - Adherence counselling provided @activity: HIV.D24 Counsel @description: Counselling was carried out during visit */ // TODO: Replace placeholder with relevant CQL logic -define "Adherence counselling provided (Care)": - exists "Adherence counselling provided (Care) Observation" -define "Adherence counselling provided (Care) Observation": - Elements."Adherence counselling provided (Care) Observation" O +define "Adherence counselling provided D.DE465": + exists "Adherence counselling provided D.DE465 Observation" +define "Adherence counselling provided D.DE465 Observation": + Elements."Adherence counselling provided D.DE465 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Adherence counselling provided (Care) */ +/* End of Adherence counselling provided D.DE465 */ /* -@dataElement: HIV.D.DE507 - Counselling provided on diagnoses (Care) +@dataElement: HIV.D.DE507 - Counselling provided on diagnoses @activity: HIV.D24 Counsel @description: Counselling provided on diagnoses */ // TODO: Replace placeholder with relevant CQL logic -define "Counselling provided on diagnoses (Care)": - exists "Counselling provided on diagnoses (Care) Observation" -define "Counselling provided on diagnoses (Care) Observation": - Elements."Counselling provided on diagnoses (Care) Observation" O +define "Counselling provided on diagnoses": + exists "Counselling provided on diagnoses Observation" +define "Counselling provided on diagnoses Observation": + Elements."Counselling provided on diagnoses Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Counselling provided on diagnoses (Care) */ +/* End of Counselling provided on diagnoses */ /* -@dataElement: HIV.D.DE510 - Syphilis counselling and treatment (Care) +@dataElement: HIV.D.DE510 - Syphilis counselling and treatment @activity: HIV.D24 Counsel @description: Whether counselling and treatment was provided to a client who has been diagnosed with syphilis */ // TODO: Replace placeholder with relevant CQL logic -define "Syphilis counselling and treatment (Care)": - exists "Syphilis counselling and treatment (Care) Observation" -define "Syphilis counselling and treatment (Care) Observation": - Elements."Syphilis counselling and treatment (Care) Observation" O +define "Syphilis counselling and treatment": + exists "Syphilis counselling and treatment Observation" +define "Syphilis counselling and treatment Observation": + Elements."Syphilis counselling and treatment Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Syphilis counselling and treatment (Care) */ +/* End of Syphilis counselling and treatment */ /* -@dataElement: HIV.D.DE519 - Other support services (Care) +@dataElement: HIV.D.DE519 - Other support services @activity: HIV.D28 Offer other services @description: Offer or refer for other support services */ // TODO: Replace placeholder with relevant CQL logic -define "Other support services (Care)": - exists "Other support services (Care) Observation" -define "Other support services (Care) Observation": - Elements."Other support services (Care) Observation" O +define "Other support services D.DE519": + exists "Other support services D.DE519 Observation" +define "Other support services D.DE519 Observation": + Elements."Other support services D.DE519 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Other support services (Care) */ +/* End of Other support services D.DE519 */ /* -@dataElement: HIV.D.DE520 - Mental health services (Care) +@dataElement: HIV.D.DE520 - Mental health services @activity: HIV.D28 Offer other services @description: Offer or refer for mental health services */ // TODO: Replace placeholder with relevant CQL logic -define "Mental health services (Care)": - exists "Mental health services (Care) Condition" - or exists "Mental health services (Care) Observation" -define "Mental health services (Care) Condition": - Elements."Mental health services (Care) Condition" C +define "Mental health services D.DE520": + exists "Mental health services D.DE520 Condition" + or exists "Mental health services D.DE520 Observation" +define "Mental health services D.DE520 Condition": + Elements."Mental health services D.DE520 Condition" C where C.prevalenceInterval() starts on or before Today -define "Mental health services (Care) Observation": - Elements."Mental health services (Care) Observation" O +define "Mental health services D.DE520 Observation": + Elements."Mental health services D.DE520 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Mental health services (Care) */ +/* End of Mental health services D.DE520 */ /* -@dataElement: HIV.D.DE521 - Psychosocial counselling, support and treatment adherence counselling (Care) +@dataElement: HIV.D.DE521 - Psychosocial counselling, support and treatment adherence counselling @activity: HIV.D28 Offer other services @description: Offer or refer for psychosocial counselling, support and treatment adherence counselling */ // TODO: Replace placeholder with relevant CQL logic -define "Psychosocial counselling, support and treatment adherence counselling (Care)": - exists "Psychosocial counselling, support and treatment adherence counselling (Care) Condition" - or exists "Psychosocial counselling, support and treatment adherence counselling (Care) Observation" -define "Psychosocial counselling, support and treatment adherence counselling (Care) Condition": - Elements."Psychosocial counselling, support and treatment adherence counselling (Care) Condition" C +define "Psychosocial counselling, support and treatment adherence counselling D.DE521": + exists "Psychosocial counselling, support and treatment adherence counselling D.DE521 Condition" + or exists "Psychosocial counselling, support and treatment adherence counselling D.DE521 Observation" +define "Psychosocial counselling, support and treatment adherence counselling D.DE521 Condition": + Elements."Psychosocial counselling, support and treatment adherence counselling D.DE521 Condition" C where C.prevalenceInterval() starts on or before Today -define "Psychosocial counselling, support and treatment adherence counselling (Care) Observation": - Elements."Psychosocial counselling, support and treatment adherence counselling (Care) Observation" O +define "Psychosocial counselling, support and treatment adherence counselling D.DE521 Observation": + Elements."Psychosocial counselling, support and treatment adherence counselling D.DE521 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Psychosocial counselling, support and treatment adherence counselling (Care) */ +/* End of Psychosocial counselling, support and treatment adherence counselling D.DE521 */ /* -@dataElement: HIV.D.DE522 - Legal and social services (Care) +@dataElement: HIV.D.DE522 - Legal and social services @activity: HIV.D28 Offer other services @description: Offer or refer for legal and social services */ // TODO: Replace placeholder with relevant CQL logic -define "Legal and social services (Care)": - exists "Legal and social services (Care) Condition" - or exists "Legal and social services (Care) Observation" -define "Legal and social services (Care) Condition": - Elements."Legal and social services (Care) Condition" C +define "Legal and social services D.DE522": + exists "Legal and social services D.DE522 Condition" + or exists "Legal and social services D.DE522 Observation" +define "Legal and social services D.DE522 Condition": + Elements."Legal and social services D.DE522 Condition" C where C.prevalenceInterval() starts on or before Today -define "Legal and social services (Care) Observation": - Elements."Legal and social services (Care) Observation" O +define "Legal and social services D.DE522 Observation": + Elements."Legal and social services D.DE522 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Legal and social services (Care) */ +/* End of Legal and social services D.DE522 */ /* -@dataElement: HIV.D.DE523 - Services for responding to violence against women (Care) +@dataElement: HIV.D.DE523 - Services for responding to violence against women @activity: HIV.D28 Offer other services @description: Offer or refer for services for responding to violence against women, including first-line support and psychosocial support, post-rape care and other support services including shelters, legal services and women and child protection services */ // TODO: Replace placeholder with relevant CQL logic -define "Services for responding to violence against women (Care)": - exists "Services for responding to violence against women (Care) Condition" - or exists "Services for responding to violence against women (Care) Observation" -define "Services for responding to violence against women (Care) Condition": - Elements."Services for responding to violence against women (Care) Condition" C +define "Services for responding to violence against women D.DE523": + exists "Services for responding to violence against women D.DE523 Condition" + or exists "Services for responding to violence against women D.DE523 Observation" +define "Services for responding to violence against women D.DE523 Condition": + Elements."Services for responding to violence against women D.DE523 Condition" C where C.prevalenceInterval() starts on or before Today -define "Services for responding to violence against women (Care) Observation": - Elements."Services for responding to violence against women (Care) Observation" O +define "Services for responding to violence against women D.DE523 Observation": + Elements."Services for responding to violence against women D.DE523 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Services for responding to violence against women (Care) */ +/* End of Services for responding to violence against women D.DE523 */ /* -@dataElement: HIV.D.DE524 - Date/time of follow-up appointment (Care) +@dataElement: HIV.D.DE524 - Date/time of follow-up appointment @activity: HIV.D29 Schedule follow-up @description: Date the client is to return for monitoring, re-supply or any other reason */ // TODO: Replace placeholder with relevant CQL logic -define "Date/time of follow-up appointment (Care)": - Elements."Date/time of follow-up appointment (Care)" O +define "Date/time of follow-up appointment D.DE524": + Elements."Date/time of follow-up appointment D.DE524" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -define "Date/time of follow-up appointment (Care) Value": - "Date/time of follow-up appointment (Care)" O +define "Date/time of follow-up appointment D.DE524 Value": + "Date/time of follow-up appointment D.DE524" O return O.value -/* End of Date/time of follow-up appointment (Care) */ +/* End of Date/time of follow-up appointment D.DE524 */ /* -@dataElement: HIV.D.DE525 - Type of follow-up appointment (Care) +@dataElement: HIV.D.DE525 - Type of follow-up appointment @activity: HIV.D29 Schedule follow-up @description: Whether the visit will be clinical only, ARV drug pick-up or other. Client may have multiple follow-ups scheduled. */ // TODO: Replace placeholder with relevant CQL logic -define "Type of follow-up appointment (Care)": - exists "Type of follow-up appointment (Care) Observation" -define "Type of follow-up appointment (Care) Observation": - Elements."Type of follow-up appointment (Care) Observation" O +define "Type of follow-up appointment D.DE525": + exists "Type of follow-up appointment D.DE525 Observation" +define "Type of follow-up appointment D.DE525 Observation": + Elements."Type of follow-up appointment D.DE525 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Type of follow-up appointment (Care) */ +/* End of Type of follow-up appointment D.DE525 */ /* -@dataElement: HIV.D.DE526 - Clinical visit (Care|DDE526) +@dataElement: HIV.D.DE526 - Clinical visit @activity: HIV.D29 Schedule follow-up @description: Appointment for clinical care by a provider */ // TODO: Replace placeholder with relevant CQL logic -define "Clinical visit (Care|DDE526)": - exists "Clinical visit (Care|DDE526) Condition" - or exists "Clinical visit (Care|DDE526) Observation" -define "Clinical visit (Care|DDE526) Condition": - Elements."Clinical visit (Care|DDE526) Condition" C +define "Clinical visit D.DE526": + exists "Clinical visit D.DE526 Condition" + or exists "Clinical visit D.DE526 Observation" +define "Clinical visit D.DE526 Condition": + Elements."Clinical visit D.DE526 Condition" C where C.prevalenceInterval() starts on or before Today -define "Clinical visit (Care|DDE526) Observation": - Elements."Clinical visit (Care|DDE526) Observation" O +define "Clinical visit D.DE526 Observation": + Elements."Clinical visit D.DE526 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Clinical visit (Care|DDE526) */ +/* End of Clinical visit D.DE526 */ /* -@dataElement: HIV.D.DE527 - Antiretroviral drug pick up (Care) +@dataElement: HIV.D.DE527 - Antiretroviral drug pick up @activity: HIV.D29 Schedule follow-up @description: Appointment for a drug pick up */ // TODO: Replace placeholder with relevant CQL logic -define "Antiretroviral drug pick up (Care)": - exists "Antiretroviral drug pick up (Care) Condition" - or exists "Antiretroviral drug pick up (Care) Observation" -define "Antiretroviral drug pick up (Care) Condition": - Elements."Antiretroviral drug pick up (Care) Condition" C +define "Antiretroviral drug pick up": + exists "Antiretroviral drug pick up Condition" + or exists "Antiretroviral drug pick up Observation" +define "Antiretroviral drug pick up Condition": + Elements."Antiretroviral drug pick up Condition" C where C.prevalenceInterval() starts on or before Today -define "Antiretroviral drug pick up (Care) Observation": - Elements."Antiretroviral drug pick up (Care) Observation" O +define "Antiretroviral drug pick up Observation": + Elements."Antiretroviral drug pick up Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Antiretroviral drug pick up (Care) */ +/* End of Antiretroviral drug pick up */ /* -@dataElement: HIV.D.DE528 - Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer (Care|DDE528) +@dataElement: HIV.D.DE528 - Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer @activity: HIV.D29 Schedule follow-up @description: Appointment for a post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer */ // TODO: Replace placeholder with relevant CQL logic -define "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer (Care|DDE528)": - exists "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer (Care|DDE528) Condition" - or exists "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer (Care|DDE528) Observation" -define "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer (Care|DDE528) Condition": - Elements."Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer (Care|DDE528) Condition" C +define "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer D.DE528": + exists "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer D.DE528 Condition" + or exists "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer D.DE528 Observation" +define "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer D.DE528 Condition": + Elements."Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer D.DE528 Condition" C where C.prevalenceInterval() starts on or before Today -define "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer (Care|DDE528) Observation": - Elements."Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer (Care|DDE528) Observation" O +define "Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer D.DE528 Observation": + Elements."Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer D.DE528 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer (Care|DDE528) */ +/* End of Post-treatment follow-up visit for cervical precancer lesions or invasive cervical cancer D.DE528 */ /* -@dataElement: HIV.D.DE529 - Other (Care|DDE529) +@dataElement: HIV.D.DE529 - Other @activity: HIV.D29 Schedule follow-up @description: Other reason for the follow-up appointment */ // TODO: Replace placeholder with relevant CQL logic -define "Other (Care|DDE529)": - exists "Other (Care|DDE529) Condition" - or exists "Other (Care|DDE529) Observation" -define "Other (Care|DDE529) Condition": - Elements."Other (Care|DDE529) Condition" C +define "Other D.DE529": + exists "Other D.DE529 Condition" + or exists "Other D.DE529 Observation" +define "Other D.DE529 Condition": + Elements."Other D.DE529 Condition" C where C.prevalenceInterval() starts on or before Today -define "Other (Care|DDE529) Observation": - Elements."Other (Care|DDE529) Observation" O +define "Other D.DE529 Observation": + Elements."Other D.DE529 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Other (Care|DDE529) */ +/* End of Other D.DE529 */ /* -@dataElement: HIV.D.DE531 - Follow-up test recommended date (Care) +@dataElement: HIV.D.DE531 - Follow-up test recommended date @activity: HIV.D29 Schedule follow-up @description: A test or screening recommended for the client's care plan at a future date */ // TODO: Replace placeholder with relevant CQL logic -define "Follow-up test recommended date (Care)": - Elements."Follow-up test recommended date (Care)" O +define "Follow-up test recommended date": + Elements."Follow-up test recommended date" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -define "Follow-up test recommended date (Care) Value": - "Follow-up test recommended date (Care)" O +define "Follow-up test recommended date Value": + "Follow-up test recommended date" O return O.value -/* End of Follow-up test recommended date (Care) */ +/* End of Follow-up test recommended date */ /* -@dataElement: HIV.D.DE537 - Current medications (Care) +@dataElement: HIV.D.DE537 - Current medications @activity: HIV.D8 Capture or update client history @description: List of all of the medications the client is currently taking */ // TODO: Replace placeholder with relevant CQL logic -define "Current medications (Care)": - exists "Current medications (Care) Observation" -define "Current medications (Care) Observation": - Elements."Current medications (Care) Observation" O +define "Current medications": + exists "Current medications Observation" +define "Current medications Observation": + Elements."Current medications Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Current medications (Care) */ +/* End of Current medications */ /* -@dataElement: HIV.D.DE538 - No medications (Care) +@dataElement: HIV.D.DE538 - No medications @activity: HIV.D8 Capture or update client history @description: The client is currently not on any medications */ // TODO: Replace placeholder with relevant CQL logic -define "No medications (Care)": - exists "No medications (Care) Condition" - or exists "No medications (Care) Observation" -define "No medications (Care) Condition": - Elements."No medications (Care) Condition" C +define "No medications": + exists "No medications Condition" + or exists "No medications Observation" +define "No medications Condition": + Elements."No medications Condition" C where C.prevalenceInterval() starts on or before Today -define "No medications (Care) Observation": - Elements."No medications (Care) Observation" O +define "No medications Observation": + Elements."No medications Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of No medications (Care) */ +/* End of No medications */ /* -@dataElement: HIV.D.DE539 - Dont know of any current medications (Care) +@dataElement: HIV.D.DE539 - Dont know of any current medications @activity: HIV.D8 Capture or update client history @description: The client does not know if she is on any medications */ // TODO: Replace placeholder with relevant CQL logic -define "Dont know of any current medications (Care)": - exists "Dont know of any current medications (Care) Condition" - or exists "Dont know of any current medications (Care) Observation" -define "Dont know of any current medications (Care) Condition": - Elements."Dont know of any current medications (Care) Condition" C +define "Dont know of any current medications": + exists "Dont know of any current medications Condition" + or exists "Dont know of any current medications Observation" +define "Dont know of any current medications Condition": + Elements."Dont know of any current medications Condition" C where C.prevalenceInterval() starts on or before Today -define "Dont know of any current medications (Care) Observation": - Elements."Dont know of any current medications (Care) Observation" O +define "Dont know of any current medications Observation": + Elements."Dont know of any current medications Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Dont know of any current medications (Care) */ +/* End of Dont know of any current medications */ /* -@dataElement: HIV.D.DE540 - Analgesic (Care) +@dataElement: HIV.D.DE540 - Analgesic @activity: HIV.D8 Capture or update client history @description: Analgesic medication (painkiller) */ // TODO: Replace placeholder with relevant CQL logic -define "Analgesic (Care)": - exists "Analgesic (Care) Condition" - or exists "Analgesic (Care) Observation" -define "Analgesic (Care) Condition": - Elements."Analgesic (Care) Condition" C +define "Analgesic": + exists "Analgesic Condition" + or exists "Analgesic Observation" +define "Analgesic Condition": + Elements."Analgesic Condition" C where C.prevalenceInterval() starts on or before Today -define "Analgesic (Care) Observation": - Elements."Analgesic (Care) Observation" O +define "Analgesic Observation": + Elements."Analgesic Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Analgesic (Care) */ +/* End of Analgesic */ /* -@dataElement: HIV.D.DE541 - Antacids (Care) +@dataElement: HIV.D.DE541 - Antacids @activity: HIV.D8 Capture or update client history @description: Antacids */ // TODO: Replace placeholder with relevant CQL logic -define "Antacids (Care)": - exists "Antacids (Care) Condition" - or exists "Antacids (Care) Observation" -define "Antacids (Care) Condition": - Elements."Antacids (Care) Condition" C +define "Antacids": + exists "Antacids Condition" + or exists "Antacids Observation" +define "Antacids Condition": + Elements."Antacids Condition" C where C.prevalenceInterval() starts on or before Today -define "Antacids (Care) Observation": - Elements."Antacids (Care) Observation" O +define "Antacids Observation": + Elements."Antacids Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Antacids (Care) */ +/* End of Antacids */ /* -@dataElement: HIV.D.DE542 - Antibiotics broad-spectrum (Care) +@dataElement: HIV.D.DE542 - Antibiotics broad-spectrum @activity: HIV.D8 Capture or update client history @description: Client is currently taking broad-spectrum antibiotics */ // TODO: Replace placeholder with relevant CQL logic -define "Antibiotics broad-spectrum (Care)": - exists "Antibiotics broad-spectrum (Care) Condition" - or exists "Antibiotics broad-spectrum (Care) Observation" -define "Antibiotics broad-spectrum (Care) Condition": - Elements."Antibiotics broad-spectrum (Care) Condition" C +define "Antibiotics broad-spectrum": + exists "Antibiotics broad-spectrum Condition" + or exists "Antibiotics broad-spectrum Observation" +define "Antibiotics broad-spectrum Condition": + Elements."Antibiotics broad-spectrum Condition" C where C.prevalenceInterval() starts on or before Today -define "Antibiotics broad-spectrum (Care) Observation": - Elements."Antibiotics broad-spectrum (Care) Observation" O +define "Antibiotics broad-spectrum Observation": + Elements."Antibiotics broad-spectrum Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Antibiotics broad-spectrum (Care) */ +/* End of Antibiotics broad-spectrum */ /* -@dataElement: HIV.D.DE543 - Anticonvulsive (Care) +@dataElement: HIV.D.DE543 - Anticonvulsive @activity: HIV.D8 Capture or update client history @description: Anticonvulsive medication */ // TODO: Replace placeholder with relevant CQL logic -define "Anticonvulsive (Care)": - exists "Anticonvulsive (Care) Condition" - or exists "Anticonvulsive (Care) Observation" -define "Anticonvulsive (Care) Condition": - Elements."Anticonvulsive (Care) Condition" C +define "Anticonvulsive": + exists "Anticonvulsive Condition" + or exists "Anticonvulsive Observation" +define "Anticonvulsive Condition": + Elements."Anticonvulsive Condition" C where C.prevalenceInterval() starts on or before Today -define "Anticonvulsive (Care) Observation": - Elements."Anticonvulsive (Care) Observation" O +define "Anticonvulsive Observation": + Elements."Anticonvulsive Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Anticonvulsive (Care) */ +/* End of Anticonvulsive */ /* -@dataElement: HIV.D.DE544 - Antidiabetic (Care) +@dataElement: HIV.D.DE544 - Antidiabetic @activity: HIV.D8 Capture or update client history @description: Antidiabetic medication */ // TODO: Replace placeholder with relevant CQL logic -define "Antidiabetic (Care)": - exists "Antidiabetic (Care) Condition" - or exists "Antidiabetic (Care) Observation" -define "Antidiabetic (Care) Condition": - Elements."Antidiabetic (Care) Condition" C +define "Antidiabetic": + exists "Antidiabetic Condition" + or exists "Antidiabetic Observation" +define "Antidiabetic Condition": + Elements."Antidiabetic Condition" C where C.prevalenceInterval() starts on or before Today -define "Antidiabetic (Care) Observation": - Elements."Antidiabetic (Care) Observation" O +define "Antidiabetic Observation": + Elements."Antidiabetic Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Antidiabetic (Care) */ +/* End of Antidiabetic */ /* -@dataElement: HIV.D.DE545 - Antifungals (Care) +@dataElement: HIV.D.DE545 - Antifungals @activity: HIV.D8 Capture or update client history @description: Client is currently taking antifungals */ // TODO: Replace placeholder with relevant CQL logic -define "Antifungals (Care)": - exists "Antifungals (Care) Condition" - or exists "Antifungals (Care) Observation" -define "Antifungals (Care) Condition": - Elements."Antifungals (Care) Condition" C +define "Antifungals": + exists "Antifungals Condition" + or exists "Antifungals Observation" +define "Antifungals Condition": + Elements."Antifungals Condition" C where C.prevalenceInterval() starts on or before Today -define "Antifungals (Care) Observation": - Elements."Antifungals (Care) Observation" O +define "Antifungals Observation": + Elements."Antifungals Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Antifungals (Care) */ +/* End of Antifungals */ /* -@dataElement: HIV.D.DE546 - Antihelmintic (Care) +@dataElement: HIV.D.DE546 - Antihelmintic @activity: HIV.D8 Capture or update client history @description: Antihelmintic or antiparasitic medication */ // TODO: Replace placeholder with relevant CQL logic -define "Antihelmintic (Care)": - exists "Antihelmintic (Care) Condition" - or exists "Antihelmintic (Care) Observation" -define "Antihelmintic (Care) Condition": - Elements."Antihelmintic (Care) Condition" C +define "Antihelmintic": + exists "Antihelmintic Condition" + or exists "Antihelmintic Observation" +define "Antihelmintic Condition": + Elements."Antihelmintic Condition" C where C.prevalenceInterval() starts on or before Today -define "Antihelmintic (Care) Observation": - Elements."Antihelmintic (Care) Observation" O +define "Antihelmintic Observation": + Elements."Antihelmintic Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Antihelmintic (Care) */ +/* End of Antihelmintic */ /* -@dataElement: HIV.D.DE547 - Antihypertensive (Care) +@dataElement: HIV.D.DE547 - Antihypertensive @activity: HIV.D8 Capture or update client history @description: Antihypertensive medication */ // TODO: Replace placeholder with relevant CQL logic -define "Antihypertensive (Care)": - exists "Antihypertensive (Care) Condition" - or exists "Antihypertensive (Care) Observation" -define "Antihypertensive (Care) Condition": - Elements."Antihypertensive (Care) Condition" C +define "Antihypertensive": + exists "Antihypertensive Condition" + or exists "Antihypertensive Observation" +define "Antihypertensive Condition": + Elements."Antihypertensive Condition" C where C.prevalenceInterval() starts on or before Today -define "Antihypertensive (Care) Observation": - Elements."Antihypertensive (Care) Observation" O +define "Antihypertensive Observation": + Elements."Antihypertensive Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Antihypertensive (Care) */ +/* End of Antihypertensive */ /* -@dataElement: HIV.D.DE548 - Antimalarials (Care) +@dataElement: HIV.D.DE548 - Antimalarials @activity: HIV.D8 Capture or update client history @description: Antimalarial medication */ // TODO: Replace placeholder with relevant CQL logic -define "Antimalarials (Care)": - exists "Antimalarials (Care) Condition" - or exists "Antimalarials (Care) Observation" -define "Antimalarials (Care) Condition": - Elements."Antimalarials (Care) Condition" C +define "Antimalarials": + exists "Antimalarials Condition" + or exists "Antimalarials Observation" +define "Antimalarials Condition": + Elements."Antimalarials Condition" C where C.prevalenceInterval() starts on or before Today -define "Antimalarials (Care) Observation": - Elements."Antimalarials (Care) Observation" O +define "Antimalarials Observation": + Elements."Antimalarials Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Antimalarials (Care) */ +/* End of Antimalarials */ /* -@dataElement: HIV.D.DE549 - Antiretrovirals ARVs (Care) +@dataElement: HIV.D.DE549 - Antiretrovirals ARVs @activity: HIV.D8 Capture or update client history @description: Antiretrovirals (ARVs) */ // TODO: Replace placeholder with relevant CQL logic -define "Antiretrovirals ARVs (Care)": - exists "Antiretrovirals ARVs (Care) Condition" - or exists "Antiretrovirals ARVs (Care) Observation" -define "Antiretrovirals ARVs (Care) Condition": - Elements."Antiretrovirals ARVs (Care) Condition" C +define "Antiretrovirals ARVs": + exists "Antiretrovirals ARVs Condition" + or exists "Antiretrovirals ARVs Observation" +define "Antiretrovirals ARVs Condition": + Elements."Antiretrovirals ARVs Condition" C where C.prevalenceInterval() starts on or before Today -define "Antiretrovirals ARVs (Care) Observation": - Elements."Antiretrovirals ARVs (Care) Observation" O +define "Antiretrovirals ARVs Observation": + Elements."Antiretrovirals ARVs Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Antiretrovirals ARVs (Care) */ +/* End of Antiretrovirals ARVs */ /* -@dataElement: HIV.D.DE550 - Antiparasitics (Care) +@dataElement: HIV.D.DE550 - Antiparasitics @activity: HIV.D8 Capture or update client history @description: Client is currently taking antiparasitics */ // TODO: Replace placeholder with relevant CQL logic -define "Antiparasitics (Care)": - exists "Antiparasitics (Care) Condition" - or exists "Antiparasitics (Care) Observation" -define "Antiparasitics (Care) Condition": - Elements."Antiparasitics (Care) Condition" C +define "Antiparasitics": + exists "Antiparasitics Condition" + or exists "Antiparasitics Observation" +define "Antiparasitics Condition": + Elements."Antiparasitics Condition" C where C.prevalenceInterval() starts on or before Today -define "Antiparasitics (Care) Observation": - Elements."Antiparasitics (Care) Observation" O +define "Antiparasitics Observation": + Elements."Antiparasitics Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Antiparasitics (Care) */ +/* End of Antiparasitics */ /* -@dataElement: HIV.D.DE551 - Antivirals (Care) +@dataElement: HIV.D.DE551 - Antivirals @activity: HIV.D8 Capture or update client history @description: Antiviral medication */ // TODO: Replace placeholder with relevant CQL logic -define "Antivirals (Care)": - exists "Antivirals (Care) Condition" - or exists "Antivirals (Care) Observation" -define "Antivirals (Care) Condition": - Elements."Antivirals (Care) Condition" C +define "Antivirals": + exists "Antivirals Condition" + or exists "Antivirals Observation" +define "Antivirals Condition": + Elements."Antivirals Condition" C where C.prevalenceInterval() starts on or before Today -define "Antivirals (Care) Observation": - Elements."Antivirals (Care) Observation" O +define "Antivirals Observation": + Elements."Antivirals Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Antivirals (Care) */ +/* End of Antivirals */ /* -@dataElement: HIV.D.DE552 - Buprenorphine (Care|DDE552) +@dataElement: HIV.D.DE552 - Buprenorphine @activity: HIV.D8 Capture or update client history @description: Opioid substitution to treat opioid dependence */ // TODO: Replace placeholder with relevant CQL logic -define "Buprenorphine (Care|DDE552)": - exists "Buprenorphine (Care|DDE552) Condition" - or exists "Buprenorphine (Care|DDE552) Observation" -define "Buprenorphine (Care|DDE552) Condition": - Elements."Buprenorphine (Care|DDE552) Condition" C +define "Buprenorphine D.DE552": + exists "Buprenorphine D.DE552 Condition" + or exists "Buprenorphine D.DE552 Observation" +define "Buprenorphine D.DE552 Condition": + Elements."Buprenorphine D.DE552 Condition" C where C.prevalenceInterval() starts on or before Today -define "Buprenorphine (Care|DDE552) Observation": - Elements."Buprenorphine (Care|DDE552) Observation" O +define "Buprenorphine D.DE552 Observation": + Elements."Buprenorphine D.DE552 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Buprenorphine (Care|DDE552) */ +/* End of Buprenorphine D.DE552 */ /* -@dataElement: HIV.D.DE553 - Co-trimoxazole preventive therapy CPT (Care) +@dataElement: HIV.D.DE553 - Co-trimoxazole preventive therapy CPT @activity: HIV.D8 Capture or update client history @description: Combination of two antimicrobial drugs (sulfamethoxazole and trimethoprim) that covers a variety of bacterial, fungal and protozoan infections */ // TODO: Replace placeholder with relevant CQL logic -define "Co-trimoxazole preventive therapy CPT (Care)": - exists "Co-trimoxazole preventive therapy CPT (Care) Condition" - or exists "Co-trimoxazole preventive therapy CPT (Care) Observation" -define "Co-trimoxazole preventive therapy CPT (Care) Condition": - Elements."Co-trimoxazole preventive therapy CPT (Care) Condition" C +define "Co-trimoxazole preventive therapy CPT": + exists "Co-trimoxazole preventive therapy CPT Condition" + or exists "Co-trimoxazole preventive therapy CPT Observation" +define "Co-trimoxazole preventive therapy CPT Condition": + Elements."Co-trimoxazole preventive therapy CPT Condition" C where C.prevalenceInterval() starts on or before Today -define "Co-trimoxazole preventive therapy CPT (Care) Observation": - Elements."Co-trimoxazole preventive therapy CPT (Care) Observation" O +define "Co-trimoxazole preventive therapy CPT Observation": + Elements."Co-trimoxazole preventive therapy CPT Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Co-trimoxazole preventive therapy CPT (Care) */ +/* End of Co-trimoxazole preventive therapy CPT */ /* -@dataElement: HIV.D.DE554 - Hormonal family planning method (Care) +@dataElement: HIV.D.DE554 - Hormonal family planning method @activity: HIV.D8 Capture or update client history @description: Hormonal family planning method */ // TODO: Replace placeholder with relevant CQL logic -define "Hormonal family planning method (Care)": - exists "Hormonal family planning method (Care) Condition" - or exists "Hormonal family planning method (Care) Observation" -define "Hormonal family planning method (Care) Condition": - Elements."Hormonal family planning method (Care) Condition" C +define "Hormonal family planning method": + exists "Hormonal family planning method Condition" + or exists "Hormonal family planning method Observation" +define "Hormonal family planning method Condition": + Elements."Hormonal family planning method Condition" C where C.prevalenceInterval() starts on or before Today -define "Hormonal family planning method (Care) Observation": - Elements."Hormonal family planning method (Care) Observation" O +define "Hormonal family planning method Observation": + Elements."Hormonal family planning method Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Hormonal family planning method (Care) */ +/* End of Hormonal family planning method */ /* -@dataElement: HIV.D.DE555 - Methadone (Care|DDE555) +@dataElement: HIV.D.DE555 - Methadone @activity: HIV.D8 Capture or update client history @description: Opioid substitution to treat opioid dependence */ // TODO: Replace placeholder with relevant CQL logic -define "Methadone (Care|DDE555)": - exists "Methadone (Care|DDE555) Condition" - or exists "Methadone (Care|DDE555) Observation" -define "Methadone (Care|DDE555) Condition": - Elements."Methadone (Care|DDE555) Condition" C +define "Methadone D.DE555": + exists "Methadone D.DE555 Condition" + or exists "Methadone D.DE555 Observation" +define "Methadone D.DE555 Condition": + Elements."Methadone D.DE555 Condition" C where C.prevalenceInterval() starts on or before Today -define "Methadone (Care|DDE555) Observation": - Elements."Methadone (Care|DDE555) Observation" O +define "Methadone D.DE555 Observation": + Elements."Methadone D.DE555 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Methadone (Care|DDE555) */ +/* End of Methadone D.DE555 */ /* -@dataElement: HIV.D.DE556 - PrEP to prevent HIV (Care) +@dataElement: HIV.D.DE556 - PrEP to prevent HIV @activity: HIV.D8 Capture or update client history @description: Pre-exposure prophylaxis (PrEP) medication for preventing the acquisition of HIV */ // TODO: Replace placeholder with relevant CQL logic -define "PrEP to prevent HIV (Care)": - exists "PrEP to prevent HIV (Care) Condition" - or exists "PrEP to prevent HIV (Care) Observation" -define "PrEP to prevent HIV (Care) Condition": - Elements."PrEP to prevent HIV (Care) Condition" C +define "PrEP to prevent HIV": + exists "PrEP to prevent HIV Condition" + or exists "PrEP to prevent HIV Observation" +define "PrEP to prevent HIV Condition": + Elements."PrEP to prevent HIV Condition" C where C.prevalenceInterval() starts on or before Today -define "PrEP to prevent HIV (Care) Observation": - Elements."PrEP to prevent HIV (Care) Observation" O +define "PrEP to prevent HIV Observation": + Elements."PrEP to prevent HIV Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of PrEP to prevent HIV (Care) */ +/* End of PrEP to prevent HIV */ /* -@dataElement: HIV.D.DE557 - Other antibiotics (Care) +@dataElement: HIV.D.DE557 - Other antibiotics @activity: HIV.D8 Capture or update client history @description: Other antibiotics not listed above */ // TODO: Replace placeholder with relevant CQL logic -define "Other antibiotics (Care)": - exists "Other antibiotics (Care) Condition" - or exists "Other antibiotics (Care) Observation" -define "Other antibiotics (Care) Condition": - Elements."Other antibiotics (Care) Condition" C +define "Other antibiotics": + exists "Other antibiotics Condition" + or exists "Other antibiotics Observation" +define "Other antibiotics Condition": + Elements."Other antibiotics Condition" C where C.prevalenceInterval() starts on or before Today -define "Other antibiotics (Care) Observation": - Elements."Other antibiotics (Care) Observation" O +define "Other antibiotics Observation": + Elements."Other antibiotics Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Other antibiotics (Care) */ +/* End of Other antibiotics */ /* -@dataElement: HIV.D.DE558 - Other medications (Care) +@dataElement: HIV.D.DE558 - Other medications @activity: HIV.D8 Capture or update client history @description: Other medications or supplements that are not listed above */ // TODO: Replace placeholder with relevant CQL logic -define "Other medications (Care)": - exists "Other medications (Care) Condition" - or exists "Other medications (Care) Observation" -define "Other medications (Care) Condition": - Elements."Other medications (Care) Condition" C +define "Other medications": + exists "Other medications Condition" + or exists "Other medications Observation" +define "Other medications Condition": + Elements."Other medications Condition" C where C.prevalenceInterval() starts on or before Today -define "Other medications (Care) Observation": - Elements."Other medications (Care) Observation" O +define "Other medications Observation": + Elements."Other medications Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Other medications (Care) */ +/* End of Other medications */ /* -@dataElement: HIV.D.DE658 - Cervical cancer primary screening test type (Care) +@dataElement: HIV.D.DE658 - Cervical cancer primary screening test type @activity: HIV.D28 Offer other services @description: Type of cervical cancer screening test used in primary screening */ // TODO: Replace placeholder with relevant CQL logic -define "Cervical cancer primary screening test type (Care)": - exists "Cervical cancer primary screening test type (Care) Observation" -define "Cervical cancer primary screening test type (Care) Observation": - Elements."Cervical cancer primary screening test type (Care) Observation" O +define "Cervical cancer primary screening test type": + exists "Cervical cancer primary screening test type Observation" +define "Cervical cancer primary screening test type Observation": + Elements."Cervical cancer primary screening test type Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Cervical cancer primary screening test type (Care) */ +/* End of Cervical cancer primary screening test type */ /* -@dataElement: HIV.D.DE659 - HPV-DNA (Care) +@dataElement: HIV.D.DE659 - HPV-DNA @activity: HIV.D28 Offer other services @description: Screened for cervical cancer using HPV-DNA test */ // TODO: Replace placeholder with relevant CQL logic -define "HPV-DNA (Care)": - exists "HPV-DNA (Care) Condition" - or exists "HPV-DNA (Care) Observation" -define "HPV-DNA (Care) Condition": - Elements."HPV-DNA (Care) Condition" C +define "HPV-DNA": + exists "HPV-DNA Condition" + or exists "HPV-DNA Observation" +define "HPV-DNA Condition": + Elements."HPV-DNA Condition" C where C.prevalenceInterval() starts on or before Today -define "HPV-DNA (Care) Observation": - Elements."HPV-DNA (Care) Observation" O +define "HPV-DNA Observation": + Elements."HPV-DNA Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of HPV-DNA (Care) */ +/* End of HPV-DNA */ /* -@dataElement: HIV.D.DE660 - VIA (Care) +@dataElement: HIV.D.DE660 - VIA @activity: HIV.D28 Offer other services @description: Screened for cervical cancer using visual inspection with acetic acid (VIA) */ // TODO: Replace placeholder with relevant CQL logic -define "VIA (Care)": - exists "VIA (Care) Condition" - or exists "VIA (Care) Observation" -define "VIA (Care) Condition": - Elements."VIA (Care) Condition" C +define "VIA": + exists "VIA Condition" + or exists "VIA Observation" +define "VIA Condition": + Elements."VIA Condition" C where C.prevalenceInterval() starts on or before Today -define "VIA (Care) Observation": - Elements."VIA (Care) Observation" O +define "VIA Observation": + Elements."VIA Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of VIA (Care) */ +/* End of VIA */ /* -@dataElement: HIV.D.DE661 - Cervical cytology (Care) +@dataElement: HIV.D.DE661 - Cervical cytology @activity: HIV.D28 Offer other services @description: Screened for cervical cancer using cervical cytology */ // TODO: Replace placeholder with relevant CQL logic -define "Cervical cytology (Care)": - exists "Cervical cytology (Care) Condition" - or exists "Cervical cytology (Care) Observation" -define "Cervical cytology (Care) Condition": - Elements."Cervical cytology (Care) Condition" C +define "Cervical cytology": + exists "Cervical cytology Condition" + or exists "Cervical cytology Observation" +define "Cervical cytology Condition": + Elements."Cervical cytology Condition" C where C.prevalenceInterval() starts on or before Today -define "Cervical cytology (Care) Observation": - Elements."Cervical cytology (Care) Observation" O +define "Cervical cytology Observation": + Elements."Cervical cytology Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Cervical cytology (Care) */ +/* End of Cervical cytology */ /* -@dataElement: HIV.D.DE662 - Other (Care|DDE662) +@dataElement: HIV.D.DE662 - Other @activity: HIV.D28 Offer other services @description: Screened for cervical cancer using other method */ // TODO: Replace placeholder with relevant CQL logic -define "Other (Care|DDE662)": - exists "Other (Care|DDE662) Condition" - or exists "Other (Care|DDE662) Observation" -define "Other (Care|DDE662) Condition": - Elements."Other (Care|DDE662) Condition" C +define "Other D.DE662": + exists "Other D.DE662 Condition" + or exists "Other D.DE662 Observation" +define "Other D.DE662 Condition": + Elements."Other D.DE662 Condition" C where C.prevalenceInterval() starts on or before Today -define "Other (Care|DDE662) Observation": - Elements."Other (Care|DDE662) Observation" O +define "Other D.DE662 Observation": + Elements."Other D.DE662 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Other (Care|DDE662) */ +/* End of Other D.DE662 */ /* -@dataElement: HIV.D.DE745 - Cervical cancer screening interval amongst WLHIV (Care) +@dataElement: HIV.D.DE745 - Cervical cancer screening interval amongst WLHIV @activity: HIV.D28 Offer other services @description: Country-specific interval between cancer screenings amongst women living with HIV (typically 3 or 5 years) */ // TODO: Replace placeholder with relevant CQL logic -define "Cervical cancer screening interval amongst WLHIV (Care)": - Elements."Cervical cancer screening interval amongst WLHIV (Care)" O +define "Cervical cancer screening interval amongst WLHIV": + Elements."Cervical cancer screening interval amongst WLHIV" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -define "Cervical cancer screening interval amongst WLHIV (Care) Value": - "Cervical cancer screening interval amongst WLHIV (Care)" O +define "Cervical cancer screening interval amongst WLHIV Value": + "Cervical cancer screening interval amongst WLHIV" O return O.value -/* End of Cervical cancer screening interval amongst WLHIV (Care) */ +/* End of Cervical cancer screening interval amongst WLHIV */ /* -@dataElement: HIV.D.DE753 - Offer other clinical services (Care) +@dataElement: HIV.D.DE753 - Offer other clinical services @activity: HIV.D28 Offer other services @description: Other clinical services offered or referrals given to the client */ // TODO: Replace placeholder with relevant CQL logic -define "Offer other clinical services (Care)": - exists "Offer other clinical services (Care) Observation" -define "Offer other clinical services (Care) Observation": - Elements."Offer other clinical services (Care) Observation" O +define "Offer other clinical services D.DE753": + exists "Offer other clinical services D.DE753 Observation" +define "Offer other clinical services D.DE753 Observation": + Elements."Offer other clinical services D.DE753 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Offer other clinical services (Care) */ +/* End of Offer other clinical services D.DE753 */ /* -@dataElement: HIV.D.DE754 - Assessment and provision of vaccinations (Care) +@dataElement: HIV.D.DE754 - Assessment and provision of vaccinations @activity: HIV.D28 Offer other services @description: Assessment and provision of vaccinations, such as for people from Key population member type, pregnant women and infants; and, where appropriate, tetanus vaccination for adolescent boys and men receiving VMMC */ // TODO: Replace placeholder with relevant CQL logic -define "Assessment and provision of vaccinations (Care)": - exists "Assessment and provision of vaccinations (Care) Condition" - or exists "Assessment and provision of vaccinations (Care) Observation" -define "Assessment and provision of vaccinations (Care) Condition": - Elements."Assessment and provision of vaccinations (Care) Condition" C +define "Assessment and provision of vaccinations D.DE754": + exists "Assessment and provision of vaccinations D.DE754 Condition" + or exists "Assessment and provision of vaccinations D.DE754 Observation" +define "Assessment and provision of vaccinations D.DE754 Condition": + Elements."Assessment and provision of vaccinations D.DE754 Condition" C where C.prevalenceInterval() starts on or before Today -define "Assessment and provision of vaccinations (Care) Observation": - Elements."Assessment and provision of vaccinations (Care) Observation" O +define "Assessment and provision of vaccinations D.DE754 Observation": + Elements."Assessment and provision of vaccinations D.DE754 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Assessment and provision of vaccinations (Care) */ +/* End of Assessment and provision of vaccinations D.DE754 */ /* -@dataElement: HIV.D.DE755 - Hepatitis B HBV and hepatitis C virus HCV testing and treatment (Care) +@dataElement: HIV.D.DE755 - Hepatitis B HBV and hepatitis C virus HCV testing and treatment @activity: HIV.D28 Offer other services @description: Offer or refer for HBV and/or HCV testing and treatment */ // TODO: Replace placeholder with relevant CQL logic -define "Hepatitis B HBV and hepatitis C virus HCV testing and treatment (Care)": - exists "Hepatitis B HBV and hepatitis C virus HCV testing and treatment (Care) Condition" - or exists "Hepatitis B HBV and hepatitis C virus HCV testing and treatment (Care) Observation" -define "Hepatitis B HBV and hepatitis C virus HCV testing and treatment (Care) Condition": - Elements."Hepatitis B HBV and hepatitis C virus HCV testing and treatment (Care) Condition" C +define "Hepatitis B HBV and hepatitis C virus HCV testing and treatment": + exists "Hepatitis B HBV and hepatitis C virus HCV testing and treatment Condition" + or exists "Hepatitis B HBV and hepatitis C virus HCV testing and treatment Observation" +define "Hepatitis B HBV and hepatitis C virus HCV testing and treatment Condition": + Elements."Hepatitis B HBV and hepatitis C virus HCV testing and treatment Condition" C where C.prevalenceInterval() starts on or before Today -define "Hepatitis B HBV and hepatitis C virus HCV testing and treatment (Care) Observation": - Elements."Hepatitis B HBV and hepatitis C virus HCV testing and treatment (Care) Observation" O +define "Hepatitis B HBV and hepatitis C virus HCV testing and treatment Observation": + Elements."Hepatitis B HBV and hepatitis C virus HCV testing and treatment Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Hepatitis B HBV and hepatitis C virus HCV testing and treatment (Care) */ +/* End of Hepatitis B HBV and hepatitis C virus HCV testing and treatment */ /* -@dataElement: HIV.D.DE756 - Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia (Care) +@dataElement: HIV.D.DE756 - Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia @activity: HIV.D28 Offer other services @description: Offer or refer for co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia */ // TODO: Replace placeholder with relevant CQL logic -define "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia (Care)": - exists "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia (Care) Condition" - or exists "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia (Care) Observation" -define "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia (Care) Condition": - Elements."Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia (Care) Condition" C +define "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia D.DE756": + exists "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia D.DE756 Condition" + or exists "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia D.DE756 Observation" +define "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia D.DE756 Condition": + Elements."Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia D.DE756 Condition" C where C.prevalenceInterval() starts on or before Today -define "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia (Care) Observation": - Elements."Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia (Care) Observation" O +define "Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia D.DE756 Observation": + Elements."Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia D.DE756 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia (Care) */ +/* End of Co-trimoxazole chemoprophylaxis to prevent pneumocystis carinii pneumonia D.DE756 */ /* -@dataElement: HIV.D.DE757 - Intensified TB case finding and linkage to TB treatment (Care) +@dataElement: HIV.D.DE757 - Intensified TB case finding and linkage to TB treatment @activity: HIV.D28 Offer other services @description: Offer or refer for intensified TB case finding and linkage to TB treatment */ // TODO: Replace placeholder with relevant CQL logic -define "Intensified TB case finding and linkage to TB treatment (Care)": - exists "Intensified TB case finding and linkage to TB treatment (Care) Condition" - or exists "Intensified TB case finding and linkage to TB treatment (Care) Observation" -define "Intensified TB case finding and linkage to TB treatment (Care) Condition": - Elements."Intensified TB case finding and linkage to TB treatment (Care) Condition" C +define "Intensified TB case finding and linkage to TB treatment D.DE757": + exists "Intensified TB case finding and linkage to TB treatment D.DE757 Condition" + or exists "Intensified TB case finding and linkage to TB treatment D.DE757 Observation" +define "Intensified TB case finding and linkage to TB treatment D.DE757 Condition": + Elements."Intensified TB case finding and linkage to TB treatment D.DE757 Condition" C where C.prevalenceInterval() starts on or before Today -define "Intensified TB case finding and linkage to TB treatment (Care) Observation": - Elements."Intensified TB case finding and linkage to TB treatment (Care) Observation" O +define "Intensified TB case finding and linkage to TB treatment D.DE757 Observation": + Elements."Intensified TB case finding and linkage to TB treatment D.DE757 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Intensified TB case finding and linkage to TB treatment (Care) */ +/* End of Intensified TB case finding and linkage to TB treatment D.DE757 */ /* -@dataElement: HIV.D.DE758 - Provision of isoniazid preventive therapy if person does not have TB (Care) +@dataElement: HIV.D.DE758 - Provision of isoniazid preventive therapy if person does not have TB @activity: HIV.D28 Offer other services @description: Offer or refer for provision of isoniazid preventive therapy if person does not have TB */ // TODO: Replace placeholder with relevant CQL logic -define "Provision of isoniazid preventive therapy if person does not have TB (Care)": - exists "Provision of isoniazid preventive therapy if person does not have TB (Care) Condition" - or exists "Provision of isoniazid preventive therapy if person does not have TB (Care) Observation" -define "Provision of isoniazid preventive therapy if person does not have TB (Care) Condition": - Elements."Provision of isoniazid preventive therapy if person does not have TB (Care) Condition" C +define "Provision of isoniazid preventive therapy if person does not have TB D.DE758": + exists "Provision of isoniazid preventive therapy if person does not have TB D.DE758 Condition" + or exists "Provision of isoniazid preventive therapy if person does not have TB D.DE758 Observation" +define "Provision of isoniazid preventive therapy if person does not have TB D.DE758 Condition": + Elements."Provision of isoniazid preventive therapy if person does not have TB D.DE758 Condition" C where C.prevalenceInterval() starts on or before Today -define "Provision of isoniazid preventive therapy if person does not have TB (Care) Observation": - Elements."Provision of isoniazid preventive therapy if person does not have TB (Care) Observation" O +define "Provision of isoniazid preventive therapy if person does not have TB D.DE758 Observation": + Elements."Provision of isoniazid preventive therapy if person does not have TB D.DE758 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Provision of isoniazid preventive therapy if person does not have TB (Care) */ +/* End of Provision of isoniazid preventive therapy if person does not have TB D.DE758 */ /* -@dataElement: HIV.D.DE759 - Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (Care) +@dataElement: HIV.D.DE759 - Malaria prevention such as bed nets and prophylaxis, depending on epidemiology @activity: HIV.D28 Offer other services @description: Offer or refer for malaria prevention (such as bed nets and prophylaxis), depending on epidemiology */ // TODO: Replace placeholder with relevant CQL logic -define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (Care)": - exists "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (Care) Condition" - or exists "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (Care) Observation" -define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (Care) Condition": - Elements."Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (Care) Condition" C +define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology D.DE759": + exists "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology D.DE759 Condition" + or exists "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology D.DE759 Observation" +define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology D.DE759 Condition": + Elements."Malaria prevention such as bed nets and prophylaxis, depending on epidemiology D.DE759 Condition" C where C.prevalenceInterval() starts on or before Today -define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (Care) Observation": - Elements."Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (Care) Observation" O +define "Malaria prevention such as bed nets and prophylaxis, depending on epidemiology D.DE759 Observation": + Elements."Malaria prevention such as bed nets and prophylaxis, depending on epidemiology D.DE759 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Malaria prevention such as bed nets and prophylaxis, depending on epidemiology (Care) */ +/* End of Malaria prevention such as bed nets and prophylaxis, depending on epidemiology D.DE759 */ /* -@dataElement: HIV.D.DE903 - Medication/drug (Care) +@dataElement: HIV.D.DE903 - Medication/drug @activity: HIV.D21 Determine regimen and treatment options @description: Current or considered medication/drug, for the purpose of determining drug interactions */ // TODO: Replace placeholder with relevant CQL logic -define "Medication/drug (Care)": - exists "Medication/drug (Care) Observation" -define "Medication/drug (Care) Observation": - Elements."Medication/drug (Care) Observation" O +define "Medication/drug": + exists "Medication/drug Observation" +define "Medication/drug Observation": + Elements."Medication/drug Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Medication/drug (Care) */ +/* End of Medication/drug */ /* -@dataElement: HIV.D.DE904 - Rifampicin (Care) +@dataElement: HIV.D.DE904 - Rifampicin @activity: HIV.D21 Determine regimen and treatment options @description: Rifampicin currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Rifampicin (Care)": - exists "Rifampicin (Care) Condition" - or exists "Rifampicin (Care) Observation" -define "Rifampicin (Care) Condition": - Elements."Rifampicin (Care) Condition" C +define "Rifampicin": + exists "Rifampicin Condition" + or exists "Rifampicin Observation" +define "Rifampicin Condition": + Elements."Rifampicin Condition" C where C.prevalenceInterval() starts on or before Today -define "Rifampicin (Care) Observation": - Elements."Rifampicin (Care) Observation" O +define "Rifampicin Observation": + Elements."Rifampicin Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Rifampicin (Care) */ +/* End of Rifampicin */ /* -@dataElement: HIV.D.DE905 - Halofantrine (Care) +@dataElement: HIV.D.DE905 - Halofantrine @activity: HIV.D21 Determine regimen and treatment options @description: Halofantrine currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Halofantrine (Care)": - exists "Halofantrine (Care) Condition" - or exists "Halofantrine (Care) Observation" -define "Halofantrine (Care) Condition": - Elements."Halofantrine (Care) Condition" C +define "Halofantrine": + exists "Halofantrine Condition" + or exists "Halofantrine Observation" +define "Halofantrine Condition": + Elements."Halofantrine Condition" C where C.prevalenceInterval() starts on or before Today -define "Halofantrine (Care) Observation": - Elements."Halofantrine (Care) Observation" O +define "Halofantrine Observation": + Elements."Halofantrine Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Halofantrine (Care) */ +/* End of Halofantrine */ /* -@dataElement: HIV.D.DE906 - Lovastatin (Care) +@dataElement: HIV.D.DE906 - Lovastatin @activity: HIV.D21 Determine regimen and treatment options @description: Lovastatin currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Lovastatin (Care)": - exists "Lovastatin (Care) Condition" - or exists "Lovastatin (Care) Observation" -define "Lovastatin (Care) Condition": - Elements."Lovastatin (Care) Condition" C +define "Lovastatin": + exists "Lovastatin Condition" + or exists "Lovastatin Observation" +define "Lovastatin Condition": + Elements."Lovastatin Condition" C where C.prevalenceInterval() starts on or before Today -define "Lovastatin (Care) Observation": - Elements."Lovastatin (Care) Observation" O +define "Lovastatin Observation": + Elements."Lovastatin Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Lovastatin (Care) */ +/* End of Lovastatin */ /* -@dataElement: HIV.D.DE907 - Simvastatin (Care) +@dataElement: HIV.D.DE907 - Simvastatin @activity: HIV.D21 Determine regimen and treatment options @description: Simvastatin currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Simvastatin (Care)": - exists "Simvastatin (Care) Condition" - or exists "Simvastatin (Care) Observation" -define "Simvastatin (Care) Condition": - Elements."Simvastatin (Care) Condition" C +define "Simvastatin": + exists "Simvastatin Condition" + or exists "Simvastatin Observation" +define "Simvastatin Condition": + Elements."Simvastatin Condition" C where C.prevalenceInterval() starts on or before Today -define "Simvastatin (Care) Observation": - Elements."Simvastatin (Care) Observation" O +define "Simvastatin Observation": + Elements."Simvastatin Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Simvastatin (Care) */ +/* End of Simvastatin */ /* -@dataElement: HIV.D.DE908 - Hormonal contraception (Care) +@dataElement: HIV.D.DE908 - Hormonal contraception @activity: HIV.D21 Determine regimen and treatment options @description: Hormonal contraception currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Hormonal contraception (Care)": - exists "Hormonal contraception (Care) Condition" - or exists "Hormonal contraception (Care) Observation" -define "Hormonal contraception (Care) Condition": - Elements."Hormonal contraception (Care) Condition" C +define "Hormonal contraception": + exists "Hormonal contraception Condition" + or exists "Hormonal contraception Observation" +define "Hormonal contraception Condition": + Elements."Hormonal contraception Condition" C where C.prevalenceInterval() starts on or before Today -define "Hormonal contraception (Care) Observation": - Elements."Hormonal contraception (Care) Observation" O +define "Hormonal contraception Observation": + Elements."Hormonal contraception Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Hormonal contraception (Care) */ +/* End of Hormonal contraception */ /* -@dataElement: HIV.D.DE909 - Metformin (Care) +@dataElement: HIV.D.DE909 - Metformin @activity: HIV.D21 Determine regimen and treatment options @description: Metformin currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Metformin (Care)": - exists "Metformin (Care) Condition" - or exists "Metformin (Care) Observation" -define "Metformin (Care) Condition": - Elements."Metformin (Care) Condition" C +define "Metformin": + exists "Metformin Condition" + or exists "Metformin Observation" +define "Metformin Condition": + Elements."Metformin Condition" C where C.prevalenceInterval() starts on or before Today -define "Metformin (Care) Observation": - Elements."Metformin (Care) Observation" O +define "Metformin Observation": + Elements."Metformin Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Metformin (Care) */ +/* End of Metformin */ /* -@dataElement: HIV.D.DE910 - Astemizole (Care) +@dataElement: HIV.D.DE910 - Astemizole @activity: HIV.D21 Determine regimen and treatment options @description: Astemizole currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Astemizole (Care)": - exists "Astemizole (Care) Condition" - or exists "Astemizole (Care) Observation" -define "Astemizole (Care) Condition": - Elements."Astemizole (Care) Condition" C +define "Astemizole": + exists "Astemizole Condition" + or exists "Astemizole Observation" +define "Astemizole Condition": + Elements."Astemizole Condition" C where C.prevalenceInterval() starts on or before Today -define "Astemizole (Care) Observation": - Elements."Astemizole (Care) Observation" O +define "Astemizole Observation": + Elements."Astemizole Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Astemizole (Care) */ +/* End of Astemizole */ /* -@dataElement: HIV.D.DE911 - Terfenadine (Care) +@dataElement: HIV.D.DE911 - Terfenadine @activity: HIV.D21 Determine regimen and treatment options @description: Terfenadine currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Terfenadine (Care)": - exists "Terfenadine (Care) Condition" - or exists "Terfenadine (Care) Observation" -define "Terfenadine (Care) Condition": - Elements."Terfenadine (Care) Condition" C +define "Terfenadine": + exists "Terfenadine Condition" + or exists "Terfenadine Observation" +define "Terfenadine Condition": + Elements."Terfenadine Condition" C where C.prevalenceInterval() starts on or before Today -define "Terfenadine (Care) Observation": - Elements."Terfenadine (Care) Observation" O +define "Terfenadine Observation": + Elements."Terfenadine Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Terfenadine (Care) */ +/* End of Terfenadine */ /* -@dataElement: HIV.D.DE912 - TDF (Care|DDE912) +@dataElement: HIV.D.DE912 - TDF @activity: HIV.D21 Determine regimen and treatment options @description: TDF currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "TDF (Care|DDE912)": - exists "TDF (Care|DDE912) Condition" - or exists "TDF (Care|DDE912) Observation" -define "TDF (Care|DDE912) Condition": - Elements."TDF (Care|DDE912) Condition" C +define "TDF D.DE912": + exists "TDF D.DE912 Condition" + or exists "TDF D.DE912 Observation" +define "TDF D.DE912 Condition": + Elements."TDF D.DE912 Condition" C where C.prevalenceInterval() starts on or before Today -define "TDF (Care|DDE912) Observation": - Elements."TDF (Care|DDE912) Observation" O +define "TDF D.DE912 Observation": + Elements."TDF D.DE912 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of TDF (Care|DDE912) */ +/* End of TDF D.DE912 */ /* -@dataElement: HIV.D.DE913 - Simeprevir (Care) +@dataElement: HIV.D.DE913 - Simeprevir @activity: HIV.D21 Determine regimen and treatment options @description: Simeprevir currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Simeprevir (Care)": - exists "Simeprevir (Care) Condition" - or exists "Simeprevir (Care) Observation" -define "Simeprevir (Care) Condition": - Elements."Simeprevir (Care) Condition" C +define "Simeprevir": + exists "Simeprevir Condition" + or exists "Simeprevir Observation" +define "Simeprevir Condition": + Elements."Simeprevir Condition" C where C.prevalenceInterval() starts on or before Today -define "Simeprevir (Care) Observation": - Elements."Simeprevir (Care) Observation" O +define "Simeprevir Observation": + Elements."Simeprevir Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Simeprevir (Care) */ +/* End of Simeprevir */ /* -@dataElement: HIV.D.DE914 - Ombitasvir + paritaprevir/ritonavir + dasabuvir (Care) +@dataElement: HIV.D.DE914 - Ombitasvir + paritaprevir/ritonavir + dasabuvir @activity: HIV.D21 Determine regimen and treatment options @description: Ombitasvir + paritaprevir/ritonavir + dasabuvir currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Ombitasvir + paritaprevir/ritonavir + dasabuvir (Care)": - exists "Ombitasvir + paritaprevir/ritonavir + dasabuvir (Care) Condition" - or exists "Ombitasvir + paritaprevir/ritonavir + dasabuvir (Care) Observation" -define "Ombitasvir + paritaprevir/ritonavir + dasabuvir (Care) Condition": - Elements."Ombitasvir + paritaprevir/ritonavir + dasabuvir (Care) Condition" C +define "Ombitasvir + paritaprevir/ritonavir + dasabuvir": + exists "Ombitasvir + paritaprevir/ritonavir + dasabuvir Condition" + or exists "Ombitasvir + paritaprevir/ritonavir + dasabuvir Observation" +define "Ombitasvir + paritaprevir/ritonavir + dasabuvir Condition": + Elements."Ombitasvir + paritaprevir/ritonavir + dasabuvir Condition" C where C.prevalenceInterval() starts on or before Today -define "Ombitasvir + paritaprevir/ritonavir + dasabuvir (Care) Observation": - Elements."Ombitasvir + paritaprevir/ritonavir + dasabuvir (Care) Observation" O +define "Ombitasvir + paritaprevir/ritonavir + dasabuvir Observation": + Elements."Ombitasvir + paritaprevir/ritonavir + dasabuvir Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Ombitasvir + paritaprevir/ritonavir + dasabuvir (Care) */ +/* End of Ombitasvir + paritaprevir/ritonavir + dasabuvir */ /* -@dataElement: HIV.D.DE915 - Methadone (Care|DDE915) +@dataElement: HIV.D.DE915 - Methadone @activity: HIV.D21 Determine regimen and treatment options @description: Methadone currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Methadone (Care|DDE915)": - exists "Methadone (Care|DDE915) Condition" - or exists "Methadone (Care|DDE915) Observation" -define "Methadone (Care|DDE915) Condition": - Elements."Methadone (Care|DDE915) Condition" C +define "Methadone D.DE915": + exists "Methadone D.DE915 Condition" + or exists "Methadone D.DE915 Observation" +define "Methadone D.DE915 Condition": + Elements."Methadone D.DE915 Condition" C where C.prevalenceInterval() starts on or before Today -define "Methadone (Care|DDE915) Observation": - Elements."Methadone (Care|DDE915) Observation" O +define "Methadone D.DE915 Observation": + Elements."Methadone D.DE915 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Methadone (Care|DDE915) */ +/* End of Methadone D.DE915 */ /* -@dataElement: HIV.D.DE916 - Buprenorphine (Care|DDE916) +@dataElement: HIV.D.DE916 - Buprenorphine @activity: HIV.D21 Determine regimen and treatment options @description: Buprenorphine currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Buprenorphine (Care|DDE916)": - exists "Buprenorphine (Care|DDE916) Condition" - or exists "Buprenorphine (Care|DDE916) Observation" -define "Buprenorphine (Care|DDE916) Condition": - Elements."Buprenorphine (Care|DDE916) Condition" C +define "Buprenorphine D.DE916": + exists "Buprenorphine D.DE916 Condition" + or exists "Buprenorphine D.DE916 Observation" +define "Buprenorphine D.DE916 Condition": + Elements."Buprenorphine D.DE916 Condition" C where C.prevalenceInterval() starts on or before Today -define "Buprenorphine (Care|DDE916) Observation": - Elements."Buprenorphine (Care|DDE916) Observation" O +define "Buprenorphine D.DE916 Observation": + Elements."Buprenorphine D.DE916 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Buprenorphine (Care|DDE916) */ +/* End of Buprenorphine D.DE916 */ /* -@dataElement: HIV.D.DE917 - Dofetilide (Care) +@dataElement: HIV.D.DE917 - Dofetilide @activity: HIV.D21 Determine regimen and treatment options @description: Dofetilide currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Dofetilide (Care)": - exists "Dofetilide (Care) Condition" - or exists "Dofetilide (Care) Observation" -define "Dofetilide (Care) Condition": - Elements."Dofetilide (Care) Condition" C +define "Dofetilide": + exists "Dofetilide Condition" + or exists "Dofetilide Observation" +define "Dofetilide Condition": + Elements."Dofetilide Condition" C where C.prevalenceInterval() starts on or before Today -define "Dofetilide (Care) Observation": - Elements."Dofetilide (Care) Observation" O +define "Dofetilide Observation": + Elements."Dofetilide Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Dofetilide (Care) */ +/* End of Dofetilide */ /* -@dataElement: HIV.D.DE918 - Carbamazepine (Care) +@dataElement: HIV.D.DE918 - Carbamazepine @activity: HIV.D21 Determine regimen and treatment options @description: Carbamazepine currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Carbamazepine (Care)": - exists "Carbamazepine (Care) Condition" - or exists "Carbamazepine (Care) Observation" -define "Carbamazepine (Care) Condition": - Elements."Carbamazepine (Care) Condition" C +define "Carbamazepine": + exists "Carbamazepine Condition" + or exists "Carbamazepine Observation" +define "Carbamazepine Condition": + Elements."Carbamazepine Condition" C where C.prevalenceInterval() starts on or before Today -define "Carbamazepine (Care) Observation": - Elements."Carbamazepine (Care) Observation" O +define "Carbamazepine Observation": + Elements."Carbamazepine Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Carbamazepine (Care) */ +/* End of Carbamazepine */ /* -@dataElement: HIV.D.DE919 - Phenobarbital (Care) +@dataElement: HIV.D.DE919 - Phenobarbital @activity: HIV.D21 Determine regimen and treatment options @description: Phenobarbital currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Phenobarbital (Care)": - exists "Phenobarbital (Care) Condition" - or exists "Phenobarbital (Care) Observation" -define "Phenobarbital (Care) Condition": - Elements."Phenobarbital (Care) Condition" C +define "Phenobarbital": + exists "Phenobarbital Condition" + or exists "Phenobarbital Observation" +define "Phenobarbital Condition": + Elements."Phenobarbital Condition" C where C.prevalenceInterval() starts on or before Today -define "Phenobarbital (Care) Observation": - Elements."Phenobarbital (Care) Observation" O +define "Phenobarbital Observation": + Elements."Phenobarbital Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Phenobarbital (Care) */ +/* End of Phenobarbital */ /* -@dataElement: HIV.D.DE920 - Phenytoin (Care) +@dataElement: HIV.D.DE920 - Phenytoin @activity: HIV.D21 Determine regimen and treatment options @description: Phenytoin currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Phenytoin (Care)": - exists "Phenytoin (Care) Condition" - or exists "Phenytoin (Care) Observation" -define "Phenytoin (Care) Condition": - Elements."Phenytoin (Care) Condition" C +define "Phenytoin": + exists "Phenytoin Condition" + or exists "Phenytoin Observation" +define "Phenytoin Condition": + Elements."Phenytoin Condition" C where C.prevalenceInterval() starts on or before Today -define "Phenytoin (Care) Observation": - Elements."Phenytoin (Care) Observation" O +define "Phenytoin Observation": + Elements."Phenytoin Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Phenytoin (Care) */ +/* End of Phenytoin */ /* -@dataElement: HIV.D.DE921 - Polyvalent cation products containing Mg, Al, Fe, Ca and Zn (Care) +@dataElement: HIV.D.DE921 - Polyvalent cation products containing Mg, Al, Fe, Ca and Zn @activity: HIV.D21 Determine regimen and treatment options @description: Polyvalent cation products containing Mg, Al, Fe, Ca and Zn currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Polyvalent cation products containing Mg, Al, Fe, Ca and Zn (Care)": - exists "Polyvalent cation products containing Mg, Al, Fe, Ca and Zn (Care) Condition" - or exists "Polyvalent cation products containing Mg, Al, Fe, Ca and Zn (Care) Observation" -define "Polyvalent cation products containing Mg, Al, Fe, Ca and Zn (Care) Condition": - Elements."Polyvalent cation products containing Mg, Al, Fe, Ca and Zn (Care) Condition" C +define "Polyvalent cation products containing Mg, Al, Fe, Ca and Zn": + exists "Polyvalent cation products containing Mg, Al, Fe, Ca and Zn Condition" + or exists "Polyvalent cation products containing Mg, Al, Fe, Ca and Zn Observation" +define "Polyvalent cation products containing Mg, Al, Fe, Ca and Zn Condition": + Elements."Polyvalent cation products containing Mg, Al, Fe, Ca and Zn Condition" C where C.prevalenceInterval() starts on or before Today -define "Polyvalent cation products containing Mg, Al, Fe, Ca and Zn (Care) Observation": - Elements."Polyvalent cation products containing Mg, Al, Fe, Ca and Zn (Care) Observation" O +define "Polyvalent cation products containing Mg, Al, Fe, Ca and Zn Observation": + Elements."Polyvalent cation products containing Mg, Al, Fe, Ca and Zn Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Polyvalent cation products containing Mg, Al, Fe, Ca and Zn (Care) */ +/* End of Polyvalent cation products containing Mg, Al, Fe, Ca and Zn */ /* -@dataElement: HIV.D.DE922 - Amodiaquine (Care) +@dataElement: HIV.D.DE922 - Amodiaquine @activity: HIV.D21 Determine regimen and treatment options @description: Amodiaquine currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Amodiaquine (Care)": - exists "Amodiaquine (Care) Condition" - or exists "Amodiaquine (Care) Observation" -define "Amodiaquine (Care) Condition": - Elements."Amodiaquine (Care) Condition" C +define "Amodiaquine": + exists "Amodiaquine Condition" + or exists "Amodiaquine Observation" +define "Amodiaquine Condition": + Elements."Amodiaquine Condition" C where C.prevalenceInterval() starts on or before Today -define "Amodiaquine (Care) Observation": - Elements."Amodiaquine (Care) Observation" O +define "Amodiaquine Observation": + Elements."Amodiaquine Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Amodiaquine (Care) */ +/* End of Amodiaquine */ /* -@dataElement: HIV.D.DE923 - Cisapride (Care) +@dataElement: HIV.D.DE923 - Cisapride @activity: HIV.D21 Determine regimen and treatment options @description: Cisapride currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Cisapride (Care)": - exists "Cisapride (Care) Condition" - or exists "Cisapride (Care) Observation" -define "Cisapride (Care) Condition": - Elements."Cisapride (Care) Condition" C +define "Cisapride": + exists "Cisapride Condition" + or exists "Cisapride Observation" +define "Cisapride Condition": + Elements."Cisapride Condition" C where C.prevalenceInterval() starts on or before Today -define "Cisapride (Care) Observation": - Elements."Cisapride (Care) Observation" O +define "Cisapride Observation": + Elements."Cisapride Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Cisapride (Care) */ +/* End of Cisapride */ /* -@dataElement: HIV.D.DE924 - Ergotamine (Care) +@dataElement: HIV.D.DE924 - Ergotamine @activity: HIV.D21 Determine regimen and treatment options @description: Ergotamine currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Ergotamine (Care)": - exists "Ergotamine (Care) Condition" - or exists "Ergotamine (Care) Observation" -define "Ergotamine (Care) Condition": - Elements."Ergotamine (Care) Condition" C +define "Ergotamine": + exists "Ergotamine Condition" + or exists "Ergotamine Observation" +define "Ergotamine Condition": + Elements."Ergotamine Condition" C where C.prevalenceInterval() starts on or before Today -define "Ergotamine (Care) Observation": - Elements."Ergotamine (Care) Observation" O +define "Ergotamine Observation": + Elements."Ergotamine Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Ergotamine (Care) */ +/* End of Ergotamine */ /* -@dataElement: HIV.D.DE925 - Dihydroergotamine (Care) +@dataElement: HIV.D.DE925 - Dihydroergotamine @activity: HIV.D21 Determine regimen and treatment options @description: Dihydroergotamine currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Dihydroergotamine (Care)": - exists "Dihydroergotamine (Care) Condition" - or exists "Dihydroergotamine (Care) Observation" -define "Dihydroergotamine (Care) Condition": - Elements."Dihydroergotamine (Care) Condition" C +define "Dihydroergotamine": + exists "Dihydroergotamine Condition" + or exists "Dihydroergotamine Observation" +define "Dihydroergotamine Condition": + Elements."Dihydroergotamine Condition" C where C.prevalenceInterval() starts on or before Today -define "Dihydroergotamine (Care) Observation": - Elements."Dihydroergotamine (Care) Observation" O +define "Dihydroergotamine Observation": + Elements."Dihydroergotamine Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Dihydroergotamine (Care) */ +/* End of Dihydroergotamine */ /* -@dataElement: HIV.D.DE926 - Midazolam (Care) +@dataElement: HIV.D.DE926 - Midazolam @activity: HIV.D21 Determine regimen and treatment options @description: Midazolam currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Midazolam (Care)": - exists "Midazolam (Care) Condition" - or exists "Midazolam (Care) Observation" -define "Midazolam (Care) Condition": - Elements."Midazolam (Care) Condition" C +define "Midazolam": + exists "Midazolam Condition" + or exists "Midazolam Observation" +define "Midazolam Condition": + Elements."Midazolam Condition" C where C.prevalenceInterval() starts on or before Today -define "Midazolam (Care) Observation": - Elements."Midazolam (Care) Observation" O +define "Midazolam Observation": + Elements."Midazolam Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Midazolam (Care) */ +/* End of Midazolam */ /* -@dataElement: HIV.D.DE927 - Triazolam (Care) +@dataElement: HIV.D.DE927 - Triazolam @activity: HIV.D21 Determine regimen and treatment options @description: Triazolam currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Triazolam (Care)": - exists "Triazolam (Care) Condition" - or exists "Triazolam (Care) Observation" -define "Triazolam (Care) Condition": - Elements."Triazolam (Care) Condition" C +define "Triazolam": + exists "Triazolam Condition" + or exists "Triazolam Observation" +define "Triazolam Condition": + Elements."Triazolam Condition" C where C.prevalenceInterval() starts on or before Today -define "Triazolam (Care) Observation": - Elements."Triazolam (Care) Observation" O +define "Triazolam Observation": + Elements."Triazolam Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Triazolam (Care) */ +/* End of Triazolam */ /* -@dataElement: HIV.D.DE928 - Estrogen-based hormonal contraception (Care) +@dataElement: HIV.D.DE928 - Estrogen-based hormonal contraception @activity: HIV.D21 Determine regimen and treatment options @description: Estrogen-based hormonal contraception currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Estrogen-based hormonal contraception (Care)": - exists "Estrogen-based hormonal contraception (Care) Condition" - or exists "Estrogen-based hormonal contraception (Care) Observation" -define "Estrogen-based hormonal contraception (Care) Condition": - Elements."Estrogen-based hormonal contraception (Care) Condition" C +define "Estrogen-based hormonal contraception": + exists "Estrogen-based hormonal contraception Condition" + or exists "Estrogen-based hormonal contraception Observation" +define "Estrogen-based hormonal contraception Condition": + Elements."Estrogen-based hormonal contraception Condition" C where C.prevalenceInterval() starts on or before Today -define "Estrogen-based hormonal contraception (Care) Observation": - Elements."Estrogen-based hormonal contraception (Care) Observation" O +define "Estrogen-based hormonal contraception Observation": + Elements."Estrogen-based hormonal contraception Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Estrogen-based hormonal contraception (Care) */ +/* End of Estrogen-based hormonal contraception */ /* -@dataElement: HIV.D.DE929 - Ribavirin (Care) +@dataElement: HIV.D.DE929 - Ribavirin @activity: HIV.D21 Determine regimen and treatment options @description: Ribavirin currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Ribavirin (Care)": - exists "Ribavirin (Care) Condition" - or exists "Ribavirin (Care) Observation" -define "Ribavirin (Care) Condition": - Elements."Ribavirin (Care) Condition" C +define "Ribavirin": + exists "Ribavirin Condition" + or exists "Ribavirin Observation" +define "Ribavirin Condition": + Elements."Ribavirin Condition" C where C.prevalenceInterval() starts on or before Today -define "Ribavirin (Care) Observation": - Elements."Ribavirin (Care) Observation" O +define "Ribavirin Observation": + Elements."Ribavirin Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Ribavirin (Care) */ +/* End of Ribavirin */ /* -@dataElement: HIV.D.DE930 - Peginterferon alfa-2a (Care) +@dataElement: HIV.D.DE930 - Peginterferon alfa-2a @activity: HIV.D21 Determine regimen and treatment options @description: Peginterferon alfa-2a currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Peginterferon alfa-2a (Care)": - exists "Peginterferon alfa-2a (Care) Condition" - or exists "Peginterferon alfa-2a (Care) Observation" -define "Peginterferon alfa-2a (Care) Condition": - Elements."Peginterferon alfa-2a (Care) Condition" C +define "Peginterferon alfa-2a": + exists "Peginterferon alfa-2a Condition" + or exists "Peginterferon alfa-2a Observation" +define "Peginterferon alfa-2a Condition": + Elements."Peginterferon alfa-2a Condition" C where C.prevalenceInterval() starts on or before Today -define "Peginterferon alfa-2a (Care) Observation": - Elements."Peginterferon alfa-2a (Care) Observation" O +define "Peginterferon alfa-2a Observation": + Elements."Peginterferon alfa-2a Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Peginterferon alfa-2a (Care) */ +/* End of Peginterferon alfa-2a */ /* -@dataElement: HIV.D.DE931 - Other (Care|DDE931) +@dataElement: HIV.D.DE931 - Other @activity: HIV.D21 Determine regimen and treatment options @description: Other medication currently being taken by, or considered for, client */ // TODO: Replace placeholder with relevant CQL logic -define "Other (Care|DDE931)": - exists "Other (Care|DDE931) Condition" - or exists "Other (Care|DDE931) Observation" -define "Other (Care|DDE931) Condition": - Elements."Other (Care|DDE931) Condition" C +define "Other D.DE931": + exists "Other D.DE931 Condition" + or exists "Other D.DE931 Observation" +define "Other D.DE931 Condition": + Elements."Other D.DE931 Condition" C where C.prevalenceInterval() starts on or before Today -define "Other (Care|DDE931) Observation": - Elements."Other (Care|DDE931) Observation" O +define "Other D.DE931 Observation": + Elements."Other D.DE931 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Other (Care|DDE931) */ +/* End of Other D.DE931 */ /* -@dataElement: HIV.D.DE933 - Medication change recommended (Care) +@dataElement: HIV.D.DE933 - Medication change recommended @activity: HIV.D21 Determine regimen and treatment options @description: A medication change is recommended for the client based upon current or considered medications */ // TODO: Replace placeholder with relevant CQL logic -define "Medication change recommended (Care)": - exists "Medication change recommended (Care) Observation" -define "Medication change recommended (Care) Observation": - Elements."Medication change recommended (Care) Observation" O +define "Medication change recommended": + exists "Medication change recommended Observation" +define "Medication change recommended Observation": + Elements."Medication change recommended Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Medication change recommended (Care) */ +/* End of Medication change recommended */ /* -@dataElement: HIV.D.DE934 - WHO HIV clinical stage condition or symptom (HIV) +@dataElement: HIV.D.DE934 - WHO HIV clinical stage condition or symptom @activity: HIV.D15 Determine clinical stage of HIV @description: New or recurrent clinical events used to categorize HIV disease severity based at baseline and follow up */ // TODO: Replace placeholder with relevant CQL logic -define "WHO HIV clinical stage condition or symptom (HIV)": - exists "WHO HIV clinical stage condition or symptom (HIV) Observation" -define "WHO HIV clinical stage condition or symptom (HIV) Observation": - Elements."WHO HIV clinical stage condition or symptom (HIV) Observation" O +define "WHO HIV clinical stage condition or symptom D.DE934": + exists "WHO HIV clinical stage condition or symptom D.DE934 Observation" +define "WHO HIV clinical stage condition or symptom D.DE934 Observation": + Elements."WHO HIV clinical stage condition or symptom D.DE934 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of WHO HIV clinical stage condition or symptom (HIV) */ +/* End of WHO HIV clinical stage condition or symptom D.DE934 */ /* -@dataElement: HIV.D.DE935 - Pulmonary TB (HIV) +@dataElement: HIV.D.DE935 - Pulmonary TB @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include pulmonary TB */ // TODO: Replace placeholder with relevant CQL logic -define "Pulmonary TB (HIV)": - exists "Pulmonary TB (HIV) Condition" - or exists "Pulmonary TB (HIV) Observation" -define "Pulmonary TB (HIV) Condition": - Elements."Pulmonary TB (HIV) Condition" C +define "Pulmonary TB D.DE935": + exists "Pulmonary TB D.DE935 Condition" + or exists "Pulmonary TB D.DE935 Observation" +define "Pulmonary TB D.DE935 Condition": + Elements."Pulmonary TB D.DE935 Condition" C where C.prevalenceInterval() starts on or before Today -define "Pulmonary TB (HIV) Observation": - Elements."Pulmonary TB (HIV) Observation" O +define "Pulmonary TB D.DE935 Observation": + Elements."Pulmonary TB D.DE935 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Pulmonary TB (HIV) */ +/* End of Pulmonary TB D.DE935 */ /* -@dataElement: HIV.D.DE936 - Lymph node TB (HIV) +@dataElement: HIV.D.DE936 - Lymph node TB @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include lymph node TB */ // TODO: Replace placeholder with relevant CQL logic -define "Lymph node TB (HIV)": - exists "Lymph node TB (HIV) Condition" - or exists "Lymph node TB (HIV) Observation" -define "Lymph node TB (HIV) Condition": - Elements."Lymph node TB (HIV) Condition" C +define "Lymph node TB D.DE936": + exists "Lymph node TB D.DE936 Condition" + or exists "Lymph node TB D.DE936 Observation" +define "Lymph node TB D.DE936 Condition": + Elements."Lymph node TB D.DE936 Condition" C where C.prevalenceInterval() starts on or before Today -define "Lymph node TB (HIV) Observation": - Elements."Lymph node TB (HIV) Observation" O +define "Lymph node TB D.DE936 Observation": + Elements."Lymph node TB D.DE936 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Lymph node TB (HIV) */ +/* End of Lymph node TB D.DE936 */ /* -@dataElement: HIV.D.DE937 - Extrapulmonary TB (HIV) +@dataElement: HIV.D.DE937 - Extrapulmonary TB @activity: HIV.D15 Determine clinical stage of HIV @description: Client's symptoms include extrapulmonary tuberculosis (TB) */ // TODO: Replace placeholder with relevant CQL logic -define "Extrapulmonary TB (HIV)": - exists "Extrapulmonary TB (HIV) Condition" - or exists "Extrapulmonary TB (HIV) Observation" -define "Extrapulmonary TB (HIV) Condition": - Elements."Extrapulmonary TB (HIV) Condition" C +define "Extrapulmonary TB D.DE937": + exists "Extrapulmonary TB D.DE937 Condition" + or exists "Extrapulmonary TB D.DE937 Observation" +define "Extrapulmonary TB D.DE937 Condition": + Elements."Extrapulmonary TB D.DE937 Condition" C where C.prevalenceInterval() starts on or before Today -define "Extrapulmonary TB (HIV) Observation": - Elements."Extrapulmonary TB (HIV) Observation" O +define "Extrapulmonary TB D.DE937 Observation": + Elements."Extrapulmonary TB D.DE937 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Extrapulmonary TB (HIV) */ +/* End of Extrapulmonary TB D.DE937 */ /* -@dataElement: HIV.D.DE956 - TB screening algorithm (HIV) +@dataElement: HIV.D.DE956 - TB screening algorithm @activity: HIV.D4 Screen for TB @description: Screening algorithm selected for screening activities */ // TODO: Replace placeholder with relevant CQL logic -define "TB screening algorithm (HIV)": - exists "TB screening algorithm (HIV) Observation" -define "TB screening algorithm (HIV) Observation": - Elements."TB screening algorithm (HIV) Observation" O +define "TB screening algorithm": + exists "TB screening algorithm Observation" +define "TB screening algorithm Observation": + Elements."TB screening algorithm Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of TB screening algorithm (HIV) */ +/* End of TB screening algorithm */ /* -@dataElement: HIV.D.DE957 - Screening with cough (HIV) +@dataElement: HIV.D.DE957 - Screening with cough @activity: HIV.D4 Screen for TB @description: Client screened for TB based on cough symptom */ // TODO: Replace placeholder with relevant CQL logic -define "Screening with cough (HIV)": - exists "Screening with cough (HIV) Condition" - or exists "Screening with cough (HIV) Observation" -define "Screening with cough (HIV) Condition": - Elements."Screening with cough (HIV) Condition" C +define "Screening with cough": + exists "Screening with cough Condition" + or exists "Screening with cough Observation" +define "Screening with cough Condition": + Elements."Screening with cough Condition" C where C.prevalenceInterval() starts on or before Today -define "Screening with cough (HIV) Observation": - Elements."Screening with cough (HIV) Observation" O +define "Screening with cough Observation": + Elements."Screening with cough Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Screening with cough (HIV) */ +/* End of Screening with cough */ /* -@dataElement: HIV.D.DE958 - Screening with any TB symptom (HIV) +@dataElement: HIV.D.DE958 - Screening with any TB symptom @activity: HIV.D4 Screen for TB @description: Client screened for TB based on any TB symptom */ // TODO: Replace placeholder with relevant CQL logic -define "Screening with any TB symptom (HIV)": - exists "Screening with any TB symptom (HIV) Condition" - or exists "Screening with any TB symptom (HIV) Observation" -define "Screening with any TB symptom (HIV) Condition": - Elements."Screening with any TB symptom (HIV) Condition" C +define "Screening with any TB symptom": + exists "Screening with any TB symptom Condition" + or exists "Screening with any TB symptom Observation" +define "Screening with any TB symptom Condition": + Elements."Screening with any TB symptom Condition" C where C.prevalenceInterval() starts on or before Today -define "Screening with any TB symptom (HIV) Observation": - Elements."Screening with any TB symptom (HIV) Observation" O +define "Screening with any TB symptom Observation": + Elements."Screening with any TB symptom Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Screening with any TB symptom (HIV) */ +/* End of Screening with any TB symptom */ /* -@dataElement: HIV.D.DE959 - W4SS single screening algorithm (HIV) +@dataElement: HIV.D.DE959 - W4SS single screening algorithm @activity: HIV.D4 Screen for TB @description: Client screened for TB based on the WHO-recommended four-symptom screen */ // TODO: Replace placeholder with relevant CQL logic -define "W4SS single screening algorithm (HIV)": - exists "W4SS single screening algorithm (HIV) Condition" - or exists "W4SS single screening algorithm (HIV) Observation" -define "W4SS single screening algorithm (HIV) Condition": - Elements."W4SS single screening algorithm (HIV) Condition" C +define "W4SS single screening algorithm": + exists "W4SS single screening algorithm Condition" + or exists "W4SS single screening algorithm Observation" +define "W4SS single screening algorithm Condition": + Elements."W4SS single screening algorithm Condition" C where C.prevalenceInterval() starts on or before Today -define "W4SS single screening algorithm (HIV) Observation": - Elements."W4SS single screening algorithm (HIV) Observation" O +define "W4SS single screening algorithm Observation": + Elements."W4SS single screening algorithm Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of W4SS single screening algorithm (HIV) */ +/* End of W4SS single screening algorithm */ /* -@dataElement: HIV.D.DE960 - CRP single screening algorithm (HIV) +@dataElement: HIV.D.DE960 - CRP single screening algorithm @activity: HIV.D4 Screen for TB @description: Client screened for TB based on C-reactive protein (CRP) testing */ // TODO: Replace placeholder with relevant CQL logic -define "CRP single screening algorithm (HIV)": - exists "CRP single screening algorithm (HIV) Condition" - or exists "CRP single screening algorithm (HIV) Observation" -define "CRP single screening algorithm (HIV) Condition": - Elements."CRP single screening algorithm (HIV) Condition" C +define "CRP single screening algorithm": + exists "CRP single screening algorithm Condition" + or exists "CRP single screening algorithm Observation" +define "CRP single screening algorithm Condition": + Elements."CRP single screening algorithm Condition" C where C.prevalenceInterval() starts on or before Today -define "CRP single screening algorithm (HIV) Observation": - Elements."CRP single screening algorithm (HIV) Observation" O +define "CRP single screening algorithm Observation": + Elements."CRP single screening algorithm Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of CRP single screening algorithm (HIV) */ +/* End of CRP single screening algorithm */ /* -@dataElement: HIV.D.DE961 - CXR single screening algorithm (HIV) +@dataElement: HIV.D.DE961 - CXR single screening algorithm @activity: HIV.D4 Screen for TB @description: Client screened for TB with a chest radiography (CXR) */ // TODO: Replace placeholder with relevant CQL logic -define "CXR single screening algorithm (HIV)": - exists "CXR single screening algorithm (HIV) Condition" - or exists "CXR single screening algorithm (HIV) Observation" -define "CXR single screening algorithm (HIV) Condition": - Elements."CXR single screening algorithm (HIV) Condition" C +define "CXR single screening algorithm": + exists "CXR single screening algorithm Condition" + or exists "CXR single screening algorithm Observation" +define "CXR single screening algorithm Condition": + Elements."CXR single screening algorithm Condition" C where C.prevalenceInterval() starts on or before Today -define "CXR single screening algorithm (HIV) Observation": - Elements."CXR single screening algorithm (HIV) Observation" O +define "CXR single screening algorithm Observation": + Elements."CXR single screening algorithm Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of CXR single screening algorithm (HIV) */ +/* End of CXR single screening algorithm */ /* -@dataElement: HIV.D.DE962 - Parallel screening algorithm with W4SS and CRP (HIV) +@dataElement: HIV.D.DE962 - Parallel screening algorithm with W4SS and CRP @activity: HIV.D4 Screen for TB @description: Client screened for TB using parallel screening with WHO-recommended four-symptom screen and C-reactive protein (CRP) testing */ // TODO: Replace placeholder with relevant CQL logic -define "Parallel screening algorithm with W4SS and CRP (HIV)": - exists "Parallel screening algorithm with W4SS and CRP (HIV) Condition" - or exists "Parallel screening algorithm with W4SS and CRP (HIV) Observation" -define "Parallel screening algorithm with W4SS and CRP (HIV) Condition": - Elements."Parallel screening algorithm with W4SS and CRP (HIV) Condition" C +define "Parallel screening algorithm with W4SS and CRP": + exists "Parallel screening algorithm with W4SS and CRP Condition" + or exists "Parallel screening algorithm with W4SS and CRP Observation" +define "Parallel screening algorithm with W4SS and CRP Condition": + Elements."Parallel screening algorithm with W4SS and CRP Condition" C where C.prevalenceInterval() starts on or before Today -define "Parallel screening algorithm with W4SS and CRP (HIV) Observation": - Elements."Parallel screening algorithm with W4SS and CRP (HIV) Observation" O +define "Parallel screening algorithm with W4SS and CRP Observation": + Elements."Parallel screening algorithm with W4SS and CRP Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Parallel screening algorithm with W4SS and CRP (HIV) */ +/* End of Parallel screening algorithm with W4SS and CRP */ /* -@dataElement: HIV.D.DE963 - Sequential positive screening algorithm with W4SS and CRP (HIV) +@dataElement: HIV.D.DE963 - Sequential positive screening algorithm with W4SS and CRP @activity: HIV.D4 Screen for TB @description: Client screened for TB using sequential positive screening with WHO-recommended four-symptom screen and C-reactive protein (CRP) testing. */ // TODO: Replace placeholder with relevant CQL logic -define "Sequential positive screening algorithm with W4SS and CRP (HIV)": - exists "Sequential positive screening algorithm with W4SS and CRP (HIV) Condition" - or exists "Sequential positive screening algorithm with W4SS and CRP (HIV) Observation" -define "Sequential positive screening algorithm with W4SS and CRP (HIV) Condition": - Elements."Sequential positive screening algorithm with W4SS and CRP (HIV) Condition" C +define "Sequential positive screening algorithm with W4SS and CRP": + exists "Sequential positive screening algorithm with W4SS and CRP Condition" + or exists "Sequential positive screening algorithm with W4SS and CRP Observation" +define "Sequential positive screening algorithm with W4SS and CRP Condition": + Elements."Sequential positive screening algorithm with W4SS and CRP Condition" C where C.prevalenceInterval() starts on or before Today -define "Sequential positive screening algorithm with W4SS and CRP (HIV) Observation": - Elements."Sequential positive screening algorithm with W4SS and CRP (HIV) Observation" O +define "Sequential positive screening algorithm with W4SS and CRP Observation": + Elements."Sequential positive screening algorithm with W4SS and CRP Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Sequential positive screening algorithm with W4SS and CRP (HIV) */ +/* End of Sequential positive screening algorithm with W4SS and CRP */ /* -@dataElement: HIV.D.DE964 - Sequential negative screening algorithm with W4SS and CRP (HIV) +@dataElement: HIV.D.DE964 - Sequential negative screening algorithm with W4SS and CRP @activity: HIV.D4 Screen for TB @description: Client screened for TB using sequential negative screening with WHO-recommended four-symptom screen and C-reactive protein (CRP) testing */ // TODO: Replace placeholder with relevant CQL logic -define "Sequential negative screening algorithm with W4SS and CRP (HIV)": - exists "Sequential negative screening algorithm with W4SS and CRP (HIV) Condition" - or exists "Sequential negative screening algorithm with W4SS and CRP (HIV) Observation" -define "Sequential negative screening algorithm with W4SS and CRP (HIV) Condition": - Elements."Sequential negative screening algorithm with W4SS and CRP (HIV) Condition" C +define "Sequential negative screening algorithm with W4SS and CRP": + exists "Sequential negative screening algorithm with W4SS and CRP Condition" + or exists "Sequential negative screening algorithm with W4SS and CRP Observation" +define "Sequential negative screening algorithm with W4SS and CRP Condition": + Elements."Sequential negative screening algorithm with W4SS and CRP Condition" C where C.prevalenceInterval() starts on or before Today -define "Sequential negative screening algorithm with W4SS and CRP (HIV) Observation": - Elements."Sequential negative screening algorithm with W4SS and CRP (HIV) Observation" O +define "Sequential negative screening algorithm with W4SS and CRP Observation": + Elements."Sequential negative screening algorithm with W4SS and CRP Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Sequential negative screening algorithm with W4SS and CRP (HIV) */ +/* End of Sequential negative screening algorithm with W4SS and CRP */ /* -@dataElement: HIV.D.DE965 - Parallel screening algorithm with W4SS and CXR (HIV) +@dataElement: HIV.D.DE965 - Parallel screening algorithm with W4SS and CXR @activity: HIV.D4 Screen for TB @description: Client screened for TB using the parallel screening algorithm with W4SS and CXR */ // TODO: Replace placeholder with relevant CQL logic -define "Parallel screening algorithm with W4SS and CXR (HIV)": - exists "Parallel screening algorithm with W4SS and CXR (HIV) Condition" - or exists "Parallel screening algorithm with W4SS and CXR (HIV) Observation" -define "Parallel screening algorithm with W4SS and CXR (HIV) Condition": - Elements."Parallel screening algorithm with W4SS and CXR (HIV) Condition" C +define "Parallel screening algorithm with W4SS and CXR": + exists "Parallel screening algorithm with W4SS and CXR Condition" + or exists "Parallel screening algorithm with W4SS and CXR Observation" +define "Parallel screening algorithm with W4SS and CXR Condition": + Elements."Parallel screening algorithm with W4SS and CXR Condition" C where C.prevalenceInterval() starts on or before Today -define "Parallel screening algorithm with W4SS and CXR (HIV) Observation": - Elements."Parallel screening algorithm with W4SS and CXR (HIV) Observation" O +define "Parallel screening algorithm with W4SS and CXR Observation": + Elements."Parallel screening algorithm with W4SS and CXR Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Parallel screening algorithm with W4SS and CXR (HIV) */ +/* End of Parallel screening algorithm with W4SS and CXR */ /* -@dataElement: HIV.D.DE966 - Sequential positive screening algorithm with W4SS and CXR (HIV) +@dataElement: HIV.D.DE966 - Sequential positive screening algorithm with W4SS and CXR @activity: HIV.D4 Screen for TB @description: Client screened for TB using sequential positive screening with WHO-recommended four-symptom screen and chest radiography */ // TODO: Replace placeholder with relevant CQL logic -define "Sequential positive screening algorithm with W4SS and CXR (HIV)": - exists "Sequential positive screening algorithm with W4SS and CXR (HIV) Condition" - or exists "Sequential positive screening algorithm with W4SS and CXR (HIV) Observation" -define "Sequential positive screening algorithm with W4SS and CXR (HIV) Condition": - Elements."Sequential positive screening algorithm with W4SS and CXR (HIV) Condition" C +define "Sequential positive screening algorithm with W4SS and CXR": + exists "Sequential positive screening algorithm with W4SS and CXR Condition" + or exists "Sequential positive screening algorithm with W4SS and CXR Observation" +define "Sequential positive screening algorithm with W4SS and CXR Condition": + Elements."Sequential positive screening algorithm with W4SS and CXR Condition" C where C.prevalenceInterval() starts on or before Today -define "Sequential positive screening algorithm with W4SS and CXR (HIV) Observation": - Elements."Sequential positive screening algorithm with W4SS and CXR (HIV) Observation" O +define "Sequential positive screening algorithm with W4SS and CXR Observation": + Elements."Sequential positive screening algorithm with W4SS and CXR Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Sequential positive screening algorithm with W4SS and CXR (HIV) */ +/* End of Sequential positive screening algorithm with W4SS and CXR */ /* -@dataElement: HIV.D.DE967 - Sequential negative screening algorithm with W4SS and CXR (HIV) +@dataElement: HIV.D.DE967 - Sequential negative screening algorithm with W4SS and CXR @activity: HIV.D4 Screen for TB @description: Client screened for TB using sequential negative screening with WHO-recommended four-symptom screen and chest radiography */ // TODO: Replace placeholder with relevant CQL logic -define "Sequential negative screening algorithm with W4SS and CXR (HIV)": - exists "Sequential negative screening algorithm with W4SS and CXR (HIV) Condition" - or exists "Sequential negative screening algorithm with W4SS and CXR (HIV) Observation" -define "Sequential negative screening algorithm with W4SS and CXR (HIV) Condition": - Elements."Sequential negative screening algorithm with W4SS and CXR (HIV) Condition" C +define "Sequential negative screening algorithm with W4SS and CXR": + exists "Sequential negative screening algorithm with W4SS and CXR Condition" + or exists "Sequential negative screening algorithm with W4SS and CXR Observation" +define "Sequential negative screening algorithm with W4SS and CXR Condition": + Elements."Sequential negative screening algorithm with W4SS and CXR Condition" C where C.prevalenceInterval() starts on or before Today -define "Sequential negative screening algorithm with W4SS and CXR (HIV) Observation": - Elements."Sequential negative screening algorithm with W4SS and CXR (HIV) Observation" O +define "Sequential negative screening algorithm with W4SS and CXR Observation": + Elements."Sequential negative screening algorithm with W4SS and CXR Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Sequential negative screening algorithm with W4SS and CXR (HIV) */ +/* End of Sequential negative screening algorithm with W4SS and CXR */ /* -@dataElement: HIV.D.DE968 - Screening with mWRD (HIV) +@dataElement: HIV.D.DE968 - Screening with mWRD @activity: HIV.D4 Screen for TB @description: Client screened for TB with a molecular WHO-recommended rapid diagnostic test (mWRD), such as an Xpert MTB/RIF test to detect Mycobacterium tuberculosis (MTB) */ // TODO: Replace placeholder with relevant CQL logic -define "Screening with mWRD (HIV)": - exists "Screening with mWRD (HIV) Condition" - or exists "Screening with mWRD (HIV) Observation" -define "Screening with mWRD (HIV) Condition": - Elements."Screening with mWRD (HIV) Condition" C +define "Screening with mWRD": + exists "Screening with mWRD Condition" + or exists "Screening with mWRD Observation" +define "Screening with mWRD Condition": + Elements."Screening with mWRD Condition" C where C.prevalenceInterval() starts on or before Today -define "Screening with mWRD (HIV) Observation": - Elements."Screening with mWRD (HIV) Observation" O +define "Screening with mWRD Observation": + Elements."Screening with mWRD Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Screening with mWRD (HIV) */ +/* End of Screening with mWRD */ /* -@dataElement: HIV.D.DE969 - Clinical assessment (HIV) +@dataElement: HIV.D.DE969 - Clinical assessment @activity: HIV.D4 Screen for TB @description: Client screened for with a clinical evaluation for tuberculosis (TB) based on national guidelines. Clinical assessment may be used as an eligibility evaluation for testing with LF-LAM or for empiric TB treatment. */ // TODO: Replace placeholder with relevant CQL logic -define "Clinical assessment (HIV)": - exists "Clinical assessment (HIV) Condition" - or exists "Clinical assessment (HIV) Observation" -define "Clinical assessment (HIV) Condition": - Elements."Clinical assessment (HIV) Condition" C +define "Clinical assessment": + exists "Clinical assessment Condition" + or exists "Clinical assessment Observation" +define "Clinical assessment Condition": + Elements."Clinical assessment Condition" C where C.prevalenceInterval() starts on or before Today -define "Clinical assessment (HIV) Observation": - Elements."Clinical assessment (HIV) Observation" O +define "Clinical assessment Observation": + Elements."Clinical assessment Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Clinical assessment (HIV) */ +/* End of Clinical assessment */ /* -@dataElement: HIV.D.DE970 - Other TB screening algorithm (HIV) +@dataElement: HIV.D.DE970 - Other TB screening algorithm @activity: HIV.D4 Screen for TB @description: Client screened for tuberculosis (TB) with a different screening method not listed */ // TODO: Replace placeholder with relevant CQL logic -define "Other TB screening algorithm (HIV)": - exists "Other TB screening algorithm (HIV) Condition" - or exists "Other TB screening algorithm (HIV) Observation" -define "Other TB screening algorithm (HIV) Condition": - Elements."Other TB screening algorithm (HIV) Condition" C +define "Other TB screening algorithm": + exists "Other TB screening algorithm Condition" + or exists "Other TB screening algorithm Observation" +define "Other TB screening algorithm Condition": + Elements."Other TB screening algorithm Condition" C where C.prevalenceInterval() starts on or before Today -define "Other TB screening algorithm (HIV) Observation": - Elements."Other TB screening algorithm (HIV) Observation" O +define "Other TB screening algorithm Observation": + Elements."Other TB screening algorithm Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Other TB screening algorithm (HIV) */ +/* End of Other TB screening algorithm */ /* -@dataElement: HIV.D.DE973 - Symptoms of TB (HIV) +@dataElement: HIV.D.DE973 - Symptoms of TB @activity: HIV.D4 Screen for TB @description: Symptoms that may indicate TB disease in clients living with HIV, based on a clinical algorithm */ // TODO: Replace placeholder with relevant CQL logic -define "Symptoms of TB (HIV)": - exists "Symptoms of TB (HIV) Observation" -define "Symptoms of TB (HIV) Observation": - Elements."Symptoms of TB (HIV) Observation" O +define "Symptoms of TB": + exists "Symptoms of TB Observation" +define "Symptoms of TB Observation": + Elements."Symptoms of TB Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Symptoms of TB (HIV) */ +/* End of Symptoms of TB */ /* -@dataElement: HIV.D.DE974 - Current cough (HIV) +@dataElement: HIV.D.DE974 - Current cough @activity: HIV.D4 Screen for TB @description: Client has a cough regardless of duration */ // TODO: Replace placeholder with relevant CQL logic -define "Current cough (HIV)": - exists "Current cough (HIV) Condition" - or exists "Current cough (HIV) Observation" -define "Current cough (HIV) Condition": - Elements."Current cough (HIV) Condition" C +define "Current cough": + exists "Current cough Condition" + or exists "Current cough Observation" +define "Current cough Condition": + Elements."Current cough Condition" C where C.prevalenceInterval() starts on or before Today -define "Current cough (HIV) Observation": - Elements."Current cough (HIV) Observation" O +define "Current cough Observation": + Elements."Current cough Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Current cough (HIV) */ +/* End of Current cough */ /* -@dataElement: HIV.D.DE975 - Prolonged cough >=2w (HIV) +@dataElement: HIV.D.DE975 - Prolonged cough >=2w @activity: HIV.D4 Screen for TB @description: Client has a prolonged cough of 2 weeks or more */ // TODO: Replace placeholder with relevant CQL logic -define "Prolonged cough >=2w (HIV)": - exists "Prolonged cough >=2w (HIV) Condition" - or exists "Prolonged cough >=2w (HIV) Observation" -define "Prolonged cough >=2w (HIV) Condition": - Elements."Prolonged cough >=2w (HIV) Condition" C +define "Prolonged cough >=2w": + exists "Prolonged cough >=2w Condition" + or exists "Prolonged cough >=2w Observation" +define "Prolonged cough >=2w Condition": + Elements."Prolonged cough >=2w Condition" C where C.prevalenceInterval() starts on or before Today -define "Prolonged cough >=2w (HIV) Observation": - Elements."Prolonged cough >=2w (HIV) Observation" O +define "Prolonged cough >=2w Observation": + Elements."Prolonged cough >=2w Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Prolonged cough >=2w (HIV) */ +/* End of Prolonged cough >=2w */ /* -@dataElement: HIV.D.DE976 - Fever of 39 °C or greater (HIV) +@dataElement: HIV.D.DE976 - Fever of 39 °C or greater @activity: HIV.D4 Screen for TB @description: Client has a fever with a measured temperature of 102.2 °F/39 °C or greater */ // TODO: Replace placeholder with relevant CQL logic -define "Fever of 39 °C or greater (HIV)": - exists "Fever of 39 °C or greater (HIV) Condition" - or exists "Fever of 39 °C or greater (HIV) Observation" -define "Fever of 39 °C or greater (HIV) Condition": - Elements."Fever of 39 °C or greater (HIV) Condition" C +define "Fever of 39 °C or greater": + exists "Fever of 39 °C or greater Condition" + or exists "Fever of 39 °C or greater Observation" +define "Fever of 39 °C or greater Condition": + Elements."Fever of 39 °C or greater Condition" C where C.prevalenceInterval() starts on or before Today -define "Fever of 39 °C or greater (HIV) Observation": - Elements."Fever of 39 °C or greater (HIV) Observation" O +define "Fever of 39 °C or greater Observation": + Elements."Fever of 39 °C or greater Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Fever of 39 °C or greater (HIV) */ +/* End of Fever of 39 °C or greater */ /* -@dataElement: HIV.D.DE977 - Weight loss reported (HIV) +@dataElement: HIV.D.DE977 - Weight loss reported @activity: HIV.D4 Screen for TB @description: Unexplained weight loss */ // TODO: Replace placeholder with relevant CQL logic -define "Weight loss reported (HIV)": - exists "Weight loss reported (HIV) Condition" - or exists "Weight loss reported (HIV) Observation" -define "Weight loss reported (HIV) Condition": - Elements."Weight loss reported (HIV) Condition" C +define "Weight loss reported": + exists "Weight loss reported Condition" + or exists "Weight loss reported Observation" +define "Weight loss reported Condition": + Elements."Weight loss reported Condition" C where C.prevalenceInterval() starts on or before Today -define "Weight loss reported (HIV) Observation": - Elements."Weight loss reported (HIV) Observation" O +define "Weight loss reported Observation": + Elements."Weight loss reported Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Weight loss reported (HIV) */ +/* End of Weight loss reported */ /* -@dataElement: HIV.D.DE978 - Night sweats (HIV) +@dataElement: HIV.D.DE978 - Night sweats @activity: HIV.D4 Screen for TB @description: Client reports experiencing night sweats */ // TODO: Replace placeholder with relevant CQL logic -define "Night sweats (HIV)": - exists "Night sweats (HIV) Condition" - or exists "Night sweats (HIV) Observation" -define "Night sweats (HIV) Condition": - Elements."Night sweats (HIV) Condition" C +define "Night sweats": + exists "Night sweats Condition" + or exists "Night sweats Observation" +define "Night sweats Condition": + Elements."Night sweats Condition" C where C.prevalenceInterval() starts on or before Today -define "Night sweats (HIV) Observation": - Elements."Night sweats (HIV) Observation" O +define "Night sweats Observation": + Elements."Night sweats Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Night sweats (HIV) */ +/* End of Night sweats */ /* -@dataElement: HIV.D.DE979 - Poor weight gain (HIV) +@dataElement: HIV.D.DE979 - Poor weight gain @activity: HIV.D4 Screen for TB @description: Client reports poor weight gain of child or infant or growth curve flattening or weight for age <-2 Z-scores. */ // TODO: Replace placeholder with relevant CQL logic -define "Poor weight gain (HIV)": - exists "Poor weight gain (HIV) Condition" - or exists "Poor weight gain (HIV) Observation" -define "Poor weight gain (HIV) Condition": - Elements."Poor weight gain (HIV) Condition" C +define "Poor weight gain": + exists "Poor weight gain Condition" + or exists "Poor weight gain Observation" +define "Poor weight gain Condition": + Elements."Poor weight gain Condition" C where C.prevalenceInterval() starts on or before Today -define "Poor weight gain (HIV) Observation": - Elements."Poor weight gain (HIV) Observation" O +define "Poor weight gain Observation": + Elements."Poor weight gain Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Poor weight gain (HIV) */ +/* End of Poor weight gain */ /* -@dataElement: HIV.D.DE980 - Reduced playfulness (HIV) +@dataElement: HIV.D.DE980 - Reduced playfulness @activity: HIV.D4 Screen for TB @description: Client reports reduced playfulness of child */ // TODO: Replace placeholder with relevant CQL logic -define "Reduced playfulness (HIV)": - exists "Reduced playfulness (HIV) Condition" - or exists "Reduced playfulness (HIV) Observation" -define "Reduced playfulness (HIV) Condition": - Elements."Reduced playfulness (HIV) Condition" C +define "Reduced playfulness": + exists "Reduced playfulness Condition" + or exists "Reduced playfulness Observation" +define "Reduced playfulness Condition": + Elements."Reduced playfulness Condition" C where C.prevalenceInterval() starts on or before Today -define "Reduced playfulness (HIV) Observation": - Elements."Reduced playfulness (HIV) Observation" O +define "Reduced playfulness Observation": + Elements."Reduced playfulness Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Reduced playfulness (HIV) */ +/* End of Reduced playfulness */ /* -@dataElement: HIV.D.DE981 - Chest pain (HIV) +@dataElement: HIV.D.DE981 - Chest pain @activity: HIV.D4 Screen for TB @description: Client reports chest pain */ // TODO: Replace placeholder with relevant CQL logic -define "Chest pain (HIV)": - exists "Chest pain (HIV) Condition" - or exists "Chest pain (HIV) Observation" -define "Chest pain (HIV) Condition": - Elements."Chest pain (HIV) Condition" C +define "Chest pain": + exists "Chest pain Condition" + or exists "Chest pain Observation" +define "Chest pain Condition": + Elements."Chest pain Condition" C where C.prevalenceInterval() starts on or before Today -define "Chest pain (HIV) Observation": - Elements."Chest pain (HIV) Observation" O +define "Chest pain Observation": + Elements."Chest pain Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Chest pain (HIV) */ +/* End of Chest pain */ /* -@dataElement: HIV.D.DE982 - Haemoptysis (HIV) +@dataElement: HIV.D.DE982 - Haemoptysis @activity: HIV.D4 Screen for TB @description: Client reports experiencing haemoptysis */ // TODO: Replace placeholder with relevant CQL logic -define "Haemoptysis (HIV)": - exists "Haemoptysis (HIV) Condition" - or exists "Haemoptysis (HIV) Observation" -define "Haemoptysis (HIV) Condition": - Elements."Haemoptysis (HIV) Condition" C +define "Haemoptysis": + exists "Haemoptysis Condition" + or exists "Haemoptysis Observation" +define "Haemoptysis Condition": + Elements."Haemoptysis Condition" C where C.prevalenceInterval() starts on or before Today -define "Haemoptysis (HIV) Observation": - Elements."Haemoptysis (HIV) Observation" O +define "Haemoptysis Observation": + Elements."Haemoptysis Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Haemoptysis (HIV) */ +/* End of Haemoptysis */ /* -@dataElement: HIV.D.DE983 - Lethargy (HIV) +@dataElement: HIV.D.DE983 - Lethargy @activity: HIV.D4 Screen for TB @description: Client reports lethargy */ // TODO: Replace placeholder with relevant CQL logic -define "Lethargy (HIV)": - exists "Lethargy (HIV) Condition" - or exists "Lethargy (HIV) Observation" -define "Lethargy (HIV) Condition": - Elements."Lethargy (HIV) Condition" C +define "Lethargy D.DE983": + exists "Lethargy D.DE983 Condition" + or exists "Lethargy D.DE983 Observation" +define "Lethargy D.DE983 Condition": + Elements."Lethargy D.DE983 Condition" C where C.prevalenceInterval() starts on or before Today -define "Lethargy (HIV) Observation": - Elements."Lethargy (HIV) Observation" O +define "Lethargy D.DE983 Observation": + Elements."Lethargy D.DE983 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Lethargy (HIV) */ +/* End of Lethargy D.DE983 */ /* -@dataElement: HIV.D.DE984 - None (HIV) +@dataElement: HIV.D.DE984 - None @activity: HIV.D4 Screen for TB @description: No symptoms of TB identified */ // TODO: Replace placeholder with relevant CQL logic -define "None (HIV)": - exists "None (HIV) Condition" - or exists "None (HIV) Observation" -define "None (HIV) Condition": - Elements."None (HIV) Condition" C +define "None": + exists "None Condition" + or exists "None Observation" +define "None Condition": + Elements."None Condition" C where C.prevalenceInterval() starts on or before Today -define "None (HIV) Observation": - Elements."None (HIV) Observation" O +define "None Observation": + Elements."None Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of None (HIV) */ +/* End of None */ /* -@dataElement: HIV.D.DE985 - History of contact with a person with TB (HIV) +@dataElement: HIV.D.DE985 - History of contact with a person with TB @activity: HIV.D4 Screen for TB @description: Client had a history of a contact with a person with TB */ // TODO: Replace placeholder with relevant CQL logic -define "History of contact with a person with TB (HIV)": - exists "History of contact with a person with TB (HIV) Observation" -define "History of contact with a person with TB (HIV) Observation": - Elements."History of contact with a person with TB (HIV) Observation" O +define "History of contact with a person with TB": + exists "History of contact with a person with TB Observation" +define "History of contact with a person with TB Observation": + Elements."History of contact with a person with TB Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of History of contact with a person with TB (HIV) */ +/* End of History of contact with a person with TB */ /* -@dataElement: HIV.D.DE1023 - TB prevention services accepted (HIV) +@dataElement: HIV.D.DE1023 - TB prevention services accepted @activity: HIV.D21 Determine regimen and treatment options @description: Indicates if the client accepts to be evaluated for TB infection and to take the treatment in case he/she is eligible */ // TODO: Replace placeholder with relevant CQL logic -define "TB prevention services accepted (HIV)": - exists "TB prevention services accepted (HIV) Observation" -define "TB prevention services accepted (HIV) Observation": - Elements."TB prevention services accepted (HIV) Observation" O +define "TB prevention services accepted": + exists "TB prevention services accepted Observation" +define "TB prevention services accepted Observation": + Elements."TB prevention services accepted Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of TB prevention services accepted (HIV) */ +/* End of TB prevention services accepted */ /* -@dataElement: HIV.D.DE1026 - C reactive protein test result (HIV) +@dataElement: HIV.D.DE1026 - C reactive protein test result @activity: HIV.D4 Screen for TB @description: Test result of the client's C reactive protein test result in mg/L */ // TODO: Replace placeholder with relevant CQL logic -define "C reactive protein test result (HIV)": - Elements."C reactive protein test result (HIV)" O +define "C reactive protein test result": + Elements."C reactive protein test result" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -define "C reactive protein test result (HIV) Value": - "C reactive protein test result (HIV)" O +define "C reactive protein test result Value": + "C reactive protein test result" O return O.value -/* End of C reactive protein test result (HIV) */ +/* End of C reactive protein test result */ /* -@dataElement: HIV.E.DE113 - Key population member* (PMTCT) +@dataElement: HIV.E.DE113 - Key population member* @activity: HIV.E1 Capture or update mother's history @description: Mother is a member of a key population which has an increased risk of HIV */ // TODO: Replace placeholder with relevant CQL logic -define "Key population member* (PMTCT)": - exists "Key population member* (PMTCT) Observation" -define "Key population member* (PMTCT) Observation": - Elements."Key population member* (PMTCT) Observation" O +define "Key population member* E.DE113": + exists "Key population member* E.DE113 Observation" +define "Key population member* E.DE113 Observation": + Elements."Key population member* E.DE113 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Key population member* (PMTCT) */ +/* End of Key population member* E.DE113 */ /* -@dataElement: HIV.E.DE155 - Signs of substantial risk of HIV infection (PMTCT) +@dataElement: HIV.E.DE155 - Signs of substantial risk of HIV infection @activity: HIV.E1 Capture or update mother's history @description: Signs the client is at a substantial risk of HIV infection */ // TODO: Replace placeholder with relevant CQL logic -define "Signs of substantial risk of HIV infection (PMTCT)": - exists "Signs of substantial risk of HIV infection (PMTCT) Observation" -define "Signs of substantial risk of HIV infection (PMTCT) Observation": - Elements."Signs of substantial risk of HIV infection (PMTCT) Observation" O +define "Signs of substantial risk of HIV infection E.DE155": + exists "Signs of substantial risk of HIV infection E.DE155 Observation" +define "Signs of substantial risk of HIV infection E.DE155 Observation": + Elements."Signs of substantial risk of HIV infection E.DE155 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Signs of substantial risk of HIV infection (PMTCT) */ +/* End of Signs of substantial risk of HIV infection E.DE155 */ /* -@dataElement: HIV.E.DE156 - No condom use during sex with more than one partner in the past 6 months (PMTCT) +@dataElement: HIV.E.DE156 - No condom use during sex with more than one partner in the past 6 months @activity: HIV.E1 Capture or update mother's history @description: Recent vaginal or anal sexual intercourse without a condom with more than one partner */ // TODO: Replace placeholder with relevant CQL logic -define "No condom use during sex with more than one partner in the past 6 months (PMTCT)": - exists "No condom use during sex with more than one partner in the past 6 months (PMTCT) Condition" - or exists "No condom use during sex with more than one partner in the past 6 months (PMTCT) Observation" -define "No condom use during sex with more than one partner in the past 6 months (PMTCT) Condition": - Elements."No condom use during sex with more than one partner in the past 6 months (PMTCT) Condition" C +define "No condom use during sex with more than one partner in the past 6 months E.DE156": + exists "No condom use during sex with more than one partner in the past 6 months E.DE156 Condition" + or exists "No condom use during sex with more than one partner in the past 6 months E.DE156 Observation" +define "No condom use during sex with more than one partner in the past 6 months E.DE156 Condition": + Elements."No condom use during sex with more than one partner in the past 6 months E.DE156 Condition" C where C.prevalenceInterval() starts on or before Today -define "No condom use during sex with more than one partner in the past 6 months (PMTCT) Observation": - Elements."No condom use during sex with more than one partner in the past 6 months (PMTCT) Observation" O +define "No condom use during sex with more than one partner in the past 6 months E.DE156 Observation": + Elements."No condom use during sex with more than one partner in the past 6 months E.DE156 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of No condom use during sex with more than one partner in the past 6 months (PMTCT) */ +/* End of No condom use during sex with more than one partner in the past 6 months E.DE156 */ /* -@dataElement: HIV.E.DE157 - STI in the past 6 months (PMTCT) +@dataElement: HIV.E.DE157 - STI in the past 6 months @activity: HIV.E1 Capture or update mother's history @description: A recent history (in the last 6 months) of a sexually transmitted infection (STI) by laboratory testing or self-report of syndromic STI treatment */ // TODO: Replace placeholder with relevant CQL logic -define "STI in the past 6 months (PMTCT)": - exists "STI in the past 6 months (PMTCT) Condition" - or exists "STI in the past 6 months (PMTCT) Observation" -define "STI in the past 6 months (PMTCT) Condition": - Elements."STI in the past 6 months (PMTCT) Condition" C +define "STI in the past 6 months E.DE157": + exists "STI in the past 6 months E.DE157 Condition" + or exists "STI in the past 6 months E.DE157 Observation" +define "STI in the past 6 months E.DE157 Condition": + Elements."STI in the past 6 months E.DE157 Condition" C where C.prevalenceInterval() starts on or before Today -define "STI in the past 6 months (PMTCT) Observation": - Elements."STI in the past 6 months (PMTCT) Observation" O +define "STI in the past 6 months E.DE157 Observation": + Elements."STI in the past 6 months E.DE157 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of STI in the past 6 months (PMTCT) */ +/* End of STI in the past 6 months E.DE157 */ /* -@dataElement: HIV.E.DE158 - A sexual partner in the past 6 months had one or more HIV risk factors (PMTCT) +@dataElement: HIV.E.DE158 - A sexual partner in the past 6 months had one or more HIV risk factors @activity: HIV.E1 Capture or update mother's history @description: A recent sex partner of the client had HIV risk factors */ // TODO: Replace placeholder with relevant CQL logic -define "A sexual partner in the past 6 months had one or more HIV risk factors (PMTCT)": - exists "A sexual partner in the past 6 months had one or more HIV risk factors (PMTCT) Condition" - or exists "A sexual partner in the past 6 months had one or more HIV risk factors (PMTCT) Observation" -define "A sexual partner in the past 6 months had one or more HIV risk factors (PMTCT) Condition": - Elements."A sexual partner in the past 6 months had one or more HIV risk factors (PMTCT) Condition" C +define "A sexual partner in the past 6 months had one or more HIV risk factors E.DE158": + exists "A sexual partner in the past 6 months had one or more HIV risk factors E.DE158 Condition" + or exists "A sexual partner in the past 6 months had one or more HIV risk factors E.DE158 Observation" +define "A sexual partner in the past 6 months had one or more HIV risk factors E.DE158 Condition": + Elements."A sexual partner in the past 6 months had one or more HIV risk factors E.DE158 Condition" C where C.prevalenceInterval() starts on or before Today -define "A sexual partner in the past 6 months had one or more HIV risk factors (PMTCT) Observation": - Elements."A sexual partner in the past 6 months had one or more HIV risk factors (PMTCT) Observation" O +define "A sexual partner in the past 6 months had one or more HIV risk factors E.DE158 Observation": + Elements."A sexual partner in the past 6 months had one or more HIV risk factors E.DE158 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of A sexual partner in the past 6 months had one or more HIV risk factors (PMTCT) */ +/* End of A sexual partner in the past 6 months had one or more HIV risk factors E.DE158 */ /* -@dataElement: HIV.E.DE159 - PrEP requested by client (PMTCT) +@dataElement: HIV.E.DE159 - PrEP requested by client @activity: HIV.E1 Capture or update mother's history @description: Client is requesting PrEP, reflecting a decision-making process has already taken place and suggesting of substantial risk of HIV */ // TODO: Replace placeholder with relevant CQL logic -define "PrEP requested by client (PMTCT)": - exists "PrEP requested by client (PMTCT) Condition" - or exists "PrEP requested by client (PMTCT) Observation" -define "PrEP requested by client (PMTCT) Condition": - Elements."PrEP requested by client (PMTCT) Condition" C +define "PrEP requested by client E.DE159": + exists "PrEP requested by client E.DE159 Condition" + or exists "PrEP requested by client E.DE159 Observation" +define "PrEP requested by client E.DE159 Condition": + Elements."PrEP requested by client E.DE159 Condition" C where C.prevalenceInterval() starts on or before Today -define "PrEP requested by client (PMTCT) Observation": - Elements."PrEP requested by client (PMTCT) Observation" O +define "PrEP requested by client E.DE159 Observation": + Elements."PrEP requested by client E.DE159 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of PrEP requested by client (PMTCT) */ +/* End of PrEP requested by client E.DE159 */ /* -@dataElement: HIV.E.DE160 - Serodiscordant partner (PMTCT) +@dataElement: HIV.E.DE160 - Serodiscordant partner @activity: HIV.E1 Capture or update mother's history @description: Mother's HIV status is different from a current partner's HIV status */ // TODO: Replace placeholder with relevant CQL logic -define "Serodiscordant partner (PMTCT)": - exists "Serodiscordant partner (PMTCT) Observation" -define "Serodiscordant partner (PMTCT) Observation": - Elements."Serodiscordant partner (PMTCT) Observation" O +define "Serodiscordant partner E.DE160": + exists "Serodiscordant partner E.DE160 Observation" +define "Serodiscordant partner E.DE160 Observation": + Elements."Serodiscordant partner E.DE160 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Serodiscordant partner (PMTCT) */ +/* End of Serodiscordant partner E.DE160 */ /* -@dataElement: HIV.E.DE180 - EID sample number (PMTCT) +@dataElement: HIV.E.DE180 - EID sample number @activity: HIV.F8 Test infant/child for HIV using testing algorithm @description: Early infant diagnosis (EID) sample number */ // TODO: Replace placeholder with relevant CQL logic -define "EID sample number (PMTCT)": - exists "EID sample number (PMTCT) Observation" -define "EID sample number (PMTCT) Observation": - Elements."EID sample number (PMTCT) Observation" O +define "EID sample number": + exists "EID sample number Observation" +define "EID sample number Observation": + Elements."EID sample number Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of EID sample number (PMTCT) */ +/* End of EID sample number */ /* -@dataElement: HIV.E.DE181 - EID sample 1 (PMTCT) +@dataElement: HIV.E.DE181 - EID sample 1 @activity: HIV.F8 Test infant/child for HIV using testing algorithm @description: First sample used to test an infant for HIV */ // TODO: Replace placeholder with relevant CQL logic -define "EID sample 1 (PMTCT)": - exists "EID sample 1 (PMTCT) Condition" - or exists "EID sample 1 (PMTCT) Observation" -define "EID sample 1 (PMTCT) Condition": - Elements."EID sample 1 (PMTCT) Condition" C +define "EID sample 1": + exists "EID sample 1 Condition" + or exists "EID sample 1 Observation" +define "EID sample 1 Condition": + Elements."EID sample 1 Condition" C where C.prevalenceInterval() starts on or before Today -define "EID sample 1 (PMTCT) Observation": - Elements."EID sample 1 (PMTCT) Observation" O +define "EID sample 1 Observation": + Elements."EID sample 1 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of EID sample 1 (PMTCT) */ +/* End of EID sample 1 */ /* -@dataElement: HIV.E.DE182 - EID sample 2 (PMTCT) +@dataElement: HIV.E.DE182 - EID sample 2 @activity: HIV.F8 Test infant/child for HIV using testing algorithm @description: Second sample used to test an infant for HIV */ // TODO: Replace placeholder with relevant CQL logic -define "EID sample 2 (PMTCT)": - exists "EID sample 2 (PMTCT) Condition" - or exists "EID sample 2 (PMTCT) Observation" -define "EID sample 2 (PMTCT) Condition": - Elements."EID sample 2 (PMTCT) Condition" C +define "EID sample 2": + exists "EID sample 2 Condition" + or exists "EID sample 2 Observation" +define "EID sample 2 Condition": + Elements."EID sample 2 Condition" C where C.prevalenceInterval() starts on or before Today -define "EID sample 2 (PMTCT) Observation": - Elements."EID sample 2 (PMTCT) Observation" O +define "EID sample 2 Observation": + Elements."EID sample 2 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of EID sample 2 (PMTCT) */ +/* End of EID sample 2 */ /* -@dataElement: HIV.E.DE183 - EID test number (PMTCT) +@dataElement: HIV.E.DE183 - EID test number @activity: HIV.F8 Test infant/child for HIV using testing algorithm @description: Early infant diagnosis (EID) HIV test number using the same sample */ // TODO: Replace placeholder with relevant CQL logic -define "EID test number (PMTCT)": - exists "EID test number (PMTCT) Observation" -define "EID test number (PMTCT) Observation": - Elements."EID test number (PMTCT) Observation" O +define "EID test number": + exists "EID test number Observation" +define "EID test number Observation": + Elements."EID test number Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of EID test number (PMTCT) */ +/* End of EID test number */ /* -@dataElement: HIV.E.DE184 - EID test number 1 (PMTCT) +@dataElement: HIV.E.DE184 - EID test number 1 @activity: HIV.F8 Test infant/child for HIV using testing algorithm @description: First test on a sample to test an infant for HIV */ // TODO: Replace placeholder with relevant CQL logic -define "EID test number 1 (PMTCT)": - exists "EID test number 1 (PMTCT) Condition" - or exists "EID test number 1 (PMTCT) Observation" -define "EID test number 1 (PMTCT) Condition": - Elements."EID test number 1 (PMTCT) Condition" C +define "EID test number 1": + exists "EID test number 1 Condition" + or exists "EID test number 1 Observation" +define "EID test number 1 Condition": + Elements."EID test number 1 Condition" C where C.prevalenceInterval() starts on or before Today -define "EID test number 1 (PMTCT) Observation": - Elements."EID test number 1 (PMTCT) Observation" O +define "EID test number 1 Observation": + Elements."EID test number 1 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of EID test number 1 (PMTCT) */ +/* End of EID test number 1 */ /* -@dataElement: HIV.E.DE185 - EID test number 2 (PMTCT) +@dataElement: HIV.E.DE185 - EID test number 2 @activity: HIV.F8 Test infant/child for HIV using testing algorithm @description: Second test on a sample to test an infant for HIV */ // TODO: Replace placeholder with relevant CQL logic -define "EID test number 2 (PMTCT)": - exists "EID test number 2 (PMTCT) Condition" - or exists "EID test number 2 (PMTCT) Observation" -define "EID test number 2 (PMTCT) Condition": - Elements."EID test number 2 (PMTCT) Condition" C +define "EID test number 2": + exists "EID test number 2 Condition" + or exists "EID test number 2 Observation" +define "EID test number 2 Condition": + Elements."EID test number 2 Condition" C where C.prevalenceInterval() starts on or before Today -define "EID test number 2 (PMTCT) Observation": - Elements."EID test number 2 (PMTCT) Observation" O +define "EID test number 2 Observation": + Elements."EID test number 2 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of EID test number 2 (PMTCT) */ +/* End of EID test number 2 */ /* -@dataElement: HIV.E.DE186 - EID test number 1 test result (PMTCT) +@dataElement: HIV.E.DE186 - EID test number 1 test result @activity: HIV.F8 Test infant/child for HIV using testing algorithm @description: Early infant diagnosis test number 1 test result */ // TODO: Replace placeholder with relevant CQL logic -define "EID test number 1 test result (PMTCT)": - exists "EID test number 1 test result (PMTCT) Observation" -define "EID test number 1 test result (PMTCT) Observation": - Elements."EID test number 1 test result (PMTCT) Observation" O +define "EID test number 1 test result": + exists "EID test number 1 test result Observation" +define "EID test number 1 test result Observation": + Elements."EID test number 1 test result Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of EID test number 1 test result (PMTCT) */ +/* End of EID test number 1 test result */ /* -@dataElement: HIV.E.DE187 - Positive (PMTCT|EDE187) +@dataElement: HIV.E.DE187 - Positive @activity: HIV.F8 Test infant/child for HIV using testing algorithm @description: Positive HIV test result from the nucleic acid test */ // TODO: Replace placeholder with relevant CQL logic -define "Positive (PMTCT|EDE187)": - exists "Positive (PMTCT|EDE187) Condition" - or exists "Positive (PMTCT|EDE187) Observation" -define "Positive (PMTCT|EDE187) Condition": - Elements."Positive (PMTCT|EDE187) Condition" C +define "Positive E.DE187": + exists "Positive E.DE187 Condition" + or exists "Positive E.DE187 Observation" +define "Positive E.DE187 Condition": + Elements."Positive E.DE187 Condition" C where C.prevalenceInterval() starts on or before Today -define "Positive (PMTCT|EDE187) Observation": - Elements."Positive (PMTCT|EDE187) Observation" O +define "Positive E.DE187 Observation": + Elements."Positive E.DE187 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Positive (PMTCT|EDE187) */ +/* End of Positive E.DE187 */ /* -@dataElement: HIV.E.DE188 - Negative (PMTCT|EDE188) +@dataElement: HIV.E.DE188 - Negative @activity: HIV.F8 Test infant/child for HIV using testing algorithm @description: Negative HIV test result from the nucleic acid test */ // TODO: Replace placeholder with relevant CQL logic -define "Negative (PMTCT|EDE188)": - exists "Negative (PMTCT|EDE188) Condition" - or exists "Negative (PMTCT|EDE188) Observation" -define "Negative (PMTCT|EDE188) Condition": - Elements."Negative (PMTCT|EDE188) Condition" C +define "Negative E.DE188": + exists "Negative E.DE188 Condition" + or exists "Negative E.DE188 Observation" +define "Negative E.DE188 Condition": + Elements."Negative E.DE188 Condition" C where C.prevalenceInterval() starts on or before Today -define "Negative (PMTCT|EDE188) Observation": - Elements."Negative (PMTCT|EDE188) Observation" O +define "Negative E.DE188 Observation": + Elements."Negative E.DE188 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Negative (PMTCT|EDE188) */ +/* End of Negative E.DE188 */ /* -@dataElement: HIV.E.DE189 - Indeterminate (PMTCT|EDE189) +@dataElement: HIV.E.DE189 - Indeterminate @activity: HIV.F8 Test infant/child for HIV using testing algorithm @description: Indeterminate HIV test result from the nucleic acid test */ // TODO: Replace placeholder with relevant CQL logic -define "Indeterminate (PMTCT|EDE189)": - exists "Indeterminate (PMTCT|EDE189) Condition" - or exists "Indeterminate (PMTCT|EDE189) Observation" -define "Indeterminate (PMTCT|EDE189) Condition": - Elements."Indeterminate (PMTCT|EDE189) Condition" C +define "Indeterminate E.DE189": + exists "Indeterminate E.DE189 Condition" + or exists "Indeterminate E.DE189 Observation" +define "Indeterminate E.DE189 Condition": + Elements."Indeterminate E.DE189 Condition" C where C.prevalenceInterval() starts on or before Today -define "Indeterminate (PMTCT|EDE189) Observation": - Elements."Indeterminate (PMTCT|EDE189) Observation" O +define "Indeterminate E.DE189 Observation": + Elements."Indeterminate E.DE189 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Indeterminate (PMTCT|EDE189) */ +/* End of Indeterminate E.DE189 */ /* -@dataElement: HIV.E.DE190 - EID test number 2 test result (PMTCT) +@dataElement: HIV.E.DE190 - EID test number 2 test result @activity: HIV.F8 Test infant/child for HIV using testing algorithm @description: Early infant diagnosis test number 2 test result */ // TODO: Replace placeholder with relevant CQL logic -define "EID test number 2 test result (PMTCT)": - exists "EID test number 2 test result (PMTCT) Observation" -define "EID test number 2 test result (PMTCT) Observation": - Elements."EID test number 2 test result (PMTCT) Observation" O +define "EID test number 2 test result": + exists "EID test number 2 test result Observation" +define "EID test number 2 test result Observation": + Elements."EID test number 2 test result Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of EID test number 2 test result (PMTCT) */ +/* End of EID test number 2 test result */ /* -@dataElement: HIV.E.DE191 - Positive (PMTCT|EDE191) +@dataElement: HIV.E.DE191 - Positive @activity: HIV.F8 Test infant/child for HIV using testing algorithm @description: Positive HIV test result from the nucleic acid test */ // TODO: Replace placeholder with relevant CQL logic -define "Positive (PMTCT|EDE191)": - exists "Positive (PMTCT|EDE191) Condition" - or exists "Positive (PMTCT|EDE191) Observation" -define "Positive (PMTCT|EDE191) Condition": - Elements."Positive (PMTCT|EDE191) Condition" C +define "Positive E.DE191": + exists "Positive E.DE191 Condition" + or exists "Positive E.DE191 Observation" +define "Positive E.DE191 Condition": + Elements."Positive E.DE191 Condition" C where C.prevalenceInterval() starts on or before Today -define "Positive (PMTCT|EDE191) Observation": - Elements."Positive (PMTCT|EDE191) Observation" O +define "Positive E.DE191 Observation": + Elements."Positive E.DE191 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Positive (PMTCT|EDE191) */ +/* End of Positive E.DE191 */ /* -@dataElement: HIV.E.DE192 - Negative (PMTCT|EDE192) +@dataElement: HIV.E.DE192 - Negative @activity: HIV.F8 Test infant/child for HIV using testing algorithm @description: Negative HIV test result from the nucleic acid test */ // TODO: Replace placeholder with relevant CQL logic -define "Negative (PMTCT|EDE192)": - exists "Negative (PMTCT|EDE192) Condition" - or exists "Negative (PMTCT|EDE192) Observation" -define "Negative (PMTCT|EDE192) Condition": - Elements."Negative (PMTCT|EDE192) Condition" C +define "Negative E.DE192": + exists "Negative E.DE192 Condition" + or exists "Negative E.DE192 Observation" +define "Negative E.DE192 Condition": + Elements."Negative E.DE192 Condition" C where C.prevalenceInterval() starts on or before Today -define "Negative (PMTCT|EDE192) Observation": - Elements."Negative (PMTCT|EDE192) Observation" O +define "Negative E.DE192 Observation": + Elements."Negative E.DE192 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Negative (PMTCT|EDE192) */ +/* End of Negative E.DE192 */ /* -@dataElement: HIV.E.DE193 - Indeterminate (PMTCT|EDE193) +@dataElement: HIV.E.DE193 - Indeterminate @activity: HIV.F8 Test infant/child for HIV using testing algorithm @description: Indeterminate HIV test result from the nucleic acid test */ // TODO: Replace placeholder with relevant CQL logic -define "Indeterminate (PMTCT|EDE193)": - exists "Indeterminate (PMTCT|EDE193) Condition" - or exists "Indeterminate (PMTCT|EDE193) Observation" -define "Indeterminate (PMTCT|EDE193) Condition": - Elements."Indeterminate (PMTCT|EDE193) Condition" C +define "Indeterminate E.DE193": + exists "Indeterminate E.DE193 Condition" + or exists "Indeterminate E.DE193 Observation" +define "Indeterminate E.DE193 Condition": + Elements."Indeterminate E.DE193 Condition" C where C.prevalenceInterval() starts on or before Today -define "Indeterminate (PMTCT|EDE193) Observation": - Elements."Indeterminate (PMTCT|EDE193) Observation" O +define "Indeterminate E.DE193 Observation": + Elements."Indeterminate E.DE193 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Indeterminate (PMTCT|EDE193) */ +/* End of Indeterminate E.DE193 */ /* -@dataElement: HIV.E.DE194 - Assay number in testing strategy (PMTCT) +@dataElement: HIV.E.DE194 - Assay number in testing strategy @activity: HIV.E4 Test mother for HIV using testing algorithm @description: The number of the assay (test kit) in the HIV testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Assay number in testing strategy (PMTCT)": - exists "Assay number in testing strategy (PMTCT) Observation" -define "Assay number in testing strategy (PMTCT) Observation": - Elements."Assay number in testing strategy (PMTCT) Observation" O +define "Assay number in testing strategy E.DE194": + exists "Assay number in testing strategy E.DE194 Observation" +define "Assay number in testing strategy E.DE194 Observation": + Elements."Assay number in testing strategy E.DE194 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Assay number in testing strategy (PMTCT) */ +/* End of Assay number in testing strategy E.DE194 */ /* -@dataElement: HIV.E.DE195 - Assay 0 (PMTCT) +@dataElement: HIV.E.DE195 - Assay 0 @activity: HIV.E4 Test mother for HIV using testing algorithm @description: A community outreach test-for-triage or self-test which is not included in the HIV testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Assay 0 (PMTCT)": - exists "Assay 0 (PMTCT) Condition" - or exists "Assay 0 (PMTCT) Observation" -define "Assay 0 (PMTCT) Condition": - Elements."Assay 0 (PMTCT) Condition" C +define "Assay 0 E.DE195": + exists "Assay 0 E.DE195 Condition" + or exists "Assay 0 E.DE195 Observation" +define "Assay 0 E.DE195 Condition": + Elements."Assay 0 E.DE195 Condition" C where C.prevalenceInterval() starts on or before Today -define "Assay 0 (PMTCT) Observation": - Elements."Assay 0 (PMTCT) Observation" O +define "Assay 0 E.DE195 Observation": + Elements."Assay 0 E.DE195 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Assay 0 (PMTCT) */ +/* End of Assay 0 E.DE195 */ /* -@dataElement: HIV.E.DE196 - Assay 1 (PMTCT) +@dataElement: HIV.E.DE196 - Assay 1 @activity: HIV.E4 Test mother for HIV using testing algorithm @description: The first test in the HIV testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Assay 1 (PMTCT)": - exists "Assay 1 (PMTCT) Condition" - or exists "Assay 1 (PMTCT) Observation" -define "Assay 1 (PMTCT) Condition": - Elements."Assay 1 (PMTCT) Condition" C +define "Assay 1 E.DE196": + exists "Assay 1 E.DE196 Condition" + or exists "Assay 1 E.DE196 Observation" +define "Assay 1 E.DE196 Condition": + Elements."Assay 1 E.DE196 Condition" C where C.prevalenceInterval() starts on or before Today -define "Assay 1 (PMTCT) Observation": - Elements."Assay 1 (PMTCT) Observation" O +define "Assay 1 E.DE196 Observation": + Elements."Assay 1 E.DE196 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Assay 1 (PMTCT) */ +/* End of Assay 1 E.DE196 */ /* -@dataElement: HIV.E.DE197 - Assay 2 (PMTCT) +@dataElement: HIV.E.DE197 - Assay 2 @activity: HIV.E4 Test mother for HIV using testing algorithm @description: The second test in the HIV testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Assay 2 (PMTCT)": - exists "Assay 2 (PMTCT) Condition" - or exists "Assay 2 (PMTCT) Observation" -define "Assay 2 (PMTCT) Condition": - Elements."Assay 2 (PMTCT) Condition" C +define "Assay 2 E.DE197": + exists "Assay 2 E.DE197 Condition" + or exists "Assay 2 E.DE197 Observation" +define "Assay 2 E.DE197 Condition": + Elements."Assay 2 E.DE197 Condition" C where C.prevalenceInterval() starts on or before Today -define "Assay 2 (PMTCT) Observation": - Elements."Assay 2 (PMTCT) Observation" O +define "Assay 2 E.DE197 Observation": + Elements."Assay 2 E.DE197 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Assay 2 (PMTCT) */ +/* End of Assay 2 E.DE197 */ /* -@dataElement: HIV.E.DE198 - Assay 3 (PMTCT) +@dataElement: HIV.E.DE198 - Assay 3 @activity: HIV.E4 Test mother for HIV using testing algorithm @description: The third test in the HIV testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Assay 3 (PMTCT)": - exists "Assay 3 (PMTCT) Condition" - or exists "Assay 3 (PMTCT) Observation" -define "Assay 3 (PMTCT) Condition": - Elements."Assay 3 (PMTCT) Condition" C +define "Assay 3 E.DE198": + exists "Assay 3 E.DE198 Condition" + or exists "Assay 3 E.DE198 Observation" +define "Assay 3 E.DE198 Condition": + Elements."Assay 3 E.DE198 Condition" C where C.prevalenceInterval() starts on or before Today -define "Assay 3 (PMTCT) Observation": - Elements."Assay 3 (PMTCT) Observation" O +define "Assay 3 E.DE198 Observation": + Elements."Assay 3 E.DE198 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Assay 3 (PMTCT) */ +/* End of Assay 3 E.DE198 */ /* -@dataElement: HIV.E.DE199 - Assay 1 repeated (PMTCT) +@dataElement: HIV.E.DE199 - Assay 1 repeated @activity: HIV.E4 Test mother for HIV using testing algorithm @description: The first test in the HIV testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Assay 1 repeated (PMTCT)": - exists "Assay 1 repeated (PMTCT) Condition" - or exists "Assay 1 repeated (PMTCT) Observation" -define "Assay 1 repeated (PMTCT) Condition": - Elements."Assay 1 repeated (PMTCT) Condition" C +define "Assay 1 repeated E.DE199": + exists "Assay 1 repeated E.DE199 Condition" + or exists "Assay 1 repeated E.DE199 Observation" +define "Assay 1 repeated E.DE199 Condition": + Elements."Assay 1 repeated E.DE199 Condition" C where C.prevalenceInterval() starts on or before Today -define "Assay 1 repeated (PMTCT) Observation": - Elements."Assay 1 repeated (PMTCT) Observation" O +define "Assay 1 repeated E.DE199 Observation": + Elements."Assay 1 repeated E.DE199 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Assay 1 repeated (PMTCT) */ +/* End of Assay 1 repeated E.DE199 */ /* -@dataElement: HIV.E.DE200 - Test result of HIV assay 1 (PMTCT) +@dataElement: HIV.E.DE200 - Test result of HIV assay 1 @activity: HIV.E4 Test mother for HIV using testing algorithm @description: The result of the first HIV assay in the testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Test result of HIV assay 1 (PMTCT)": - exists "Test result of HIV assay 1 (PMTCT) Observation" -define "Test result of HIV assay 1 (PMTCT) Observation": - Elements."Test result of HIV assay 1 (PMTCT) Observation" O +define "Test result of HIV assay 1 E.DE200": + exists "Test result of HIV assay 1 E.DE200 Observation" +define "Test result of HIV assay 1 E.DE200 Observation": + Elements."Test result of HIV assay 1 E.DE200 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Test result of HIV assay 1 (PMTCT) */ +/* End of Test result of HIV assay 1 E.DE200 */ /* -@dataElement: HIV.E.DE201 - Reactive (PMTCT|EDE201) +@dataElement: HIV.E.DE201 - Reactive @activity: HIV.E4 Test mother for HIV using testing algorithm @description: The result of the HIV assay in the testing strategy was reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Reactive (PMTCT|EDE201)": - exists "Reactive (PMTCT|EDE201) Condition" - or exists "Reactive (PMTCT|EDE201) Observation" -define "Reactive (PMTCT|EDE201) Condition": - Elements."Reactive (PMTCT|EDE201) Condition" C +define "Reactive E.DE201": + exists "Reactive E.DE201 Condition" + or exists "Reactive E.DE201 Observation" +define "Reactive E.DE201 Condition": + Elements."Reactive E.DE201 Condition" C where C.prevalenceInterval() starts on or before Today -define "Reactive (PMTCT|EDE201) Observation": - Elements."Reactive (PMTCT|EDE201) Observation" O +define "Reactive E.DE201 Observation": + Elements."Reactive E.DE201 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Reactive (PMTCT|EDE201) */ +/* End of Reactive E.DE201 */ /* -@dataElement: HIV.E.DE202 - Non-reactive (PMTCT|EDE202) +@dataElement: HIV.E.DE202 - Non-reactive @activity: HIV.E4 Test mother for HIV using testing algorithm @description: The result of the HIV assay in the testing strategy was non-reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Non-reactive (PMTCT|EDE202)": - exists "Non-reactive (PMTCT|EDE202) Condition" - or exists "Non-reactive (PMTCT|EDE202) Observation" -define "Non-reactive (PMTCT|EDE202) Condition": - Elements."Non-reactive (PMTCT|EDE202) Condition" C +define "Non-reactive E.DE202": + exists "Non-reactive E.DE202 Condition" + or exists "Non-reactive E.DE202 Observation" +define "Non-reactive E.DE202 Condition": + Elements."Non-reactive E.DE202 Condition" C where C.prevalenceInterval() starts on or before Today -define "Non-reactive (PMTCT|EDE202) Observation": - Elements."Non-reactive (PMTCT|EDE202) Observation" O +define "Non-reactive E.DE202 Observation": + Elements."Non-reactive E.DE202 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Non-reactive (PMTCT|EDE202) */ +/* End of Non-reactive E.DE202 */ /* -@dataElement: HIV.E.DE203 - Invalid (PMTCT|EDE203) +@dataElement: HIV.E.DE203 - Invalid @activity: HIV.E4 Test mother for HIV using testing algorithm @description: The result of the HIV assay in the testing strategy was invalid */ // TODO: Replace placeholder with relevant CQL logic -define "Invalid (PMTCT|EDE203)": - exists "Invalid (PMTCT|EDE203) Condition" - or exists "Invalid (PMTCT|EDE203) Observation" -define "Invalid (PMTCT|EDE203) Condition": - Elements."Invalid (PMTCT|EDE203) Condition" C +define "Invalid E.DE203": + exists "Invalid E.DE203 Condition" + or exists "Invalid E.DE203 Observation" +define "Invalid E.DE203 Condition": + Elements."Invalid E.DE203 Condition" C where C.prevalenceInterval() starts on or before Today -define "Invalid (PMTCT|EDE203) Observation": - Elements."Invalid (PMTCT|EDE203) Observation" O +define "Invalid E.DE203 Observation": + Elements."Invalid E.DE203 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Invalid (PMTCT|EDE203) */ +/* End of Invalid E.DE203 */ /* -@dataElement: HIV.E.DE204 - Test result of HIV assay 2 (PMTCT) +@dataElement: HIV.E.DE204 - Test result of HIV assay 2 @activity: HIV.E4 Test mother for HIV using testing algorithm @description: The result of the second HIV assay in the testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Test result of HIV assay 2 (PMTCT)": - exists "Test result of HIV assay 2 (PMTCT) Observation" -define "Test result of HIV assay 2 (PMTCT) Observation": - Elements."Test result of HIV assay 2 (PMTCT) Observation" O +define "Test result of HIV assay 2 E.DE204": + exists "Test result of HIV assay 2 E.DE204 Observation" +define "Test result of HIV assay 2 E.DE204 Observation": + Elements."Test result of HIV assay 2 E.DE204 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Test result of HIV assay 2 (PMTCT) */ +/* End of Test result of HIV assay 2 E.DE204 */ /* -@dataElement: HIV.E.DE205 - Reactive (PMTCT|EDE205) +@dataElement: HIV.E.DE205 - Reactive @activity: HIV.E4 Test mother for HIV using testing algorithm @description: The result of the HIV assay in the testing strategy was reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Reactive (PMTCT|EDE205)": - exists "Reactive (PMTCT|EDE205) Condition" - or exists "Reactive (PMTCT|EDE205) Observation" -define "Reactive (PMTCT|EDE205) Condition": - Elements."Reactive (PMTCT|EDE205) Condition" C +define "Reactive E.DE205": + exists "Reactive E.DE205 Condition" + or exists "Reactive E.DE205 Observation" +define "Reactive E.DE205 Condition": + Elements."Reactive E.DE205 Condition" C where C.prevalenceInterval() starts on or before Today -define "Reactive (PMTCT|EDE205) Observation": - Elements."Reactive (PMTCT|EDE205) Observation" O +define "Reactive E.DE205 Observation": + Elements."Reactive E.DE205 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Reactive (PMTCT|EDE205) */ +/* End of Reactive E.DE205 */ /* -@dataElement: HIV.E.DE206 - Non-reactive (PMTCT|EDE206) +@dataElement: HIV.E.DE206 - Non-reactive @activity: HIV.E4 Test mother for HIV using testing algorithm @description: The result of the HIV assay in the testing strategy was non-reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Non-reactive (PMTCT|EDE206)": - exists "Non-reactive (PMTCT|EDE206) Condition" - or exists "Non-reactive (PMTCT|EDE206) Observation" -define "Non-reactive (PMTCT|EDE206) Condition": - Elements."Non-reactive (PMTCT|EDE206) Condition" C +define "Non-reactive E.DE206": + exists "Non-reactive E.DE206 Condition" + or exists "Non-reactive E.DE206 Observation" +define "Non-reactive E.DE206 Condition": + Elements."Non-reactive E.DE206 Condition" C where C.prevalenceInterval() starts on or before Today -define "Non-reactive (PMTCT|EDE206) Observation": - Elements."Non-reactive (PMTCT|EDE206) Observation" O +define "Non-reactive E.DE206 Observation": + Elements."Non-reactive E.DE206 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Non-reactive (PMTCT|EDE206) */ +/* End of Non-reactive E.DE206 */ /* -@dataElement: HIV.E.DE207 - Invalid (PMTCT|EDE207) +@dataElement: HIV.E.DE207 - Invalid @activity: HIV.E4 Test mother for HIV using testing algorithm @description: The result of the HIV assay in the testing strategy was invalid */ // TODO: Replace placeholder with relevant CQL logic -define "Invalid (PMTCT|EDE207)": - exists "Invalid (PMTCT|EDE207) Condition" - or exists "Invalid (PMTCT|EDE207) Observation" -define "Invalid (PMTCT|EDE207) Condition": - Elements."Invalid (PMTCT|EDE207) Condition" C +define "Invalid E.DE207": + exists "Invalid E.DE207 Condition" + or exists "Invalid E.DE207 Observation" +define "Invalid E.DE207 Condition": + Elements."Invalid E.DE207 Condition" C where C.prevalenceInterval() starts on or before Today -define "Invalid (PMTCT|EDE207) Observation": - Elements."Invalid (PMTCT|EDE207) Observation" O +define "Invalid E.DE207 Observation": + Elements."Invalid E.DE207 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Invalid (PMTCT|EDE207) */ +/* End of Invalid E.DE207 */ /* -@dataElement: HIV.E.DE208 - Test result of HIV assay 3 (PMTCT) +@dataElement: HIV.E.DE208 - Test result of HIV assay 3 @activity: HIV.E4 Test mother for HIV using testing algorithm @description: The result of the third HIV assay in the testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Test result of HIV assay 3 (PMTCT)": - exists "Test result of HIV assay 3 (PMTCT) Observation" -define "Test result of HIV assay 3 (PMTCT) Observation": - Elements."Test result of HIV assay 3 (PMTCT) Observation" O +define "Test result of HIV assay 3 E.DE208": + exists "Test result of HIV assay 3 E.DE208 Observation" +define "Test result of HIV assay 3 E.DE208 Observation": + Elements."Test result of HIV assay 3 E.DE208 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Test result of HIV assay 3 (PMTCT) */ +/* End of Test result of HIV assay 3 E.DE208 */ /* -@dataElement: HIV.E.DE209 - Reactive (PMTCT|EDE209) +@dataElement: HIV.E.DE209 - Reactive @activity: HIV.E4 Test mother for HIV using testing algorithm @description: The result of the HIV assay in the testing strategy was reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Reactive (PMTCT|EDE209)": - exists "Reactive (PMTCT|EDE209) Condition" - or exists "Reactive (PMTCT|EDE209) Observation" -define "Reactive (PMTCT|EDE209) Condition": - Elements."Reactive (PMTCT|EDE209) Condition" C +define "Reactive E.DE209": + exists "Reactive E.DE209 Condition" + or exists "Reactive E.DE209 Observation" +define "Reactive E.DE209 Condition": + Elements."Reactive E.DE209 Condition" C where C.prevalenceInterval() starts on or before Today -define "Reactive (PMTCT|EDE209) Observation": - Elements."Reactive (PMTCT|EDE209) Observation" O +define "Reactive E.DE209 Observation": + Elements."Reactive E.DE209 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Reactive (PMTCT|EDE209) */ +/* End of Reactive E.DE209 */ /* -@dataElement: HIV.E.DE210 - Non-reactive (PMTCT|EDE210) +@dataElement: HIV.E.DE210 - Non-reactive @activity: HIV.E4 Test mother for HIV using testing algorithm @description: The result of the HIV assay in the testing strategy was non-reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Non-reactive (PMTCT|EDE210)": - exists "Non-reactive (PMTCT|EDE210) Condition" - or exists "Non-reactive (PMTCT|EDE210) Observation" -define "Non-reactive (PMTCT|EDE210) Condition": - Elements."Non-reactive (PMTCT|EDE210) Condition" C +define "Non-reactive E.DE210": + exists "Non-reactive E.DE210 Condition" + or exists "Non-reactive E.DE210 Observation" +define "Non-reactive E.DE210 Condition": + Elements."Non-reactive E.DE210 Condition" C where C.prevalenceInterval() starts on or before Today -define "Non-reactive (PMTCT|EDE210) Observation": - Elements."Non-reactive (PMTCT|EDE210) Observation" O +define "Non-reactive E.DE210 Observation": + Elements."Non-reactive E.DE210 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Non-reactive (PMTCT|EDE210) */ +/* End of Non-reactive E.DE210 */ /* -@dataElement: HIV.E.DE211 - Invalid (PMTCT|EDE211) +@dataElement: HIV.E.DE211 - Invalid @activity: HIV.E4 Test mother for HIV using testing algorithm @description: The result of the HIV assay in the testing strategy was invalid */ // TODO: Replace placeholder with relevant CQL logic -define "Invalid (PMTCT|EDE211)": - exists "Invalid (PMTCT|EDE211) Condition" - or exists "Invalid (PMTCT|EDE211) Observation" -define "Invalid (PMTCT|EDE211) Condition": - Elements."Invalid (PMTCT|EDE211) Condition" C +define "Invalid E.DE211": + exists "Invalid E.DE211 Condition" + or exists "Invalid E.DE211 Observation" +define "Invalid E.DE211 Condition": + Elements."Invalid E.DE211 Condition" C where C.prevalenceInterval() starts on or before Today -define "Invalid (PMTCT|EDE211) Observation": - Elements."Invalid (PMTCT|EDE211) Observation" O +define "Invalid E.DE211 Observation": + Elements."Invalid E.DE211 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Invalid (PMTCT|EDE211) */ +/* End of Invalid E.DE211 */ /* -@dataElement: HIV.E.DE212 - Test result of HIV assay 1 repeated (PMTCT) +@dataElement: HIV.E.DE212 - Test result of HIV assay 1 repeated @activity: HIV.E4 Test mother for HIV using testing algorithm @description: The result of the repeated first HIV assay in the testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Test result of HIV assay 1 repeated (PMTCT)": - exists "Test result of HIV assay 1 repeated (PMTCT) Observation" -define "Test result of HIV assay 1 repeated (PMTCT) Observation": - Elements."Test result of HIV assay 1 repeated (PMTCT) Observation" O +define "Test result of HIV assay 1 repeated E.DE212": + exists "Test result of HIV assay 1 repeated E.DE212 Observation" +define "Test result of HIV assay 1 repeated E.DE212 Observation": + Elements."Test result of HIV assay 1 repeated E.DE212 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Test result of HIV assay 1 repeated (PMTCT) */ +/* End of Test result of HIV assay 1 repeated E.DE212 */ /* -@dataElement: HIV.E.DE213 - Reactive (PMTCT|EDE213) +@dataElement: HIV.E.DE213 - Reactive @activity: HIV.E4 Test mother for HIV using testing algorithm @description: The result of the HIV assay in the testing strategy was reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Reactive (PMTCT|EDE213)": - exists "Reactive (PMTCT|EDE213) Condition" - or exists "Reactive (PMTCT|EDE213) Observation" -define "Reactive (PMTCT|EDE213) Condition": - Elements."Reactive (PMTCT|EDE213) Condition" C +define "Reactive E.DE213": + exists "Reactive E.DE213 Condition" + or exists "Reactive E.DE213 Observation" +define "Reactive E.DE213 Condition": + Elements."Reactive E.DE213 Condition" C where C.prevalenceInterval() starts on or before Today -define "Reactive (PMTCT|EDE213) Observation": - Elements."Reactive (PMTCT|EDE213) Observation" O +define "Reactive E.DE213 Observation": + Elements."Reactive E.DE213 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Reactive (PMTCT|EDE213) */ +/* End of Reactive E.DE213 */ /* -@dataElement: HIV.E.DE214 - Non-reactive (PMTCT|EDE214) +@dataElement: HIV.E.DE214 - Non-reactive @activity: HIV.E4 Test mother for HIV using testing algorithm @description: The result of the HIV assay in the testing strategy was non-reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Non-reactive (PMTCT|EDE214)": - exists "Non-reactive (PMTCT|EDE214) Condition" - or exists "Non-reactive (PMTCT|EDE214) Observation" -define "Non-reactive (PMTCT|EDE214) Condition": - Elements."Non-reactive (PMTCT|EDE214) Condition" C +define "Non-reactive E.DE214": + exists "Non-reactive E.DE214 Condition" + or exists "Non-reactive E.DE214 Observation" +define "Non-reactive E.DE214 Condition": + Elements."Non-reactive E.DE214 Condition" C where C.prevalenceInterval() starts on or before Today -define "Non-reactive (PMTCT|EDE214) Observation": - Elements."Non-reactive (PMTCT|EDE214) Observation" O +define "Non-reactive E.DE214 Observation": + Elements."Non-reactive E.DE214 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Non-reactive (PMTCT|EDE214) */ +/* End of Non-reactive E.DE214 */ /* -@dataElement: HIV.E.DE215 - Invalid (PMTCT|EDE215) +@dataElement: HIV.E.DE215 - Invalid @activity: HIV.E4 Test mother for HIV using testing algorithm @description: The result of the HIV assay in the testing strategy was invalid */ // TODO: Replace placeholder with relevant CQL logic -define "Invalid (PMTCT|EDE215)": - exists "Invalid (PMTCT|EDE215) Condition" - or exists "Invalid (PMTCT|EDE215) Observation" -define "Invalid (PMTCT|EDE215) Condition": - Elements."Invalid (PMTCT|EDE215) Condition" C +define "Invalid E.DE215": + exists "Invalid E.DE215 Condition" + or exists "Invalid E.DE215 Observation" +define "Invalid E.DE215 Condition": + Elements."Invalid E.DE215 Condition" C where C.prevalenceInterval() starts on or before Today -define "Invalid (PMTCT|EDE215) Observation": - Elements."Invalid (PMTCT|EDE215) Observation" O +define "Invalid E.DE215 Observation": + Elements."Invalid E.DE215 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Invalid (PMTCT|EDE215) */ +/* End of Invalid E.DE215 */ /* -@dataElement: HIV.E.DE216 - Test result of syphilis assay 1 (PMTCT) +@dataElement: HIV.E.DE216 - Test result of syphilis assay 1 @activity: HIV.E4 Test mother for HIV using testing algorithm @description: The result of the first syphilis assay in the testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Test result of syphilis assay 1 (PMTCT)": - exists "Test result of syphilis assay 1 (PMTCT) Observation" -define "Test result of syphilis assay 1 (PMTCT) Observation": - Elements."Test result of syphilis assay 1 (PMTCT) Observation" O +define "Test result of syphilis assay 1": + exists "Test result of syphilis assay 1 Observation" +define "Test result of syphilis assay 1 Observation": + Elements."Test result of syphilis assay 1 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Test result of syphilis assay 1 (PMTCT) */ +/* End of Test result of syphilis assay 1 */ /* -@dataElement: HIV.E.DE217 - Reactive (PMTCT|EDE217) +@dataElement: HIV.E.DE217 - Reactive @activity: HIV.E4 Test mother for HIV using testing algorithm @description: The result of the first syphilis assay in the testing strategy was reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Reactive (PMTCT|EDE217)": - exists "Reactive (PMTCT|EDE217) Condition" - or exists "Reactive (PMTCT|EDE217) Observation" -define "Reactive (PMTCT|EDE217) Condition": - Elements."Reactive (PMTCT|EDE217) Condition" C +define "Reactive E.DE217": + exists "Reactive E.DE217 Condition" + or exists "Reactive E.DE217 Observation" +define "Reactive E.DE217 Condition": + Elements."Reactive E.DE217 Condition" C where C.prevalenceInterval() starts on or before Today -define "Reactive (PMTCT|EDE217) Observation": - Elements."Reactive (PMTCT|EDE217) Observation" O +define "Reactive E.DE217 Observation": + Elements."Reactive E.DE217 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Reactive (PMTCT|EDE217) */ +/* End of Reactive E.DE217 */ /* -@dataElement: HIV.E.DE218 - Non-reactive (PMTCT|EDE218) +@dataElement: HIV.E.DE218 - Non-reactive @activity: HIV.E4 Test mother for HIV using testing algorithm @description: The result of the first syphilis assay in the testing strategy was non-reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Non-reactive (PMTCT|EDE218)": - exists "Non-reactive (PMTCT|EDE218) Condition" - or exists "Non-reactive (PMTCT|EDE218) Observation" -define "Non-reactive (PMTCT|EDE218) Condition": - Elements."Non-reactive (PMTCT|EDE218) Condition" C +define "Non-reactive E.DE218": + exists "Non-reactive E.DE218 Condition" + or exists "Non-reactive E.DE218 Observation" +define "Non-reactive E.DE218 Condition": + Elements."Non-reactive E.DE218 Condition" C where C.prevalenceInterval() starts on or before Today -define "Non-reactive (PMTCT|EDE218) Observation": - Elements."Non-reactive (PMTCT|EDE218) Observation" O +define "Non-reactive E.DE218 Observation": + Elements."Non-reactive E.DE218 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Non-reactive (PMTCT|EDE218) */ +/* End of Non-reactive E.DE218 */ /* -@dataElement: HIV.E.DE219 - Invalid (PMTCT|EDE219) +@dataElement: HIV.E.DE219 - Invalid @activity: HIV.E4 Test mother for HIV using testing algorithm @description: The result of the HIV assay in the testing strategy was invalid */ // TODO: Replace placeholder with relevant CQL logic -define "Invalid (PMTCT|EDE219)": - exists "Invalid (PMTCT|EDE219) Condition" - or exists "Invalid (PMTCT|EDE219) Observation" -define "Invalid (PMTCT|EDE219) Condition": - Elements."Invalid (PMTCT|EDE219) Condition" C +define "Invalid E.DE219": + exists "Invalid E.DE219 Condition" + or exists "Invalid E.DE219 Observation" +define "Invalid E.DE219 Condition": + Elements."Invalid E.DE219 Condition" C where C.prevalenceInterval() starts on or before Today -define "Invalid (PMTCT|EDE219) Observation": - Elements."Invalid (PMTCT|EDE219) Observation" O +define "Invalid E.DE219 Observation": + Elements."Invalid E.DE219 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Invalid (PMTCT|EDE219) */ +/* End of Invalid E.DE219 */ /* -@dataElement: HIV.E.DE220 - Test result of syphilis assay 1 repeated (PMTCT) +@dataElement: HIV.E.DE220 - Test result of syphilis assay 1 repeated @activity: HIV.E4 Test mother for HIV using testing algorithm @description: The result of the first syphilis assay repeated in the testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Test result of syphilis assay 1 repeated (PMTCT)": - exists "Test result of syphilis assay 1 repeated (PMTCT) Observation" -define "Test result of syphilis assay 1 repeated (PMTCT) Observation": - Elements."Test result of syphilis assay 1 repeated (PMTCT) Observation" O +define "Test result of syphilis assay 1 repeated": + exists "Test result of syphilis assay 1 repeated Observation" +define "Test result of syphilis assay 1 repeated Observation": + Elements."Test result of syphilis assay 1 repeated Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Test result of syphilis assay 1 repeated (PMTCT) */ +/* End of Test result of syphilis assay 1 repeated */ /* -@dataElement: HIV.E.DE221 - Reactive (PMTCT|EDE221) +@dataElement: HIV.E.DE221 - Reactive @activity: HIV.E4 Test mother for HIV using testing algorithm @description: The result of the first syphilis assay repeated in the testing strategy was reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Reactive (PMTCT|EDE221)": - exists "Reactive (PMTCT|EDE221) Condition" - or exists "Reactive (PMTCT|EDE221) Observation" -define "Reactive (PMTCT|EDE221) Condition": - Elements."Reactive (PMTCT|EDE221) Condition" C +define "Reactive E.DE221": + exists "Reactive E.DE221 Condition" + or exists "Reactive E.DE221 Observation" +define "Reactive E.DE221 Condition": + Elements."Reactive E.DE221 Condition" C where C.prevalenceInterval() starts on or before Today -define "Reactive (PMTCT|EDE221) Observation": - Elements."Reactive (PMTCT|EDE221) Observation" O +define "Reactive E.DE221 Observation": + Elements."Reactive E.DE221 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Reactive (PMTCT|EDE221) */ +/* End of Reactive E.DE221 */ /* -@dataElement: HIV.E.DE222 - Non-reactive (PMTCT|EDE222) +@dataElement: HIV.E.DE222 - Non-reactive @activity: HIV.E4 Test mother for HIV using testing algorithm @description: The result of the first syphilis assay repeated in the testing strategy was non-reactive */ // TODO: Replace placeholder with relevant CQL logic -define "Non-reactive (PMTCT|EDE222)": - exists "Non-reactive (PMTCT|EDE222) Condition" - or exists "Non-reactive (PMTCT|EDE222) Observation" -define "Non-reactive (PMTCT|EDE222) Condition": - Elements."Non-reactive (PMTCT|EDE222) Condition" C +define "Non-reactive E.DE222": + exists "Non-reactive E.DE222 Condition" + or exists "Non-reactive E.DE222 Observation" +define "Non-reactive E.DE222 Condition": + Elements."Non-reactive E.DE222 Condition" C where C.prevalenceInterval() starts on or before Today -define "Non-reactive (PMTCT|EDE222) Observation": - Elements."Non-reactive (PMTCT|EDE222) Observation" O +define "Non-reactive E.DE222 Observation": + Elements."Non-reactive E.DE222 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Non-reactive (PMTCT|EDE222) */ +/* End of Non-reactive E.DE222 */ /* -@dataElement: HIV.E.DE223 - Invalid (PMTCT|EDE223) +@dataElement: HIV.E.DE223 - Invalid @activity: HIV.E4 Test mother for HIV using testing algorithm @description: The result of the first syphilis assay repeated in the testing strategy was invalid */ // TODO: Replace placeholder with relevant CQL logic -define "Invalid (PMTCT|EDE223)": - exists "Invalid (PMTCT|EDE223) Condition" - or exists "Invalid (PMTCT|EDE223) Observation" -define "Invalid (PMTCT|EDE223) Condition": - Elements."Invalid (PMTCT|EDE223) Condition" C +define "Invalid E.DE223": + exists "Invalid E.DE223 Condition" + or exists "Invalid E.DE223 Observation" +define "Invalid E.DE223 Condition": + Elements."Invalid E.DE223 Condition" C where C.prevalenceInterval() starts on or before Today -define "Invalid (PMTCT|EDE223) Observation": - Elements."Invalid (PMTCT|EDE223) Observation" O +define "Invalid E.DE223 Observation": + Elements."Invalid E.DE223 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Invalid (PMTCT|EDE223) */ +/* End of Invalid E.DE223 */ /* -@dataElement: HIV.G.DE1 - CD4 count (Diagnostics) +@dataElement: HIV.G.DE1 - CD4 count @activity: HIV.D20 Diagnostics @description: CD4 cell count in cells/mm^3 */ // TODO: Replace placeholder with relevant CQL logic -define "CD4 count (Diagnostics)": - Elements."CD4 count (Diagnostics)" O +define "CD4 count G.DE1": + Elements."CD4 count G.DE1" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -define "CD4 count (Diagnostics) Value": - "CD4 count (Diagnostics)" O +define "CD4 count G.DE1 Value": + "CD4 count G.DE1" O return O.value -/* End of CD4 count (Diagnostics) */ +/* End of CD4 count G.DE1 */ /* -@dataElement: HIV.H.DE34 - HIV status of partner or contact (Follow) +@dataElement: HIV.H.DE34 - HIV status of partner or contact @activity: HIV.B6 Capture or update client history @description: HIV status of the partner or contact given by the index case */ // TODO: Replace placeholder with relevant CQL logic -define "HIV status of partner or contact (Follow)": - exists "HIV status of partner or contact (Follow) Observation" -define "HIV status of partner or contact (Follow) Observation": - Elements."HIV status of partner or contact (Follow) Observation" O +define "HIV status of partner or contact": + exists "HIV status of partner or contact Observation" +define "HIV status of partner or contact Observation": + Elements."HIV status of partner or contact Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of HIV status of partner or contact (Follow) */ +/* End of HIV status of partner or contact */ /* -@dataElement: HIV.H.DE35 - Already knew positive (Follow) +@dataElement: HIV.H.DE35 - Already knew positive @activity: HIV.B6 Capture or update client history @description: The partner or contact of the index case already knew they are HIV-positive */ // TODO: Replace placeholder with relevant CQL logic -define "Already knew positive (Follow)": - exists "Already knew positive (Follow) Condition" - or exists "Already knew positive (Follow) Observation" -define "Already knew positive (Follow) Condition": - Elements."Already knew positive (Follow) Condition" C +define "Already knew positive": + exists "Already knew positive Condition" + or exists "Already knew positive Observation" +define "Already knew positive Condition": + Elements."Already knew positive Condition" C where C.prevalenceInterval() starts on or before Today -define "Already knew positive (Follow) Observation": - Elements."Already knew positive (Follow) Observation" O +define "Already knew positive Observation": + Elements."Already knew positive Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Already knew positive (Follow) */ +/* End of Already knew positive */ /* -@dataElement: HIV.H.DE36 - Newly diagnosed (Follow) +@dataElement: HIV.H.DE36 - Newly diagnosed @activity: HIV.B6 Capture or update client history @description: The partner or contact of the index case is newly diagnosed as HIV-positive */ // TODO: Replace placeholder with relevant CQL logic -define "Newly diagnosed (Follow)": - exists "Newly diagnosed (Follow) Condition" - or exists "Newly diagnosed (Follow) Observation" -define "Newly diagnosed (Follow) Condition": - Elements."Newly diagnosed (Follow) Condition" C +define "Newly diagnosed": + exists "Newly diagnosed Condition" + or exists "Newly diagnosed Observation" +define "Newly diagnosed Condition": + Elements."Newly diagnosed Condition" C where C.prevalenceInterval() starts on or before Today -define "Newly diagnosed (Follow) Observation": - Elements."Newly diagnosed (Follow) Observation" O +define "Newly diagnosed Observation": + Elements."Newly diagnosed Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Newly diagnosed (Follow) */ +/* End of Newly diagnosed */ /* -@dataElement: HIV.H.DE37 - Negative (Follow) +@dataElement: HIV.H.DE37 - Negative @activity: HIV.B6 Capture or update client history @description: The partner or contact of the index case is newly diagnosed is HIV-negative */ // TODO: Replace placeholder with relevant CQL logic -define "Negative (Follow)": - exists "Negative (Follow) Condition" - or exists "Negative (Follow) Observation" -define "Negative (Follow) Condition": - Elements."Negative (Follow) Condition" C +define "Negative H.DE37": + exists "Negative H.DE37 Condition" + or exists "Negative H.DE37 Observation" +define "Negative H.DE37 Condition": + Elements."Negative H.DE37 Condition" C where C.prevalenceInterval() starts on or before Today -define "Negative (Follow) Observation": - Elements."Negative (Follow) Observation" O +define "Negative H.DE37 Observation": + Elements."Negative H.DE37 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Negative (Follow) */ +/* End of Negative H.DE37 */ /* -@dataElement: HIV.SRV.DE5 - HIV clinical stage (Surveillance) +@dataElement: HIV.SRV.DE5 - HIV clinical stage @activity: HIV.D8 Capture or update client history @description: WHO clinical stage of client based on signs and symptoms. WHO clinical staging is a way to categorize HIV disease severity based on new or recurrent clinical events. There are 4 WHO clinical stages that range from mild symptoms (WHO clinical stage 1) to severe symptoms (WHO clinical stage 4). */ // TODO: Replace placeholder with relevant CQL logic -define "HIV clinical stage (Surveillance)": - exists "HIV clinical stage (Surveillance) Observation" -define "HIV clinical stage (Surveillance) Observation": - Elements."HIV clinical stage (Surveillance) Observation" O +define "HIV clinical stage SRV.DE5": + exists "HIV clinical stage SRV.DE5 Observation" +define "HIV clinical stage SRV.DE5 Observation": + Elements."HIV clinical stage SRV.DE5 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of HIV clinical stage (Surveillance) */ +/* End of HIV clinical stage SRV.DE5 */ /* -@dataElement: HIV.SRV.DE8 - CD4 count (Surveillance) +@dataElement: HIV.SRV.DE8 - CD4 count @activity: HIV.D20 Diagnostics @description: CD4 cell count in cells/mm^3 */ // TODO: Replace placeholder with relevant CQL logic -define "CD4 count (Surveillance)": - Elements."CD4 count (Surveillance)" O +define "CD4 count SRV.DE8": + Elements."CD4 count SRV.DE8" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -define "CD4 count (Surveillance) Value": - "CD4 count (Surveillance)" O +define "CD4 count SRV.DE8 Value": + "CD4 count SRV.DE8" O return O.value -/* End of CD4 count (Surveillance) */ +/* End of CD4 count SRV.DE8 */ /* -@dataElement: HIV.SRV.DE21 - Test result of HIV assay 1 (Surveillance) +@dataElement: HIV.SRV.DE21 - Test result of HIV assay 1 @activity: HIV.E4 Test mother for HIV using testing algorithm @description: The result of the first HIV assay in the testing strategy */ // TODO: Replace placeholder with relevant CQL logic -define "Test result of HIV assay 1 (Surveillance)": - exists "Test result of HIV assay 1 (Surveillance) Observation" -define "Test result of HIV assay 1 (Surveillance) Observation": - Elements."Test result of HIV assay 1 (Surveillance) Observation" O +define "Test result of HIV assay 1 SRV.DE21": + exists "Test result of HIV assay 1 SRV.DE21 Observation" +define "Test result of HIV assay 1 SRV.DE21 Observation": + Elements."Test result of HIV assay 1 SRV.DE21 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Test result of HIV assay 1 (Surveillance) */ +/* End of Test result of HIV assay 1 SRV.DE21 */ /* -@dataElement: HIV.Config.DE6 - Malaria-endemic setting (Configuration) +@dataElement: HIV.Config.DE6 - Malaria-endemic setting @activity: HIV.Configuration @description: Whether the setting is a malaria-endemic setting */ // TODO: Replace placeholder with relevant CQL logic -define "Malaria-endemic setting (Configuration)": - exists "Malaria-endemic setting (Configuration) Observation" -define "Malaria-endemic setting (Configuration) Observation": - Elements."Malaria-endemic setting (Configuration) Observation" O +define "Malaria-endemic setting": + exists "Malaria-endemic setting Observation" +define "Malaria-endemic setting Observation": + Elements."Malaria-endemic setting Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Malaria-endemic setting (Configuration) */ +/* End of Malaria-endemic setting */ /* -@dataElement: HIV.Config.DE12 - HIV burden of the setting (Configuration) +@dataElement: HIV.Config.DE12 - HIV burden of the setting @activity: HIV.Configuration @description: HIV burden of the setting (high or low) based on the national HIV prevalence or where the HIV prevalence and/or incidence in a geographical setting is higher than national prevalence and, therefore, needs priority in the HIV response */ // TODO: Replace placeholder with relevant CQL logic -define "HIV burden of the setting (Configuration)": - exists "HIV burden of the setting (Configuration) Observation" -define "HIV burden of the setting (Configuration) Observation": - Elements."HIV burden of the setting (Configuration) Observation" O +define "HIV burden of the setting": + exists "HIV burden of the setting Observation" +define "HIV burden of the setting Observation": + Elements."HIV burden of the setting Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of HIV burden of the setting (Configuration) */ +/* End of HIV burden of the setting */ /* -@dataElement: HIV.Config.DE13 - High HIV burden setting (Configuration) +@dataElement: HIV.Config.DE13 - High HIV burden setting @activity: HIV.Configuration @description: Settings with >5% national HIV prevalence and subpopulations and geographic settings where HIV prevalence and/or incidence is higher than nationally. */ // TODO: Replace placeholder with relevant CQL logic -define "High HIV burden setting (Configuration)": - exists "High HIV burden setting (Configuration) Condition" - or exists "High HIV burden setting (Configuration) Observation" -define "High HIV burden setting (Configuration) Condition": - Elements."High HIV burden setting (Configuration) Condition" C +define "High HIV burden setting": + exists "High HIV burden setting Condition" + or exists "High HIV burden setting Observation" +define "High HIV burden setting Condition": + Elements."High HIV burden setting Condition" C where C.prevalenceInterval() starts on or before Today -define "High HIV burden setting (Configuration) Observation": - Elements."High HIV burden setting (Configuration) Observation" O +define "High HIV burden setting Observation": + Elements."High HIV burden setting Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of High HIV burden setting (Configuration) */ +/* End of High HIV burden setting */ /* -@dataElement: HIV.Config.DE14 - Low HIV burden setting (Configuration) +@dataElement: HIV.Config.DE14 - Low HIV burden setting @activity: HIV.Configuration @description: Settings with <5% HIV national prevalence but where certain populations (primarily key populations and their partners) and geographic settings may have higher HIV prevalence and/or incidence than nationally and, therefore, need priority in the HIV response */ // TODO: Replace placeholder with relevant CQL logic -define "Low HIV burden setting (Configuration)": - exists "Low HIV burden setting (Configuration) Condition" - or exists "Low HIV burden setting (Configuration) Observation" -define "Low HIV burden setting (Configuration) Condition": - Elements."Low HIV burden setting (Configuration) Condition" C +define "Low HIV burden setting": + exists "Low HIV burden setting Condition" + or exists "Low HIV burden setting Observation" +define "Low HIV burden setting Condition": + Elements."Low HIV burden setting Condition" C where C.prevalenceInterval() starts on or before Today -define "Low HIV burden setting (Configuration) Observation": - Elements."Low HIV burden setting (Configuration) Observation" O +define "Low HIV burden setting Observation": + Elements."Low HIV burden setting Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Low HIV burden setting (Configuration) */ +/* End of Low HIV burden setting */ /* -@dataElement: HIV.Config.DE15 - HPV DNA testing operational at the health facility (Configuration) +@dataElement: HIV.Config.DE15 - HPV DNA testing operational at the health facility @activity: HIV.Configuration @description: Is HPV DNA testing operational at the health facility for cervical cancer screening? */ // TODO: Replace placeholder with relevant CQL logic -define "HPV DNA testing operational at the health facility (Configuration)": - exists "HPV DNA testing operational at the health facility (Configuration) Observation" -define "HPV DNA testing operational at the health facility (Configuration) Observation": - Elements."HPV DNA testing operational at the health facility (Configuration) Observation" O +define "HPV DNA testing operational at the health facility": + exists "HPV DNA testing operational at the health facility Observation" +define "HPV DNA testing operational at the health facility Observation": + Elements."HPV DNA testing operational at the health facility Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of HPV DNA testing operational at the health facility (Configuration) */ +/* End of HPV DNA testing operational at the health facility */ /* diff --git a/input/cql/HIVIndicatorElements.cql b/input/cql/HIVIndicatorElements.cql index 5b2a575fe8e..43584644552 100644 --- a/input/cql/HIVIndicatorElements.cql +++ b/input/cql/HIVIndicatorElements.cql @@ -26,5396 +26,5396 @@ context Patient // in at least one Decision Support Table or Aggregate Indicator /* -@dataElement: HIV.B.DE5 - Referred through partner services (HTS) +@dataElement: HIV.B.DE5 - Referred through partner services @activity: HIV.B1 Determine reason for visit @description: Client reported coming to the facility after receiving a provider-assisted referral or patient referral from a contact or partner */ // TODO: Replace placeholder with relevant CQL logic -define "Referred through partner services (HTS)": - exists "Referred through partner services (HTS) Observation" -define "Referred through partner services (HTS) Observation": - Elements."Referred through partner services (HTS) Observation" O +define "Referred through partner services": + exists "Referred through partner services Observation" +define "Referred through partner services Observation": + Elements."Referred through partner services Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Referred through partner services (HTS) */ +/* End of Referred through partner services */ /* -@dataElement: HIV.B.DE6 - Partner or contact of an index case (HTS) +@dataElement: HIV.B.DE6 - Partner or contact of an index case @activity: HIV.B1 Determine reason for visit @description: The client is a contact or partner of a person diagnosed with HIV (an index case) */ // TODO: Replace placeholder with relevant CQL logic -define "Partner or contact of an index case (HTS)": - exists "Partner or contact of an index case (HTS) Condition" - or exists "Partner or contact of an index case (HTS) Observation" -define "Partner or contact of an index case (HTS) Condition": - Elements."Partner or contact of an index case (HTS) Condition" C +define "Partner or contact of an index case": + exists "Partner or contact of an index case Condition" + or exists "Partner or contact of an index case Observation" +define "Partner or contact of an index case Condition": + Elements."Partner or contact of an index case Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Partner or contact of an index case (HTS) Observation": - Elements."Partner or contact of an index case (HTS) Observation" O +define "Partner or contact of an index case Observation": + Elements."Partner or contact of an index case Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Partner or contact of an index case (HTS) */ +/* End of Partner or contact of an index case */ /* -@dataElement: HIV.B.DE7 - Partner or contact of an HIV testing client non-index case (HTS) +@dataElement: HIV.B.DE7 - Partner or contact of an HIV testing client non-index case @activity: HIV.B1 Determine reason for visit @description: The client is a contact or partner identified through partner or social network services, but is not known to be a partner of an index-case */ // TODO: Replace placeholder with relevant CQL logic -define "Partner or contact of an HIV testing client non-index case (HTS)": - exists "Partner or contact of an HIV testing client non-index case (HTS) Condition" - or exists "Partner or contact of an HIV testing client non-index case (HTS) Observation" -define "Partner or contact of an HIV testing client non-index case (HTS) Condition": - Elements."Partner or contact of an HIV testing client non-index case (HTS) Condition" C +define "Partner or contact of an HIV testing client non-index case": + exists "Partner or contact of an HIV testing client non-index case Condition" + or exists "Partner or contact of an HIV testing client non-index case Observation" +define "Partner or contact of an HIV testing client non-index case Condition": + Elements."Partner or contact of an HIV testing client non-index case Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Partner or contact of an HIV testing client non-index case (HTS) Observation": - Elements."Partner or contact of an HIV testing client non-index case (HTS) Observation" O +define "Partner or contact of an HIV testing client non-index case Observation": + Elements."Partner or contact of an HIV testing client non-index case Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Partner or contact of an HIV testing client non-index case (HTS) */ +/* End of Partner or contact of an HIV testing client non-index case */ /* -@dataElement: HIV.B.DE8 - Type of contact or partner for partner services (HTS) +@dataElement: HIV.B.DE8 - Type of contact or partner for partner services @activity: HIV.B1 Determine reason for visit @description: Client's relationship to the person that referred the client for partner services or family services */ // TODO: Replace placeholder with relevant CQL logic -define "Type of contact or partner for partner services (HTS)": - exists "Type of contact or partner for partner services (HTS) Observation" -define "Type of contact or partner for partner services (HTS) Observation": - Elements."Type of contact or partner for partner services (HTS) Observation" O +define "Type of contact or partner for partner services": + exists "Type of contact or partner for partner services Observation" +define "Type of contact or partner for partner services Observation": + Elements."Type of contact or partner for partner services Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Type of contact or partner for partner services (HTS) */ +/* End of Type of contact or partner for partner services */ /* -@dataElement: HIV.B.DE9 - Biological child (HTS) +@dataElement: HIV.B.DE9 - Biological child @activity: HIV.B1 Determine reason for visit @description: Client is the biological child of the person that referred the client for family services */ // TODO: Replace placeholder with relevant CQL logic -define "Biological child (HTS)": - exists "Biological child (HTS) Condition" - or exists "Biological child (HTS) Observation" -define "Biological child (HTS) Condition": - Elements."Biological child (HTS) Condition" C +define "Biological child": + exists "Biological child Condition" + or exists "Biological child Observation" +define "Biological child Condition": + Elements."Biological child Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Biological child (HTS) Observation": - Elements."Biological child (HTS) Observation" O +define "Biological child Observation": + Elements."Biological child Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Biological child (HTS) */ +/* End of Biological child */ /* -@dataElement: HIV.B.DE10 - Drug-injecting partner (HTS) +@dataElement: HIV.B.DE10 - Drug-injecting partner @activity: HIV.B1 Determine reason for visit @description: Client is a drug-injecting partner of the person that referred the client for partner services */ // TODO: Replace placeholder with relevant CQL logic -define "Drug-injecting partner (HTS)": - exists "Drug-injecting partner (HTS) Condition" - or exists "Drug-injecting partner (HTS) Observation" -define "Drug-injecting partner (HTS) Condition": - Elements."Drug-injecting partner (HTS) Condition" C +define "Drug-injecting partner B.DE10": + exists "Drug-injecting partner B.DE10 Condition" + or exists "Drug-injecting partner B.DE10 Observation" +define "Drug-injecting partner B.DE10 Condition": + Elements."Drug-injecting partner B.DE10 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Drug-injecting partner (HTS) Observation": - Elements."Drug-injecting partner (HTS) Observation" O +define "Drug-injecting partner B.DE10 Observation": + Elements."Drug-injecting partner B.DE10 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Drug-injecting partner (HTS) */ +/* End of Drug-injecting partner B.DE10 */ /* -@dataElement: HIV.B.DE11 - Sexual partner (HTS) +@dataElement: HIV.B.DE11 - Sexual partner @activity: HIV.B1 Determine reason for visit @description: Client is a sexual partner of the person that referred the client for partner services */ // TODO: Replace placeholder with relevant CQL logic -define "Sexual partner (HTS)": - exists "Sexual partner (HTS) Condition" - or exists "Sexual partner (HTS) Observation" -define "Sexual partner (HTS) Condition": - Elements."Sexual partner (HTS) Condition" C +define "Sexual partner B.DE11": + exists "Sexual partner B.DE11 Condition" + or exists "Sexual partner B.DE11 Observation" +define "Sexual partner B.DE11 Condition": + Elements."Sexual partner B.DE11 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Sexual partner (HTS) Observation": - Elements."Sexual partner (HTS) Observation" O +define "Sexual partner B.DE11 Observation": + Elements."Sexual partner B.DE11 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Sexual partner (HTS) */ +/* End of Sexual partner B.DE11 */ /* -@dataElement: HIV.B.DE12 - Social contact (HTS) +@dataElement: HIV.B.DE12 - Social contact @activity: HIV.B1 Determine reason for visit @description: Client is a social contact of the person that referred the client for social-network services */ // TODO: Replace placeholder with relevant CQL logic -define "Social contact (HTS)": - exists "Social contact (HTS) Condition" - or exists "Social contact (HTS) Observation" -define "Social contact (HTS) Condition": - Elements."Social contact (HTS) Condition" C +define "Social contact B.DE12": + exists "Social contact B.DE12 Condition" + or exists "Social contact B.DE12 Observation" +define "Social contact B.DE12 Condition": + Elements."Social contact B.DE12 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Social contact (HTS) Observation": - Elements."Social contact (HTS) Observation" O +define "Social contact B.DE12 Observation": + Elements."Social contact B.DE12 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Social contact (HTS) */ +/* End of Social contact B.DE12 */ /* -@dataElement: HIV.B.DE15 - Testing entry point (HTS) +@dataElement: HIV.B.DE15 - Testing entry point @activity: HIV.B1 Determine reason for visit @description: Whether testing is happening in the community or at a facility */ // TODO: Replace placeholder with relevant CQL logic -define "Testing entry point (HTS)": - exists "Testing entry point (HTS) Observation" -define "Testing entry point (HTS) Observation": - Elements."Testing entry point (HTS) Observation" O +define "Testing entry point": + exists "Testing entry point Observation" +define "Testing entry point Observation": + Elements."Testing entry point Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Testing entry point (HTS) */ +/* End of Testing entry point */ /* -@dataElement: HIV.B.DE16 - Community-level testing (HTS) +@dataElement: HIV.B.DE16 - Community-level testing @activity: HIV.B1 Determine reason for visit @description: Testing is happening in the community, which includes mobile testing */ // TODO: Replace placeholder with relevant CQL logic -define "Community-level testing (HTS)": - exists "Community-level testing (HTS) Condition" - or exists "Community-level testing (HTS) Observation" -define "Community-level testing (HTS) Condition": - Elements."Community-level testing (HTS) Condition" C +define "Community-level testing": + exists "Community-level testing Condition" + or exists "Community-level testing Observation" +define "Community-level testing Condition": + Elements."Community-level testing Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Community-level testing (HTS) Observation": - Elements."Community-level testing (HTS) Observation" O +define "Community-level testing Observation": + Elements."Community-level testing Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Community-level testing (HTS) */ +/* End of Community-level testing */ /* -@dataElement: HIV.B.DE17 - Facility-level testing (HTS) +@dataElement: HIV.B.DE17 - Facility-level testing @activity: HIV.B1 Determine reason for visit @description: Testing is happening at a facility */ // TODO: Replace placeholder with relevant CQL logic -define "Facility-level testing (HTS)": - exists "Facility-level testing (HTS) Condition" - or exists "Facility-level testing (HTS) Observation" -define "Facility-level testing (HTS) Condition": - Elements."Facility-level testing (HTS) Condition" C +define "Facility-level testing": + exists "Facility-level testing Condition" + or exists "Facility-level testing Observation" +define "Facility-level testing Condition": + Elements."Facility-level testing Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Facility-level testing (HTS) Observation": - Elements."Facility-level testing (HTS) Observation" O +define "Facility-level testing Observation": + Elements."Facility-level testing Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Facility-level testing (HTS) */ +/* End of Facility-level testing */ /* -@dataElement: HIV.B.DE32 - Breastfeeding (HTS) +@dataElement: HIV.B.DE32 - Breastfeeding @activity: HIV.B6 Capture or update client history @description: Infant is being breastfed by mother */ // TODO: Replace placeholder with relevant CQL logic -define "Breastfeeding (HTS)": - exists "Breastfeeding (HTS) Observation" -define "Breastfeeding (HTS) Observation": - Elements."Breastfeeding (HTS) Observation" O +define "Breastfeeding B.DE32": + exists "Breastfeeding B.DE32 Observation" +define "Breastfeeding B.DE32 Observation": + Elements."Breastfeeding B.DE32 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Breastfeeding (HTS) */ +/* End of Breastfeeding B.DE32 */ /* -@dataElement: HIV.B.DE60 - Date HIV test results returned (HTS) +@dataElement: HIV.B.DE60 - Date HIV test results returned @activity: HIV.B6 Capture or update client history @description: Date HIV test result returned to client */ // TODO: Replace placeholder with relevant CQL logic -define "Date HIV test results returned (HTS)": - Elements."Date HIV test results returned (HTS)" O +define "Date HIV test results returned": + Elements."Date HIV test results returned" O where O.effective.toInterval() during "Measurement Period" -define "Date HIV test results returned (HTS) Value": - "Date HIV test results returned (HTS)" O +define "Date HIV test results returned Value": + "Date HIV test results returned" O return O.value -/* End of Date HIV test results returned (HTS) */ +/* End of Date HIV test results returned */ /* -@dataElement: HIV.B.DE61 - HIV exposure type* (HTS) +@dataElement: HIV.B.DE61 - HIV exposure type* @activity: HIV.B6 Capture or update client history @description: Ways in which the client was exposed to HIV */ // TODO: Replace placeholder with relevant CQL logic -define "HIV exposure type* (HTS)": - exists "HIV exposure type* (HTS) Observation" -define "HIV exposure type* (HTS) Observation": - Elements."HIV exposure type* (HTS) Observation" O +define "HIV exposure type*": + exists "HIV exposure type* Observation" +define "HIV exposure type* Observation": + Elements."HIV exposure type* Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of HIV exposure type* (HTS) */ +/* End of HIV exposure type* */ /* -@dataElement: HIV.B.DE62 - Occupational (HTS) +@dataElement: HIV.B.DE62 - Occupational @activity: HIV.B6 Capture or update client history @description: Occupational exposure to HIV */ // TODO: Replace placeholder with relevant CQL logic -define "Occupational (HTS)": - exists "Occupational (HTS) Condition" - or exists "Occupational (HTS) Observation" -define "Occupational (HTS) Condition": - Elements."Occupational (HTS) Condition" C +define "Occupational": + exists "Occupational Condition" + or exists "Occupational Observation" +define "Occupational Condition": + Elements."Occupational Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Occupational (HTS) Observation": - Elements."Occupational (HTS) Observation" O +define "Occupational Observation": + Elements."Occupational Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Occupational (HTS) */ +/* End of Occupational */ /* -@dataElement: HIV.B.DE63 - Non-occupational violent (HTS) +@dataElement: HIV.B.DE63 - Non-occupational violent @activity: HIV.B6 Capture or update client history @description: Non-occupational violent exposure to HIV */ // TODO: Replace placeholder with relevant CQL logic -define "Non-occupational violent (HTS)": - exists "Non-occupational violent (HTS) Condition" - or exists "Non-occupational violent (HTS) Observation" -define "Non-occupational violent (HTS) Condition": - Elements."Non-occupational violent (HTS) Condition" C +define "Non-occupational violent": + exists "Non-occupational violent Condition" + or exists "Non-occupational violent Observation" +define "Non-occupational violent Condition": + Elements."Non-occupational violent Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Non-occupational violent (HTS) Observation": - Elements."Non-occupational violent (HTS) Observation" O +define "Non-occupational violent Observation": + Elements."Non-occupational violent Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Non-occupational violent (HTS) */ +/* End of Non-occupational violent */ /* -@dataElement: HIV.B.DE64 - Non-occupational consensual sex (HTS) +@dataElement: HIV.B.DE64 - Non-occupational consensual sex @activity: HIV.B6 Capture or update client history @description: Exposure to HIV through non-occupational consensual sex */ // TODO: Replace placeholder with relevant CQL logic -define "Non-occupational consensual sex (HTS)": - exists "Non-occupational consensual sex (HTS) Condition" - or exists "Non-occupational consensual sex (HTS) Observation" -define "Non-occupational consensual sex (HTS) Condition": - Elements."Non-occupational consensual sex (HTS) Condition" C +define "Non-occupational consensual sex": + exists "Non-occupational consensual sex Condition" + or exists "Non-occupational consensual sex Observation" +define "Non-occupational consensual sex Condition": + Elements."Non-occupational consensual sex Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Non-occupational consensual sex (HTS) Observation": - Elements."Non-occupational consensual sex (HTS) Observation" O +define "Non-occupational consensual sex Observation": + Elements."Non-occupational consensual sex Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Non-occupational consensual sex (HTS) */ +/* End of Non-occupational consensual sex */ /* -@dataElement: HIV.B.DE110 - HIV test date (HTS) +@dataElement: HIV.B.DE110 - HIV test date @activity: HIV.B7 Test for HIV using testing algorithm @description: Date of the HIV test */ // TODO: Replace placeholder with relevant CQL logic -define "HIV test date (HTS)": - Elements."HIV test date (HTS)" O +define "HIV test date B.DE110": + Elements."HIV test date B.DE110" O where O.effective.toInterval() during "Measurement Period" -define "HIV test date (HTS) Value": - "HIV test date (HTS)" O +define "HIV test date B.DE110 Value": + "HIV test date B.DE110" O return O.value -/* End of HIV test date (HTS) */ +/* End of HIV test date B.DE110 */ /* -@dataElement: HIV.B.DE121 - Probable route of transmission* (HTS) +@dataElement: HIV.B.DE121 - Probable route of transmission* @activity: HIV.B8 Provide post-test counselling @description: Probable route(s) of transmission of HIV to client */ // TODO: Replace placeholder with relevant CQL logic -define "Probable route of transmission* (HTS)": - exists "Probable route of transmission* (HTS) Observation" -define "Probable route of transmission* (HTS) Observation": - Elements."Probable route of transmission* (HTS) Observation" O +define "Probable route of transmission*": + exists "Probable route of transmission* Observation" +define "Probable route of transmission* Observation": + Elements."Probable route of transmission* Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Probable route of transmission* (HTS) */ +/* End of Probable route of transmission* */ /* -@dataElement: HIV.B.DE122 - Heterosexual sex (HTS) +@dataElement: HIV.B.DE122 - Heterosexual sex @activity: HIV.B8 Provide post-test counselling @description: Probable route of HIV transmission was through heterosexual sex */ // TODO: Replace placeholder with relevant CQL logic -define "Heterosexual sex (HTS)": - exists "Heterosexual sex (HTS) Condition" - or exists "Heterosexual sex (HTS) Observation" -define "Heterosexual sex (HTS) Condition": - Elements."Heterosexual sex (HTS) Condition" C +define "Heterosexual sex": + exists "Heterosexual sex Condition" + or exists "Heterosexual sex Observation" +define "Heterosexual sex Condition": + Elements."Heterosexual sex Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Heterosexual sex (HTS) Observation": - Elements."Heterosexual sex (HTS) Observation" O +define "Heterosexual sex Observation": + Elements."Heterosexual sex Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Heterosexual sex (HTS) */ +/* End of Heterosexual sex */ /* -@dataElement: HIV.B.DE123 - Sex between men (HTS) +@dataElement: HIV.B.DE123 - Sex between men @activity: HIV.B8 Provide post-test counselling @description: Probable route of HIV transmission was through sex between men */ // TODO: Replace placeholder with relevant CQL logic -define "Sex between men (HTS)": - exists "Sex between men (HTS) Condition" - or exists "Sex between men (HTS) Observation" -define "Sex between men (HTS) Condition": - Elements."Sex between men (HTS) Condition" C +define "Sex between men": + exists "Sex between men Condition" + or exists "Sex between men Observation" +define "Sex between men Condition": + Elements."Sex between men Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Sex between men (HTS) Observation": - Elements."Sex between men (HTS) Observation" O +define "Sex between men Observation": + Elements."Sex between men Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Sex between men (HTS) */ +/* End of Sex between men */ /* -@dataElement: HIV.B.DE124 - Unprotected intercourse during sex work (HTS) +@dataElement: HIV.B.DE124 - Unprotected intercourse during sex work @activity: HIV.B8 Provide post-test counselling @description: Probable route of HIV transmission was through unprotected intercourse during sex work */ // TODO: Replace placeholder with relevant CQL logic -define "Unprotected intercourse during sex work (HTS)": - exists "Unprotected intercourse during sex work (HTS) Condition" - or exists "Unprotected intercourse during sex work (HTS) Observation" -define "Unprotected intercourse during sex work (HTS) Condition": - Elements."Unprotected intercourse during sex work (HTS) Condition" C +define "Unprotected intercourse during sex work": + exists "Unprotected intercourse during sex work Condition" + or exists "Unprotected intercourse during sex work Observation" +define "Unprotected intercourse during sex work Condition": + Elements."Unprotected intercourse during sex work Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Unprotected intercourse during sex work (HTS) Observation": - Elements."Unprotected intercourse during sex work (HTS) Observation" O +define "Unprotected intercourse during sex work Observation": + Elements."Unprotected intercourse during sex work Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Unprotected intercourse during sex work (HTS) */ +/* End of Unprotected intercourse during sex work */ /* -@dataElement: HIV.B.DE125 - Injecting drug use with unsterile equipment (HTS) +@dataElement: HIV.B.DE125 - Injecting drug use with unsterile equipment @activity: HIV.B8 Provide post-test counselling @description: Probable route of HIV transmission was through injecting drug use with unsterile equipment */ // TODO: Replace placeholder with relevant CQL logic -define "Injecting drug use with unsterile equipment (HTS)": - exists "Injecting drug use with unsterile equipment (HTS) Condition" - or exists "Injecting drug use with unsterile equipment (HTS) Observation" -define "Injecting drug use with unsterile equipment (HTS) Condition": - Elements."Injecting drug use with unsterile equipment (HTS) Condition" C +define "Injecting drug use with unsterile equipment": + exists "Injecting drug use with unsterile equipment Condition" + or exists "Injecting drug use with unsterile equipment Observation" +define "Injecting drug use with unsterile equipment Condition": + Elements."Injecting drug use with unsterile equipment Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Injecting drug use with unsterile equipment (HTS) Observation": - Elements."Injecting drug use with unsterile equipment (HTS) Observation" O +define "Injecting drug use with unsterile equipment Observation": + Elements."Injecting drug use with unsterile equipment Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Injecting drug use with unsterile equipment (HTS) */ +/* End of Injecting drug use with unsterile equipment */ /* -@dataElement: HIV.B.DE126 - Nosocomial (HTS) +@dataElement: HIV.B.DE126 - Nosocomial @activity: HIV.B8 Provide post-test counselling @description: Probable route of HIV transmission was nosocomial */ // TODO: Replace placeholder with relevant CQL logic -define "Nosocomial (HTS)": - exists "Nosocomial (HTS) Condition" - or exists "Nosocomial (HTS) Observation" -define "Nosocomial (HTS) Condition": - Elements."Nosocomial (HTS) Condition" C +define "Nosocomial": + exists "Nosocomial Condition" + or exists "Nosocomial Observation" +define "Nosocomial Condition": + Elements."Nosocomial Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Nosocomial (HTS) Observation": - Elements."Nosocomial (HTS) Observation" O +define "Nosocomial Observation": + Elements."Nosocomial Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Nosocomial (HTS) */ +/* End of Nosocomial */ /* -@dataElement: HIV.B.DE127 - Vertical (HTS) +@dataElement: HIV.B.DE127 - Vertical @activity: HIV.B8 Provide post-test counselling @description: Probable route of HIV transmission to an infant was during pregnancy, labour, delivery and breastfeeding (vertical transmission) */ // TODO: Replace placeholder with relevant CQL logic -define "Vertical (HTS)": - exists "Vertical (HTS) Condition" - or exists "Vertical (HTS) Observation" -define "Vertical (HTS) Condition": - Elements."Vertical (HTS) Condition" C +define "Vertical": + exists "Vertical Condition" + or exists "Vertical Observation" +define "Vertical Condition": + Elements."Vertical Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Vertical (HTS) Observation": - Elements."Vertical (HTS) Observation" O +define "Vertical Observation": + Elements."Vertical Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Vertical (HTS) */ +/* End of Vertical */ /* -@dataElement: HIV.B.DE128 - Other (HTS|BDE128) +@dataElement: HIV.B.DE128 - Other @activity: HIV.B8 Provide post-test counselling @description: Probable route of HIV transmission was other and may include needle accidents, blood transfusion, blood products or organ/tissue donations, tattoos, piercings, circumcision, or acupuncture. */ // TODO: Replace placeholder with relevant CQL logic -define "Other (HTS|BDE128)": - exists "Other (HTS|BDE128) Condition" - or exists "Other (HTS|BDE128) Observation" -define "Other (HTS|BDE128) Condition": - Elements."Other (HTS|BDE128) Condition" C +define "Other B.DE128": + exists "Other B.DE128 Condition" + or exists "Other B.DE128 Observation" +define "Other B.DE128 Condition": + Elements."Other B.DE128 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Other (HTS|BDE128) Observation": - Elements."Other (HTS|BDE128) Observation" O +define "Other B.DE128 Observation": + Elements."Other B.DE128 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Other (HTS|BDE128) */ +/* End of Other B.DE128 */ /* -@dataElement: HIV.B.DE198 - VMMC procedure date (HTS) +@dataElement: HIV.B.DE198 - VMMC procedure date @activity: HIV.B21 Offer prevention options @description: Date on which a voluntary medical male circumcision procedure was performed */ // TODO: Replace placeholder with relevant CQL logic -define "VMMC procedure date (HTS)": - Elements."VMMC procedure date (HTS)" O +define "VMMC procedure date": + Elements."VMMC procedure date" O where O.effective.toInterval() during "Measurement Period" -define "VMMC procedure date (HTS) Value": - "VMMC procedure date (HTS)" O +define "VMMC procedure date Value": + "VMMC procedure date" O return O.value -/* End of VMMC procedure date (HTS) */ +/* End of VMMC procedure date */ /* -@dataElement: HIV.B.DE201 - Adverse event severity (HTS) +@dataElement: HIV.B.DE201 - Adverse event severity @activity: HIV.B21 Offer prevention options @description: Severity of the adverse event associated with voluntary medical male circumcision (VMMC) procedure */ // TODO: Replace placeholder with relevant CQL logic -define "Adverse event severity (HTS)": - exists "Adverse event severity (HTS) Observation" -define "Adverse event severity (HTS) Observation": - Elements."Adverse event severity (HTS) Observation" O +define "Adverse event severity": + exists "Adverse event severity Observation" +define "Adverse event severity Observation": + Elements."Adverse event severity Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Adverse event severity (HTS) */ +/* End of Adverse event severity */ /* -@dataElement: HIV.B.DE202 - Moderate (HTS) +@dataElement: HIV.B.DE202 - Moderate @activity: HIV.B21 Offer prevention options @description: Severity of the adverse event associated with VMMC procedure was moderate */ // TODO: Replace placeholder with relevant CQL logic -define "Moderate (HTS)": - exists "Moderate (HTS) Condition" - or exists "Moderate (HTS) Observation" -define "Moderate (HTS) Condition": - Elements."Moderate (HTS) Condition" C +define "Moderate": + exists "Moderate Condition" + or exists "Moderate Observation" +define "Moderate Condition": + Elements."Moderate Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Moderate (HTS) Observation": - Elements."Moderate (HTS) Observation" O +define "Moderate Observation": + Elements."Moderate Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Moderate (HTS) */ +/* End of Moderate */ /* -@dataElement: HIV.B.DE203 - Severe (HTS) +@dataElement: HIV.B.DE203 - Severe @activity: HIV.B21 Offer prevention options @description: Severity of the adverse event associated with VMMC procedure was severe */ // TODO: Replace placeholder with relevant CQL logic -define "Severe (HTS)": - exists "Severe (HTS) Condition" - or exists "Severe (HTS) Observation" -define "Severe (HTS) Condition": - Elements."Severe (HTS) Condition" C +define "Severe": + exists "Severe Condition" + or exists "Severe Observation" +define "Severe Condition": + Elements."Severe Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Severe (HTS) Observation": - Elements."Severe (HTS) Observation" O +define "Severe Observation": + Elements."Severe Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Severe (HTS) */ +/* End of Severe */ /* -@dataElement: HIV.B.DE204 - Timing of adverse event (HTS) +@dataElement: HIV.B.DE204 - Timing of adverse event @activity: HIV.B21 Offer prevention options @description: When the adverse event associated with VMMC procedure occurred */ // TODO: Replace placeholder with relevant CQL logic -define "Timing of adverse event (HTS)": - exists "Timing of adverse event (HTS) Observation" -define "Timing of adverse event (HTS) Observation": - Elements."Timing of adverse event (HTS) Observation" O +define "Timing of adverse event": + exists "Timing of adverse event Observation" +define "Timing of adverse event Observation": + Elements."Timing of adverse event Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Timing of adverse event (HTS) */ +/* End of Timing of adverse event */ /* -@dataElement: HIV.B.DE205 - Intraoperative (HTS) +@dataElement: HIV.B.DE205 - Intraoperative @activity: HIV.B21 Offer prevention options @description: The adverse event associated with VMMC procedure occurred during the procedure */ // TODO: Replace placeholder with relevant CQL logic -define "Intraoperative (HTS)": - exists "Intraoperative (HTS) Condition" - or exists "Intraoperative (HTS) Observation" -define "Intraoperative (HTS) Condition": - Elements."Intraoperative (HTS) Condition" C +define "Intraoperative": + exists "Intraoperative Condition" + or exists "Intraoperative Observation" +define "Intraoperative Condition": + Elements."Intraoperative Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Intraoperative (HTS) Observation": - Elements."Intraoperative (HTS) Observation" O +define "Intraoperative Observation": + Elements."Intraoperative Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Intraoperative (HTS) */ +/* End of Intraoperative */ /* -@dataElement: HIV.B.DE206 - Postoperative (HTS) +@dataElement: HIV.B.DE206 - Postoperative @activity: HIV.B21 Offer prevention options @description: The adverse event associated with VMMC procedure occurred within the first 30 days after the procedure */ // TODO: Replace placeholder with relevant CQL logic -define "Postoperative (HTS)": - exists "Postoperative (HTS) Condition" - or exists "Postoperative (HTS) Observation" -define "Postoperative (HTS) Condition": - Elements."Postoperative (HTS) Condition" C +define "Postoperative": + exists "Postoperative Condition" + or exists "Postoperative Observation" +define "Postoperative Condition": + Elements."Postoperative Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Postoperative (HTS) Observation": - Elements."Postoperative (HTS) Observation" O +define "Postoperative Observation": + Elements."Postoperative Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Postoperative (HTS) */ +/* End of Postoperative */ /* -@dataElement: HIV.B.DE207 - Type of adverse VMMC event (HTS) +@dataElement: HIV.B.DE207 - Type of adverse VMMC event @activity: HIV.B21 Offer prevention options @description: Type of adverse event associated with voluntary medical male circumcision (VMMC) procedure */ // TODO: Replace placeholder with relevant CQL logic -define "Type of adverse VMMC event (HTS)": - exists "Type of adverse VMMC event (HTS) Observation" -define "Type of adverse VMMC event (HTS) Observation": - Elements."Type of adverse VMMC event (HTS) Observation" O +define "Type of adverse VMMC event": + exists "Type of adverse VMMC event Observation" +define "Type of adverse VMMC event Observation": + Elements."Type of adverse VMMC event Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Type of adverse VMMC event (HTS) */ +/* End of Type of adverse VMMC event */ /* -@dataElement: HIV.B.DE208 - Abnormal pain (HTS) +@dataElement: HIV.B.DE208 - Abnormal pain @activity: HIV.B21 Offer prevention options @description: Client experienced abnormal pain */ // TODO: Replace placeholder with relevant CQL logic -define "Abnormal pain (HTS)": - exists "Abnormal pain (HTS) Condition" - or exists "Abnormal pain (HTS) Observation" -define "Abnormal pain (HTS) Condition": - Elements."Abnormal pain (HTS) Condition" C +define "Abnormal pain": + exists "Abnormal pain Condition" + or exists "Abnormal pain Observation" +define "Abnormal pain Condition": + Elements."Abnormal pain Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Abnormal pain (HTS) Observation": - Elements."Abnormal pain (HTS) Observation" O +define "Abnormal pain Observation": + Elements."Abnormal pain Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Abnormal pain (HTS) */ +/* End of Abnormal pain */ /* -@dataElement: HIV.B.DE209 - Anaesthesia-related effects (HTS) +@dataElement: HIV.B.DE209 - Anaesthesia-related effects @activity: HIV.B21 Offer prevention options @description: Client had anaesthesia-related effects */ // TODO: Replace placeholder with relevant CQL logic -define "Anaesthesia-related effects (HTS)": - exists "Anaesthesia-related effects (HTS) Condition" - or exists "Anaesthesia-related effects (HTS) Observation" -define "Anaesthesia-related effects (HTS) Condition": - Elements."Anaesthesia-related effects (HTS) Condition" C +define "Anaesthesia-related effects": + exists "Anaesthesia-related effects Condition" + or exists "Anaesthesia-related effects Observation" +define "Anaesthesia-related effects Condition": + Elements."Anaesthesia-related effects Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Anaesthesia-related effects (HTS) Observation": - Elements."Anaesthesia-related effects (HTS) Observation" O +define "Anaesthesia-related effects Observation": + Elements."Anaesthesia-related effects Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Anaesthesia-related effects (HTS) */ +/* End of Anaesthesia-related effects */ /* -@dataElement: HIV.B.DE210 - Bleeding (HTS) +@dataElement: HIV.B.DE210 - Bleeding @activity: HIV.B21 Offer prevention options @description: Client had bleeding */ // TODO: Replace placeholder with relevant CQL logic -define "Bleeding (HTS)": - exists "Bleeding (HTS) Condition" - or exists "Bleeding (HTS) Observation" -define "Bleeding (HTS) Condition": - Elements."Bleeding (HTS) Condition" C +define "Bleeding": + exists "Bleeding Condition" + or exists "Bleeding Observation" +define "Bleeding Condition": + Elements."Bleeding Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Bleeding (HTS) Observation": - Elements."Bleeding (HTS) Observation" O +define "Bleeding Observation": + Elements."Bleeding Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Bleeding (HTS) */ +/* End of Bleeding */ /* -@dataElement: HIV.B.DE211 - Damage to the penis (HTS) +@dataElement: HIV.B.DE211 - Damage to the penis @activity: HIV.B21 Offer prevention options @description: Client had damage to the penis */ // TODO: Replace placeholder with relevant CQL logic -define "Damage to the penis (HTS)": - exists "Damage to the penis (HTS) Condition" - or exists "Damage to the penis (HTS) Observation" -define "Damage to the penis (HTS) Condition": - Elements."Damage to the penis (HTS) Condition" C +define "Damage to the penis": + exists "Damage to the penis Condition" + or exists "Damage to the penis Observation" +define "Damage to the penis Condition": + Elements."Damage to the penis Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Damage to the penis (HTS) Observation": - Elements."Damage to the penis (HTS) Observation" O +define "Damage to the penis Observation": + Elements."Damage to the penis Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Damage to the penis (HTS) */ +/* End of Damage to the penis */ /* -@dataElement: HIV.B.DE212 - Difficulty urinating (HTS) +@dataElement: HIV.B.DE212 - Difficulty urinating @activity: HIV.B21 Offer prevention options @description: Client had difficulty urinating */ // TODO: Replace placeholder with relevant CQL logic -define "Difficulty urinating (HTS)": - exists "Difficulty urinating (HTS) Condition" - or exists "Difficulty urinating (HTS) Observation" -define "Difficulty urinating (HTS) Condition": - Elements."Difficulty urinating (HTS) Condition" C +define "Difficulty urinating": + exists "Difficulty urinating Condition" + or exists "Difficulty urinating Observation" +define "Difficulty urinating Condition": + Elements."Difficulty urinating Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Difficulty urinating (HTS) Observation": - Elements."Difficulty urinating (HTS) Observation" O +define "Difficulty urinating Observation": + Elements."Difficulty urinating Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Difficulty urinating (HTS) */ +/* End of Difficulty urinating */ /* -@dataElement: HIV.B.DE213 - Excessive bleeding (HTS) +@dataElement: HIV.B.DE213 - Excessive bleeding @activity: HIV.B21 Offer prevention options @description: Client experienced excessive bleeding */ // TODO: Replace placeholder with relevant CQL logic -define "Excessive bleeding (HTS)": - exists "Excessive bleeding (HTS) Condition" - or exists "Excessive bleeding (HTS) Observation" -define "Excessive bleeding (HTS) Condition": - Elements."Excessive bleeding (HTS) Condition" C +define "Excessive bleeding": + exists "Excessive bleeding Condition" + or exists "Excessive bleeding Observation" +define "Excessive bleeding Condition": + Elements."Excessive bleeding Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Excessive bleeding (HTS) Observation": - Elements."Excessive bleeding (HTS) Observation" O +define "Excessive bleeding Observation": + Elements."Excessive bleeding Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Excessive bleeding (HTS) */ +/* End of Excessive bleeding */ /* -@dataElement: HIV.B.DE214 - Excessive skin removal (HTS) +@dataElement: HIV.B.DE214 - Excessive skin removal @activity: HIV.B21 Offer prevention options @description: Client experienced excessive skin removal */ // TODO: Replace placeholder with relevant CQL logic -define "Excessive skin removal (HTS)": - exists "Excessive skin removal (HTS) Condition" - or exists "Excessive skin removal (HTS) Observation" -define "Excessive skin removal (HTS) Condition": - Elements."Excessive skin removal (HTS) Condition" C +define "Excessive skin removal": + exists "Excessive skin removal Condition" + or exists "Excessive skin removal Observation" +define "Excessive skin removal Condition": + Elements."Excessive skin removal Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Excessive skin removal (HTS) Observation": - Elements."Excessive skin removal (HTS) Observation" O +define "Excessive skin removal Observation": + Elements."Excessive skin removal Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Excessive skin removal (HTS) */ +/* End of Excessive skin removal */ /* -@dataElement: HIV.B.DE215 - Excessive swelling (HTS) +@dataElement: HIV.B.DE215 - Excessive swelling @activity: HIV.B21 Offer prevention options @description: Client experienced excessive swelling */ // TODO: Replace placeholder with relevant CQL logic -define "Excessive swelling (HTS)": - exists "Excessive swelling (HTS) Condition" - or exists "Excessive swelling (HTS) Observation" -define "Excessive swelling (HTS) Condition": - Elements."Excessive swelling (HTS) Condition" C +define "Excessive swelling": + exists "Excessive swelling Condition" + or exists "Excessive swelling Observation" +define "Excessive swelling Condition": + Elements."Excessive swelling Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Excessive swelling (HTS) Observation": - Elements."Excessive swelling (HTS) Observation" O +define "Excessive swelling Observation": + Elements."Excessive swelling Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Excessive swelling (HTS) */ +/* End of Excessive swelling */ /* -@dataElement: HIV.B.DE216 - Haematoma (HTS) +@dataElement: HIV.B.DE216 - Haematoma @activity: HIV.B21 Offer prevention options @description: Client experienced haematoma */ // TODO: Replace placeholder with relevant CQL logic -define "Haematoma (HTS)": - exists "Haematoma (HTS) Condition" - or exists "Haematoma (HTS) Observation" -define "Haematoma (HTS) Condition": - Elements."Haematoma (HTS) Condition" C +define "Haematoma": + exists "Haematoma Condition" + or exists "Haematoma Observation" +define "Haematoma Condition": + Elements."Haematoma Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Haematoma (HTS) Observation": - Elements."Haematoma (HTS) Observation" O +define "Haematoma Observation": + Elements."Haematoma Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Haematoma (HTS) */ +/* End of Haematoma */ /* -@dataElement: HIV.B.DE217 - Infection (HTS) +@dataElement: HIV.B.DE217 - Infection @activity: HIV.B21 Offer prevention options @description: Client experienced infection */ // TODO: Replace placeholder with relevant CQL logic -define "Infection (HTS)": - exists "Infection (HTS) Condition" - or exists "Infection (HTS) Observation" -define "Infection (HTS) Condition": - Elements."Infection (HTS) Condition" C +define "Infection": + exists "Infection Condition" + or exists "Infection Observation" +define "Infection Condition": + Elements."Infection Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Infection (HTS) Observation": - Elements."Infection (HTS) Observation" O +define "Infection Observation": + Elements."Infection Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Infection (HTS) */ +/* End of Infection */ /* -@dataElement: HIV.B.DE218 - Injury to glans (HTS) +@dataElement: HIV.B.DE218 - Injury to glans @activity: HIV.B21 Offer prevention options @description: Client experienced injury to glans */ // TODO: Replace placeholder with relevant CQL logic -define "Injury to glans (HTS)": - exists "Injury to glans (HTS) Condition" - or exists "Injury to glans (HTS) Observation" -define "Injury to glans (HTS) Condition": - Elements."Injury to glans (HTS) Condition" C +define "Injury to glans": + exists "Injury to glans Condition" + or exists "Injury to glans Observation" +define "Injury to glans Condition": + Elements."Injury to glans Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Injury to glans (HTS) Observation": - Elements."Injury to glans (HTS) Observation" O +define "Injury to glans Observation": + Elements."Injury to glans Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Injury to glans (HTS) */ +/* End of Injury to glans */ /* -@dataElement: HIV.B.DE219 - Scar or disfigurement (HTS) +@dataElement: HIV.B.DE219 - Scar or disfigurement @activity: HIV.B21 Offer prevention options @description: Client experienced scar or disfigurement */ // TODO: Replace placeholder with relevant CQL logic -define "Scar or disfigurement (HTS)": - exists "Scar or disfigurement (HTS) Condition" - or exists "Scar or disfigurement (HTS) Observation" -define "Scar or disfigurement (HTS) Condition": - Elements."Scar or disfigurement (HTS) Condition" C +define "Scar or disfigurement": + exists "Scar or disfigurement Condition" + or exists "Scar or disfigurement Observation" +define "Scar or disfigurement Condition": + Elements."Scar or disfigurement Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Scar or disfigurement (HTS) Observation": - Elements."Scar or disfigurement (HTS) Observation" O +define "Scar or disfigurement Observation": + Elements."Scar or disfigurement Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Scar or disfigurement (HTS) */ +/* End of Scar or disfigurement */ /* -@dataElement: HIV.B.DE220 - Sharps injury to personnel (HTS) +@dataElement: HIV.B.DE220 - Sharps injury to personnel @activity: HIV.B21 Offer prevention options @description: During VMMC procedure there was sharps injury to personnel */ // TODO: Replace placeholder with relevant CQL logic -define "Sharps injury to personnel (HTS)": - exists "Sharps injury to personnel (HTS) Condition" - or exists "Sharps injury to personnel (HTS) Observation" -define "Sharps injury to personnel (HTS) Condition": - Elements."Sharps injury to personnel (HTS) Condition" C +define "Sharps injury to personnel": + exists "Sharps injury to personnel Condition" + or exists "Sharps injury to personnel Observation" +define "Sharps injury to personnel Condition": + Elements."Sharps injury to personnel Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Sharps injury to personnel (HTS) Observation": - Elements."Sharps injury to personnel (HTS) Observation" O +define "Sharps injury to personnel Observation": + Elements."Sharps injury to personnel Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Sharps injury to personnel (HTS) */ +/* End of Sharps injury to personnel */ /* -@dataElement: HIV.B.DE221 - Wound disruption (HTS) +@dataElement: HIV.B.DE221 - Wound disruption @activity: HIV.B21 Offer prevention options @description: Client experienced wound disruption */ // TODO: Replace placeholder with relevant CQL logic -define "Wound disruption (HTS)": - exists "Wound disruption (HTS) Condition" - or exists "Wound disruption (HTS) Observation" -define "Wound disruption (HTS) Condition": - Elements."Wound disruption (HTS) Condition" C +define "Wound disruption": + exists "Wound disruption Condition" + or exists "Wound disruption Observation" +define "Wound disruption Condition": + Elements."Wound disruption Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Wound disruption (HTS) Observation": - Elements."Wound disruption (HTS) Observation" O +define "Wound disruption Observation": + Elements."Wound disruption Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Wound disruption (HTS) */ +/* End of Wound disruption */ /* -@dataElement: HIV.B.DE222 - Other (HTS|BDE222) +@dataElement: HIV.B.DE222 - Other @activity: HIV.B21 Offer prevention options @description: Client experienced other adverse VMMC event */ // TODO: Replace placeholder with relevant CQL logic -define "Other (HTS|BDE222)": - exists "Other (HTS|BDE222) Condition" - or exists "Other (HTS|BDE222) Observation" -define "Other (HTS|BDE222) Condition": - Elements."Other (HTS|BDE222) Condition" C +define "Other B.DE222": + exists "Other B.DE222 Condition" + or exists "Other B.DE222 Observation" +define "Other B.DE222 Condition": + Elements."Other B.DE222 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Other (HTS|BDE222) Observation": - Elements."Other (HTS|BDE222) Observation" O +define "Other B.DE222 Observation": + Elements."Other B.DE222 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Other (HTS|BDE222) */ +/* End of Other B.DE222 */ /* -@dataElement: HIV.B.DE226 - Syndrome/STI diagnosed (HTS) +@dataElement: HIV.B.DE226 - Syndrome/STI diagnosed @activity: HIV.B23 Offer sexual and reproductive health services @description: Syndrome or STI for which client is diagnosed */ // TODO: Replace placeholder with relevant CQL logic -define "Syndrome/STI diagnosed (HTS)": - exists "Syndrome/STI diagnosed (HTS) Observation" -define "Syndrome/STI diagnosed (HTS) Observation": - Elements."Syndrome/STI diagnosed (HTS) Observation" O +define "Syndrome/STI diagnosed B.DE226": + exists "Syndrome/STI diagnosed B.DE226 Observation" +define "Syndrome/STI diagnosed B.DE226 Observation": + Elements."Syndrome/STI diagnosed B.DE226 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Syndrome/STI diagnosed (HTS) */ +/* End of Syndrome/STI diagnosed B.DE226 */ /* -@dataElement: HIV.B.DE227 - Urethral discharge syndrome (HTS) +@dataElement: HIV.B.DE227 - Urethral discharge syndrome @activity: HIV.B23 Offer sexual and reproductive health services @description: Client diagnosed with urethral discharge syndrome */ // TODO: Replace placeholder with relevant CQL logic -define "Urethral discharge syndrome (HTS)": - exists "Urethral discharge syndrome (HTS) Condition" - or exists "Urethral discharge syndrome (HTS) Observation" -define "Urethral discharge syndrome (HTS) Condition": - Elements."Urethral discharge syndrome (HTS) Condition" C +define "Urethral discharge syndrome B.DE227": + exists "Urethral discharge syndrome B.DE227 Condition" + or exists "Urethral discharge syndrome B.DE227 Observation" +define "Urethral discharge syndrome B.DE227 Condition": + Elements."Urethral discharge syndrome B.DE227 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Urethral discharge syndrome (HTS) Observation": - Elements."Urethral discharge syndrome (HTS) Observation" O +define "Urethral discharge syndrome B.DE227 Observation": + Elements."Urethral discharge syndrome B.DE227 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Urethral discharge syndrome (HTS) */ +/* End of Urethral discharge syndrome B.DE227 */ /* -@dataElement: HIV.B.DE228 - Vaginal discharge syndrome (HTS) +@dataElement: HIV.B.DE228 - Vaginal discharge syndrome @activity: HIV.B23 Offer sexual and reproductive health services @description: Client diagnosed with vaginal discharge syndrome */ // TODO: Replace placeholder with relevant CQL logic -define "Vaginal discharge syndrome (HTS)": - exists "Vaginal discharge syndrome (HTS) Condition" - or exists "Vaginal discharge syndrome (HTS) Observation" -define "Vaginal discharge syndrome (HTS) Condition": - Elements."Vaginal discharge syndrome (HTS) Condition" C +define "Vaginal discharge syndrome B.DE228": + exists "Vaginal discharge syndrome B.DE228 Condition" + or exists "Vaginal discharge syndrome B.DE228 Observation" +define "Vaginal discharge syndrome B.DE228 Condition": + Elements."Vaginal discharge syndrome B.DE228 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Vaginal discharge syndrome (HTS) Observation": - Elements."Vaginal discharge syndrome (HTS) Observation" O +define "Vaginal discharge syndrome B.DE228 Observation": + Elements."Vaginal discharge syndrome B.DE228 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Vaginal discharge syndrome (HTS) */ +/* End of Vaginal discharge syndrome B.DE228 */ /* -@dataElement: HIV.B.DE229 - Lower Abdominal pain (HTS) +@dataElement: HIV.B.DE229 - Lower Abdominal pain @activity: HIV.B23 Offer sexual and reproductive health services @description: Client diagnosed with lower abdominal pain */ // TODO: Replace placeholder with relevant CQL logic -define "Lower Abdominal pain (HTS)": - exists "Lower Abdominal pain (HTS) Condition" - or exists "Lower Abdominal pain (HTS) Observation" -define "Lower Abdominal pain (HTS) Condition": - Elements."Lower Abdominal pain (HTS) Condition" C +define "Lower Abdominal pain B.DE229": + exists "Lower Abdominal pain B.DE229 Condition" + or exists "Lower Abdominal pain B.DE229 Observation" +define "Lower Abdominal pain B.DE229 Condition": + Elements."Lower Abdominal pain B.DE229 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Lower Abdominal pain (HTS) Observation": - Elements."Lower Abdominal pain (HTS) Observation" O +define "Lower Abdominal pain B.DE229 Observation": + Elements."Lower Abdominal pain B.DE229 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Lower Abdominal pain (HTS) */ +/* End of Lower Abdominal pain B.DE229 */ /* -@dataElement: HIV.B.DE230 - Genital ulcer disease syndrome (HTS) +@dataElement: HIV.B.DE230 - Genital ulcer disease syndrome @activity: HIV.B23 Offer sexual and reproductive health services @description: Client diagnosed with genital ulcer disease syndrome */ // TODO: Replace placeholder with relevant CQL logic -define "Genital ulcer disease syndrome (HTS)": - exists "Genital ulcer disease syndrome (HTS) Condition" - or exists "Genital ulcer disease syndrome (HTS) Observation" -define "Genital ulcer disease syndrome (HTS) Condition": - Elements."Genital ulcer disease syndrome (HTS) Condition" C +define "Genital ulcer disease syndrome B.DE230": + exists "Genital ulcer disease syndrome B.DE230 Condition" + or exists "Genital ulcer disease syndrome B.DE230 Observation" +define "Genital ulcer disease syndrome B.DE230 Condition": + Elements."Genital ulcer disease syndrome B.DE230 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Genital ulcer disease syndrome (HTS) Observation": - Elements."Genital ulcer disease syndrome (HTS) Observation" O +define "Genital ulcer disease syndrome B.DE230 Observation": + Elements."Genital ulcer disease syndrome B.DE230 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Genital ulcer disease syndrome (HTS) */ +/* End of Genital ulcer disease syndrome B.DE230 */ /* -@dataElement: HIV.B.DE231 - Anorectal discharge (HTS) +@dataElement: HIV.B.DE231 - Anorectal discharge @activity: HIV.B23 Offer sexual and reproductive health services @description: Client diagnosed with anorectal discharge */ // TODO: Replace placeholder with relevant CQL logic -define "Anorectal discharge (HTS)": - exists "Anorectal discharge (HTS) Condition" - or exists "Anorectal discharge (HTS) Observation" -define "Anorectal discharge (HTS) Condition": - Elements."Anorectal discharge (HTS) Condition" C +define "Anorectal discharge B.DE231": + exists "Anorectal discharge B.DE231 Condition" + or exists "Anorectal discharge B.DE231 Observation" +define "Anorectal discharge B.DE231 Condition": + Elements."Anorectal discharge B.DE231 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Anorectal discharge (HTS) Observation": - Elements."Anorectal discharge (HTS) Observation" O +define "Anorectal discharge B.DE231 Observation": + Elements."Anorectal discharge B.DE231 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Anorectal discharge (HTS) */ +/* End of Anorectal discharge B.DE231 */ /* -@dataElement: HIV.B.DE232 - Sent for testing (HTS) +@dataElement: HIV.B.DE232 - Sent for testing @activity: HIV.B23 Offer sexual and reproductive health services @description: Specimen sent for testing */ // TODO: Replace placeholder with relevant CQL logic -define "Sent for testing (HTS)": - exists "Sent for testing (HTS) Condition" - or exists "Sent for testing (HTS) Observation" -define "Sent for testing (HTS) Condition": - Elements."Sent for testing (HTS) Condition" C +define "Sent for testing B.DE232": + exists "Sent for testing B.DE232 Condition" + or exists "Sent for testing B.DE232 Observation" +define "Sent for testing B.DE232 Condition": + Elements."Sent for testing B.DE232 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Sent for testing (HTS) Observation": - Elements."Sent for testing (HTS) Observation" O +define "Sent for testing B.DE232 Observation": + Elements."Sent for testing B.DE232 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Sent for testing (HTS) */ +/* End of Sent for testing B.DE232 */ /* -@dataElement: HIV.B.DE233 - Other (HTS|BDE233) +@dataElement: HIV.B.DE233 - Other @activity: HIV.B23 Offer sexual and reproductive health services @description: Other syndrome/STI diagnosed */ // TODO: Replace placeholder with relevant CQL logic -define "Other (HTS|BDE233)": - exists "Other (HTS|BDE233) Condition" - or exists "Other (HTS|BDE233) Observation" -define "Other (HTS|BDE233) Condition": - Elements."Other (HTS|BDE233) Condition" C +define "Other B.DE233": + exists "Other B.DE233 Condition" + or exists "Other B.DE233 Observation" +define "Other B.DE233 Condition": + Elements."Other B.DE233 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Other (HTS|BDE233) Observation": - Elements."Other (HTS|BDE233) Observation" O +define "Other B.DE233 Observation": + Elements."Other B.DE233 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Other (HTS|BDE233) */ +/* End of Other B.DE233 */ /* -@dataElement: HIV.B.DE235 - Any STI syndrome diagnosed (HTS) +@dataElement: HIV.B.DE235 - Any STI syndrome diagnosed @activity: HIV.B23 Offer sexual and reproductive health services @description: Was the client diagnosed with any of the five STI syndromes during this visit? */ // TODO: Replace placeholder with relevant CQL logic -define "Any STI syndrome diagnosed (HTS)": - exists "Any STI syndrome diagnosed (HTS) Observation" -define "Any STI syndrome diagnosed (HTS) Observation": - Elements."Any STI syndrome diagnosed (HTS) Observation" O +define "Any STI syndrome diagnosed B.DE235": + exists "Any STI syndrome diagnosed B.DE235 Observation" +define "Any STI syndrome diagnosed B.DE235 Observation": + Elements."Any STI syndrome diagnosed B.DE235 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Any STI syndrome diagnosed (HTS) */ +/* End of Any STI syndrome diagnosed B.DE235 */ /* -@dataElement: HIV.B.DE249 - Syphilis test date (HTS) +@dataElement: HIV.B.DE249 - Syphilis test date @activity: HIV.B23 Offer sexual and reproductive health services @description: Date of syphilis test */ // TODO: Replace placeholder with relevant CQL logic -define "Syphilis test date (HTS)": - Elements."Syphilis test date (HTS)" O +define "Syphilis test date B.DE249": + Elements."Syphilis test date B.DE249" O where O.effective.toInterval() during "Measurement Period" -define "Syphilis test date (HTS) Value": - "Syphilis test date (HTS)" O +define "Syphilis test date B.DE249 Value": + "Syphilis test date B.DE249" O return O.value -/* End of Syphilis test date (HTS) */ +/* End of Syphilis test date B.DE249 */ /* -@dataElement: HIV.B.DE254 - Syphilis treatment start date (HTS) +@dataElement: HIV.B.DE254 - Syphilis treatment start date @activity: HIV.B23 Offer sexual and reproductive health services @description: Date of initiation of syphilis treatment */ // TODO: Replace placeholder with relevant CQL logic -define "Syphilis treatment start date (HTS)": - Elements."Syphilis treatment start date (HTS)" O +define "Syphilis treatment start date B.DE254": + Elements."Syphilis treatment start date B.DE254" O where O.effective.toInterval() during "Measurement Period" -define "Syphilis treatment start date (HTS) Value": - "Syphilis treatment start date (HTS)" O +define "Syphilis treatment start date B.DE254 Value": + "Syphilis treatment start date B.DE254" O return O.value -/* End of Syphilis treatment start date (HTS) */ +/* End of Syphilis treatment start date B.DE254 */ /* -@dataElement: HIV.B.DE255 - Gonorrhoea test date (HTS) +@dataElement: HIV.B.DE255 - Gonorrhoea test date @activity: HIV.B23 Offer sexual and reproductive health services @description: Date of Gonorrhoea test */ // TODO: Replace placeholder with relevant CQL logic -define "Gonorrhoea test date (HTS)": - Elements."Gonorrhoea test date (HTS)" O +define "Gonorrhoea test date B.DE255": + Elements."Gonorrhoea test date B.DE255" O where O.effective.toInterval() during "Measurement Period" -define "Gonorrhoea test date (HTS) Value": - "Gonorrhoea test date (HTS)" O +define "Gonorrhoea test date B.DE255 Value": + "Gonorrhoea test date B.DE255" O return O.value -/* End of Gonorrhoea test date (HTS) */ +/* End of Gonorrhoea test date B.DE255 */ /* -@dataElement: HIV.B.DE256 - Gonorrhoea test result (HTS) +@dataElement: HIV.B.DE256 - Gonorrhoea test result @activity: HIV.B23 Offer sexual and reproductive health services @description: Result from Gonorrhoea test */ // TODO: Replace placeholder with relevant CQL logic -define "Gonorrhoea test result (HTS)": - exists "Gonorrhoea test result (HTS) Observation" -define "Gonorrhoea test result (HTS) Observation": - Elements."Gonorrhoea test result (HTS) Observation" O +define "Gonorrhoea test result B.DE256": + exists "Gonorrhoea test result B.DE256 Observation" +define "Gonorrhoea test result B.DE256 Observation": + Elements."Gonorrhoea test result B.DE256 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Gonorrhoea test result (HTS) */ +/* End of Gonorrhoea test result B.DE256 */ /* -@dataElement: HIV.B.DE257 - Positive (HTS|BDE257) +@dataElement: HIV.B.DE257 - Positive @activity: HIV.B23 Offer sexual and reproductive health services @description: Test result is positive for Neisseria gonorrhoeae */ // TODO: Replace placeholder with relevant CQL logic -define "Positive (HTS|BDE257)": - exists "Positive (HTS|BDE257) Condition" - or exists "Positive (HTS|BDE257) Observation" -define "Positive (HTS|BDE257) Condition": - Elements."Positive (HTS|BDE257) Condition" C +define "Positive B.DE257": + exists "Positive B.DE257 Condition" + or exists "Positive B.DE257 Observation" +define "Positive B.DE257 Condition": + Elements."Positive B.DE257 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Positive (HTS|BDE257) Observation": - Elements."Positive (HTS|BDE257) Observation" O +define "Positive B.DE257 Observation": + Elements."Positive B.DE257 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Positive (HTS|BDE257) */ +/* End of Positive B.DE257 */ /* -@dataElement: HIV.B.DE258 - Negative (HTS|BDE258) +@dataElement: HIV.B.DE258 - Negative @activity: HIV.B23 Offer sexual and reproductive health services @description: Test result is negative for Neisseria gonorrhoeae */ // TODO: Replace placeholder with relevant CQL logic -define "Negative (HTS|BDE258)": - exists "Negative (HTS|BDE258) Condition" - or exists "Negative (HTS|BDE258) Observation" -define "Negative (HTS|BDE258) Condition": - Elements."Negative (HTS|BDE258) Condition" C +define "Negative B.DE258": + exists "Negative B.DE258 Condition" + or exists "Negative B.DE258 Observation" +define "Negative B.DE258 Condition": + Elements."Negative B.DE258 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Negative (HTS|BDE258) Observation": - Elements."Negative (HTS|BDE258) Observation" O +define "Negative B.DE258 Observation": + Elements."Negative B.DE258 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Negative (HTS|BDE258) */ +/* End of Negative B.DE258 */ /* -@dataElement: HIV.B.DE259 - Inconclusive (HTS|BDE259) +@dataElement: HIV.B.DE259 - Inconclusive @activity: HIV.B23 Offer sexual and reproductive health services @description: Test result is inconclusive */ // TODO: Replace placeholder with relevant CQL logic -define "Inconclusive (HTS|BDE259)": - exists "Inconclusive (HTS|BDE259) Condition" - or exists "Inconclusive (HTS|BDE259) Observation" -define "Inconclusive (HTS|BDE259) Condition": - Elements."Inconclusive (HTS|BDE259) Condition" C +define "Inconclusive B.DE259": + exists "Inconclusive B.DE259 Condition" + or exists "Inconclusive B.DE259 Observation" +define "Inconclusive B.DE259 Condition": + Elements."Inconclusive B.DE259 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Inconclusive (HTS|BDE259) Observation": - Elements."Inconclusive (HTS|BDE259) Observation" O +define "Inconclusive B.DE259 Observation": + Elements."Inconclusive B.DE259 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Inconclusive (HTS|BDE259) */ +/* End of Inconclusive B.DE259 */ /* -@dataElement: HIV.B.DE260 - Gonorrhoea treatment start date (HTS) +@dataElement: HIV.B.DE260 - Gonorrhoea treatment start date @activity: HIV.B23 Offer sexual and reproductive health services @description: Date of initiation of Gonorrhoea treatment */ // TODO: Replace placeholder with relevant CQL logic -define "Gonorrhoea treatment start date (HTS)": - Elements."Gonorrhoea treatment start date (HTS)" O +define "Gonorrhoea treatment start date B.DE260": + Elements."Gonorrhoea treatment start date B.DE260" O where O.effective.toInterval() during "Measurement Period" -define "Gonorrhoea treatment start date (HTS) Value": - "Gonorrhoea treatment start date (HTS)" O +define "Gonorrhoea treatment start date B.DE260 Value": + "Gonorrhoea treatment start date B.DE260" O return O.value -/* End of Gonorrhoea treatment start date (HTS) */ +/* End of Gonorrhoea treatment start date B.DE260 */ /* -@dataElement: HIV.B.DE261 - Type of specimen (HTS) +@dataElement: HIV.B.DE261 - Type of specimen @activity: HIV.B23 Offer sexual and reproductive health services @description: Type of specimen to be collected */ // TODO: Replace placeholder with relevant CQL logic -define "Type of specimen (HTS)": - exists "Type of specimen (HTS) Observation" -define "Type of specimen (HTS) Observation": - Elements."Type of specimen (HTS) Observation" O +define "Type of specimen B.DE261": + exists "Type of specimen B.DE261 Observation" +define "Type of specimen B.DE261 Observation": + Elements."Type of specimen B.DE261 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Type of specimen (HTS) */ +/* End of Type of specimen B.DE261 */ /* -@dataElement: HIV.B.DE262 - Blood (HTS) +@dataElement: HIV.B.DE262 - Blood @activity: HIV.B23 Offer sexual and reproductive health services @description: Blood specimen to be collected */ // TODO: Replace placeholder with relevant CQL logic -define "Blood (HTS)": - exists "Blood (HTS) Condition" - or exists "Blood (HTS) Observation" -define "Blood (HTS) Condition": - Elements."Blood (HTS) Condition" C +define "Blood B.DE262": + exists "Blood B.DE262 Condition" + or exists "Blood B.DE262 Observation" +define "Blood B.DE262 Condition": + Elements."Blood B.DE262 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Blood (HTS) Observation": - Elements."Blood (HTS) Observation" O +define "Blood B.DE262 Observation": + Elements."Blood B.DE262 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Blood (HTS) */ +/* End of Blood B.DE262 */ /* -@dataElement: HIV.B.DE263 - Urine (HTS) +@dataElement: HIV.B.DE263 - Urine @activity: HIV.B23 Offer sexual and reproductive health services @description: Urine specimen to be collected */ // TODO: Replace placeholder with relevant CQL logic -define "Urine (HTS)": - exists "Urine (HTS) Condition" - or exists "Urine (HTS) Observation" -define "Urine (HTS) Condition": - Elements."Urine (HTS) Condition" C +define "Urine B.DE263": + exists "Urine B.DE263 Condition" + or exists "Urine B.DE263 Observation" +define "Urine B.DE263 Condition": + Elements."Urine B.DE263 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Urine (HTS) Observation": - Elements."Urine (HTS) Observation" O +define "Urine B.DE263 Observation": + Elements."Urine B.DE263 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Urine (HTS) */ +/* End of Urine B.DE263 */ /* -@dataElement: HIV.B.DE264 - Cervical or vaginal swab (HTS) +@dataElement: HIV.B.DE264 - Cervical or vaginal swab @activity: HIV.B23 Offer sexual and reproductive health services @description: Cervical or vaginal swab to be collected */ // TODO: Replace placeholder with relevant CQL logic -define "Cervical or vaginal swab (HTS)": - exists "Cervical or vaginal swab (HTS) Condition" - or exists "Cervical or vaginal swab (HTS) Observation" -define "Cervical or vaginal swab (HTS) Condition": - Elements."Cervical or vaginal swab (HTS) Condition" C +define "Cervical or vaginal swab B.DE264": + exists "Cervical or vaginal swab B.DE264 Condition" + or exists "Cervical or vaginal swab B.DE264 Observation" +define "Cervical or vaginal swab B.DE264 Condition": + Elements."Cervical or vaginal swab B.DE264 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Cervical or vaginal swab (HTS) Observation": - Elements."Cervical or vaginal swab (HTS) Observation" O +define "Cervical or vaginal swab B.DE264 Observation": + Elements."Cervical or vaginal swab B.DE264 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Cervical or vaginal swab (HTS) */ +/* End of Cervical or vaginal swab B.DE264 */ /* -@dataElement: HIV.B.DE265 - Urethral or penile swab (HTS) +@dataElement: HIV.B.DE265 - Urethral or penile swab @activity: HIV.B23 Offer sexual and reproductive health services @description: Urethral or penile swab to be collected */ // TODO: Replace placeholder with relevant CQL logic -define "Urethral or penile swab (HTS)": - exists "Urethral or penile swab (HTS) Condition" - or exists "Urethral or penile swab (HTS) Observation" -define "Urethral or penile swab (HTS) Condition": - Elements."Urethral or penile swab (HTS) Condition" C +define "Urethral or penile swab B.DE265": + exists "Urethral or penile swab B.DE265 Condition" + or exists "Urethral or penile swab B.DE265 Observation" +define "Urethral or penile swab B.DE265 Condition": + Elements."Urethral or penile swab B.DE265 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Urethral or penile swab (HTS) Observation": - Elements."Urethral or penile swab (HTS) Observation" O +define "Urethral or penile swab B.DE265 Observation": + Elements."Urethral or penile swab B.DE265 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Urethral or penile swab (HTS) */ +/* End of Urethral or penile swab B.DE265 */ /* -@dataElement: HIV.B.DE266 - Rectal swab (HTS) +@dataElement: HIV.B.DE266 - Rectal swab @activity: HIV.B23 Offer sexual and reproductive health services @description: Rectal swab to be collected */ // TODO: Replace placeholder with relevant CQL logic -define "Rectal swab (HTS)": - exists "Rectal swab (HTS) Condition" - or exists "Rectal swab (HTS) Observation" -define "Rectal swab (HTS) Condition": - Elements."Rectal swab (HTS) Condition" C +define "Rectal swab B.DE266": + exists "Rectal swab B.DE266 Condition" + or exists "Rectal swab B.DE266 Observation" +define "Rectal swab B.DE266 Condition": + Elements."Rectal swab B.DE266 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Rectal swab (HTS) Observation": - Elements."Rectal swab (HTS) Observation" O +define "Rectal swab B.DE266 Observation": + Elements."Rectal swab B.DE266 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Rectal swab (HTS) */ +/* End of Rectal swab B.DE266 */ /* -@dataElement: HIV.B.DE267 - Other (HTS|BDE267) +@dataElement: HIV.B.DE267 - Other @activity: HIV.B23 Offer sexual and reproductive health services @description: Other specimen type to be collected */ // TODO: Replace placeholder with relevant CQL logic -define "Other (HTS|BDE267)": - exists "Other (HTS|BDE267) Condition" - or exists "Other (HTS|BDE267) Observation" -define "Other (HTS|BDE267) Condition": - Elements."Other (HTS|BDE267) Condition" C +define "Other B.DE267": + exists "Other B.DE267 Condition" + or exists "Other B.DE267 Observation" +define "Other B.DE267 Condition": + Elements."Other B.DE267 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Other (HTS|BDE267) Observation": - Elements."Other (HTS|BDE267) Observation" O +define "Other B.DE267 Observation": + Elements."Other B.DE267 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Other (HTS|BDE267) */ +/* End of Other B.DE267 */ /* -@dataElement: HIV.B.DE276 - Neisseria gonorrhoeae test type (HTS) +@dataElement: HIV.B.DE276 - Neisseria gonorrhoeae test type @activity: HIV.B23 Offer sexual and reproductive health services @description: Type of diagnostic test used for Neisseria gonorrhoeae */ // TODO: Replace placeholder with relevant CQL logic -define "Neisseria gonorrhoeae test type (HTS)": - exists "Neisseria gonorrhoeae test type (HTS) Observation" -define "Neisseria gonorrhoeae test type (HTS) Observation": - Elements."Neisseria gonorrhoeae test type (HTS) Observation" O +define "Neisseria gonorrhoeae test type B.DE276": + exists "Neisseria gonorrhoeae test type B.DE276 Observation" +define "Neisseria gonorrhoeae test type B.DE276 Observation": + Elements."Neisseria gonorrhoeae test type B.DE276 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Neisseria gonorrhoeae test type (HTS) */ +/* End of Neisseria gonorrhoeae test type B.DE276 */ /* -@dataElement: HIV.B.DE277 - NAAT (HTS) +@dataElement: HIV.B.DE277 - NAAT @activity: HIV.B23 Offer sexual and reproductive health services @description: Nucleic Acid Amplification Test (NAAT) used */ // TODO: Replace placeholder with relevant CQL logic -define "NAAT (HTS)": - exists "NAAT (HTS) Condition" - or exists "NAAT (HTS) Observation" -define "NAAT (HTS) Condition": - Elements."NAAT (HTS) Condition" C +define "NAAT B.DE277": + exists "NAAT B.DE277 Condition" + or exists "NAAT B.DE277 Observation" +define "NAAT B.DE277 Condition": + Elements."NAAT B.DE277 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "NAAT (HTS) Observation": - Elements."NAAT (HTS) Observation" O +define "NAAT B.DE277 Observation": + Elements."NAAT B.DE277 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of NAAT (HTS) */ +/* End of NAAT B.DE277 */ /* -@dataElement: HIV.B.DE278 - POC Test (HTS) +@dataElement: HIV.B.DE278 - POC Test @activity: HIV.B23 Offer sexual and reproductive health services @description: Point-of-care (POC) test used */ // TODO: Replace placeholder with relevant CQL logic -define "POC Test (HTS)": - exists "POC Test (HTS) Condition" - or exists "POC Test (HTS) Observation" -define "POC Test (HTS) Condition": - Elements."POC Test (HTS) Condition" C +define "POC Test B.DE278": + exists "POC Test B.DE278 Condition" + or exists "POC Test B.DE278 Observation" +define "POC Test B.DE278 Condition": + Elements."POC Test B.DE278 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "POC Test (HTS) Observation": - Elements."POC Test (HTS) Observation" O +define "POC Test B.DE278 Observation": + Elements."POC Test B.DE278 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of POC Test (HTS) */ +/* End of POC Test B.DE278 */ /* -@dataElement: HIV.B.DE279 - Culture (HTS) +@dataElement: HIV.B.DE279 - Culture @activity: HIV.B23 Offer sexual and reproductive health services @description: Culture test used */ // TODO: Replace placeholder with relevant CQL logic -define "Culture (HTS)": - exists "Culture (HTS) Condition" - or exists "Culture (HTS) Observation" -define "Culture (HTS) Condition": - Elements."Culture (HTS) Condition" C +define "Culture B.DE279": + exists "Culture B.DE279 Condition" + or exists "Culture B.DE279 Observation" +define "Culture B.DE279 Condition": + Elements."Culture B.DE279 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Culture (HTS) Observation": - Elements."Culture (HTS) Observation" O +define "Culture B.DE279 Observation": + Elements."Culture B.DE279 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Culture (HTS) */ +/* End of Culture B.DE279 */ /* -@dataElement: HIV.B.DE280 - Microscopy (HTS) +@dataElement: HIV.B.DE280 - Microscopy @activity: HIV.B23 Offer sexual and reproductive health services @description: Microscopy test used */ // TODO: Replace placeholder with relevant CQL logic -define "Microscopy (HTS)": - exists "Microscopy (HTS) Condition" - or exists "Microscopy (HTS) Observation" -define "Microscopy (HTS) Condition": - Elements."Microscopy (HTS) Condition" C +define "Microscopy B.DE280": + exists "Microscopy B.DE280 Condition" + or exists "Microscopy B.DE280 Observation" +define "Microscopy B.DE280 Condition": + Elements."Microscopy B.DE280 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Microscopy (HTS) Observation": - Elements."Microscopy (HTS) Observation" O +define "Microscopy B.DE280 Observation": + Elements."Microscopy B.DE280 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Microscopy (HTS) */ +/* End of Microscopy B.DE280 */ /* -@dataElement: HIV.B.DE281 - Other (HTS|BDE281) +@dataElement: HIV.B.DE281 - Other @activity: HIV.B23 Offer sexual and reproductive health services @description: Other type of test used */ // TODO: Replace placeholder with relevant CQL logic -define "Other (HTS|BDE281)": - exists "Other (HTS|BDE281) Condition" - or exists "Other (HTS|BDE281) Observation" -define "Other (HTS|BDE281) Condition": - Elements."Other (HTS|BDE281) Condition" C +define "Other B.DE281": + exists "Other B.DE281 Condition" + or exists "Other B.DE281 Observation" +define "Other B.DE281 Condition": + Elements."Other B.DE281 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Other (HTS|BDE281) Observation": - Elements."Other (HTS|BDE281) Observation" O +define "Other B.DE281 Observation": + Elements."Other B.DE281 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Other (HTS|BDE281) */ +/* End of Other B.DE281 */ /* -@dataElement: HIV.C.DE11 - PrEP dosing type (PrEP) +@dataElement: HIV.C.DE11 - PrEP dosing type @activity: HIV.C3 Capture or update client history @description: Way in which pre-exposure prophylaxis (PrEP) is taken (daily or event-driven) */ // TODO: Replace placeholder with relevant CQL logic -define "PrEP dosing type (PrEP)": - exists "PrEP dosing type (PrEP) Observation" -define "PrEP dosing type (PrEP) Observation": - Elements."PrEP dosing type (PrEP) Observation" O +define "PrEP dosing type": + exists "PrEP dosing type Observation" +define "PrEP dosing type Observation": + Elements."PrEP dosing type Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of PrEP dosing type (PrEP) */ +/* End of PrEP dosing type */ /* -@dataElement: HIV.C.DE12 - Daily oral PrEP (PrEP) +@dataElement: HIV.C.DE12 - Daily oral PrEP @activity: HIV.C3 Capture or update client history @description: Pre-exposure prophylaxis (PrEP) is taken every day */ // TODO: Replace placeholder with relevant CQL logic -define "Daily oral PrEP (PrEP)": - exists "Daily oral PrEP (PrEP) Condition" - or exists "Daily oral PrEP (PrEP) Observation" -define "Daily oral PrEP (PrEP) Condition": - Elements."Daily oral PrEP (PrEP) Condition" C +define "Daily oral PrEP": + exists "Daily oral PrEP Condition" + or exists "Daily oral PrEP Observation" +define "Daily oral PrEP Condition": + Elements."Daily oral PrEP Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Daily oral PrEP (PrEP) Observation": - Elements."Daily oral PrEP (PrEP) Observation" O +define "Daily oral PrEP Observation": + Elements."Daily oral PrEP Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Daily oral PrEP (PrEP) */ +/* End of Daily oral PrEP */ /* -@dataElement: HIV.C.DE13 - Event-driven PrEP 2+1+1 (PrEP) +@dataElement: HIV.C.DE13 - Event-driven PrEP 2+1+1 @activity: HIV.C3 Capture or update client history @description: Event-driven pre-exposure prophylaxis (PrEP) is taken on an even-driven basis (2+1+1) */ // TODO: Replace placeholder with relevant CQL logic -define "Event-driven PrEP 2+1+1 (PrEP)": - exists "Event-driven PrEP 2+1+1 (PrEP) Condition" - or exists "Event-driven PrEP 2+1+1 (PrEP) Observation" -define "Event-driven PrEP 2+1+1 (PrEP) Condition": - Elements."Event-driven PrEP 2+1+1 (PrEP) Condition" C +define "Event-driven PrEP 2+1+1": + exists "Event-driven PrEP 2+1+1 Condition" + or exists "Event-driven PrEP 2+1+1 Observation" +define "Event-driven PrEP 2+1+1 Condition": + Elements."Event-driven PrEP 2+1+1 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Event-driven PrEP 2+1+1 (PrEP) Observation": - Elements."Event-driven PrEP 2+1+1 (PrEP) Observation" O +define "Event-driven PrEP 2+1+1 Observation": + Elements."Event-driven PrEP 2+1+1 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Event-driven PrEP 2+1+1 (PrEP) */ +/* End of Event-driven PrEP 2+1+1 */ /* -@dataElement: HIV.C.DE14 - Other PrEP dosing type (PrEP) +@dataElement: HIV.C.DE14 - Other PrEP dosing type @activity: HIV.C3 Capture or update client history @description: Other PrEP dosing type */ // TODO: Replace placeholder with relevant CQL logic -define "Other PrEP dosing type (PrEP)": - exists "Other PrEP dosing type (PrEP) Condition" - or exists "Other PrEP dosing type (PrEP) Observation" -define "Other PrEP dosing type (PrEP) Condition": - Elements."Other PrEP dosing type (PrEP) Condition" C +define "Other PrEP dosing type": + exists "Other PrEP dosing type Condition" + or exists "Other PrEP dosing type Observation" +define "Other PrEP dosing type Condition": + Elements."Other PrEP dosing type Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Other PrEP dosing type (PrEP) Observation": - Elements."Other PrEP dosing type (PrEP) Observation" O +define "Other PrEP dosing type Observation": + Elements."Other PrEP dosing type Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Other PrEP dosing type (PrEP) */ +/* End of Other PrEP dosing type */ /* -@dataElement: HIV.C.DE24 - Experience with PrEP (PrEP) +@dataElement: HIV.C.DE24 - Experience with PrEP @activity: HIV.C3 Capture or update client history @description: The client's experience in taking PrEP */ // TODO: Replace placeholder with relevant CQL logic -define "Experience with PrEP (PrEP)": - exists "Experience with PrEP (PrEP) Observation" -define "Experience with PrEP (PrEP) Observation": - Elements."Experience with PrEP (PrEP) Observation" O +define "Experience with PrEP": + exists "Experience with PrEP Observation" +define "Experience with PrEP Observation": + Elements."Experience with PrEP Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Experience with PrEP (PrEP) */ +/* End of Experience with PrEP */ /* -@dataElement: HIV.C.DE25 - First-time user (PrEP|CDE25) +@dataElement: HIV.C.DE25 - First-time user @activity: HIV.C3 Capture or update client history @description: The client has never used pre-exposure prophylaxis (PrEP) before (naive) */ // TODO: Replace placeholder with relevant CQL logic -define "First-time user (PrEP|CDE25)": - exists "First-time user (PrEP|CDE25) Condition" - or exists "First-time user (PrEP|CDE25) Observation" -define "First-time user (PrEP|CDE25) Condition": - Elements."First-time user (PrEP|CDE25) Condition" C +define "First-time user C.DE25": + exists "First-time user C.DE25 Condition" + or exists "First-time user C.DE25 Observation" +define "First-time user C.DE25 Condition": + Elements."First-time user C.DE25 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "First-time user (PrEP|CDE25) Observation": - Elements."First-time user (PrEP|CDE25) Observation" O +define "First-time user C.DE25 Observation": + Elements."First-time user C.DE25 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of First-time user (PrEP|CDE25) */ +/* End of First-time user C.DE25 */ /* -@dataElement: HIV.C.DE26 - Continuing user (PrEP) +@dataElement: HIV.C.DE26 - Continuing user @activity: HIV.C3 Capture or update client history @description: The client has used PrEP before and is continuing to use PrEP */ // TODO: Replace placeholder with relevant CQL logic -define "Continuing user (PrEP)": - exists "Continuing user (PrEP) Condition" - or exists "Continuing user (PrEP) Observation" -define "Continuing user (PrEP) Condition": - Elements."Continuing user (PrEP) Condition" C +define "Continuing user": + exists "Continuing user Condition" + or exists "Continuing user Observation" +define "Continuing user Condition": + Elements."Continuing user Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Continuing user (PrEP) Observation": - Elements."Continuing user (PrEP) Observation" O +define "Continuing user Observation": + Elements."Continuing user Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Continuing user (PrEP) */ +/* End of Continuing user */ /* -@dataElement: HIV.C.DE27 - Restarting following a period of not taking PrEP (PrEP) +@dataElement: HIV.C.DE27 - Restarting following a period of not taking PrEP @activity: HIV.C3 Capture or update client history @description: The client is restarting PrEP following a period of not taking PrEP */ // TODO: Replace placeholder with relevant CQL logic -define "Restarting following a period of not taking PrEP (PrEP)": - exists "Restarting following a period of not taking PrEP (PrEP) Condition" - or exists "Restarting following a period of not taking PrEP (PrEP) Observation" -define "Restarting following a period of not taking PrEP (PrEP) Condition": - Elements."Restarting following a period of not taking PrEP (PrEP) Condition" C +define "Restarting following a period of not taking PrEP": + exists "Restarting following a period of not taking PrEP Condition" + or exists "Restarting following a period of not taking PrEP Observation" +define "Restarting following a period of not taking PrEP Condition": + Elements."Restarting following a period of not taking PrEP Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Restarting following a period of not taking PrEP (PrEP) Observation": - Elements."Restarting following a period of not taking PrEP (PrEP) Observation" O +define "Restarting following a period of not taking PrEP Observation": + Elements."Restarting following a period of not taking PrEP Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Restarting following a period of not taking PrEP (PrEP) */ +/* End of Restarting following a period of not taking PrEP */ /* -@dataElement: HIV.C.DE35 - Date client completes PEP course (PrEP) +@dataElement: HIV.C.DE35 - Date client completes PEP course @activity: HIV.C3 Capture or update client history @description: Date client completes PEP course */ // TODO: Replace placeholder with relevant CQL logic -define "Date client completes PEP course (PrEP)": - Elements."Date client completes PEP course (PrEP)" O +define "Date client completes PEP course": + Elements."Date client completes PEP course" O where O.effective.toInterval() during "Measurement Period" -define "Date client completes PEP course (PrEP) Value": - "Date client completes PEP course (PrEP)" O +define "Date client completes PEP course Value": + "Date client completes PEP course" O return O.value -/* End of Date client completes PEP course (PrEP) */ +/* End of Date client completes PEP course */ /* -@dataElement: HIV.C.DE74 - Date medications prescribed (PrEP) +@dataElement: HIV.C.DE74 - Date medications prescribed @activity: HIV.C23 Prescribe or administer PrEP or PEP @description: Date the client was prescribed medications */ // TODO: Replace placeholder with relevant CQL logic -define "Date medications prescribed (PrEP)": - Elements."Date medications prescribed (PrEP)" O +define "Date medications prescribed C.DE74": + Elements."Date medications prescribed C.DE74" O where O.effective.toInterval() during "Measurement Period" -define "Date medications prescribed (PrEP) Value": - "Date medications prescribed (PrEP)" O +define "Date medications prescribed C.DE74 Value": + "Date medications prescribed C.DE74" O return O.value -/* End of Date medications prescribed (PrEP) */ +/* End of Date medications prescribed C.DE74 */ /* -@dataElement: HIV.C.DE75 - Medications prescribed (PrEP) +@dataElement: HIV.C.DE75 - Medications prescribed @activity: HIV.C23 Prescribe or administer PrEP or PEP @description: Medications the client was prescribed */ // TODO: Replace placeholder with relevant CQL logic -define "Medications prescribed (PrEP)": - exists "Medications prescribed (PrEP) Observation" -define "Medications prescribed (PrEP) Observation": - Elements."Medications prescribed (PrEP) Observation" O +define "Medications prescribed C.DE75": + exists "Medications prescribed C.DE75 Observation" +define "Medications prescribed C.DE75 Observation": + Elements."Medications prescribed C.DE75 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Medications prescribed (PrEP) */ +/* End of Medications prescribed C.DE75 */ /* -@dataElement: HIV.C.DE76 - PrEP for HIV prevention (PrEP) +@dataElement: HIV.C.DE76 - PrEP for HIV prevention @activity: HIV.C23 Prescribe or administer PrEP or PEP @description: Client was prescribed pre-exposure prophylaxis (PrEP) for HIV prevention */ // TODO: Replace placeholder with relevant CQL logic -define "PrEP for HIV prevention (PrEP)": - exists "PrEP for HIV prevention (PrEP) Condition" - or exists "PrEP for HIV prevention (PrEP) Observation" -define "PrEP for HIV prevention (PrEP) Condition": - Elements."PrEP for HIV prevention (PrEP) Condition" C +define "PrEP for HIV prevention": + exists "PrEP for HIV prevention Condition" + or exists "PrEP for HIV prevention Observation" +define "PrEP for HIV prevention Condition": + Elements."PrEP for HIV prevention Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "PrEP for HIV prevention (PrEP) Observation": - Elements."PrEP for HIV prevention (PrEP) Observation" O +define "PrEP for HIV prevention Observation": + Elements."PrEP for HIV prevention Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of PrEP for HIV prevention (PrEP) */ +/* End of PrEP for HIV prevention */ /* -@dataElement: HIV.C.DE77 - PEP for HIV prevention (PrEP) +@dataElement: HIV.C.DE77 - PEP for HIV prevention @activity: HIV.C23 Prescribe or administer PrEP or PEP @description: Client was prescribed post-exposure prophylaxis (PEP) for HIV prevention */ // TODO: Replace placeholder with relevant CQL logic -define "PEP for HIV prevention (PrEP)": - exists "PEP for HIV prevention (PrEP) Condition" - or exists "PEP for HIV prevention (PrEP) Observation" -define "PEP for HIV prevention (PrEP) Condition": - Elements."PEP for HIV prevention (PrEP) Condition" C +define "PEP for HIV prevention": + exists "PEP for HIV prevention Condition" + or exists "PEP for HIV prevention Observation" +define "PEP for HIV prevention Condition": + Elements."PEP for HIV prevention Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "PEP for HIV prevention (PrEP) Observation": - Elements."PEP for HIV prevention (PrEP) Observation" O +define "PEP for HIV prevention Observation": + Elements."PEP for HIV prevention Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of PEP for HIV prevention (PrEP) */ +/* End of PEP for HIV prevention */ /* -@dataElement: HIV.C.DE78 - Other (PrEP|CDE78) +@dataElement: HIV.C.DE78 - Other @activity: HIV.C23 Prescribe or administer PrEP or PEP @description: Client was prescribed other medications */ // TODO: Replace placeholder with relevant CQL logic -define "Other (PrEP|CDE78)": - exists "Other (PrEP|CDE78) Condition" - or exists "Other (PrEP|CDE78) Observation" -define "Other (PrEP|CDE78) Condition": - Elements."Other (PrEP|CDE78) Condition" C +define "Other C.DE78": + exists "Other C.DE78 Condition" + or exists "Other C.DE78 Observation" +define "Other C.DE78 Condition": + Elements."Other C.DE78 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Other (PrEP|CDE78) Observation": - Elements."Other (PrEP|CDE78) Observation" O +define "Other C.DE78 Observation": + Elements."Other C.DE78 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Other (PrEP|CDE78) */ +/* End of Other C.DE78 */ /* -@dataElement: HIV.C.DE80 - PrEP product prescribed (PrEP) +@dataElement: HIV.C.DE80 - PrEP product prescribed @activity: HIV.C23 Prescribe or administer PrEP or PEP @description: PrEP product that the client was prescribed */ // TODO: Replace placeholder with relevant CQL logic -define "PrEP product prescribed (PrEP)": - exists "PrEP product prescribed (PrEP) Observation" -define "PrEP product prescribed (PrEP) Observation": - Elements."PrEP product prescribed (PrEP) Observation" O +define "PrEP product prescribed": + exists "PrEP product prescribed Observation" +define "PrEP product prescribed Observation": + Elements."PrEP product prescribed Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of PrEP product prescribed (PrEP) */ +/* End of PrEP product prescribed */ /* -@dataElement: HIV.C.DE81 - Oral PrEP (PrEP) +@dataElement: HIV.C.DE81 - Oral PrEP @activity: HIV.C23 Prescribe or administer PrEP or PEP @description: Client was prescribed oral PrEP */ // TODO: Replace placeholder with relevant CQL logic -define "Oral PrEP (PrEP)": - exists "Oral PrEP (PrEP) Condition" - or exists "Oral PrEP (PrEP) Observation" -define "Oral PrEP (PrEP) Condition": - Elements."Oral PrEP (PrEP) Condition" C +define "Oral PrEP": + exists "Oral PrEP Condition" + or exists "Oral PrEP Observation" +define "Oral PrEP Condition": + Elements."Oral PrEP Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Oral PrEP (PrEP) Observation": - Elements."Oral PrEP (PrEP) Observation" O +define "Oral PrEP Observation": + Elements."Oral PrEP Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Oral PrEP (PrEP) */ +/* End of Oral PrEP */ /* -@dataElement: HIV.C.DE82 - Dapivirine vaginal ring DVR (PrEP|CDE82) +@dataElement: HIV.C.DE82 - Dapivirine vaginal ring DVR @activity: HIV.C23 Prescribe or administer PrEP or PEP @description: Client was prescribed dapivirine vaginal ring (DVR) */ // TODO: Replace placeholder with relevant CQL logic -define "Dapivirine vaginal ring DVR (PrEP|CDE82)": - exists "Dapivirine vaginal ring DVR (PrEP|CDE82) Condition" - or exists "Dapivirine vaginal ring DVR (PrEP|CDE82) Observation" -define "Dapivirine vaginal ring DVR (PrEP|CDE82) Condition": - Elements."Dapivirine vaginal ring DVR (PrEP|CDE82) Condition" C +define "Dapivirine vaginal ring DVR C.DE82": + exists "Dapivirine vaginal ring DVR C.DE82 Condition" + or exists "Dapivirine vaginal ring DVR C.DE82 Observation" +define "Dapivirine vaginal ring DVR C.DE82 Condition": + Elements."Dapivirine vaginal ring DVR C.DE82 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Dapivirine vaginal ring DVR (PrEP|CDE82) Observation": - Elements."Dapivirine vaginal ring DVR (PrEP|CDE82) Observation" O +define "Dapivirine vaginal ring DVR C.DE82 Observation": + Elements."Dapivirine vaginal ring DVR C.DE82 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Dapivirine vaginal ring DVR (PrEP|CDE82) */ +/* End of Dapivirine vaginal ring DVR C.DE82 */ /* -@dataElement: HIV.C.DE83 - CAB-LA (PrEP|CDE83) +@dataElement: HIV.C.DE83 - CAB-LA @activity: HIV.C23 Prescribe or administer PrEP or PEP @description: Client was prescribed long-acting cabotegravir (CAB-LA) */ // TODO: Replace placeholder with relevant CQL logic -define "CAB-LA (PrEP|CDE83)": - exists "CAB-LA (PrEP|CDE83) Condition" - or exists "CAB-LA (PrEP|CDE83) Observation" -define "CAB-LA (PrEP|CDE83) Condition": - Elements."CAB-LA (PrEP|CDE83) Condition" C +define "CAB-LA C.DE83": + exists "CAB-LA C.DE83 Condition" + or exists "CAB-LA C.DE83 Observation" +define "CAB-LA C.DE83 Condition": + Elements."CAB-LA C.DE83 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "CAB-LA (PrEP|CDE83) Observation": - Elements."CAB-LA (PrEP|CDE83) Observation" O +define "CAB-LA C.DE83 Observation": + Elements."CAB-LA C.DE83 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of CAB-LA (PrEP|CDE83) */ +/* End of CAB-LA C.DE83 */ /* -@dataElement: HIV.C.DE84 - Other (PrEP|CDE84) +@dataElement: HIV.C.DE84 - Other @activity: HIV.C23 Prescribe or administer PrEP or PEP @description: Client was prescribed other PrEP product */ // TODO: Replace placeholder with relevant CQL logic -define "Other (PrEP|CDE84)": - exists "Other (PrEP|CDE84) Condition" - or exists "Other (PrEP|CDE84) Observation" -define "Other (PrEP|CDE84) Condition": - Elements."Other (PrEP|CDE84) Condition" C +define "Other C.DE84": + exists "Other C.DE84 Condition" + or exists "Other C.DE84 Observation" +define "Other C.DE84 Condition": + Elements."Other C.DE84 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Other (PrEP|CDE84) Observation": - Elements."Other (PrEP|CDE84) Observation" O +define "Other C.DE84 Observation": + Elements."Other C.DE84 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Other (PrEP|CDE84) */ +/* End of Other C.DE84 */ /* -@dataElement: HIV.C.DE121 - Number of days prescribed (PrEP) +@dataElement: HIV.C.DE121 - Number of days prescribed @activity: HIV.C23 Prescribe or administer PrEP or PEP @description: Days of medication client has been prescribed */ // TODO: Replace placeholder with relevant CQL logic -define "Number of days prescribed (PrEP)": - Elements."Number of days prescribed (PrEP)" O +define "Number of days prescribed C.DE121": + Elements."Number of days prescribed C.DE121" O where O.effective.toInterval() during "Measurement Period" -define "Number of days prescribed (PrEP) Value": - "Number of days prescribed (PrEP)" O +define "Number of days prescribed C.DE121 Value": + "Number of days prescribed C.DE121" O return O.value -/* End of Number of days prescribed (PrEP) */ +/* End of Number of days prescribed C.DE121 */ /* -@dataElement: HIV.C.DE138 - Condom type (PrEP) +@dataElement: HIV.C.DE138 - Condom type @activity: HIV.C10 Counsel on risk and prevention @description: Type of condom provided to client */ // TODO: Replace placeholder with relevant CQL logic -define "Condom type (PrEP)": - exists "Condom type (PrEP) Observation" -define "Condom type (PrEP) Observation": - Elements."Condom type (PrEP) Observation" O +define "Condom type": + exists "Condom type Observation" +define "Condom type Observation": + Elements."Condom type Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Condom type (PrEP) */ +/* End of Condom type */ /* -@dataElement: HIV.C.DE139 - Male condom (PrEP) +@dataElement: HIV.C.DE139 - Male condom @activity: HIV.C10 Counsel on risk and prevention @description: Male condoms were provided to the client */ // TODO: Replace placeholder with relevant CQL logic -define "Male condom (PrEP)": - exists "Male condom (PrEP) Condition" - or exists "Male condom (PrEP) Observation" -define "Male condom (PrEP) Condition": - Elements."Male condom (PrEP) Condition" C +define "Male condom": + exists "Male condom Condition" + or exists "Male condom Observation" +define "Male condom Condition": + Elements."Male condom Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Male condom (PrEP) Observation": - Elements."Male condom (PrEP) Observation" O +define "Male condom Observation": + Elements."Male condom Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Male condom (PrEP) */ +/* End of Male condom */ /* -@dataElement: HIV.C.DE140 - Female condom (PrEP) +@dataElement: HIV.C.DE140 - Female condom @activity: HIV.C10 Counsel on risk and prevention @description: Female condoms were provided to the client */ // TODO: Replace placeholder with relevant CQL logic -define "Female condom (PrEP)": - exists "Female condom (PrEP) Condition" - or exists "Female condom (PrEP) Observation" -define "Female condom (PrEP) Condition": - Elements."Female condom (PrEP) Condition" C +define "Female condom": + exists "Female condom Condition" + or exists "Female condom Observation" +define "Female condom Condition": + Elements."Female condom Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Female condom (PrEP) Observation": - Elements."Female condom (PrEP) Observation" O +define "Female condom Observation": + Elements."Female condom Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Female condom (PrEP) */ +/* End of Female condom */ /* -@dataElement: HIV.C.DE142 - Number of HIV self-test kits distributed (PrEP) +@dataElement: HIV.C.DE142 - Number of HIV self-test kits distributed @activity: HIV.C10 Counsel on risk and prevention @description: Number of HIV self-test kits distributed to the client */ // TODO: Replace placeholder with relevant CQL logic -define "Number of HIV self-test kits distributed (PrEP)": - Elements."Number of HIV self-test kits distributed (PrEP)" O +define "Number of HIV self-test kits distributed": + Elements."Number of HIV self-test kits distributed" O where O.effective.toInterval() during "Measurement Period" -define "Number of HIV self-test kits distributed (PrEP) Value": - "Number of HIV self-test kits distributed (PrEP)" O +define "Number of HIV self-test kits distributed Value": + "Number of HIV self-test kits distributed" O return O.value -/* End of Number of HIV self-test kits distributed (PrEP) */ +/* End of Number of HIV self-test kits distributed */ /* -@dataElement: HIV.C.DE143 - HIV self-test distributed for use by (PrEP) +@dataElement: HIV.C.DE143 - HIV self-test distributed for use by @activity: HIV.C10 Counsel on risk and prevention @description: Whom the client plans to give the HIV self-test kit (self, sexual partner, social contact, etc.) */ // TODO: Replace placeholder with relevant CQL logic -define "HIV self-test distributed for use by (PrEP)": - exists "HIV self-test distributed for use by (PrEP) Observation" -define "HIV self-test distributed for use by (PrEP) Observation": - Elements."HIV self-test distributed for use by (PrEP) Observation" O +define "HIV self-test distributed for use by": + exists "HIV self-test distributed for use by Observation" +define "HIV self-test distributed for use by Observation": + Elements."HIV self-test distributed for use by Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of HIV self-test distributed for use by (PrEP) */ +/* End of HIV self-test distributed for use by */ /* -@dataElement: HIV.C.DE144 - Self (PrEP) +@dataElement: HIV.C.DE144 - Self @activity: HIV.C10 Counsel on risk and prevention @description: Client plans to use the self-test kit */ // TODO: Replace placeholder with relevant CQL logic -define "Self (PrEP)": - exists "Self (PrEP) Condition" - or exists "Self (PrEP) Observation" -define "Self (PrEP) Condition": - Elements."Self (PrEP) Condition" C +define "Self": + exists "Self Condition" + or exists "Self Observation" +define "Self Condition": + Elements."Self Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Self (PrEP) Observation": - Elements."Self (PrEP) Observation" O +define "Self Observation": + Elements."Self Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Self (PrEP) */ +/* End of Self */ /* -@dataElement: HIV.C.DE145 - Family member (PrEP) +@dataElement: HIV.C.DE145 - Family member @activity: HIV.C10 Counsel on risk and prevention @description: Client plans to give the self-test kit to a family member to use */ // TODO: Replace placeholder with relevant CQL logic -define "Family member (PrEP)": - exists "Family member (PrEP) Condition" - or exists "Family member (PrEP) Observation" -define "Family member (PrEP) Condition": - Elements."Family member (PrEP) Condition" C +define "Family member": + exists "Family member Condition" + or exists "Family member Observation" +define "Family member Condition": + Elements."Family member Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Family member (PrEP) Observation": - Elements."Family member (PrEP) Observation" O +define "Family member Observation": + Elements."Family member Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Family member (PrEP) */ +/* End of Family member */ /* -@dataElement: HIV.C.DE146 - Drug-injecting partner (PrEP) +@dataElement: HIV.C.DE146 - Drug-injecting partner @activity: HIV.C10 Counsel on risk and prevention @description: Client plans to give the self-test kit to a drug-injecting partner */ // TODO: Replace placeholder with relevant CQL logic -define "Drug-injecting partner (PrEP)": - exists "Drug-injecting partner (PrEP) Condition" - or exists "Drug-injecting partner (PrEP) Observation" -define "Drug-injecting partner (PrEP) Condition": - Elements."Drug-injecting partner (PrEP) Condition" C +define "Drug-injecting partner C.DE146": + exists "Drug-injecting partner C.DE146 Condition" + or exists "Drug-injecting partner C.DE146 Observation" +define "Drug-injecting partner C.DE146 Condition": + Elements."Drug-injecting partner C.DE146 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Drug-injecting partner (PrEP) Observation": - Elements."Drug-injecting partner (PrEP) Observation" O +define "Drug-injecting partner C.DE146 Observation": + Elements."Drug-injecting partner C.DE146 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Drug-injecting partner (PrEP) */ +/* End of Drug-injecting partner C.DE146 */ /* -@dataElement: HIV.C.DE147 - Sexual partner (PrEP) +@dataElement: HIV.C.DE147 - Sexual partner @activity: HIV.C10 Counsel on risk and prevention @description: Client plans to give the self-test kit to a sexual partner */ // TODO: Replace placeholder with relevant CQL logic -define "Sexual partner (PrEP)": - exists "Sexual partner (PrEP) Condition" - or exists "Sexual partner (PrEP) Observation" -define "Sexual partner (PrEP) Condition": - Elements."Sexual partner (PrEP) Condition" C +define "Sexual partner C.DE147": + exists "Sexual partner C.DE147 Condition" + or exists "Sexual partner C.DE147 Observation" +define "Sexual partner C.DE147 Condition": + Elements."Sexual partner C.DE147 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Sexual partner (PrEP) Observation": - Elements."Sexual partner (PrEP) Observation" O +define "Sexual partner C.DE147 Observation": + Elements."Sexual partner C.DE147 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Sexual partner (PrEP) */ +/* End of Sexual partner C.DE147 */ /* -@dataElement: HIV.C.DE148 - Social contact (PrEP) +@dataElement: HIV.C.DE148 - Social contact @activity: HIV.C10 Counsel on risk and prevention @description: Client plans to give the self-test kit to a social contact */ // TODO: Replace placeholder with relevant CQL logic -define "Social contact (PrEP)": - exists "Social contact (PrEP) Condition" - or exists "Social contact (PrEP) Observation" -define "Social contact (PrEP) Condition": - Elements."Social contact (PrEP) Condition" C +define "Social contact C.DE148": + exists "Social contact C.DE148 Condition" + or exists "Social contact C.DE148 Observation" +define "Social contact C.DE148 Condition": + Elements."Social contact C.DE148 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Social contact (PrEP) Observation": - Elements."Social contact (PrEP) Observation" O +define "Social contact C.DE148 Observation": + Elements."Social contact C.DE148 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Social contact (PrEP) */ +/* End of Social contact C.DE148 */ /* -@dataElement: HIV.D.DE32 - Breastfeeding (Care) +@dataElement: HIV.D.DE32 - Breastfeeding @activity: HIV.D8 Capture or update client history @description: Client is giving infant breast milk */ // TODO: Replace placeholder with relevant CQL logic -define "Breastfeeding (Care)": - exists "Breastfeeding (Care) Observation" -define "Breastfeeding (Care) Observation": - Elements."Breastfeeding (Care) Observation" O +define "Breastfeeding D.DE32": + exists "Breastfeeding D.DE32 Observation" +define "Breastfeeding D.DE32 Observation": + Elements."Breastfeeding D.DE32 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Breastfeeding (Care) */ +/* End of Breastfeeding D.DE32 */ /* -@dataElement: HIV.D.DE41 - Date ART stopped (Care) +@dataElement: HIV.D.DE41 - Date ART stopped @activity: HIV.D8 Capture or update client history @description: Date on which client stopped ART */ // TODO: Replace placeholder with relevant CQL logic -define "Date ART stopped (Care)": - Elements."Date ART stopped (Care)" O +define "Date ART stopped D.DE41": + Elements."Date ART stopped D.DE41" O where O.effective.toInterval() during "Measurement Period" -define "Date ART stopped (Care) Value": - "Date ART stopped (Care)" O +define "Date ART stopped D.DE41 Value": + "Date ART stopped D.DE41" O return O.value -/* End of Date ART stopped (Care) */ +/* End of Date ART stopped D.DE41 */ /* -@dataElement: HIV.D.DE161 - HBsAg test date (Care) +@dataElement: HIV.D.DE161 - HBsAg test date @activity: HIV.D12 Determine recommended screenings and tests @description: Date client was tested for hepatitis B virus (HBV) */ // TODO: Replace placeholder with relevant CQL logic -define "HBsAg test date (Care)": - Elements."HBsAg test date (Care)" O +define "HBsAg test date D.DE161": + Elements."HBsAg test date D.DE161" O where O.effective.toInterval() during "Measurement Period" -define "HBsAg test date (Care) Value": - "HBsAg test date (Care)" O +define "HBsAg test date D.DE161 Value": + "HBsAg test date D.DE161" O return O.value -/* End of HBsAg test date (Care) */ +/* End of HBsAg test date D.DE161 */ /* -@dataElement: HIV.D.DE167 - HBV treatment TDF start date (Care) +@dataElement: HIV.D.DE167 - HBV treatment TDF start date @activity: HIV.D12 Determine recommended screenings and tests @description: Date when client started treatment (TDF) for hepatitis B virus (HBV) */ // TODO: Replace placeholder with relevant CQL logic -define "HBV treatment TDF start date (Care)": - Elements."HBV treatment TDF start date (Care)" O +define "HBV treatment TDF start date": + Elements."HBV treatment TDF start date" O where O.effective.toInterval() during "Measurement Period" -define "HBV treatment TDF start date (Care) Value": - "HBV treatment TDF start date (Care)" O +define "HBV treatment TDF start date Value": + "HBV treatment TDF start date" O return O.value -/* End of HBV treatment TDF start date (Care) */ +/* End of HBV treatment TDF start date */ /* -@dataElement: HIV.D.DE169 - HCV test date (Care) +@dataElement: HIV.D.DE169 - HCV test date @activity: HIV.D12 Determine recommended screenings and tests @description: Date client was tested for hepatitis C virus (HCV antibody, HCV RNA or HCV core antigen) */ // TODO: Replace placeholder with relevant CQL logic -define "HCV test date (Care)": - Elements."HCV test date (Care)" O +define "HCV test date D.DE169": + Elements."HCV test date D.DE169" O where O.effective.toInterval() during "Measurement Period" -define "HCV test date (Care) Value": - "HCV test date (Care)" O +define "HCV test date D.DE169 Value": + "HCV test date D.DE169" O return O.value -/* End of HCV test date (Care) */ +/* End of HCV test date D.DE169 */ /* -@dataElement: HIV.D.DE175 - HCV treatment start date (Care) +@dataElement: HIV.D.DE175 - HCV treatment start date @activity: HIV.D12 Determine recommended screenings and tests @description: Date when client started treatment for hepatitis C virus (HCV) */ // TODO: Replace placeholder with relevant CQL logic -define "HCV treatment start date (Care)": - Elements."HCV treatment start date (Care)" O +define "HCV treatment start date": + Elements."HCV treatment start date" O where O.effective.toInterval() during "Measurement Period" -define "HCV treatment start date (Care) Value": - "HCV treatment start date (Care)" O +define "HCV treatment start date Value": + "HCV treatment start date" O return O.value -/* End of HCV treatment start date (Care) */ +/* End of HCV treatment start date */ /* -@dataElement: HIV.D.DE176 - HCV treatment completion date (Care) +@dataElement: HIV.D.DE176 - HCV treatment completion date @activity: HIV.D12 Determine recommended screenings and tests @description: Date when client completed treatment for hepatitis C virus (HCV) */ // TODO: Replace placeholder with relevant CQL logic -define "HCV treatment completion date (Care)": - Elements."HCV treatment completion date (Care)" O +define "HCV treatment completion date": + Elements."HCV treatment completion date" O where O.effective.toInterval() during "Measurement Period" -define "HCV treatment completion date (Care) Value": - "HCV treatment completion date (Care)" O +define "HCV treatment completion date Value": + "HCV treatment completion date" O return O.value -/* End of HCV treatment completion date (Care) */ +/* End of HCV treatment completion date */ /* -@dataElement: HIV.D.DE178 - HCV viral load test date (Care) +@dataElement: HIV.D.DE178 - HCV viral load test date @activity: HIV.D12 Determine recommended screenings and tests @description: Hepatitis C viral load test date */ // TODO: Replace placeholder with relevant CQL logic -define "HCV viral load test date (Care)": - Elements."HCV viral load test date (Care)" O +define "HCV viral load test date D.DE178": + Elements."HCV viral load test date D.DE178" O where O.effective.toInterval() during "Measurement Period" -define "HCV viral load test date (Care) Value": - "HCV viral load test date (Care)" O +define "HCV viral load test date D.DE178 Value": + "HCV viral load test date D.DE178" O return O.value -/* End of HCV viral load test date (Care) */ +/* End of HCV viral load test date D.DE178 */ /* -@dataElement: HIV.D.DE179 - HCV viral load test result (Care) +@dataElement: HIV.D.DE179 - HCV viral load test result @activity: HIV.D12 Determine recommended screenings and tests @description: Hepatitis C viral load test result (qualitative) */ // TODO: Replace placeholder with relevant CQL logic -define "HCV viral load test result (Care)": - exists "HCV viral load test result (Care) Observation" -define "HCV viral load test result (Care) Observation": - Elements."HCV viral load test result (Care) Observation" O +define "HCV viral load test result D.DE179": + exists "HCV viral load test result D.DE179 Observation" +define "HCV viral load test result D.DE179 Observation": + Elements."HCV viral load test result D.DE179 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of HCV viral load test result (Care) */ +/* End of HCV viral load test result D.DE179 */ /* -@dataElement: HIV.D.DE180 - Detected (Care) +@dataElement: HIV.D.DE180 - Detected @activity: HIV.D12 Determine recommended screenings and tests @description: HCV was detected */ // TODO: Replace placeholder with relevant CQL logic -define "Detected (Care)": - exists "Detected (Care) Condition" - or exists "Detected (Care) Observation" -define "Detected (Care) Condition": - Elements."Detected (Care) Condition" C +define "Detected D.DE180": + exists "Detected D.DE180 Condition" + or exists "Detected D.DE180 Observation" +define "Detected D.DE180 Condition": + Elements."Detected D.DE180 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Detected (Care) Observation": - Elements."Detected (Care) Observation" O +define "Detected D.DE180 Observation": + Elements."Detected D.DE180 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Detected (Care) */ +/* End of Detected D.DE180 */ /* -@dataElement: HIV.D.DE181 - Not detected (Care) +@dataElement: HIV.D.DE181 - Not detected @activity: HIV.D12 Determine recommended screenings and tests @description: HCV was not detected */ // TODO: Replace placeholder with relevant CQL logic -define "Not detected (Care)": - exists "Not detected (Care) Condition" - or exists "Not detected (Care) Observation" -define "Not detected (Care) Condition": - Elements."Not detected (Care) Condition" C +define "Not detected D.DE181": + exists "Not detected D.DE181 Condition" + or exists "Not detected D.DE181 Observation" +define "Not detected D.DE181 Condition": + Elements."Not detected D.DE181 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Not detected (Care) Observation": - Elements."Not detected (Care) Observation" O +define "Not detected D.DE181 Observation": + Elements."Not detected D.DE181 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Not detected (Care) */ +/* End of Not detected D.DE181 */ /* -@dataElement: HIV.D.DE182 - HCV medicine type (Care) +@dataElement: HIV.D.DE182 - HCV medicine type @activity: HIV.D12 Determine recommended screenings and tests @description: Type of medicine client is prescribed */ // TODO: Replace placeholder with relevant CQL logic -define "HCV medicine type (Care)": - exists "HCV medicine type (Care) Observation" -define "HCV medicine type (Care) Observation": - Elements."HCV medicine type (Care) Observation" O +define "HCV medicine type": + exists "HCV medicine type Observation" +define "HCV medicine type Observation": + Elements."HCV medicine type Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of HCV medicine type (Care) */ +/* End of HCV medicine type */ /* -@dataElement: HIV.D.DE183 - Interferon (Care) +@dataElement: HIV.D.DE183 - Interferon @activity: HIV.D12 Determine recommended screenings and tests @description: Client is prescribed interferon */ // TODO: Replace placeholder with relevant CQL logic -define "Interferon (Care)": - exists "Interferon (Care) Condition" - or exists "Interferon (Care) Observation" -define "Interferon (Care) Condition": - Elements."Interferon (Care) Condition" C +define "Interferon": + exists "Interferon Condition" + or exists "Interferon Observation" +define "Interferon Condition": + Elements."Interferon Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Interferon (Care) Observation": - Elements."Interferon (Care) Observation" O +define "Interferon Observation": + Elements."Interferon Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Interferon (Care) */ +/* End of Interferon */ /* -@dataElement: HIV.D.DE184 - Direct acting antivirals (Care) +@dataElement: HIV.D.DE184 - Direct acting antivirals @activity: HIV.D12 Determine recommended screenings and tests @description: Client is prescribed direct acting antivirals */ // TODO: Replace placeholder with relevant CQL logic -define "Direct acting antivirals (Care)": - exists "Direct acting antivirals (Care) Condition" - or exists "Direct acting antivirals (Care) Observation" -define "Direct acting antivirals (Care) Condition": - Elements."Direct acting antivirals (Care) Condition" C +define "Direct acting antivirals": + exists "Direct acting antivirals Condition" + or exists "Direct acting antivirals Observation" +define "Direct acting antivirals Condition": + Elements."Direct acting antivirals Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Direct acting antivirals (Care) Observation": - Elements."Direct acting antivirals (Care) Observation" O +define "Direct acting antivirals Observation": + Elements."Direct acting antivirals Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Direct acting antivirals (Care) */ +/* End of Direct acting antivirals */ /* -@dataElement: HIV.D.DE185 - Currently on TDF-based ART (Care) +@dataElement: HIV.D.DE185 - Currently on TDF-based ART @activity: HIV.D12 Determine recommended screenings and tests @description: Client is currently on TDF-based ART regimen */ // TODO: Replace placeholder with relevant CQL logic -define "Currently on TDF-based ART (Care)": - exists "Currently on TDF-based ART (Care) Observation" -define "Currently on TDF-based ART (Care) Observation": - Elements."Currently on TDF-based ART (Care) Observation" O +define "Currently on TDF-based ART": + exists "Currently on TDF-based ART Observation" +define "Currently on TDF-based ART Observation": + Elements."Currently on TDF-based ART Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Currently on TDF-based ART (Care) */ +/* End of Currently on TDF-based ART */ /* -@dataElement: HIV.D.DE193 - Date viral load test results received by client (Care|DDE193) +@dataElement: HIV.D.DE193 - Date viral load test results received by client @activity: HIV.D10 Counsel returning client @description: The date on which the client received results from viral load test */ // TODO: Replace placeholder with relevant CQL logic -define "Date viral load test results received by client (Care|DDE193)": - Elements."Date viral load test results received by client (Care|DDE193)" O +define "Date viral load test results received by client D.DE193": + Elements."Date viral load test results received by client D.DE193" O where O.effective.toInterval() during "Measurement Period" -define "Date viral load test results received by client (Care|DDE193) Value": - "Date viral load test results received by client (Care|DDE193)" O +define "Date viral load test results received by client D.DE193 Value": + "Date viral load test results received by client D.DE193" O return O.value -/* End of Date viral load test results received by client (Care|DDE193) */ +/* End of Date viral load test results received by client D.DE193 */ /* -@dataElement: HIV.D.DE217 - Reason ART stopped (Care) +@dataElement: HIV.D.DE217 - Reason ART stopped @activity: HIV.D10 Counsel returning client @description: Reason client intentionally stopped ART */ // TODO: Replace placeholder with relevant CQL logic -define "Reason ART stopped (Care)": - exists "Reason ART stopped (Care) Observation" -define "Reason ART stopped (Care) Observation": - Elements."Reason ART stopped (Care) Observation" O +define "Reason ART stopped D.DE217": + exists "Reason ART stopped D.DE217 Observation" +define "Reason ART stopped D.DE217 Observation": + Elements."Reason ART stopped D.DE217 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Reason ART stopped (Care) */ +/* End of Reason ART stopped D.DE217 */ /* -@dataElement: HIV.D.DE218 - Toxicity/side effects (Care|DDE218) +@dataElement: HIV.D.DE218 - Toxicity/side effects @activity: HIV.D10 Counsel returning client @description: Client stopped ART because of toxicity/side effects */ // TODO: Replace placeholder with relevant CQL logic -define "Toxicity/side effects (Care|DDE218)": - exists "Toxicity/side effects (Care|DDE218) Condition" - or exists "Toxicity/side effects (Care|DDE218) Observation" -define "Toxicity/side effects (Care|DDE218) Condition": - Elements."Toxicity/side effects (Care|DDE218) Condition" C +define "Toxicity/side effects D.DE218": + exists "Toxicity/side effects D.DE218 Condition" + or exists "Toxicity/side effects D.DE218 Observation" +define "Toxicity/side effects D.DE218 Condition": + Elements."Toxicity/side effects D.DE218 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Toxicity/side effects (Care|DDE218) Observation": - Elements."Toxicity/side effects (Care|DDE218) Observation" O +define "Toxicity/side effects D.DE218 Observation": + Elements."Toxicity/side effects D.DE218 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Toxicity/side effects (Care|DDE218) */ +/* End of Toxicity/side effects D.DE218 */ /* -@dataElement: HIV.D.DE219 - Severe illness, hospitalization (Care) +@dataElement: HIV.D.DE219 - Severe illness, hospitalization @activity: HIV.D10 Counsel returning client @description: Client stopped ART because of severe illness, hospitalization */ // TODO: Replace placeholder with relevant CQL logic -define "Severe illness, hospitalization (Care)": - exists "Severe illness, hospitalization (Care) Condition" - or exists "Severe illness, hospitalization (Care) Observation" -define "Severe illness, hospitalization (Care) Condition": - Elements."Severe illness, hospitalization (Care) Condition" C +define "Severe illness, hospitalization D.DE219": + exists "Severe illness, hospitalization D.DE219 Condition" + or exists "Severe illness, hospitalization D.DE219 Observation" +define "Severe illness, hospitalization D.DE219 Condition": + Elements."Severe illness, hospitalization D.DE219 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Severe illness, hospitalization (Care) Observation": - Elements."Severe illness, hospitalization (Care) Observation" O +define "Severe illness, hospitalization D.DE219 Observation": + Elements."Severe illness, hospitalization D.DE219 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Severe illness, hospitalization (Care) */ +/* End of Severe illness, hospitalization D.DE219 */ /* -@dataElement: HIV.D.DE220 - Drugs out of stock (Care) +@dataElement: HIV.D.DE220 - Drugs out of stock @activity: HIV.D10 Counsel returning client @description: Client stopped ART because drugs were out of stock */ // TODO: Replace placeholder with relevant CQL logic -define "Drugs out of stock (Care)": - exists "Drugs out of stock (Care) Condition" - or exists "Drugs out of stock (Care) Observation" -define "Drugs out of stock (Care) Condition": - Elements."Drugs out of stock (Care) Condition" C +define "Drugs out of stock": + exists "Drugs out of stock Condition" + or exists "Drugs out of stock Observation" +define "Drugs out of stock Condition": + Elements."Drugs out of stock Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Drugs out of stock (Care) Observation": - Elements."Drugs out of stock (Care) Observation" O +define "Drugs out of stock Observation": + Elements."Drugs out of stock Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Drugs out of stock (Care) */ +/* End of Drugs out of stock */ /* -@dataElement: HIV.D.DE221 - Client lacks finances (Care) +@dataElement: HIV.D.DE221 - Client lacks finances @activity: HIV.D10 Counsel returning client @description: Client stopped ART because of lack of finances */ // TODO: Replace placeholder with relevant CQL logic -define "Client lacks finances (Care)": - exists "Client lacks finances (Care) Condition" - or exists "Client lacks finances (Care) Observation" -define "Client lacks finances (Care) Condition": - Elements."Client lacks finances (Care) Condition" C +define "Client lacks finances": + exists "Client lacks finances Condition" + or exists "Client lacks finances Observation" +define "Client lacks finances Condition": + Elements."Client lacks finances Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Client lacks finances (Care) Observation": - Elements."Client lacks finances (Care) Observation" O +define "Client lacks finances Observation": + Elements."Client lacks finances Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Client lacks finances (Care) */ +/* End of Client lacks finances */ /* -@dataElement: HIV.D.DE222 - Excluded HIV infection in infant (Care) +@dataElement: HIV.D.DE222 - Excluded HIV infection in infant @activity: HIV.D10 Counsel returning client @description: Client stopped ART because HIV infection in infant was excluded */ // TODO: Replace placeholder with relevant CQL logic -define "Excluded HIV infection in infant (Care)": - exists "Excluded HIV infection in infant (Care) Condition" - or exists "Excluded HIV infection in infant (Care) Observation" -define "Excluded HIV infection in infant (Care) Condition": - Elements."Excluded HIV infection in infant (Care) Condition" C +define "Excluded HIV infection in infant D.DE222": + exists "Excluded HIV infection in infant D.DE222 Condition" + or exists "Excluded HIV infection in infant D.DE222 Observation" +define "Excluded HIV infection in infant D.DE222 Condition": + Elements."Excluded HIV infection in infant D.DE222 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Excluded HIV infection in infant (Care) Observation": - Elements."Excluded HIV infection in infant (Care) Observation" O +define "Excluded HIV infection in infant D.DE222 Observation": + Elements."Excluded HIV infection in infant D.DE222 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Excluded HIV infection in infant (Care) */ +/* End of Excluded HIV infection in infant D.DE222 */ /* -@dataElement: HIV.D.DE223 - Other reason for stopping ART (Care) +@dataElement: HIV.D.DE223 - Other reason for stopping ART @activity: HIV.D10 Counsel returning client @description: Client stopped ART because of other reason */ // TODO: Replace placeholder with relevant CQL logic -define "Other reason for stopping ART (Care)": - exists "Other reason for stopping ART (Care) Condition" - or exists "Other reason for stopping ART (Care) Observation" -define "Other reason for stopping ART (Care) Condition": - Elements."Other reason for stopping ART (Care) Condition" C +define "Other reason for stopping ART D.DE223": + exists "Other reason for stopping ART D.DE223 Condition" + or exists "Other reason for stopping ART D.DE223 Observation" +define "Other reason for stopping ART D.DE223 Condition": + Elements."Other reason for stopping ART D.DE223 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Other reason for stopping ART (Care) Observation": - Elements."Other reason for stopping ART (Care) Observation" O +define "Other reason for stopping ART D.DE223 Observation": + Elements."Other reason for stopping ART D.DE223 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Other reason for stopping ART (Care) */ +/* End of Other reason for stopping ART D.DE223 */ /* -@dataElement: HIV.D.DE367 - Baseline CD4 count (Care) +@dataElement: HIV.D.DE367 - Baseline CD4 count @activity: HIV.D20 Diagnostics @description: CD4 count performed at HIV diagnosis */ // TODO: Replace placeholder with relevant CQL logic -define "Baseline CD4 count (Care)": - Elements."Baseline CD4 count (Care)" O +define "Baseline CD4 count D.DE367": + Elements."Baseline CD4 count D.DE367" O where O.effective.toInterval() during "Measurement Period" -define "Baseline CD4 count (Care) Value": - "Baseline CD4 count (Care)" O +define "Baseline CD4 count D.DE367 Value": + "Baseline CD4 count D.DE367" O return O.value -/* End of Baseline CD4 count (Care) */ +/* End of Baseline CD4 count D.DE367 */ /* -@dataElement: HIV.D.DE368 - Date of baseline CD4 count test (Care) +@dataElement: HIV.D.DE368 - Date of baseline CD4 count test @activity: HIV.D20 Diagnostics @description: Date and time when baseline CD4 count test was conducted */ // TODO: Replace placeholder with relevant CQL logic -define "Date of baseline CD4 count test (Care)": - Elements."Date of baseline CD4 count test (Care)" O +define "Date of baseline CD4 count test D.DE368": + Elements."Date of baseline CD4 count test D.DE368" O where O.effective.toInterval() during "Measurement Period" -define "Date of baseline CD4 count test (Care) Value": - "Date of baseline CD4 count test (Care)" O +define "Date of baseline CD4 count test D.DE368 Value": + "Date of baseline CD4 count test D.DE368" O return O.value -/* End of Date of baseline CD4 count test (Care) */ +/* End of Date of baseline CD4 count test D.DE368 */ /* -@dataElement: HIV.D.DE383 - Time to start ART (Care) +@dataElement: HIV.D.DE383 - Time to start ART @activity: HIV.D8 Capture or update client history @description: Time from HIV diagnosis to when client started ART */ // TODO: Replace placeholder with relevant CQL logic -define "Time to start ART (Care)": - exists "Time to start ART (Care) Observation" -define "Time to start ART (Care) Observation": - Elements."Time to start ART (Care) Observation" O +define "Time to start ART": + exists "Time to start ART Observation" +define "Time to start ART Observation": + Elements."Time to start ART Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Time to start ART (Care) */ +/* End of Time to start ART */ /* -@dataElement: HIV.D.DE384 - Within 7 days of HIV diagnosis (Care) +@dataElement: HIV.D.DE384 - Within 7 days of HIV diagnosis @activity: HIV.D8 Capture or update client history @description: Client started ART within 7 days */ // TODO: Replace placeholder with relevant CQL logic -define "Within 7 days of HIV diagnosis (Care)": - exists "Within 7 days of HIV diagnosis (Care) Condition" - or exists "Within 7 days of HIV diagnosis (Care) Observation" -define "Within 7 days of HIV diagnosis (Care) Condition": - Elements."Within 7 days of HIV diagnosis (Care) Condition" C +define "Within 7 days of HIV diagnosis": + exists "Within 7 days of HIV diagnosis Condition" + or exists "Within 7 days of HIV diagnosis Observation" +define "Within 7 days of HIV diagnosis Condition": + Elements."Within 7 days of HIV diagnosis Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Within 7 days of HIV diagnosis (Care) Observation": - Elements."Within 7 days of HIV diagnosis (Care) Observation" O +define "Within 7 days of HIV diagnosis Observation": + Elements."Within 7 days of HIV diagnosis Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Within 7 days of HIV diagnosis (Care) */ +/* End of Within 7 days of HIV diagnosis */ /* -@dataElement: HIV.D.DE385 - Within 30 days of HIV diagnosis (Care) +@dataElement: HIV.D.DE385 - Within 30 days of HIV diagnosis @activity: HIV.D8 Capture or update client history @description: Client started ART within 30 days of ART initiation (but over 7 days) */ // TODO: Replace placeholder with relevant CQL logic -define "Within 30 days of HIV diagnosis (Care)": - exists "Within 30 days of HIV diagnosis (Care) Condition" - or exists "Within 30 days of HIV diagnosis (Care) Observation" -define "Within 30 days of HIV diagnosis (Care) Condition": - Elements."Within 30 days of HIV diagnosis (Care) Condition" C +define "Within 30 days of HIV diagnosis": + exists "Within 30 days of HIV diagnosis Condition" + or exists "Within 30 days of HIV diagnosis Observation" +define "Within 30 days of HIV diagnosis Condition": + Elements."Within 30 days of HIV diagnosis Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Within 30 days of HIV diagnosis (Care) Observation": - Elements."Within 30 days of HIV diagnosis (Care) Observation" O +define "Within 30 days of HIV diagnosis Observation": + Elements."Within 30 days of HIV diagnosis Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Within 30 days of HIV diagnosis (Care) */ +/* End of Within 30 days of HIV diagnosis */ /* -@dataElement: HIV.D.DE386 - Within 90 days of HIV diagnosis (Care) +@dataElement: HIV.D.DE386 - Within 90 days of HIV diagnosis @activity: HIV.D8 Capture or update client history @description: Client started ART within 90 days of ART initiation (but over 30 days) */ // TODO: Replace placeholder with relevant CQL logic -define "Within 90 days of HIV diagnosis (Care)": - exists "Within 90 days of HIV diagnosis (Care) Condition" - or exists "Within 90 days of HIV diagnosis (Care) Observation" -define "Within 90 days of HIV diagnosis (Care) Condition": - Elements."Within 90 days of HIV diagnosis (Care) Condition" C +define "Within 90 days of HIV diagnosis": + exists "Within 90 days of HIV diagnosis Condition" + or exists "Within 90 days of HIV diagnosis Observation" +define "Within 90 days of HIV diagnosis Condition": + Elements."Within 90 days of HIV diagnosis Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Within 90 days of HIV diagnosis (Care) Observation": - Elements."Within 90 days of HIV diagnosis (Care) Observation" O +define "Within 90 days of HIV diagnosis Observation": + Elements."Within 90 days of HIV diagnosis Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Within 90 days of HIV diagnosis (Care) */ +/* End of Within 90 days of HIV diagnosis */ /* -@dataElement: HIV.D.DE417 - Date viral load test results received by client (Care|DDE417) +@dataElement: HIV.D.DE417 - Date viral load test results received by client @activity: HIV.D20 Diagnostics @description: The date on which the client received results from a viral load test */ // TODO: Replace placeholder with relevant CQL logic -define "Date viral load test results received by client (Care|DDE417)": - Elements."Date viral load test results received by client (Care|DDE417)" O +define "Date viral load test results received by client D.DE417": + Elements."Date viral load test results received by client D.DE417" O where O.effective.toInterval() during "Measurement Period" -define "Date viral load test results received by client (Care|DDE417) Value": - "Date viral load test results received by client (Care|DDE417)" O +define "Date viral load test results received by client D.DE417 Value": + "Date viral load test results received by client D.DE417" O return O.value -/* End of Date viral load test results received by client (Care|DDE417) */ +/* End of Date viral load test results received by client D.DE417 */ /* -@dataElement: HIV.D.DE418 - Reason for ARV drug regimen substitution (Care) +@dataElement: HIV.D.DE418 - Reason for ARV drug regimen substitution @activity: HIV.D21 Determine regimen and treatment options @description: Reason why a substitution was made to the antiretroviral (ARV) drug regimen */ // TODO: Replace placeholder with relevant CQL logic -define "Reason for ARV drug regimen substitution (Care)": - exists "Reason for ARV drug regimen substitution (Care) Observation" -define "Reason for ARV drug regimen substitution (Care) Observation": - Elements."Reason for ARV drug regimen substitution (Care) Observation" O +define "Reason for ARV drug regimen substitution": + exists "Reason for ARV drug regimen substitution Observation" +define "Reason for ARV drug regimen substitution Observation": + Elements."Reason for ARV drug regimen substitution Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Reason for ARV drug regimen substitution (Care) */ +/* End of Reason for ARV drug regimen substitution */ /* -@dataElement: HIV.D.DE419 - Toxicity/side effects (Care|DDE419) +@dataElement: HIV.D.DE419 - Toxicity/side effects @activity: HIV.D21 Determine regimen and treatment options @description: A substitution was made to the regimen because of toxicity/side effects */ // TODO: Replace placeholder with relevant CQL logic -define "Toxicity/side effects (Care|DDE419)": - exists "Toxicity/side effects (Care|DDE419) Condition" - or exists "Toxicity/side effects (Care|DDE419) Observation" -define "Toxicity/side effects (Care|DDE419) Condition": - Elements."Toxicity/side effects (Care|DDE419) Condition" C +define "Toxicity/side effects D.DE419": + exists "Toxicity/side effects D.DE419 Condition" + or exists "Toxicity/side effects D.DE419 Observation" +define "Toxicity/side effects D.DE419 Condition": + Elements."Toxicity/side effects D.DE419 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Toxicity/side effects (Care|DDE419) Observation": - Elements."Toxicity/side effects (Care|DDE419) Observation" O +define "Toxicity/side effects D.DE419 Observation": + Elements."Toxicity/side effects D.DE419 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Toxicity/side effects (Care|DDE419) */ +/* End of Toxicity/side effects D.DE419 */ /* -@dataElement: HIV.D.DE420 - Drug-drug interaction (Care) +@dataElement: HIV.D.DE420 - Drug-drug interaction @activity: HIV.D21 Determine regimen and treatment options @description: A substitution was made to the regimen because of a drug-drug interaction */ // TODO: Replace placeholder with relevant CQL logic -define "Drug-drug interaction (Care)": - exists "Drug-drug interaction (Care) Condition" - or exists "Drug-drug interaction (Care) Observation" -define "Drug-drug interaction (Care) Condition": - Elements."Drug-drug interaction (Care) Condition" C +define "Drug-drug interaction": + exists "Drug-drug interaction Condition" + or exists "Drug-drug interaction Observation" +define "Drug-drug interaction Condition": + Elements."Drug-drug interaction Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Drug-drug interaction (Care) Observation": - Elements."Drug-drug interaction (Care) Observation" O +define "Drug-drug interaction Observation": + Elements."Drug-drug interaction Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Drug-drug interaction (Care) */ +/* End of Drug-drug interaction */ /* -@dataElement: HIV.D.DE421 - Pregnancy (Care) +@dataElement: HIV.D.DE421 - Pregnancy @activity: HIV.D21 Determine regimen and treatment options @description: A substitution was made to the regimen because of pregnancy */ // TODO: Replace placeholder with relevant CQL logic -define "Pregnancy (Care)": - exists "Pregnancy (Care) Condition" - or exists "Pregnancy (Care) Observation" -define "Pregnancy (Care) Condition": - Elements."Pregnancy (Care) Condition" C +define "Pregnancy": + exists "Pregnancy Condition" + or exists "Pregnancy Observation" +define "Pregnancy Condition": + Elements."Pregnancy Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Pregnancy (Care) Observation": - Elements."Pregnancy (Care) Observation" O +define "Pregnancy Observation": + Elements."Pregnancy Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Pregnancy (Care) */ +/* End of Pregnancy */ /* -@dataElement: HIV.D.DE422 - New TB (Care) +@dataElement: HIV.D.DE422 - New TB @activity: HIV.D21 Determine regimen and treatment options @description: A substitution was made to the regimen because of new tuberculosis (TB) */ // TODO: Replace placeholder with relevant CQL logic -define "New TB (Care)": - exists "New TB (Care) Condition" - or exists "New TB (Care) Observation" -define "New TB (Care) Condition": - Elements."New TB (Care) Condition" C +define "New TB": + exists "New TB Condition" + or exists "New TB Observation" +define "New TB Condition": + Elements."New TB Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "New TB (Care) Observation": - Elements."New TB (Care) Observation" O +define "New TB Observation": + Elements."New TB Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of New TB (Care) */ +/* End of New TB */ /* -@dataElement: HIV.D.DE423 - New drug available (Care) +@dataElement: HIV.D.DE423 - New drug available @activity: HIV.D21 Determine regimen and treatment options @description: A substitution was made to the regimen because a new drug was available */ // TODO: Replace placeholder with relevant CQL logic -define "New drug available (Care)": - exists "New drug available (Care) Condition" - or exists "New drug available (Care) Observation" -define "New drug available (Care) Condition": - Elements."New drug available (Care) Condition" C +define "New drug available": + exists "New drug available Condition" + or exists "New drug available Observation" +define "New drug available Condition": + Elements."New drug available Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "New drug available (Care) Observation": - Elements."New drug available (Care) Observation" O +define "New drug available Observation": + Elements."New drug available Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of New drug available (Care) */ +/* End of New drug available */ /* -@dataElement: HIV.D.DE424 - Drug out of stock (Care) +@dataElement: HIV.D.DE424 - Drug out of stock @activity: HIV.D21 Determine regimen and treatment options @description: A substitution was made to the regimen because drug was out of stock */ // TODO: Replace placeholder with relevant CQL logic -define "Drug out of stock (Care)": - exists "Drug out of stock (Care) Condition" - or exists "Drug out of stock (Care) Observation" -define "Drug out of stock (Care) Condition": - Elements."Drug out of stock (Care) Condition" C +define "Drug out of stock": + exists "Drug out of stock Condition" + or exists "Drug out of stock Observation" +define "Drug out of stock Condition": + Elements."Drug out of stock Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Drug out of stock (Care) Observation": - Elements."Drug out of stock (Care) Observation" O +define "Drug out of stock Observation": + Elements."Drug out of stock Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Drug out of stock (Care) */ +/* End of Drug out of stock */ /* -@dataElement: HIV.D.DE425 - Other reason for regimen substitution (Care) +@dataElement: HIV.D.DE425 - Other reason for regimen substitution @activity: HIV.D21 Determine regimen and treatment options @description: A substitution was made for another reason */ // TODO: Replace placeholder with relevant CQL logic -define "Other reason for regimen substitution (Care)": - exists "Other reason for regimen substitution (Care) Condition" - or exists "Other reason for regimen substitution (Care) Observation" -define "Other reason for regimen substitution (Care) Condition": - Elements."Other reason for regimen substitution (Care) Condition" C +define "Other reason for regimen substitution": + exists "Other reason for regimen substitution Condition" + or exists "Other reason for regimen substitution Observation" +define "Other reason for regimen substitution Condition": + Elements."Other reason for regimen substitution Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Other reason for regimen substitution (Care) Observation": - Elements."Other reason for regimen substitution (Care) Observation" O +define "Other reason for regimen substitution Observation": + Elements."Other reason for regimen substitution Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Other reason for regimen substitution (Care) */ +/* End of Other reason for regimen substitution */ /* -@dataElement: HIV.D.DE457 - Medications prescribed (Care) +@dataElement: HIV.D.DE457 - Medications prescribed @activity: HIV.D23 Prescribe @description: Name or regimen code of all other medications prescribed during the visit */ // TODO: Replace placeholder with relevant CQL logic -define "Medications prescribed (Care)": - exists "Medications prescribed (Care) Observation" -define "Medications prescribed (Care) Observation": - Elements."Medications prescribed (Care) Observation" O +define "Medications prescribed D.DE457": + exists "Medications prescribed D.DE457 Observation" +define "Medications prescribed D.DE457 Observation": + Elements."Medications prescribed D.DE457 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Medications prescribed (Care) */ +/* End of Medications prescribed D.DE457 */ /* -@dataElement: HIV.D.DE458 - Date medications prescribed (Care) +@dataElement: HIV.D.DE458 - Date medications prescribed @activity: HIV.D23 Prescribe @description: Date the medications were prescribed */ // TODO: Replace placeholder with relevant CQL logic -define "Date medications prescribed (Care)": - Elements."Date medications prescribed (Care)" O +define "Date medications prescribed D.DE458": + Elements."Date medications prescribed D.DE458" O where O.effective.toInterval() during "Measurement Period" -define "Date medications prescribed (Care) Value": - "Date medications prescribed (Care)" O +define "Date medications prescribed D.DE458 Value": + "Date medications prescribed D.DE458" O return O.value -/* End of Date medications prescribed (Care) */ +/* End of Date medications prescribed D.DE458 */ /* -@dataElement: HIV.D.DE459 - Dose of medications prescribed (Care) +@dataElement: HIV.D.DE459 - Dose of medications prescribed @activity: HIV.D23 Prescribe @description: Number of doses (quantity taken at a single point in time) of drugs prescribed/dispensed */ // TODO: Replace placeholder with relevant CQL logic -define "Dose of medications prescribed (Care)": - Elements."Dose of medications prescribed (Care)" O +define "Dose of medications prescribed": + Elements."Dose of medications prescribed" O where O.effective.toInterval() during "Measurement Period" -define "Dose of medications prescribed (Care) Value": - "Dose of medications prescribed (Care)" O +define "Dose of medications prescribed Value": + "Dose of medications prescribed" O return O.value -/* End of Dose of medications prescribed (Care) */ +/* End of Dose of medications prescribed */ /* -@dataElement: HIV.D.DE460 - Number of days medications prescribed (Care) +@dataElement: HIV.D.DE460 - Number of days medications prescribed @activity: HIV.D23 Prescribe @description: Number of days supply of each medication or regimen prescribed during the visit */ // TODO: Replace placeholder with relevant CQL logic -define "Number of days medications prescribed (Care)": - Elements."Number of days medications prescribed (Care)" O +define "Number of days medications prescribed": + Elements."Number of days medications prescribed" O where O.effective.toInterval() during "Measurement Period" -define "Number of days medications prescribed (Care) Value": - "Number of days medications prescribed (Care)" O +define "Number of days medications prescribed Value": + "Number of days medications prescribed" O return O.value -/* End of Number of days medications prescribed (Care) */ +/* End of Number of days medications prescribed */ /* -@dataElement: HIV.D.DE466 - Type of treatment-limiting toxicity (Care) +@dataElement: HIV.D.DE466 - Type of treatment-limiting toxicity @activity: HIV.D21 Determine regimen and treatment options @description: Type of treatment-limiting toxicity experienced by client. Treatment-limiting toxicity is defined as a serious adverse drug reaction that results in drug discontinuation or substitution. In addition, any reaction that leads to treatment interruption or requires changing the drug or regimen because of an adverse drug reaction is also considered a serious adverse drug reaction. */ // TODO: Replace placeholder with relevant CQL logic -define "Type of treatment-limiting toxicity (Care)": - exists "Type of treatment-limiting toxicity (Care) Observation" -define "Type of treatment-limiting toxicity (Care) Observation": - Elements."Type of treatment-limiting toxicity (Care) Observation" O +define "Type of treatment-limiting toxicity": + exists "Type of treatment-limiting toxicity Observation" +define "Type of treatment-limiting toxicity Observation": + Elements."Type of treatment-limiting toxicity Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Type of treatment-limiting toxicity (Care) */ +/* End of Type of treatment-limiting toxicity */ /* -@dataElement: HIV.D.DE467 - Gastrointestinal (Care) +@dataElement: HIV.D.DE467 - Gastrointestinal @activity: HIV.D21 Determine regimen and treatment options @description: Treatment-limiting toxicity due to GI issues (nausea, diarrhoea, abdominal pain, vomiting) */ // TODO: Replace placeholder with relevant CQL logic -define "Gastrointestinal (Care)": - exists "Gastrointestinal (Care) Condition" - or exists "Gastrointestinal (Care) Observation" -define "Gastrointestinal (Care) Condition": - Elements."Gastrointestinal (Care) Condition" C +define "Gastrointestinal": + exists "Gastrointestinal Condition" + or exists "Gastrointestinal Observation" +define "Gastrointestinal Condition": + Elements."Gastrointestinal Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Gastrointestinal (Care) Observation": - Elements."Gastrointestinal (Care) Observation" O +define "Gastrointestinal Observation": + Elements."Gastrointestinal Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Gastrointestinal (Care) */ +/* End of Gastrointestinal */ /* -@dataElement: HIV.D.DE468 - Skin issues (Care) +@dataElement: HIV.D.DE468 - Skin issues @activity: HIV.D21 Determine regimen and treatment options @description: Treatment-limiting toxicity due to skin issues (rash, hypersensitivity reaction) */ // TODO: Replace placeholder with relevant CQL logic -define "Skin issues (Care)": - exists "Skin issues (Care) Condition" - or exists "Skin issues (Care) Observation" -define "Skin issues (Care) Condition": - Elements."Skin issues (Care) Condition" C +define "Skin issues": + exists "Skin issues Condition" + or exists "Skin issues Observation" +define "Skin issues Condition": + Elements."Skin issues Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Skin issues (Care) Observation": - Elements."Skin issues (Care) Observation" O +define "Skin issues Observation": + Elements."Skin issues Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Skin issues (Care) */ +/* End of Skin issues */ /* -@dataElement: HIV.D.DE469 - Peripheral neuropathy (Care) +@dataElement: HIV.D.DE469 - Peripheral neuropathy @activity: HIV.D21 Determine regimen and treatment options @description: Treatment-limiting toxicity due to peripheral neuropathy (burning/numbness/ tingling) */ // TODO: Replace placeholder with relevant CQL logic -define "Peripheral neuropathy (Care)": - exists "Peripheral neuropathy (Care) Condition" - or exists "Peripheral neuropathy (Care) Observation" -define "Peripheral neuropathy (Care) Condition": - Elements."Peripheral neuropathy (Care) Condition" C +define "Peripheral neuropathy": + exists "Peripheral neuropathy Condition" + or exists "Peripheral neuropathy Observation" +define "Peripheral neuropathy Condition": + Elements."Peripheral neuropathy Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Peripheral neuropathy (Care) Observation": - Elements."Peripheral neuropathy (Care) Observation" O +define "Peripheral neuropathy Observation": + Elements."Peripheral neuropathy Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Peripheral neuropathy (Care) */ +/* End of Peripheral neuropathy */ /* -@dataElement: HIV.D.DE470 - Central nervous system symptoms (Care) +@dataElement: HIV.D.DE470 - Central nervous system symptoms @activity: HIV.D21 Determine regimen and treatment options @description: Treatment-limiting toxicity due to central nervous system symptoms (dizzy, anxiety, nightmare, depression, seizures) */ // TODO: Replace placeholder with relevant CQL logic -define "Central nervous system symptoms (Care)": - exists "Central nervous system symptoms (Care) Condition" - or exists "Central nervous system symptoms (Care) Observation" -define "Central nervous system symptoms (Care) Condition": - Elements."Central nervous system symptoms (Care) Condition" C +define "Central nervous system symptoms": + exists "Central nervous system symptoms Condition" + or exists "Central nervous system symptoms Observation" +define "Central nervous system symptoms Condition": + Elements."Central nervous system symptoms Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Central nervous system symptoms (Care) Observation": - Elements."Central nervous system symptoms (Care) Observation" O +define "Central nervous system symptoms Observation": + Elements."Central nervous system symptoms Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Central nervous system symptoms (Care) */ +/* End of Central nervous system symptoms */ /* -@dataElement: HIV.D.DE471 - Weight gain (Care) +@dataElement: HIV.D.DE471 - Weight gain @activity: HIV.D21 Determine regimen and treatment options @description: Treatment-limiting toxicity due to weight gain */ // TODO: Replace placeholder with relevant CQL logic -define "Weight gain (Care)": - exists "Weight gain (Care) Condition" - or exists "Weight gain (Care) Observation" -define "Weight gain (Care) Condition": - Elements."Weight gain (Care) Condition" C +define "Weight gain": + exists "Weight gain Condition" + or exists "Weight gain Observation" +define "Weight gain Condition": + Elements."Weight gain Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Weight gain (Care) Observation": - Elements."Weight gain (Care) Observation" O +define "Weight gain Observation": + Elements."Weight gain Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Weight gain (Care) */ +/* End of Weight gain */ /* -@dataElement: HIV.D.DE472 - Hepatic dysfunction (Care) +@dataElement: HIV.D.DE472 - Hepatic dysfunction @activity: HIV.D21 Determine regimen and treatment options @description: Treatment-limiting toxicity due to hepatic dysfunction (jaundice) */ // TODO: Replace placeholder with relevant CQL logic -define "Hepatic dysfunction (Care)": - exists "Hepatic dysfunction (Care) Condition" - or exists "Hepatic dysfunction (Care) Observation" -define "Hepatic dysfunction (Care) Condition": - Elements."Hepatic dysfunction (Care) Condition" C +define "Hepatic dysfunction": + exists "Hepatic dysfunction Condition" + or exists "Hepatic dysfunction Observation" +define "Hepatic dysfunction Condition": + Elements."Hepatic dysfunction Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Hepatic dysfunction (Care) Observation": - Elements."Hepatic dysfunction (Care) Observation" O +define "Hepatic dysfunction Observation": + Elements."Hepatic dysfunction Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Hepatic dysfunction (Care) */ +/* End of Hepatic dysfunction */ /* -@dataElement: HIV.D.DE473 - Haematological disorders (Care) +@dataElement: HIV.D.DE473 - Haematological disorders @activity: HIV.D21 Determine regimen and treatment options @description: Treatment-limiting toxicity due to haematological (anaemia, neutropenia) disorders */ // TODO: Replace placeholder with relevant CQL logic -define "Haematological disorders (Care)": - exists "Haematological disorders (Care) Condition" - or exists "Haematological disorders (Care) Observation" -define "Haematological disorders (Care) Condition": - Elements."Haematological disorders (Care) Condition" C +define "Haematological disorders": + exists "Haematological disorders Condition" + or exists "Haematological disorders Observation" +define "Haematological disorders Condition": + Elements."Haematological disorders Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Haematological disorders (Care) Observation": - Elements."Haematological disorders (Care) Observation" O +define "Haematological disorders Observation": + Elements."Haematological disorders Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Haematological disorders (Care) */ +/* End of Haematological disorders */ /* -@dataElement: HIV.D.DE474 - Fatigue (Care) +@dataElement: HIV.D.DE474 - Fatigue @activity: HIV.D21 Determine regimen and treatment options @description: Treatment-limiting toxicity due to fatigue */ // TODO: Replace placeholder with relevant CQL logic -define "Fatigue (Care)": - exists "Fatigue (Care) Condition" - or exists "Fatigue (Care) Observation" -define "Fatigue (Care) Condition": - Elements."Fatigue (Care) Condition" C +define "Fatigue": + exists "Fatigue Condition" + or exists "Fatigue Observation" +define "Fatigue Condition": + Elements."Fatigue Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Fatigue (Care) Observation": - Elements."Fatigue (Care) Observation" O +define "Fatigue Observation": + Elements."Fatigue Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Fatigue (Care) */ +/* End of Fatigue */ /* -@dataElement: HIV.D.DE475 - Headache (Care|DDE475) +@dataElement: HIV.D.DE475 - Headache @activity: HIV.D21 Determine regimen and treatment options @description: Treatment-limiting toxicity due to headache */ // TODO: Replace placeholder with relevant CQL logic -define "Headache (Care|DDE475)": - exists "Headache (Care|DDE475) Condition" - or exists "Headache (Care|DDE475) Observation" -define "Headache (Care|DDE475) Condition": - Elements."Headache (Care|DDE475) Condition" C +define "Headache D.DE475": + exists "Headache D.DE475 Condition" + or exists "Headache D.DE475 Observation" +define "Headache D.DE475 Condition": + Elements."Headache D.DE475 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Headache (Care|DDE475) Observation": - Elements."Headache (Care|DDE475) Observation" O +define "Headache D.DE475 Observation": + Elements."Headache D.DE475 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Headache (Care|DDE475) */ +/* End of Headache D.DE475 */ /* -@dataElement: HIV.D.DE476 - Bone dysfunction (Care) +@dataElement: HIV.D.DE476 - Bone dysfunction @activity: HIV.D21 Determine regimen and treatment options @description: Treatment-limiting toxicity due to bone dysfunction (fractures, osteopenia) */ // TODO: Replace placeholder with relevant CQL logic -define "Bone dysfunction (Care)": - exists "Bone dysfunction (Care) Condition" - or exists "Bone dysfunction (Care) Observation" -define "Bone dysfunction (Care) Condition": - Elements."Bone dysfunction (Care) Condition" C +define "Bone dysfunction": + exists "Bone dysfunction Condition" + or exists "Bone dysfunction Observation" +define "Bone dysfunction Condition": + Elements."Bone dysfunction Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Bone dysfunction (Care) Observation": - Elements."Bone dysfunction (Care) Observation" O +define "Bone dysfunction Observation": + Elements."Bone dysfunction Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Bone dysfunction (Care) */ +/* End of Bone dysfunction */ /* -@dataElement: HIV.D.DE477 - Metabolic symptoms (Care) +@dataElement: HIV.D.DE477 - Metabolic symptoms @activity: HIV.D21 Determine regimen and treatment options @description: Treatment-limiting toxicity due to metabolic symptoms (body fat changes, hyperglycaemia, dyslipidaemia) */ // TODO: Replace placeholder with relevant CQL logic -define "Metabolic symptoms (Care)": - exists "Metabolic symptoms (Care) Condition" - or exists "Metabolic symptoms (Care) Observation" -define "Metabolic symptoms (Care) Condition": - Elements."Metabolic symptoms (Care) Condition" C +define "Metabolic symptoms": + exists "Metabolic symptoms Condition" + or exists "Metabolic symptoms Observation" +define "Metabolic symptoms Condition": + Elements."Metabolic symptoms Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Metabolic symptoms (Care) Observation": - Elements."Metabolic symptoms (Care) Observation" O +define "Metabolic symptoms Observation": + Elements."Metabolic symptoms Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Metabolic symptoms (Care) */ +/* End of Metabolic symptoms */ /* -@dataElement: HIV.D.DE478 - Kidney dysfunction (Care) +@dataElement: HIV.D.DE478 - Kidney dysfunction @activity: HIV.D21 Determine regimen and treatment options @description: Treatment-limiting toxicity due to kidney dysfunction (nephrolithiasis, renal insufficiency) */ // TODO: Replace placeholder with relevant CQL logic -define "Kidney dysfunction (Care)": - exists "Kidney dysfunction (Care) Condition" - or exists "Kidney dysfunction (Care) Observation" -define "Kidney dysfunction (Care) Condition": - Elements."Kidney dysfunction (Care) Condition" C +define "Kidney dysfunction": + exists "Kidney dysfunction Condition" + or exists "Kidney dysfunction Observation" +define "Kidney dysfunction Condition": + Elements."Kidney dysfunction Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Kidney dysfunction (Care) Observation": - Elements."Kidney dysfunction (Care) Observation" O +define "Kidney dysfunction Observation": + Elements."Kidney dysfunction Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Kidney dysfunction (Care) */ +/* End of Kidney dysfunction */ /* -@dataElement: HIV.D.DE479 - Unexpected adverse drug reaction (Care) +@dataElement: HIV.D.DE479 - Unexpected adverse drug reaction @activity: HIV.D21 Determine regimen and treatment options @description: Client experienced an unexpected adverse drug reaction */ // TODO: Replace placeholder with relevant CQL logic -define "Unexpected adverse drug reaction (Care)": - exists "Unexpected adverse drug reaction (Care) Condition" - or exists "Unexpected adverse drug reaction (Care) Observation" -define "Unexpected adverse drug reaction (Care) Condition": - Elements."Unexpected adverse drug reaction (Care) Condition" C +define "Unexpected adverse drug reaction": + exists "Unexpected adverse drug reaction Condition" + or exists "Unexpected adverse drug reaction Observation" +define "Unexpected adverse drug reaction Condition": + Elements."Unexpected adverse drug reaction Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Unexpected adverse drug reaction (Care) Observation": - Elements."Unexpected adverse drug reaction (Care) Observation" O +define "Unexpected adverse drug reaction Observation": + Elements."Unexpected adverse drug reaction Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Unexpected adverse drug reaction (Care) */ +/* End of Unexpected adverse drug reaction */ /* -@dataElement: HIV.D.DE487 - Dates of substitution within second-line regimen (Care) +@dataElement: HIV.D.DE487 - Dates of substitution within second-line regimen @activity: HIV.D21 Determine regimen and treatment options @description: Date on which ARV drug regimen for client was changed within the second-line regimen (substitution) */ // TODO: Replace placeholder with relevant CQL logic -define "Dates of substitution within second-line regimen (Care)": - Elements."Dates of substitution within second-line regimen (Care)" O +define "Dates of substitution within second-line regimen": + Elements."Dates of substitution within second-line regimen" O where O.effective.toInterval() during "Measurement Period" -define "Dates of substitution within second-line regimen (Care) Value": - "Dates of substitution within second-line regimen (Care)" O +define "Dates of substitution within second-line regimen Value": + "Dates of substitution within second-line regimen" O return O.value -/* End of Dates of substitution within second-line regimen (Care) */ +/* End of Dates of substitution within second-line regimen */ /* -@dataElement: HIV.D.DE493 - Dates of substitution within third-line regimen (Care) +@dataElement: HIV.D.DE493 - Dates of substitution within third-line regimen @activity: HIV.D21 Determine regimen and treatment options @description: Date on which ARV drug regimen for client was changed within the third-line (substitution) */ // TODO: Replace placeholder with relevant CQL logic -define "Dates of substitution within third-line regimen (Care)": - Elements."Dates of substitution within third-line regimen (Care)" O +define "Dates of substitution within third-line regimen": + Elements."Dates of substitution within third-line regimen" O where O.effective.toInterval() during "Measurement Period" -define "Dates of substitution within third-line regimen (Care) Value": - "Dates of substitution within third-line regimen (Care)" O +define "Dates of substitution within third-line regimen Value": + "Dates of substitution within third-line regimen" O return O.value -/* End of Dates of substitution within third-line regimen (Care) */ +/* End of Dates of substitution within third-line regimen */ /* -@dataElement: HIV.D.DE705 - Date of diagnosis of cervical precancer lesions or invasive cervical cancer (Care) +@dataElement: HIV.D.DE705 - Date of diagnosis of cervical precancer lesions or invasive cervical cancer @activity: HIV.D28 Offer other services @description: Date of diagnosis of cervical precancer lesions or invasive cervical cancer */ // TODO: Replace placeholder with relevant CQL logic -define "Date of diagnosis of cervical precancer lesions or invasive cervical cancer (Care)": - Elements."Date of diagnosis of cervical precancer lesions or invasive cervical cancer (Care)" O +define "Date of diagnosis of cervical precancer lesions or invasive cervical cancer": + Elements."Date of diagnosis of cervical precancer lesions or invasive cervical cancer" O where O.effective.toInterval() during "Measurement Period" -define "Date of diagnosis of cervical precancer lesions or invasive cervical cancer (Care) Value": - "Date of diagnosis of cervical precancer lesions or invasive cervical cancer (Care)" O +define "Date of diagnosis of cervical precancer lesions or invasive cervical cancer Value": + "Date of diagnosis of cervical precancer lesions or invasive cervical cancer" O return O.value -/* End of Date of diagnosis of cervical precancer lesions or invasive cervical cancer (Care) */ +/* End of Date of diagnosis of cervical precancer lesions or invasive cervical cancer */ /* -@dataElement: HIV.D.DE706 - Cervical cancer screening outcome (Care) +@dataElement: HIV.D.DE706 - Cervical cancer screening outcome @activity: HIV.D28 Offer other services @description: Client's screening outcome for cervical cancer */ // TODO: Replace placeholder with relevant CQL logic -define "Cervical cancer screening outcome (Care)": - exists "Cervical cancer screening outcome (Care) Observation" -define "Cervical cancer screening outcome (Care) Observation": - Elements."Cervical cancer screening outcome (Care) Observation" O +define "Cervical cancer screening outcome": + exists "Cervical cancer screening outcome Observation" +define "Cervical cancer screening outcome Observation": + Elements."Cervical cancer screening outcome Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Cervical cancer screening outcome (Care) */ +/* End of Cervical cancer screening outcome */ /* -@dataElement: HIV.D.DE707 - Positive for cervical precancer lesions (Care) +@dataElement: HIV.D.DE707 - Positive for cervical precancer lesions @activity: HIV.D28 Offer other services @description: Screening outcome for cervical precancer lesions is positive */ // TODO: Replace placeholder with relevant CQL logic -define "Positive for cervical precancer lesions (Care)": - exists "Positive for cervical precancer lesions (Care) Condition" - or exists "Positive for cervical precancer lesions (Care) Observation" -define "Positive for cervical precancer lesions (Care) Condition": - Elements."Positive for cervical precancer lesions (Care) Condition" C +define "Positive for cervical precancer lesions": + exists "Positive for cervical precancer lesions Condition" + or exists "Positive for cervical precancer lesions Observation" +define "Positive for cervical precancer lesions Condition": + Elements."Positive for cervical precancer lesions Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Positive for cervical precancer lesions (Care) Observation": - Elements."Positive for cervical precancer lesions (Care) Observation" O +define "Positive for cervical precancer lesions Observation": + Elements."Positive for cervical precancer lesions Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Positive for cervical precancer lesions (Care) */ +/* End of Positive for cervical precancer lesions */ /* -@dataElement: HIV.D.DE708 - Negative for cervical precancer lesions (Care) +@dataElement: HIV.D.DE708 - Negative for cervical precancer lesions @activity: HIV.D28 Offer other services @description: Screening outcome for cervical precancer lesions is negative */ // TODO: Replace placeholder with relevant CQL logic -define "Negative for cervical precancer lesions (Care)": - exists "Negative for cervical precancer lesions (Care) Condition" - or exists "Negative for cervical precancer lesions (Care) Observation" -define "Negative for cervical precancer lesions (Care) Condition": - Elements."Negative for cervical precancer lesions (Care) Condition" C +define "Negative for cervical precancer lesions": + exists "Negative for cervical precancer lesions Condition" + or exists "Negative for cervical precancer lesions Observation" +define "Negative for cervical precancer lesions Condition": + Elements."Negative for cervical precancer lesions Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Negative for cervical precancer lesions (Care) Observation": - Elements."Negative for cervical precancer lesions (Care) Observation" O +define "Negative for cervical precancer lesions Observation": + Elements."Negative for cervical precancer lesions Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Negative for cervical precancer lesions (Care) */ +/* End of Negative for cervical precancer lesions */ /* -@dataElement: HIV.D.DE709 - Cervical cancer diagnosis (Care) +@dataElement: HIV.D.DE709 - Cervical cancer diagnosis @activity: HIV.D28 Offer other services @description: Type of cervical cancer diagnosis */ // TODO: Replace placeholder with relevant CQL logic -define "Cervical cancer diagnosis (Care)": - exists "Cervical cancer diagnosis (Care) Observation" -define "Cervical cancer diagnosis (Care) Observation": - Elements."Cervical cancer diagnosis (Care) Observation" O +define "Cervical cancer diagnosis": + exists "Cervical cancer diagnosis Observation" +define "Cervical cancer diagnosis Observation": + Elements."Cervical cancer diagnosis Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Cervical cancer diagnosis (Care) */ +/* End of Cervical cancer diagnosis */ /* -@dataElement: HIV.D.DE710 - Cervical precancer lesions (Care) +@dataElement: HIV.D.DE710 - Cervical precancer lesions @activity: HIV.D28 Offer other services @description: Client is diagnosed with cervical precancer lesions */ // TODO: Replace placeholder with relevant CQL logic -define "Cervical precancer lesions (Care)": - exists "Cervical precancer lesions (Care) Condition" - or exists "Cervical precancer lesions (Care) Observation" -define "Cervical precancer lesions (Care) Condition": - Elements."Cervical precancer lesions (Care) Condition" C +define "Cervical precancer lesions": + exists "Cervical precancer lesions Condition" + or exists "Cervical precancer lesions Observation" +define "Cervical precancer lesions Condition": + Elements."Cervical precancer lesions Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Cervical precancer lesions (Care) Observation": - Elements."Cervical precancer lesions (Care) Observation" O +define "Cervical precancer lesions Observation": + Elements."Cervical precancer lesions Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Cervical precancer lesions (Care) */ +/* End of Cervical precancer lesions */ /* -@dataElement: HIV.D.DE711 - Invasive cervical cancer (Care) +@dataElement: HIV.D.DE711 - Invasive cervical cancer @activity: HIV.D28 Offer other services @description: Client is diagnosed with invasive cervical cancer disease */ // TODO: Replace placeholder with relevant CQL logic -define "Invasive cervical cancer (Care)": - exists "Invasive cervical cancer (Care) Condition" - or exists "Invasive cervical cancer (Care) Observation" -define "Invasive cervical cancer (Care) Condition": - Elements."Invasive cervical cancer (Care) Condition" C +define "Invasive cervical cancer": + exists "Invasive cervical cancer Condition" + or exists "Invasive cervical cancer Observation" +define "Invasive cervical cancer Condition": + Elements."Invasive cervical cancer Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Invasive cervical cancer (Care) Observation": - Elements."Invasive cervical cancer (Care) Observation" O +define "Invasive cervical cancer Observation": + Elements."Invasive cervical cancer Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Invasive cervical cancer (Care) */ +/* End of Invasive cervical cancer */ /* -@dataElement: HIV.D.DE712 - Cervical cancer stage at diagnosis (Care) +@dataElement: HIV.D.DE712 - Cervical cancer stage at diagnosis @activity: HIV.D28 Offer other services @description: Cervical cancer stage at diagnosis of cervical cancer */ // TODO: Replace placeholder with relevant CQL logic -define "Cervical cancer stage at diagnosis (Care)": - exists "Cervical cancer stage at diagnosis (Care) Observation" -define "Cervical cancer stage at diagnosis (Care) Observation": - Elements."Cervical cancer stage at diagnosis (Care) Observation" O +define "Cervical cancer stage at diagnosis": + exists "Cervical cancer stage at diagnosis Observation" +define "Cervical cancer stage at diagnosis Observation": + Elements."Cervical cancer stage at diagnosis Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Cervical cancer stage at diagnosis (Care) */ +/* End of Cervical cancer stage at diagnosis */ /* -@dataElement: HIV.D.DE713 - Stage 0 (Care) +@dataElement: HIV.D.DE713 - Stage 0 @activity: HIV.D28 Offer other services @description: Stage 0 cervical cancer at diagnosis of cervical cancer */ // TODO: Replace placeholder with relevant CQL logic -define "Stage 0 (Care)": - exists "Stage 0 (Care) Condition" - or exists "Stage 0 (Care) Observation" -define "Stage 0 (Care) Condition": - Elements."Stage 0 (Care) Condition" C +define "Stage 0": + exists "Stage 0 Condition" + or exists "Stage 0 Observation" +define "Stage 0 Condition": + Elements."Stage 0 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Stage 0 (Care) Observation": - Elements."Stage 0 (Care) Observation" O +define "Stage 0 Observation": + Elements."Stage 0 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Stage 0 (Care) */ +/* End of Stage 0 */ /* -@dataElement: HIV.D.DE714 - Stage I (Care) +@dataElement: HIV.D.DE714 - Stage I @activity: HIV.D28 Offer other services @description: Stage I cervical cancer at diagnosis of cervical cancer */ // TODO: Replace placeholder with relevant CQL logic -define "Stage I (Care)": - exists "Stage I (Care) Condition" - or exists "Stage I (Care) Observation" -define "Stage I (Care) Condition": - Elements."Stage I (Care) Condition" C +define "Stage I": + exists "Stage I Condition" + or exists "Stage I Observation" +define "Stage I Condition": + Elements."Stage I Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Stage I (Care) Observation": - Elements."Stage I (Care) Observation" O +define "Stage I Observation": + Elements."Stage I Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Stage I (Care) */ +/* End of Stage I */ /* -@dataElement: HIV.D.DE715 - Stage II (Care) +@dataElement: HIV.D.DE715 - Stage II @activity: HIV.D28 Offer other services @description: Stage II cervical cancer at diagnosis of cervical cancer */ // TODO: Replace placeholder with relevant CQL logic -define "Stage II (Care)": - exists "Stage II (Care) Condition" - or exists "Stage II (Care) Observation" -define "Stage II (Care) Condition": - Elements."Stage II (Care) Condition" C +define "Stage II": + exists "Stage II Condition" + or exists "Stage II Observation" +define "Stage II Condition": + Elements."Stage II Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Stage II (Care) Observation": - Elements."Stage II (Care) Observation" O +define "Stage II Observation": + Elements."Stage II Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Stage II (Care) */ +/* End of Stage II */ /* -@dataElement: HIV.D.DE716 - Stage III (Care) +@dataElement: HIV.D.DE716 - Stage III @activity: HIV.D28 Offer other services @description: Stage III cervical cancer at diagnosis of cervical cancer */ // TODO: Replace placeholder with relevant CQL logic -define "Stage III (Care)": - exists "Stage III (Care) Condition" - or exists "Stage III (Care) Observation" -define "Stage III (Care) Condition": - Elements."Stage III (Care) Condition" C +define "Stage III": + exists "Stage III Condition" + or exists "Stage III Observation" +define "Stage III Condition": + Elements."Stage III Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Stage III (Care) Observation": - Elements."Stage III (Care) Observation" O +define "Stage III Observation": + Elements."Stage III Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Stage III (Care) */ +/* End of Stage III */ /* -@dataElement: HIV.D.DE717 - Stage IV (Care) +@dataElement: HIV.D.DE717 - Stage IV @activity: HIV.D28 Offer other services @description: Stage IV cervical cancer at diagnosis of cervical cancer */ // TODO: Replace placeholder with relevant CQL logic -define "Stage IV (Care)": - exists "Stage IV (Care) Condition" - or exists "Stage IV (Care) Observation" -define "Stage IV (Care) Condition": - Elements."Stage IV (Care) Condition" C +define "Stage IV": + exists "Stage IV Condition" + or exists "Stage IV Observation" +define "Stage IV Condition": + Elements."Stage IV Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Stage IV (Care) Observation": - Elements."Stage IV (Care) Observation" O +define "Stage IV Observation": + Elements."Stage IV Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Stage IV (Care) */ +/* End of Stage IV */ /* -@dataElement: HIV.D.DE718 - Date of treatment for cervical precancer lesions (Care) +@dataElement: HIV.D.DE718 - Date of treatment for cervical precancer lesions @activity: HIV.D28 Offer other services @description: Date of treatment for cervical precancer lesions */ // TODO: Replace placeholder with relevant CQL logic -define "Date of treatment for cervical precancer lesions (Care)": - Elements."Date of treatment for cervical precancer lesions (Care)" O +define "Date of treatment for cervical precancer lesions": + Elements."Date of treatment for cervical precancer lesions" O where O.effective.toInterval() during "Measurement Period" -define "Date of treatment for cervical precancer lesions (Care) Value": - "Date of treatment for cervical precancer lesions (Care)" O +define "Date of treatment for cervical precancer lesions Value": + "Date of treatment for cervical precancer lesions" O return O.value -/* End of Date of treatment for cervical precancer lesions (Care) */ +/* End of Date of treatment for cervical precancer lesions */ /* -@dataElement: HIV.D.DE730 - Invasive cervical cancer treatment episode (Care) +@dataElement: HIV.D.DE730 - Invasive cervical cancer treatment episode @activity: HIV.D28 Offer other services @description: Client's lifetime number of treatments for invasive cervical cancer */ // TODO: Replace placeholder with relevant CQL logic -define "Invasive cervical cancer treatment episode (Care)": - Elements."Invasive cervical cancer treatment episode (Care)" O +define "Invasive cervical cancer treatment episode": + Elements."Invasive cervical cancer treatment episode" O where O.effective.toInterval() during "Measurement Period" -define "Invasive cervical cancer treatment episode (Care) Value": - "Invasive cervical cancer treatment episode (Care)" O +define "Invasive cervical cancer treatment episode Value": + "Invasive cervical cancer treatment episode" O return O.value -/* End of Invasive cervical cancer treatment episode (Care) */ +/* End of Invasive cervical cancer treatment episode */ /* -@dataElement: HIV.D.DE731 - Invasive cervical cancer treatment method (Care) +@dataElement: HIV.D.DE731 - Invasive cervical cancer treatment method @activity: HIV.D28 Offer other services @description: Invasive cervical cancer treatment method */ // TODO: Replace placeholder with relevant CQL logic -define "Invasive cervical cancer treatment method (Care)": - exists "Invasive cervical cancer treatment method (Care) Observation" -define "Invasive cervical cancer treatment method (Care) Observation": - Elements."Invasive cervical cancer treatment method (Care) Observation" O +define "Invasive cervical cancer treatment method": + exists "Invasive cervical cancer treatment method Observation" +define "Invasive cervical cancer treatment method Observation": + Elements."Invasive cervical cancer treatment method Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Invasive cervical cancer treatment method (Care) */ +/* End of Invasive cervical cancer treatment method */ /* -@dataElement: HIV.D.DE732 - Conization (Care) +@dataElement: HIV.D.DE732 - Conization @activity: HIV.D28 Offer other services @description: Invasive cervical cancer treatment method is a conization */ // TODO: Replace placeholder with relevant CQL logic -define "Conization (Care)": - exists "Conization (Care) Condition" - or exists "Conization (Care) Observation" -define "Conization (Care) Condition": - Elements."Conization (Care) Condition" C +define "Conization": + exists "Conization Condition" + or exists "Conization Observation" +define "Conization Condition": + Elements."Conization Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Conization (Care) Observation": - Elements."Conization (Care) Observation" O +define "Conization Observation": + Elements."Conization Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Conization (Care) */ +/* End of Conization */ /* -@dataElement: HIV.D.DE733 - Trachelectomy (Care) +@dataElement: HIV.D.DE733 - Trachelectomy @activity: HIV.D28 Offer other services @description: Invasive cervical cancer treatment method is a trachelectomy */ // TODO: Replace placeholder with relevant CQL logic -define "Trachelectomy (Care)": - exists "Trachelectomy (Care) Condition" - or exists "Trachelectomy (Care) Observation" -define "Trachelectomy (Care) Condition": - Elements."Trachelectomy (Care) Condition" C +define "Trachelectomy": + exists "Trachelectomy Condition" + or exists "Trachelectomy Observation" +define "Trachelectomy Condition": + Elements."Trachelectomy Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Trachelectomy (Care) Observation": - Elements."Trachelectomy (Care) Observation" O +define "Trachelectomy Observation": + Elements."Trachelectomy Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Trachelectomy (Care) */ +/* End of Trachelectomy */ /* -@dataElement: HIV.D.DE734 - Hysterectomy (Care) +@dataElement: HIV.D.DE734 - Hysterectomy @activity: HIV.D28 Offer other services @description: Invasive cervical cancer treatment method is a hysterectomy */ // TODO: Replace placeholder with relevant CQL logic -define "Hysterectomy (Care)": - exists "Hysterectomy (Care) Condition" - or exists "Hysterectomy (Care) Observation" -define "Hysterectomy (Care) Condition": - Elements."Hysterectomy (Care) Condition" C +define "Hysterectomy": + exists "Hysterectomy Condition" + or exists "Hysterectomy Observation" +define "Hysterectomy Condition": + Elements."Hysterectomy Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Hysterectomy (Care) Observation": - Elements."Hysterectomy (Care) Observation" O +define "Hysterectomy Observation": + Elements."Hysterectomy Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Hysterectomy (Care) */ +/* End of Hysterectomy */ /* -@dataElement: HIV.D.DE735 - Management of invasive cervical cancer (Care) +@dataElement: HIV.D.DE735 - Management of invasive cervical cancer @activity: HIV.D28 Offer other services @description: Invasive cervical cancer treatment method is management of invasive cervical cancer */ // TODO: Replace placeholder with relevant CQL logic -define "Management of invasive cervical cancer (Care)": - exists "Management of invasive cervical cancer (Care) Condition" - or exists "Management of invasive cervical cancer (Care) Observation" -define "Management of invasive cervical cancer (Care) Condition": - Elements."Management of invasive cervical cancer (Care) Condition" C +define "Management of invasive cervical cancer": + exists "Management of invasive cervical cancer Condition" + or exists "Management of invasive cervical cancer Observation" +define "Management of invasive cervical cancer Condition": + Elements."Management of invasive cervical cancer Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Management of invasive cervical cancer (Care) Observation": - Elements."Management of invasive cervical cancer (Care) Observation" O +define "Management of invasive cervical cancer Observation": + Elements."Management of invasive cervical cancer Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Management of invasive cervical cancer (Care) */ +/* End of Management of invasive cervical cancer */ /* -@dataElement: HIV.D.DE736 - Radiotherapy (Care) +@dataElement: HIV.D.DE736 - Radiotherapy @activity: HIV.D28 Offer other services @description: Invasive cervical cancer treatment method is a radiotherapy */ // TODO: Replace placeholder with relevant CQL logic -define "Radiotherapy (Care)": - exists "Radiotherapy (Care) Condition" - or exists "Radiotherapy (Care) Observation" -define "Radiotherapy (Care) Condition": - Elements."Radiotherapy (Care) Condition" C +define "Radiotherapy": + exists "Radiotherapy Condition" + or exists "Radiotherapy Observation" +define "Radiotherapy Condition": + Elements."Radiotherapy Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Radiotherapy (Care) Observation": - Elements."Radiotherapy (Care) Observation" O +define "Radiotherapy Observation": + Elements."Radiotherapy Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Radiotherapy (Care) */ +/* End of Radiotherapy */ /* -@dataElement: HIV.D.DE737 - Chemotherapy (Care) +@dataElement: HIV.D.DE737 - Chemotherapy @activity: HIV.D28 Offer other services @description: Invasive cervical cancer treatment method is a chemotherapy */ // TODO: Replace placeholder with relevant CQL logic -define "Chemotherapy (Care)": - exists "Chemotherapy (Care) Condition" - or exists "Chemotherapy (Care) Observation" -define "Chemotherapy (Care) Condition": - Elements."Chemotherapy (Care) Condition" C +define "Chemotherapy": + exists "Chemotherapy Condition" + or exists "Chemotherapy Observation" +define "Chemotherapy Condition": + Elements."Chemotherapy Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Chemotherapy (Care) Observation": - Elements."Chemotherapy (Care) Observation" O +define "Chemotherapy Observation": + Elements."Chemotherapy Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Chemotherapy (Care) */ +/* End of Chemotherapy */ /* -@dataElement: HIV.D.DE738 - Chemoradiation (Care) +@dataElement: HIV.D.DE738 - Chemoradiation @activity: HIV.D28 Offer other services @description: Invasive cervical cancer treatment method is a chemoradiation */ // TODO: Replace placeholder with relevant CQL logic -define "Chemoradiation (Care)": - exists "Chemoradiation (Care) Condition" - or exists "Chemoradiation (Care) Observation" -define "Chemoradiation (Care) Condition": - Elements."Chemoradiation (Care) Condition" C +define "Chemoradiation": + exists "Chemoradiation Condition" + or exists "Chemoradiation Observation" +define "Chemoradiation Condition": + Elements."Chemoradiation Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Chemoradiation (Care) Observation": - Elements."Chemoradiation (Care) Observation" O +define "Chemoradiation Observation": + Elements."Chemoradiation Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Chemoradiation (Care) */ +/* End of Chemoradiation */ /* -@dataElement: HIV.D.DE739 - Other (Care|DDE739) +@dataElement: HIV.D.DE739 - Other @activity: HIV.D28 Offer other services @description: Invasive cervical cancer treatment method is a not in list */ // TODO: Replace placeholder with relevant CQL logic -define "Other (Care|DDE739)": - exists "Other (Care|DDE739) Condition" - or exists "Other (Care|DDE739) Observation" -define "Other (Care|DDE739) Condition": - Elements."Other (Care|DDE739) Condition" C +define "Other D.DE739": + exists "Other D.DE739 Condition" + or exists "Other D.DE739 Observation" +define "Other D.DE739 Condition": + Elements."Other D.DE739 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Other (Care|DDE739) Observation": - Elements."Other (Care|DDE739) Observation" O +define "Other D.DE739 Observation": + Elements."Other D.DE739 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Other (Care|DDE739) */ +/* End of Other D.DE739 */ /* -@dataElement: HIV.D.DE760 - Eligible for DSD ART (Care) +@dataElement: HIV.D.DE760 - Eligible for DSD ART @activity: HIV.D21 Determine regimen and treatment options @description: Client is eligible for differentiated service delivery (DSD) for ART */ // TODO: Replace placeholder with relevant CQL logic -define "Eligible for DSD ART (Care)": - exists "Eligible for DSD ART (Care) Observation" -define "Eligible for DSD ART (Care) Observation": - Elements."Eligible for DSD ART (Care) Observation" O +define "Eligible for DSD ART": + exists "Eligible for DSD ART Observation" +define "Eligible for DSD ART Observation": + Elements."Eligible for DSD ART Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Eligible for DSD ART (Care) */ +/* End of Eligible for DSD ART */ /* -@dataElement: HIV.D.DE761 - Date DSD ART eligibility assessed (Care) +@dataElement: HIV.D.DE761 - Date DSD ART eligibility assessed @activity: HIV.D21 Determine regimen and treatment options @description: Date client was assessed for eligibility for differentiated service delivery (DSD) for ART */ // TODO: Replace placeholder with relevant CQL logic -define "Date DSD ART eligibility assessed (Care)": - Elements."Date DSD ART eligibility assessed (Care)" O +define "Date DSD ART eligibility assessed": + Elements."Date DSD ART eligibility assessed" O where O.effective.toInterval() during "Measurement Period" -define "Date DSD ART eligibility assessed (Care) Value": - "Date DSD ART eligibility assessed (Care)" O +define "Date DSD ART eligibility assessed Value": + "Date DSD ART eligibility assessed" O return O.value -/* End of Date DSD ART eligibility assessed (Care) */ +/* End of Date DSD ART eligibility assessed */ /* -@dataElement: HIV.D.DE762 - Currently enrolled in DSD ART model (Care) +@dataElement: HIV.D.DE762 - Currently enrolled in DSD ART model @activity: HIV.D21 Determine regimen and treatment options @description: Client currently enrolled in differentiated service delivery (DSD) ART model */ // TODO: Replace placeholder with relevant CQL logic -define "Currently enrolled in DSD ART model (Care)": - exists "Currently enrolled in DSD ART model (Care) Observation" -define "Currently enrolled in DSD ART model (Care) Observation": - Elements."Currently enrolled in DSD ART model (Care) Observation" O +define "Currently enrolled in DSD ART model": + exists "Currently enrolled in DSD ART model Observation" +define "Currently enrolled in DSD ART model Observation": + Elements."Currently enrolled in DSD ART model Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Currently enrolled in DSD ART model (Care) */ +/* End of Currently enrolled in DSD ART model */ /* -@dataElement: HIV.D.DE763 - DSD ART start date (Care) +@dataElement: HIV.D.DE763 - DSD ART start date @activity: HIV.D21 Determine regimen and treatment options @description: Date client started on differentiated service delivery (DSD) for ART */ // TODO: Replace placeholder with relevant CQL logic -define "DSD ART start date (Care)": - Elements."DSD ART start date (Care)" O +define "DSD ART start date": + Elements."DSD ART start date" O where O.effective.toInterval() during "Measurement Period" -define "DSD ART start date (Care) Value": - "DSD ART start date (Care)" O +define "DSD ART start date Value": + "DSD ART start date" O return O.value -/* End of DSD ART start date (Care) */ +/* End of DSD ART start date */ /* -@dataElement: HIV.D.DE764 - DSD ART models (Care) +@dataElement: HIV.D.DE764 - DSD ART models @activity: HIV.D21 Determine regimen and treatment options @description: Type of DSD ART model client is enrolled in (country-specific) */ // TODO: Replace placeholder with relevant CQL logic -define "DSD ART models (Care)": - exists "DSD ART models (Care) Observation" -define "DSD ART models (Care) Observation": - Elements."DSD ART models (Care) Observation" O +define "DSD ART models": + exists "DSD ART models Observation" +define "DSD ART models Observation": + Elements."DSD ART models Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of DSD ART models (Care) */ +/* End of DSD ART models */ /* -@dataElement: HIV.D.DE765 - Fast track ART refill (Care) +@dataElement: HIV.D.DE765 - Fast track ART refill @activity: HIV.D21 Determine regimen and treatment options @description: Client is enrolled in fast track ART refill (DSD ART model) */ // TODO: Replace placeholder with relevant CQL logic -define "Fast track ART refill (Care)": - exists "Fast track ART refill (Care) Condition" - or exists "Fast track ART refill (Care) Observation" -define "Fast track ART refill (Care) Condition": - Elements."Fast track ART refill (Care) Condition" C +define "Fast track ART refill": + exists "Fast track ART refill Condition" + or exists "Fast track ART refill Observation" +define "Fast track ART refill Condition": + Elements."Fast track ART refill Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Fast track ART refill (Care) Observation": - Elements."Fast track ART refill (Care) Observation" O +define "Fast track ART refill Observation": + Elements."Fast track ART refill Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Fast track ART refill (Care) */ +/* End of Fast track ART refill */ /* -@dataElement: HIV.D.DE766 - Facility adherence club (Care) +@dataElement: HIV.D.DE766 - Facility adherence club @activity: HIV.D21 Determine regimen and treatment options @description: Client is enrolled in facility adherence club (DSD ART model) */ // TODO: Replace placeholder with relevant CQL logic -define "Facility adherence club (Care)": - exists "Facility adherence club (Care) Condition" - or exists "Facility adherence club (Care) Observation" -define "Facility adherence club (Care) Condition": - Elements."Facility adherence club (Care) Condition" C +define "Facility adherence club": + exists "Facility adherence club Condition" + or exists "Facility adherence club Observation" +define "Facility adherence club Condition": + Elements."Facility adherence club Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Facility adherence club (Care) Observation": - Elements."Facility adherence club (Care) Observation" O +define "Facility adherence club Observation": + Elements."Facility adherence club Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Facility adherence club (Care) */ +/* End of Facility adherence club */ /* -@dataElement: HIV.D.DE767 - Community ART distribution point (Care) +@dataElement: HIV.D.DE767 - Community ART distribution point @activity: HIV.D21 Determine regimen and treatment options @description: Client is enrolled in community ART distribution point (DSD ART model) */ // TODO: Replace placeholder with relevant CQL logic -define "Community ART distribution point (Care)": - exists "Community ART distribution point (Care) Condition" - or exists "Community ART distribution point (Care) Observation" -define "Community ART distribution point (Care) Condition": - Elements."Community ART distribution point (Care) Condition" C +define "Community ART distribution point": + exists "Community ART distribution point Condition" + or exists "Community ART distribution point Observation" +define "Community ART distribution point Condition": + Elements."Community ART distribution point Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Community ART distribution point (Care) Observation": - Elements."Community ART distribution point (Care) Observation" O +define "Community ART distribution point Observation": + Elements."Community ART distribution point Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Community ART distribution point (Care) */ +/* End of Community ART distribution point */ /* -@dataElement: HIV.D.DE768 - CHW/peer educator community ART group (Care) +@dataElement: HIV.D.DE768 - CHW/peer educator community ART group @activity: HIV.D21 Determine regimen and treatment options @description: Client is enrolled in community health worker/peer educator community ART group (DSD ART model) */ // TODO: Replace placeholder with relevant CQL logic -define "CHW/peer educator community ART group (Care)": - exists "CHW/peer educator community ART group (Care) Condition" - or exists "CHW/peer educator community ART group (Care) Observation" -define "CHW/peer educator community ART group (Care) Condition": - Elements."CHW/peer educator community ART group (Care) Condition" C +define "CHW/peer educator community ART group": + exists "CHW/peer educator community ART group Condition" + or exists "CHW/peer educator community ART group Observation" +define "CHW/peer educator community ART group Condition": + Elements."CHW/peer educator community ART group Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "CHW/peer educator community ART group (Care) Observation": - Elements."CHW/peer educator community ART group (Care) Observation" O +define "CHW/peer educator community ART group Observation": + Elements."CHW/peer educator community ART group Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of CHW/peer educator community ART group (Care) */ +/* End of CHW/peer educator community ART group */ /* -@dataElement: HIV.D.DE769 - Patient/client community ART group (Care) +@dataElement: HIV.D.DE769 - Patient/client community ART group @activity: HIV.D21 Determine regimen and treatment options @description: Client is enrolled in patient/client community ART group (DSD ART model) */ // TODO: Replace placeholder with relevant CQL logic -define "Patient/client community ART group (Care)": - exists "Patient/client community ART group (Care) Condition" - or exists "Patient/client community ART group (Care) Observation" -define "Patient/client community ART group (Care) Condition": - Elements."Patient/client community ART group (Care) Condition" C +define "Patient/client community ART group": + exists "Patient/client community ART group Condition" + or exists "Patient/client community ART group Observation" +define "Patient/client community ART group Condition": + Elements."Patient/client community ART group Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Patient/client community ART group (Care) Observation": - Elements."Patient/client community ART group (Care) Observation" O +define "Patient/client community ART group Observation": + Elements."Patient/client community ART group Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Patient/client community ART group (Care) */ +/* End of Patient/client community ART group */ /* -@dataElement: HIV.D.DE770 - Other DSD ART model (Care) +@dataElement: HIV.D.DE770 - Other DSD ART model @activity: HIV.D21 Determine regimen and treatment options @description: Client is enrolled in another DSD ART model */ // TODO: Replace placeholder with relevant CQL logic -define "Other DSD ART model (Care)": - exists "Other DSD ART model (Care) Condition" - or exists "Other DSD ART model (Care) Observation" -define "Other DSD ART model (Care) Condition": - Elements."Other DSD ART model (Care) Condition" C +define "Other DSD ART model": + exists "Other DSD ART model Condition" + or exists "Other DSD ART model Observation" +define "Other DSD ART model Condition": + Elements."Other DSD ART model Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Other DSD ART model (Care) Observation": - Elements."Other DSD ART model (Care) Observation" O +define "Other DSD ART model Observation": + Elements."Other DSD ART model Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Other DSD ART model (Care) */ +/* End of Other DSD ART model */ /* -@dataElement: HIV.D.DE778 - Syndrome/STI diagnosed (Care) +@dataElement: HIV.D.DE778 - Syndrome/STI diagnosed @activity: HIV.D26 Offer sexual and reproductive health services @description: Syndrome or STI for which client is diagnosed */ // TODO: Replace placeholder with relevant CQL logic -define "Syndrome/STI diagnosed (Care)": - exists "Syndrome/STI diagnosed (Care) Observation" -define "Syndrome/STI diagnosed (Care) Observation": - Elements."Syndrome/STI diagnosed (Care) Observation" O +define "Syndrome/STI diagnosed D.DE778": + exists "Syndrome/STI diagnosed D.DE778 Observation" +define "Syndrome/STI diagnosed D.DE778 Observation": + Elements."Syndrome/STI diagnosed D.DE778 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Syndrome/STI diagnosed (Care) */ +/* End of Syndrome/STI diagnosed D.DE778 */ /* -@dataElement: HIV.D.DE779 - Urethral discharge syndrome (Care) +@dataElement: HIV.D.DE779 - Urethral discharge syndrome @activity: HIV.D26 Offer sexual and reproductive health services @description: Client diagnosed with urethral discharge syndrome */ // TODO: Replace placeholder with relevant CQL logic -define "Urethral discharge syndrome (Care)": - exists "Urethral discharge syndrome (Care) Condition" - or exists "Urethral discharge syndrome (Care) Observation" -define "Urethral discharge syndrome (Care) Condition": - Elements."Urethral discharge syndrome (Care) Condition" C +define "Urethral discharge syndrome D.DE779": + exists "Urethral discharge syndrome D.DE779 Condition" + or exists "Urethral discharge syndrome D.DE779 Observation" +define "Urethral discharge syndrome D.DE779 Condition": + Elements."Urethral discharge syndrome D.DE779 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Urethral discharge syndrome (Care) Observation": - Elements."Urethral discharge syndrome (Care) Observation" O +define "Urethral discharge syndrome D.DE779 Observation": + Elements."Urethral discharge syndrome D.DE779 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Urethral discharge syndrome (Care) */ +/* End of Urethral discharge syndrome D.DE779 */ /* -@dataElement: HIV.D.DE780 - Vaginal discharge syndrome (Care) +@dataElement: HIV.D.DE780 - Vaginal discharge syndrome @activity: HIV.D26 Offer sexual and reproductive health services @description: Client diagnosed with vaginal discharge syndrome */ // TODO: Replace placeholder with relevant CQL logic -define "Vaginal discharge syndrome (Care)": - exists "Vaginal discharge syndrome (Care) Condition" - or exists "Vaginal discharge syndrome (Care) Observation" -define "Vaginal discharge syndrome (Care) Condition": - Elements."Vaginal discharge syndrome (Care) Condition" C +define "Vaginal discharge syndrome D.DE780": + exists "Vaginal discharge syndrome D.DE780 Condition" + or exists "Vaginal discharge syndrome D.DE780 Observation" +define "Vaginal discharge syndrome D.DE780 Condition": + Elements."Vaginal discharge syndrome D.DE780 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Vaginal discharge syndrome (Care) Observation": - Elements."Vaginal discharge syndrome (Care) Observation" O +define "Vaginal discharge syndrome D.DE780 Observation": + Elements."Vaginal discharge syndrome D.DE780 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Vaginal discharge syndrome (Care) */ +/* End of Vaginal discharge syndrome D.DE780 */ /* -@dataElement: HIV.D.DE781 - Lower Abdominal pain (Care) +@dataElement: HIV.D.DE781 - Lower Abdominal pain @activity: HIV.D26 Offer sexual and reproductive health services @description: Client diagnosed with lower abdominal pain */ // TODO: Replace placeholder with relevant CQL logic -define "Lower Abdominal pain (Care)": - exists "Lower Abdominal pain (Care) Condition" - or exists "Lower Abdominal pain (Care) Observation" -define "Lower Abdominal pain (Care) Condition": - Elements."Lower Abdominal pain (Care) Condition" C +define "Lower Abdominal pain D.DE781": + exists "Lower Abdominal pain D.DE781 Condition" + or exists "Lower Abdominal pain D.DE781 Observation" +define "Lower Abdominal pain D.DE781 Condition": + Elements."Lower Abdominal pain D.DE781 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Lower Abdominal pain (Care) Observation": - Elements."Lower Abdominal pain (Care) Observation" O +define "Lower Abdominal pain D.DE781 Observation": + Elements."Lower Abdominal pain D.DE781 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Lower Abdominal pain (Care) */ +/* End of Lower Abdominal pain D.DE781 */ /* -@dataElement: HIV.D.DE782 - Genital ulcer disease syndrome (Care) +@dataElement: HIV.D.DE782 - Genital ulcer disease syndrome @activity: HIV.D26 Offer sexual and reproductive health services @description: Client diagnosed with genital ulcer disease syndrome */ // TODO: Replace placeholder with relevant CQL logic -define "Genital ulcer disease syndrome (Care)": - exists "Genital ulcer disease syndrome (Care) Condition" - or exists "Genital ulcer disease syndrome (Care) Observation" -define "Genital ulcer disease syndrome (Care) Condition": - Elements."Genital ulcer disease syndrome (Care) Condition" C +define "Genital ulcer disease syndrome D.DE782": + exists "Genital ulcer disease syndrome D.DE782 Condition" + or exists "Genital ulcer disease syndrome D.DE782 Observation" +define "Genital ulcer disease syndrome D.DE782 Condition": + Elements."Genital ulcer disease syndrome D.DE782 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Genital ulcer disease syndrome (Care) Observation": - Elements."Genital ulcer disease syndrome (Care) Observation" O +define "Genital ulcer disease syndrome D.DE782 Observation": + Elements."Genital ulcer disease syndrome D.DE782 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Genital ulcer disease syndrome (Care) */ +/* End of Genital ulcer disease syndrome D.DE782 */ /* -@dataElement: HIV.D.DE783 - Anorectal discharge (Care) +@dataElement: HIV.D.DE783 - Anorectal discharge @activity: HIV.D26 Offer sexual and reproductive health services @description: Client diagnosed with anorectal discharge */ // TODO: Replace placeholder with relevant CQL logic -define "Anorectal discharge (Care)": - exists "Anorectal discharge (Care) Condition" - or exists "Anorectal discharge (Care) Observation" -define "Anorectal discharge (Care) Condition": - Elements."Anorectal discharge (Care) Condition" C +define "Anorectal discharge D.DE783": + exists "Anorectal discharge D.DE783 Condition" + or exists "Anorectal discharge D.DE783 Observation" +define "Anorectal discharge D.DE783 Condition": + Elements."Anorectal discharge D.DE783 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Anorectal discharge (Care) Observation": - Elements."Anorectal discharge (Care) Observation" O +define "Anorectal discharge D.DE783 Observation": + Elements."Anorectal discharge D.DE783 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Anorectal discharge (Care) */ +/* End of Anorectal discharge D.DE783 */ /* -@dataElement: HIV.D.DE784 - Sent for testing (Care) +@dataElement: HIV.D.DE784 - Sent for testing @activity: HIV.D26 Offer sexual and reproductive health services @description: Specimen sent for testing */ // TODO: Replace placeholder with relevant CQL logic -define "Sent for testing (Care)": - exists "Sent for testing (Care) Condition" - or exists "Sent for testing (Care) Observation" -define "Sent for testing (Care) Condition": - Elements."Sent for testing (Care) Condition" C +define "Sent for testing D.DE784": + exists "Sent for testing D.DE784 Condition" + or exists "Sent for testing D.DE784 Observation" +define "Sent for testing D.DE784 Condition": + Elements."Sent for testing D.DE784 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Sent for testing (Care) Observation": - Elements."Sent for testing (Care) Observation" O +define "Sent for testing D.DE784 Observation": + Elements."Sent for testing D.DE784 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Sent for testing (Care) */ +/* End of Sent for testing D.DE784 */ /* -@dataElement: HIV.D.DE785 - Other (Care|DDE785) +@dataElement: HIV.D.DE785 - Other @activity: HIV.D26 Offer sexual and reproductive health services @description: Other syndrome/STI diagnosed */ // TODO: Replace placeholder with relevant CQL logic -define "Other (Care|DDE785)": - exists "Other (Care|DDE785) Condition" - or exists "Other (Care|DDE785) Observation" -define "Other (Care|DDE785) Condition": - Elements."Other (Care|DDE785) Condition" C +define "Other D.DE785": + exists "Other D.DE785 Condition" + or exists "Other D.DE785 Observation" +define "Other D.DE785 Condition": + Elements."Other D.DE785 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Other (Care|DDE785) Observation": - Elements."Other (Care|DDE785) Observation" O +define "Other D.DE785 Observation": + Elements."Other D.DE785 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Other (Care|DDE785) */ +/* End of Other D.DE785 */ /* -@dataElement: HIV.D.DE787 - Any STI syndrome diagnosed (Care) +@dataElement: HIV.D.DE787 - Any STI syndrome diagnosed @activity: HIV.D26 Offer sexual and reproductive health services @description: Was the client diagnosed with any of the five STI syndromes during this visit? */ // TODO: Replace placeholder with relevant CQL logic -define "Any STI syndrome diagnosed (Care)": - exists "Any STI syndrome diagnosed (Care) Observation" -define "Any STI syndrome diagnosed (Care) Observation": - Elements."Any STI syndrome diagnosed (Care) Observation" O +define "Any STI syndrome diagnosed D.DE787": + exists "Any STI syndrome diagnosed D.DE787 Observation" +define "Any STI syndrome diagnosed D.DE787 Observation": + Elements."Any STI syndrome diagnosed D.DE787 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Any STI syndrome diagnosed (Care) */ +/* End of Any STI syndrome diagnosed D.DE787 */ /* -@dataElement: HIV.D.DE801 - Syphilis test date (Care) +@dataElement: HIV.D.DE801 - Syphilis test date @activity: HIV.D26 Offer sexual and reproductive health services @description: Date of syphilis test */ // TODO: Replace placeholder with relevant CQL logic -define "Syphilis test date (Care)": - Elements."Syphilis test date (Care)" O +define "Syphilis test date D.DE801": + Elements."Syphilis test date D.DE801" O where O.effective.toInterval() during "Measurement Period" -define "Syphilis test date (Care) Value": - "Syphilis test date (Care)" O +define "Syphilis test date D.DE801 Value": + "Syphilis test date D.DE801" O return O.value -/* End of Syphilis test date (Care) */ +/* End of Syphilis test date D.DE801 */ /* -@dataElement: HIV.D.DE806 - Syphilis treatment start date (Care) +@dataElement: HIV.D.DE806 - Syphilis treatment start date @activity: HIV.D26 Offer sexual and reproductive health services @description: Date of initiation of syphilis treatment */ // TODO: Replace placeholder with relevant CQL logic -define "Syphilis treatment start date (Care)": - Elements."Syphilis treatment start date (Care)" O +define "Syphilis treatment start date D.DE806": + Elements."Syphilis treatment start date D.DE806" O where O.effective.toInterval() during "Measurement Period" -define "Syphilis treatment start date (Care) Value": - "Syphilis treatment start date (Care)" O +define "Syphilis treatment start date D.DE806 Value": + "Syphilis treatment start date D.DE806" O return O.value -/* End of Syphilis treatment start date (Care) */ +/* End of Syphilis treatment start date D.DE806 */ /* -@dataElement: HIV.D.DE807 - Gonorrhoea test date (Care) +@dataElement: HIV.D.DE807 - Gonorrhoea test date @activity: HIV.D26 Offer sexual and reproductive health services @description: Date of Gonorrhoea test */ // TODO: Replace placeholder with relevant CQL logic -define "Gonorrhoea test date (Care)": - Elements."Gonorrhoea test date (Care)" O +define "Gonorrhoea test date D.DE807": + Elements."Gonorrhoea test date D.DE807" O where O.effective.toInterval() during "Measurement Period" -define "Gonorrhoea test date (Care) Value": - "Gonorrhoea test date (Care)" O +define "Gonorrhoea test date D.DE807 Value": + "Gonorrhoea test date D.DE807" O return O.value -/* End of Gonorrhoea test date (Care) */ +/* End of Gonorrhoea test date D.DE807 */ /* -@dataElement: HIV.D.DE808 - Gonorrhoea test result (Care) +@dataElement: HIV.D.DE808 - Gonorrhoea test result @activity: HIV.D26 Offer sexual and reproductive health services @description: Result from Gonorrhoea test */ // TODO: Replace placeholder with relevant CQL logic -define "Gonorrhoea test result (Care)": - exists "Gonorrhoea test result (Care) Observation" -define "Gonorrhoea test result (Care) Observation": - Elements."Gonorrhoea test result (Care) Observation" O +define "Gonorrhoea test result D.DE808": + exists "Gonorrhoea test result D.DE808 Observation" +define "Gonorrhoea test result D.DE808 Observation": + Elements."Gonorrhoea test result D.DE808 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Gonorrhoea test result (Care) */ +/* End of Gonorrhoea test result D.DE808 */ /* -@dataElement: HIV.D.DE809 - Positive (Care|DDE809) +@dataElement: HIV.D.DE809 - Positive @activity: HIV.D26 Offer sexual and reproductive health services @description: Test result is positive for Neisseria gonorrhoeae */ // TODO: Replace placeholder with relevant CQL logic -define "Positive (Care|DDE809)": - exists "Positive (Care|DDE809) Condition" - or exists "Positive (Care|DDE809) Observation" -define "Positive (Care|DDE809) Condition": - Elements."Positive (Care|DDE809) Condition" C +define "Positive D.DE809": + exists "Positive D.DE809 Condition" + or exists "Positive D.DE809 Observation" +define "Positive D.DE809 Condition": + Elements."Positive D.DE809 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Positive (Care|DDE809) Observation": - Elements."Positive (Care|DDE809) Observation" O +define "Positive D.DE809 Observation": + Elements."Positive D.DE809 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Positive (Care|DDE809) */ +/* End of Positive D.DE809 */ /* -@dataElement: HIV.D.DE810 - Negative (Care|DDE810) +@dataElement: HIV.D.DE810 - Negative @activity: HIV.D26 Offer sexual and reproductive health services @description: Test result is negative for Neisseria gonorrhoeae */ // TODO: Replace placeholder with relevant CQL logic -define "Negative (Care|DDE810)": - exists "Negative (Care|DDE810) Condition" - or exists "Negative (Care|DDE810) Observation" -define "Negative (Care|DDE810) Condition": - Elements."Negative (Care|DDE810) Condition" C +define "Negative D.DE810": + exists "Negative D.DE810 Condition" + or exists "Negative D.DE810 Observation" +define "Negative D.DE810 Condition": + Elements."Negative D.DE810 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Negative (Care|DDE810) Observation": - Elements."Negative (Care|DDE810) Observation" O +define "Negative D.DE810 Observation": + Elements."Negative D.DE810 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Negative (Care|DDE810) */ +/* End of Negative D.DE810 */ /* -@dataElement: HIV.D.DE811 - Inconclusive (Care|DDE811) +@dataElement: HIV.D.DE811 - Inconclusive @activity: HIV.D26 Offer sexual and reproductive health services @description: Test result is inconclusive */ // TODO: Replace placeholder with relevant CQL logic -define "Inconclusive (Care|DDE811)": - exists "Inconclusive (Care|DDE811) Condition" - or exists "Inconclusive (Care|DDE811) Observation" -define "Inconclusive (Care|DDE811) Condition": - Elements."Inconclusive (Care|DDE811) Condition" C +define "Inconclusive D.DE811": + exists "Inconclusive D.DE811 Condition" + or exists "Inconclusive D.DE811 Observation" +define "Inconclusive D.DE811 Condition": + Elements."Inconclusive D.DE811 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Inconclusive (Care|DDE811) Observation": - Elements."Inconclusive (Care|DDE811) Observation" O +define "Inconclusive D.DE811 Observation": + Elements."Inconclusive D.DE811 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Inconclusive (Care|DDE811) */ +/* End of Inconclusive D.DE811 */ /* -@dataElement: HIV.D.DE812 - Gonorrhoea treatment start date (Care) +@dataElement: HIV.D.DE812 - Gonorrhoea treatment start date @activity: HIV.D26 Offer sexual and reproductive health services @description: Date of initiation of Gonorrhoea treatment */ // TODO: Replace placeholder with relevant CQL logic -define "Gonorrhoea treatment start date (Care)": - Elements."Gonorrhoea treatment start date (Care)" O +define "Gonorrhoea treatment start date D.DE812": + Elements."Gonorrhoea treatment start date D.DE812" O where O.effective.toInterval() during "Measurement Period" -define "Gonorrhoea treatment start date (Care) Value": - "Gonorrhoea treatment start date (Care)" O +define "Gonorrhoea treatment start date D.DE812 Value": + "Gonorrhoea treatment start date D.DE812" O return O.value -/* End of Gonorrhoea treatment start date (Care) */ +/* End of Gonorrhoea treatment start date D.DE812 */ /* -@dataElement: HIV.D.DE813 - Type of specimen (Care) +@dataElement: HIV.D.DE813 - Type of specimen @activity: HIV.D26 Offer sexual and reproductive health services @description: Type of specimen to be collected */ // TODO: Replace placeholder with relevant CQL logic -define "Type of specimen (Care)": - exists "Type of specimen (Care) Observation" -define "Type of specimen (Care) Observation": - Elements."Type of specimen (Care) Observation" O +define "Type of specimen D.DE813": + exists "Type of specimen D.DE813 Observation" +define "Type of specimen D.DE813 Observation": + Elements."Type of specimen D.DE813 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Type of specimen (Care) */ +/* End of Type of specimen D.DE813 */ /* -@dataElement: HIV.D.DE814 - Blood (Care) +@dataElement: HIV.D.DE814 - Blood @activity: HIV.D26 Offer sexual and reproductive health services @description: Blood specimen to be collected */ // TODO: Replace placeholder with relevant CQL logic -define "Blood (Care)": - exists "Blood (Care) Condition" - or exists "Blood (Care) Observation" -define "Blood (Care) Condition": - Elements."Blood (Care) Condition" C +define "Blood D.DE814": + exists "Blood D.DE814 Condition" + or exists "Blood D.DE814 Observation" +define "Blood D.DE814 Condition": + Elements."Blood D.DE814 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Blood (Care) Observation": - Elements."Blood (Care) Observation" O +define "Blood D.DE814 Observation": + Elements."Blood D.DE814 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Blood (Care) */ +/* End of Blood D.DE814 */ /* -@dataElement: HIV.D.DE815 - Urine (Care) +@dataElement: HIV.D.DE815 - Urine @activity: HIV.D26 Offer sexual and reproductive health services @description: Urine specimen to be collected */ // TODO: Replace placeholder with relevant CQL logic -define "Urine (Care)": - exists "Urine (Care) Condition" - or exists "Urine (Care) Observation" -define "Urine (Care) Condition": - Elements."Urine (Care) Condition" C +define "Urine D.DE815": + exists "Urine D.DE815 Condition" + or exists "Urine D.DE815 Observation" +define "Urine D.DE815 Condition": + Elements."Urine D.DE815 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Urine (Care) Observation": - Elements."Urine (Care) Observation" O +define "Urine D.DE815 Observation": + Elements."Urine D.DE815 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Urine (Care) */ +/* End of Urine D.DE815 */ /* -@dataElement: HIV.D.DE816 - Cervical or vaginal swab (Care) +@dataElement: HIV.D.DE816 - Cervical or vaginal swab @activity: HIV.D26 Offer sexual and reproductive health services @description: Cervical or vaginal swab to be collected */ // TODO: Replace placeholder with relevant CQL logic -define "Cervical or vaginal swab (Care)": - exists "Cervical or vaginal swab (Care) Condition" - or exists "Cervical or vaginal swab (Care) Observation" -define "Cervical or vaginal swab (Care) Condition": - Elements."Cervical or vaginal swab (Care) Condition" C +define "Cervical or vaginal swab D.DE816": + exists "Cervical or vaginal swab D.DE816 Condition" + or exists "Cervical or vaginal swab D.DE816 Observation" +define "Cervical or vaginal swab D.DE816 Condition": + Elements."Cervical or vaginal swab D.DE816 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Cervical or vaginal swab (Care) Observation": - Elements."Cervical or vaginal swab (Care) Observation" O +define "Cervical or vaginal swab D.DE816 Observation": + Elements."Cervical or vaginal swab D.DE816 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Cervical or vaginal swab (Care) */ +/* End of Cervical or vaginal swab D.DE816 */ /* -@dataElement: HIV.D.DE817 - Urethral or penile swab (Care) +@dataElement: HIV.D.DE817 - Urethral or penile swab @activity: HIV.D26 Offer sexual and reproductive health services @description: Urethral or penile swab to be collected */ // TODO: Replace placeholder with relevant CQL logic -define "Urethral or penile swab (Care)": - exists "Urethral or penile swab (Care) Condition" - or exists "Urethral or penile swab (Care) Observation" -define "Urethral or penile swab (Care) Condition": - Elements."Urethral or penile swab (Care) Condition" C +define "Urethral or penile swab D.DE817": + exists "Urethral or penile swab D.DE817 Condition" + or exists "Urethral or penile swab D.DE817 Observation" +define "Urethral or penile swab D.DE817 Condition": + Elements."Urethral or penile swab D.DE817 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Urethral or penile swab (Care) Observation": - Elements."Urethral or penile swab (Care) Observation" O +define "Urethral or penile swab D.DE817 Observation": + Elements."Urethral or penile swab D.DE817 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Urethral or penile swab (Care) */ +/* End of Urethral or penile swab D.DE817 */ /* -@dataElement: HIV.D.DE818 - Rectal swab (Care) +@dataElement: HIV.D.DE818 - Rectal swab @activity: HIV.D26 Offer sexual and reproductive health services @description: Rectal swab to be collected */ // TODO: Replace placeholder with relevant CQL logic -define "Rectal swab (Care)": - exists "Rectal swab (Care) Condition" - or exists "Rectal swab (Care) Observation" -define "Rectal swab (Care) Condition": - Elements."Rectal swab (Care) Condition" C +define "Rectal swab D.DE818": + exists "Rectal swab D.DE818 Condition" + or exists "Rectal swab D.DE818 Observation" +define "Rectal swab D.DE818 Condition": + Elements."Rectal swab D.DE818 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Rectal swab (Care) Observation": - Elements."Rectal swab (Care) Observation" O +define "Rectal swab D.DE818 Observation": + Elements."Rectal swab D.DE818 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Rectal swab (Care) */ +/* End of Rectal swab D.DE818 */ /* -@dataElement: HIV.D.DE819 - Other (Care|DDE819) +@dataElement: HIV.D.DE819 - Other @activity: HIV.D26 Offer sexual and reproductive health services @description: Other specimen type to be collected */ // TODO: Replace placeholder with relevant CQL logic -define "Other (Care|DDE819)": - exists "Other (Care|DDE819) Condition" - or exists "Other (Care|DDE819) Observation" -define "Other (Care|DDE819) Condition": - Elements."Other (Care|DDE819) Condition" C +define "Other D.DE819": + exists "Other D.DE819 Condition" + or exists "Other D.DE819 Observation" +define "Other D.DE819 Condition": + Elements."Other D.DE819 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Other (Care|DDE819) Observation": - Elements."Other (Care|DDE819) Observation" O +define "Other D.DE819 Observation": + Elements."Other D.DE819 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Other (Care|DDE819) */ +/* End of Other D.DE819 */ /* -@dataElement: HIV.D.DE828 - Neisseria gonorrhoeae test type (Care) +@dataElement: HIV.D.DE828 - Neisseria gonorrhoeae test type @activity: HIV.D26 Offer sexual and reproductive health services @description: Type of diagnostic test used for Neisseria gonorrhoeae */ // TODO: Replace placeholder with relevant CQL logic -define "Neisseria gonorrhoeae test type (Care)": - exists "Neisseria gonorrhoeae test type (Care) Observation" -define "Neisseria gonorrhoeae test type (Care) Observation": - Elements."Neisseria gonorrhoeae test type (Care) Observation" O +define "Neisseria gonorrhoeae test type D.DE828": + exists "Neisseria gonorrhoeae test type D.DE828 Observation" +define "Neisseria gonorrhoeae test type D.DE828 Observation": + Elements."Neisseria gonorrhoeae test type D.DE828 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Neisseria gonorrhoeae test type (Care) */ +/* End of Neisseria gonorrhoeae test type D.DE828 */ /* -@dataElement: HIV.D.DE829 - NAAT (Care) +@dataElement: HIV.D.DE829 - NAAT @activity: HIV.D26 Offer sexual and reproductive health services @description: Nucleic Acid Amplification Test (NAAT) used */ // TODO: Replace placeholder with relevant CQL logic -define "NAAT (Care)": - exists "NAAT (Care) Condition" - or exists "NAAT (Care) Observation" -define "NAAT (Care) Condition": - Elements."NAAT (Care) Condition" C +define "NAAT D.DE829": + exists "NAAT D.DE829 Condition" + or exists "NAAT D.DE829 Observation" +define "NAAT D.DE829 Condition": + Elements."NAAT D.DE829 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "NAAT (Care) Observation": - Elements."NAAT (Care) Observation" O +define "NAAT D.DE829 Observation": + Elements."NAAT D.DE829 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of NAAT (Care) */ +/* End of NAAT D.DE829 */ /* -@dataElement: HIV.D.DE830 - POC Test (Care) +@dataElement: HIV.D.DE830 - POC Test @activity: HIV.D26 Offer sexual and reproductive health services @description: Point-of-care (POC) test used */ // TODO: Replace placeholder with relevant CQL logic -define "POC Test (Care)": - exists "POC Test (Care) Condition" - or exists "POC Test (Care) Observation" -define "POC Test (Care) Condition": - Elements."POC Test (Care) Condition" C +define "POC Test D.DE830": + exists "POC Test D.DE830 Condition" + or exists "POC Test D.DE830 Observation" +define "POC Test D.DE830 Condition": + Elements."POC Test D.DE830 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "POC Test (Care) Observation": - Elements."POC Test (Care) Observation" O +define "POC Test D.DE830 Observation": + Elements."POC Test D.DE830 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of POC Test (Care) */ +/* End of POC Test D.DE830 */ /* -@dataElement: HIV.D.DE831 - Culture (Care) +@dataElement: HIV.D.DE831 - Culture @activity: HIV.D26 Offer sexual and reproductive health services @description: Culture test used */ // TODO: Replace placeholder with relevant CQL logic -define "Culture (Care)": - exists "Culture (Care) Condition" - or exists "Culture (Care) Observation" -define "Culture (Care) Condition": - Elements."Culture (Care) Condition" C +define "Culture D.DE831": + exists "Culture D.DE831 Condition" + or exists "Culture D.DE831 Observation" +define "Culture D.DE831 Condition": + Elements."Culture D.DE831 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Culture (Care) Observation": - Elements."Culture (Care) Observation" O +define "Culture D.DE831 Observation": + Elements."Culture D.DE831 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Culture (Care) */ +/* End of Culture D.DE831 */ /* -@dataElement: HIV.D.DE832 - Microscopy (Care) +@dataElement: HIV.D.DE832 - Microscopy @activity: HIV.D26 Offer sexual and reproductive health services @description: Microscopy test used */ // TODO: Replace placeholder with relevant CQL logic -define "Microscopy (Care)": - exists "Microscopy (Care) Condition" - or exists "Microscopy (Care) Observation" -define "Microscopy (Care) Condition": - Elements."Microscopy (Care) Condition" C +define "Microscopy D.DE832": + exists "Microscopy D.DE832 Condition" + or exists "Microscopy D.DE832 Observation" +define "Microscopy D.DE832 Condition": + Elements."Microscopy D.DE832 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Microscopy (Care) Observation": - Elements."Microscopy (Care) Observation" O +define "Microscopy D.DE832 Observation": + Elements."Microscopy D.DE832 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Microscopy (Care) */ +/* End of Microscopy D.DE832 */ /* -@dataElement: HIV.D.DE833 - Other (Care|DDE833) +@dataElement: HIV.D.DE833 - Other @activity: HIV.D26 Offer sexual and reproductive health services @description: Other type of test used */ // TODO: Replace placeholder with relevant CQL logic -define "Other (Care|DDE833)": - exists "Other (Care|DDE833) Condition" - or exists "Other (Care|DDE833) Observation" -define "Other (Care|DDE833) Condition": - Elements."Other (Care|DDE833) Condition" C +define "Other D.DE833": + exists "Other D.DE833 Condition" + or exists "Other D.DE833 Observation" +define "Other D.DE833 Condition": + Elements."Other D.DE833 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Other (Care|DDE833) Observation": - Elements."Other (Care|DDE833) Observation" O +define "Other D.DE833 Observation": + Elements."Other D.DE833 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Other (Care|DDE833) */ +/* End of Other D.DE833 */ /* -@dataElement: HIV.D.DE952 - Date of TB diagnosis (HIV) +@dataElement: HIV.D.DE952 - Date of TB diagnosis @activity: HIV.D8 Capture or update client history @description: The date when the diagnosis was established */ // TODO: Replace placeholder with relevant CQL logic -define "Date of TB diagnosis (HIV)": - Elements."Date of TB diagnosis (HIV)" O +define "Date of TB diagnosis": + Elements."Date of TB diagnosis" O where O.effective.toInterval() during "Measurement Period" -define "Date of TB diagnosis (HIV) Value": - "Date of TB diagnosis (HIV)" O +define "Date of TB diagnosis Value": + "Date of TB diagnosis" O return O.value -/* End of Date of TB diagnosis (HIV) */ +/* End of Date of TB diagnosis */ /* -@dataElement: HIV.D.DE954 - TB preventive treatment TPT start date (HIV) +@dataElement: HIV.D.DE954 - TB preventive treatment TPT start date @activity: HIV.D8 Capture or update client history @description: The date on which the client began taking TPT */ // TODO: Replace placeholder with relevant CQL logic -define "TB preventive treatment TPT start date (HIV)": - Elements."TB preventive treatment TPT start date (HIV)" O +define "TB preventive treatment TPT start date": + Elements."TB preventive treatment TPT start date" O where O.effective.toInterval() during "Measurement Period" -define "TB preventive treatment TPT start date (HIV) Value": - "TB preventive treatment TPT start date (HIV)" O +define "TB preventive treatment TPT start date Value": + "TB preventive treatment TPT start date" O return O.value -/* End of TB preventive treatment TPT start date (HIV) */ +/* End of TB preventive treatment TPT start date */ /* -@dataElement: HIV.D.DE990 - TB screening date (HIV) +@dataElement: HIV.D.DE990 - TB screening date @activity: HIV.D4 Screen for TB @description: Date the TB screening was conducted */ // TODO: Replace placeholder with relevant CQL logic -define "TB screening date (HIV)": - Elements."TB screening date (HIV)" O +define "TB screening date": + Elements."TB screening date" O where O.effective.toInterval() during "Measurement Period" -define "TB screening date (HIV) Value": - "TB screening date (HIV)" O +define "TB screening date Value": + "TB screening date" O return O.value -/* End of TB screening date (HIV) */ +/* End of TB screening date */ /* -@dataElement: HIV.D.DE992 - TB diagnostic test category (HIV) +@dataElement: HIV.D.DE992 - TB diagnostic test category @activity: HIV.D4 Screen for TB @description: The type of diagnostic test performed to detect tuberculosis (TB) disease */ // TODO: Replace placeholder with relevant CQL logic -define "TB diagnostic test category (HIV)": - exists "TB diagnostic test category (HIV) Observation" -define "TB diagnostic test category (HIV) Observation": - Elements."TB diagnostic test category (HIV) Observation" O +define "TB diagnostic test category": + exists "TB diagnostic test category Observation" +define "TB diagnostic test category Observation": + Elements."TB diagnostic test category Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of TB diagnostic test category (HIV) */ +/* End of TB diagnostic test category */ /* -@dataElement: HIV.D.DE993 - LF-LAM (HIV) +@dataElement: HIV.D.DE993 - LF-LAM @activity: HIV.D4 Screen for TB @description: Client tested for tuberculosis with a lateral flow urine lipoarabinomannan assay */ // TODO: Replace placeholder with relevant CQL logic -define "LF-LAM (HIV)": - exists "LF-LAM (HIV) Condition" - or exists "LF-LAM (HIV) Observation" -define "LF-LAM (HIV) Condition": - Elements."LF-LAM (HIV) Condition" C +define "LF-LAM": + exists "LF-LAM Condition" + or exists "LF-LAM Observation" +define "LF-LAM Condition": + Elements."LF-LAM Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "LF-LAM (HIV) Observation": - Elements."LF-LAM (HIV) Observation" O +define "LF-LAM Observation": + Elements."LF-LAM Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of LF-LAM (HIV) */ +/* End of LF-LAM */ /* -@dataElement: HIV.D.DE994 - mWRD test for TB (HIV) +@dataElement: HIV.D.DE994 - mWRD test for TB @activity: HIV.D4 Screen for TB @description: Client tested with a WHO-recommended molecular diagnostic test to detect Mycobacterium tuberculosis (MTB) */ // TODO: Replace placeholder with relevant CQL logic -define "mWRD test for TB (HIV)": - exists "mWRD test for TB (HIV) Condition" - or exists "mWRD test for TB (HIV) Observation" -define "mWRD test for TB (HIV) Condition": - Elements."mWRD test for TB (HIV) Condition" C +define "mWRD test for TB": + exists "mWRD test for TB Condition" + or exists "mWRD test for TB Observation" +define "mWRD test for TB Condition": + Elements."mWRD test for TB Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "mWRD test for TB (HIV) Observation": - Elements."mWRD test for TB (HIV) Observation" O +define "mWRD test for TB Observation": + Elements."mWRD test for TB Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of mWRD test for TB (HIV) */ +/* End of mWRD test for TB */ /* -@dataElement: HIV.D.DE995 - Microscopy - Sputum acid-fast bacilli AFB (HIV) +@dataElement: HIV.D.DE995 - Microscopy - Sputum acid-fast bacilli AFB @activity: HIV.D4 Screen for TB @description: Client tested for tuberculosis with a sputum acid-fast bacilli (AFB) */ // TODO: Replace placeholder with relevant CQL logic -define "Microscopy - Sputum acid-fast bacilli AFB (HIV)": - exists "Microscopy - Sputum acid-fast bacilli AFB (HIV) Condition" - or exists "Microscopy - Sputum acid-fast bacilli AFB (HIV) Observation" -define "Microscopy - Sputum acid-fast bacilli AFB (HIV) Condition": - Elements."Microscopy - Sputum acid-fast bacilli AFB (HIV) Condition" C +define "Microscopy - Sputum acid-fast bacilli AFB": + exists "Microscopy - Sputum acid-fast bacilli AFB Condition" + or exists "Microscopy - Sputum acid-fast bacilli AFB Observation" +define "Microscopy - Sputum acid-fast bacilli AFB Condition": + Elements."Microscopy - Sputum acid-fast bacilli AFB Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Microscopy - Sputum acid-fast bacilli AFB (HIV) Observation": - Elements."Microscopy - Sputum acid-fast bacilli AFB (HIV) Observation" O +define "Microscopy - Sputum acid-fast bacilli AFB Observation": + Elements."Microscopy - Sputum acid-fast bacilli AFB Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Microscopy - Sputum acid-fast bacilli AFB (HIV) */ +/* End of Microscopy - Sputum acid-fast bacilli AFB */ /* -@dataElement: HIV.D.DE996 - TB Culture (HIV) +@dataElement: HIV.D.DE996 - TB Culture @activity: HIV.D4 Screen for TB @description: Client tested for tuberculosis (TB) with a culture */ // TODO: Replace placeholder with relevant CQL logic -define "TB Culture (HIV)": - exists "TB Culture (HIV) Condition" - or exists "TB Culture (HIV) Observation" -define "TB Culture (HIV) Condition": - Elements."TB Culture (HIV) Condition" C +define "TB Culture": + exists "TB Culture Condition" + or exists "TB Culture Observation" +define "TB Culture Condition": + Elements."TB Culture Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "TB Culture (HIV) Observation": - Elements."TB Culture (HIV) Observation" O +define "TB Culture Observation": + Elements."TB Culture Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of TB Culture (HIV) */ +/* End of TB Culture */ /* -@dataElement: HIV.D.DE997 - TB diagnostic test date (HIV) +@dataElement: HIV.D.DE997 - TB diagnostic test date @activity: HIV.D4 Screen for TB @description: The date when TB diagnostic test was performed */ // TODO: Replace placeholder with relevant CQL logic -define "TB diagnostic test date (HIV)": - Elements."TB diagnostic test date (HIV)" O +define "TB diagnostic test date": + Elements."TB diagnostic test date" O where O.effective.toInterval() during "Measurement Period" -define "TB diagnostic test date (HIV) Value": - "TB diagnostic test date (HIV)" O +define "TB diagnostic test date Value": + "TB diagnostic test date" O return O.value -/* End of TB diagnostic test date (HIV) */ +/* End of TB diagnostic test date */ /* -@dataElement: HIV.D.DE1001 - TB treatment start date (HIV) +@dataElement: HIV.D.DE1001 - TB treatment start date @activity: HIV.D8 Capture or update client history @description: The date on which the client start or restarted tuberculosis (TB) treatment */ // TODO: Replace placeholder with relevant CQL logic -define "TB treatment start date (HIV)": - Elements."TB treatment start date (HIV)" O +define "TB treatment start date": + Elements."TB treatment start date" O where O.effective.toInterval() during "Measurement Period" -define "TB treatment start date (HIV) Value": - "TB treatment start date (HIV)" O +define "TB treatment start date Value": + "TB treatment start date" O return O.value -/* End of TB treatment start date (HIV) */ +/* End of TB treatment start date */ /* -@dataElement: HIV.D.DE1017 - Eligible for TB preventive treatment (HIV) +@dataElement: HIV.D.DE1017 - Eligible for TB preventive treatment @activity: HIV.D14 Prevent, screen, and manage comorbidities and coinfections @description: Client is eligible for tuberculosis preventive treatment (TPT) */ // TODO: Replace placeholder with relevant CQL logic -define "Eligible for TB preventive treatment (HIV)": - exists "Eligible for TB preventive treatment (HIV) Observation" -define "Eligible for TB preventive treatment (HIV) Observation": - Elements."Eligible for TB preventive treatment (HIV) Observation" O +define "Eligible for TB preventive treatment": + exists "Eligible for TB preventive treatment Observation" +define "Eligible for TB preventive treatment Observation": + Elements."Eligible for TB preventive treatment Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Eligible for TB preventive treatment (HIV) */ +/* End of Eligible for TB preventive treatment */ /* -@dataElement: HIV.D.DE1028 - TPT regimen type (HIV) +@dataElement: HIV.D.DE1028 - TPT regimen type @activity: HIV.D4 Screen for TB @description: Type of TPT regimen the client is currently on */ // TODO: Replace placeholder with relevant CQL logic -define "TPT regimen type (HIV)": - exists "TPT regimen type (HIV) Observation" -define "TPT regimen type (HIV) Observation": - Elements."TPT regimen type (HIV) Observation" O +define "TPT regimen type": + exists "TPT regimen type Observation" +define "TPT regimen type Observation": + Elements."TPT regimen type Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of TPT regimen type (HIV) */ +/* End of TPT regimen type */ /* -@dataElement: HIV.D.DE1029 - 3HP (HIV) +@dataElement: HIV.D.DE1029 - 3HP @activity: HIV.D4 Screen for TB @description: The client's current TPT regimen is 3HP */ // TODO: Replace placeholder with relevant CQL logic -define "3HP (HIV)": - exists "3HP (HIV) Condition" - or exists "3HP (HIV) Observation" -define "3HP (HIV) Condition": - Elements."3HP (HIV) Condition" C +define "3HP": + exists "3HP Condition" + or exists "3HP Observation" +define "3HP Condition": + Elements."3HP Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "3HP (HIV) Observation": - Elements."3HP (HIV) Observation" O +define "3HP Observation": + Elements."3HP Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of 3HP (HIV) */ +/* End of 3HP */ /* -@dataElement: HIV.D.DE1030 - 1HP (HIV) +@dataElement: HIV.D.DE1030 - 1HP @activity: HIV.D4 Screen for TB @description: The client's current TPT regimen is 1HP */ // TODO: Replace placeholder with relevant CQL logic -define "1HP (HIV)": - exists "1HP (HIV) Condition" - or exists "1HP (HIV) Observation" -define "1HP (HIV) Condition": - Elements."1HP (HIV) Condition" C +define "1HP": + exists "1HP Condition" + or exists "1HP Observation" +define "1HP Condition": + Elements."1HP Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "1HP (HIV) Observation": - Elements."1HP (HIV) Observation" O +define "1HP Observation": + Elements."1HP Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of 1HP (HIV) */ +/* End of 1HP */ /* -@dataElement: HIV.D.DE1031 - 6H (HIV) +@dataElement: HIV.D.DE1031 - 6H @activity: HIV.D4 Screen for TB @description: The client's current TPT regimen is 6H */ // TODO: Replace placeholder with relevant CQL logic -define "6H (HIV)": - exists "6H (HIV) Condition" - or exists "6H (HIV) Observation" -define "6H (HIV) Condition": - Elements."6H (HIV) Condition" C +define "6H": + exists "6H Condition" + or exists "6H Observation" +define "6H Condition": + Elements."6H Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "6H (HIV) Observation": - Elements."6H (HIV) Observation" O +define "6H Observation": + Elements."6H Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of 6H (HIV) */ +/* End of 6H */ /* -@dataElement: HIV.D.DE1032 - Six months of levofloxacin daily (HIV) +@dataElement: HIV.D.DE1032 - Six months of levofloxacin daily @activity: HIV.D4 Screen for TB @description: The client's current TPT regimen is six months of levofloxacin daily */ // TODO: Replace placeholder with relevant CQL logic -define "Six months of levofloxacin daily (HIV)": - exists "Six months of levofloxacin daily (HIV) Condition" - or exists "Six months of levofloxacin daily (HIV) Observation" -define "Six months of levofloxacin daily (HIV) Condition": - Elements."Six months of levofloxacin daily (HIV) Condition" C +define "Six months of levofloxacin daily": + exists "Six months of levofloxacin daily Condition" + or exists "Six months of levofloxacin daily Observation" +define "Six months of levofloxacin daily Condition": + Elements."Six months of levofloxacin daily Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Six months of levofloxacin daily (HIV) Observation": - Elements."Six months of levofloxacin daily (HIV) Observation" O +define "Six months of levofloxacin daily Observation": + Elements."Six months of levofloxacin daily Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Six months of levofloxacin daily (HIV) */ +/* End of Six months of levofloxacin daily */ /* -@dataElement: HIV.D.DE1033 - Other TB preventive treatment TPT regimen (HIV) +@dataElement: HIV.D.DE1033 - Other TB preventive treatment TPT regimen @activity: HIV.D4 Screen for TB @description: The client's current TPT regimen is another regimen than those listed above */ // TODO: Replace placeholder with relevant CQL logic -define "Other TB preventive treatment TPT regimen (HIV)": - exists "Other TB preventive treatment TPT regimen (HIV) Condition" - or exists "Other TB preventive treatment TPT regimen (HIV) Observation" -define "Other TB preventive treatment TPT regimen (HIV) Condition": - Elements."Other TB preventive treatment TPT regimen (HIV) Condition" C +define "Other TB preventive treatment TPT regimen": + exists "Other TB preventive treatment TPT regimen Condition" + or exists "Other TB preventive treatment TPT regimen Observation" +define "Other TB preventive treatment TPT regimen Condition": + Elements."Other TB preventive treatment TPT regimen Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Other TB preventive treatment TPT regimen (HIV) Observation": - Elements."Other TB preventive treatment TPT regimen (HIV) Observation" O +define "Other TB preventive treatment TPT regimen Observation": + Elements."Other TB preventive treatment TPT regimen Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Other TB preventive treatment TPT regimen (HIV) */ +/* End of Other TB preventive treatment TPT regimen */ /* -@dataElement: HIV.D.DE1034 - TB preventive treatment TPT status (HIV) +@dataElement: HIV.D.DE1034 - TB preventive treatment TPT status @activity: HIV.D4 Screen for TB @description: Indicates the current status of TB preventive treatment (TPT) */ // TODO: Replace placeholder with relevant CQL logic -define "TB preventive treatment TPT status (HIV)": - exists "TB preventive treatment TPT status (HIV) Observation" -define "TB preventive treatment TPT status (HIV) Observation": - Elements."TB preventive treatment TPT status (HIV) Observation" O +define "TB preventive treatment TPT status": + exists "TB preventive treatment TPT status Observation" +define "TB preventive treatment TPT status Observation": + Elements."TB preventive treatment TPT status Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of TB preventive treatment TPT status (HIV) */ +/* End of TB preventive treatment TPT status */ /* -@dataElement: HIV.D.DE1035 - Not started (HIV) +@dataElement: HIV.D.DE1035 - Not started @activity: HIV.D4 Screen for TB @description: The client did not start the TB preventive treatment (TPT) */ // TODO: Replace placeholder with relevant CQL logic -define "Not started (HIV)": - exists "Not started (HIV) Condition" - or exists "Not started (HIV) Observation" -define "Not started (HIV) Condition": - Elements."Not started (HIV) Condition" C +define "Not started": + exists "Not started Condition" + or exists "Not started Observation" +define "Not started Condition": + Elements."Not started Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Not started (HIV) Observation": - Elements."Not started (HIV) Observation" O +define "Not started Observation": + Elements."Not started Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Not started (HIV) */ +/* End of Not started */ /* -@dataElement: HIV.D.DE1036 - On TPT (HIV) +@dataElement: HIV.D.DE1036 - On TPT @activity: HIV.D4 Screen for TB @description: The client started the TB preventive treatment (TPT) and is currently taking the medication, without treatment interruptions */ // TODO: Replace placeholder with relevant CQL logic -define "On TPT (HIV)": - exists "On TPT (HIV) Condition" - or exists "On TPT (HIV) Observation" -define "On TPT (HIV) Condition": - Elements."On TPT (HIV) Condition" C +define "On TPT": + exists "On TPT Condition" + or exists "On TPT Observation" +define "On TPT Condition": + Elements."On TPT Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "On TPT (HIV) Observation": - Elements."On TPT (HIV) Observation" O +define "On TPT Observation": + Elements."On TPT Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of On TPT (HIV) */ +/* End of On TPT */ /* -@dataElement: HIV.D.DE1037 - On TPT with interruptions (HIV) +@dataElement: HIV.D.DE1037 - On TPT with interruptions @activity: HIV.D4 Screen for TB @description: The client started the TB preventive treatment (TPT) and is currently taking the medication, with treatment interruptions */ // TODO: Replace placeholder with relevant CQL logic -define "On TPT with interruptions (HIV)": - exists "On TPT with interruptions (HIV) Condition" - or exists "On TPT with interruptions (HIV) Observation" -define "On TPT with interruptions (HIV) Condition": - Elements."On TPT with interruptions (HIV) Condition" C +define "On TPT with interruptions": + exists "On TPT with interruptions Condition" + or exists "On TPT with interruptions Observation" +define "On TPT with interruptions Condition": + Elements."On TPT with interruptions Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "On TPT with interruptions (HIV) Observation": - Elements."On TPT with interruptions (HIV) Observation" O +define "On TPT with interruptions Observation": + Elements."On TPT with interruptions Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of On TPT with interruptions (HIV) */ +/* End of On TPT with interruptions */ /* -@dataElement: HIV.D.DE1038 - On hold (HIV) +@dataElement: HIV.D.DE1038 - On hold @activity: HIV.D4 Screen for TB @description: The health care worker has temporarily stopped the TB preventive treatment (TPT), but TPT is expected to continue again later. May also be called 'suspended'. */ // TODO: Replace placeholder with relevant CQL logic -define "On hold (HIV)": - exists "On hold (HIV) Condition" - or exists "On hold (HIV) Observation" -define "On hold (HIV) Condition": - Elements."On hold (HIV) Condition" C +define "On hold": + exists "On hold Condition" + or exists "On hold Observation" +define "On hold Condition": + Elements."On hold Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "On hold (HIV) Observation": - Elements."On hold (HIV) Observation" O +define "On hold Observation": + Elements."On hold Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of On hold (HIV) */ +/* End of On hold */ /* -@dataElement: HIV.D.DE1039 - Completed (HIV) +@dataElement: HIV.D.DE1039 - Completed @activity: HIV.D4 Screen for TB @description: TB preventive treatment (TPT) was completed */ // TODO: Replace placeholder with relevant CQL logic -define "Completed (HIV)": - exists "Completed (HIV) Condition" - or exists "Completed (HIV) Observation" -define "Completed (HIV) Condition": - Elements."Completed (HIV) Condition" C +define "Completed": + exists "Completed Condition" + or exists "Completed Observation" +define "Completed Condition": + Elements."Completed Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Completed (HIV) Observation": - Elements."Completed (HIV) Observation" O +define "Completed Observation": + Elements."Completed Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Completed (HIV) */ +/* End of Completed */ /* -@dataElement: HIV.E.DE41 - Timing of ART initiation (PMTCT) +@dataElement: HIV.E.DE41 - Timing of ART initiation @activity: HIV.E1 Capture or update mother's history @description: When the pregnant woman or mother initiated ART, for women living with HIV. */ // TODO: Replace placeholder with relevant CQL logic -define "Timing of ART initiation (PMTCT)": - exists "Timing of ART initiation (PMTCT) Observation" -define "Timing of ART initiation (PMTCT) Observation": - Elements."Timing of ART initiation (PMTCT) Observation" O +define "Timing of ART initiation": + exists "Timing of ART initiation Observation" +define "Timing of ART initiation Observation": + Elements."Timing of ART initiation Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Timing of ART initiation (PMTCT) */ +/* End of Timing of ART initiation */ /* -@dataElement: HIV.E.DE42 - Already on ART at first antenatal care visit (PMTCT) +@dataElement: HIV.E.DE42 - Already on ART at first antenatal care visit @activity: HIV.E1 Capture or update mother's history @description: The pregnant woman was already on antiretroviral therapy (ART) at first antenatal care visit */ // TODO: Replace placeholder with relevant CQL logic -define "Already on ART at first antenatal care visit (PMTCT)": - exists "Already on ART at first antenatal care visit (PMTCT) Condition" - or exists "Already on ART at first antenatal care visit (PMTCT) Observation" -define "Already on ART at first antenatal care visit (PMTCT) Condition": - Elements."Already on ART at first antenatal care visit (PMTCT) Condition" C +define "Already on ART at first antenatal care visit": + exists "Already on ART at first antenatal care visit Condition" + or exists "Already on ART at first antenatal care visit Observation" +define "Already on ART at first antenatal care visit Condition": + Elements."Already on ART at first antenatal care visit Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Already on ART at first antenatal care visit (PMTCT) Observation": - Elements."Already on ART at first antenatal care visit (PMTCT) Observation" O +define "Already on ART at first antenatal care visit Observation": + Elements."Already on ART at first antenatal care visit Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Already on ART at first antenatal care visit (PMTCT) */ +/* End of Already on ART at first antenatal care visit */ /* -@dataElement: HIV.E.DE43 - Newly on ART during pregnancy (PMTCT) +@dataElement: HIV.E.DE43 - Newly on ART during pregnancy @activity: HIV.E1 Capture or update mother's history @description: The pregnant woman started ART during her pregnancy */ // TODO: Replace placeholder with relevant CQL logic -define "Newly on ART during pregnancy (PMTCT)": - exists "Newly on ART during pregnancy (PMTCT) Condition" - or exists "Newly on ART during pregnancy (PMTCT) Observation" -define "Newly on ART during pregnancy (PMTCT) Condition": - Elements."Newly on ART during pregnancy (PMTCT) Condition" C +define "Newly on ART during pregnancy": + exists "Newly on ART during pregnancy Condition" + or exists "Newly on ART during pregnancy Observation" +define "Newly on ART during pregnancy Condition": + Elements."Newly on ART during pregnancy Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Newly on ART during pregnancy (PMTCT) Observation": - Elements."Newly on ART during pregnancy (PMTCT) Observation" O +define "Newly on ART during pregnancy Observation": + Elements."Newly on ART during pregnancy Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Newly on ART during pregnancy (PMTCT) */ +/* End of Newly on ART during pregnancy */ /* -@dataElement: HIV.E.DE44 - Newly on ART during labour and delivery (PMTCT) +@dataElement: HIV.E.DE44 - Newly on ART during labour and delivery @activity: HIV.E1 Capture or update mother's history @description: The woman started ART during labour and delivery */ // TODO: Replace placeholder with relevant CQL logic -define "Newly on ART during labour and delivery (PMTCT)": - exists "Newly on ART during labour and delivery (PMTCT) Condition" - or exists "Newly on ART during labour and delivery (PMTCT) Observation" -define "Newly on ART during labour and delivery (PMTCT) Condition": - Elements."Newly on ART during labour and delivery (PMTCT) Condition" C +define "Newly on ART during labour and delivery": + exists "Newly on ART during labour and delivery Condition" + or exists "Newly on ART during labour and delivery Observation" +define "Newly on ART during labour and delivery Condition": + Elements."Newly on ART during labour and delivery Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Newly on ART during labour and delivery (PMTCT) Observation": - Elements."Newly on ART during labour and delivery (PMTCT) Observation" O +define "Newly on ART during labour and delivery Observation": + Elements."Newly on ART during labour and delivery Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Newly on ART during labour and delivery (PMTCT) */ +/* End of Newly on ART during labour and delivery */ /* -@dataElement: HIV.E.DE46 - Delivery date (PMTCT) +@dataElement: HIV.E.DE46 - Delivery date @activity: HIV.E1 Capture or update mother's history @description: Date on which the woman delivered */ // TODO: Replace placeholder with relevant CQL logic -define "Delivery date (PMTCT)": - Elements."Delivery date (PMTCT)" O +define "Delivery date": + Elements."Delivery date" O where O.effective.toInterval() during "Measurement Period" -define "Delivery date (PMTCT) Value": - "Delivery date (PMTCT)" O +define "Delivery date Value": + "Delivery date" O return O.value -/* End of Delivery date (PMTCT) */ +/* End of Delivery date */ /* -@dataElement: HIV.E.DE67 - Place of delivery (PMTCT) +@dataElement: HIV.E.DE67 - Place of delivery @activity: HIV.E1 Capture or update mother's history @description: The type of place where the woman delivered */ // TODO: Replace placeholder with relevant CQL logic -define "Place of delivery (PMTCT)": - exists "Place of delivery (PMTCT) Observation" -define "Place of delivery (PMTCT) Observation": - Elements."Place of delivery (PMTCT) Observation" O +define "Place of delivery": + exists "Place of delivery Observation" +define "Place of delivery Observation": + Elements."Place of delivery Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Place of delivery (PMTCT) */ +/* End of Place of delivery */ /* -@dataElement: HIV.E.DE68 - Health facility (PMTCT) +@dataElement: HIV.E.DE68 - Health facility @activity: HIV.E1 Capture or update mother's history @description: The woman delivered at a health facility */ // TODO: Replace placeholder with relevant CQL logic -define "Health facility (PMTCT)": - exists "Health facility (PMTCT) Condition" - or exists "Health facility (PMTCT) Observation" -define "Health facility (PMTCT) Condition": - Elements."Health facility (PMTCT) Condition" C +define "Health facility": + exists "Health facility Condition" + or exists "Health facility Observation" +define "Health facility Condition": + Elements."Health facility Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Health facility (PMTCT) Observation": - Elements."Health facility (PMTCT) Observation" O +define "Health facility Observation": + Elements."Health facility Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Health facility (PMTCT) */ +/* End of Health facility */ /* -@dataElement: HIV.E.DE69 - Home (PMTCT) +@dataElement: HIV.E.DE69 - Home @activity: HIV.E1 Capture or update mother's history @description: The woman delivered at home */ // TODO: Replace placeholder with relevant CQL logic -define "Home (PMTCT)": - exists "Home (PMTCT) Condition" - or exists "Home (PMTCT) Observation" -define "Home (PMTCT) Condition": - Elements."Home (PMTCT) Condition" C +define "Home": + exists "Home Condition" + or exists "Home Observation" +define "Home Condition": + Elements."Home Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Home (PMTCT) Observation": - Elements."Home (PMTCT) Observation" O +define "Home Observation": + Elements."Home Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Home (PMTCT) */ +/* End of Home */ /* -@dataElement: HIV.E.DE70 - Other (PMTCT) +@dataElement: HIV.E.DE70 - Other @activity: HIV.E1 Capture or update mother's history @description: The woman delivered at another location that is not at home or at a health facility */ // TODO: Replace placeholder with relevant CQL logic -define "Other (PMTCT)": - exists "Other (PMTCT) Condition" - or exists "Other (PMTCT) Observation" -define "Other (PMTCT) Condition": - Elements."Other (PMTCT) Condition" C +define "Other E.DE70": + exists "Other E.DE70 Condition" + or exists "Other E.DE70 Observation" +define "Other E.DE70 Condition": + Elements."Other E.DE70 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Other (PMTCT) Observation": - Elements."Other (PMTCT) Observation" O +define "Other E.DE70 Observation": + Elements."Other E.DE70 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Other (PMTCT) */ +/* End of Other E.DE70 */ /* -@dataElement: HIV.E.DE87 - Infant date of birth (PMTCT) +@dataElement: HIV.E.DE87 - Infant date of birth @activity: HIV.E1 Capture or update mother's history @description: The infant's date of birth (DOB) if known */ // TODO: Replace placeholder with relevant CQL logic -define "Infant date of birth (PMTCT)": - Elements."Infant date of birth (PMTCT)" O +define "Infant date of birth": + Elements."Infant date of birth" O where O.effective.toInterval() during "Measurement Period" -define "Infant date of birth (PMTCT) Value": - "Infant date of birth (PMTCT)" O +define "Infant date of birth Value": + "Infant date of birth" O return O.value -/* End of Infant date of birth (PMTCT) */ +/* End of Infant date of birth */ /* -@dataElement: HIV.E.DE90 - Age of infant (PMTCT) +@dataElement: HIV.E.DE90 - Age of infant @activity: HIV.E1 Capture or update mother's history @description: Infant age calculated using date of birth */ // TODO: Replace placeholder with relevant CQL logic -define "Age of infant (PMTCT)": - Elements."Age of infant (PMTCT)" O +define "Age of infant": + Elements."Age of infant" O where O.effective.toInterval() during "Measurement Period" -define "Age of infant (PMTCT) Value": - "Age of infant (PMTCT)" O +define "Age of infant Value": + "Age of infant" O return O.value -/* End of Age of infant (PMTCT) */ +/* End of Age of infant */ /* -@dataElement: HIV.E.DE112 - HIV-exposed infant or child (PMTCT) +@dataElement: HIV.E.DE112 - HIV-exposed infant or child @activity: HIV.F6 Check whether infant/child had HIV exposure @description: Whether the infant or child was determined to have had HIV exposure */ // TODO: Replace placeholder with relevant CQL logic -define "HIV-exposed infant or child (PMTCT)": - exists "HIV-exposed infant or child (PMTCT) Observation" -define "HIV-exposed infant or child (PMTCT) Observation": - Elements."HIV-exposed infant or child (PMTCT) Observation" O +define "HIV-exposed infant or child E.DE112": + exists "HIV-exposed infant or child E.DE112 Observation" +define "HIV-exposed infant or child E.DE112 Observation": + Elements."HIV-exposed infant or child E.DE112 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of HIV-exposed infant or child (PMTCT) */ +/* End of HIV-exposed infant or child E.DE112 */ /* -@dataElement: HIV.E.DE173 - Maternal and child health service visit (PMTCT) +@dataElement: HIV.E.DE173 - Maternal and child health service visit @activity: HIV.E1 Capture or update mother's history @description: Maternal and child health service visit attended by an HIV-exposed infant */ // TODO: Replace placeholder with relevant CQL logic -define "Maternal and child health service visit (PMTCT)": - exists "Maternal and child health service visit (PMTCT) Observation" -define "Maternal and child health service visit (PMTCT) Observation": - Elements."Maternal and child health service visit (PMTCT) Observation" O +define "Maternal and child health service visit": + exists "Maternal and child health service visit Observation" +define "Maternal and child health service visit Observation": + Elements."Maternal and child health service visit Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Maternal and child health service visit (PMTCT) */ +/* End of Maternal and child health service visit */ /* -@dataElement: HIV.E.DE174 - 12-month visit (PMTCT) +@dataElement: HIV.E.DE174 - 12-month visit @activity: HIV.E1 Capture or update mother's history @description: HIV-exposed infant attending MCH services for a 12-month visit */ // TODO: Replace placeholder with relevant CQL logic -define "12-month visit (PMTCT)": - exists "12-month visit (PMTCT) Condition" - or exists "12-month visit (PMTCT) Observation" -define "12-month visit (PMTCT) Condition": - Elements."12-month visit (PMTCT) Condition" C +define "12-month visit": + exists "12-month visit Condition" + or exists "12-month visit Observation" +define "12-month visit Condition": + Elements."12-month visit Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "12-month visit (PMTCT) Observation": - Elements."12-month visit (PMTCT) Observation" O +define "12-month visit Observation": + Elements."12-month visit Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of 12-month visit (PMTCT) */ +/* End of 12-month visit */ /* -@dataElement: HIV.E.DE175 - 24-month visit (PMTCT) +@dataElement: HIV.E.DE175 - 24-month visit @activity: HIV.E1 Capture or update mother's history @description: HIV-exposed infants attending MCH services for a 24-month visit */ // TODO: Replace placeholder with relevant CQL logic -define "24-month visit (PMTCT)": - exists "24-month visit (PMTCT) Condition" - or exists "24-month visit (PMTCT) Observation" -define "24-month visit (PMTCT) Condition": - Elements."24-month visit (PMTCT) Condition" C +define "24-month visit": + exists "24-month visit Condition" + or exists "24-month visit Observation" +define "24-month visit Condition": + Elements."24-month visit Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "24-month visit (PMTCT) Observation": - Elements."24-month visit (PMTCT) Observation" O +define "24-month visit Observation": + Elements."24-month visit Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of 24-month visit (PMTCT) */ +/* End of 24-month visit */ /* -@dataElement: HIV.E.DE176 - First visit after the end of breastfeeding (PMTCT) +@dataElement: HIV.E.DE176 - First visit after the end of breastfeeding @activity: HIV.E1 Capture or update mother's history @description: HIV-exposed infant attending MCH services for a first visit after the end of breastfeeding */ // TODO: Replace placeholder with relevant CQL logic -define "First visit after the end of breastfeeding (PMTCT)": - exists "First visit after the end of breastfeeding (PMTCT) Condition" - or exists "First visit after the end of breastfeeding (PMTCT) Observation" -define "First visit after the end of breastfeeding (PMTCT) Condition": - Elements."First visit after the end of breastfeeding (PMTCT) Condition" C +define "First visit after the end of breastfeeding": + exists "First visit after the end of breastfeeding Condition" + or exists "First visit after the end of breastfeeding Observation" +define "First visit after the end of breastfeeding Condition": + Elements."First visit after the end of breastfeeding Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "First visit after the end of breastfeeding (PMTCT) Observation": - Elements."First visit after the end of breastfeeding (PMTCT) Observation" O +define "First visit after the end of breastfeeding Observation": + Elements."First visit after the end of breastfeeding Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of First visit after the end of breastfeeding (PMTCT) */ +/* End of First visit after the end of breastfeeding */ /* -@dataElement: HIV.E.DE179 - Registered in birth cohort (PMTCT) +@dataElement: HIV.E.DE179 - Registered in birth cohort @activity: HIV.F3 Capture or update infant's/child's history @description: Whether the infant has been registered in a birth cohort */ // TODO: Replace placeholder with relevant CQL logic -define "Registered in birth cohort (PMTCT)": - exists "Registered in birth cohort (PMTCT) Observation" -define "Registered in birth cohort (PMTCT) Observation": - Elements."Registered in birth cohort (PMTCT) Observation" O +define "Registered in birth cohort": + exists "Registered in birth cohort Observation" +define "Registered in birth cohort Observation": + Elements."Registered in birth cohort Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Registered in birth cohort (PMTCT) */ +/* End of Registered in birth cohort */ /* -@dataElement: HIV.E.DE224 - HIV test date (PMTCT) +@dataElement: HIV.E.DE224 - HIV test date @activity: HIV.F8 Test infant/child for HIV using testing algorithm @description: Date of the HIV test */ // TODO: Replace placeholder with relevant CQL logic -define "HIV test date (PMTCT)": - Elements."HIV test date (PMTCT)" O +define "HIV test date E.DE224": + Elements."HIV test date E.DE224" O where O.effective.toInterval() during "Measurement Period" -define "HIV test date (PMTCT) Value": - "HIV test date (PMTCT)" O +define "HIV test date E.DE224 Value": + "HIV test date E.DE224" O return O.value -/* End of HIV test date (PMTCT) */ +/* End of HIV test date E.DE224 */ /* -@dataElement: HIV.E.DE225 - Infant HIV status (PMTCT) +@dataElement: HIV.E.DE225 - Infant HIV status @activity: HIV.F8 Test infant/child for HIV using testing algorithm @description: HIV status reported after applying the HIV testing algorithm. No single HIV test can provide an HIV-positive diagnosis. */ // TODO: Replace placeholder with relevant CQL logic -define "Infant HIV status (PMTCT)": - exists "Infant HIV status (PMTCT) Observation" -define "Infant HIV status (PMTCT) Observation": - Elements."Infant HIV status (PMTCT) Observation" O +define "Infant HIV status": + exists "Infant HIV status Observation" +define "Infant HIV status Observation": + Elements."Infant HIV status Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Infant HIV status (PMTCT) */ +/* End of Infant HIV status */ /* -@dataElement: HIV.E.DE226 - HIV-positive (PMTCT|EDE226) +@dataElement: HIV.E.DE226 - HIV-positive @activity: HIV.F8 Test infant/child for HIV using testing algorithm @description: Infant is HIV-positive */ // TODO: Replace placeholder with relevant CQL logic -define "HIV-positive (PMTCT|EDE226)": - exists "HIV-positive (PMTCT|EDE226) Condition" - or exists "HIV-positive (PMTCT|EDE226) Observation" -define "HIV-positive (PMTCT|EDE226) Condition": - Elements."HIV-positive (PMTCT|EDE226) Condition" C +define "HIV-positive E.DE226": + exists "HIV-positive E.DE226 Condition" + or exists "HIV-positive E.DE226 Observation" +define "HIV-positive E.DE226 Condition": + Elements."HIV-positive E.DE226 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "HIV-positive (PMTCT|EDE226) Observation": - Elements."HIV-positive (PMTCT|EDE226) Observation" O +define "HIV-positive E.DE226 Observation": + Elements."HIV-positive E.DE226 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of HIV-positive (PMTCT|EDE226) */ +/* End of HIV-positive E.DE226 */ /* -@dataElement: HIV.E.DE227 - HIV-negative (PMTCT) +@dataElement: HIV.E.DE227 - HIV-negative @activity: HIV.F8 Test infant/child for HIV using testing algorithm @description: Infant is HIV-negative */ // TODO: Replace placeholder with relevant CQL logic -define "HIV-negative (PMTCT)": - exists "HIV-negative (PMTCT) Condition" - or exists "HIV-negative (PMTCT) Observation" -define "HIV-negative (PMTCT) Condition": - Elements."HIV-negative (PMTCT) Condition" C +define "HIV-negative E.DE227": + exists "HIV-negative E.DE227 Condition" + or exists "HIV-negative E.DE227 Observation" +define "HIV-negative E.DE227 Condition": + Elements."HIV-negative E.DE227 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "HIV-negative (PMTCT) Observation": - Elements."HIV-negative (PMTCT) Observation" O +define "HIV-negative E.DE227 Observation": + Elements."HIV-negative E.DE227 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of HIV-negative (PMTCT) */ +/* End of HIV-negative E.DE227 */ /* -@dataElement: HIV.E.DE228 - Unknown (PMTCT) +@dataElement: HIV.E.DE228 - Unknown @activity: HIV.F8 Test infant/child for HIV using testing algorithm @description: Infant has unknown HIV status */ // TODO: Replace placeholder with relevant CQL logic -define "Unknown (PMTCT)": - exists "Unknown (PMTCT) Condition" - or exists "Unknown (PMTCT) Observation" -define "Unknown (PMTCT) Condition": - Elements."Unknown (PMTCT) Condition" C +define "Unknown E.DE228": + exists "Unknown E.DE228 Condition" + or exists "Unknown E.DE228 Observation" +define "Unknown E.DE228 Condition": + Elements."Unknown E.DE228 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Unknown (PMTCT) Observation": - Elements."Unknown (PMTCT) Observation" O +define "Unknown E.DE228 Observation": + Elements."Unknown E.DE228 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Unknown (PMTCT) */ +/* End of Unknown E.DE228 */ /* -@dataElement: HIV.E.DE229 - Infant ART start date (PMTCT) +@dataElement: HIV.E.DE229 - Infant ART start date @activity: HIV.F16 Immediately start infant on ART @description: The date on which the infant was started or restarted on antiretroviral therapy (ART) */ // TODO: Replace placeholder with relevant CQL logic -define "Infant ART start date (PMTCT)": - Elements."Infant ART start date (PMTCT)" O +define "Infant ART start date": + Elements."Infant ART start date" O where O.effective.toInterval() during "Measurement Period" -define "Infant ART start date (PMTCT) Value": - "Infant ART start date (PMTCT)" O +define "Infant ART start date Value": + "Infant ART start date" O return O.value -/* End of Infant ART start date (PMTCT) */ +/* End of Infant ART start date */ /* -@dataElement: HIV.E.DE230 - Final diagnosis of HIV-exposed infant (PMTCT) +@dataElement: HIV.E.DE230 - Final diagnosis of HIV-exposed infant @activity: HIV.F20 Record infant's/child's final HIV diagnosis @description: HIV-exposed infant final status at 18 months or 3 months after cessation of breastfeeding (whichever is later). */ // TODO: Replace placeholder with relevant CQL logic -define "Final diagnosis of HIV-exposed infant (PMTCT)": - exists "Final diagnosis of HIV-exposed infant (PMTCT) Observation" -define "Final diagnosis of HIV-exposed infant (PMTCT) Observation": - Elements."Final diagnosis of HIV-exposed infant (PMTCT) Observation" O +define "Final diagnosis of HIV-exposed infant E.DE230": + exists "Final diagnosis of HIV-exposed infant E.DE230 Observation" +define "Final diagnosis of HIV-exposed infant E.DE230 Observation": + Elements."Final diagnosis of HIV-exposed infant E.DE230 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Final diagnosis of HIV-exposed infant (PMTCT) */ +/* End of Final diagnosis of HIV-exposed infant E.DE230 */ /* -@dataElement: HIV.E.DE231 - HIV-positive (PMTCT|EDE231) +@dataElement: HIV.E.DE231 - HIV-positive @activity: HIV.F20 Record infant's/child's final HIV diagnosis @description: The infant is HIV-positive */ // TODO: Replace placeholder with relevant CQL logic -define "HIV-positive (PMTCT|EDE231)": - exists "HIV-positive (PMTCT|EDE231) Condition" - or exists "HIV-positive (PMTCT|EDE231) Observation" -define "HIV-positive (PMTCT|EDE231) Condition": - Elements."HIV-positive (PMTCT|EDE231) Condition" C +define "HIV-positive E.DE231": + exists "HIV-positive E.DE231 Condition" + or exists "HIV-positive E.DE231 Observation" +define "HIV-positive E.DE231 Condition": + Elements."HIV-positive E.DE231 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "HIV-positive (PMTCT|EDE231) Observation": - Elements."HIV-positive (PMTCT|EDE231) Observation" O +define "HIV-positive E.DE231 Observation": + Elements."HIV-positive E.DE231 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of HIV-positive (PMTCT|EDE231) */ +/* End of HIV-positive E.DE231 */ /* -@dataElement: HIV.E.DE232 - HIV-negative and no longer breastfeeding (PMTCT) +@dataElement: HIV.E.DE232 - HIV-negative and no longer breastfeeding @activity: HIV.F20 Record infant's/child's final HIV diagnosis @description: The infant is HIV-negative and the mother has quit breastfeeding */ // TODO: Replace placeholder with relevant CQL logic -define "HIV-negative and no longer breastfeeding (PMTCT)": - exists "HIV-negative and no longer breastfeeding (PMTCT) Condition" - or exists "HIV-negative and no longer breastfeeding (PMTCT) Observation" -define "HIV-negative and no longer breastfeeding (PMTCT) Condition": - Elements."HIV-negative and no longer breastfeeding (PMTCT) Condition" C +define "HIV-negative and no longer breastfeeding": + exists "HIV-negative and no longer breastfeeding Condition" + or exists "HIV-negative and no longer breastfeeding Observation" +define "HIV-negative and no longer breastfeeding Condition": + Elements."HIV-negative and no longer breastfeeding Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "HIV-negative and no longer breastfeeding (PMTCT) Observation": - Elements."HIV-negative and no longer breastfeeding (PMTCT) Observation" O +define "HIV-negative and no longer breastfeeding Observation": + Elements."HIV-negative and no longer breastfeeding Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of HIV-negative and no longer breastfeeding (PMTCT) */ +/* End of HIV-negative and no longer breastfeeding */ /* -@dataElement: HIV.E.DE233 - HIV status unknown (PMTCT) +@dataElement: HIV.E.DE233 - HIV status unknown @activity: HIV.F20 Record infant's/child's final HIV diagnosis @description: The final HIV status of the child is unknown because the infant died, was lost to follow-up or transferred out without ever having an HIV-positive diagnosis or is active in care but was not tested at 18 months */ // TODO: Replace placeholder with relevant CQL logic -define "HIV status unknown (PMTCT)": - exists "HIV status unknown (PMTCT) Condition" - or exists "HIV status unknown (PMTCT) Observation" -define "HIV status unknown (PMTCT) Condition": - Elements."HIV status unknown (PMTCT) Condition" C +define "HIV status unknown": + exists "HIV status unknown Condition" + or exists "HIV status unknown Observation" +define "HIV status unknown Condition": + Elements."HIV status unknown Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "HIV status unknown (PMTCT) Observation": - Elements."HIV status unknown (PMTCT) Observation" O +define "HIV status unknown Observation": + Elements."HIV status unknown Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of HIV status unknown (PMTCT) */ +/* End of HIV status unknown */ /* -@dataElement: HIV.G.DE3 - Baseline CD4 count (Diagnostics) +@dataElement: HIV.G.DE3 - Baseline CD4 count @activity: HIV.D20 Diagnostics @description: CD4 count performed at HIV diagnosis */ // TODO: Replace placeholder with relevant CQL logic -define "Baseline CD4 count (Diagnostics)": - Elements."Baseline CD4 count (Diagnostics)" O +define "Baseline CD4 count G.DE3": + Elements."Baseline CD4 count G.DE3" O where O.effective.toInterval() during "Measurement Period" -define "Baseline CD4 count (Diagnostics) Value": - "Baseline CD4 count (Diagnostics)" O +define "Baseline CD4 count G.DE3 Value": + "Baseline CD4 count G.DE3" O return O.value -/* End of Baseline CD4 count (Diagnostics) */ +/* End of Baseline CD4 count G.DE3 */ /* -@dataElement: HIV.G.DE17 - HBsAg test date (Diagnostics) +@dataElement: HIV.G.DE17 - HBsAg test date @activity: HIV.D20 Diagnostics @description: Date client was tested for hepatitis B virus (HBV) */ // TODO: Replace placeholder with relevant CQL logic -define "HBsAg test date (Diagnostics)": - Elements."HBsAg test date (Diagnostics)" O +define "HBsAg test date G.DE17": + Elements."HBsAg test date G.DE17" O where O.effective.toInterval() during "Measurement Period" -define "HBsAg test date (Diagnostics) Value": - "HBsAg test date (Diagnostics)" O +define "HBsAg test date G.DE17 Value": + "HBsAg test date G.DE17" O return O.value -/* End of HBsAg test date (Diagnostics) */ +/* End of HBsAg test date G.DE17 */ /* -@dataElement: HIV.G.DE42 - HCV test date (Diagnostics) +@dataElement: HIV.G.DE42 - HCV test date @activity: HIV.D20 Diagnostics @description: Date client was tested for hepatitis C virus (HCV antibody, HCV RNA or HCV core antigen) */ // TODO: Replace placeholder with relevant CQL logic -define "HCV test date (Diagnostics)": - Elements."HCV test date (Diagnostics)" O +define "HCV test date G.DE42": + Elements."HCV test date G.DE42" O where O.effective.toInterval() during "Measurement Period" -define "HCV test date (Diagnostics) Value": - "HCV test date (Diagnostics)" O +define "HCV test date G.DE42 Value": + "HCV test date G.DE42" O return O.value -/* End of HCV test date (Diagnostics) */ +/* End of HCV test date G.DE42 */ /* -@dataElement: HIV.G.DE47 - HCV viral load test date (Diagnostics) +@dataElement: HIV.G.DE47 - HCV viral load test date @activity: HIV.D20 Diagnostics @description: Hepatitis C viral load test date */ // TODO: Replace placeholder with relevant CQL logic -define "HCV viral load test date (Diagnostics)": - Elements."HCV viral load test date (Diagnostics)" O +define "HCV viral load test date G.DE47": + Elements."HCV viral load test date G.DE47" O where O.effective.toInterval() during "Measurement Period" -define "HCV viral load test date (Diagnostics) Value": - "HCV viral load test date (Diagnostics)" O +define "HCV viral load test date G.DE47 Value": + "HCV viral load test date G.DE47" O return O.value -/* End of HCV viral load test date (Diagnostics) */ +/* End of HCV viral load test date G.DE47 */ /* -@dataElement: HIV.G.DE48 - HCV viral load test result (Diagnostics) +@dataElement: HIV.G.DE48 - HCV viral load test result @activity: HIV.D20 Diagnostics @description: Hepatitis C viral load test result (qualitative) */ // TODO: Replace placeholder with relevant CQL logic -define "HCV viral load test result (Diagnostics)": - exists "HCV viral load test result (Diagnostics) Observation" -define "HCV viral load test result (Diagnostics) Observation": - Elements."HCV viral load test result (Diagnostics) Observation" O +define "HCV viral load test result G.DE48": + exists "HCV viral load test result G.DE48 Observation" +define "HCV viral load test result G.DE48 Observation": + Elements."HCV viral load test result G.DE48 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of HCV viral load test result (Diagnostics) */ +/* End of HCV viral load test result G.DE48 */ /* -@dataElement: HIV.G.DE49 - Detected (Diagnostics) +@dataElement: HIV.G.DE49 - Detected @activity: HIV.D20 Diagnostics @description: HCV was detected */ // TODO: Replace placeholder with relevant CQL logic -define "Detected (Diagnostics)": - exists "Detected (Diagnostics) Condition" - or exists "Detected (Diagnostics) Observation" -define "Detected (Diagnostics) Condition": - Elements."Detected (Diagnostics) Condition" C +define "Detected G.DE49": + exists "Detected G.DE49 Condition" + or exists "Detected G.DE49 Observation" +define "Detected G.DE49 Condition": + Elements."Detected G.DE49 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Detected (Diagnostics) Observation": - Elements."Detected (Diagnostics) Observation" O +define "Detected G.DE49 Observation": + Elements."Detected G.DE49 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Detected (Diagnostics) */ +/* End of Detected G.DE49 */ /* -@dataElement: HIV.G.DE50 - Not detected (Diagnostics) +@dataElement: HIV.G.DE50 - Not detected @activity: HIV.D20 Diagnostics @description: HCV was not detected */ // TODO: Replace placeholder with relevant CQL logic -define "Not detected (Diagnostics)": - exists "Not detected (Diagnostics) Condition" - or exists "Not detected (Diagnostics) Observation" -define "Not detected (Diagnostics) Condition": - Elements."Not detected (Diagnostics) Condition" C +define "Not detected G.DE50": + exists "Not detected G.DE50 Condition" + or exists "Not detected G.DE50 Observation" +define "Not detected G.DE50 Condition": + Elements."Not detected G.DE50 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Not detected (Diagnostics) Observation": - Elements."Not detected (Diagnostics) Observation" O +define "Not detected G.DE50 Observation": + Elements."Not detected G.DE50 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Not detected (Diagnostics) */ +/* End of Not detected G.DE50 */ /* -@dataElement: HIV.G.DE69 - Syphilis test date (Diagnostics) +@dataElement: HIV.G.DE69 - Syphilis test date @activity: HIV.D20 Diagnostics @description: Date of syphilis test */ // TODO: Replace placeholder with relevant CQL logic -define "Syphilis test date (Diagnostics)": - Elements."Syphilis test date (Diagnostics)" O +define "Syphilis test date G.DE69": + Elements."Syphilis test date G.DE69" O where O.effective.toInterval() during "Measurement Period" -define "Syphilis test date (Diagnostics) Value": - "Syphilis test date (Diagnostics)" O +define "Syphilis test date G.DE69 Value": + "Syphilis test date G.DE69" O return O.value -/* End of Syphilis test date (Diagnostics) */ +/* End of Syphilis test date G.DE69 */ /* -@dataElement: HIV.H.DE41 - HIV treatment outcome (Follow) +@dataElement: HIV.H.DE41 - HIV treatment outcome @activity: HIV.H3 Record outreach and result @description: The outcome for the client which is used for reporting retention/attrition. */ // TODO: Replace placeholder with relevant CQL logic -define "HIV treatment outcome (Follow)": - exists "HIV treatment outcome (Follow) Observation" -define "HIV treatment outcome (Follow) Observation": - Elements."HIV treatment outcome (Follow) Observation" O +define "HIV treatment outcome": + exists "HIV treatment outcome Observation" +define "HIV treatment outcome Observation": + Elements."HIV treatment outcome Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of HIV treatment outcome (Follow) */ +/* End of HIV treatment outcome */ /* -@dataElement: HIV.H.DE42 - Lost to follow-up (Follow) +@dataElement: HIV.H.DE42 - Lost to follow-up @activity: HIV.H3 Record outreach and result @description: Twenty-eight days or more since last missed appointment */ // TODO: Replace placeholder with relevant CQL logic -define "Lost to follow-up (Follow)": - exists "Lost to follow-up (Follow) Condition" - or exists "Lost to follow-up (Follow) Observation" -define "Lost to follow-up (Follow) Condition": - Elements."Lost to follow-up (Follow) Condition" C +define "Lost to follow-up": + exists "Lost to follow-up Condition" + or exists "Lost to follow-up Observation" +define "Lost to follow-up Condition": + Elements."Lost to follow-up Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Lost to follow-up (Follow) Observation": - Elements."Lost to follow-up (Follow) Observation" O +define "Lost to follow-up Observation": + Elements."Lost to follow-up Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Lost to follow-up (Follow) */ +/* End of Lost to follow-up */ /* -@dataElement: HIV.H.DE43 - Transferred out (Follow) +@dataElement: HIV.H.DE43 - Transferred out @activity: HIV.H3 Record outreach and result @description: The client transferred to another facility */ // TODO: Replace placeholder with relevant CQL logic -define "Transferred out (Follow)": - exists "Transferred out (Follow) Condition" - or exists "Transferred out (Follow) Observation" -define "Transferred out (Follow) Condition": - Elements."Transferred out (Follow) Condition" C +define "Transferred out": + exists "Transferred out Condition" + or exists "Transferred out Observation" +define "Transferred out Condition": + Elements."Transferred out Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Transferred out (Follow) Observation": - Elements."Transferred out (Follow) Observation" O +define "Transferred out Observation": + Elements."Transferred out Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Transferred out (Follow) */ +/* End of Transferred out */ /* -@dataElement: HIV.H.DE44 - Death documented (Follow) +@dataElement: HIV.H.DE44 - Death documented @activity: HIV.H3 Record outreach and result @description: People living with HIV previously on ART who are confirmed to have died from any cause */ // TODO: Replace placeholder with relevant CQL logic -define "Death documented (Follow)": - exists "Death documented (Follow) Condition" - or exists "Death documented (Follow) Observation" -define "Death documented (Follow) Condition": - Elements."Death documented (Follow) Condition" C +define "Death documented": + exists "Death documented Condition" + or exists "Death documented Observation" +define "Death documented Condition": + Elements."Death documented Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Death documented (Follow) Observation": - Elements."Death documented (Follow) Observation" O +define "Death documented Observation": + Elements."Death documented Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Death documented (Follow) */ +/* End of Death documented */ /* -@dataElement: HIV.H.DE45 - Refused stopped treatment (Follow) +@dataElement: HIV.H.DE45 - Refused stopped treatment @activity: HIV.H3 Record outreach and result @description: Client was contacted and confirmed to have stopped ART (reasons may include stigma and discrimination, faith healing, etc.) */ // TODO: Replace placeholder with relevant CQL logic -define "Refused stopped treatment (Follow)": - exists "Refused stopped treatment (Follow) Condition" - or exists "Refused stopped treatment (Follow) Observation" -define "Refused stopped treatment (Follow) Condition": - Elements."Refused stopped treatment (Follow) Condition" C +define "Refused stopped treatment": + exists "Refused stopped treatment Condition" + or exists "Refused stopped treatment Observation" +define "Refused stopped treatment Condition": + Elements."Refused stopped treatment Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Refused stopped treatment (Follow) Observation": - Elements."Refused stopped treatment (Follow) Observation" O +define "Refused stopped treatment Observation": + Elements."Refused stopped treatment Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Refused stopped treatment (Follow) */ +/* End of Refused stopped treatment */ /* -@dataElement: HIV.H.DE73 - Date ART stopped (Follow) +@dataElement: HIV.H.DE73 - Date ART stopped @activity: HIV.H3 Record outreach and result @description: Date on which client stopped ART */ // TODO: Replace placeholder with relevant CQL logic -define "Date ART stopped (Follow)": - Elements."Date ART stopped (Follow)" O +define "Date ART stopped H.DE73": + Elements."Date ART stopped H.DE73" O where O.effective.toInterval() during "Measurement Period" -define "Date ART stopped (Follow) Value": - "Date ART stopped (Follow)" O +define "Date ART stopped H.DE73 Value": + "Date ART stopped H.DE73" O return O.value -/* End of Date ART stopped (Follow) */ +/* End of Date ART stopped H.DE73 */ /* -@dataElement: HIV.H.DE74 - Reason ART stopped (Follow) +@dataElement: HIV.H.DE74 - Reason ART stopped @activity: HIV.H3 Record outreach and result @description: Reason why client intentionally stopped ART */ // TODO: Replace placeholder with relevant CQL logic -define "Reason ART stopped (Follow)": - exists "Reason ART stopped (Follow) Observation" -define "Reason ART stopped (Follow) Observation": - Elements."Reason ART stopped (Follow) Observation" O +define "Reason ART stopped H.DE74": + exists "Reason ART stopped H.DE74 Observation" +define "Reason ART stopped H.DE74 Observation": + Elements."Reason ART stopped H.DE74 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Reason ART stopped (Follow) */ +/* End of Reason ART stopped H.DE74 */ /* -@dataElement: HIV.H.DE75 - Toxicity/side effects (Follow) +@dataElement: HIV.H.DE75 - Toxicity/side effects @activity: HIV.H3 Record outreach and result @description: Client stopped ART because of toxicity/side effects */ // TODO: Replace placeholder with relevant CQL logic -define "Toxicity/side effects (Follow)": - exists "Toxicity/side effects (Follow) Condition" - or exists "Toxicity/side effects (Follow) Observation" -define "Toxicity/side effects (Follow) Condition": - Elements."Toxicity/side effects (Follow) Condition" C +define "Toxicity/side effects H.DE75": + exists "Toxicity/side effects H.DE75 Condition" + or exists "Toxicity/side effects H.DE75 Observation" +define "Toxicity/side effects H.DE75 Condition": + Elements."Toxicity/side effects H.DE75 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Toxicity/side effects (Follow) Observation": - Elements."Toxicity/side effects (Follow) Observation" O +define "Toxicity/side effects H.DE75 Observation": + Elements."Toxicity/side effects H.DE75 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Toxicity/side effects (Follow) */ +/* End of Toxicity/side effects H.DE75 */ /* -@dataElement: HIV.H.DE76 - Severe illness, hospitalization (Follow) +@dataElement: HIV.H.DE76 - Severe illness, hospitalization @activity: HIV.H3 Record outreach and result @description: Client stopped ART because of severe illness, hospitalization */ // TODO: Replace placeholder with relevant CQL logic -define "Severe illness, hospitalization (Follow)": - exists "Severe illness, hospitalization (Follow) Condition" - or exists "Severe illness, hospitalization (Follow) Observation" -define "Severe illness, hospitalization (Follow) Condition": - Elements."Severe illness, hospitalization (Follow) Condition" C +define "Severe illness, hospitalization H.DE76": + exists "Severe illness, hospitalization H.DE76 Condition" + or exists "Severe illness, hospitalization H.DE76 Observation" +define "Severe illness, hospitalization H.DE76 Condition": + Elements."Severe illness, hospitalization H.DE76 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Severe illness, hospitalization (Follow) Observation": - Elements."Severe illness, hospitalization (Follow) Observation" O +define "Severe illness, hospitalization H.DE76 Observation": + Elements."Severe illness, hospitalization H.DE76 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Severe illness, hospitalization (Follow) */ +/* End of Severe illness, hospitalization H.DE76 */ /* -@dataElement: HIV.H.DE77 - Drugs out of stock (Follow) +@dataElement: HIV.H.DE77 - Drugs out of stock @activity: HIV.H3 Record outreach and result @description: Client stopped ART because of drugs being out of stock */ // TODO: Replace placeholder with relevant CQL logic -define "Drugs out of stock (Follow)": - exists "Drugs out of stock (Follow) Condition" - or exists "Drugs out of stock (Follow) Observation" -define "Drugs out of stock (Follow) Condition": - Elements."Drugs out of stock (Follow) Condition" C +define "Drugs out of stock ": + exists "Drugs out of stock Condition" + or exists "Drugs out of stock Observation" +define "Drugs out of stock Condition": + Elements."Drugs out of stock Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Drugs out of stock (Follow) Observation": - Elements."Drugs out of stock (Follow) Observation" O +define "Drugs out of stock Observation": + Elements."Drugs out of stock Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Drugs out of stock (Follow) */ +/* End of Drugs out of stock */ /* -@dataElement: HIV.H.DE78 - Client lacks finances (Follow) +@dataElement: HIV.H.DE78 - Client lacks finances @activity: HIV.H3 Record outreach and result @description: Client stopped ART because client lacked finances */ // TODO: Replace placeholder with relevant CQL logic -define "Client lacks finances (Follow)": - exists "Client lacks finances (Follow) Condition" - or exists "Client lacks finances (Follow) Observation" -define "Client lacks finances (Follow) Condition": - Elements."Client lacks finances (Follow) Condition" C +define "Client lacks finances ": + exists "Client lacks finances Condition" + or exists "Client lacks finances Observation" +define "Client lacks finances Condition": + Elements."Client lacks finances Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Client lacks finances (Follow) Observation": - Elements."Client lacks finances (Follow) Observation" O +define "Client lacks finances Observation": + Elements."Client lacks finances Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Client lacks finances (Follow) */ +/* End of Client lacks finances */ /* -@dataElement: HIV.H.DE79 - Excluded HIV infection in infant (Follow) +@dataElement: HIV.H.DE79 - Excluded HIV infection in infant @activity: HIV.H3 Record outreach and result @description: Client stopped ART because the infant was determined to not have HIV */ // TODO: Replace placeholder with relevant CQL logic -define "Excluded HIV infection in infant (Follow)": - exists "Excluded HIV infection in infant (Follow) Condition" - or exists "Excluded HIV infection in infant (Follow) Observation" -define "Excluded HIV infection in infant (Follow) Condition": - Elements."Excluded HIV infection in infant (Follow) Condition" C +define "Excluded HIV infection in infant H.DE79": + exists "Excluded HIV infection in infant H.DE79 Condition" + or exists "Excluded HIV infection in infant H.DE79 Observation" +define "Excluded HIV infection in infant H.DE79 Condition": + Elements."Excluded HIV infection in infant H.DE79 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Excluded HIV infection in infant (Follow) Observation": - Elements."Excluded HIV infection in infant (Follow) Observation" O +define "Excluded HIV infection in infant H.DE79 Observation": + Elements."Excluded HIV infection in infant H.DE79 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Excluded HIV infection in infant (Follow) */ +/* End of Excluded HIV infection in infant H.DE79 */ /* -@dataElement: HIV.H.DE80 - Other reason for stopping ART (Follow) +@dataElement: HIV.H.DE80 - Other reason for stopping ART @activity: HIV.H3 Record outreach and result @description: Client stopped ART for other reason */ // TODO: Replace placeholder with relevant CQL logic -define "Other reason for stopping ART (Follow)": - exists "Other reason for stopping ART (Follow) Condition" - or exists "Other reason for stopping ART (Follow) Observation" -define "Other reason for stopping ART (Follow) Condition": - Elements."Other reason for stopping ART (Follow) Condition" C +define "Other reason for stopping ART H.DE80": + exists "Other reason for stopping ART H.DE80 Condition" + or exists "Other reason for stopping ART H.DE80 Observation" +define "Other reason for stopping ART H.DE80 Condition": + Elements."Other reason for stopping ART H.DE80 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Other reason for stopping ART (Follow) Observation": - Elements."Other reason for stopping ART (Follow) Observation" O +define "Other reason for stopping ART H.DE80 Observation": + Elements."Other reason for stopping ART H.DE80 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Other reason for stopping ART (Follow) */ +/* End of Other reason for stopping ART H.DE80 */ /* -@dataElement: HIV.PRV.DE2 - HIV prevention intervention (Prevention) +@dataElement: HIV.PRV.DE2 - HIV prevention intervention @activity: HIV.B6 Capture or update client history @description: HIV prevention intervention that client accessed */ // TODO: Replace placeholder with relevant CQL logic -define "HIV prevention intervention (Prevention)": - exists "HIV prevention intervention (Prevention) Observation" -define "HIV prevention intervention (Prevention) Observation": - Elements."HIV prevention intervention (Prevention) Observation" O +define "HIV prevention intervention": + exists "HIV prevention intervention Observation" +define "HIV prevention intervention Observation": + Elements."HIV prevention intervention Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of HIV prevention intervention (Prevention) */ +/* End of HIV prevention intervention */ /* -@dataElement: HIV.PRV.DE3 - PrEP service (Prevention) +@dataElement: HIV.PRV.DE3 - PrEP service @activity: HIV.B6 Capture or update client history @description: Client accessed PrEP services */ // TODO: Replace placeholder with relevant CQL logic -define "PrEP service (Prevention)": - exists "PrEP service (Prevention) Condition" - or exists "PrEP service (Prevention) Observation" -define "PrEP service (Prevention) Condition": - Elements."PrEP service (Prevention) Condition" C +define "PrEP service": + exists "PrEP service Condition" + or exists "PrEP service Observation" +define "PrEP service Condition": + Elements."PrEP service Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "PrEP service (Prevention) Observation": - Elements."PrEP service (Prevention) Observation" O +define "PrEP service Observation": + Elements."PrEP service Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of PrEP service (Prevention) */ +/* End of PrEP service */ /* -@dataElement: HIV.PRV.DE4 - OAMT (Prevention) +@dataElement: HIV.PRV.DE4 - OAMT @activity: HIV.B6 Capture or update client history @description: Client accessed opioid agonist maintenance treatment (OAMT) services */ // TODO: Replace placeholder with relevant CQL logic -define "OAMT (Prevention)": - exists "OAMT (Prevention) Condition" - or exists "OAMT (Prevention) Observation" -define "OAMT (Prevention) Condition": - Elements."OAMT (Prevention) Condition" C +define "OAMT": + exists "OAMT Condition" + or exists "OAMT Observation" +define "OAMT Condition": + Elements."OAMT Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "OAMT (Prevention) Observation": - Elements."OAMT (Prevention) Observation" O +define "OAMT Observation": + Elements."OAMT Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of OAMT (Prevention) */ +/* End of OAMT */ /* -@dataElement: HIV.PRV.DE5 - NSP (Prevention) +@dataElement: HIV.PRV.DE5 - NSP @activity: HIV.B6 Capture or update client history @description: Client accessed needle-syringe programme (NSP) services */ // TODO: Replace placeholder with relevant CQL logic -define "NSP (Prevention)": - exists "NSP (Prevention) Condition" - or exists "NSP (Prevention) Observation" -define "NSP (Prevention) Condition": - Elements."NSP (Prevention) Condition" C +define "NSP": + exists "NSP Condition" + or exists "NSP Observation" +define "NSP Condition": + Elements."NSP Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "NSP (Prevention) Observation": - Elements."NSP (Prevention) Observation" O +define "NSP Observation": + Elements."NSP Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of NSP (Prevention) */ +/* End of NSP */ /* -@dataElement: HIV.PRV.DE6 - STI services (Prevention) +@dataElement: HIV.PRV.DE6 - STI services @activity: HIV.B6 Capture or update client history @description: Client accessed sexually transmitted infection (STI) services */ // TODO: Replace placeholder with relevant CQL logic -define "STI services (Prevention)": - exists "STI services (Prevention) Condition" - or exists "STI services (Prevention) Observation" -define "STI services (Prevention) Condition": - Elements."STI services (Prevention) Condition" C +define "STI services": + exists "STI services Condition" + or exists "STI services Observation" +define "STI services Condition": + Elements."STI services Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "STI services (Prevention) Observation": - Elements."STI services (Prevention) Observation" O +define "STI services Observation": + Elements."STI services Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of STI services (Prevention) */ +/* End of STI services */ /* -@dataElement: HIV.PRV.DE7 - VMMC (Prevention) +@dataElement: HIV.PRV.DE7 - VMMC @activity: HIV.B6 Capture or update client history @description: Client accessed voluntary medical male circumcision (VMMC) services */ // TODO: Replace placeholder with relevant CQL logic -define "VMMC (Prevention)": - exists "VMMC (Prevention) Condition" - or exists "VMMC (Prevention) Observation" -define "VMMC (Prevention) Condition": - Elements."VMMC (Prevention) Condition" C +define "VMMC": + exists "VMMC Condition" + or exists "VMMC Observation" +define "VMMC Condition": + Elements."VMMC Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "VMMC (Prevention) Observation": - Elements."VMMC (Prevention) Observation" O +define "VMMC Observation": + Elements."VMMC Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of VMMC (Prevention) */ +/* End of VMMC */ /* -@dataElement: HIV.PRV.DE8 - Other (Prevention) +@dataElement: HIV.PRV.DE8 - Other @activity: HIV.B6 Capture or update client history @description: Client accessed other HIV prevention services */ // TODO: Replace placeholder with relevant CQL logic -define "Other (Prevention)": - exists "Other (Prevention) Condition" - or exists "Other (Prevention) Observation" -define "Other (Prevention) Condition": - Elements."Other (Prevention) Condition" C +define "Other PRV.DE8": + exists "Other PRV.DE8 Condition" + or exists "Other PRV.DE8 Observation" +define "Other PRV.DE8 Condition": + Elements."Other PRV.DE8 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Other (Prevention) Observation": - Elements."Other (Prevention) Observation" O +define "Other PRV.DE8 Observation": + Elements."Other PRV.DE8 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Other (Prevention) */ +/* End of Other PRV.DE8 */ /* -@dataElement: HIV.PRV.DE10 - Date accessed HIV prevention intervention (Prevention) +@dataElement: HIV.PRV.DE10 - Date accessed HIV prevention intervention @activity: HIV.B6 Capture or update client history @description: Date the client accessed HIV prevention intervention */ // TODO: Replace placeholder with relevant CQL logic -define "Date accessed HIV prevention intervention (Prevention)": - Elements."Date accessed HIV prevention intervention (Prevention)" O +define "Date accessed HIV prevention intervention": + Elements."Date accessed HIV prevention intervention" O where O.effective.toInterval() during "Measurement Period" -define "Date accessed HIV prevention intervention (Prevention) Value": - "Date accessed HIV prevention intervention (Prevention)" O +define "Date accessed HIV prevention intervention Value": + "Date accessed HIV prevention intervention" O return O.value -/* End of Date accessed HIV prevention intervention (Prevention) */ +/* End of Date accessed HIV prevention intervention */ /* -@dataElement: HIV.PRV.DE11 - HIV status of contact (Prevention) +@dataElement: HIV.PRV.DE11 - HIV status of contact @activity: HIV.B6 Capture or update client history @description: The HIV status of the client's contact */ // TODO: Replace placeholder with relevant CQL logic -define "HIV status of contact (Prevention)": - exists "HIV status of contact (Prevention) Observation" -define "HIV status of contact (Prevention) Observation": - Elements."HIV status of contact (Prevention) Observation" O +define "HIV status of contact": + exists "HIV status of contact Observation" +define "HIV status of contact Observation": + Elements."HIV status of contact Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of HIV status of contact (Prevention) */ +/* End of HIV status of contact */ /* -@dataElement: HIV.PRV.DE12 - HIV-positive (Prevention) +@dataElement: HIV.PRV.DE12 - HIV-positive @activity: HIV.B6 Capture or update client history @description: Client's contact is HIV-positive */ // TODO: Replace placeholder with relevant CQL logic -define "HIV-positive (Prevention)": - exists "HIV-positive (Prevention) Condition" - or exists "HIV-positive (Prevention) Observation" -define "HIV-positive (Prevention) Condition": - Elements."HIV-positive (Prevention) Condition" C +define "HIV-positive PRV.DE12": + exists "HIV-positive PRV.DE12 Condition" + or exists "HIV-positive PRV.DE12 Observation" +define "HIV-positive PRV.DE12 Condition": + Elements."HIV-positive PRV.DE12 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "HIV-positive (Prevention) Observation": - Elements."HIV-positive (Prevention) Observation" O +define "HIV-positive PRV.DE12 Observation": + Elements."HIV-positive PRV.DE12 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of HIV-positive (Prevention) */ +/* End of HIV-positive PRV.DE12 */ /* -@dataElement: HIV.PRV.DE13 - HIV-negative (Prevention) +@dataElement: HIV.PRV.DE13 - HIV-negative @activity: HIV.B6 Capture or update client history @description: Client's contact is HIV-negative */ // TODO: Replace placeholder with relevant CQL logic -define "HIV-negative (Prevention)": - exists "HIV-negative (Prevention) Condition" - or exists "HIV-negative (Prevention) Observation" -define "HIV-negative (Prevention) Condition": - Elements."HIV-negative (Prevention) Condition" C +define "HIV-negative PRV.DE13": + exists "HIV-negative PRV.DE13 Condition" + or exists "HIV-negative PRV.DE13 Observation" +define "HIV-negative PRV.DE13 Condition": + Elements."HIV-negative PRV.DE13 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "HIV-negative (Prevention) Observation": - Elements."HIV-negative (Prevention) Observation" O +define "HIV-negative PRV.DE13 Observation": + Elements."HIV-negative PRV.DE13 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of HIV-negative (Prevention) */ +/* End of HIV-negative PRV.DE13 */ /* -@dataElement: HIV.PRV.DE14 - Unknown (Prevention) +@dataElement: HIV.PRV.DE14 - Unknown @activity: HIV.B6 Capture or update client history @description: Client does not know contact's HIV status */ // TODO: Replace placeholder with relevant CQL logic -define "Unknown (Prevention)": - exists "Unknown (Prevention) Condition" - or exists "Unknown (Prevention) Observation" -define "Unknown (Prevention) Condition": - Elements."Unknown (Prevention) Condition" C +define "Unknown PRV.DE14": + exists "Unknown PRV.DE14 Condition" + or exists "Unknown PRV.DE14 Observation" +define "Unknown PRV.DE14 Condition": + Elements."Unknown PRV.DE14 Condition" C where C.prevalenceInterval() overlaps before "Measurement Period" or C.prevalenceInterval() overlaps after "Measurement Period" -define "Unknown (Prevention) Observation": - Elements."Unknown (Prevention) Observation" O +define "Unknown PRV.DE14 Observation": + Elements."Unknown PRV.DE14 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Unknown (Prevention) */ +/* End of Unknown PRV.DE14 */ /* -@dataElement: HIV.PRV.DE15 - Date injecting equipment provided (Prevention) +@dataElement: HIV.PRV.DE15 - Date injecting equipment provided @activity: HIV.B21 Offer prevention options @description: Date client was provided with injecting equipment */ // TODO: Replace placeholder with relevant CQL logic -define "Date injecting equipment provided (Prevention)": - Elements."Date injecting equipment provided (Prevention)" O +define "Date injecting equipment provided": + Elements."Date injecting equipment provided" O where O.effective.toInterval() during "Measurement Period" -define "Date injecting equipment provided (Prevention) Value": - "Date injecting equipment provided (Prevention)" O +define "Date injecting equipment provided Value": + "Date injecting equipment provided" O return O.value -/* End of Date injecting equipment provided (Prevention) */ +/* End of Date injecting equipment provided */ /* -@dataElement: HIV.PRV.DE17 - Date OAMT initiated (Prevention) +@dataElement: HIV.PRV.DE17 - Date OAMT initiated @activity: HIV.B21 Offer prevention options @description: Date client initiated opioid agonist maintenance treatment (OAMT) */ // TODO: Replace placeholder with relevant CQL logic -define "Date OAMT initiated (Prevention)": - Elements."Date OAMT initiated (Prevention)" O +define "Date OAMT initiated": + Elements."Date OAMT initiated" O where O.effective.toInterval() during "Measurement Period" -define "Date OAMT initiated (Prevention) Value": - "Date OAMT initiated (Prevention)" O +define "Date OAMT initiated Value": + "Date OAMT initiated" O return O.value -/* End of Date OAMT initiated (Prevention) */ +/* End of Date OAMT initiated */ /* -@dataElement: HIV.PRV.DE20 - Currently on OAMT (Prevention) +@dataElement: HIV.PRV.DE20 - Currently on OAMT @activity: HIV.B6 Capture or update client history @description: Client is currently on opioid agonist maintenance treatment (OAMT) at reporting date, defined according to country/program to account for medication dispensed and LTFU criterion */ // TODO: Replace placeholder with relevant CQL logic -define "Currently on OAMT (Prevention)": - exists "Currently on OAMT (Prevention) Observation" -define "Currently on OAMT (Prevention) Observation": - Elements."Currently on OAMT (Prevention) Observation" O +define "Currently on OAMT": + exists "Currently on OAMT Observation" +define "Currently on OAMT Observation": + Elements."Currently on OAMT Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Currently on OAMT (Prevention) */ +/* End of Currently on OAMT */ /* -@dataElement: HIV.PRV.DE21 - Retained on OAMT (Prevention) +@dataElement: HIV.PRV.DE21 - Retained on OAMT @activity: HIV.B6 Capture or update client history @description: Client is retained on opioid agonist maintenance treatment (OAMT) at reporting date, defined according to country/program to account for medication dispensed and LTFU criterion */ // TODO: Replace placeholder with relevant CQL logic -define "Retained on OAMT (Prevention)": - exists "Retained on OAMT (Prevention) Observation" -define "Retained on OAMT (Prevention) Observation": - Elements."Retained on OAMT (Prevention) Observation" O +define "Retained on OAMT": + exists "Retained on OAMT Observation" +define "Retained on OAMT Observation": + Elements."Retained on OAMT Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Retained on OAMT (Prevention) */ +/* End of Retained on OAMT */ /* -@dataElement: HIV.PRV.DE25 - Date of loss to follow-up or OAMT stopped (Prevention) +@dataElement: HIV.PRV.DE25 - Date of loss to follow-up or OAMT stopped @activity: HIV.B6 Capture or update client history @description: Date of loss to follow-up or opioid agonist maintenance treatment (OAMT) stopped */ // TODO: Replace placeholder with relevant CQL logic -define "Date of loss to follow-up or OAMT stopped (Prevention)": - Elements."Date of loss to follow-up or OAMT stopped (Prevention)" O +define "Date of loss to follow-up or OAMT stopped": + Elements."Date of loss to follow-up or OAMT stopped" O where O.effective.toInterval() during "Measurement Period" -define "Date of loss to follow-up or OAMT stopped (Prevention) Value": - "Date of loss to follow-up or OAMT stopped (Prevention)" O +define "Date of loss to follow-up or OAMT stopped Value": + "Date of loss to follow-up or OAMT stopped" O return O.value -/* End of Date of loss to follow-up or OAMT stopped (Prevention) */ +/* End of Date of loss to follow-up or OAMT stopped */ /* -@dataElement: HIV.PRV.DE27 - Date medications prescribed (Prevention) +@dataElement: HIV.PRV.DE27 - Date medications prescribed @activity: HIV.C23 Prescribe or administer PrEP or PEP @description: Date the client was prescribed medications */ // TODO: Replace placeholder with relevant CQL logic -define "Date medications prescribed (Prevention)": - Elements."Date medications prescribed (Prevention)" O +define "Date medications prescribed PRV.DE27": + Elements."Date medications prescribed PRV.DE27" O where O.effective.toInterval() during "Measurement Period" -define "Date medications prescribed (Prevention) Value": - "Date medications prescribed (Prevention)" O +define "Date medications prescribed PRV.DE27 Value": + "Date medications prescribed PRV.DE27" O return O.value -/* End of Date medications prescribed (Prevention) */ +/* End of Date medications prescribed PRV.DE27 */ /* -@dataElement: HIV.PRV.DE28 - Number of days prescribed (Prevention) +@dataElement: HIV.PRV.DE28 - Number of days prescribed @activity: HIV.C23 Prescribe or administer PrEP or PEP @description: Days of medication client has been prescribed */ // TODO: Replace placeholder with relevant CQL logic -define "Number of days prescribed (Prevention)": - Elements."Number of days prescribed (Prevention)" O +define "Number of days prescribed PRV.DE28": + Elements."Number of days prescribed PRV.DE28" O where O.effective.toInterval() during "Measurement Period" -define "Number of days prescribed (Prevention) Value": - "Number of days prescribed (Prevention)" O +define "Number of days prescribed PRV.DE28 Value": + "Number of days prescribed PRV.DE28" O return O.value -/* End of Number of days prescribed (Prevention) */ +/* End of Number of days prescribed PRV.DE28 */ /* -@dataElement: HIV.SRV.DE1 - HIV test date (Surveillance) +@dataElement: HIV.SRV.DE1 - HIV test date @activity: HIV.F8 Test infant/child for HIV using testing algorithm @description: Date of the HIV test */ // TODO: Replace placeholder with relevant CQL logic -define "HIV test date (Surveillance)": - Elements."HIV test date (Surveillance)" O +define "HIV test date SRV.DE1": + Elements."HIV test date SRV.DE1" O where O.effective.toInterval() during "Measurement Period" -define "HIV test date (Surveillance) Value": - "HIV test date (Surveillance)" O +define "HIV test date SRV.DE1 Value": + "HIV test date SRV.DE1" O return O.value -/* End of HIV test date (Surveillance) */ +/* End of HIV test date SRV.DE1 */ /* -@dataElement: HIV.SRV.DE3 - Baseline CD4 count (Surveillance) +@dataElement: HIV.SRV.DE3 - Baseline CD4 count @activity: HIV.D20 Diagnostics @description: CD4 count performed at HIV diagnosis */ // TODO: Replace placeholder with relevant CQL logic -define "Baseline CD4 count (Surveillance)": - Elements."Baseline CD4 count (Surveillance)" O +define "Baseline CD4 count SRV.DE3": + Elements."Baseline CD4 count SRV.DE3" O where O.effective.toInterval() during "Measurement Period" -define "Baseline CD4 count (Surveillance) Value": - "Baseline CD4 count (Surveillance)" O +define "Baseline CD4 count SRV.DE3 Value": + "Baseline CD4 count SRV.DE3" O return O.value -/* End of Baseline CD4 count (Surveillance) */ +/* End of Baseline CD4 count SRV.DE3 */ /* -@dataElement: HIV.SRV.DE4 - Date of baseline CD4 count test (Surveillance) +@dataElement: HIV.SRV.DE4 - Date of baseline CD4 count test @activity: HIV.D20 Diagnostics @description: Date and time when baseline CD4 count test was conducted */ // TODO: Replace placeholder with relevant CQL logic -define "Date of baseline CD4 count test (Surveillance)": - Elements."Date of baseline CD4 count test (Surveillance)" O +define "Date of baseline CD4 count test SRV.DE4": + Elements."Date of baseline CD4 count test SRV.DE4" O where O.effective.toInterval() during "Measurement Period" -define "Date of baseline CD4 count test (Surveillance) Value": - "Date of baseline CD4 count test (Surveillance)" O +define "Date of baseline CD4 count test SRV.DE4 Value": + "Date of baseline CD4 count test SRV.DE4" O return O.value -/* End of Date of baseline CD4 count test (Surveillance) */ +/* End of Date of baseline CD4 count test SRV.DE4 */ /* -@dataElement: HIV.SRV.DE20 - HIV-exposed infant or child (Surveillance) +@dataElement: HIV.SRV.DE20 - HIV-exposed infant or child @activity: HIV.F6 Check whether infant/child had HIV exposure @description: Whether the infant or child was determined to have had HIV exposure */ // TODO: Replace placeholder with relevant CQL logic -define "HIV-exposed infant or child (Surveillance)": - exists "HIV-exposed infant or child (Surveillance) Observation" -define "HIV-exposed infant or child (Surveillance) Observation": - Elements."HIV-exposed infant or child (Surveillance) Observation" O +define "HIV-exposed infant or child SRV.DE20": + exists "HIV-exposed infant or child SRV.DE20 Observation" +define "HIV-exposed infant or child SRV.DE20 Observation": + Elements."HIV-exposed infant or child SRV.DE20 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of HIV-exposed infant or child (Surveillance) */ +/* End of HIV-exposed infant or child SRV.DE20 */ /* -@dataElement: HIV.SRV.DE22 - Final diagnosis of HIV-exposed infant (Surveillance) +@dataElement: HIV.SRV.DE22 - Final diagnosis of HIV-exposed infant @activity: HIV.F20 Record infant's/child's final HIV diagnosis @description: HIV-exposed infant final status at 18 months or 3 months after cessation of breastfeeding (whichever is later). */ // TODO: Replace placeholder with relevant CQL logic -define "Final diagnosis of HIV-exposed infant (Surveillance)": - exists "Final diagnosis of HIV-exposed infant (Surveillance) Observation" -define "Final diagnosis of HIV-exposed infant (Surveillance) Observation": - Elements."Final diagnosis of HIV-exposed infant (Surveillance) Observation" O +define "Final diagnosis of HIV-exposed infant SRV.DE22": + exists "Final diagnosis of HIV-exposed infant SRV.DE22 Observation" +define "Final diagnosis of HIV-exposed infant SRV.DE22 Observation": + Elements."Final diagnosis of HIV-exposed infant SRV.DE22 Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Final diagnosis of HIV-exposed infant (Surveillance) */ +/* End of Final diagnosis of HIV-exposed infant SRV.DE22 */ /* -@dataElement: HIV.Config.DE19 - Other priority populations (Configuration) +@dataElement: HIV.Config.DE19 - Other priority populations @activity: HIV.Configuration @description: Other populations of priority of HIV prevention and care in local context (provided during adaptation) */ // TODO: Replace placeholder with relevant CQL logic -define "Other priority populations (Configuration)": - exists "Other priority populations (Configuration) Observation" -define "Other priority populations (Configuration) Observation": - Elements."Other priority populations (Configuration) Observation" O +define "Other priority populations": + exists "Other priority populations Observation" +define "Other priority populations Observation": + Elements."Other priority populations Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Other priority populations (Configuration) */ +/* End of Other priority populations */ /* -@dataElement: HIV.Config.DE20 - Reporting period end date (Configuration) +@dataElement: HIV.Config.DE20 - Reporting period end date @activity: HIV.Configuration @description: End date of the reporting period */ // TODO: Replace placeholder with relevant CQL logic -define "Reporting period end date (Configuration)": - Elements."Reporting period end date (Configuration)" O +define "Reporting period end date": + Elements."Reporting period end date" O where O.effective.toInterval() during "Measurement Period" -define "Reporting period end date (Configuration) Value": - "Reporting period end date (Configuration)" O +define "Reporting period end date Value": + "Reporting period end date" O return O.value -/* End of Reporting period end date (Configuration) */ +/* End of Reporting period end date */ /* -@dataElement: HIV.Config.DE21 - Reporting period start date (Configuration) +@dataElement: HIV.Config.DE21 - Reporting period start date @activity: HIV.Configuration @description: Start date of the reporting period */ // TODO: Replace placeholder with relevant CQL logic -define "Reporting period start date (Configuration)": - Elements."Reporting period start date (Configuration)" O +define "Reporting period start date": + Elements."Reporting period start date" O where O.effective.toInterval() during "Measurement Period" -define "Reporting period start date (Configuration) Value": - "Reporting period start date (Configuration)" O +define "Reporting period start date Value": + "Reporting period start date" O return O.value -/* End of Reporting period start date (Configuration) */ +/* End of Reporting period start date */ /* -@dataElement: HIV.Config.DE22 - Reporting date (Configuration) +@dataElement: HIV.Config.DE22 - Reporting date @activity: HIV.Configuration @description: Reporting date, for surveys performed on a specific date */ // TODO: Replace placeholder with relevant CQL logic -define "Reporting date (Configuration)": - Elements."Reporting date (Configuration)" O +define "Reporting date": + Elements."Reporting date" O where O.effective.toInterval() during "Measurement Period" -define "Reporting date (Configuration) Value": - "Reporting date (Configuration)" O +define "Reporting date Value": + "Reporting date" O return O.value -/* End of Reporting date (Configuration) */ +/* End of Reporting date */ /* From b3be247ee8f8444c54775eff6e224da35524b00d Mon Sep 17 00:00:00 2001 From: Piotr Mankowski Date: Wed, 24 Jul 2024 11:40:46 -0700 Subject: [PATCH 02/10] WSG-90 HIV Indicators Update Updated Common logic as well Co-authored-by: Patric Prado --- input/cql/HIVCommon.cql | 131 +++++++++++++++++++++++++++++++----- input/cql/HIVIND19Logic.cql | 5 +- input/cql/HIVIND20Logic.cql | 6 +- input/cql/HIVIND21Logic.cql | 10 ++- input/cql/HIVIND22Logic.cql | 43 +++++++++++- input/cql/HIVIND24Logic.cql | 89 +++++++++++++++++++++++- input/cql/HIVIND25Logic.cql | 52 +++++++++++++- 7 files changed, 305 insertions(+), 31 deletions(-) diff --git a/input/cql/HIVCommon.cql b/input/cql/HIVCommon.cql index 59bba5a44e7..48b41143c25 100644 --- a/input/cql/HIVCommon.cql +++ b/input/cql/HIVCommon.cql @@ -10,6 +10,8 @@ include HIVConceptsCustom called HCC parameter "Measurement Period" Interval default Interval[@2020-01-01, @2020-12-31] parameter "Measurement Date" Date default @2020-01-01 +parameter "Testing Interval" System.Quantity default 3 months +parameter "Intervention Interval" System.Quantity default 7 days context Patient @@ -52,13 +54,15 @@ define "HIV test resulted": define "HIV Treatment Active": [MedicationStatement] MS - where MS.status = 'recorded' +Sort by MS.effective + where MS.status = 'completed' and exists(MS.reasonCode C where C ~ HC."On ART - HIV.H.DE47") + define "HIV PREP Active": [MedicationStatement] MS - where MS.status = 'recorded' + where MS.status = 'completed' and exists(MS.reasonCode C where C ~ HC."PrEP for HIV prevention") define "Client is at elevated risk for HIV acquisition": @@ -86,7 +90,7 @@ define "PEP Prescribed before start of Measurement Period and Completed": and MR.intent = 'order' and MR.medication ~ HC."PEP for HIV prevention" and MR.authoredOn before end of "Measurement Period" - where (MS.status = 'recorded' + where (MS.status = 'completed' and exists(MS.reasonCode C where C ~ HC."PrEP for HIV prevention") ) @@ -98,7 +102,7 @@ define "PEP Prescribed during Measurement Period and Completed": and MR.medication ~ HC."PEP for HIV prevention" and MR.authoredOn after start of "Measurement Period" and MR.authoredOn before end of "Measurement Period" - where (MS.status = 'recorded' + where (MS.status = 'completed' and exists(MS.reasonCode C where C ~ HC."PrEP for HIV prevention") ) @@ -424,7 +428,7 @@ exists( define "PREP Product Oral": exists([MedicationStatement] MS - where MS.status = 'recorded' + where MS.status = 'completed' and exists(MS.reasonCode C where C ~ HC."Currently on PrEP") and (MS.medication ~ HC."TDF + FTC - HIV.C.DE18" or MS.medication ~ HC."TDF - HIV.C.DE19" or @@ -434,56 +438,56 @@ exists( define "PREP Product long-acting device": exists([MedicationStatement] MS - where MS.status = 'recorded' + where MS.status = 'completed' and exists(MS.reasonCode C where C ~ HC."Currently on PrEP") and MS.medication ~ HC."Dapivirine vaginal ring DVR - HIV.C.DE22" ) define "PREP Product long-acting injectable": exists([MedicationStatement] MS - where MS.status = 'recorded' + where MS.status = 'completed' and exists(MS.reasonCode C where C ~ HC."Currently on PrEP") and MS.medication ~ HC."CAB-LA - HIV.C.DE23" ) define "PREP first time": exists([MedicationStatement] MS - where MS.status = 'recorded' + where MS.status = 'completed' and exists(MS.reasonCode C where C ~ HC."Currently on PrEP") and exists(MS.statusReason SR where SR ~ HC."First-time user - HIV.C.DE25") ) define "PREP Continuing user": exists([MedicationStatement] MS - where MS.status = 'recorded' + where MS.status = 'completed' and exists(MS.reasonCode C where C ~ HC."Currently on PrEP") and exists(MS.statusReason SR where SR ~ HC."Continuing user") ) define "PREP Restarting": exists([MedicationStatement] MS - where MS.status = 'recorded' + where MS.status = 'completed' and exists(MS.reasonCode C where C ~ HC."Currently on PrEP") and exists(MS.statusReason SR where SR ~ HC."Restarting following a period of not taking PrEP") ) define "Daily_oral_PrEP": exists([MedicationStatement] MS - where MS.status = 'recorded' + where MS.status = 'completed' and exists(MS.reasonCode C where C ~ HC."Currently on PrEP") and exists(MS.dosage.additionalInstruction AI where AI ~ HC."Daily oral PrEP") ) define "Event_driven_PrEP": exists([MedicationStatement] MS - where MS.status = 'recorded' + where MS.status = 'completed' and exists(MS.reasonCode C where C ~ HC."Currently on PrEP") and exists(MS.dosage.additionalInstruction AI where AI ~ HC."Event-driven PrEP 2+1+1") ) define "other_dosing_PrEP": exists([MedicationStatement] MS - where MS.status = 'recorded' + where MS.status = 'completed' and exists(MS.reasonCode C where C ~ HC."Currently on PrEP") and exists(MS.dosage.additionalInstruction AI where AI ~ HC."Other PrEP dosing type") ) @@ -783,7 +787,7 @@ define "VMMC_adverse_event_Intraoperative": and AE.date = P.performed where AE.actuality = 'actual' - define "VMMC_adverse_event_Postoperative": +define "VMMC_adverse_event_Postoperative": [AdverseEvent] AE with [Procedure] P such that AE.suspectEntity.instance.references(P) and P.status = 'completed' @@ -799,4 +803,101 @@ define "VMMC_adverse_event_Intraoperative": when exists(VMMC_adverse_event_Intraoperative) then HC."Intraoperative" when exists(VMMC_adverse_event_Postoperative) then HC."Postoperative" else null - end \ No newline at end of file + end + + + define "Partner or contact of an index case": + [Observation: HC."Referred through partner services"] O + where O.status in { 'final', 'amended', 'corrected' } + and exists(O.category OC where OC ~ HCC."social-history") + and O.code ~ HC."Partner or contact of an index case" + + define "Drug-injecting partner": + [Observation: HC."Type of contact or partner for partner services"] O + where O.status in { 'final', 'amended', 'corrected' } + and exists(O.category OC where OC ~ HCC."social-history") + and O.code ~ HC."Drug-injecting partner - HIV.B.DE10" + + define "Sexual partner": + [Observation: HC."Type of contact or partner for partner services"] O + where O.status in { 'final', 'amended', 'corrected' } + and exists(O.category OC where OC ~ HCC."social-history") + and O.code ~ HC."Sexual partner - HIV.B.DE11" + + + define "First HIV Treatment": + First("HIV Treatment Active") + + + define "Time to start ART": + case + when difference in days between "First HIV Treatment".effective and "HIV Positive Condition".onset <= 7 then HC."Within 7 days of HIV diagnosis" + when difference in days between "First HIV Treatment".effective and "HIV Positive Condition".onset <= 30 then HC."Within 30 days of HIV diagnosis" + when difference in days between "First HIV Treatment".effective and "HIV Positive Condition".onset <= 90 then HC."Within 90 days of HIV diagnosis" + else null + end + + //HIV status of partner or contact (already known positive, newly diagnosed positive, negative) + + define "already known positive": + [Observation: HC."HIV status of partner or contact"] O + where O.status in { 'final', 'amended', 'corrected' } + and exists(O.category OC where OC ~ HCC."social-history") + and O.code ~ HC."Already knew positive" + + define "Newly diagnosed": + [Observation: HC."HIV status of partner or contact"] O + where O.status in { 'final', 'amended', 'corrected' } + and exists(O.category OC where OC ~ HCC."social-history") + and O.code ~ HC."Newly diagnosed" + + define "Negative - HIV.H.DE37": + [Observation: HC."HIV status of partner or contact"] O + where O.status in { 'final', 'amended', 'corrected' } + and exists(O.category OC where OC ~ HCC."social-history") + and O.code ~ HC."Negative - HIV.H.DE37" + + define "HIV status of partner or contact": + case + when exists("already known positive") then HC."Already knew positive" + when exists("Newly diagnosed") then HC."Newly diagnosed" + when exists("Negative - HIV.H.DE37") then HC."Negative - HIV.H.DE37" + else null + end + + +//need to define + define STI_testing: + [Procedure] P + where P.status = 'completed' + and P.code ~ HC."STI testing and treatment services" + + +//(including PrEP, OAMT, NSP, STI services, VMMC) + define "HIV prevention intervention": + List{ + if "HIV PREP Active" then 'PrEP' else null, + if OAMT_initiated then 'OAMT' else null, + if "Needle Syringe Dispensed" then 'NSP' else null, + if STI_testing then 'STI services' else null, + if VMMC_done then 'VMMC' else null + } + +define "Negative Tests within Measurement Period": +HIC."HIV Negative Observation" O + with HIC."Client is at elevated risk for HIV acquisition" HIV + such that O.hasMember.references(HIV) + and O.issued after start of "Measurement Period" + and O.issued before end of "Measurement Period" +Sort by O.issued + +define "First Negative Test within Measurement Period": +( First("Negative Tests within Measurement Period")) + +define "Negative Tests after First Negative Test": +HIC."HIV Negative Observation" O + with HIC."Client is at elevated risk for HIV acquisition" HIV + such that O.hasMember.references(HIV) + and O.issued after "First Negative Test within Measurement Period" + and O.issued before ("First Negative Test within Measurement Period" + "Testing Interval") +Sort by O.issued \ No newline at end of file diff --git a/input/cql/HIVIND19Logic.cql b/input/cql/HIVIND19Logic.cql index 6bc8daf2c66..6633197299b 100644 --- a/input/cql/HIVIND19Logic.cql +++ b/input/cql/HIVIND19Logic.cql @@ -83,7 +83,6 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC include WHOCommon called WCom // Indicator Definition @@ -150,4 +149,6 @@ define "Stratification": HIC."By Administrative Gender Stratifier".code + ':' + HIC."By Age Stratifier" + ':' + HIC."By Geographic Region Stratifier" -//Need to discuss how to add list ++ Combine(HIC.patientGroups, ':') ++ Combine(HIC.setting, ':') ++ Combine(HIC.tb, ':') diff --git a/input/cql/HIVIND20Logic.cql b/input/cql/HIVIND20Logic.cql index 618645379f7..1c7774d9aac 100644 --- a/input/cql/HIVIND20Logic.cql +++ b/input/cql/HIVIND20Logic.cql @@ -86,7 +86,6 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC include WHOCommon called WCom // Indicator Definition @@ -149,5 +148,6 @@ define "Stratification": HIC."By Administrative Gender Stratifier".code + ':' + HIC."By Age Stratifier" + ':' + HIC."By Geographic Region Stratifier" -//Need to discuss how to add list -//+ ':' +HIC."patientGroups" \ No newline at end of file ++ Combine(HIC.patientGroups, ':') ++ Combine(HIC.setting, ':') ++ Combine(HIC.tb, ':') \ No newline at end of file diff --git a/input/cql/HIVIND21Logic.cql b/input/cql/HIVIND21Logic.cql index 9b7290e8e62..b0715edf785 100644 --- a/input/cql/HIVIND21Logic.cql +++ b/input/cql/HIVIND21Logic.cql @@ -79,7 +79,6 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC include WHOCommon called WCom // Indicator Definition @@ -136,9 +135,14 @@ define "patientGroups Stratifier": define "TB Stratifier": HIC."tb" +define "Time to start ART": + HIC."Time to start ART" + define "Stratification": HIC."By Administrative Gender Stratifier".code + //not working + //+ ':' + HIC."Time to start ART".code + ':' + HIC."By Age Stratifier" + ':' + HIC."By Geographic Region Stratifier" -// how to add list -//+ ':' + HIC."tb" \ No newline at end of file ++ Combine(HIC.patientGroups, ':') ++ Combine(HIC.tb, ':') diff --git a/input/cql/HIVIND22Logic.cql b/input/cql/HIVIND22Logic.cql index 213ac2a88c8..53a01cd7922 100644 --- a/input/cql/HIVIND22Logic.cql +++ b/input/cql/HIVIND22Logic.cql @@ -79,7 +79,6 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC include WHOCommon called WCom // Indicator Definition @@ -103,7 +102,22 @@ define "Initial Population": */ define "Measure Population": - true + exists(HIC."Partner or contact of an index case" IC + with HIC."Drug-injecting partner" DIP + such that IC.hasMember.references(DIP) + with HIC."HIV test resulted" HIV + such that IC.hasMember.references(HIV) + and HIV.issued after start of "Measurement Period" + and HIV.issued before end of "Measurement Period") + or + exists(HIC."Partner or contact of an index case" IC + with HIC."Sexual partner" SP + such that IC.hasMember.references(SP) + with HIC."HIV test resulted" HIV + such that IC.hasMember.references(HIV) + and HIV.issued after start of "Measurement Period" + and HIV.issued before end of "Measurement Period") + /** @@ -116,3 +130,28 @@ define function "Measure Observation"(Patient "Patient"): 1 /* end Populations */ +/* + * Disaggregators + */ + +define "Administrative Gender Stratifier": + HIC."By Administrative Gender Stratifier" + +define "Age Stratifier": + HIC."By Age Stratifier 2" + +define "Geographic Region Stratifier": + HIC."By Geographic Region Stratifier" + +define "patientGroups Stratifier": + HIC."patientGroups" + +define "HIV status of partner or contact": + HIC."HIV status of partner or contact" + +define "Stratification": + HIC."By Administrative Gender Stratifier".code + + ':' + HIC."HIV status of partner or contact".code + + ':' + HIC."By Age Stratifier 2" ++ ':' + HIC."By Geographic Region Stratifier" ++ Combine(HIC.patientGroups, ':') diff --git a/input/cql/HIVIND24Logic.cql b/input/cql/HIVIND24Logic.cql index b4274af0791..b3d0fd41b24 100644 --- a/input/cql/HIVIND24Logic.cql +++ b/input/cql/HIVIND24Logic.cql @@ -84,11 +84,11 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC include WHOCommon called WCom // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] +parameter "Intervention Interval" System.Quantity default 7 days context Patient /* Populations */ @@ -100,6 +100,52 @@ context Patient define "Initial Population": true + +define "Negative Tests within Measurement Period": +HIC."HIV Negative Observation" O + with HIC."Client is at elevated risk for HIV acquisition" HIV + such that O.hasMember.references(HIV) + and O.issued after start of "Measurement Period" + and O.issued before end of "Measurement Period" +Sort by O.issued + +define "First Negative Test within Measurement Period": +( First("Negative Tests within Measurement Period")) + +define PReP_intervention: +"PReP Intervention" P + where P.effective starts before ("First Negative Test within Measurement Period" + "Intervention Interval") + and P.effective starts after ("First Negative Test within Measurement Period") + +define "OAMT_intervention": + [EpisodeOfCare] EOC + where exists(EOC.type T where T ~ HC."OAMT") + and (exists ( + EOC.statusHistory H + where H.period starts before ("First Negative Test within Measurement Period" + "Intervention Interval") + and H.period starts after ("First Negative Test within Measurement Period") + ) + or ( + EOC.period starts before ("First Negative Test within Measurement Period" + "Intervention Interval") + and EOC.period starts after ("First Negative Test within Measurement Period") + ) + ) + +define NSP_intervention: + HIC."Needle Syringe Dispensed" DUS + where DUS.timing starts before ("First Negative Test within Measurement Period" + "Intervention Interval") + and DUS.timing starts after ("First Negative Test within Measurement Period") + +define STI_intervention: + HIC.STI_testing STI + where STI.performed starts before ("First Negative Test within Measurement Period" + "Intervention Interval") + and STI.performed starts after ("First Negative Test within Measurement Period") + +define VMMC_intervention: + HIC."VMMC_done" VM + where VM.performed starts before ("First Negative Test within Measurement Period" + "Intervention Interval") + and VM.performed starts after ("First Negative Test within Measurement Period") + /** * Numerator * @@ -108,7 +154,17 @@ define "Initial Population": */ define "Numerator": - true + exists(PReP_intervention + ) + or exists(OAMT_intervention + ) + or exists(NSP_intervention + ) + or exists(STI_intervention + ) + or exists(VMMC_intervention + ) + /** @@ -119,8 +175,35 @@ define "Numerator": */ define "Denominator": - true + exists(HIC."Negative Tests within Measurement Period") /* end Populations */ + +/* + * Disaggregators + */ + +define "Administrative Gender Stratifier": + HIC."By Administrative Gender Stratifier" + +define "Age Stratifier": + HIC."By Age Stratifier 2" + +define "Geographic Region Stratifier": + HIC."By Geographic Region Stratifier" + +define "patientGroups Stratifier": + HIC."patientGroups" + +define "HIV prevention intervention": + HIC."HIV prevention intervention" + +define "Stratification": + HIC."By Administrative Gender Stratifier".code + + ':' + HIC."By Age Stratifier 2" ++ ':' + HIC."By Geographic Region Stratifier" ++ Combine(HIC.patientGroups, ':') +//need to fix +//+ Combine(HIC."HIV prevention intervention", ':') \ No newline at end of file diff --git a/input/cql/HIVIND25Logic.cql b/input/cql/HIVIND25Logic.cql index eac93cab6b5..f81a2112a48 100644 --- a/input/cql/HIVIND25Logic.cql +++ b/input/cql/HIVIND25Logic.cql @@ -74,11 +74,11 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC include WHOCommon called WCom // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] +parameter "Testing Interval" System.Quantity default 3 months context Patient /* Populations */ @@ -97,8 +97,28 @@ define "Initial Population": * Calculation: COUNT of clients with "At elevated risk for HIV acquisition"=True AND with a second "HIV test date" within fixed period after "HIV test date" in the reporting period with "HIV test result"='HIV-negative' */ +define "Negative Tests within Measurement Period": +HIC."HIV Negative Observation" O + with HIC."Client is at elevated risk for HIV acquisition" HIV + such that O.hasMember.references(HIV) + and O.issued after start of "Measurement Period" + and O.issued before end of "Measurement Period" +Sort by O.issued + +define "First Negative Test within Measurement Period": +( First("Negative Tests within Measurement Period")) + +define "Negative Tests after First Negative Test": +HIC."HIV Negative Observation" O + with HIC."Client is at elevated risk for HIV acquisition" HIV + such that O.hasMember.references(HIV) + and O.issued after "First Negative Test within Measurement Period" + and O.issued before ("First Negative Test within Measurement Period" + "Testing Interval") +Sort by O.issued + + define "Numerator": - true + exists(HIC."Negative Tests after First Negative Test") /** @@ -109,8 +129,34 @@ define "Numerator": */ define "Denominator": - true + exists(HIC."Negative Tests within Measurement Period") /* end Populations */ + +/* + * Disaggregators + */ + +define "Administrative Gender Stratifier": + HIC."By Administrative Gender Stratifier" + +define "Age Stratifier": + HIC."By Age Stratifier 2" + +define "Geographic Region Stratifier": + HIC."By Geographic Region Stratifier" + +define "patientGroups Stratifier": + HIC."patientGroups" + +define "HIV status of partner or contact": + HIC."HIV status of partner or contact" + +define "Stratification": + HIC."By Administrative Gender Stratifier".code + + ':' + HIC."HIV status of partner or contact".code + + ':' + HIC."By Age Stratifier 2" ++ ':' + HIC."By Geographic Region Stratifier" ++ Combine(HIC.patientGroups, ':') \ No newline at end of file From e131a119dc293b2ad02e24fad4a9001d9d926c15 Mon Sep 17 00:00:00 2001 From: Piotr Mankowski Date: Wed, 24 Jul 2024 15:44:23 -0700 Subject: [PATCH 03/10] Updated naming and fixed some errors (#40) --- input/cql/HIVCommon.cql | 62 +++++----- input/cql/HIVConcepts.cql | 24 ++-- input/cql/HIVElements.cql | 181 ++++++++++++++++------------- input/cql/HIVEncounterElements.cql | 24 ++-- input/cql/HIVIND25Logic.cql | 15 ++- input/cql/HIVIndicatorElements.cql | 46 +++++--- 6 files changed, 190 insertions(+), 162 deletions(-) diff --git a/input/cql/HIVCommon.cql b/input/cql/HIVCommon.cql index 48b41143c25..7c8e0a0f5d0 100644 --- a/input/cql/HIVCommon.cql +++ b/input/cql/HIVCommon.cql @@ -28,6 +28,10 @@ define "HIV Positive Condition": where C.clinicalStatus ~ HCC."active" and exists(C.category CC where CC ~ HCC."encounter-diagnosis") and C.code ~ HC."HIV-positive - HIV.B.DE116" + sort by start of onset.toInterval() + +define "First HIV Positive Condition": + First("HIV Positive Condition") define "HIV Positive Observation": [Observation] O @@ -53,12 +57,10 @@ define "HIV test resulted": and O.code ~ HC."Rapid diagnostic test for HIV - HIV.B.DE82" define "HIV Treatment Active": -[MedicationStatement] MS -Sort by MS.effective + [MedicationStatement] MS where MS.status = 'completed' and exists(MS.reasonCode C where C ~ HC."On ART - HIV.H.DE47") - - + sort by effective define "HIV PREP Active": [MedicationStatement] MS @@ -121,7 +123,7 @@ define "HIV Test Positive After PEP Prescribed during Measurement Period": define "Needle Syringe Dispensed": [DeviceUseStatement] DUS - with [Observation: HC."Key population member* - HIV.E.DE113"] O + with [Observation: HC."Key population member - HIV.E.DE113"] O such that DUS.reasonReference.references(O) and O.status in { 'final', 'amended', 'corrected' } and exists(O.category OC where OC ~ HCC."social-history") @@ -129,7 +131,7 @@ define "Needle Syringe Dispensed": where DUS.status = 'completed' define PWID_person: - [Observation: HC."Key population member* - HIV.E.DE113"] O + [Observation: HC."Key population member - HIV.E.DE113"] O where O.status in { 'final', 'amended', 'corrected' } and exists(O.category OC where OC ~ HCC."social-history") and O.value ~ HC."People who inject drugs - HIV.B.DE54" @@ -301,7 +303,7 @@ define "HIV Status": define SW: exists ( - [Observation: HC."Key population member* - HIV.E.DE113"] O + [Observation: HC."Key population member - HIV.E.DE113"] O where O.status in { 'final', 'amended', 'corrected' } and exists(O.category OC where OC ~ HCC."social-history") and O.value ~ HC."Sex worker - HIV.B.DE51" @@ -309,7 +311,7 @@ define "HIV Status": define MSM: exists ( - [Observation: HC."Key population member* - HIV.E.DE113"] O + [Observation: HC."Key population member - HIV.E.DE113"] O where O.status in { 'final', 'amended', 'corrected' } and exists(O.category OC where OC ~ HCC."social-history") and O.value ~ HC."Men who have sex with men" @@ -317,7 +319,7 @@ define "HIV Status": define Trans: exists ( - [Observation: HC."Key population member* - HIV.E.DE113"] O + [Observation: HC."Key population member - HIV.E.DE113"] O where O.status in { 'final', 'amended', 'corrected' } and exists(O.category OC where OC ~ HCC."social-history") and O.value ~ HC."Trans and gender-diverse people - HIV.B.DE53" @@ -325,7 +327,7 @@ define "HIV Status": define PWID: exists ( - [Observation: HC."Key population member* - HIV.E.DE113"] O + [Observation: HC."Key population member - HIV.E.DE113"] O where O.status in { 'final', 'amended', 'corrected' } and exists(O.category OC where OC ~ HCC."social-history") and O.value ~ HC."People who inject drugs - HIV.B.DE54" @@ -333,7 +335,7 @@ define "HIV Status": define Prisoner: exists ( - [Observation: HC."Key population member* - HIV.E.DE113"] O + [Observation: HC."Key population member - HIV.E.DE113"] O where O.status in { 'final', 'amended', 'corrected' } and exists(O.category OC where OC ~ HCC."social-history") and O.value ~ HC."People living in prisons and other closed settings" @@ -360,7 +362,7 @@ define "HIV Status": define Exposure_Occupational: exists ( - [Observation: HC."HIV exposure type*"] O + [Observation: HC."HIV exposure type"] O where O.status in { 'final', 'amended', 'corrected' } and exists(O.category OC where OC ~ HCC."social-history") and O.value ~ HC."Occupational" @@ -368,7 +370,7 @@ define Exposure_Occupational: define Exposure_Non_Occupational_violent: exists ( - [Observation: HC."HIV exposure type*"] O + [Observation: HC."HIV exposure type"] O where O.status in { 'final', 'amended', 'corrected' } and exists(O.category OC where OC ~ HCC."social-history") and O.value ~ HC."Non-occupational violent" @@ -376,7 +378,7 @@ define Exposure_Non_Occupational_violent: define Exposure_Non_Occupational_consensual_sex: exists ( - [Observation: HC."HIV exposure type*"] O + [Observation: HC."HIV exposure type"] O where O.status in { 'final', 'amended', 'corrected' } and exists(O.category OC where OC ~ HCC."social-history") and O.value ~ HC."Non-occupational consensual sex" @@ -831,9 +833,9 @@ define "VMMC_adverse_event_Postoperative": define "Time to start ART": case - when difference in days between "First HIV Treatment".effective and "HIV Positive Condition".onset <= 7 then HC."Within 7 days of HIV diagnosis" - when difference in days between "First HIV Treatment".effective and "HIV Positive Condition".onset <= 30 then HC."Within 30 days of HIV diagnosis" - when difference in days between "First HIV Treatment".effective and "HIV Positive Condition".onset <= 90 then HC."Within 90 days of HIV diagnosis" + when difference in days between start of "First HIV Treatment".effective.toInterval() and start of "First HIV Positive Condition".onset.toInterval() <= 7 then HC."Within 7 days of HIV diagnosis" + when difference in days between start of "First HIV Treatment".effective.toInterval() and start of "First HIV Positive Condition".onset.toInterval() <= 30 then HC."Within 30 days of HIV diagnosis" + when difference in days between start of "First HIV Treatment".effective.toInterval() and start of "First HIV Positive Condition".onset.toInterval() <= 90 then HC."Within 90 days of HIV diagnosis" else null end @@ -876,28 +878,28 @@ define "VMMC_adverse_event_Postoperative": //(including PrEP, OAMT, NSP, STI services, VMMC) define "HIV prevention intervention": List{ - if "HIV PREP Active" then 'PrEP' else null, + if exists("HIV PREP Active") then 'PrEP' else null, if OAMT_initiated then 'OAMT' else null, - if "Needle Syringe Dispensed" then 'NSP' else null, - if STI_testing then 'STI services' else null, - if VMMC_done then 'VMMC' else null + if exists("Needle Syringe Dispensed") then 'NSP' else null, + if exists(STI_testing) then 'STI services' else null, + if exists(VMMC_done) then 'VMMC' else null } define "Negative Tests within Measurement Period": -HIC."HIV Negative Observation" O - with HIC."Client is at elevated risk for HIV acquisition" HIV +"HIV Negative Observation" O + with "Client is at elevated risk for HIV acquisition" HIV such that O.hasMember.references(HIV) and O.issued after start of "Measurement Period" and O.issued before end of "Measurement Period" -Sort by O.issued + sort by issued define "First Negative Test within Measurement Period": ( First("Negative Tests within Measurement Period")) define "Negative Tests after First Negative Test": -HIC."HIV Negative Observation" O - with HIC."Client is at elevated risk for HIV acquisition" HIV - such that O.hasMember.references(HIV) - and O.issued after "First Negative Test within Measurement Period" - and O.issued before ("First Negative Test within Measurement Period" + "Testing Interval") -Sort by O.issued \ No newline at end of file + "HIV Negative Observation" O + with "Client is at elevated risk for HIV acquisition" HIV + such that O.hasMember.references(HIV) + where O.issued after "First Negative Test within Measurement Period".issued + and O.issued before ("First Negative Test within Measurement Period".issued + "Testing Interval") + sort by issued \ No newline at end of file diff --git a/input/cql/HIVConcepts.cql b/input/cql/HIVConcepts.cql index e72fc63da4e..57f508a445d 100644 --- a/input/cql/HIVConcepts.cql +++ b/input/cql/HIVConcepts.cql @@ -10,14 +10,14 @@ library HIVConcepts codesystem "HIVConcepts": 'http://smart.who.int/hiv/CodeSystem/HIVConcepts' -valueset "Gender* Choices": 'http://smart.who.int/hiv/ValueSet/HIV.A.DE18' +valueset "Gender Choices": 'http://smart.who.int/hiv/ValueSet/HIV.A.DE18' valueset "Reason for visit - HIV.B.DE1 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE1' valueset "Referred through partner services Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE5' valueset "Type of contact or partner for partner services Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE8' valueset "Testing entry point Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE15' valueset "Partner HIV status reported Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE33' -valueset "Key population member type* - HIV.B.DE50 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE50' -valueset "HIV exposure type* Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE61' +valueset "Key population member type - HIV.B.DE50 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE50' +valueset "HIV exposure type Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE61' valueset "HIV test type - HIV.B.DE81 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE81' valueset "Assay number in testing strategy - HIV.B.DE88 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE88' valueset "Test result of HIV assay 1 - HIV.B.DE94 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE94' @@ -26,7 +26,7 @@ valueset "Test result of HIV assay 3 - HIV.B.DE102 Choices": 'http://smart.who.i valueset "Test result of HIV assay 1 repeated - HIV.B.DE106 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE106' valueset "HIV test result - HIV.B.DE111 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE111' valueset "HIV status Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE115' -valueset "Probable route of transmission* Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE121' +valueset "Probable route of transmission Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE121' valueset "Counselling provided Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE142' valueset "Prevention services offered and referrals - HIV.B.DE149 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE149' valueset "Sexual and reproductive health integrated services - HIV.B.DE158 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE158' @@ -117,7 +117,7 @@ valueset "TPT regimen type Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE valueset "TB preventive treatment TPT status Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE1034' valueset "Timing of ART initiation Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE41' valueset "Place of delivery Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE67' -valueset "Key population member type* - HIV.E.DE114 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE114' +valueset "Key population member type - HIV.E.DE114 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE114' valueset "Signs of substantial risk of HIV infection - HIV.E.DE155 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE155' valueset "HIV test type - HIV.E.DE168 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE168' valueset "Maternal and child health service visit Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE173' @@ -153,7 +153,7 @@ valueset "Other priority populations Choices": 'http://smart.who.int/hiv/ValueSe code "Visit date - HIV.A.DE3": 'HIV.A.DE3' from "HIVConcepts" display 'Visit date' code "Estimated age": 'HIV.A.DE16' from "HIVConcepts" display 'Estimated age' code "Age": 'HIV.A.DE17' from "HIVConcepts" display 'Age' -code "Gender*": 'HIV.A.DE18' from "HIVConcepts" display 'Gender*' +code "Gender": 'HIV.A.DE18' from "HIVConcepts" display 'Gender*' code "Female": 'HIV.A.DE19' from "HIVConcepts" display 'Female' code "Male": 'HIV.A.DE20' from "HIVConcepts" display 'Male' code "Transgender male": 'HIV.A.DE21' from "HIVConcepts" display 'Transgender male' @@ -181,15 +181,15 @@ code "Partner HIV status reported": 'HIV.B.DE33' from "HIVConcepts" display 'Par code "HIV-positive - HIV.B.DE34": 'HIV.B.DE34' from "HIVConcepts" display 'HIV-positive' code "HIV-negative - HIV.B.DE35": 'HIV.B.DE35' from "HIVConcepts" display 'HIV-negative' code "Unknown - HIV.B.DE36": 'HIV.B.DE36' from "HIVConcepts" display 'Unknown' -code "Key population member* - HIV.B.DE49": 'HIV.B.DE49' from "HIVConcepts" display 'Key population member*' -code "Key population member type* - HIV.B.DE50": 'HIV.B.DE50' from "HIVConcepts" display 'Key population member type*' +code "Key population member - HIV.B.DE49": 'HIV.B.DE49' from "HIVConcepts" display 'Key population member*' +code "Key population member type - HIV.B.DE50": 'HIV.B.DE50' from "HIVConcepts" display 'Key population member type*' code "Sex worker - HIV.B.DE51": 'HIV.B.DE51' from "HIVConcepts" display 'Sex worker' code "Men who have sex with men": 'HIV.B.DE52' from "HIVConcepts" display 'Men who have sex with men' code "Trans and gender-diverse people - HIV.B.DE53": 'HIV.B.DE53' from "HIVConcepts" display 'Trans and gender-diverse people' code "People who inject drugs - HIV.B.DE54": 'HIV.B.DE54' from "HIVConcepts" display 'People who inject drugs' code "People living in prisons and other closed settings": 'HIV.B.DE55' from "HIVConcepts" display 'People living in prisons and other closed settings' code "Date HIV test results returned": 'HIV.B.DE60' from "HIVConcepts" display 'Date HIV test results returned' -code "HIV exposure type*": 'HIV.B.DE61' from "HIVConcepts" display 'HIV exposure type*' +code "HIV exposure type": 'HIV.B.DE61' from "HIVConcepts" display 'HIV exposure type*' code "Occupational": 'HIV.B.DE62' from "HIVConcepts" display 'Occupational' code "Non-occupational violent": 'HIV.B.DE63' from "HIVConcepts" display 'Non-occupational violent' code "Non-occupational consensual sex": 'HIV.B.DE64' from "HIVConcepts" display 'Non-occupational consensual sex' @@ -234,7 +234,7 @@ code "HIV status": 'HIV.B.DE115' from "HIVConcepts" display 'HIV status' code "HIV-positive - HIV.B.DE116": 'HIV.B.DE116' from "HIVConcepts" display 'HIV-positive' code "HIV-negative - HIV.B.DE117": 'HIV.B.DE117' from "HIVConcepts" display 'HIV-negative' code "Unknown - HIV.B.DE118": 'HIV.B.DE118' from "HIVConcepts" display 'Unknown' -code "Probable route of transmission*": 'HIV.B.DE121' from "HIVConcepts" display 'Probable route of transmission*' +code "Probable route of transmission": 'HIV.B.DE121' from "HIVConcepts" display 'Probable route of transmission*' code "Heterosexual sex": 'HIV.B.DE122' from "HIVConcepts" display 'Heterosexual sex' code "Sex between men": 'HIV.B.DE123' from "HIVConcepts" display 'Sex between men' code "Unprotected intercourse during sex work": 'HIV.B.DE124' from "HIVConcepts" display 'Unprotected intercourse during sex work' @@ -935,8 +935,8 @@ code "ANC contact date - HIV.E.DE85": 'HIV.E.DE85' from "HIVConcepts" display 'A code "Infant date of birth": 'HIV.E.DE87' from "HIVConcepts" display 'Infant date of birth' code "Age of infant": 'HIV.E.DE90' from "HIVConcepts" display 'Age of infant' code "HIV-exposed infant or child - HIV.E.DE112": 'HIV.E.DE112' from "HIVConcepts" display 'HIV-exposed infant or child' -code "Key population member* - HIV.E.DE113": 'HIV.E.DE113' from "HIVConcepts" display 'Key population member*' -code "Key population member type* - HIV.E.DE114": 'HIV.E.DE114' from "HIVConcepts" display 'Key population member type*' +code "Key population member - HIV.E.DE113": 'HIV.E.DE113' from "HIVConcepts" display 'Key population member*' +code "Key population member type - HIV.E.DE114": 'HIV.E.DE114' from "HIVConcepts" display 'Key population member type*' code "Sex worker - HIV.E.DE115": 'HIV.E.DE115' from "HIVConcepts" display 'Sex worker' code "People who inject drugs - HIV.E.DE116": 'HIV.E.DE116' from "HIVConcepts" display 'People who inject drugs' code "Trans and gender-diverse people - HIV.E.DE117": 'HIV.E.DE117' from "HIVConcepts" display 'Trans and gender-diverse people' diff --git a/input/cql/HIVElements.cql b/input/cql/HIVElements.cql index a9f75bc795e..b67ec64463c 100644 --- a/input/cql/HIVElements.cql +++ b/input/cql/HIVElements.cql @@ -55,27 +55,37 @@ define "Estimated age Value": @activity: HIV.A6.1 Review sociodemographic data with client | HIV.A5 Create new client record @description: Calculated age (number of years) of the client based on date of birth */ -// TODO: Replace placeholder with relevant CQL logic -define "Age": - [Observation: Concepts."Age"] O - where O.status in { 'final', 'amended', 'corrected' } -define "Age Value": - "Age" O - return O.value +/** + * @dataElement Patient age in years + */ +define "Current Patient Age In Years": + AgeInYearsAt(Today()) + +/** + * @dataElement Patient age in weeks + */ +define "Current Patient Age In Weeks": + AgeInWeeksAt(Today()) + +/** + * @dataElement Patient age in months + */ +define "Current Patient Age In Months": + AgeInMonthsAt(Today()) /* End of Age */ /* -@dataElement: HIV.A.DE18 - Gender* +@dataElement: HIV.A.DE18 - Gender @activity: HIV.A6.1 Review sociodemographic data with client | HIV.A5 Create new client record -@description: Gender of the client* +@description: Gender of the client */ // TODO: Replace placeholder with relevant CQL logic -define "Gender*": - exists "Gender* Observation" -define "Gender* Observation": - [Observation: Concepts."Gender*"] O +define "Gender": + exists "Gender Observation" +define "Gender Observation": + [Observation: Concepts."Gender"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Gender* */ +/* End of Gender */ /* @dataElement: HIV.A.DE19 - Female @@ -89,7 +99,7 @@ define "Female": define "Female Condition": [Condition: Concepts."Female"] define "Female Observation": - "Gender* Observation" O + "Gender Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Female" /* End of Female */ @@ -106,7 +116,7 @@ define "Male": define "Male Condition": [Condition: Concepts."Male"] define "Male Observation": - "Gender* Observation" O + "Gender Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Male" /* End of Male */ @@ -123,7 +133,7 @@ define "Transgender male": define "Transgender male Condition": [Condition: Concepts."Transgender male"] define "Transgender male Observation": - "Gender* Observation" O + "Gender Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Transgender male" /* End of Transgender male */ @@ -140,7 +150,7 @@ define "Transgender female": define "Transgender female Condition": [Condition: Concepts."Transgender female"] define "Transgender female Observation": - "Gender* Observation" O + "Gender Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Transgender female" /* End of Transgender female */ @@ -157,7 +167,7 @@ define "Other A.DE23": define "Other A.DE23 Condition": [Condition: Concepts."Other - HIV.A.DE23"] define "Other A.DE23 Observation": - "Gender* Observation" O + "Gender Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Other - HIV.A.DE23" /* End of Other A.DE23 */ @@ -508,31 +518,31 @@ define "Unknown B.DE36 Observation": /* End of Unknown B.DE36 */ /* -@dataElement: HIV.B.DE49 - Key population member* +@dataElement: HIV.B.DE49 - Key population member @activity: HIV.B6 Capture or update client history @description: Client is a member of a key population that has an increased risk of HIV */ // TODO: Replace placeholder with relevant CQL logic -define "Key population member* B.DE49": - exists "Key population member* B.DE49 Observation" -define "Key population member* B.DE49 Observation": - [Observation: Concepts."Key population member* - HIV.B.DE49"] O +define "Key population member B.DE49": + exists "Key population member B.DE49 Observation" +define "Key population member B.DE49 Observation": + [Observation: Concepts."Key population member - HIV.B.DE49"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Key population member* B.DE49 */ +/* End of Key population member B.DE49 */ /* -@dataElement: HIV.B.DE50 - Key population member type* +@dataElement: HIV.B.DE50 - Key population member type @activity: HIV.B6 Capture or update client history @description: The type of key population that the client is included in */ // TODO: Replace placeholder with relevant CQL logic -define "Key population member type* B.DE50": - exists "Key population member type* B.DE50 Observation" -define "Key population member type* B.DE50 Observation": - [Observation: Concepts."Key population member type* - HIV.B.DE50"] O +define "Key population member type B.DE50": + exists "Key population member type B.DE50 Observation" +define "Key population member type B.DE50 Observation": + [Observation: Concepts."Key population member type - HIV.B.DE50"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Key population member type* B.DE50 */ +/* End of Key population member type B.DE50 */ /* @dataElement: HIV.B.DE51 - Sex worker @@ -546,7 +556,7 @@ define "Sex worker B.DE51": define "Sex worker B.DE51 Condition": [Condition: Concepts."Sex worker - HIV.B.DE51"] define "Sex worker B.DE51 Observation": - "Key population member type* B.DE50 Observation" O + "Key population member type B.DE50 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Sex worker - HIV.B.DE51" /* End of Sex worker B.DE51 */ @@ -563,7 +573,7 @@ define "Men who have sex with men": define "Men who have sex with men Condition": [Condition: Concepts."Men who have sex with men"] define "Men who have sex with men Observation": - "Key population member type* B.DE50 Observation" O + "Key population member type B.DE50 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Men who have sex with men" /* End of Men who have sex with men */ @@ -580,7 +590,7 @@ define "Trans and gender-diverse people B.DE53": define "Trans and gender-diverse people B.DE53 Condition": [Condition: Concepts."Trans and gender-diverse people - HIV.B.DE53"] define "Trans and gender-diverse people B.DE53 Observation": - "Key population member type* B.DE50 Observation" O + "Key population member type B.DE50 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Trans and gender-diverse people - HIV.B.DE53" /* End of Trans and gender-diverse people B.DE53 */ @@ -597,7 +607,7 @@ define "People who inject drugs B.DE54": define "People who inject drugs B.DE54 Condition": [Condition: Concepts."People who inject drugs - HIV.B.DE54"] define "People who inject drugs B.DE54 Observation": - "Key population member type* B.DE50 Observation" O + "Key population member type B.DE50 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."People who inject drugs - HIV.B.DE54" /* End of People who inject drugs B.DE54 */ @@ -614,7 +624,7 @@ define "People living in prisons and other closed settings": define "People living in prisons and other closed settings Condition": [Condition: Concepts."People living in prisons and other closed settings"] define "People living in prisons and other closed settings Observation": - "Key population member type* B.DE50 Observation" O + "Key population member type B.DE50 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."People living in prisons and other closed settings" /* End of People living in prisons and other closed settings */ @@ -634,17 +644,17 @@ define "Date HIV test results returned Value": /* End of Date HIV test results returned */ /* -@dataElement: HIV.B.DE61 - HIV exposure type* +@dataElement: HIV.B.DE61 - HIV exposure type @activity: HIV.B6 Capture or update client history @description: Ways in which the client was exposed to HIV */ // TODO: Replace placeholder with relevant CQL logic -define "HIV exposure type*": - exists "HIV exposure type* Observation" -define "HIV exposure type* Observation": - [Observation: Concepts."HIV exposure type*"] O +define "HIV exposure type": + exists "HIV exposure type Observation" +define "HIV exposure type Observation": + [Observation: Concepts."HIV exposure type"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of HIV exposure type* */ +/* End of HIV exposure type */ /* @dataElement: HIV.B.DE62 - Occupational @@ -658,7 +668,7 @@ define "Occupational": define "Occupational Condition": [Condition: Concepts."Occupational"] define "Occupational Observation": - "HIV exposure type* Observation" O + "HIV exposure type Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Occupational" /* End of Occupational */ @@ -675,7 +685,7 @@ define "Non-occupational violent": define "Non-occupational violent Condition": [Condition: Concepts."Non-occupational violent"] define "Non-occupational violent Observation": - "HIV exposure type* Observation" O + "HIV exposure type Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Non-occupational violent" /* End of Non-occupational violent */ @@ -692,7 +702,7 @@ define "Non-occupational consensual sex": define "Non-occupational consensual sex Condition": [Condition: Concepts."Non-occupational consensual sex"] define "Non-occupational consensual sex Observation": - "HIV exposure type* Observation" O + "HIV exposure type Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Non-occupational consensual sex" /* End of Non-occupational consensual sex */ @@ -1348,17 +1358,17 @@ define "Unknown B.DE118 Observation": /* End of Unknown B.DE118 */ /* -@dataElement: HIV.B.DE121 - Probable route of transmission* +@dataElement: HIV.B.DE121 - Probable route of transmission @activity: HIV.B8 Provide post-test counselling @description: Probable route(s) of transmission of HIV to client */ // TODO: Replace placeholder with relevant CQL logic -define "Probable route of transmission*": - exists "Probable route of transmission* Observation" -define "Probable route of transmission* Observation": - [Observation: Concepts."Probable route of transmission*"] O +define "Probable route of transmission": + exists "Probable route of transmission Observation" +define "Probable route of transmission Observation": + [Observation: Concepts."Probable route of transmission"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Probable route of transmission* */ +/* End of Probable route of transmission */ /* @dataElement: HIV.B.DE122 - Heterosexual sex @@ -1372,7 +1382,7 @@ define "Heterosexual sex": define "Heterosexual sex Condition": [Condition: Concepts."Heterosexual sex"] define "Heterosexual sex Observation": - "Probable route of transmission* Observation" O + "Probable route of transmission Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Heterosexual sex" /* End of Heterosexual sex */ @@ -1389,7 +1399,7 @@ define "Sex between men": define "Sex between men Condition": [Condition: Concepts."Sex between men"] define "Sex between men Observation": - "Probable route of transmission* Observation" O + "Probable route of transmission Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Sex between men" /* End of Sex between men */ @@ -1406,7 +1416,7 @@ define "Unprotected intercourse during sex work": define "Unprotected intercourse during sex work Condition": [Condition: Concepts."Unprotected intercourse during sex work"] define "Unprotected intercourse during sex work Observation": - "Probable route of transmission* Observation" O + "Probable route of transmission Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Unprotected intercourse during sex work" /* End of Unprotected intercourse during sex work */ @@ -1423,7 +1433,7 @@ define "Injecting drug use with unsterile equipment": define "Injecting drug use with unsterile equipment Condition": [Condition: Concepts."Injecting drug use with unsterile equipment"] define "Injecting drug use with unsterile equipment Observation": - "Probable route of transmission* Observation" O + "Probable route of transmission Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Injecting drug use with unsterile equipment" /* End of Injecting drug use with unsterile equipment */ @@ -1440,7 +1450,7 @@ define "Nosocomial": define "Nosocomial Condition": [Condition: Concepts."Nosocomial"] define "Nosocomial Observation": - "Probable route of transmission* Observation" O + "Probable route of transmission Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Nosocomial" /* End of Nosocomial */ @@ -1457,7 +1467,7 @@ define "Vertical": define "Vertical Condition": [Condition: Concepts."Vertical"] define "Vertical Observation": - "Probable route of transmission* Observation" O + "Probable route of transmission Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Vertical" /* End of Vertical */ @@ -1474,7 +1484,7 @@ define "Other B.DE128": define "Other B.DE128 Condition": [Condition: Concepts."Other - HIV.B.DE128"] define "Other B.DE128 Observation": - "Probable route of transmission* Observation" O + "Probable route of transmission Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Other - HIV.B.DE128" /* End of Other B.DE128 */ @@ -12604,13 +12614,22 @@ define "Infant date of birth Value": @activity: HIV.E1 Capture or update mother's history @description: Infant age calculated using date of birth */ -// TODO: Replace placeholder with relevant CQL logic -define "Age of infant": - [Observation: Concepts."Age of infant"] O - where O.status in { 'final', 'amended', 'corrected' } -define "Age of infant Value": - "Age of infant" O - return O.value +define "Age of infant in days": + "Infant date of birth" O + return CalculateAgeInDays(O.value) + +define "Age of infant in hours": + "Infant date of birth" O + return CalculateAgeInHours(O.value) + +define "Age of infant in weeks": + "Infant date of birth" O + return CalculateAgeInWeeks(O.value) + +define "Age of infant in years": + "Infant date of birth" O + return CalculateAgeInYears(O.value) + /* End of Age of infant */ /* @@ -12628,31 +12647,31 @@ define "HIV-exposed infant or child E.DE112 Observation": /* End of HIV-exposed infant or child E.DE112 */ /* -@dataElement: HIV.E.DE113 - Key population member* +@dataElement: HIV.E.DE113 - Key population member @activity: HIV.E1 Capture or update mother's history @description: Mother is a member of a key population which has an increased risk of HIV */ // TODO: Replace placeholder with relevant CQL logic -define "Key population member* E.DE113": - exists "Key population member* E.DE113 Observation" -define "Key population member* E.DE113 Observation": - [Observation: Concepts."Key population member* - HIV.E.DE113"] O +define "Key population member E.DE113": + exists "Key population member E.DE113 Observation" +define "Key population member E.DE113 Observation": + [Observation: Concepts."Key population member - HIV.E.DE113"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true -/* End of Key population member* E.DE113 */ +/* End of Key population member E.DE113 */ /* -@dataElement: HIV.E.DE114 - Key population member type* +@dataElement: HIV.E.DE114 - Key population member type @activity: HIV.E1 Capture or update mother's history @description: The type of key population that the infant's mother is included in */ // TODO: Replace placeholder with relevant CQL logic -define "Key population member type* E.DE114": - exists "Key population member type* E.DE114 Observation" -define "Key population member type* E.DE114 Observation": - [Observation: Concepts."Key population member type* - HIV.E.DE114"] O +define "Key population member type E.DE114": + exists "Key population member type E.DE114 Observation" +define "Key population member type E.DE114 Observation": + [Observation: Concepts."Key population member type - HIV.E.DE114"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of Key population member type* E.DE114 */ +/* End of Key population member type E.DE114 */ /* @dataElement: HIV.E.DE115 - Sex worker @@ -12666,7 +12685,7 @@ define "Sex worker E.DE115": define "Sex worker E.DE115 Condition": [Condition: Concepts."Sex worker - HIV.E.DE115"] define "Sex worker E.DE115 Observation": - "Key population member type* E.DE114 Observation" O + "Key population member type E.DE114 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Sex worker - HIV.E.DE115" /* End of Sex worker E.DE115 */ @@ -12683,7 +12702,7 @@ define "People who inject drugs E.DE116": define "People who inject drugs E.DE116 Condition": [Condition: Concepts."People who inject drugs - HIV.E.DE116"] define "People who inject drugs E.DE116 Observation": - "Key population member type* E.DE114 Observation" O + "Key population member type E.DE114 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."People who inject drugs - HIV.E.DE116" /* End of People who inject drugs E.DE116 */ @@ -12700,7 +12719,7 @@ define "Trans and gender-diverse people E.DE117": define "Trans and gender-diverse people E.DE117 Condition": [Condition: Concepts."Trans and gender-diverse people - HIV.E.DE117"] define "Trans and gender-diverse people E.DE117 Observation": - "Key population member type* E.DE114 Observation" O + "Key population member type E.DE114 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Trans and gender-diverse people - HIV.E.DE117" /* End of Trans and gender-diverse people E.DE117 */ @@ -12717,7 +12736,7 @@ define "People living in prisons and other closed setting": define "People living in prisons and other closed setting Condition": [Condition: Concepts."People living in prisons and other closed setting"] define "People living in prisons and other closed setting Observation": - "Key population member type* E.DE114 Observation" O + "Key population member type E.DE114 Observation" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."People living in prisons and other closed setting" /* End of People living in prisons and other closed setting */ diff --git a/input/cql/HIVEncounterElements.cql b/input/cql/HIVEncounterElements.cql index b1ff3862409..dfec38695c1 100644 --- a/input/cql/HIVEncounterElements.cql +++ b/input/cql/HIVEncounterElements.cql @@ -125,18 +125,18 @@ define "Date/time of suspected exposure to HIV B.DE14 Value": /* End of Date/time of suspected exposure to HIV B.DE14 */ /* -@dataElement: HIV.B.DE49 - Key population member* +@dataElement: HIV.B.DE49 - Key population member @activity: HIV.B6 Capture or update client history @description: Client is a member of a key population that has an increased risk of HIV */ // TODO: Replace placeholder with relevant CQL logic -define "Key population member* B.DE49": - exists "Key population member* B.DE49 Observation" -define "Key population member* B.DE49 Observation": - Elements."Key population member* B.DE49 Observation" O +define "Key population member B.DE49": + exists "Key population member B.DE49 Observation" +define "Key population member B.DE49 Observation": + Elements."Key population member B.DE49 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Key population member* B.DE49 */ +/* End of Key population member B.DE49 */ /* @dataElement: HIV.B.DE80 - HIV test conducted @@ -7564,18 +7564,18 @@ define "C reactive protein test result Value": /* End of C reactive protein test result */ /* -@dataElement: HIV.E.DE113 - Key population member* +@dataElement: HIV.E.DE113 - Key population member @activity: HIV.E1 Capture or update mother's history @description: Mother is a member of a key population which has an increased risk of HIV */ // TODO: Replace placeholder with relevant CQL logic -define "Key population member* E.DE113": - exists "Key population member* E.DE113 Observation" -define "Key population member* E.DE113 Observation": - Elements."Key population member* E.DE113 Observation" O +define "Key population member E.DE113": + exists "Key population member E.DE113 Observation" +define "Key population member E.DE113 Observation": + Elements."Key population member E.DE113 Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Key population member* E.DE113 */ +/* End of Key population member E.DE113 */ /* @dataElement: HIV.E.DE155 - Signs of substantial risk of HIV infection diff --git a/input/cql/HIVIND25Logic.cql b/input/cql/HIVIND25Logic.cql index f81a2112a48..ca631d33099 100644 --- a/input/cql/HIVIND25Logic.cql +++ b/input/cql/HIVIND25Logic.cql @@ -101,20 +101,19 @@ define "Negative Tests within Measurement Period": HIC."HIV Negative Observation" O with HIC."Client is at elevated risk for HIV acquisition" HIV such that O.hasMember.references(HIV) - and O.issued after start of "Measurement Period" - and O.issued before end of "Measurement Period" -Sort by O.issued + where O.issued.value in "Measurement Period" + sort by issued define "First Negative Test within Measurement Period": -( First("Negative Tests within Measurement Period")) + (First("Negative Tests within Measurement Period")) define "Negative Tests after First Negative Test": HIC."HIV Negative Observation" O with HIC."Client is at elevated risk for HIV acquisition" HIV - such that O.hasMember.references(HIV) - and O.issued after "First Negative Test within Measurement Period" - and O.issued before ("First Negative Test within Measurement Period" + "Testing Interval") -Sort by O.issued + such that O.hasMember.references(HIV) + where O.issued after "First Negative Test within Measurement Period".issued + and O.issued before ("First Negative Test within Measurement Period".issued + "Testing Interval") + sort by issued define "Numerator": diff --git a/input/cql/HIVIndicatorElements.cql b/input/cql/HIVIndicatorElements.cql index 43584644552..cf521947532 100644 --- a/input/cql/HIVIndicatorElements.cql +++ b/input/cql/HIVIndicatorElements.cql @@ -236,17 +236,17 @@ define "Date HIV test results returned Value": /* End of Date HIV test results returned */ /* -@dataElement: HIV.B.DE61 - HIV exposure type* +@dataElement: HIV.B.DE61 - HIV exposure type @activity: HIV.B6 Capture or update client history @description: Ways in which the client was exposed to HIV */ // TODO: Replace placeholder with relevant CQL logic -define "HIV exposure type*": - exists "HIV exposure type* Observation" -define "HIV exposure type* Observation": - Elements."HIV exposure type* Observation" O +define "HIV exposure type": + exists "HIV exposure type Observation" +define "HIV exposure type Observation": + Elements."HIV exposure type Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of HIV exposure type* */ +/* End of HIV exposure type */ /* @dataElement: HIV.B.DE62 - Occupational @@ -317,17 +317,17 @@ define "HIV test date B.DE110 Value": /* End of HIV test date B.DE110 */ /* -@dataElement: HIV.B.DE121 - Probable route of transmission* +@dataElement: HIV.B.DE121 - Probable route of transmission @activity: HIV.B8 Provide post-test counselling @description: Probable route(s) of transmission of HIV to client */ // TODO: Replace placeholder with relevant CQL logic -define "Probable route of transmission*": - exists "Probable route of transmission* Observation" -define "Probable route of transmission* Observation": - Elements."Probable route of transmission* Observation" O +define "Probable route of transmission": + exists "Probable route of transmission Observation" +define "Probable route of transmission Observation": + Elements."Probable route of transmission Observation" O where O.effective.toInterval() during "Measurement Period" -/* End of Probable route of transmission* */ +/* End of Probable route of transmission */ /* @dataElement: HIV.B.DE122 - Heterosexual sex @@ -4393,15 +4393,23 @@ define "Infant date of birth Value": @activity: HIV.E1 Capture or update mother's history @description: Infant age calculated using date of birth */ -// TODO: Replace placeholder with relevant CQL logic -define "Age of infant": - Elements."Age of infant" O - where O.effective.toInterval() during "Measurement Period" -define "Age of infant Value": - "Age of infant" O - return O.value + /* End of Age of infant */ +define "Age of infant in days": + "Infant date of birth Value" bd + return CalculateAgeInDaysAt(bd, start of "Measurement Period") + +define "Age of infant in hours": + "Infant date of birth Value" bd + return CalculateAgeInHoursAt(bd, start of "Measurement Period") + +define "Age of infant in weeks": + "Infant date of birth Value" bd + return CalculateAgeInWeeksAt(bd, start of "Measurement Period") +define "Age of infant in years": + "Infant date of birth Value" bd + return CalculateAgeInYearsAt(bd, start of "Measurement Period") /* @dataElement: HIV.E.DE112 - HIV-exposed infant or child @activity: HIV.F6 Check whether infant/child had HIV exposure From 9e2f743d7b887064f56251c03761e89fa48a94f0 Mon Sep 17 00:00:00 2001 From: Ian <52504170+ibacher@users.noreply.github.com> Date: Wed, 31 Jul 2024 12:07:52 -0400 Subject: [PATCH 04/10] HIVB9DT (#42) --- input/cql/HIVB2DTLogic.cql | 161 +++++++----- input/cql/HIVB9DTLogic.cql | 245 ++++++++++++++++++ input/cql/HIVConceptsCustom.cql | 4 +- input/cql/HIVElements.cql | 1 - input/cql/HIVEncounterElements.cql | 1 - .../HIVB9DTScheduleFollowUp.fsh | 33 +++ input/fsh/libraries/HIVB9DTLogic.fsh | 19 ++ input/fsh/plandefinition/HIVB9DT.fsh | 206 +++++++++++++++ 8 files changed, 598 insertions(+), 72 deletions(-) create mode 100644 input/cql/HIVB9DTLogic.cql create mode 100644 input/fsh/activitydefinition/HIVB9DTScheduleFollowUp.fsh create mode 100644 input/fsh/libraries/HIVB9DTLogic.fsh create mode 100644 input/fsh/plandefinition/HIVB9DT.fsh diff --git a/input/cql/HIVB2DTLogic.cql b/input/cql/HIVB2DTLogic.cql index 2c5c719a84f..4ca521660bf 100644 --- a/input/cql/HIVB2DTLogic.cql +++ b/input/cql/HIVB2DTLogic.cql @@ -2,87 +2,112 @@ Library: HIV.B2.DT Logic @DecisionID: HIV.B2.DT -@BusinessRule: -@Trigger: -@Description: - -Check for signs of serious illness -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. -Should this just be for anyone with HIV? -Wouldn't other disease domains also code for general exam? +@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 care for people with advanced HIV disease. */ library HIVB2DTLogic - using FHIR version '4.0.1' - - - include HIVCommon version '0.0.1' called HIC - include FHIRHelpers version '4.0.1' - include WHOCommon called WCom - include FHIRCommon called FC +using FHIR version '4.0.1' - valueset "Tachycardia": '' - valueset "Tachypnea": '' - valueset "Unable to walk unaided": '' - valueset "Body temperature = ≥ 39 °C": '' - valueset "Other sign of serious illness (specify)": '' - valueset "Lethargy": '' - valueset "Unconsciousness": '' - valueset "Convulsions": '' - valueset "Unable to breastfeed": '' - valueset "Unable to drink": '' - valueset "Repeated vomiting": '' +include HIVCommon version '0.0.1' called HIC +include HIVConcepts called HCx +include HIVEncounterElements called Elements +include FHIRHelpers version '4.0.1' +include FHIRCommon called FC +include WHOCommon called WCom - context Patient +context Patient /* - * Age = ≥ 10 years + @input: "Age 10 or older" + @pseudocode: 'Age' >= 10 years */ - -define "Age_10_or_more": +define "Age 10 or older": AgeInYearsAt(Today()) >= 10 /* - * Age < 10 years + @input: "Age under 10" + @pseudocode: 'Age' < 10 years */ - -define "Age_less_than_10": +define "Age under 10": AgeInYearsAt(Today()) < 10 -define "Take action or refer client showing signs of a serious illness": - exists(([Observation: "Tachycardia"] - union [Observation: "Tachypnea"] - union [Observation: "Unable to walk unaided"]) O - where Age_10_or_more - and O.status in { 'final', 'amended' }) - or exists(([Observation: "Lethargy"] - union [Observation: "Unconsciousness"] - union [Observation: "Convulsions"] - union [Observation: "Unable to breastfeed"] - union [Observation: "Unable to drink"] - union [Observation: "Unconsciousness"] - union [Observation: "Repeated vomiting"]) O - where Age_less_than_10 - and O.status in { 'final', 'amended' } - ) - -//plan definition Immediately take action or refer for care if a client is having this issue. - +/* + @output: "Immediately take action or refer for care if a client is having this issue" + */ +define "Immediately take action or refer for care if a client is having this issue": + exists(Elements."Signs of serious illness" O + where "Age 10 or older" + and O.value ~ HCx."Tachycardia") + +/* + @output "Immediately take action or refer for care if client is showing this sign of a serious illness." + */ +define "Immediately take action or refer for care if client is showing this sign of a serious illness": + "Signs of serious illness age 10 or older" or "Signs of serious illness age under 10" + +/* + @output "Use clinical judgement and consider local epidemiology to determine if symptoms suggest client is seriously ill" + */ define "Use clinical judgement and consider local epidemiology to determine if symptoms suggest client is seriously ill": - exists (([Observation: "Body temperature = ≥ 39 °C"] - union [Observation: "Other sign of serious illness (specify)"]) O - where Age_10_or_more - and O.status in { 'final', 'amended' }) - // Please this condition needs to be fixed - // or exists((([Observation: "Body temperature = ≥ 39 °C"] - // intersect [Observation: "Tachycardia"]) - // or ([Observation: "Body temperature = ≥ 39 °C"] - // intersect [Observation: "Tachypnea"]) - // or [Observation: "Other sign of serious illness (specify)"]) O - // where Age_less_than_10 - // and O.status in { 'final', 'amended' }) - // ) - - -//plan definition Use clinical judgement and consider local epidemiology to determine if symptoms suggest client is seriously ill. + "Signs of serious illness requiring clinical judgement age 10 or older" or "Signs of serious illness requiring clinical judgement age under 10" + +/* + @dynamicValue: Guidance + */ +define "Guidance": + case + when "Immediately take action or refer for care if a client is having this issue" + then "Immediately take action or refer for care if a client is having this issue." + when "Immediately take action or refer for care if client is showing this sign of a serious illness" and "Age 10 or older" + then "Immediately take action or refer for care if client is showing this sign of a serious illness." + when "Immediately take action or refer for care if client is showing this sign of a serious illness" and "Age under 10" + then """This is a sign and/or symptom of a serious health condition. + +Immediately take action or refer for care if client is showing this sign of a serious illness.""" + else null + end + +/* + Supporting Logic +*/ +define "Signs of serious illness age 10 or older": + "Age 10 or older" and Elements."Signs of serious illness" O + where + O.value ~ HCx."Tachypnea" or + O.value ~ HCx."Unable to walk unaided" + +define "Signs of serious illness age under 10": + "Age under 10" and Elements."Signs of serious illness" O + where + O.value in { + HCx."Lethargy - HIV.D.DE22", + HCx."Unconsciousness", + HCx."Convulsions", + HCx."Unable to breastfeed", + HCx."Unable to drink", + HCx."Repeated vomiting" + } + +define "Signs of serious illness requiring clinical judgement age 10 or older": + "Age 10 or older" and Elements."Signs of serious illness" O + where + O.value ~ HCx."Fever of 39 C or greater" or + O.value ~ HCx."Other sign of serious illness" + +define "Signs of serious illness requiring clinical judgement age under 10": + "Age under 10" and Elements."Signs of serious illness" O + where + O.value ~ HCx."Fever of 39 C or greater" or + O.value ~ HCx."Other sign of serious illness" diff --git a/input/cql/HIVB9DTLogic.cql b/input/cql/HIVB9DTLogic.cql new file mode 100644 index 00000000000..baf76772eeb --- /dev/null +++ b/input/cql/HIVB9DTLogic.cql @@ -0,0 +1,245 @@ +/* +@DecisionID: HIV.B9.DT +@BusinessRule: HIV restesting recommendations +@Trigger: HIV.B9 Determine recommended services +@HitPolicy: Rule order +@Description: Determine retest recommendation + +Data Concepts: + * HIV.B.DE115: HIV status | HIV status reported after applying the national HIV testing algorithm. No single HIV test can provide an HIV-positive diagnosis. + * HIV.B.DE33: Partner HIV status (reported) | The HIV status of the client's partner. + * HIV.C.DE55: Sex partner's HIV treatment status | Treatment adherence of client's sex partner for partners that are HIV-positive + * HIV.Config.DE12: HIV burden of the setting | HIV burden of the setting (high or low) based on the national HIV prevalence or where the HIV prevalence and/or incidence in a geographical setting is higher than national prevalence and, therefore, needs priority in the HIV response + * HIV.B.DE49: Key population member | Client is a member of a key population that has an increased risk of HIV + * HIV.B.DE29: Currently pregnant | Client is currently pregnant + * HIV.D.DE939: TB diagnosis result | Final result of the TB investigation (bacteriological and/or clinical) + * HIV.D.DE282: Presumptive TB | Client's comorbidities or coinfections or symptoms of these include presumptive TB + * HIV.C.DE10: Currently on PrEP | The client is currently taking PrEP. Oral pre-exposure prophylaxis (PrEP) of HIV is the use of ARV drugs by people who are not infected with HIV to block the acquisition of HIV. + * HIV.B.DE225: At elevated risk for HIV acquisition | Client is at elevated risk for HIV acquisition +*/ +library HIVB9DTLogic + +// Included Libraries +using FHIR version '4.0.1' + +include HIVCommon version '0.0.1' called HIC +include HIVConcepts called HCx +include HIVConfig called Config +include HIVEncounterElements called Elements +include FHIRHelpers version '4.0.1' +include FHIRCommon called FC +include WHOCommon called WCom +// Included for PlanDefinition +include WHOConcepts called WCx +include WHOEncounterElements called WElm + + +context Patient + + /* + @input: "HIV status negative or unknown" + @pseudocode: "HIV status" IN 'HIV-negative', 'Unknown' + */ +define "HIV status negative or unknown": + exists(Elements."HIV status Observation" O + where O.value in { HCx."HIV-negative", HCx."Unknown" }) + + /* + @input: "Partner HIV reported positive" + @pseudocode: "Partner HIV status (reported)"='HIV-positive' + */ +define "Partner HIV positive": + exists(Elements."Partner HIV status reported Observation" O + where O.value ~ HCx."HIV-positive") + + /* + @input: "Sex partner's HIV treatment status is partner not virally suppressed" + @pseudocode: "Sex partner's HIV treatment status"='Partner is not virally suppressed' + */ +define "Sex partner's HIV treatment status is partner not virally suppressed": + exists(Elements."Sex partners HIV treatment status Observation" O + where O.value ~ HCx."Partner is not virally suppressed") + + /* + @input: "HIV burden of setting is high HIV burden setting" + @pseudocode: "HIV burden of the setting"='High HIV burden setting' + */ +define "HIV burden of setting is high HIV burden setting": + Config."HIV burden of setting" ~ HCx."High HIV burden setting" + + /* + @input: "HIV burden of setting is low HIV burden setting" + @pseudocode: "HIV burden of the setting"='Low HIV burden setting' + */ +define "HIV burden of setting is low HIV burden setting": + Config."HIV burden of setting" ~ HCx."Low HIV burden setting" + + /* + @input: "Key population member" + @pseudocode: "Key population member" = TRUE + */ +define "Key population member": + exists(Elements."Key population member* B.DE49 Observation" O + where O.value is true) + + /* + @input: "Currently pregnant" + @pseudocode: "Currently pregnant"=True + */ +define "Currently pregnant": + exists(WElm."Pregnant Observation") + + /* + @input: "TB diagnosis result is diagnosed TB" + @pseudocode: "Currently pregnant"=True + */ +define "TB diagnosis result is diagnosed TB": + exists(Elements."TB diagnosis result Observation" O + where O.value ~ HCx."Diagnosed TB" or) + + /* + @input: "Presumptive TB" + @pseudocode: "Presumptive TB"=True + */ +define "Presumptive TB": + exists(Elements."Presumptive TB D.DE282 Observation" O + where O.value is true) + +/* + @input: "Currently on PrEP" + @pseudocode: "Currently on PrEP"=True + */ +define "Currently on PrEP": + exists(Elements."Currently on PrEP" O + where O.value is true) + + /* + @input: "At elevated risk for HIV acquisition" + @pseudocode: "At elevated risk for HIV acquisition"=True + */ +define "At elevated risk for HIV acquisition": + exists(Elements."At elevated risk for HIV acquisition" O + where O.value is true) + + /* + @output: "Schedule an annual follow-up test" + @pseudocode: "Follow-up test recommended date" = "Visit date" + 1 year + */ +define "Schedule an annual follow-up test": + "HIV status negative or unknown" and + case + when "Partner has HIV and is not virally suppressed" + then true + when "HIV burden of setting is high HIV burden setting" + then true + when "Key population memeber" + then true + when "At elevated risk for HIV acquisition" + then true + else false + end + +/* + @output: "Follow-up test recommended" + @pseudocode: N/A + */ +define "Follow-up test recommended": + "HIV status negative or unknown" and + case + when "TB diagnosis result is diagnosed TB" + then true + when "Presumptive TB" + then true + else false + end + +/* + @output: "Schedule quarterly retesting for PrEP users" + @pseudocode: N/A + */ +define "Schedule quarterly retesting for PrEP users": + "HIV status negative or unknown" and "Currently on PrEP" + +/* + @output: "Schedule an HIV test, syphilis test, hepatitis B test as early as possible during this pregnancy" + @pseudocode: N/A + */ +define "Schedule an HIV test, syphilis test, hepatitis B test as early as possible during this pregnancy": + "Pregnant in high HIV burden setting" + +/* + @output: "Schedule a 'Follow-up test recommended date during a third trimester visit" + @pseudocode: N/A + */ +define "Schedule a 'Follow-up test recommended date' during a third trimester visit": + "Pregnant in high HIV burden setting" + +/* + @output: "Schedule a 'Follow-up test recommended date during a third trimester visit" + @pseudocode: N/A + */ +define "Schedule a 'Follow-up test recommended date' at first ANC contact date": + "Pregnant in low HIV burden setting" and + case + when "Key population member": + then true + when "Partner has HIV and is not virally suppressed": + then true + when "At elevated risk for HIV acquisition" + then true + else false + end + +/* + @dynamicValue: Guidance + */ +define "Guidance": + case + when "Schedule an annual follow-up test" + then """Schedule an annual follow-up test. + +WHO guidance recommends annual retesting for people who have ongoing HIV-related risks in all settings. These include people with a known HIV-positive partner who is not virally suppressed on ART.""" + when "Follow-up test recommended" + then """Recommend a follow-up test. + +In certain conditions and situations, individuals who have been tested for HIV in the past can be advised to retest. These include: +* Individuals presenting with a diagnosis or receiving treatment for STIs or viral hepatitis, +* Individuals with a confirmed or presumptive TB diagnosis, +* Outpatients presenting with clinical conditions or symptoms indicative of HIV, individuals with recent HIV risk exposure.""" + when "Schedule quarterly retesting for PrEP users" + then """Schedule quarterly retesting for PrEP users.""" + when "Schedule an HIV test, syphilis test, hepatitis B test as early as possible during this pregnancy" + then """Schedule an HIV test, syphilis test, hepatitis B test as early as possible during this pregnancy + +All pregnant women should be tested for HIV as well as syphilis and hepatitis B virus at least once and as early as possible during pregnancy.""" + when "Schedule a 'Follow-up test recommended date' at first ANC contact date": + then """In low HIV burden settings, retesting all pregnant women is not warranted unless focused among women from key populations or at high ongoing risk, such as those from key populations or with partners with HIV who are not virally suppressed. Countries could consider one additional retest in the post-partum period, such as at 14 weeks, six months or nine months for women in high HIV burden or incidence districts or provinces, key populations or women with partners with HIV who are not virally suppressed.""" + else null + end + +/* + @dynamicValue: "Date to schedule" + */ +define "Schedule Follow-up Date" + case + when "Schedule an annual follow-up test": + then Today + 1 years + when "Schedule quarterly retesting for PrEP users": + then Today + 3 months + else null + end + +// Helper Logic +define "Pregnant in high HIV burden setting": + "HIV status negative or unknown" and + "HIV burden of setting is high HIV burden setting" and + "Currently pregnant" + +define "Pregnant in low HIV burden setting": + "HIV status negative or unknown" and + "HIV burden of setting is low HIV burden setting" and + "Currently pregnant" + +define "Partner has HIV and is not virally suppressed": + "Partner HIV positive" and "Sex partner's HIV treatment status is partner not virally suppressed" + diff --git a/input/cql/HIVConceptsCustom.cql b/input/cql/HIVConceptsCustom.cql index 43d756f7dc3..8154fa7774e 100644 --- a/input/cql/HIVConceptsCustom.cql +++ b/input/cql/HIVConceptsCustom.cql @@ -4,10 +4,10 @@ codesystem "ConditionCategoryCodes": 'http://terminology.hl7.org/CodeSystem/cond codesystem "ConditionClinicalStatusCodes": 'http://terminology.hl7.org/CodeSystem/condition-clinical' codesystem "ObservationCategoryCodes": 'http://terminology.hl7.org/CodeSystem/observation-category' codesystem "missing concepts": 'missing concepts' -codesystem "Devicestatement-status": 'http://hl7.org/fhir/ValueSet/device-statement-status' +codesystem "Devicestatement-status": 'http://hl7.org/fhir/device-statement-status' codesystem "SNOMEDCT:2018-03": 'urn:oid:2.16.840.1.113883.6.96' version 'urn:hl7:version:2018-03' codesystem "SNOMEDCT": 'urn:oid:2.16.840.1.113883.6.96' -codesystem "AdverseEventSeverity": 'http://hl7.org/fhir/ValueSet/adverse-event-severity' +codesystem "AdverseEventSeverity": 'http://terminology.hl7.org/CodeSystem/adverse-event-severity' code "encounter-diagnosis": 'encounter-diagnosis' from "ConditionCategoryCodes" display 'Encounter Diagnosis' diff --git a/input/cql/HIVElements.cql b/input/cql/HIVElements.cql index b67ec64463c..718b0241aa1 100644 --- a/input/cql/HIVElements.cql +++ b/input/cql/HIVElements.cql @@ -5143,7 +5143,6 @@ define "Body weight Value": @activity: HIV.D3 Check for signs of serious illness @description: Signs that may indicate the client has a serious illness and needs triage or an emergency referral */ -// TODO: Replace placeholder with relevant CQL logic define "Signs of serious illness": exists "Signs of serious illness Observation" define "Signs of serious illness Observation": diff --git a/input/cql/HIVEncounterElements.cql b/input/cql/HIVEncounterElements.cql index dfec38695c1..661d6420d4d 100644 --- a/input/cql/HIVEncounterElements.cql +++ b/input/cql/HIVEncounterElements.cql @@ -2909,7 +2909,6 @@ define "Body weight Value": @activity: HIV.D3 Check for signs of serious illness @description: Signs that may indicate the client has a serious illness and needs triage or an emergency referral */ -// TODO: Replace placeholder with relevant CQL logic define "Signs of serious illness": exists "Signs of serious illness Observation" define "Signs of serious illness Observation": diff --git a/input/fsh/activitydefinition/HIVB9DTScheduleFollowUp.fsh b/input/fsh/activitydefinition/HIVB9DTScheduleFollowUp.fsh new file mode 100644 index 00000000000..dfe8161bf0d --- /dev/null +++ b/input/fsh/activitydefinition/HIVB9DTScheduleFollowUp.fsh @@ -0,0 +1,33 @@ +Instance: HIVB9DTScheduleFollowUp +InstanceOf: http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-servicerequestactivity +Title: "HIV.B9.DT Schedule Follow-up Test" +Description: "Schedule Follow-up Test" +Usage: #definition +* library = Canonical(HIVB9DTLogic) +* extension[+] + * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" + * valueCode = #computable +* name = "HIVB9DTScheduleFollowUp" +* status = #draft +* experimental = true +* date = 2024-07-25 +* publisher = "World Health Organization (WHO)" +* contact[+] + * telecom[+] + * system = #url + * value = "https://who.int" +* kind = #ServiceRequest +* intent = #proposal +* doNotPerform = false +* dynamicValue[+] + * path = "status" + * expression + * description = "Status = 'draft'" + * language = #text/cql + * expression = "'draft' from \"http://hl7.org/fhir/request-status\"" +* dynamicValue[+] + * path = "priority" + * expression + * description = "Priority = 'routine'" + * language = #text/cql + * expression = "'routine' from \"http://hl7.org/fhir/request-priority\"" diff --git a/input/fsh/libraries/HIVB9DTLogic.fsh b/input/fsh/libraries/HIVB9DTLogic.fsh new file mode 100644 index 00000000000..291085bcac5 --- /dev/null +++ b/input/fsh/libraries/HIVB9DTLogic.fsh @@ -0,0 +1,19 @@ +Instance: HIVB9DTLogic +InstanceOf: Library +Title: "HIV.B9.DT Logic" +Description: "Description not yet available for HIV.B9.DT Logic." +Usage: #definition +* meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablelibrary" +* meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" +* meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" +* meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" +* url = "http://smart.who.int/HIV/Library/HIVB2DTLogic" +* extension[+] + * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" + * valueCode = #computable +* name = "HIVB9DTLogic" +* status = #draft +* experimental = true +* publisher = "World Health Organization (WHO)" +* type = $library-type#logic-library +* content.id = "ig-loader-HIVB9DTLogic.cql" diff --git a/input/fsh/plandefinition/HIVB9DT.fsh b/input/fsh/plandefinition/HIVB9DT.fsh new file mode 100644 index 00000000000..8b9ac5abe21 --- /dev/null +++ b/input/fsh/plandefinition/HIVB9DT.fsh @@ -0,0 +1,206 @@ +Instance: HIVB9DT +InstanceOf: http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-recommendationdefinition +Title: "HIV.B9.DT Determine retest recommendation" +Description: "HIV restesting recommendations" +Usage: #definition +* meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareableplandefinition" +* meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishableplandefinition" +* library = Canonical(HIVB9DTLogic) +* extension[+] + * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" + * valueCode = #computable +* url = "http://smart.who.int/hiv/PlanDefinition/HIVB9DT" +* name = "HIVB9DT" +* status = #draft +* experimental = true +* publisher = "World Health Organization (WHO)" +* relatedArtifact[+] + * type = #citation + * citation = "Consolidated Guidelines on HIV Testing Services (2019)" +* action[+] + * textEquivalent = "Schedule an annual follow-up test" + * condition[+] + * kind = #applicability + * expression + * language = #text/cql-identifier + * expression = "Schedule an annual follow-up test" + * type = #create + * definitionCanonical = Canonical(HIVB9DTScheduleFollowUp) + * dynamicValue[+] + * path = "intent" + * expression + * description = "Intent = 'plan'" + * language = #text/cql + * expression = "'plan' from \"http://hl7.org/fhir/request-intent\"" + * dynamicValue[+] + * path = "code.coding" + * expression + * description = "HIV Screening" + * language = #text/cql + * expression = "'171121004' from \"SNOMED-CT\" display 'HIV screening'" + * dynamicValue[+] + * path = "occurrenceDateTime" + * expression + * description = "At the recommended interval" + * language = #text/cql-identifier + * expression = "Schedule Date" +* action[+] + * textEquivalent = "Schedule quarterly retesting for PrEP users" + * condition[+] + * kind = #applicability + * expression + * language = #text/cql-identifier + * expression = "Schedule quarterly retesting for PrEP users" + * type = #create + * definitionCanonical = Canonical(HIVB9DTScheduleFollowUp) + * dynamicValue[+] + * path = "intent" + * expression + * description = "Intent = 'plan'" + * language = #text/cql + * expression = "'plan' from \"http://hl7.org/fhir/request-intent\"" + * dynamicValue[+] + * path = "code.coding" + * expression + * description = "HIV Screening" + * language = #text/cql + * expression = "'171121004' from \"SNOMED-CT\" display 'HIV screening'" + * dynamicValue[+] + * path = "occurrenceDateTime" + * expression + * description = "At the recommended interval" + * language = #text/cql-identifier + * expression = "Schedule Date" +* action[+] + * textEquivalent = "Follow-up test recommended" + * condition[+] + * kind = #applicability + * expression + * language = #text/cql-identifier + * expression = "Follow-up test recommended" + * type = #create + * definitionCanonical = Canonical(HIVB9DTScheduleFollowUp) + * dynamicValue[+] + * path = "intent" + * expression + * description = "Intent = 'proposal'" + * language = #text/cql + * expression = "'proposal' from \"http://hl7.org/fhir/request-intent\"" + * dynamicValue[+] + * path = "code.coding" + * expression + * description = "HIV Screening" + * language = #text/cql + * expression = "'171121004' from \"SNOMED-CT\" display 'HIV screening'" +* action[+] + * textEquivalent = "Schedule an HIV test, syphilis test, hepatitis B test as early as possible during this pregnancy" + * condition[+] + * kind = #applicability + * expression + * language = #text/cql-identifier + * expression = "Schedule an HIV test, syphilis test, hepatitis B test as early as possible during this pregnancy" + * type = #create + * action[+] + * textEquivalent = "Schedule an HIV test as early as possible" + * type = #create + * definitionCanonical = Canonical(HIVB9DTScheduleFollowUp) + * dynamicValue[+] + * path = "intent" + * expression + * description = "Intent = 'proposal'" + * language = #text/cql + * expression = "'proposal' from \"http://hl7.org/fhir/request-intent\"" + * dynamicValue[+] + * path = "code.coding" + * expression + * description = "HIV test" + * language = #text/cql + * expression = "'171121004' from \"SNOMED-CT\" display 'HIV test'" + * action[+] + * textEquivalent = "Schedule a Syphilis test as early as possible" + * type = #create + * definitionCanonical = Canonical(HIVB9DTScheduleFollowUp) + * dynamicValue[+] + * path = "intent" + * expression + * description = "Intent = 'proposal'" + * language = #text/cql + * expression = "'proposal' from \"http://hl7.org/fhir/request-intent\"" + * dynamicValue[+] + * path = "code.coding" + * expression + * description = "Syphilis test" + * language = #text/cql + * expression = "'40675008' from \"SNOMED-CT\" display 'Syphilis test'" + * action[+] + * textEquivalent = "Schedule a Heptatitis test as early as possible" + * type = #create + * definitionCanonical = Canonical(HIVB9DTScheduleFollowUp) + * dynamicValue[+] + * path = "intent" + * expression + * description = "Intent = 'proposal'" + * language = #text/cql + * expression = "'proposal' from \"http://hl7.org/fhir/request-intent\"" + * dynamicValue[+] + * path = "code.coding" + * expression + * description = "Heptatitis B test" + * language = #text/cql + * expression = "'313476009' from \"SNOMED-CT\" display 'Heptatitis B test'" +* action[+] + * textEquivalent = "Schedule a follow-up tests for pregnant persons" + * condition[+] + * kind = #applicability + * expression + * language = #text/cql-identifier + * expression = "Schedule a 'Follow-up test recommended date' at first ANC contact date" + * type = #create + * action[+] + * textEquivalent = "Schedule a follow-up test recommended date at first ANC contact date" + * type = #create + * definitionCanonical = Canonical(HIVB9DTScheduleFollowUp) + * dynamicValue[+] + * path = "intent" + * expression + * description = "Intent = 'proposal'" + * language = #text/cql + * expression = "'proposal' from \"http://hl7.org/fhir/request-intent\"" + * dynamicValue[+] + * path = "code.coding" + * expression + * description = "HIV Screening" + * language = #text/cql + * expression = "'171121004' from \"SNOMED-CT\" display 'HIV screening'" + * action[+] + * textEquivalent = "Schedule a follow-up test recommended date during a third trimester visit" + * type = #create + * definitionCanonical = Canonical(HIVB9DTScheduleFollowUp) + * dynamicValue[+] + * path = "intent" + * expression + * description = "Intent = 'proposal'" + * language = #text/cql + * expression = "'proposal' from \"http://hl7.org/fhir/request-intent\"" + * dynamicValue[+] + * path = "code.coding" + * expression + * description = "HIV Screening" + * language = #text/cql + * expression = "'171121004' from \"SNOMED-CT\" display 'HIV screening'" + * action[+] + * textEquivalent = "Schedule a follow-up test recommended date either two-weeks, 6 months or 9 months post delivery" + * type = #create + * definitionCanonical = Canonical(HIVB9DTScheduleFollowUp) + * dynamicValue[+] + * path = "intent" + * expression + * description = "Intent = 'proposal'" + * language = #text/cql + * expression = "'proposal' from \"http://hl7.org/fhir/request-intent\"" + * dynamicValue[+] + * path = "code.coding" + * expression + * description = "HIV Screening" + * language = #text/cql + * expression = "'171121004' from \"SNOMED-CT\" display 'HIV screening'" From 5c86a274f1afc6d1bf382235c36f1d8b0ff5bbbe Mon Sep 17 00:00:00 2001 From: Piotr Mankowski Date: Fri, 2 Aug 2024 08:08:03 -0600 Subject: [PATCH 05/10] WSG 97 indicators HIV.IND.28-35 (#41) --- input/cql/HIVCommon.cql | 321 ++--- input/cql/HIVConcepts.cql | 4 + input/cql/HIVConceptsCustom.cql | 1 + input/cql/HIVElements.cql | 509 ++++--- input/cql/HIVEncounterElements.cql | 1856 +++++++++++++++++++++++++- input/cql/HIVIND21Logic.cql | 3 +- input/cql/HIVIND24Logic.cql | 83 +- input/cql/HIVIND25Logic.cql | 20 +- input/cql/HIVIND27Logic.cql | 20 +- input/cql/HIVIND28Logic.cql | 69 +- input/cql/HIVIND29Logic.cql | 48 +- input/cql/HIVIND30Logic.cql | 19 +- input/cql/HIVIND31Logic.cql | 36 +- input/cql/HIVIND32Logic.cql | 49 +- input/cql/HIVIND33Logic.cql | 33 +- input/cql/HIVIND34Logic.cql | 46 +- input/cql/HIVIND35Logic.cql | 78 +- input/cql/HIVIndicatorElements.cql | 2001 +++++++++++++++++++++++++--- smart-hiv | 1 + 19 files changed, 4428 insertions(+), 769 deletions(-) create mode 160000 smart-hiv diff --git a/input/cql/HIVCommon.cql b/input/cql/HIVCommon.cql index 7c8e0a0f5d0..831bca5e079 100644 --- a/input/cql/HIVCommon.cql +++ b/input/cql/HIVCommon.cql @@ -7,6 +7,9 @@ include WHOCommon called WCom //include FHIRCommon called FC include HIVConcepts called HC include HIVConceptsCustom called HCC +include HIVElements called HE +include HIVIndicatorElements called HIE + parameter "Measurement Period" Interval default Interval[@2020-01-01, @2020-12-31] parameter "Measurement Date" Date default @2020-01-01 @@ -15,13 +18,169 @@ parameter "Intervention Interval" System.Quantity default 7 days context Patient + +//VERIFIED + +define "routine viral load sample collection": + [Procedure] P + where P.status = 'completed' + and P.code ~ HCC."viral load test" + and exists(P.reasonCode RC where RC ~ HC."Routine viral load test") + +define "viral load sample collection": + [Procedure] P + where P.status = 'completed' + and P.code ~ HCC."viral load test" + + +define "First On ART": + (First(HE."On ART D.DE38")) + +define "Viral load tests received after ART intitiation": + HE."Viral load test result D.DE387" O + where start of O.issued.toInterval() after start of "First On ART".effective.toInterval() + sort by start of issued.toInterval() + +define "Elevated Viral load test during Measurement Period": + HE."Viral load test result D.DE387" VL + with "viral load sample collection" P + such that VL.partOf.references(P) and P.performed.toInterval() during "Measurement Period" + where VL.value > 1000 'copies/ml' + sort by start of effective.toInterval() + + +define "Negative Tests within Measurement Period": +HE."HIV-negative B.DE113" O + with HE."At elevated risk for HIV acquisition B.DE225" HIV + such that O.hasMember.references(HIV) + where O.effective.toInterval() starts during "Measurement Period" + sort by start of effective.toInterval() + +define "First Negative Test within Measurement Period": + (First("Negative Tests within Measurement Period")) + +define "Negative Tests after First Negative Test": +HE."HIV-negative B.DE113" O + with HE."At elevated risk for HIV acquisition B.DE225" HIV + such that O.hasMember.references(HIV) + where O.effective.toInterval() starts after start of "First Negative Test within Measurement Period".effective.toInterval() + and O.effective.toInterval() starts before (start of "First Negative Test within Measurement Period".effective.toInterval() + "Testing Interval") + sort by start of effective.toInterval() + + define patientGroups: + List{ + if HIE."Sex worker B.DE51" then 'SW' else null, + if HIE."Men who have sex with men" then 'MSM' else null, + if HIE."Trans and gender-diverse people B.DE53" then 'Trans' else null, + if HIE."People who inject drugs B.DE54" then 'PWID' else null, + if HIE."People living in prisons and other closed settings" then 'Prisoner' else null + } + + define "Treatment outcome category": + List{ + if HIE."Lost to follow-up" then 'LTFU' else null, + if HIE."Transferred out" then 'Transfer Out' else null, + if HIE."Death documented" then 'Death' else null, + if HIE."Refused stopped treatment" then 'Stopped' else null, + if HIE."On ART H.DE47" then 'On ART' else null + } + + /* - * HIV Positive during the measurement period - * Does issued imply that results returned to tester - * or should use communication or encounter resource to specify? + * By Age Stratifiers + * (0–4, 5–9, 10–14, 15–19, 20–24, 25–29, 30–34, 35–39, 40–44, 45–49, 50+ years) + * + */ +define "By Age Stratifier": + case + when HIE."Age In Years" <= 4 then '0-4' + when HIE."Age In Years" <= 9 then '5-9' + when HIE."Age In Years" <= 14 then '10–14' + when HIE."Age In Years" <= 19 then '15–19' + when HIE."Age In Years" <= 24 then '20–24' + when HIE."Age In Years" <= 29 then '25–29' + when HIE."Age In Years" <= 34 then '30–34' + when HIE."Age In Years" <= 39 then '35–39' + when HIE."Age In Years" <= 44 then '40–44' + when HIE."Age In Years" <= 49 then '45–49' + when HIE."Age In Years" >= 50 then '50+' + else null + end + + /* + * By Age Stratifiers + * Age (0–4, 5–9, 10–14, 15–19, 20–24, 25–49, 50+ years) + * */ +define "By Age Stratifier 2": + case + when HIE."Age In Years" <= 4 then '0-4' + when HIE."Age In Years" <= 9 then '5-9' + when HIE."Age In Years" <= 14 then '10–14' + when HIE."Age In Years" <= 19 then '15–19' + when HIE."Age In Years" <= 24 then '20–24' + when HIE."Age In Years" <= 49 then '25–49' + when HIE."Age In Years" >= 50 then '50+' + else null + end + +define "By Age Stratifier 3": + case + when HIE."Age In Years" >= 15 and HIE."Age In Years"<= 19 then '15-19' + when HIE."Age In Years" <= 24 then '20-24' + when HIE."Age In Years" <= 49 then '25–49' + when HIE."Age In Years" >= 50 then '50+' + else null + end + +/* + * By state stratifier + */ + +define "By Geographic Region Stratifier": + First(Patient.address A where A.use in { 'home' }).state +/* + * By Administrative Gender of Patient Stratifier + * Need to expand codes + */ +define "By Administrative Gender Stratifier": + case + when Patient.gender = 'male' then HC."Male" + when Patient.gender = 'female' then HC."Female" + when Patient.gender = 'transgender female' then HC."Transgender female" + when Patient.gender = 'transgender male' then HC."Transgender male" + else HC."Other - HIV.A.DE23" + end + + + define "HIV status of partner or contact": + case + when HIE."Already knew positive" then HC."Already knew positive" + when HIE."Newly diagnosed" then HC."Newly diagnosed" + when HIE."Negative H.DE37" then HC."Negative - HIV.H.DE37" + else null + end + +//(including PrEP, OAMT, NSP, STI services, VMMC) + define "HIV prevention intervention": + List{ + if HIE."PrEP service" then 'PrEP' else null, + if HIE."OAMT" then 'OAMT' else null, + if HIE."NSP" then 'NSP' else null, + if HIE."STI services" then 'STI services' else null, + if HIE."VMMC" then 'VMMC' else null, + if HIE."Other PRV.DE8" then 'other prevention' else null + } + +//DRAFT +define "Patient Deceased during Measurement Period": + case + when Patient.deceased is FHIR.boolean and Patient.deceased ~ true then Patient.meta.lastUpdated before end of "Measurement Period" and Patient.meta.lastUpdated after start of "Measurement Period" + when Patient.deceased is FHIR.dateTime then Patient.deceased as FHIR.dateTime before end of "Measurement Period" and Patient.deceased as FHIR.dateTime after start of "Measurement Period" + else false + end define "HIV Positive Condition": [Condition] C @@ -56,12 +215,6 @@ define "HIV test resulted": where O.status in {'final', 'amended'} and O.code ~ HC."Rapid diagnostic test for HIV - HIV.B.DE82" -define "HIV Treatment Active": - [MedicationStatement] MS - where MS.status = 'completed' - and exists(MS.reasonCode C where C ~ HC."On ART - HIV.H.DE47") - sort by effective - define "HIV PREP Active": [MedicationStatement] MS where MS.status = 'completed' @@ -183,113 +336,17 @@ define "buprenorphine_prescribed": and MR.intent = 'order' and MR.medication ~ HCC."buprenorphine" -define "Patient Deceased before end of Measurement Period": - case - when Patient.deceased is FHIR.boolean and Patient.deceased ~ true then (Patient.meta.lastUpdated before end of "Measurement Period") - when Patient.deceased is FHIR.dateTime then Patient.deceased as FHIR.dateTime before end of "Measurement Period" - else false - end -define "Patient Deceased during Measurement Period": - case - when Patient.deceased is FHIR.boolean and Patient.deceased ~ true then Patient.meta.lastUpdated before end of "Measurement Period" and Patient.meta.lastUpdated after start of "Measurement Period" - when Patient.deceased is FHIR.dateTime then Patient.deceased as FHIR.dateTime before end of "Measurement Period" and Patient.deceased as FHIR.dateTime after start of "Measurement Period" - else false - end -/* End of care because of transferring out*/ -define "Transfer Out at Facility during the measurement period": - exists( - [EpisodeOfCare] EOC - where exists(EOC.type T where T ~ HC."On ART - HIV.H.DE47") - and (exists ( - EOC.statusHistory H - where H.status = 'finished' - and H.period ends during "Measurement Period" - ) - or ( - EOC.status = 'finished' - and EOC.period ends during "Measurement Period" - ) - ) - ) define "Lost to Follow Up during the measurement period": - exists("HIV Treatment Active" H + exists(HE."On ART H.DE47" H where H.effective starts before end of "Measurement Period" and H.effective ends after start of "Measurement Period" and not (H.effective ends after (end of "Measurement Period" - 28 days)) ) -/* - * By Age Stratifiers - * (0–4, 5–9, 10–14, 15–19, 20–24, 25–29, 30–34, 35–39, 40–44, 45–49, 50+ years) - * - */ -define "By Age Stratifier": - case - when AgeInYearsAt(start of "Measurement Period") <= 4 then '0-4' - when AgeInYearsAt(start of "Measurement Period") <= 9 then '5-9' - when AgeInYearsAt(start of "Measurement Period") <= 14 then '10–14' - when AgeInYearsAt(start of "Measurement Period") <= 19 then '15–19' - when AgeInYearsAt(start of "Measurement Period") <= 24 then '20–24' - when AgeInYearsAt(start of "Measurement Period") <= 29 then '25–29' - when AgeInYearsAt(start of "Measurement Period") <= 34 then '30–34' - when AgeInYearsAt(start of "Measurement Period") <= 39 then '35–39' - when AgeInYearsAt(start of "Measurement Period") <= 44 then '40–44' - when AgeInYearsAt(start of "Measurement Period") <= 49 then '45–49' - when AgeInYearsAt(start of "Measurement Period") >= 50 then '50+' - else null - end - - /* - * By Age Stratifiers - * Age (0–4, 5–9, 10–14, 15–19, 20–24, 25–49, 50+ years) - * - */ -define "By Age Stratifier 2": - case - when AgeInYearsAt(start of "Measurement Period") <= 4 then '0-4' - when AgeInYearsAt(start of "Measurement Period") <= 9 then '5-9' - when AgeInYearsAt(start of "Measurement Period") <= 14 then '10–14' - when AgeInYearsAt(start of "Measurement Period") <= 19 then '15–19' - when AgeInYearsAt(start of "Measurement Period") <= 24 then '20–24' - when AgeInYearsAt(start of "Measurement Period") <= 49 then '25–49' - when AgeInYearsAt(start of "Measurement Period") >= 50 then '50+' - else null - end - -define "By Age Stratifier 3": - case - when AgeInYearsAt(start of "Measurement Period") >= 15 and AgeInYearsAt(start of "Measurement Period") <= 19 then '15-19' - when AgeInYearsAt(start of "Measurement Period") <= 24 then '20-24' - when AgeInYearsAt(start of "Measurement Period") <= 49 then '25–49' - when AgeInYearsAt(start of "Measurement Period") >= 50 then '50+' - else null - end - -/* - * By state stratifier - */ - -define "By Geographic Region Stratifier": - First(Patient.address A where A.use in { 'home' }).state - -/* - * By Administrative Gender of Patient Stratifier - * Need to expand codes - */ - -define "By Administrative Gender Stratifier": - case - when Patient.gender = 'male' then HC."Male" - when Patient.gender = 'female' then HC."Female" - when Patient.gender = 'transgender female' then HC."Transgender female" - when Patient.gender = 'transgender male' then HC."Transgender male" - else HC."Other - HIV.A.DE23" - end - define "HIV Status": case when exists("HIV Positive Condition" C where C.onset before end of "Measurement Period") then HC."HIV-positive - HIV.B.DE116" @@ -399,8 +456,9 @@ define "Community_testing": such that O.encounter.references(E) and exists(E.location.physicalType PT where PT ~ HC."Community-level testing") where (O.status in { 'final', 'amended' } and O.code ~ HC."Rapid diagnostic test for HIV - HIV.B.DE82" - and O.issued during "Measurement Period") - ) + and O.issued after start of "Measurement Period" + and O.issued before end of "Measurement Period")) + /*@triggeredBy Encounter with location = facility level testing*/ define "Facility_testing": @@ -409,7 +467,8 @@ define "Facility_testing": such that O.encounter.references(E) and exists(E.location.physicalType PT where PT ~ HC."Facility-level testing") where (O.status in { 'final', 'amended' } and O.code ~ HC."Rapid diagnostic test for HIV - HIV.B.DE82" - and O.issued during "Measurement Period") + and O.issued after start of "Measurement Period" + and O.issued before end of "Measurement Period") ) //lifted this from ANC DAK @@ -495,14 +554,7 @@ exists( ) - define patientGroups: - List{ - if SW then 'SW' else null, - if MSM then 'MSM' else null, - if Trans then 'Trans' else null, - if PWID then 'PWID' else null, - if Prisoner then 'Prisoner' else null - } + define setting: List{ @@ -828,7 +880,7 @@ define "VMMC_adverse_event_Postoperative": define "First HIV Treatment": - First("HIV Treatment Active") + First(HE."On ART H.DE47") define "Time to start ART": @@ -859,13 +911,6 @@ define "VMMC_adverse_event_Postoperative": and exists(O.category OC where OC ~ HCC."social-history") and O.code ~ HC."Negative - HIV.H.DE37" - define "HIV status of partner or contact": - case - when exists("already known positive") then HC."Already knew positive" - when exists("Newly diagnosed") then HC."Newly diagnosed" - when exists("Negative - HIV.H.DE37") then HC."Negative - HIV.H.DE37" - else null - end //need to define @@ -875,31 +920,5 @@ define "VMMC_adverse_event_Postoperative": and P.code ~ HC."STI testing and treatment services" -//(including PrEP, OAMT, NSP, STI services, VMMC) - define "HIV prevention intervention": - List{ - if exists("HIV PREP Active") then 'PrEP' else null, - if OAMT_initiated then 'OAMT' else null, - if exists("Needle Syringe Dispensed") then 'NSP' else null, - if exists(STI_testing) then 'STI services' else null, - if exists(VMMC_done) then 'VMMC' else null - } - -define "Negative Tests within Measurement Period": -"HIV Negative Observation" O - with "Client is at elevated risk for HIV acquisition" HIV - such that O.hasMember.references(HIV) - and O.issued after start of "Measurement Period" - and O.issued before end of "Measurement Period" - sort by issued -define "First Negative Test within Measurement Period": -( First("Negative Tests within Measurement Period")) -define "Negative Tests after First Negative Test": - "HIV Negative Observation" O - with "Client is at elevated risk for HIV acquisition" HIV - such that O.hasMember.references(HIV) - where O.issued after "First Negative Test within Measurement Period".issued - and O.issued before ("First Negative Test within Measurement Period".issued + "Testing Interval") - sort by issued \ No newline at end of file diff --git a/input/cql/HIVConcepts.cql b/input/cql/HIVConcepts.cql index 57f508a445d..e5e73babe3f 100644 --- a/input/cql/HIVConcepts.cql +++ b/input/cql/HIVConcepts.cql @@ -704,6 +704,10 @@ code "Bone dysfunction": 'HIV.D.DE476' from "HIVConcepts" display 'Bone dysfunct code "Metabolic symptoms": 'HIV.D.DE477' from "HIVConcepts" display 'Metabolic symptoms' code "Kidney dysfunction": 'HIV.D.DE478' from "HIVConcepts" display 'Kidney dysfunction' code "Unexpected adverse drug reaction": 'HIV.D.DE479' from "HIVConcepts" display 'Unexpected adverse drug reaction' +code "New regimen after switch to second-line regimen": 'HIV.D.DE485' from "HIVConcepts" +code "New regimen after switch to third-line regimen": 'HIV.D.DE491' from "HIVConcepts" +code "New regimen after substitution within second-line regimen": 'HIV.D.DE489' from "HIVConcepts" +code "New regimen after substitution within third-line regimen": 'HIV.D.DE495' from "HIVConcepts" code "Dates of substitution within second-line regimen": 'HIV.D.DE487' from "HIVConcepts" display 'Dates of substitution within second-line regimen' code "Dates of substitution within third-line regimen": 'HIV.D.DE493' from "HIVConcepts" display 'Dates of substitution within third-line regimen' code "Enhanced adherence counselling provided": 'HIV.D.DE496' from "HIVConcepts" display 'Enhanced adherence counselling provided' diff --git a/input/cql/HIVConceptsCustom.cql b/input/cql/HIVConceptsCustom.cql index 8154fa7774e..b375081e9fc 100644 --- a/input/cql/HIVConceptsCustom.cql +++ b/input/cql/HIVConceptsCustom.cql @@ -58,4 +58,5 @@ code "Two to four times a day (qualifier value)": '396111001' from "SNOMEDCT" di code "needle-syringe": 'needle syringe' from "missing concepts" code "methadone": 'methadone' from "missing concepts" code "buprenorphine": 'buprenorphine' from "missing concepts" +code "viral load test": 'viral load test' from "missing concepts" diff --git a/input/cql/HIVElements.cql b/input/cql/HIVElements.cql index 718b0241aa1..5ea2fa9e03f 100644 --- a/input/cql/HIVElements.cql +++ b/input/cql/HIVElements.cql @@ -2,7 +2,7 @@ library HIVElements using FHIR version '4.0.1' -include fhir.cqf.common.FHIRCommon called FC +//include fhir.cqf.common.FHIRCommon called FC include FHIRHelpers version '4.0.1' include WHOConcepts @@ -10,7 +10,14 @@ include WHOCommon called WC include WHOElements called WE include HIVConcepts called Concepts -include HIVCommon called Common +include HIVConceptsCustom called CustomConcepts +//include HIVCommon called Common + +parameter "Measurement Period" Interval default Interval[@2020-01-01, @2020-12-31] +parameter "Measurement Date" Date default @2020-01-01 +parameter "Testing Interval" System.Quantity default 3 months +parameter "Intervention Interval" System.Quantity default 7 days +parameter "LTFU Days" System.Quantity default 28 days context Patient @@ -549,16 +556,12 @@ define "Key population member type B.DE50 Observation": @activity: HIV.B6 Capture or update client history @description: Client is a sex worker */ -// TODO: Replace placeholder with relevant CQL logic + define "Sex worker B.DE51": - exists "Sex worker B.DE51 Condition" - or exists "Sex worker B.DE51 Observation" -define "Sex worker B.DE51 Condition": - [Condition: Concepts."Sex worker - HIV.B.DE51"] -define "Sex worker B.DE51 Observation": - "Key population member type B.DE50 Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."Sex worker - HIV.B.DE51" + [Observation: Concepts."Key population member - HIV.B.DE49"] O + where O.status in { 'final', 'amended', 'corrected' } + and exists(O.category OC where OC ~ CustomConcepts."social-history") + and O.value ~ Concepts."Sex worker - HIV.B.DE51" /* End of Sex worker B.DE51 */ /* @@ -566,16 +569,12 @@ define "Sex worker B.DE51 Observation": @activity: HIV.B6 Capture or update client history @description: Client is a man who has sex with men */ -// TODO: Replace placeholder with relevant CQL logic + define "Men who have sex with men": - exists "Men who have sex with men Condition" - or exists "Men who have sex with men Observation" -define "Men who have sex with men Condition": - [Condition: Concepts."Men who have sex with men"] -define "Men who have sex with men Observation": - "Key population member type B.DE50 Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."Men who have sex with men" + [Observation: Concepts."Key population member - HIV.B.DE49"] O + where O.status in { 'final', 'amended', 'corrected' } + and exists(O.category OC where OC ~ CustomConcepts."social-history") + and O.value ~ Concepts."Men who have sex with men" /* End of Men who have sex with men */ /* @@ -583,16 +582,12 @@ define "Men who have sex with men Observation": @activity: HIV.B6 Capture or update client history @description: Client identifies as trans and gender-diverse */ -// TODO: Replace placeholder with relevant CQL logic + define "Trans and gender-diverse people B.DE53": - exists "Trans and gender-diverse people B.DE53 Condition" - or exists "Trans and gender-diverse people B.DE53 Observation" -define "Trans and gender-diverse people B.DE53 Condition": - [Condition: Concepts."Trans and gender-diverse people - HIV.B.DE53"] -define "Trans and gender-diverse people B.DE53 Observation": - "Key population member type B.DE50 Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."Trans and gender-diverse people - HIV.B.DE53" + [Observation: Concepts."Key population member - HIV.B.DE49"] O + where O.status in { 'final', 'amended', 'corrected' } + and exists(O.category OC where OC ~ CustomConcepts."social-history") + and O.value ~ Concepts."Trans and gender-diverse people - HIV.B.DE53" /* End of Trans and gender-diverse people B.DE53 */ /* @@ -600,16 +595,12 @@ define "Trans and gender-diverse people B.DE53 Observation": @activity: HIV.B6 Capture or update client history @description: Client is a person who injects drugs */ -// TODO: Replace placeholder with relevant CQL logic + define "People who inject drugs B.DE54": - exists "People who inject drugs B.DE54 Condition" - or exists "People who inject drugs B.DE54 Observation" -define "People who inject drugs B.DE54 Condition": - [Condition: Concepts."People who inject drugs - HIV.B.DE54"] -define "People who inject drugs B.DE54 Observation": - "Key population member type B.DE50 Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."People who inject drugs - HIV.B.DE54" + [Observation: Concepts."Key population member - HIV.B.DE49"] O + where O.status in { 'final', 'amended', 'corrected' } + and exists(O.category OC where OC ~ CustomConcepts."social-history") + and O.value ~ Concepts."People who inject drugs - HIV.B.DE54" /* End of People who inject drugs B.DE54 */ /* @@ -617,16 +608,12 @@ define "People who inject drugs B.DE54 Observation": @activity: HIV.B6 Capture or update client history @description: Client lives in a prison or another closed setting */ -// TODO: Replace placeholder with relevant CQL logic + define "People living in prisons and other closed settings": - exists "People living in prisons and other closed settings Condition" - or exists "People living in prisons and other closed settings Observation" -define "People living in prisons and other closed settings Condition": - [Condition: Concepts."People living in prisons and other closed settings"] -define "People living in prisons and other closed settings Observation": - "Key population member type B.DE50 Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."People living in prisons and other closed settings" + [Observation: Concepts."Key population member - HIV.B.DE49"] O + where O.status in { 'final', 'amended', 'corrected' } + and exists(O.category OC where OC ~ CustomConcepts."social-history") + and O.value ~ Concepts."People living in prisons and other closed settings" /* End of People living in prisons and other closed settings */ /* @@ -1264,16 +1251,12 @@ define "HIV-positive B.DE112 Observation": @activity: HIV.B7 Test for HIV using testing algorithm @description: Test result is HIV-negative */ -// TODO: Replace placeholder with relevant CQL logic + define "HIV-negative B.DE113": - exists "HIV-negative B.DE113 Condition" - or exists "HIV-negative B.DE113 Observation" -define "HIV-negative B.DE113 Condition": - [Condition: Concepts."HIV-negative - HIV.B.DE113"] -define "HIV-negative B.DE113 Observation": - "HIV test result B.DE111 Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."HIV-negative - HIV.B.DE113" + [Observation] O + where O.status in {'final', 'amended'} + and O.code ~ Concepts."Rapid diagnostic test for HIV - HIV.B.DE82" + and O.value ~ Concepts."HIV-negative - HIV.B.DE117" /* End of HIV-negative B.DE113 */ /* @@ -1313,14 +1296,21 @@ define "HIV status Observation": */ // TODO: Replace placeholder with relevant CQL logic define "HIV-positive B.DE116": - exists "HIV-positive B.DE116 Condition" - or exists "HIV-positive B.DE116 Observation" + {First("HIV-positive B.DE116 Condition").prevalenceInterval(),First("HIV-positive B.DE116 Observation").effective.toInterval()} + define "HIV-positive B.DE116 Condition": - [Condition: Concepts."HIV-positive - HIV.B.DE116"] + [Condition] C + where C.clinicalStatus ~ CustomConcepts."active" + and exists(C.category CC where CC ~ CustomConcepts."encounter-diagnosis") + and C.code ~ Concepts."HIV-positive - HIV.B.DE116" + sort by start of onset.toInterval() + define "HIV-positive B.DE116 Observation": - "HIV status Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."HIV-positive - HIV.B.DE116" + [Observation] O + where O.status in {'final', 'amended'} + and O.code ~ Concepts."HIV status" + and O.value ~ Concepts."HIV-positive - HIV.B.DE116" + sort by start of effective.toInterval() /* End of HIV-positive B.DE116 */ /* @@ -2551,13 +2541,12 @@ define "HIV retest prior to starting ART conducted Observation": @activity: HIV.B6 Capture or update client history @description: Client is at elevated risk for HIV acquisition */ -// TODO: Replace placeholder with relevant CQL logic + define "At elevated risk for HIV acquisition B.DE225": - exists "At elevated risk for HIV acquisition B.DE225 Observation" -define "At elevated risk for HIV acquisition B.DE225 Observation": - [Observation: Concepts."At elevated risk for HIV acquisition - HIV.B.DE225"] O + [Observation] O where O.status in { 'final', 'amended', 'corrected' } - and O.value is true + and exists(O.category OC where OC ~ CustomConcepts."social-history") + and O.code ~ Concepts."At elevated risk for HIV acquisition - HIV.B.DE225" /* End of At elevated risk for HIV acquisition B.DE225 */ /* @@ -5401,13 +5390,11 @@ define "Serodiscordant partner D.DE37 Observation": @activity: HIV.D8 Capture or update client history @description: Client is currently taking ART */ -// TODO: Replace placeholder with relevant CQL logic + define "On ART D.DE38": - exists "On ART D.DE38 Observation" -define "On ART D.DE38 Observation": - [Observation: Concepts."On ART - HIV.D.DE38"] O - where O.status in { 'final', 'amended', 'corrected' } - and O.value is true + [MedicationStatement] MS + where exists(MS.reasonCode C where C ~ Concepts."On ART - HIV.D.DE38") + sort by start of effective.toInterval() /* End of On ART D.DE38 */ /* @@ -6558,13 +6545,10 @@ define "WHO HIV clinical stage 4 Observation": @activity: HIV.D10 Counsel returning client @description: The date on which the client received results from viral load test */ -// TODO: Replace placeholder with relevant CQL logic + define "Date viral load test results received by client D.DE193": - [Observation: Concepts."Date viral load test results received by client - HIV.D.DE193"] O + [Observation: Concepts."Viral load test result - HIV.D.DE387"] O where O.status in { 'final', 'amended', 'corrected' } -define "Date viral load test results received by client D.DE193 Value": - "Date viral load test results received by client D.DE193" O - return O.value /* End of Date viral load test results received by client D.DE193 */ /* @@ -6572,13 +6556,11 @@ define "Date viral load test results received by client D.DE193 Value": @activity: HIV.D10 Counsel returning client @description: Date and time when the sample was collected to test the client's HIV viral load */ -// TODO: Replace placeholder with relevant CQL logic + define "Date of viral load sample collection D.DE194": - [Observation: Concepts."Date of viral load sample collection - HIV.D.DE194"] O - where O.status in { 'final', 'amended', 'corrected' } -define "Date of viral load sample collection D.DE194 Value": - "Date of viral load sample collection D.DE194" O - return O.value + [Procedure] P + where P.status = 'completed' + and P.code ~ CustomConcepts."viral load test" /* End of Date of viral load sample collection D.DE194 */ /* @@ -8084,7 +8066,7 @@ define "Within 90 days of HIV diagnosis Observation": @activity: HIV.D20 Diagnostics @description: Result from the viral load test in number of copies/mL */ -// TODO: Replace placeholder with relevant CQL logic + define "Viral load test result D.DE387": [Observation: Concepts."Viral load test result - HIV.D.DE387"] O where O.status in { 'final', 'amended', 'corrected' } @@ -8927,6 +8909,47 @@ define "Unexpected adverse drug reaction Observation": and O.value ~ Concepts."Unexpected adverse drug reaction" /* End of Unexpected adverse drug reaction */ +/* +HIV.D.DE485 +New regimen after switch to second-line regimen +*/ + +define "New regimen after switch to second-line regimen": + [MedicationStatement] MS + where exists(MS.reasonCode C where C ~ Concepts."New regimen after switch to second-line regimen") + sort by start of effective.toInterval() + + +/* +HIV.D.DE491 +New regimen after switch to third-line regimen +*/ + +define "New regimen after switch to third-line regimen": + [MedicationStatement] MS + where exists(MS.reasonCode C where C ~ Concepts."New regimen after switch to third-line regimen") + sort by start of effective.toInterval() + + +/* +HIV.D.DE489 New regimen(s) after substitution within second-line regimen +*/ + +define "New regimen after substitution within second-line regimen": + [MedicationStatement] MS + where exists(MS.reasonCode C where C ~ Concepts."New regimen after switch to second-line regimen") + sort by start of effective.toInterval() + + +/* +HIV.D.DE495 New regimen(s) after substitution within third-line regimen +*/ + +define "New regimen after substitution within third-line regimen": + [MedicationStatement] MS + where exists(MS.reasonCode C where C ~ Concepts."New regimen after switch to third-line regimen") + sort by start of effective.toInterval() + /* @dataElement: HIV.D.DE487 - Dates of substitution within second-line regimen @activity: HIV.D21 Determine regimen and treatment options @@ -12677,16 +12700,12 @@ define "Key population member type E.DE114 Observation": @activity: HIV.E1 Capture or update mother's history @description: Infant's mother is a sex worker */ -// TODO: Replace placeholder with relevant CQL logic + define "Sex worker E.DE115": - exists "Sex worker E.DE115 Condition" - or exists "Sex worker E.DE115 Observation" -define "Sex worker E.DE115 Condition": - [Condition: Concepts."Sex worker - HIV.E.DE115"] -define "Sex worker E.DE115 Observation": - "Key population member type E.DE114 Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."Sex worker - HIV.E.DE115" + [Observation: Concepts."Key population member - HIV.E.DE113"] O + where O.status in { 'final', 'amended', 'corrected' } + and exists(O.category OC where OC ~ CustomConcepts."social-history") + and O.value ~ Concepts."Sex worker - HIV.E.DE115" /* End of Sex worker E.DE115 */ /* @@ -12694,16 +12713,12 @@ define "Sex worker E.DE115 Observation": @activity: HIV.E1 Capture or update mother's history @description: Infant's mother is a person who injects drugs */ -// TODO: Replace placeholder with relevant CQL logic + define "People who inject drugs E.DE116": - exists "People who inject drugs E.DE116 Condition" - or exists "People who inject drugs E.DE116 Observation" -define "People who inject drugs E.DE116 Condition": - [Condition: Concepts."People who inject drugs - HIV.E.DE116"] -define "People who inject drugs E.DE116 Observation": - "Key population member type E.DE114 Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."People who inject drugs - HIV.E.DE116" + [Observation: Concepts."Key population member - HIV.E.DE113"] O + where O.status in { 'final', 'amended', 'corrected' } + and exists(O.category OC where OC ~ CustomConcepts."social-history") + and O.value ~ Concepts."People who inject drugs - HIV.E.DE116" /* End of People who inject drugs E.DE116 */ /* @@ -12711,16 +12726,12 @@ define "People who inject drugs E.DE116 Observation": @activity: HIV.E1 Capture or update mother's history @description: Infant's mother identifies as trans and gender-diverse */ -// TODO: Replace placeholder with relevant CQL logic + define "Trans and gender-diverse people E.DE117": - exists "Trans and gender-diverse people E.DE117 Condition" - or exists "Trans and gender-diverse people E.DE117 Observation" -define "Trans and gender-diverse people E.DE117 Condition": - [Condition: Concepts."Trans and gender-diverse people - HIV.E.DE117"] -define "Trans and gender-diverse people E.DE117 Observation": - "Key population member type E.DE114 Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."Trans and gender-diverse people - HIV.E.DE117" + [Observation: Concepts."Key population member - HIV.E.DE113"] O + where O.status in { 'final', 'amended', 'corrected' } + and exists(O.category OC where OC ~ CustomConcepts."social-history") + and O.value ~ Concepts."Trans and gender-diverse people - HIV.E.DE117" /* End of Trans and gender-diverse people E.DE117 */ /* @@ -12728,16 +12739,12 @@ define "Trans and gender-diverse people E.DE117 Observation": @activity: HIV.E1 Capture or update mother's history @description: Infant's mother is in a prison or closed setting */ -// TODO: Replace placeholder with relevant CQL logic + define "People living in prisons and other closed setting": - exists "People living in prisons and other closed setting Condition" - or exists "People living in prisons and other closed setting Observation" -define "People living in prisons and other closed setting Condition": - [Condition: Concepts."People living in prisons and other closed setting"] -define "People living in prisons and other closed setting Observation": - "Key population member type E.DE114 Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."People living in prisons and other closed setting" + [Observation: Concepts."Key population member - HIV.E.DE113"] O + where O.status in { 'final', 'amended', 'corrected' } + and exists(O.category OC where OC ~ CustomConcepts."social-history") + and O.value ~ Concepts."People living in prisons and other closed setting" /* End of People living in prisons and other closed setting */ /* @@ -14223,16 +14230,12 @@ define "HIV status of partner or contact Observation": @activity: HIV.B6 Capture or update client history @description: The partner or contact of the index case already knew they are HIV-positive */ -// TODO: Replace placeholder with relevant CQL logic + define "Already knew positive": - exists "Already knew positive Condition" - or exists "Already knew positive Observation" -define "Already knew positive Condition": - [Condition: Concepts."Already knew positive"] -define "Already knew positive Observation": - "HIV status of partner or contact Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."Already knew positive" + [Observation: Concepts."HIV status of partner or contact"] O + where O.status in { 'final', 'amended', 'corrected' } + and exists(O.category OC where OC ~ CustomConcepts."social-history") + and O.code ~ Concepts."Already knew positive" /* End of Already knew positive */ /* @@ -14240,16 +14243,12 @@ define "Already knew positive Observation": @activity: HIV.B6 Capture or update client history @description: The partner or contact of the index case is newly diagnosed as HIV-positive */ -// TODO: Replace placeholder with relevant CQL logic + define "Newly diagnosed": - exists "Newly diagnosed Condition" - or exists "Newly diagnosed Observation" -define "Newly diagnosed Condition": - [Condition: Concepts."Newly diagnosed"] -define "Newly diagnosed Observation": - "HIV status of partner or contact Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."Newly diagnosed" + [Observation: Concepts."HIV status of partner or contact"] O + where O.status in { 'final', 'amended', 'corrected' } + and exists(O.category OC where OC ~ CustomConcepts."social-history") + and O.code ~ Concepts."Newly diagnosed" /* End of Newly diagnosed */ /* @@ -14257,16 +14256,12 @@ define "Newly diagnosed Observation": @activity: HIV.B6 Capture or update client history @description: The partner or contact of the index case is newly diagnosed is HIV-negative */ -// TODO: Replace placeholder with relevant CQL logic + define "Negative H.DE37": - exists "Negative H.DE37 Condition" - or exists "Negative H.DE37 Observation" -define "Negative H.DE37 Condition": - [Condition: Concepts."Negative - HIV.H.DE37"] -define "Negative H.DE37 Observation": - "HIV status of partner or contact Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."Negative - HIV.H.DE37" + [Observation: Concepts."HIV status of partner or contact"] O + where O.status in { 'final', 'amended', 'corrected' } + and exists(O.category OC where OC ~ CustomConcepts."social-history") + and O.code ~ Concepts."Negative - HIV.H.DE37" /* End of Negative H.DE37 */ /* @@ -14274,10 +14269,8 @@ define "Negative H.DE37 Observation": @activity: HIV.H3 Record outreach and result @description: The outcome for the client which is used for reporting retention/attrition. */ -// TODO: Replace placeholder with relevant CQL logic + define "HIV treatment outcome": - exists "HIV treatment outcome Observation" -define "HIV treatment outcome Observation": [Observation: Concepts."HIV treatment outcome"] O where O.status in { 'final', 'amended', 'corrected' } /* End of HIV treatment outcome */ @@ -14287,16 +14280,13 @@ define "HIV treatment outcome Observation": @activity: HIV.H3 Record outreach and result @description: Twenty-eight days or more since last missed appointment */ -// TODO: Replace placeholder with relevant CQL logic + define "Lost to follow-up": - exists "Lost to follow-up Condition" - or exists "Lost to follow-up Observation" -define "Lost to follow-up Condition": - [Condition: Concepts."Lost to follow-up"] -define "Lost to follow-up Observation": - "HIV treatment outcome Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."Lost to follow-up" + "On ART H.DE47" H + where H.effective starts before end of "Measurement Period" + and H.effective ends after start of "Measurement Period" + and not (H.effective ends after (end of "Measurement Period" - "LTFU Days")) + /* End of Lost to follow-up */ /* @@ -14304,16 +14294,26 @@ define "Lost to follow-up Observation": @activity: HIV.H3 Record outreach and result @description: The client transferred to another facility */ -// TODO: Replace placeholder with relevant CQL logic + define "Transferred out": - exists "Transferred out Condition" - or exists "Transferred out Observation" -define "Transferred out Condition": - [Condition: Concepts."Transferred out"] -define "Transferred out Observation": - "HIV treatment outcome Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."Transferred out" + flatten{"Transferred out status","Transferred out statusHistory".statusHistory.period} + +define "Transferred out status": + [EpisodeOfCare] EOC + where exists(EOC.type T where T ~ Concepts."On ART - HIV.H.DE47") + and EOC.status = 'finished' + return EOC.period + +define "Transferred out statusHistory": + [EpisodeOfCare] EOC + where exists(EOC.type T where T ~ Concepts."On ART - HIV.H.DE47") + and (exists ( + EOC.statusHistory H + where H.status = 'finished' + and H.period is not null)) + + + /* End of Transferred out */ /* @@ -14321,16 +14321,12 @@ define "Transferred out Observation": @activity: HIV.H3 Record outreach and result @description: People living with HIV previously on ART who are confirmed to have died from any cause */ -// TODO: Replace placeholder with relevant CQL logic define "Death documented": - exists "Death documented Condition" - or exists "Death documented Observation" -define "Death documented Condition": - [Condition: Concepts."Death documented"] -define "Death documented Observation": - "HIV treatment outcome Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."Death documented" + case + when Patient.deceased is FHIR.boolean and Patient.deceased ~ true then Patient.meta.lastUpdated.value + when Patient.deceased is FHIR.dateTime then Patient.deceased as FHIR.dateTime + else null + end /* End of Death documented */ /* @@ -14338,16 +14334,13 @@ define "Death documented Observation": @activity: HIV.H3 Record outreach and result @description: Client was contacted and confirmed to have stopped ART (reasons may include stigma and discrimination, faith healing, etc.) */ -// TODO: Replace placeholder with relevant CQL logic + define "Refused stopped treatment": - exists "Refused stopped treatment Condition" - or exists "Refused stopped treatment Observation" -define "Refused stopped treatment Condition": - [Condition: Concepts."Refused stopped treatment"] -define "Refused stopped treatment Observation": - "HIV treatment outcome Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."Refused stopped treatment" + [MedicationStatement] MS + where MS.status in {'stopped'} + and exists(MS.reasonCode C where C ~ Concepts."On ART - HIV.H.DE47") + and exists(MS.statusReason R where R ~ Concepts."Refused stopped treatment") + sort by start of effective.toInterval() /* End of Refused stopped treatment */ /* @@ -14355,13 +14348,11 @@ define "Refused stopped treatment Observation": @activity: HIV.H3 Record outreach and result @description: Client is currently taking ART */ -// TODO: Replace placeholder with relevant CQL logic + define "On ART H.DE47": - exists "On ART H.DE47 Observation" -define "On ART H.DE47 Observation": - [Observation: Concepts."On ART - HIV.H.DE47"] O - where O.status in { 'final', 'amended', 'corrected' } - and O.value is true + [MedicationStatement] MS + where exists(MS.reasonCode C where C ~ Concepts."On ART - HIV.H.DE47") + sort by start of effective.toInterval() /* End of On ART H.DE47 */ /* @@ -14396,16 +14387,13 @@ define "Reason ART stopped H.DE74 Observation": @activity: HIV.H3 Record outreach and result @description: Client stopped ART because of toxicity/side effects */ -// TODO: Replace placeholder with relevant CQL logic + define "Toxicity/side effects H.DE75": - exists "Toxicity/side effects H.DE75 Condition" - or exists "Toxicity/side effects H.DE75 Observation" -define "Toxicity/side effects H.DE75 Condition": - [Condition: Concepts."Toxicity/side effects - HIV.H.DE75"] -define "Toxicity/side effects H.DE75 Observation": - "Reason ART stopped H.DE74 Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."Toxicity/side effects - HIV.H.DE75" + [MedicationStatement] MS + where MS.status in {'stopped'} + and exists(MS.reasonCode C where C ~ Concepts."On ART - HIV.H.DE47") + and exists(MS.statusReason R where R ~ Concepts."Toxicity/side effects - HIV.H.DE75") + sort by start of effective.toInterval() /* End of Toxicity/side effects H.DE75 */ /* @@ -14498,13 +14486,12 @@ define "Other reason for stopping ART H.DE80 Observation": @activity: HIV.B6 Capture or update client history @description: Client is at elevated risk for HIV acquisition, defined according to country/programme context */ -// TODO: Replace placeholder with relevant CQL logic + define "At elevated risk for HIV acquisition PRV.DE1": - exists "At elevated risk for HIV acquisition PRV.DE1 Observation" -define "At elevated risk for HIV acquisition PRV.DE1 Observation": - [Observation: Concepts."At elevated risk for HIV acquisition - HIV.PRV.DE1"] O + [Observation] O where O.status in { 'final', 'amended', 'corrected' } - and O.value is true + and exists(O.category OC where OC ~ CustomConcepts."social-history") + and O.code ~ Concepts."At elevated risk for HIV acquisition - HIV.PRV.DE1" /* End of At elevated risk for HIV acquisition PRV.DE1 */ /* @@ -14525,16 +14512,11 @@ define "HIV prevention intervention Observation": @activity: HIV.B6 Capture or update client history @description: Client accessed PrEP services */ -// TODO: Replace placeholder with relevant CQL logic + define "PrEP service": - exists "PrEP service Condition" - or exists "PrEP service Observation" -define "PrEP service Condition": - [Condition: Concepts."PrEP service"] -define "PrEP service Observation": - "HIV prevention intervention Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."PrEP service" + [MedicationStatement] MS + where exists(MS.reasonCode C where C ~ Concepts."PrEP for HIV prevention") + sort by start of effective.toInterval() /* End of PrEP service */ /* @@ -14542,16 +14524,25 @@ define "PrEP service Observation": @activity: HIV.B6 Capture or update client history @description: Client accessed opioid agonist maintenance treatment (OAMT) services */ -// TODO: Replace placeholder with relevant CQL logic + define "OAMT": - exists "OAMT Condition" - or exists "OAMT Observation" -define "OAMT Condition": - [Condition: Concepts."OAMT"] -define "OAMT Observation": - "HIV prevention intervention Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."OAMT" + flatten{"OAMT status","OAMT statusHistory".statusHistory.period} + +define "OAMT status": + [EpisodeOfCare] EOC + where exists(EOC.type T where T ~ Concepts."OAMT") + return EOC.period + +define "OAMT statusHistory": + [EpisodeOfCare] EOC + where exists(EOC.type T where T ~ Concepts."OAMT") + and (exists ( + EOC.statusHistory H + where H.period is not null)) + + + + /* End of OAMT */ /* @@ -14559,16 +14550,13 @@ define "OAMT Observation": @activity: HIV.B6 Capture or update client history @description: Client accessed needle-syringe programme (NSP) services */ -// TODO: Replace placeholder with relevant CQL logic + define "NSP": - exists "NSP Condition" - or exists "NSP Observation" -define "NSP Condition": - [Condition: Concepts."NSP"] -define "NSP Observation": - "HIV prevention intervention Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."NSP" + [DeviceUseStatement] DUS + with [Device: CustomConcepts."needle-syringe"] D + such that DUS.reasonReference.references(D) + and D.status in { 'active' } + where DUS.status = 'completed' /* End of NSP */ /* @@ -14576,16 +14564,11 @@ define "NSP Observation": @activity: HIV.B6 Capture or update client history @description: Client accessed sexually transmitted infection (STI) services */ -// TODO: Replace placeholder with relevant CQL logic + define "STI services": - exists "STI services Condition" - or exists "STI services Observation" -define "STI services Condition": - [Condition: Concepts."STI services"] -define "STI services Observation": - "HIV prevention intervention Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."STI services" + [Procedure] P + where P.status = 'completed' + and P.code ~ Concepts."STI testing and treatment services" /* End of STI services */ /* @@ -14593,16 +14576,11 @@ define "STI services Observation": @activity: HIV.B6 Capture or update client history @description: Client accessed voluntary medical male circumcision (VMMC) services */ -// TODO: Replace placeholder with relevant CQL logic + define "VMMC": - exists "VMMC Condition" - or exists "VMMC Observation" -define "VMMC Condition": - [Condition: Concepts."VMMC"] -define "VMMC Observation": - "HIV prevention intervention Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."VMMC" + [Procedure] P + where P.status = 'completed' + and P.code ~ Concepts."Voluntary medical male circumcision VMMC" /* End of VMMC */ /* @@ -14610,16 +14588,14 @@ define "VMMC Observation": @activity: HIV.B6 Capture or update client history @description: Client accessed other HIV prevention services */ -// TODO: Replace placeholder with relevant CQL logic + define "Other PRV.DE8": - exists "Other PRV.DE8 Condition" - or exists "Other PRV.DE8 Observation" -define "Other PRV.DE8 Condition": - [Condition: Concepts."Other - HIV.PRV.DE8"] -define "Other PRV.DE8 Observation": - "HIV prevention intervention Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."Other - HIV.PRV.DE8" + [Observation] O + where O.status in {'final', 'amended'} + and O.code ~ Concepts."HIV prevention intervention" + and O.value ~ Concepts."Other - HIV.PRV.DE8" + sort by start of effective.toInterval() + /* End of Other PRV.DE8 */ /* @@ -14830,7 +14806,7 @@ define "HIV test result SRV.DE2 Observation": @activity: HIV.D20 Diagnostics @description: CD4 count performed at HIV diagnosis */ -// TODO: Replace placeholder with relevant CQL logic + define "Baseline CD4 count SRV.DE3": [Observation: Concepts."Baseline CD4 count - HIV.SRV.DE3"] O where O.status in { 'final', 'amended', 'corrected' } @@ -14844,13 +14820,10 @@ define "Baseline CD4 count SRV.DE3 Value": @activity: HIV.D20 Diagnostics @description: Date and time when baseline CD4 count test was conducted */ -// TODO: Replace placeholder with relevant CQL logic + define "Date of baseline CD4 count test SRV.DE4": - [Observation: Concepts."Date of baseline CD4 count test - HIV.SRV.DE4"] O - where O.status in { 'final', 'amended', 'corrected' } -define "Date of baseline CD4 count test SRV.DE4 Value": - "Date of baseline CD4 count test SRV.DE4" O - return O.value + "Baseline CD4 count SRV.DE3" O + return O.effective.toInterval() /* End of Date of baseline CD4 count test SRV.DE4 */ /* diff --git a/input/cql/HIVEncounterElements.cql b/input/cql/HIVEncounterElements.cql index 661d6420d4d..7902b1acd93 100644 --- a/input/cql/HIVEncounterElements.cql +++ b/input/cql/HIVEncounterElements.cql @@ -26,6 +26,21 @@ context Patient // Entries based on DAK Data Dictionary for Data Elements marked as used // in at least one Decision Support Table or Aggregate Indicator +/* +@dataElement: HIV.A.DE3 - Visit date +@activity: HIV.A2 Gather client details +@description: The date and time of the client's visit +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Visit date A.DE3": + Elements."Visit date A.DE3" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +define "Visit date A.DE3 Value": + "Visit date A.DE3" O + return O.value +/* End of Visit date A.DE3 */ + /* @dataElement: HIV.A.DE16 - Estimated age @activity: HIV.A6.1 Review sociodemographic data with client | HIV.A5 Create new client record @@ -41,6 +56,134 @@ define "Estimated age Value": return O.value /* End of Estimated age */ +/* +@dataElement: HIV.A.DE17 - Age +@activity: HIV.A6.1 Review sociodemographic data with client | HIV.A5 Create new client record +@description: Calculated age (number of years) of the client based on date of birth +*/ +/** + * @dataElement Patient age in years + */ +define "Current Patient Age In Years": + AgeInYearsAt(Today()) + +/** + * @dataElement Patient age in weeks + */ +define "Current Patient Age In Weeks": + AgeInWeeksAt(Today()) + +/** + * @dataElement Patient age in months + */ +define "Current Patient Age In Months": + AgeInMonthsAt(Today()) +/* End of Age */ + +/* +@dataElement: HIV.A.DE18 - Gender +@activity: HIV.A6.1 Review sociodemographic data with client | HIV.A5 Create new client record +@description: Gender of the client +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Gender": + exists "Gender Observation" +define "Gender Observation": + Elements."Gender Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Gender */ + +/* +@dataElement: HIV.A.DE19 - Female +@activity: HIV.A6.1 Review sociodemographic data with client | HIV.A5 Create new client record +@description: Client identifies as female +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Female": + exists "Female Condition" + or exists "Female Observation" +define "Female Condition": + Elements."Female Condition" C + where C.prevalenceInterval() starts on or before Today +define "Female Observation": + Elements."Female Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Female */ + +/* +@dataElement: HIV.A.DE20 - Male +@activity: HIV.A6.1 Review sociodemographic data with client | HIV.A5 Create new client record +@description: Client identifies as male +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Male": + exists "Male Condition" + or exists "Male Observation" +define "Male Condition": + Elements."Male Condition" C + where C.prevalenceInterval() starts on or before Today +define "Male Observation": + Elements."Male Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Male */ + +/* +@dataElement: HIV.A.DE21 - Transgender male +@activity: HIV.A6.1 Review sociodemographic data with client | HIV.A5 Create new client record +@description: Client identifies as transgender male +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Transgender male": + exists "Transgender male Condition" + or exists "Transgender male Observation" +define "Transgender male Condition": + Elements."Transgender male Condition" C + where C.prevalenceInterval() starts on or before Today +define "Transgender male Observation": + Elements."Transgender male Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Transgender male */ + +/* +@dataElement: HIV.A.DE22 - Transgender female +@activity: HIV.A6.1 Review sociodemographic data with client | HIV.A5 Create new client record +@description: Client identifies as transgender female +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Transgender female": + exists "Transgender female Condition" + or exists "Transgender female Observation" +define "Transgender female Condition": + Elements."Transgender female Condition" C + where C.prevalenceInterval() starts on or before Today +define "Transgender female Observation": + Elements."Transgender female Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Transgender female */ + +/* +@dataElement: HIV.A.DE23 - Other +@activity: HIV.A6.1 Review sociodemographic data with client | HIV.A5 Create new client record +@description: Additional category +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Other A.DE23": + exists "Other A.DE23 Condition" + or exists "Other A.DE23 Observation" +define "Other A.DE23 Condition": + Elements."Other A.DE23 Condition" C + where C.prevalenceInterval() starts on or before Today +define "Other A.DE23 Observation": + Elements."Other A.DE23 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Other A.DE23 */ + /* @dataElement: HIV.B.DE1 - Reason for visit @activity: HIV.B1 Determine reason for visit @@ -124,6 +267,88 @@ define "Date/time of suspected exposure to HIV B.DE14 Value": return O.value /* End of Date/time of suspected exposure to HIV B.DE14 */ +/* +@dataElement: HIV.B.DE29 - Currently pregnant +@activity: HIV.B6 Capture or update client history +@description: Client is currently pregnant +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Currently pregnant B.DE29": + exists "Currently pregnant B.DE29 Observation" +define "Currently pregnant B.DE29 Observation": + Elements."Currently pregnant B.DE29 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Currently pregnant B.DE29 */ + +/* +@dataElement: HIV.B.DE33 - Partner HIV status reported +@activity: HIV.B6 Capture or update client history +@description: The HIV status of the client's partner. +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Partner HIV status reported": + exists "Partner HIV status reported Observation" +define "Partner HIV status reported Observation": + Elements."Partner HIV status reported Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Partner HIV status reported */ + +/* +@dataElement: HIV.B.DE34 - HIV-positive +@activity: HIV.B6 Capture or update client history +@description: Client's partner is HIV-positive +*/ +// TODO: Replace placeholder with relevant CQL logic +define "HIV-positive B.DE34": + exists "HIV-positive B.DE34 Condition" + or exists "HIV-positive B.DE34 Observation" +define "HIV-positive B.DE34 Condition": + Elements."HIV-positive B.DE34 Condition" C + where C.prevalenceInterval() starts on or before Today +define "HIV-positive B.DE34 Observation": + Elements."HIV-positive B.DE34 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of HIV-positive B.DE34 */ + +/* +@dataElement: HIV.B.DE35 - HIV-negative +@activity: HIV.B6 Capture or update client history +@description: Client's partner is HIV-negative +*/ +// TODO: Replace placeholder with relevant CQL logic +define "HIV-negative B.DE35": + exists "HIV-negative B.DE35 Condition" + or exists "HIV-negative B.DE35 Observation" +define "HIV-negative B.DE35 Condition": + Elements."HIV-negative B.DE35 Condition" C + where C.prevalenceInterval() starts on or before Today +define "HIV-negative B.DE35 Observation": + Elements."HIV-negative B.DE35 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of HIV-negative B.DE35 */ + +/* +@dataElement: HIV.B.DE36 - Unknown +@activity: HIV.B6 Capture or update client history +@description: Don't know HIV status - client does not know partner's HIV status +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Unknown B.DE36": + exists "Unknown B.DE36 Condition" + or exists "Unknown B.DE36 Observation" +define "Unknown B.DE36 Condition": + Elements."Unknown B.DE36 Condition" C + where C.prevalenceInterval() starts on or before Today +define "Unknown B.DE36 Observation": + Elements."Unknown B.DE36 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Unknown B.DE36 */ + /* @dataElement: HIV.B.DE49 - Key population member @activity: HIV.B6 Capture or update client history @@ -138,6 +363,124 @@ define "Key population member B.DE49 Observation": or O.effective.toInterval() starts on or before Today /* End of Key population member B.DE49 */ +/* +@dataElement: HIV.B.DE50 - Key population member type +@activity: HIV.B6 Capture or update client history +@description: The type of key population that the client is included in +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Key population member type B.DE50": + exists "Key population member type B.DE50 Observation" +define "Key population member type B.DE50 Observation": + Elements."Key population member type B.DE50 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Key population member type B.DE50 */ + +/* +@dataElement: HIV.B.DE51 - Sex worker +@activity: HIV.B6 Capture or update client history +@description: Client is a sex worker +*/ +// TODO: Replace placeholder with relevant CQL logic + +define "Sex worker B.DE51": + Elements."Sex worker B.DE51" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Sex worker B.DE51 */ + +/* +@dataElement: HIV.B.DE52 - Men who have sex with men +@activity: HIV.B6 Capture or update client history +@description: Client is a man who has sex with men +*/ +define "Men who have sex with men": + Elements."Men who have sex with men" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Men who have sex with men */ + +/* +@dataElement: HIV.B.DE53 - Trans and gender-diverse people +@activity: HIV.B6 Capture or update client history +@description: Client identifies as trans and gender-diverse +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Trans and gender-diverse people B.DE53 Observation": + Elements."Trans and gender-diverse people B.DE53" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Trans and gender-diverse people B.DE53 */ + +/* +@dataElement: HIV.B.DE54 - People who inject drugs +@activity: HIV.B6 Capture or update client history +@description: Client is a person who injects drugs +*/ +// TODO: Replace placeholder with relevant CQL logic +define "People who inject drugs B.DE54": + Elements."People who inject drugs B.DE54" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of People who inject drugs B.DE54 */ + +/* +@dataElement: HIV.B.DE55 - People living in prisons and other closed settings +@activity: HIV.B6 Capture or update client history +@description: Client lives in a prison or another closed setting +*/ +define "People living in prisons and other closed settings Observation": + Elements."People living in prisons and other closed settings" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of People living in prisons and other closed settings */ + +/* +@dataElement: HIV.B.DE65 - Date informed of HIV-positive diagnosis +@activity: HIV.B6 Capture or update client history +@description: The date on which the client was diagnosed with HIV +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Date informed of HIV-positive diagnosis": + Elements."Date informed of HIV-positive diagnosis" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +define "Date informed of HIV-positive diagnosis Value": + "Date informed of HIV-positive diagnosis" O + return O.value +/* End of Date informed of HIV-positive diagnosis */ + +/* +@dataElement: HIV.B.DE71 - HIV diagnosis date +@activity: HIV.B8 Provide post-test counselling +@description: Date diagnosis was returned to client +*/ +// TODO: Replace placeholder with relevant CQL logic +define "HIV diagnosis date": + Elements."HIV diagnosis date" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +define "HIV diagnosis date Value": + "HIV diagnosis date" O + return O.value +/* End of HIV diagnosis date */ + +/* +@dataElement: HIV.B.DE72 - ART start date +@activity: HIV.B8 Provide post-test counselling +@description: The date on which the client started or restarted antiretroviral therapy (ART) +*/ +// TODO: Replace placeholder with relevant CQL logic +define "ART start date B.DE72": + Elements."ART start date B.DE72" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +define "ART start date B.DE72 Value": + "ART start date B.DE72" O + return O.value +/* End of ART start date B.DE72 */ + /* @dataElement: HIV.B.DE80 - HIV test conducted @activity: HIV.B7 Test for HIV using testing algorithm @@ -152,6 +495,110 @@ define "HIV test conducted Observation": or O.effective.toInterval() starts on or before Today /* End of HIV test conducted */ +/* +@dataElement: HIV.B.DE81 - HIV test type +@activity: HIV.B7 Test for HIV using testing algorithm +@description: Type of HIV test +*/ +// TODO: Replace placeholder with relevant CQL logic +define "HIV test type B.DE81": + exists "HIV test type B.DE81 Observation" +define "HIV test type B.DE81 Observation": + Elements."HIV test type B.DE81 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of HIV test type B.DE81 */ + +/* +@dataElement: HIV.B.DE82 - Rapid diagnostic test for HIV +@activity: HIV.B7 Test for HIV using testing algorithm +@description: Antibody test for HIV performed with a rapid diagnostic +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Rapid diagnostic test for HIV B.DE82": + exists "Rapid diagnostic test for HIV B.DE82 Condition" + or exists "Rapid diagnostic test for HIV B.DE82 Observation" +define "Rapid diagnostic test for HIV B.DE82 Condition": + Elements."Rapid diagnostic test for HIV B.DE82 Condition" C + where C.prevalenceInterval() starts on or before Today +define "Rapid diagnostic test for HIV B.DE82 Observation": + Elements."Rapid diagnostic test for HIV B.DE82 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Rapid diagnostic test for HIV B.DE82 */ + +/* +@dataElement: HIV.B.DE83 - Enzyme immunoassay for HIV +@activity: HIV.B7 Test for HIV using testing algorithm +@description: Antibody test for HIV performed with an enzyme immunoassay +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Enzyme immunoassay for HIV B.DE83": + exists "Enzyme immunoassay for HIV B.DE83 Condition" + or exists "Enzyme immunoassay for HIV B.DE83 Observation" +define "Enzyme immunoassay for HIV B.DE83 Condition": + Elements."Enzyme immunoassay for HIV B.DE83 Condition" C + where C.prevalenceInterval() starts on or before Today +define "Enzyme immunoassay for HIV B.DE83 Observation": + Elements."Enzyme immunoassay for HIV B.DE83 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Enzyme immunoassay for HIV B.DE83 */ + +/* +@dataElement: HIV.B.DE84 - Nucleic acid test for HIV +@activity: HIV.B7 Test for HIV using testing algorithm +@description: Virological test, which includes testing for early infant diagnosis +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Nucleic acid test for HIV B.DE84": + exists "Nucleic acid test for HIV B.DE84 Condition" + or exists "Nucleic acid test for HIV B.DE84 Observation" +define "Nucleic acid test for HIV B.DE84 Condition": + Elements."Nucleic acid test for HIV B.DE84 Condition" C + where C.prevalenceInterval() starts on or before Today +define "Nucleic acid test for HIV B.DE84 Observation": + Elements."Nucleic acid test for HIV B.DE84 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Nucleic acid test for HIV B.DE84 */ + +/* +@dataElement: HIV.B.DE85 - Dual HIV/syphilis rapid diagnostic test +@activity: HIV.B7 Test for HIV using testing algorithm +@description: Antibody test for HIV and syphilis performed with a rapid diagnostic +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Dual HIV/syphilis rapid diagnostic test B.DE85": + exists "Dual HIV/syphilis rapid diagnostic test B.DE85 Condition" + or exists "Dual HIV/syphilis rapid diagnostic test B.DE85 Observation" +define "Dual HIV/syphilis rapid diagnostic test B.DE85 Condition": + Elements."Dual HIV/syphilis rapid diagnostic test B.DE85 Condition" C + where C.prevalenceInterval() starts on or before Today +define "Dual HIV/syphilis rapid diagnostic test B.DE85 Observation": + Elements."Dual HIV/syphilis rapid diagnostic test B.DE85 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Dual HIV/syphilis rapid diagnostic test B.DE85 */ + +/* +@dataElement: HIV.B.DE86 - HIV self-test +@activity: HIV.B7 Test for HIV using testing algorithm +@description: Antibody test for HIV performed by self-tester using a rapid diagnostic +*/ +// TODO: Replace placeholder with relevant CQL logic +define "HIV self-test": + exists "HIV self-test Condition" + or exists "HIV self-test Observation" +define "HIV self-test Condition": + Elements."HIV self-test Condition" C + where C.prevalenceInterval() starts on or before Today +define "HIV self-test Observation": + Elements."HIV self-test Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of HIV self-test */ + /* @dataElement: HIV.B.DE88 - Assay number in testing strategy @activity: HIV.B7 Test for HIV using testing algorithm @@ -528,6 +975,136 @@ define "Invalid B.DE109 Observation": or O.effective.toInterval() starts on or before Today /* End of Invalid B.DE109 */ +/* +@dataElement: HIV.B.DE111 - HIV test result +@activity: HIV.B7 Test for HIV using testing algorithm +@description: The result from HIV testing after applying the testing algorithm +*/ +// TODO: Replace placeholder with relevant CQL logic +define "HIV test result B.DE111": + exists "HIV test result B.DE111 Observation" +define "HIV test result B.DE111 Observation": + Elements."HIV test result B.DE111 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of HIV test result B.DE111 */ + +/* +@dataElement: HIV.B.DE112 - HIV-positive +@activity: HIV.B7 Test for HIV using testing algorithm +@description: Test result is HIV-positive +*/ +// TODO: Replace placeholder with relevant CQL logic +define "HIV-positive B.DE112": + exists "HIV-positive B.DE112 Condition" + or exists "HIV-positive B.DE112 Observation" +define "HIV-positive B.DE112 Condition": + Elements."HIV-positive B.DE112 Condition" C + where C.prevalenceInterval() starts on or before Today +define "HIV-positive B.DE112 Observation": + Elements."HIV-positive B.DE112 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of HIV-positive B.DE112 */ + +/* +@dataElement: HIV.B.DE113 - HIV-negative +@activity: HIV.B7 Test for HIV using testing algorithm +@description: Test result is HIV-negative +*/ +// TODO: Replace placeholder with relevant CQL logic +define "HIV-negative B.DE113 Observation": + Elements."HIV-negative B.DE113" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of HIV-negative B.DE113 */ + +/* +@dataElement: HIV.B.DE114 - HIV-inconclusive +@activity: HIV.B7 Test for HIV using testing algorithm +@description: Test result is HIV-inconclusive +*/ +// TODO: Replace placeholder with relevant CQL logic +define "HIV-inconclusive": + exists "HIV-inconclusive Condition" + or exists "HIV-inconclusive Observation" +define "HIV-inconclusive Condition": + Elements."HIV-inconclusive Condition" C + where C.prevalenceInterval() starts on or before Today +define "HIV-inconclusive Observation": + Elements."HIV-inconclusive Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of HIV-inconclusive */ + +/* +@dataElement: HIV.B.DE115 - HIV status +@activity: HIV.B7 Test for HIV using testing algorithm +@description: HIV status reported after applying the national HIV testing algorithm. No single HIV test can provide an HIV-positive diagnosis. +*/ +// TODO: Replace placeholder with relevant CQL logic +define "HIV status": + exists "HIV status Observation" +define "HIV status Observation": + Elements."HIV status Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of HIV status */ + +/* +@dataElement: HIV.B.DE116 - HIV-positive +@activity: HIV.B7 Test for HIV using testing algorithm +@description: Client is HIV-positive +*/ +// TODO: Replace placeholder with relevant CQL logic +define "HIV-positive B.DE116": + exists "HIV-positive B.DE116 Condition" + or exists "HIV-positive B.DE116 Observation" +define "HIV-positive B.DE116 Condition": + Elements."HIV-positive B.DE116 Condition" C + where C.prevalenceInterval() starts on or before Today +define "HIV-positive B.DE116 Observation": + Elements."HIV-positive B.DE116 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of HIV-positive B.DE116 */ + +/* +@dataElement: HIV.B.DE117 - HIV-negative +@activity: HIV.B7 Test for HIV using testing algorithm +@description: Client is HIV-negative +*/ +// TODO: Replace placeholder with relevant CQL logic +define "HIV-negative B.DE117": + exists "HIV-negative B.DE117 Condition" + or exists "HIV-negative B.DE117 Observation" +define "HIV-negative B.DE117 Condition": + Elements."HIV-negative B.DE117 Condition" C + where C.prevalenceInterval() starts on or before Today +define "HIV-negative B.DE117 Observation": + Elements."HIV-negative B.DE117 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of HIV-negative B.DE117 */ + +/* +@dataElement: HIV.B.DE118 - Unknown +@activity: HIV.B7 Test for HIV using testing algorithm +@description: Client has unknown HIV status +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Unknown B.DE118": + exists "Unknown B.DE118 Condition" + or exists "Unknown B.DE118 Observation" +define "Unknown B.DE118 Condition": + Elements."Unknown B.DE118 Condition" C + where C.prevalenceInterval() starts on or before Today +define "Unknown B.DE118 Observation": + Elements."Unknown B.DE118 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Unknown B.DE118 */ + /* @dataElement: HIV.B.DE141 - Partner virally suppressed on ART @activity: HIV.B6 Capture or update client history @@ -1249,6 +1826,85 @@ define "HIV retest prior to starting ART conducted Observation": or O.effective.toInterval() starts on or before Today /* End of HIV retest prior to starting ART conducted */ +/* +@dataElement: HIV.B.DE225 - At elevated risk for HIV acquisition +@activity: HIV.B6 Capture or update client history +@description: Client is at elevated risk for HIV acquisition +*/ +define "At elevated risk for HIV acquisition B.DE225": + Elements."At elevated risk for HIV acquisition B.DE225" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of At elevated risk for HIV acquisition B.DE225 */ + +/* +@dataElement: HIV.B.DE250 - Syphilis test result +@activity: HIV.B23 Offer sexual and reproductive health services +@description: Result from syphilis test +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Syphilis test result B.DE250": + exists "Syphilis test result B.DE250 Observation" +define "Syphilis test result B.DE250 Observation": + Elements."Syphilis test result B.DE250 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Syphilis test result B.DE250 */ + +/* +@dataElement: HIV.B.DE251 - Positive +@activity: HIV.B23 Offer sexual and reproductive health services +@description: Test result is positive for syphilis +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Positive B.DE251": + exists "Positive B.DE251 Condition" + or exists "Positive B.DE251 Observation" +define "Positive B.DE251 Condition": + Elements."Positive B.DE251 Condition" C + where C.prevalenceInterval() starts on or before Today +define "Positive B.DE251 Observation": + Elements."Positive B.DE251 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Positive B.DE251 */ + +/* +@dataElement: HIV.B.DE252 - Negative +@activity: HIV.B23 Offer sexual and reproductive health services +@description: Test result is negative for syphilis +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Negative B.DE252": + exists "Negative B.DE252 Condition" + or exists "Negative B.DE252 Observation" +define "Negative B.DE252 Condition": + Elements."Negative B.DE252 Condition" C + where C.prevalenceInterval() starts on or before Today +define "Negative B.DE252 Observation": + Elements."Negative B.DE252 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Negative B.DE252 */ + +/* +@dataElement: HIV.B.DE253 - Inconclusive +@activity: HIV.B23 Offer sexual and reproductive health services +@description: Test result is inconclusive +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Inconclusive B.DE253": + exists "Inconclusive B.DE253 Condition" + or exists "Inconclusive B.DE253 Observation" +define "Inconclusive B.DE253 Condition": + Elements."Inconclusive B.DE253 Condition" C + where C.prevalenceInterval() starts on or before Today +define "Inconclusive B.DE253 Observation": + Elements."Inconclusive B.DE253 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Inconclusive B.DE253 */ + /* @dataElement: HIV.C.DE9 - Date/time of suspected exposure to HIV @activity: HIV.C3 Capture or update client history @@ -3133,33 +3789,137 @@ define "Other sign of serious illness Observation": or O.effective.toInterval() starts on or before Today /* End of Other sign of serious illness */ +/* +@dataElement: HIV.D.DE31 - Currently pregnant +@activity: HIV.D8 Capture or update client history +@description: Client is currently pregnant +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Currently pregnant D.DE31": + exists "Currently pregnant D.DE31 Observation" +define "Currently pregnant D.DE31 Observation": + Elements."Currently pregnant D.DE31 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Currently pregnant D.DE31 */ + /* @dataElement: HIV.D.DE37 - Serodiscordant partner @activity: HIV.D8 Capture or update client history @description: Client's HIV status is different from a current partner's HIV status */ // TODO: Replace placeholder with relevant CQL logic -define "Serodiscordant partner D.DE37": - exists "Serodiscordant partner D.DE37 Observation" -define "Serodiscordant partner D.DE37 Observation": - Elements."Serodiscordant partner D.DE37 Observation" O +define "Serodiscordant partner D.DE37": + exists "Serodiscordant partner D.DE37 Observation" +define "Serodiscordant partner D.DE37 Observation": + Elements."Serodiscordant partner D.DE37 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Serodiscordant partner D.DE37 */ + +/* +@dataElement: HIV.D.DE38 - On ART +@activity: HIV.D8 Capture or update client history +@description: Client is currently taking ART +*/ +// TODO: Replace placeholder with relevant CQL logic +define "On ART D.DE38": + Elements."On ART D.DE38" MS + where MS.effective.toInterval() starts on or before Today +/* End of On ART D.DE38 */ + +/* +@dataElement: HIV.D.DE39 - ART start date +@activity: HIV.D8 Capture or update client history +@description: The date on which the client started or restarted ART +*/ +// TODO: Replace placeholder with relevant CQL logic +define "ART start date D.DE39": + Elements."ART start date D.DE39" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +define "ART start date D.DE39 Value": + "ART start date D.DE39" O + return O.value +/* End of ART start date D.DE39 */ + +/* +@dataElement: HIV.D.DE42 - Established on ART +@activity: HIV.D8 Capture or update client history +@description: Is the client successfully established on ART? +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Established on ART": + exists "Established on ART Observation" +define "Established on ART Observation": + Elements."Established on ART Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Established on ART */ + +/* +@dataElement: HIV.D.DE43 - ART start type +@activity: HIV.D8 Capture or update client history +@description: Whether the client is ART naive or is restarting ART +*/ +// TODO: Replace placeholder with relevant CQL logic +define "ART start type": + exists "ART start type Observation" +define "ART start type Observation": + Elements."ART start type Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of ART start type */ + +/* +@dataElement: HIV.D.DE44 - First-time user of ART +@activity: HIV.D8 Capture or update client history +@description: Client is ART naive, having never taken ART to treat HIV before +*/ +// TODO: Replace placeholder with relevant CQL logic +define "First-time user of ART": + exists "First-time user of ART Condition" + or exists "First-time user of ART Observation" +define "First-time user of ART Condition": + Elements."First-time user of ART Condition" C + where C.prevalenceInterval() starts on or before Today +define "First-time user of ART Observation": + Elements."First-time user of ART Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of First-time user of ART */ + +/* +@dataElement: HIV.D.DE45 - Restarting ART +@activity: HIV.D8 Capture or update client history +@description: Client is restarting ART after stopping treatment for any reason +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Restarting ART": + exists "Restarting ART Condition" + or exists "Restarting ART Observation" +define "Restarting ART Condition": + Elements."Restarting ART Condition" C + where C.prevalenceInterval() starts on or before Today +define "Restarting ART Observation": + Elements."Restarting ART Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Serodiscordant partner D.DE37 */ +/* End of Restarting ART */ /* -@dataElement: HIV.D.DE42 - Established on ART +@dataElement: HIV.D.DE75 - Current ART regimen @activity: HIV.D8 Capture or update client history -@description: Is the client successfully established on ART? +@description: The current ART regimen the client is taking */ // TODO: Replace placeholder with relevant CQL logic -define "Established on ART": - exists "Established on ART Observation" -define "Established on ART Observation": - Elements."Established on ART Observation" O +define "Current ART regimen": + exists "Current ART regimen Observation" +define "Current ART regimen Observation": + Elements."Current ART regimen Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of Established on ART */ +/* End of Current ART regimen */ /* @dataElement: HIV.D.DE77 - Preferred first-line ART regimen @@ -3841,6 +4601,142 @@ define "STI testing and treatment D.DE160 Observation": or O.effective.toInterval() starts on or before Today /* End of STI testing and treatment D.DE160 */ +/* +@dataElement: HIV.D.DE162 - HBsAg test result +@activity: HIV.D12 Determine recommended screenings and tests +@description: Hepatitis B virus test result (HBsAg) +*/ +// TODO: Replace placeholder with relevant CQL logic +define "HBsAg test result D.DE162": + exists "HBsAg test result D.DE162 Observation" +define "HBsAg test result D.DE162 Observation": + Elements."HBsAg test result D.DE162 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of HBsAg test result D.DE162 */ + +/* +@dataElement: HIV.D.DE163 - Positive +@activity: HIV.D12 Determine recommended screenings and tests +@description: HBsAg test result was positive +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Positive D.DE163": + exists "Positive D.DE163 Condition" + or exists "Positive D.DE163 Observation" +define "Positive D.DE163 Condition": + Elements."Positive D.DE163 Condition" C + where C.prevalenceInterval() starts on or before Today +define "Positive D.DE163 Observation": + Elements."Positive D.DE163 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Positive D.DE163 */ + +/* +@dataElement: HIV.D.DE164 - Negative +@activity: HIV.D12 Determine recommended screenings and tests +@description: HBsAg test result was negative +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Negative D.DE164": + exists "Negative D.DE164 Condition" + or exists "Negative D.DE164 Observation" +define "Negative D.DE164 Condition": + Elements."Negative D.DE164 Condition" C + where C.prevalenceInterval() starts on or before Today +define "Negative D.DE164 Observation": + Elements."Negative D.DE164 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Negative D.DE164 */ + +/* +@dataElement: HIV.D.DE165 - Indeterminate +@activity: HIV.D12 Determine recommended screenings and tests +@description: HBsAg test result was indeterminate +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Indeterminate D.DE165": + exists "Indeterminate D.DE165 Condition" + or exists "Indeterminate D.DE165 Observation" +define "Indeterminate D.DE165 Condition": + Elements."Indeterminate D.DE165 Condition" C + where C.prevalenceInterval() starts on or before Today +define "Indeterminate D.DE165 Observation": + Elements."Indeterminate D.DE165 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Indeterminate D.DE165 */ + +/* +@dataElement: HIV.D.DE170 - HCV test result +@activity: HIV.D12 Determine recommended screenings and tests +@description: Hepatitis C virus test result (HCV antibody, HCV RNA or HCV core antigen) +*/ +// TODO: Replace placeholder with relevant CQL logic +define "HCV test result D.DE170": + exists "HCV test result D.DE170 Observation" +define "HCV test result D.DE170 Observation": + Elements."HCV test result D.DE170 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of HCV test result D.DE170 */ + +/* +@dataElement: HIV.D.DE171 - Positive +@activity: HIV.D12 Determine recommended screenings and tests +@description: HCV test result was positive +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Positive D.DE171": + exists "Positive D.DE171 Condition" + or exists "Positive D.DE171 Observation" +define "Positive D.DE171 Condition": + Elements."Positive D.DE171 Condition" C + where C.prevalenceInterval() starts on or before Today +define "Positive D.DE171 Observation": + Elements."Positive D.DE171 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Positive D.DE171 */ + +/* +@dataElement: HIV.D.DE172 - Negative +@activity: HIV.D12 Determine recommended screenings and tests +@description: HCV test result was negative +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Negative D.DE172": + exists "Negative D.DE172 Condition" + or exists "Negative D.DE172 Observation" +define "Negative D.DE172 Condition": + Elements."Negative D.DE172 Condition" C + where C.prevalenceInterval() starts on or before Today +define "Negative D.DE172 Observation": + Elements."Negative D.DE172 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Negative D.DE172 */ + +/* +@dataElement: HIV.D.DE173 - Indeterminate +@activity: HIV.D12 Determine recommended screenings and tests +@description: HCV test result was indeterminate +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Indeterminate D.DE173": + exists "Indeterminate D.DE173 Condition" + or exists "Indeterminate D.DE173 Observation" +define "Indeterminate D.DE173 Condition": + Elements."Indeterminate D.DE173 Condition" C + where C.prevalenceInterval() starts on or before Today +define "Indeterminate D.DE173 Observation": + Elements."Indeterminate D.DE173 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Indeterminate D.DE173 */ + /* @dataElement: HIV.D.DE186 - HIV clinical stage @activity: HIV.D8 Capture or update client history @@ -3927,6 +4823,18 @@ define "WHO HIV clinical stage 4 Observation": or O.effective.toInterval() starts on or before Today /* End of WHO HIV clinical stage 4 */ +/* +@dataElement: HIV.D.DE194 - Date of viral load sample collection +@activity: HIV.D10 Counsel returning client +@description: Date and time when the sample was collected to test the client's HIV viral load +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Date of viral load sample collection D.DE194": + Elements."Date of viral load sample collection D.DE194" P + where P.encounter.references(EncounterId) + or P.performed.toInterval() starts on or before Today +/* End of Date of viral load sample collection D.DE194 */ + /* @dataElement: HIV.D.DE195 - Date of scheduled review of viral load test results @activity: HIV.D10 Counsel returning client @@ -4010,6 +4918,38 @@ define "Virological failure Observation": or O.effective.toInterval() starts on or before Today /* End of Virological failure */ +/* +@dataElement: HIV.D.DE259 - Risk factors, comorbidities and coinfections signs and symptoms +@activity: HIV.D14 Prevent, screen, and manage comorbidities and coinfections +@description: Signs and symptoms of opportunistic infections or other comorbidities experienced by client +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Risk factors, comorbidities and coinfections signs and symptoms": + exists "Risk factors, comorbidities and coinfections signs and symptoms Observation" +define "Risk factors, comorbidities and coinfections signs and symptoms Observation": + Elements."Risk factors, comorbidities and coinfections signs and symptoms Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Risk factors, comorbidities and coinfections signs and symptoms */ + +/* +@dataElement: HIV.D.DE282 - Presumptive TB +@activity: HIV.D14 Prevent, screen, and manage comorbidities and coinfections +@description: Client's comorbidities or coinfections or symptoms of these include presumptive TB +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Presumptive TB D.DE282": + exists "Presumptive TB D.DE282 Condition" + or exists "Presumptive TB D.DE282 Observation" +define "Presumptive TB D.DE282 Condition": + Elements."Presumptive TB D.DE282 Condition" C + where C.prevalenceInterval() starts on or before Today +define "Presumptive TB D.DE282 Observation": + Elements."Presumptive TB D.DE282 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Presumptive TB D.DE282 */ + /* @dataElement: HIV.D.DE289 - WHO HIV clinical stage condition or symptom @activity: HIV.D15 Determine clinical stage of HIV @@ -5263,6 +6203,107 @@ define "CD4 count D.DE364 Value": return O.value /* End of CD4 count D.DE364 */ +/* +@dataElement: HIV.D.DE387 - Viral load test result +@activity: HIV.D20 Diagnostics +@description: Result from the viral load test in number of copies/mL +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Viral load test result D.DE387": + Elements."Viral load test result D.DE387" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +define "Viral load test result D.DE387 Value": + "Viral load test result D.DE387" O + return O.value +/* End of Viral load test result D.DE387 */ + +/* +@dataElement: HIV.D.DE391 - Reason for HIV viral load test +@activity: HIV.D20 Diagnostics +@description: Whether the viral load is being tested for routine monitoring on a set schedule or for targeted monitoring for suspected treatment failure +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Reason for HIV viral load test": + exists "Reason for HIV viral load test Observation" +define "Reason for HIV viral load test Observation": + Elements."Reason for HIV viral load test Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Reason for HIV viral load test */ + +/* +@dataElement: HIV.D.DE392 - Routine viral load test +@activity: HIV.D20 Diagnostics +@description: Routine refers to viral load tests obtained at standard intervals following ART initiation to monitor viral load response to ART +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Routine viral load test": + exists "Routine viral load test Condition" + or exists "Routine viral load test Observation" +define "Routine viral load test Condition": + Elements."Routine viral load test Condition" C + where C.prevalenceInterval() starts on or before Today +define "Routine viral load test Observation": + Elements."Routine viral load test Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Routine viral load test */ + +/* +@dataElement: HIV.D.DE393 - Targeted viral load monitoring +@activity: HIV.D20 Diagnostics +@description: Targeted refers to viral load tests obtained based on a specific clinical indication (such as concern about disease progression or failure to respond to ART) +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Targeted viral load monitoring": + exists "Targeted viral load monitoring Condition" + or exists "Targeted viral load monitoring Observation" +define "Targeted viral load monitoring Condition": + Elements."Targeted viral load monitoring Condition" C + where C.prevalenceInterval() starts on or before Today +define "Targeted viral load monitoring Observation": + Elements."Targeted viral load monitoring Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Targeted viral load monitoring */ + +/* +@dataElement: HIV.D.DE394 - Initial viral load test +@activity: HIV.D20 Diagnostics +@description: The first viral load test of the client +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Initial viral load test": + exists "Initial viral load test Condition" + or exists "Initial viral load test Observation" +define "Initial viral load test Condition": + Elements."Initial viral load test Condition" C + where C.prevalenceInterval() starts on or before Today +define "Initial viral load test Observation": + Elements."Initial viral load test Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Initial viral load test */ + +/* +@dataElement: HIV.D.DE395 - Follow-up viral load test after receiving enhanced adherence counselling +@activity: HIV.D20 Diagnostics +@description: A follow-up viral load test within 3-6 months after enhanced adherence counselling after client received a high viral load test result +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Follow-up viral load test after receiving enhanced adherence counselling": + exists "Follow-up viral load test after receiving enhanced adherence counselling Condition" + or exists "Follow-up viral load test after receiving enhanced adherence counselling Observation" +define "Follow-up viral load test after receiving enhanced adherence counselling Condition": + Elements."Follow-up viral load test after receiving enhanced adherence counselling Condition" C + where C.prevalenceInterval() starts on or before Today +define "Follow-up viral load test after receiving enhanced adherence counselling Observation": + Elements."Follow-up viral load test after receiving enhanced adherence counselling Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Follow-up viral load test after receiving enhanced adherence counselling */ + /* @dataElement: HIV.D.DE399 - Monitoring examinations @activity: HIV.D20 Diagnostics @@ -5596,6 +6637,20 @@ define "Adherence counselling provided D.DE465 Observation": or O.effective.toInterval() starts on or before Today /* End of Adherence counselling provided D.DE465 */ +/* +@dataElement: HIV.D.DE496 - Enhanced adherence counselling provided +@activity: HIV.D24 Counsel +@description: Enhanced adherence counselling was provided to the client during the visit +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Enhanced adherence counselling provided": + exists "Enhanced adherence counselling provided Observation" +define "Enhanced adherence counselling provided Observation": + Elements."Enhanced adherence counselling provided Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Enhanced adherence counselling provided */ + /* @dataElement: HIV.D.DE507 - Counselling provided on diagnoses @activity: HIV.D24 Counsel @@ -6218,6 +7273,36 @@ define "Other medications Observation": or O.effective.toInterval() starts on or before Today /* End of Other medications */ +/* +@dataElement: HIV.D.DE656 - Date of cervical cancer screening test +@activity: HIV.D28 Offer other services +@description: Date of cervical cancer screening test +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Date of cervical cancer screening test": + Elements."Date of cervical cancer screening test" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +define "Date of cervical cancer screening test Value": + "Date of cervical cancer screening test" O + return O.value +/* End of Date of cervical cancer screening test */ + +/* +@dataElement: HIV.D.DE657 - Lifetime screening test number +@activity: HIV.D28 Offer other services +@description: Client's lifetime number of screenings for cervical cancer +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Lifetime screening test number": + Elements."Lifetime screening test number" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +define "Lifetime screening test number Value": + "Lifetime screening test number" O + return O.value +/* End of Lifetime screening test number */ + /* @dataElement: HIV.D.DE658 - Cervical cancer primary screening test type @activity: HIV.D28 Offer other services @@ -6441,6 +7526,74 @@ define "Malaria prevention such as bed nets and prophylaxis, depending on epidem or O.effective.toInterval() starts on or before Today /* End of Malaria prevention such as bed nets and prophylaxis, depending on epidemiology D.DE759 */ +/* +@dataElement: HIV.D.DE802 - Syphilis test result +@activity: HIV.D26 Offer sexual and reproductive health services +@description: Result from syphilis test +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Syphilis test result D.DE802": + exists "Syphilis test result D.DE802 Observation" +define "Syphilis test result D.DE802 Observation": + Elements."Syphilis test result D.DE802 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Syphilis test result D.DE802 */ + +/* +@dataElement: HIV.D.DE803 - Positive +@activity: HIV.D26 Offer sexual and reproductive health services +@description: Test result is positive for syphilis +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Positive D.DE803": + exists "Positive D.DE803 Condition" + or exists "Positive D.DE803 Observation" +define "Positive D.DE803 Condition": + Elements."Positive D.DE803 Condition" C + where C.prevalenceInterval() starts on or before Today +define "Positive D.DE803 Observation": + Elements."Positive D.DE803 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Positive D.DE803 */ + +/* +@dataElement: HIV.D.DE804 - Negative +@activity: HIV.D26 Offer sexual and reproductive health services +@description: Test result is negative for syphilis +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Negative D.DE804": + exists "Negative D.DE804 Condition" + or exists "Negative D.DE804 Observation" +define "Negative D.DE804 Condition": + Elements."Negative D.DE804 Condition" C + where C.prevalenceInterval() starts on or before Today +define "Negative D.DE804 Observation": + Elements."Negative D.DE804 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Negative D.DE804 */ + +/* +@dataElement: HIV.D.DE805 - Inconclusive +@activity: HIV.D26 Offer sexual and reproductive health services +@description: Test result is inconclusive +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Inconclusive D.DE805": + exists "Inconclusive D.DE805 Condition" + or exists "Inconclusive D.DE805 Observation" +define "Inconclusive D.DE805 Condition": + Elements."Inconclusive D.DE805 Condition" C + where C.prevalenceInterval() starts on or before Today +define "Inconclusive D.DE805 Observation": + Elements."Inconclusive D.DE805 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Inconclusive D.DE805 */ + /* @dataElement: HIV.D.DE903 - Medication/drug @activity: HIV.D21 Determine regimen and treatment options @@ -7041,6 +8194,70 @@ define "Extrapulmonary TB D.DE937 Observation": or O.effective.toInterval() starts on or before Today /* End of Extrapulmonary TB D.DE937 */ +/* +@dataElement: HIV.D.DE939 - TB diagnosis result +@activity: HIV.D8 Capture or update client history +@description: Final result of the TB investigation (bacteriological and/or clinical) +*/ +// TODO: Replace placeholder with relevant CQL logic +define "TB diagnosis result": + exists "TB diagnosis result Observation" +define "TB diagnosis result Observation": + Elements."TB diagnosis result Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of TB diagnosis result */ + +/* +@dataElement: HIV.D.DE940 - Diagnosed TB +@activity: HIV.D8 Capture or update client history +@description: Client is diagnosed with TB disease +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Diagnosed TB": + exists "Diagnosed TB Condition" + or exists "Diagnosed TB Observation" +define "Diagnosed TB Condition": + Elements."Diagnosed TB Condition" C + where C.prevalenceInterval() starts on or before Today +define "Diagnosed TB Observation": + Elements."Diagnosed TB Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Diagnosed TB */ + +/* +@dataElement: HIV.D.DE941 - TB excluded +@activity: HIV.D8 Capture or update client history +@description: Client is not diagnosed with TB +*/ +// TODO: Replace placeholder with relevant CQL logic +define "TB excluded": + exists "TB excluded Condition" + or exists "TB excluded Observation" +define "TB excluded Condition": + Elements."TB excluded Condition" C + where C.prevalenceInterval() starts on or before Today +define "TB excluded Observation": + Elements."TB excluded Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of TB excluded */ + +/* +@dataElement: HIV.D.DE945 - Presumptive TB +@activity: HIV.D8 Capture or update client history +@description: Client has signs or symptoms of tuberculosis (TB) without laboratory confirmation +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Presumptive TB D.DE945": + exists "Presumptive TB D.DE945 Observation" +define "Presumptive TB D.DE945 Observation": + Elements."Presumptive TB D.DE945 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Presumptive TB D.DE945 */ + /* @dataElement: HIV.D.DE956 - TB screening algorithm @activity: HIV.D4 Screen for TB @@ -7531,7 +8748,75 @@ define "History of contact with a person with TB Observation": Elements."History of contact with a person with TB Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of History of contact with a person with TB */ +/* End of History of contact with a person with TB */ + +/* +@dataElement: HIV.D.DE986 - TB screening result +@activity: HIV.D4 Screen for TB +@description: Record the result of the tuberculosis (TB) screening +*/ +// TODO: Replace placeholder with relevant CQL logic +define "TB screening result": + exists "TB screening result Observation" +define "TB screening result Observation": + Elements."TB screening result Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of TB screening result */ + +/* +@dataElement: HIV.D.DE987 - Screen positive for TB +@activity: HIV.D4 Screen for TB +@description: Screening result was positive for tuberculosis (TB) +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Screen positive for TB": + exists "Screen positive for TB Condition" + or exists "Screen positive for TB Observation" +define "Screen positive for TB Condition": + Elements."Screen positive for TB Condition" C + where C.prevalenceInterval() starts on or before Today +define "Screen positive for TB Observation": + Elements."Screen positive for TB Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Screen positive for TB */ + +/* +@dataElement: HIV.D.DE988 - Screen negative for TB +@activity: HIV.D4 Screen for TB +@description: Screening result was negative for tuberculosis (TB) +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Screen negative for TB": + exists "Screen negative for TB Condition" + or exists "Screen negative for TB Observation" +define "Screen negative for TB Condition": + Elements."Screen negative for TB Condition" C + where C.prevalenceInterval() starts on or before Today +define "Screen negative for TB Observation": + Elements."Screen negative for TB Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Screen negative for TB */ + +/* +@dataElement: HIV.D.DE989 - Inconclusive +@activity: HIV.D4 Screen for TB +@description: Screening result was inconclusive for tuberculosis (TB) +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Inconclusive D.DE989": + exists "Inconclusive D.DE989 Condition" + or exists "Inconclusive D.DE989 Observation" +define "Inconclusive D.DE989 Condition": + Elements."Inconclusive D.DE989 Condition" C + where C.prevalenceInterval() starts on or before Today +define "Inconclusive D.DE989 Observation": + Elements."Inconclusive D.DE989 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Inconclusive D.DE989 */ /* @dataElement: HIV.D.DE1023 - TB prevention services accepted @@ -7562,6 +8847,21 @@ define "C reactive protein test result Value": return O.value /* End of C reactive protein test result */ +/* +@dataElement: HIV.E.DE85 - ANC contact date +@activity: HIV.E1 Capture or update mother's history +@description: The date and time of the client's ANC contact (in the ANC DAK this is called 'Contact date') +*/ +// TODO: Replace placeholder with relevant CQL logic +define "ANC contact date E.DE85": + Elements."ANC contact date E.DE85" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +define "ANC contact date E.DE85 Value": + "ANC contact date E.DE85" O + return O.value +/* End of ANC contact date E.DE85 */ + /* @dataElement: HIV.E.DE113 - Key population member @activity: HIV.E1 Capture or update mother's history @@ -7576,6 +8876,66 @@ define "Key population member E.DE113 Observation": or O.effective.toInterval() starts on or before Today /* End of Key population member E.DE113 */ +/* +@dataElement: HIV.E.DE114 - Key population member type +@activity: HIV.E1 Capture or update mother's history +@description: The type of key population that the infant's mother is included in +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Key population member type E.DE114": + exists "Key population member type E.DE114 Observation" +define "Key population member type E.DE114 Observation": + Elements."Key population member type E.DE114 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Key population member type E.DE114 */ + +/* +@dataElement: HIV.E.DE115 - Sex worker +@activity: HIV.E1 Capture or update mother's history +@description: Infant's mother is a sex worker +*/ +define "Sex worker E.DE115": + Elements."Sex worker E.DE115" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Sex worker E.DE115 */ + +/* +@dataElement: HIV.E.DE116 - People who inject drugs +@activity: HIV.E1 Capture or update mother's history +@description: Infant's mother is a person who injects drugs +*/ +define "People who inject drugs E.DE116": + Elements."People who inject drugs E.DE116" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of People who inject drugs E.DE116 */ + +/* +@dataElement: HIV.E.DE117 - Trans and gender-diverse people +@activity: HIV.E1 Capture or update mother's history +@description: Infant's mother identifies as trans and gender-diverse +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Trans and gender-diverse people E.DE117": + Elements."Trans and gender-diverse people E.DE117" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Trans and gender-diverse people E.DE117 */ + +/* +@dataElement: HIV.E.DE118 - People living in prisons and other closed setting +@activity: HIV.E1 Capture or update mother's history +@description: Infant's mother is in a prison or closed setting +*/ +// TODO: Replace placeholder with relevant CQL logic +define "People living in prisons and other closed setting": + Elements."People living in prisons and other closed setting" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of People living in prisons and other closed setting */ + /* @dataElement: HIV.E.DE155 - Signs of substantial risk of HIV infection @activity: HIV.E1 Capture or update mother's history @@ -7676,6 +9036,92 @@ define "Serodiscordant partner E.DE160 Observation": or O.effective.toInterval() starts on or before Today /* End of Serodiscordant partner E.DE160 */ +/* +@dataElement: HIV.E.DE168 - HIV test type +@activity: HIV.E4 Test mother for HIV using testing algorithm +@description: Type of HIV test +*/ +// TODO: Replace placeholder with relevant CQL logic +define "HIV test type E.DE168": + exists "HIV test type E.DE168 Observation" +define "HIV test type E.DE168 Observation": + Elements."HIV test type E.DE168 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of HIV test type E.DE168 */ + +/* +@dataElement: HIV.E.DE169 - Rapid diagnostic test for HIV +@activity: HIV.E4 Test mother for HIV using testing algorithm +@description: Antibody test for HIV performed with a rapid diagnostic (RDT) +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Rapid diagnostic test for HIV E.DE169": + exists "Rapid diagnostic test for HIV E.DE169 Condition" + or exists "Rapid diagnostic test for HIV E.DE169 Observation" +define "Rapid diagnostic test for HIV E.DE169 Condition": + Elements."Rapid diagnostic test for HIV E.DE169 Condition" C + where C.prevalenceInterval() starts on or before Today +define "Rapid diagnostic test for HIV E.DE169 Observation": + Elements."Rapid diagnostic test for HIV E.DE169 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Rapid diagnostic test for HIV E.DE169 */ + +/* +@dataElement: HIV.E.DE170 - Enzyme immunoassay for HIV +@activity: HIV.E4 Test mother for HIV using testing algorithm +@description: Antibody test for HIV performed with an enzyme immunoassay (EIA) +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Enzyme immunoassay for HIV E.DE170": + exists "Enzyme immunoassay for HIV E.DE170 Condition" + or exists "Enzyme immunoassay for HIV E.DE170 Observation" +define "Enzyme immunoassay for HIV E.DE170 Condition": + Elements."Enzyme immunoassay for HIV E.DE170 Condition" C + where C.prevalenceInterval() starts on or before Today +define "Enzyme immunoassay for HIV E.DE170 Observation": + Elements."Enzyme immunoassay for HIV E.DE170 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Enzyme immunoassay for HIV E.DE170 */ + +/* +@dataElement: HIV.E.DE171 - Nucleic acid test for HIV +@activity: HIV.E4 Test mother for HIV using testing algorithm +@description: Virological test, which includes testing for early infant diagnosis +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Nucleic acid test for HIV E.DE171": + exists "Nucleic acid test for HIV E.DE171 Condition" + or exists "Nucleic acid test for HIV E.DE171 Observation" +define "Nucleic acid test for HIV E.DE171 Condition": + Elements."Nucleic acid test for HIV E.DE171 Condition" C + where C.prevalenceInterval() starts on or before Today +define "Nucleic acid test for HIV E.DE171 Observation": + Elements."Nucleic acid test for HIV E.DE171 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Nucleic acid test for HIV E.DE171 */ + +/* +@dataElement: HIV.E.DE172 - Dual HIV/syphilis rapid diagnostic test +@activity: HIV.E4 Test mother for HIV using testing algorithm +@description: Antibody test for HIV and syphilis performed with a rapid diagnostic +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Dual HIV/syphilis rapid diagnostic test E.DE172": + exists "Dual HIV/syphilis rapid diagnostic test E.DE172 Condition" + or exists "Dual HIV/syphilis rapid diagnostic test E.DE172 Observation" +define "Dual HIV/syphilis rapid diagnostic test E.DE172 Condition": + Elements."Dual HIV/syphilis rapid diagnostic test E.DE172 Condition" C + where C.prevalenceInterval() starts on or before Today +define "Dual HIV/syphilis rapid diagnostic test E.DE172 Observation": + Elements."Dual HIV/syphilis rapid diagnostic test E.DE172 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Dual HIV/syphilis rapid diagnostic test E.DE172 */ + /* @dataElement: HIV.E.DE180 - EID sample number @activity: HIV.F8 Test infant/child for HIV using testing algorithm @@ -8439,6 +9885,240 @@ define "CD4 count G.DE1 Value": return O.value /* End of CD4 count G.DE1 */ +/* +@dataElement: HIV.G.DE8 - Date of viral load sample collection +@activity: HIV.D20 Diagnostics +@description: Date and time when the sample was collected to test the client's HIV viral load +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Date of viral load sample collection G.DE8": + Elements."Date of viral load sample collection G.DE8" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +define "Date of viral load sample collection G.DE8 Value": + "Date of viral load sample collection G.DE8" O + return O.value +/* End of Date of viral load sample collection G.DE8 */ + +/* +@dataElement: HIV.G.DE12 - Viral load test result +@activity: HIV.D20 Diagnostics +@description: Result from the viral load test in number of copies/mL +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Viral load test result G.DE12": + Elements."Viral load test result G.DE12" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +define "Viral load test result G.DE12 Value": + "Viral load test result G.DE12" O + return O.value +/* End of Viral load test result G.DE12 */ + +/* +@dataElement: HIV.G.DE18 - HBsAg test result +@activity: HIV.D20 Diagnostics +@description: Hepatitis B virus test result (HBsAg) +*/ +// TODO: Replace placeholder with relevant CQL logic +define "HBsAg test result G.DE18": + exists "HBsAg test result G.DE18 Observation" +define "HBsAg test result G.DE18 Observation": + Elements."HBsAg test result G.DE18 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of HBsAg test result G.DE18 */ + +/* +@dataElement: HIV.G.DE19 - Positive +@activity: HIV.D20 Diagnostics +@description: HBsAg test result was positive +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Positive G.DE19": + exists "Positive G.DE19 Condition" + or exists "Positive G.DE19 Observation" +define "Positive G.DE19 Condition": + Elements."Positive G.DE19 Condition" C + where C.prevalenceInterval() starts on or before Today +define "Positive G.DE19 Observation": + Elements."Positive G.DE19 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Positive G.DE19 */ + +/* +@dataElement: HIV.G.DE20 - Negative +@activity: HIV.D20 Diagnostics +@description: HBsAg test result was negative +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Negative G.DE20": + exists "Negative G.DE20 Condition" + or exists "Negative G.DE20 Observation" +define "Negative G.DE20 Condition": + Elements."Negative G.DE20 Condition" C + where C.prevalenceInterval() starts on or before Today +define "Negative G.DE20 Observation": + Elements."Negative G.DE20 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Negative G.DE20 */ + +/* +@dataElement: HIV.G.DE21 - Indeterminate +@activity: HIV.D20 Diagnostics +@description: HBsAg test result was indeterminate +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Indeterminate G.DE21": + exists "Indeterminate G.DE21 Condition" + or exists "Indeterminate G.DE21 Observation" +define "Indeterminate G.DE21 Condition": + Elements."Indeterminate G.DE21 Condition" C + where C.prevalenceInterval() starts on or before Today +define "Indeterminate G.DE21 Observation": + Elements."Indeterminate G.DE21 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Indeterminate G.DE21 */ + +/* +@dataElement: HIV.G.DE43 - HCV test result +@activity: HIV.D20 Diagnostics +@description: Hepatitis C virus test result (HCV antibody, HCV RNA or HCV core antigen) +*/ +// TODO: Replace placeholder with relevant CQL logic +define "HCV test result G.DE43": + exists "HCV test result G.DE43 Observation" +define "HCV test result G.DE43 Observation": + Elements."HCV test result G.DE43 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of HCV test result G.DE43 */ + +/* +@dataElement: HIV.G.DE44 - Positive +@activity: HIV.D20 Diagnostics +@description: HCV test result was positive +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Positive G.DE44": + exists "Positive G.DE44 Condition" + or exists "Positive G.DE44 Observation" +define "Positive G.DE44 Condition": + Elements."Positive G.DE44 Condition" C + where C.prevalenceInterval() starts on or before Today +define "Positive G.DE44 Observation": + Elements."Positive G.DE44 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Positive G.DE44 */ + +/* +@dataElement: HIV.G.DE45 - Negative +@activity: HIV.D20 Diagnostics +@description: HCV test result was negative +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Negative G.DE45": + exists "Negative G.DE45 Condition" + or exists "Negative G.DE45 Observation" +define "Negative G.DE45 Condition": + Elements."Negative G.DE45 Condition" C + where C.prevalenceInterval() starts on or before Today +define "Negative G.DE45 Observation": + Elements."Negative G.DE45 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Negative G.DE45 */ + +/* +@dataElement: HIV.G.DE46 - Indeterminate +@activity: HIV.D20 Diagnostics +@description: HCV test result was indeterminate +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Indeterminate G.DE46": + exists "Indeterminate G.DE46 Condition" + or exists "Indeterminate G.DE46 Observation" +define "Indeterminate G.DE46 Condition": + Elements."Indeterminate G.DE46 Condition" C + where C.prevalenceInterval() starts on or before Today +define "Indeterminate G.DE46 Observation": + Elements."Indeterminate G.DE46 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Indeterminate G.DE46 */ + +/* +@dataElement: HIV.G.DE70 - Syphilis test result +@activity: HIV.D20 Diagnostics +@description: Result from syphilis test +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Syphilis test result G.DE70": + exists "Syphilis test result G.DE70 Observation" +define "Syphilis test result G.DE70 Observation": + Elements."Syphilis test result G.DE70 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Syphilis test result G.DE70 */ + +/* +@dataElement: HIV.G.DE71 - Positive +@activity: HIV.D20 Diagnostics +@description: Test result is positive for syphilis +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Positive G.DE71": + exists "Positive G.DE71 Condition" + or exists "Positive G.DE71 Observation" +define "Positive G.DE71 Condition": + Elements."Positive G.DE71 Condition" C + where C.prevalenceInterval() starts on or before Today +define "Positive G.DE71 Observation": + Elements."Positive G.DE71 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Positive G.DE71 */ + +/* +@dataElement: HIV.G.DE72 - Negative +@activity: HIV.D20 Diagnostics +@description: Test result is negative for syphilis +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Negative G.DE72": + exists "Negative G.DE72 Condition" + or exists "Negative G.DE72 Observation" +define "Negative G.DE72 Condition": + Elements."Negative G.DE72 Condition" C + where C.prevalenceInterval() starts on or before Today +define "Negative G.DE72 Observation": + Elements."Negative G.DE72 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Negative G.DE72 */ + +/* +@dataElement: HIV.G.DE73 - Inconclusive +@activity: HIV.D20 Diagnostics +@description: Test result is inconclusive +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Inconclusive G.DE73": + exists "Inconclusive G.DE73 Condition" + or exists "Inconclusive G.DE73 Observation" +define "Inconclusive G.DE73 Condition": + Elements."Inconclusive G.DE73 Condition" C + where C.prevalenceInterval() starts on or before Today +define "Inconclusive G.DE73 Observation": + Elements."Inconclusive G.DE73 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Inconclusive G.DE73 */ + /* @dataElement: HIV.H.DE34 - HIV status of partner or contact @activity: HIV.B6 Capture or update client history @@ -8460,13 +10140,7 @@ define "HIV status of partner or contact Observation": */ // TODO: Replace placeholder with relevant CQL logic define "Already knew positive": - exists "Already knew positive Condition" - or exists "Already knew positive Observation" -define "Already knew positive Condition": - Elements."Already knew positive Condition" C - where C.prevalenceInterval() starts on or before Today -define "Already knew positive Observation": - Elements."Already knew positive Observation" O + Elements."Already knew positive" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today /* End of Already knew positive */ @@ -8478,13 +10152,7 @@ define "Already knew positive Observation": */ // TODO: Replace placeholder with relevant CQL logic define "Newly diagnosed": - exists "Newly diagnosed Condition" - or exists "Newly diagnosed Observation" -define "Newly diagnosed Condition": - Elements."Newly diagnosed Condition" C - where C.prevalenceInterval() starts on or before Today -define "Newly diagnosed Observation": - Elements."Newly diagnosed Observation" O + Elements."Newly diagnosed" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today /* End of Newly diagnosed */ @@ -8495,18 +10163,49 @@ define "Newly diagnosed Observation": @description: The partner or contact of the index case is newly diagnosed is HIV-negative */ // TODO: Replace placeholder with relevant CQL logic -define "Negative H.DE37": - exists "Negative H.DE37 Condition" - or exists "Negative H.DE37 Observation" -define "Negative H.DE37 Condition": - Elements."Negative H.DE37 Condition" C - where C.prevalenceInterval() starts on or before Today define "Negative H.DE37 Observation": - Elements."Negative H.DE37 Observation" O + Elements."Negative H.DE37" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today /* End of Negative H.DE37 */ +/* +@dataElement: HIV.H.DE47 - On ART +@activity: HIV.H3 Record outreach and result +@description: Client is currently taking ART +*/ +// TODO: Replace placeholder with relevant CQL logic +define "On ART H.DE47 Observation": + Elements."On ART H.DE47" MS + where MS.context.references(EncounterId) + or MS.effective.toInterval() starts on or before Today +/* End of On ART H.DE47 */ + +/* +@dataElement: HIV.PRV.DE1 - At elevated risk for HIV acquisition +@activity: HIV.B6 Capture or update client history +@description: Client is at elevated risk for HIV acquisition, defined according to country/programme context +*/ +define "At elevated risk for HIV acquisition PRV.DE1 Observation": + Elements."At elevated risk for HIV acquisition PRV.DE1" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of At elevated risk for HIV acquisition PRV.DE1 */ + +/* +@dataElement: HIV.SRV.DE2 - HIV test result +@activity: HIV.B7 Test for HIV using testing algorithm +@description: The result from HIV testing after applying the testing algorithm +*/ +// TODO: Replace placeholder with relevant CQL logic +define "HIV test result SRV.DE2": + exists "HIV test result SRV.DE2 Observation" +define "HIV test result SRV.DE2 Observation": + Elements."HIV test result SRV.DE2 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of HIV test result SRV.DE2 */ + /* @dataElement: HIV.SRV.DE5 - HIV clinical stage @activity: HIV.D8 Capture or update client history @@ -8521,6 +10220,35 @@ define "HIV clinical stage SRV.DE5 Observation": or O.effective.toInterval() starts on or before Today /* End of HIV clinical stage SRV.DE5 */ +/* +@dataElement: HIV.SRV.DE6 - ART start date +@activity: HIV.B8 Provide post-test counselling +@description: The date on which the client started or restarted antiretroviral therapy (ART) +*/ +// TODO: Replace placeholder with relevant CQL logic +define "ART start date SRV.DE6": + Elements."ART start date SRV.DE6" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +define "ART start date SRV.DE6 Value": + "ART start date SRV.DE6" O + return O.value +/* End of ART start date SRV.DE6 */ + +/* +@dataElement: HIV.SRV.DE7 - Currently pregnant +@activity: HIV.B6 Capture or update client history +@description: Client is currently pregnant +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Currently pregnant SRV.DE7": + exists "Currently pregnant SRV.DE7 Observation" +define "Currently pregnant SRV.DE7 Observation": + Elements."Currently pregnant SRV.DE7 Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +/* End of Currently pregnant SRV.DE7 */ + /* @dataElement: HIV.SRV.DE8 - CD4 count @activity: HIV.D20 Diagnostics @@ -8536,6 +10264,66 @@ define "CD4 count SRV.DE8 Value": return O.value /* End of CD4 count SRV.DE8 */ +/* +@dataElement: HIV.SRV.DE12 - Date of viral load sample collection +@activity: HIV.D10 Counsel returning client +@description: Date and time when the sample was collected to test the client's HIV viral load +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Date of viral load sample collection SRV.DE12": + Elements."Date of viral load sample collection SRV.DE12" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +define "Date of viral load sample collection SRV.DE12 Value": + "Date of viral load sample collection SRV.DE12" O + return O.value +/* End of Date of viral load sample collection SRV.DE12 */ + +/* +@dataElement: HIV.SRV.DE13 - Viral load test result +@activity: HIV.D20 Diagnostics +@description: Result from the viral load test in number of copies/mL +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Viral load test result SRV.DE13": + Elements."Viral load test result SRV.DE13" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +define "Viral load test result SRV.DE13 Value": + "Viral load test result SRV.DE13" O + return O.value +/* End of Viral load test result SRV.DE13 */ + +/* +@dataElement: HIV.SRV.DE15 - Visit date +@activity: HIV.A2 Gather client details +@description: The date and time of the client's visit +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Visit date SRV.DE15": + Elements."Visit date SRV.DE15" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +define "Visit date SRV.DE15 Value": + "Visit date SRV.DE15" O + return O.value +/* End of Visit date SRV.DE15 */ + +/* +@dataElement: HIV.SRV.DE18 - ANC contact date +@activity: HIV.E1 Capture or update mother's history +@description: The date and time of the client's ANC contact (in the ANC DAK this is called 'Contact date') +*/ +// TODO: Replace placeholder with relevant CQL logic +define "ANC contact date SRV.DE18": + Elements."ANC contact date SRV.DE18" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +define "ANC contact date SRV.DE18 Value": + "ANC contact date SRV.DE18" O + return O.value +/* End of ANC contact date SRV.DE18 */ + /* @dataElement: HIV.SRV.DE21 - Test result of HIV assay 1 @activity: HIV.E4 Test mother for HIV using testing algorithm diff --git a/input/cql/HIVIND21Logic.cql b/input/cql/HIVIND21Logic.cql index b0715edf785..9f3db38b7e8 100644 --- a/input/cql/HIVIND21Logic.cql +++ b/input/cql/HIVIND21Logic.cql @@ -80,6 +80,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom +include HIVElements called HE // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -101,7 +102,7 @@ define "numerator": where (O.issued before end of "Measurement Period" and O.issued after start of "Measurement Period") )) - and exists(HIC."HIV Treatment Active" H + and exists(HE."On ART H.DE47" H where H.effective starts before end of "Measurement Period" and (H.effective ends after start of "Measurement Period" or end of H.effective ~ null) diff --git a/input/cql/HIVIND24Logic.cql b/input/cql/HIVIND24Logic.cql index b3d0fd41b24..a59b8c5c9b7 100644 --- a/input/cql/HIVIND24Logic.cql +++ b/input/cql/HIVIND24Logic.cql @@ -85,6 +85,8 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -101,51 +103,6 @@ define "Initial Population": true -define "Negative Tests within Measurement Period": -HIC."HIV Negative Observation" O - with HIC."Client is at elevated risk for HIV acquisition" HIV - such that O.hasMember.references(HIV) - and O.issued after start of "Measurement Period" - and O.issued before end of "Measurement Period" -Sort by O.issued - -define "First Negative Test within Measurement Period": -( First("Negative Tests within Measurement Period")) - -define PReP_intervention: -"PReP Intervention" P - where P.effective starts before ("First Negative Test within Measurement Period" + "Intervention Interval") - and P.effective starts after ("First Negative Test within Measurement Period") - -define "OAMT_intervention": - [EpisodeOfCare] EOC - where exists(EOC.type T where T ~ HC."OAMT") - and (exists ( - EOC.statusHistory H - where H.period starts before ("First Negative Test within Measurement Period" + "Intervention Interval") - and H.period starts after ("First Negative Test within Measurement Period") - ) - or ( - EOC.period starts before ("First Negative Test within Measurement Period" + "Intervention Interval") - and EOC.period starts after ("First Negative Test within Measurement Period") - ) - ) - -define NSP_intervention: - HIC."Needle Syringe Dispensed" DUS - where DUS.timing starts before ("First Negative Test within Measurement Period" + "Intervention Interval") - and DUS.timing starts after ("First Negative Test within Measurement Period") - -define STI_intervention: - HIC.STI_testing STI - where STI.performed starts before ("First Negative Test within Measurement Period" + "Intervention Interval") - and STI.performed starts after ("First Negative Test within Measurement Period") - -define VMMC_intervention: - HIC."VMMC_done" VM - where VM.performed starts before ("First Negative Test within Measurement Period" + "Intervention Interval") - and VM.performed starts after ("First Negative Test within Measurement Period") - /** * Numerator * @@ -154,16 +111,28 @@ define VMMC_intervention: */ define "Numerator": - exists(PReP_intervention - ) - or exists(OAMT_intervention - ) - or exists(NSP_intervention - ) - or exists(STI_intervention - ) - or exists(VMMC_intervention - ) + (exists(HE."PrEP service" prep + where prep.effective.toInterval() starts before (start of HIC."First Negative Test within Measurement Period".effective.toInterval() + "Intervention Interval") + and prep.effective.toInterval() starts after (start of HIC."First Negative Test within Measurement Period".effective.toInterval()) + ) + or + exists(HE."OAMT" t where t starts before (start of HIC."First Negative Test within Measurement Period".effective.toInterval() + "Intervention Interval") + and t starts after (start of HIC."First Negative Test within Measurement Period".effective.toInterval())) + or + exists(HE."NSP" DUS where DUS.timing.toInterval() starts before (start of HIC."First Negative Test within Measurement Period".effective.toInterval() + "Intervention Interval") + and DUS.timing.toInterval() starts after (start of HIC."First Negative Test within Measurement Period".effective.toInterval())) + or + exists(HE."STI services" STI where STI.performed.toInterval() starts before (start of HIC."First Negative Test within Measurement Period".effective.toInterval() + "Intervention Interval") + and STI.performed.toInterval() starts after (start of HIC."First Negative Test within Measurement Period".effective.toInterval())) + or + exists(HE."VMMC" V where V.performed.toInterval() starts before (start of HIC."First Negative Test within Measurement Period".effective.toInterval() + "Intervention Interval") + and V.performed.toInterval() starts after (start of HIC."First Negative Test within Measurement Period".effective.toInterval())) + or + exists(HE."Other PRV.DE8" O + where O.effective.toInterval() starts before (start of HIC."First Negative Test within Measurement Period".effective.toInterval() + "Intervention Interval") + and O.effective.toInterval() starts after (start of HIC."First Negative Test within Measurement Period".effective.toInterval()))) + and + HIE."At elevated risk for HIV acquisition B.DE225" @@ -176,6 +145,7 @@ define "Numerator": define "Denominator": exists(HIC."Negative Tests within Measurement Period") + and HIE."At elevated risk for HIV acquisition B.DE225" /* end Populations */ @@ -205,5 +175,4 @@ define "Stratification": + ':' + HIC."By Age Stratifier 2" + ':' + HIC."By Geographic Region Stratifier" + Combine(HIC.patientGroups, ':') -//need to fix -//+ Combine(HIC."HIV prevention intervention", ':') \ No newline at end of file ++ Combine(HIC."HIV prevention intervention", ':') \ No newline at end of file diff --git a/input/cql/HIVIND25Logic.cql b/input/cql/HIVIND25Logic.cql index ca631d33099..64444d3003c 100644 --- a/input/cql/HIVIND25Logic.cql +++ b/input/cql/HIVIND25Logic.cql @@ -75,6 +75,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom +include HIVElements called HE // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -97,23 +98,7 @@ define "Initial Population": * Calculation: COUNT of clients with "At elevated risk for HIV acquisition"=True AND with a second "HIV test date" within fixed period after "HIV test date" in the reporting period with "HIV test result"='HIV-negative' */ -define "Negative Tests within Measurement Period": -HIC."HIV Negative Observation" O - with HIC."Client is at elevated risk for HIV acquisition" HIV - such that O.hasMember.references(HIV) - where O.issued.value in "Measurement Period" - sort by issued -define "First Negative Test within Measurement Period": - (First("Negative Tests within Measurement Period")) - -define "Negative Tests after First Negative Test": -HIC."HIV Negative Observation" O - with HIC."Client is at elevated risk for HIV acquisition" HIV - such that O.hasMember.references(HIV) - where O.issued after "First Negative Test within Measurement Period".issued - and O.issued before ("First Negative Test within Measurement Period".issued + "Testing Interval") - sort by issued define "Numerator": @@ -150,9 +135,6 @@ define "Geographic Region Stratifier": define "patientGroups Stratifier": HIC."patientGroups" -define "HIV status of partner or contact": - HIC."HIV status of partner or contact" - define "Stratification": HIC."By Administrative Gender Stratifier".code + ':' + HIC."HIV status of partner or contact".code diff --git a/input/cql/HIVIND27Logic.cql b/input/cql/HIVIND27Logic.cql index 0d8e0939465..8342d4a1fbe 100644 --- a/input/cql/HIVIND27Logic.cql +++ b/input/cql/HIVIND27Logic.cql @@ -69,6 +69,8 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -81,19 +83,11 @@ context Patient */ define "Measure Population": - (exists(HIC."HIV Positive Condition" C - where C.onset before end of "Measurement Period") - or - exists(HIC."HIV Positive Observation" O - where (O.issued before end of "Measurement Period") - )) - and exists(HIC."HIV Treatment Active" H - where H.effective starts before end of "Measurement Period" - and (H.effective ends after start of "Measurement Period") - ) - and not HIC."Patient Deceased before end of Measurement Period" - and not HIC."Transfer Out at Facility during the measurement period" - and not HIC."Lost to Follow Up during the measurement period" + HIE."HIV-positive B.DE116" + and HIE."On ART H.DE47" + and not HIE."Death documented" + and not HIE."Transferred out" + and not HIE."Lost to follow-up" /* * As defined by Member States diff --git a/input/cql/HIVIND28Logic.cql b/input/cql/HIVIND28Logic.cql index faa388be364..6628066bff1 100644 --- a/input/cql/HIVIND28Logic.cql +++ b/input/cql/HIVIND28Logic.cql @@ -78,8 +78,9 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -93,35 +94,24 @@ define "Initial Population": define "numerator": +//MINUS | COUNT of clients with "HIV status"='HIV-positive' AND "On ART"=True on the reporting period end date ( - HIC."Patient Deceased before end of Measurement Period" - and HIC."Transfer Out at Facility during the measurement period" - and HIC."Lost to Follow Up during the measurement period" + HIE."Death documented" + or HIE."Transferred out" + or HIE."Lost to follow-up" ) - and (( + and ((( //saying needs to not be counted this measurement period but should have counted this period or last period - (exists(HIC."HIV Positive Condition" C - where C.onset before end of "Measurement Period") - or - exists(HIC."HIV Positive Observation" O - where (O.issued before end of "Measurement Period") - )) - and exists(HIC."HIV Treatment Active" H - where H.effective starts before end of "Measurement Period" - and H.effective ends after start of "Measurement Period" + HIE."HIV-positive B.DE116" + and HIE."On ART H.DE47" ) ) or ( //Accounts for end of last period - (exists(HIC."HIV Positive Condition" C - where C.onset before (end of "Measurement Period" - duration in days of "Measurement Period")) - or - exists(HIC."HIV Positive Observation" O - where (O.issued before end of "Measurement Period" - duration in days of "Measurement Period") - )) - and exists(HIC."HIV Treatment Active" H - where H.effective starts before (end of "Measurement Period" - duration in days of "Measurement Period") - and H.effective ends after (start of "Measurement Period" - duration in days of "Measurement Period") + exists(HE."HIV-positive B.DE116" HIV where HIV starts before (end of "Measurement Period" - duration in days of "Measurement Period")) + and exists(HE."On ART H.DE47" ART + where ART.effective starts before (end of "Measurement Period" - duration in days of "Measurement Period") + and ART.effective ends after (start of "Measurement Period" - duration in days of "Measurement Period") ) ) ) @@ -129,30 +119,18 @@ define "numerator": define "denominator": - (( + ((( //saying needs to not be counted this measurement period but should have counted this period or last period - (exists(HIC."HIV Positive Condition" C - where C.onset before end of "Measurement Period") - or - exists(HIC."HIV Positive Observation" O - where (O.issued before end of "Measurement Period") - )) - and exists(HIC."HIV Treatment Active" H - where H.effective starts before end of "Measurement Period" - and H.effective ends after start of "Measurement Period" + HIE."HIV-positive B.DE116" + and HIE."On ART H.DE47" ) ) or ( //Accounts for end of last period - (exists(HIC."HIV Positive Condition" C - where C.onset before (end of "Measurement Period" - duration in days of "Measurement Period")) - or - exists(HIC."HIV Positive Observation" O - where (O.issued before end of "Measurement Period" - duration in days of "Measurement Period") - )) - and exists(HIC."HIV Treatment Active" H - where H.effective starts before (end of "Measurement Period" - duration in days of "Measurement Period") - and H.effective ends after (start of "Measurement Period" - duration in days of "Measurement Period") + exists(HE."HIV-positive B.DE116" HIV where HIV starts before (end of "Measurement Period" - duration in days of "Measurement Period")) + and exists(HE."On ART H.DE47" ART + where ART.effective starts before (end of "Measurement Period" - duration in days of "Measurement Period") + and ART.effective ends after (start of "Measurement Period" - duration in days of "Measurement Period") ) ) ) @@ -175,9 +153,12 @@ define "Geographic Region Stratifier": define "patientGroups Stratifier": HIC."patientGroups" -//NEED TO FIGURE OUT Treatment outcome category (died, stopped treatment, lost to follow-up) +define "Treatment outcome category Stratifier": + HIC."Treatment outcome category" define "Stratification": HIC."By Administrative Gender Stratifier".code + ':' + HIC."By Age Stratifier" -+ ':' + HIC."By Geographic Region Stratifier" \ No newline at end of file ++ ':' + HIC."By Geographic Region Stratifier" ++ Combine(HIC.patientGroups, ':') ++ Combine(HIC."Treatment outcome category", ':') \ No newline at end of file diff --git a/input/cql/HIVIND29Logic.cql b/input/cql/HIVIND29Logic.cql index 3f9d1d11a69..3a7daeb24d9 100644 --- a/input/cql/HIVIND29Logic.cql +++ b/input/cql/HIVIND29Logic.cql @@ -86,8 +86,9 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -110,7 +111,17 @@ define "Initial Population": */ define "Numerator": - true + HIE."HIV-positive B.DE116" + and HIE."On ART H.DE47" + and + (months between (end of "Measurement Period") and (date from start of HIC."First On ART".effective.toInterval()) > 6 months) + and + exists( + HIE."Viral load test result D.DE387" VL + with HIC."routine viral load sample collection" P + such that VL.partOf.references(P) and P.performed.toInterval() during "Measurement Period" + where VL.value < 1000 'copies/ml' + ) /** @@ -121,8 +132,39 @@ define "Numerator": */ define "Denominator": - true + HIE."HIV-positive B.DE116" + and HIE."On ART H.DE47" + and + (months between (end of "Measurement Period") and (date from start of HIC."First On ART".effective.toInterval()) > 6 months) + and + exists( + HIE."Viral load test result D.DE387" VL + with HIC."routine viral load sample collection" P + such that VL.partOf.references(P) and P.performed.toInterval() during "Measurement Period" + ) /* end Populations */ +/* + * Disaggregators + */ + +define "Administrative Gender Stratifier": + HIC."By Administrative Gender Stratifier" + +define "Age Stratifier": + HIC."By Age Stratifier" + +define "Geographic Region Stratifier": + HIC."By Geographic Region Stratifier" + +define "patientGroups Stratifier": + HIC."patientGroups" + + +define "Stratification": + HIC."By Administrative Gender Stratifier".code + + ':' + HIC."By Age Stratifier" ++ ':' + HIC."By Geographic Region Stratifier" ++ Combine(HIC.patientGroups, ':') \ No newline at end of file diff --git a/input/cql/HIVIND30Logic.cql b/input/cql/HIVIND30Logic.cql index 0901a3d02a3..75085e6a32f 100644 --- a/input/cql/HIVIND30Logic.cql +++ b/input/cql/HIVIND30Logic.cql @@ -74,22 +74,18 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] context Patient - define "Measure Population": - (exists(HIC."HIV Positive Condition" C - where C.onset before end of "Measurement Period") - or - exists(HIC."HIV Positive Observation" O - where (O.issued before end of "Measurement Period") - )) and - exists(HIC."HIV Treatment Active" H - where H.effective starts during "Measurement Period") + +define "Measure Population": + HIE."HIV-positive B.DE116" + and (date from start of HIC."First On ART".effective.toInterval() during "Measurement Period") /* * As defined by Member States @@ -124,4 +120,5 @@ define "patientGroups Stratifier": define "Stratification": HIC."By Administrative Gender Stratifier".code + ':' + HIC."By Age Stratifier" -+ ':' + HIC."By Geographic Region Stratifier" \ No newline at end of file ++ ':' + HIC."By Geographic Region Stratifier" ++ Combine(HIC.patientGroups, ':') \ No newline at end of file diff --git a/input/cql/HIVIND31Logic.cql b/input/cql/HIVIND31Logic.cql index fdccf516746..24383c99f62 100644 --- a/input/cql/HIVIND31Logic.cql +++ b/input/cql/HIVIND31Logic.cql @@ -78,8 +78,9 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -102,7 +103,11 @@ define "Initial Population": */ define "Numerator": - true + HIE."HIV-positive B.DE116" + and (date from start of HIC."First On ART".effective.toInterval() during "Measurement Period") + and exists(HE."Baseline CD4 count SRV.DE3" O + where O.effective.toInterval() during "Measurement Period" + and O.value < 200 'cells/mm^3') /** @@ -113,8 +118,33 @@ define "Numerator": */ define "Denominator": - true + HIE."HIV-positive B.DE116" + and (date from start of HIC."First On ART".effective.toInterval() during "Measurement Period") + and exists(HE."Baseline CD4 count SRV.DE3" O + where O.effective.toInterval() during "Measurement Period") /* end Populations */ + +/* + * Disaggregators + */ + +define "Administrative Gender Stratifier": + HIC."By Administrative Gender Stratifier" + +define "Age Stratifier": + HIC."By Age Stratifier" + +define "Geographic Region Stratifier": + HIC."By Geographic Region Stratifier" + +define "patientGroups Stratifier": + HIC."patientGroups" + +define "Stratification": + HIC."By Administrative Gender Stratifier".code + + ':' + HIC."By Age Stratifier" ++ ':' + HIC."By Geographic Region Stratifier" ++ Combine(HIC.patientGroups, ':') \ No newline at end of file diff --git a/input/cql/HIVIND32Logic.cql b/input/cql/HIVIND32Logic.cql index 849cfd8f633..a8b921039c9 100644 --- a/input/cql/HIVIND32Logic.cql +++ b/input/cql/HIVIND32Logic.cql @@ -83,8 +83,9 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -107,7 +108,17 @@ define "Initial Population": */ define "Numerator": - true + HIE."HIV-positive B.DE116" + and HIE."On ART H.DE47" + and + (months between (end of "Measurement Period") and (date from start of HIC."First On ART".effective.toInterval()) > 6 months) + and + exists( + HE."Date viral load test results received by client D.DE193" VL + with HIC."routine viral load sample collection" P + such that VL.partOf.references(P) + where VL.issued.toInterval() during "Measurement Period" + ) /** * Numerator Exclusions @@ -116,7 +127,9 @@ define "Numerator": */ define "Numerator Exclusions": - false + HIE."Death documented" + and HIE."Transferred out" + and HIE."Lost to follow-up" /** * Denominator @@ -126,7 +139,10 @@ define "Numerator Exclusions": */ define "Denominator": - true + HIE."HIV-positive B.DE116" + and HIE."On ART H.DE47" + and + (months between (end of "Measurement Period") and (date from start of HIC."First On ART".effective.toInterval()) > 6 months) /** * Denominator Exclusions @@ -135,7 +151,30 @@ define "Denominator": */ define "Denominator Exclusions": - false + HIE."Death documented" + and HIE."Transferred out" + and HIE."Lost to follow-up" /* end Populations */ +/* + * Disaggregators + */ + +define "Administrative Gender Stratifier": + HIC."By Administrative Gender Stratifier" + +define "Age Stratifier": + HIC."By Age Stratifier" + +define "Geographic Region Stratifier": + HIC."By Geographic Region Stratifier" + +define "patientGroups Stratifier": + HIC."patientGroups" + +define "Stratification": + HIC."By Administrative Gender Stratifier".code + + ':' + HIC."By Age Stratifier" ++ ':' + HIC."By Geographic Region Stratifier" ++ Combine(HIC.patientGroups, ':') diff --git a/input/cql/HIVIND33Logic.cql b/input/cql/HIVIND33Logic.cql index 9f7cd7f230b..a6ceb8ecaf1 100644 --- a/input/cql/HIVIND33Logic.cql +++ b/input/cql/HIVIND33Logic.cql @@ -77,8 +77,9 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -101,7 +102,10 @@ define "Initial Population": */ define "Numerator": - true + HIE."HIV-positive B.DE116" + and HIE."On ART H.DE47" + and (date from start of HIC."First On ART".effective.toInterval() during "Measurement Period") + and (months between (start of First(HIC."Viral load tests received after ART intitiation").issued.toInterval()) and (date from start of HIC."First On ART".effective.toInterval()) < 6 months) /** @@ -112,8 +116,31 @@ define "Numerator": */ define "Denominator": - true + HIE."HIV-positive B.DE116" + and HIE."On ART H.DE47" + and (date from start of HIC."First On ART".effective.toInterval() during "Measurement Period") /* end Populations */ +/* + * Disaggregators + */ + +define "Administrative Gender Stratifier": + HIC."By Administrative Gender Stratifier" + +define "Age Stratifier": + HIC."By Age Stratifier" + +define "Geographic Region Stratifier": + HIC."By Geographic Region Stratifier" + +define "patientGroups Stratifier": + HIC."patientGroups" + +define "Stratification": + HIC."By Administrative Gender Stratifier".code + + ':' + HIC."By Age Stratifier" ++ ':' + HIC."By Geographic Region Stratifier" ++ Combine(HIC.patientGroups, ':') \ No newline at end of file diff --git a/input/cql/HIVIND34Logic.cql b/input/cql/HIVIND34Logic.cql index ed3f6226e14..67d34ccb40e 100644 --- a/input/cql/HIVIND34Logic.cql +++ b/input/cql/HIVIND34Logic.cql @@ -80,8 +80,9 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -104,7 +105,18 @@ define "Initial Population": */ define "Numerator": - true + HIE."HIV-positive B.DE116" + and HIE."On ART H.DE47" + and + exists(HIC."Elevated Viral load test during Measurement Period") + and + exists( + HIC."viral load sample collection" VL + where (months between (start of First(HIC."Elevated Viral load test during Measurement Period").issued.toInterval()) and (date from start of VL.performed.toInterval() ) < 3 months) + + + ) + /** @@ -115,8 +127,36 @@ define "Numerator": */ define "Denominator": - true + HIE."HIV-positive B.DE116" + and HIE."On ART H.DE47" + and + exists(HIC."Elevated Viral load test during Measurement Period") /* end Populations */ +/* + * Disaggregators + */ + +define "Administrative Gender Stratifier": + HIC."By Administrative Gender Stratifier" + +define "Age Stratifier": + HIC."By Age Stratifier" + +define "Geographic Region Stratifier": + HIC."By Geographic Region Stratifier" + +define "patientGroups Stratifier": + HIC."patientGroups" + +define "Stratification": + HIC."By Administrative Gender Stratifier".code + + ':' + HIC."By Age Stratifier" ++ ':' + HIC."By Geographic Region Stratifier" ++ Combine(HIC.patientGroups, ':') + +//Need to add +// * • ART regimen + //* • Receipt of enhanced adherence counselling (yes/no/unknown) \ No newline at end of file diff --git a/input/cql/HIVIND35Logic.cql b/input/cql/HIVIND35Logic.cql index c7632cc66ac..b37a0db2311 100644 --- a/input/cql/HIVIND35Logic.cql +++ b/input/cql/HIVIND35Logic.cql @@ -123,8 +123,9 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -147,8 +148,49 @@ define "Initial Population": */ define "Numerator": - true + (HIE."HIV-positive B.DE116" + and HIE."Toxicity/side effects H.DE75") + and (( + HIE."HIV-positive B.DE116" + and HIE."On ART H.DE47" + and + (exists(HE."New regimen after switch to second-line regimen" R + with HE."Toxicity/side effects H.DE75" T + such that R.partOf.references(T) + where R.effective.toInterval() during "Measurement Period" + ) + or + ( + exists(HE."New regimen after switch to third-line regimen" R + with HE."Toxicity/side effects H.DE75" T + such that R.partOf.references(T) + where R.effective.toInterval() during "Measurement Period" + ) + ) + ) + ) + or + ( + HIE."HIV-positive B.DE116" + and HIE."On ART H.DE47" + and + (exists(HE."New regimen after substitution within second-line regimen" R + with HE."Toxicity/side effects H.DE75" T + such that R.partOf.references(T) + where R.effective.toInterval() during "Measurement Period" + ) + or + ( + exists(HE."New regimen after substitution within third-line regimen" R + with HE."Toxicity/side effects H.DE75" T + such that R.partOf.references(T) + where R.effective.toInterval() during "Measurement Period" + ) + ) + ) + ) + ) /** * Denominator @@ -158,8 +200,38 @@ define "Numerator": */ define "Denominator": - true + HIE."HIV-positive B.DE116" + and HIE."On ART H.DE47" /* end Populations */ + +/* + * Disaggregators + */ + +define "Administrative Gender Stratifier": + HIC."By Administrative Gender Stratifier" + +define "Age Stratifier": + HIC."By Age Stratifier" + +define "Geographic Region Stratifier": + HIC."By Geographic Region Stratifier" + +define "patientGroups Stratifier": + HIC."patientGroups" + +define "Stratification": + HIC."By Administrative Gender Stratifier".code + + ':' + HIC."By Age Stratifier" ++ ':' + HIC."By Geographic Region Stratifier" ++ Combine(HIC.patientGroups, ':') + +/* +need to add +* • ART regimen + * • Pregnancy status + * • Type of toxicity (gastrointestinal, skin, peripheral neuropathy, central nervous system, weight gain, hepatic dysfunction, haematological, fatigue, headache, bone dysfunction, metabolic, kidney dysfunction) +*/ \ No newline at end of file diff --git a/input/cql/HIVIndicatorElements.cql b/input/cql/HIVIndicatorElements.cql index cf521947532..dd788582cc5 100644 --- a/input/cql/HIVIndicatorElements.cql +++ b/input/cql/HIVIndicatorElements.cql @@ -2,7 +2,7 @@ library HIVIndicatorElements using FHIR version '4.0.1' -include fhir.cqf.common.FHIRCommon called FC +//include fhir.cqf.common.FHIRCommon called FC include FHIRHelpers version '4.0.1' include WHOConcepts @@ -10,7 +10,6 @@ include WHOCommon called WC include WHOElements called WE include HIVConcepts called Concepts -include HIVCommon called Common include HIVElements called Elements parameter "Measurement Period" Interval default Interval[@2024-01-01, @2024-12-30] @@ -25,6 +24,139 @@ context Patient // Entries based on DAK Data Dictionary for Data Elements marked as used // in at least one Decision Support Table or Aggregate Indicator +/* +@dataElement: HIV.A.DE3 - Visit date +@activity: HIV.A2 Gather client details +@description: The date and time of the client's visit +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Visit date A.DE3": + Elements."Visit date A.DE3" O + where O.effective.toInterval() during "Measurement Period" +define "Visit date A.DE3 Value": + "Visit date A.DE3" O + return O.value +/* End of Visit date A.DE3 */ + +/* +@dataElement: HIV.A.DE17 - Age +@activity: HIV.A6.1 Review sociodemographic data with client | HIV.A5 Create new client record +@description: Calculated age (number of years) of the client based on date of birth +*/ +define "Age In Years": + AgeInYearsAt(start of "Measurement Period") + +define "Age In Months": + AgeInMonthsAt(start of "Measurement Period") + +define "Age In Days": + AgeInDaysAt(start of "Measurement Period") + +/* End of Age */ + +/* +@dataElement: HIV.A.DE18 - Gender +@activity: HIV.A6.1 Review sociodemographic data with client | HIV.A5 Create new client record +@description: Gender of the client +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Gender": + exists "Gender Observation" +define "Gender Observation": + Elements."Gender Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Gender */ + +/* +@dataElement: HIV.A.DE19 - Female +@activity: HIV.A6.1 Review sociodemographic data with client | HIV.A5 Create new client record +@description: Client identifies as female +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Female": + exists "Female Condition" + or exists "Female Observation" +define "Female Condition": + Elements."Female Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Female Observation": + Elements."Female Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Female */ + +/* +@dataElement: HIV.A.DE20 - Male +@activity: HIV.A6.1 Review sociodemographic data with client | HIV.A5 Create new client record +@description: Client identifies as male +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Male": + exists "Male Condition" + or exists "Male Observation" +define "Male Condition": + Elements."Male Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Male Observation": + Elements."Male Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Male */ + +/* +@dataElement: HIV.A.DE21 - Transgender male +@activity: HIV.A6.1 Review sociodemographic data with client | HIV.A5 Create new client record +@description: Client identifies as transgender male +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Transgender male": + exists "Transgender male Condition" + or exists "Transgender male Observation" +define "Transgender male Condition": + Elements."Transgender male Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Transgender male Observation": + Elements."Transgender male Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Transgender male */ + +/* +@dataElement: HIV.A.DE22 - Transgender female +@activity: HIV.A6.1 Review sociodemographic data with client | HIV.A5 Create new client record +@description: Client identifies as transgender female +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Transgender female": + exists "Transgender female Condition" + or exists "Transgender female Observation" +define "Transgender female Condition": + Elements."Transgender female Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Transgender female Observation": + Elements."Transgender female Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Transgender female */ + +/* +@dataElement: HIV.A.DE23 - Other +@activity: HIV.A6.1 Review sociodemographic data with client | HIV.A5 Create new client record +@description: Additional category +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Other A.DE23": + exists "Other A.DE23 Condition" + or exists "Other A.DE23 Observation" +define "Other A.DE23 Condition": + Elements."Other A.DE23 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Other A.DE23 Observation": + Elements."Other A.DE23 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Other A.DE23 */ + /* @dataElement: HIV.B.DE5 - Referred through partner services @activity: HIV.B1 Determine reason for visit @@ -208,6 +340,19 @@ define "Facility-level testing Observation": where O.effective.toInterval() during "Measurement Period" /* End of Facility-level testing */ +/* +@dataElement: HIV.B.DE29 - Currently pregnant +@activity: HIV.B6 Capture or update client history +@description: Client is currently pregnant +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Currently pregnant B.DE29": + exists "Currently pregnant B.DE29 Observation" +define "Currently pregnant B.DE29 Observation": + Elements."Currently pregnant B.DE29 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Currently pregnant B.DE29 */ + /* @dataElement: HIV.B.DE32 - Breastfeeding @activity: HIV.B6 Capture or update client history @@ -221,6 +366,141 @@ define "Breastfeeding B.DE32 Observation": where O.effective.toInterval() during "Measurement Period" /* End of Breastfeeding B.DE32 */ +/* +@dataElement: HIV.B.DE33 - Partner HIV status reported +@activity: HIV.B6 Capture or update client history +@description: The HIV status of the client's partner. +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Partner HIV status reported": + exists "Partner HIV status reported Observation" +define "Partner HIV status reported Observation": + Elements."Partner HIV status reported Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Partner HIV status reported */ + +/* +@dataElement: HIV.B.DE34 - HIV-positive +@activity: HIV.B6 Capture or update client history +@description: Client's partner is HIV-positive +*/ +// TODO: Replace placeholder with relevant CQL logic +define "HIV-positive B.DE34": + exists "HIV-positive B.DE34 Condition" + or exists "HIV-positive B.DE34 Observation" +define "HIV-positive B.DE34 Condition": + Elements."HIV-positive B.DE34 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "HIV-positive B.DE34 Observation": + Elements."HIV-positive B.DE34 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of HIV-positive B.DE34 */ + +/* +@dataElement: HIV.B.DE35 - HIV-negative +@activity: HIV.B6 Capture or update client history +@description: Client's partner is HIV-negative +*/ +// TODO: Replace placeholder with relevant CQL logic +define "HIV-negative B.DE35": + exists "HIV-negative B.DE35 Condition" + or exists "HIV-negative B.DE35 Observation" +define "HIV-negative B.DE35 Condition": + Elements."HIV-negative B.DE35 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "HIV-negative B.DE35 Observation": + Elements."HIV-negative B.DE35 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of HIV-negative B.DE35 */ + +/* +@dataElement: HIV.B.DE36 - Unknown +@activity: HIV.B6 Capture or update client history +@description: Don't know HIV status - client does not know partner's HIV status +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Unknown B.DE36": + exists "Unknown B.DE36 Condition" + or exists "Unknown B.DE36 Observation" +define "Unknown B.DE36 Condition": + Elements."Unknown B.DE36 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Unknown B.DE36 Observation": + Elements."Unknown B.DE36 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Unknown B.DE36 */ + +/* +@dataElement: HIV.B.DE50 - Key population member type +@activity: HIV.B6 Capture or update client history +@description: The type of key population that the client is included in +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Key population member type B.DE50": + exists "Key population member type B.DE50 Observation" +define "Key population member type B.DE50 Observation": + Elements."Key population member type B.DE50 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Key population member type B.DE50 */ + +/* +@dataElement: HIV.B.DE51 - Sex worker +@activity: HIV.B6 Capture or update client history +@description: Client is a sex worker +*/ + +define "Sex worker B.DE51": + exists(Elements."Sex worker B.DE51" SW + where SW.issued before end of "Measurement Period") +/* End of Sex worker B.DE51 */ + +/* +@dataElement: HIV.B.DE52 - Men who have sex with men +@activity: HIV.B6 Capture or update client history +@description: Client is a man who has sex with men +*/ + +define "Men who have sex with men": + exists(Elements."Men who have sex with men" MSM + where MSM.issued before end of "Measurement Period") +/* End of Men who have sex with men */ + +/* +@dataElement: HIV.B.DE53 - Trans and gender-diverse people +@activity: HIV.B6 Capture or update client history +@description: Client identifies as trans and gender-diverse +*/ + +define "Trans and gender-diverse people B.DE53": + exists(Elements."Trans and gender-diverse people B.DE53" T + where T.issued before end of "Measurement Period") +/* End of Trans and gender-diverse people B.DE53 */ + +/* +@dataElement: HIV.B.DE54 - People who inject drugs +@activity: HIV.B6 Capture or update client history +@description: Client is a person who injects drugs +*/ + +define "People who inject drugs B.DE54": + exists(Elements."People who inject drugs B.DE54" PWID + where PWID.issued before end of "Measurement Period") +/* End of People who inject drugs B.DE54 */ + +/* +@dataElement: HIV.B.DE55 - People living in prisons and other closed settings +@activity: HIV.B6 Capture or update client history +@description: Client lives in a prison or another closed setting +*/ + +define "People living in prisons and other closed settings": + exists(Elements."People living in prisons and other closed settings" P + where P.issued before end of "Measurement Period") +/* End of People living in prisons and other closed settings */ + /* @dataElement: HIV.B.DE60 - Date HIV test results returned @activity: HIV.B6 Capture or update client history @@ -302,6 +582,151 @@ define "Non-occupational consensual sex Observation": where O.effective.toInterval() during "Measurement Period" /* End of Non-occupational consensual sex */ +/* +@dataElement: HIV.B.DE65 - Date informed of HIV-positive diagnosis +@activity: HIV.B6 Capture or update client history +@description: The date on which the client was diagnosed with HIV +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Date informed of HIV-positive diagnosis": + Elements."Date informed of HIV-positive diagnosis" O + where O.effective.toInterval() during "Measurement Period" +define "Date informed of HIV-positive diagnosis Value": + "Date informed of HIV-positive diagnosis" O + return O.value +/* End of Date informed of HIV-positive diagnosis */ + +/* +@dataElement: HIV.B.DE71 - HIV diagnosis date +@activity: HIV.B8 Provide post-test counselling +@description: Date diagnosis was returned to client +*/ +// TODO: Replace placeholder with relevant CQL logic +define "HIV diagnosis date": + Elements."HIV diagnosis date" O + where O.effective.toInterval() during "Measurement Period" +define "HIV diagnosis date Value": + "HIV diagnosis date" O + return O.value +/* End of HIV diagnosis date */ + +/* +@dataElement: HIV.B.DE72 - ART start date +@activity: HIV.B8 Provide post-test counselling +@description: The date on which the client started or restarted antiretroviral therapy (ART) +*/ +// TODO: Replace placeholder with relevant CQL logic +define "ART start date B.DE72": + Elements."ART start date B.DE72" O + where O.effective.toInterval() during "Measurement Period" +define "ART start date B.DE72 Value": + "ART start date B.DE72" O + return O.value +/* End of ART start date B.DE72 */ + +/* +@dataElement: HIV.B.DE81 - HIV test type +@activity: HIV.B7 Test for HIV using testing algorithm +@description: Type of HIV test +*/ +// TODO: Replace placeholder with relevant CQL logic +define "HIV test type B.DE81": + exists "HIV test type B.DE81 Observation" +define "HIV test type B.DE81 Observation": + Elements."HIV test type B.DE81 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of HIV test type B.DE81 */ + +/* +@dataElement: HIV.B.DE82 - Rapid diagnostic test for HIV +@activity: HIV.B7 Test for HIV using testing algorithm +@description: Antibody test for HIV performed with a rapid diagnostic +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Rapid diagnostic test for HIV B.DE82": + exists "Rapid diagnostic test for HIV B.DE82 Condition" + or exists "Rapid diagnostic test for HIV B.DE82 Observation" +define "Rapid diagnostic test for HIV B.DE82 Condition": + Elements."Rapid diagnostic test for HIV B.DE82 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Rapid diagnostic test for HIV B.DE82 Observation": + Elements."Rapid diagnostic test for HIV B.DE82 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Rapid diagnostic test for HIV B.DE82 */ + +/* +@dataElement: HIV.B.DE83 - Enzyme immunoassay for HIV +@activity: HIV.B7 Test for HIV using testing algorithm +@description: Antibody test for HIV performed with an enzyme immunoassay +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Enzyme immunoassay for HIV B.DE83": + exists "Enzyme immunoassay for HIV B.DE83 Condition" + or exists "Enzyme immunoassay for HIV B.DE83 Observation" +define "Enzyme immunoassay for HIV B.DE83 Condition": + Elements."Enzyme immunoassay for HIV B.DE83 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Enzyme immunoassay for HIV B.DE83 Observation": + Elements."Enzyme immunoassay for HIV B.DE83 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Enzyme immunoassay for HIV B.DE83 */ + +/* +@dataElement: HIV.B.DE84 - Nucleic acid test for HIV +@activity: HIV.B7 Test for HIV using testing algorithm +@description: Virological test, which includes testing for early infant diagnosis +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Nucleic acid test for HIV B.DE84": + exists "Nucleic acid test for HIV B.DE84 Condition" + or exists "Nucleic acid test for HIV B.DE84 Observation" +define "Nucleic acid test for HIV B.DE84 Condition": + Elements."Nucleic acid test for HIV B.DE84 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Nucleic acid test for HIV B.DE84 Observation": + Elements."Nucleic acid test for HIV B.DE84 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Nucleic acid test for HIV B.DE84 */ + +/* +@dataElement: HIV.B.DE85 - Dual HIV/syphilis rapid diagnostic test +@activity: HIV.B7 Test for HIV using testing algorithm +@description: Antibody test for HIV and syphilis performed with a rapid diagnostic +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Dual HIV/syphilis rapid diagnostic test B.DE85": + exists "Dual HIV/syphilis rapid diagnostic test B.DE85 Condition" + or exists "Dual HIV/syphilis rapid diagnostic test B.DE85 Observation" +define "Dual HIV/syphilis rapid diagnostic test B.DE85 Condition": + Elements."Dual HIV/syphilis rapid diagnostic test B.DE85 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Dual HIV/syphilis rapid diagnostic test B.DE85 Observation": + Elements."Dual HIV/syphilis rapid diagnostic test B.DE85 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Dual HIV/syphilis rapid diagnostic test B.DE85 */ + +/* +@dataElement: HIV.B.DE86 - HIV self-test +@activity: HIV.B7 Test for HIV using testing algorithm +@description: Antibody test for HIV performed by self-tester using a rapid diagnostic +*/ +// TODO: Replace placeholder with relevant CQL logic +define "HIV self-test": + exists "HIV self-test Condition" + or exists "HIV self-test Observation" +define "HIV self-test Condition": + Elements."HIV self-test Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "HIV self-test Observation": + Elements."HIV self-test Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of HIV self-test */ + /* @dataElement: HIV.B.DE110 - HIV test date @activity: HIV.B7 Test for HIV using testing algorithm @@ -316,6 +741,124 @@ define "HIV test date B.DE110 Value": return O.value /* End of HIV test date B.DE110 */ +/* +@dataElement: HIV.B.DE111 - HIV test result +@activity: HIV.B7 Test for HIV using testing algorithm +@description: The result from HIV testing after applying the testing algorithm +*/ +// TODO: Replace placeholder with relevant CQL logic +define "HIV test result B.DE111": + exists "HIV test result B.DE111 Observation" +define "HIV test result B.DE111 Observation": + Elements."HIV test result B.DE111 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of HIV test result B.DE111 */ + +/* +@dataElement: HIV.B.DE112 - HIV-positive +@activity: HIV.B7 Test for HIV using testing algorithm +@description: Test result is HIV-positive +*/ +// TODO: Replace placeholder with relevant CQL logic +define "HIV-positive B.DE112": + exists "HIV-positive B.DE112 Condition" + or exists "HIV-positive B.DE112 Observation" +define "HIV-positive B.DE112 Condition": + Elements."HIV-positive B.DE112 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "HIV-positive B.DE112 Observation": + Elements."HIV-positive B.DE112 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of HIV-positive B.DE112 */ + +/* +@dataElement: HIV.B.DE113 - HIV-negative +@activity: HIV.B7 Test for HIV using testing algorithm +@description: Test result is HIV-negative +*/ +define "HIV-negative B.DE113": + exists(Elements."HIV-negative B.DE113" O + where O.effective.toInterval() starts during "Measurement Period") +/* End of HIV-negative B.DE113 */ + +/* +@dataElement: HIV.B.DE114 - HIV-inconclusive +@activity: HIV.B7 Test for HIV using testing algorithm +@description: Test result is HIV-inconclusive +*/ +// TODO: Replace placeholder with relevant CQL logic +define "HIV-inconclusive": + exists "HIV-inconclusive Condition" + or exists "HIV-inconclusive Observation" +define "HIV-inconclusive Condition": + Elements."HIV-inconclusive Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "HIV-inconclusive Observation": + Elements."HIV-inconclusive Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of HIV-inconclusive */ + +/* +@dataElement: HIV.B.DE115 - HIV status +@activity: HIV.B7 Test for HIV using testing algorithm +@description: HIV status reported after applying the national HIV testing algorithm. No single HIV test can provide an HIV-positive diagnosis. +*/ +// TODO: Replace placeholder with relevant CQL logic +define "HIV status": + exists "HIV status Observation" +define "HIV status Observation": + Elements."HIV status Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of HIV status */ + +/* +@dataElement: HIV.B.DE116 - HIV-positive +@activity: HIV.B7 Test for HIV using testing algorithm +@description: Client is HIV-positive +*/ +// TODO: Replace placeholder with relevant CQL logic +define "HIV-positive B.DE116": + exists(Elements."HIV-positive B.DE116" HIV where HIV starts before end of "Measurement Period") +/* End of HIV-positive B.DE116 */ + +/* +@dataElement: HIV.B.DE117 - HIV-negative +@activity: HIV.B7 Test for HIV using testing algorithm +@description: Client is HIV-negative +*/ +// TODO: Replace placeholder with relevant CQL logic +define "HIV-negative B.DE117": + exists "HIV-negative B.DE117 Condition" + or exists "HIV-negative B.DE117 Observation" +define "HIV-negative B.DE117 Condition": + Elements."HIV-negative B.DE117 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "HIV-negative B.DE117 Observation": + Elements."HIV-negative B.DE117 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of HIV-negative B.DE117 */ + +/* +@dataElement: HIV.B.DE118 - Unknown +@activity: HIV.B7 Test for HIV using testing algorithm +@description: Client has unknown HIV status +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Unknown B.DE118": + exists "Unknown B.DE118 Condition" + or exists "Unknown B.DE118 Observation" +define "Unknown B.DE118 Condition": + Elements."Unknown B.DE118 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Unknown B.DE118 Observation": + Elements."Unknown B.DE118 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Unknown B.DE118 */ + /* @dataElement: HIV.B.DE121 - Probable route of transmission @activity: HIV.B8 Provide post-test counselling @@ -850,6 +1393,17 @@ define "Other B.DE222 Observation": where O.effective.toInterval() during "Measurement Period" /* End of Other B.DE222 */ +/* +@dataElement: HIV.B.DE225 - At elevated risk for HIV acquisition +@activity: HIV.B6 Capture or update client history +@description: Client is at elevated risk for HIV acquisition +*/ + +define "At elevated risk for HIV acquisition B.DE225": + exists(Elements."At elevated risk for HIV acquisition B.DE225" O + where O.effective.toInterval() during "Measurement Period") +/* End of At elevated risk for HIV acquisition B.DE225 */ + /* @dataElement: HIV.B.DE226 - Syndrome/STI diagnosed @activity: HIV.B23 Offer sexual and reproductive health services @@ -1017,27 +1571,94 @@ define "Syphilis test date B.DE249 Value": /* End of Syphilis test date B.DE249 */ /* -@dataElement: HIV.B.DE254 - Syphilis treatment start date +@dataElement: HIV.B.DE250 - Syphilis test result @activity: HIV.B23 Offer sexual and reproductive health services -@description: Date of initiation of syphilis treatment +@description: Result from syphilis test */ // TODO: Replace placeholder with relevant CQL logic -define "Syphilis treatment start date B.DE254": - Elements."Syphilis treatment start date B.DE254" O +define "Syphilis test result B.DE250": + exists "Syphilis test result B.DE250 Observation" +define "Syphilis test result B.DE250 Observation": + Elements."Syphilis test result B.DE250 Observation" O where O.effective.toInterval() during "Measurement Period" -define "Syphilis treatment start date B.DE254 Value": - "Syphilis treatment start date B.DE254" O - return O.value -/* End of Syphilis treatment start date B.DE254 */ +/* End of Syphilis test result B.DE250 */ /* -@dataElement: HIV.B.DE255 - Gonorrhoea test date +@dataElement: HIV.B.DE251 - Positive @activity: HIV.B23 Offer sexual and reproductive health services -@description: Date of Gonorrhoea test +@description: Test result is positive for syphilis */ // TODO: Replace placeholder with relevant CQL logic -define "Gonorrhoea test date B.DE255": - Elements."Gonorrhoea test date B.DE255" O +define "Positive B.DE251": + exists "Positive B.DE251 Condition" + or exists "Positive B.DE251 Observation" +define "Positive B.DE251 Condition": + Elements."Positive B.DE251 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Positive B.DE251 Observation": + Elements."Positive B.DE251 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Positive B.DE251 */ + +/* +@dataElement: HIV.B.DE252 - Negative +@activity: HIV.B23 Offer sexual and reproductive health services +@description: Test result is negative for syphilis +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Negative B.DE252": + exists "Negative B.DE252 Condition" + or exists "Negative B.DE252 Observation" +define "Negative B.DE252 Condition": + Elements."Negative B.DE252 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Negative B.DE252 Observation": + Elements."Negative B.DE252 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Negative B.DE252 */ + +/* +@dataElement: HIV.B.DE253 - Inconclusive +@activity: HIV.B23 Offer sexual and reproductive health services +@description: Test result is inconclusive +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Inconclusive B.DE253": + exists "Inconclusive B.DE253 Condition" + or exists "Inconclusive B.DE253 Observation" +define "Inconclusive B.DE253 Condition": + Elements."Inconclusive B.DE253 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Inconclusive B.DE253 Observation": + Elements."Inconclusive B.DE253 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Inconclusive B.DE253 */ + +/* +@dataElement: HIV.B.DE254 - Syphilis treatment start date +@activity: HIV.B23 Offer sexual and reproductive health services +@description: Date of initiation of syphilis treatment +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Syphilis treatment start date B.DE254": + Elements."Syphilis treatment start date B.DE254" O + where O.effective.toInterval() during "Measurement Period" +define "Syphilis treatment start date B.DE254 Value": + "Syphilis treatment start date B.DE254" O + return O.value +/* End of Syphilis treatment start date B.DE254 */ + +/* +@dataElement: HIV.B.DE255 - Gonorrhoea test date +@activity: HIV.B23 Offer sexual and reproductive health services +@description: Date of Gonorrhoea test +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Gonorrhoea test date B.DE255": + Elements."Gonorrhoea test date B.DE255" O where O.effective.toInterval() during "Measurement Period" define "Gonorrhoea test date B.DE255 Value": "Gonorrhoea test date B.DE255" O @@ -1843,6 +2464,19 @@ define "Social contact C.DE148 Observation": where O.effective.toInterval() during "Measurement Period" /* End of Social contact C.DE148 */ +/* +@dataElement: HIV.D.DE31 - Currently pregnant +@activity: HIV.D8 Capture or update client history +@description: Client is currently pregnant +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Currently pregnant D.DE31": + exists "Currently pregnant D.DE31 Observation" +define "Currently pregnant D.DE31 Observation": + Elements."Currently pregnant D.DE31 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Currently pregnant D.DE31 */ + /* @dataElement: HIV.D.DE32 - Breastfeeding @activity: HIV.D8 Capture or update client history @@ -1856,6 +2490,33 @@ define "Breastfeeding D.DE32 Observation": where O.effective.toInterval() during "Measurement Period" /* End of Breastfeeding D.DE32 */ +/* +@dataElement: HIV.D.DE38 - On ART +@activity: HIV.D8 Capture or update client history +@description: Client is currently taking ART +*/ + +define "On ART D.DE38": + exists(Elements."On ART D.DE38" ART + where ART.effective.toInterval() starts before end of "Measurement Period" + and (ART.effective.toInterval() ends after start of "Measurement Period") + ) +/* End of On ART D.DE38 */ + +/* +@dataElement: HIV.D.DE39 - ART start date +@activity: HIV.D8 Capture or update client history +@description: The date on which the client started or restarted ART +*/ +// TODO: Replace placeholder with relevant CQL logic +define "ART start date D.DE39": + Elements."ART start date D.DE39" O + where O.effective.toInterval() during "Measurement Period" +define "ART start date D.DE39 Value": + "ART start date D.DE39" O + return O.value +/* End of ART start date D.DE39 */ + /* @dataElement: HIV.D.DE41 - Date ART stopped @activity: HIV.D8 Capture or update client history @@ -1870,6 +2531,68 @@ define "Date ART stopped D.DE41 Value": return O.value /* End of Date ART stopped D.DE41 */ +/* +@dataElement: HIV.D.DE43 - ART start type +@activity: HIV.D8 Capture or update client history +@description: Whether the client is ART naive or is restarting ART +*/ +// TODO: Replace placeholder with relevant CQL logic +define "ART start type": + exists "ART start type Observation" +define "ART start type Observation": + Elements."ART start type Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of ART start type */ + +/* +@dataElement: HIV.D.DE44 - First-time user of ART +@activity: HIV.D8 Capture or update client history +@description: Client is ART naive, having never taken ART to treat HIV before +*/ +// TODO: Replace placeholder with relevant CQL logic +define "First-time user of ART": + exists "First-time user of ART Condition" + or exists "First-time user of ART Observation" +define "First-time user of ART Condition": + Elements."First-time user of ART Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "First-time user of ART Observation": + Elements."First-time user of ART Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of First-time user of ART */ + +/* +@dataElement: HIV.D.DE45 - Restarting ART +@activity: HIV.D8 Capture or update client history +@description: Client is restarting ART after stopping treatment for any reason +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Restarting ART": + exists "Restarting ART Condition" + or exists "Restarting ART Observation" +define "Restarting ART Condition": + Elements."Restarting ART Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Restarting ART Observation": + Elements."Restarting ART Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Restarting ART */ + +/* +@dataElement: HIV.D.DE75 - Current ART regimen +@activity: HIV.D8 Capture or update client history +@description: The current ART regimen the client is taking +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Current ART regimen": + exists "Current ART regimen Observation" +define "Current ART regimen Observation": + Elements."Current ART regimen Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Current ART regimen */ + /* @dataElement: HIV.D.DE161 - HBsAg test date @activity: HIV.D12 Determine recommended screenings and tests @@ -1884,6 +2607,73 @@ define "HBsAg test date D.DE161 Value": return O.value /* End of HBsAg test date D.DE161 */ +/* +@dataElement: HIV.D.DE162 - HBsAg test result +@activity: HIV.D12 Determine recommended screenings and tests +@description: Hepatitis B virus test result (HBsAg) +*/ +// TODO: Replace placeholder with relevant CQL logic +define "HBsAg test result D.DE162": + exists "HBsAg test result D.DE162 Observation" +define "HBsAg test result D.DE162 Observation": + Elements."HBsAg test result D.DE162 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of HBsAg test result D.DE162 */ + +/* +@dataElement: HIV.D.DE163 - Positive +@activity: HIV.D12 Determine recommended screenings and tests +@description: HBsAg test result was positive +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Positive D.DE163": + exists "Positive D.DE163 Condition" + or exists "Positive D.DE163 Observation" +define "Positive D.DE163 Condition": + Elements."Positive D.DE163 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Positive D.DE163 Observation": + Elements."Positive D.DE163 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Positive D.DE163 */ + +/* +@dataElement: HIV.D.DE164 - Negative +@activity: HIV.D12 Determine recommended screenings and tests +@description: HBsAg test result was negative +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Negative D.DE164": + exists "Negative D.DE164 Condition" + or exists "Negative D.DE164 Observation" +define "Negative D.DE164 Condition": + Elements."Negative D.DE164 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Negative D.DE164 Observation": + Elements."Negative D.DE164 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Negative D.DE164 */ + +/* +@dataElement: HIV.D.DE165 - Indeterminate +@activity: HIV.D12 Determine recommended screenings and tests +@description: HBsAg test result was indeterminate +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Indeterminate D.DE165": + exists "Indeterminate D.DE165 Condition" + or exists "Indeterminate D.DE165 Observation" +define "Indeterminate D.DE165 Condition": + Elements."Indeterminate D.DE165 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Indeterminate D.DE165 Observation": + Elements."Indeterminate D.DE165 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Indeterminate D.DE165 */ + /* @dataElement: HIV.D.DE167 - HBV treatment TDF start date @activity: HIV.D12 Determine recommended screenings and tests @@ -1912,6 +2702,73 @@ define "HCV test date D.DE169 Value": return O.value /* End of HCV test date D.DE169 */ +/* +@dataElement: HIV.D.DE170 - HCV test result +@activity: HIV.D12 Determine recommended screenings and tests +@description: Hepatitis C virus test result (HCV antibody, HCV RNA or HCV core antigen) +*/ +// TODO: Replace placeholder with relevant CQL logic +define "HCV test result D.DE170": + exists "HCV test result D.DE170 Observation" +define "HCV test result D.DE170 Observation": + Elements."HCV test result D.DE170 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of HCV test result D.DE170 */ + +/* +@dataElement: HIV.D.DE171 - Positive +@activity: HIV.D12 Determine recommended screenings and tests +@description: HCV test result was positive +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Positive D.DE171": + exists "Positive D.DE171 Condition" + or exists "Positive D.DE171 Observation" +define "Positive D.DE171 Condition": + Elements."Positive D.DE171 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Positive D.DE171 Observation": + Elements."Positive D.DE171 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Positive D.DE171 */ + +/* +@dataElement: HIV.D.DE172 - Negative +@activity: HIV.D12 Determine recommended screenings and tests +@description: HCV test result was negative +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Negative D.DE172": + exists "Negative D.DE172 Condition" + or exists "Negative D.DE172 Observation" +define "Negative D.DE172 Condition": + Elements."Negative D.DE172 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Negative D.DE172 Observation": + Elements."Negative D.DE172 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Negative D.DE172 */ + +/* +@dataElement: HIV.D.DE173 - Indeterminate +@activity: HIV.D12 Determine recommended screenings and tests +@description: HCV test result was indeterminate +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Indeterminate D.DE173": + exists "Indeterminate D.DE173 Condition" + or exists "Indeterminate D.DE173 Observation" +define "Indeterminate D.DE173 Condition": + Elements."Indeterminate D.DE173 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Indeterminate D.DE173 Observation": + Elements."Indeterminate D.DE173 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Indeterminate D.DE173 */ + /* @dataElement: HIV.D.DE175 - HCV treatment start date @activity: HIV.D12 Determine recommended screenings and tests @@ -2070,15 +2927,24 @@ define "Currently on TDF-based ART Observation": @activity: HIV.D10 Counsel returning client @description: The date on which the client received results from viral load test */ -// TODO: Replace placeholder with relevant CQL logic + define "Date viral load test results received by client D.DE193": Elements."Date viral load test results received by client D.DE193" O - where O.effective.toInterval() during "Measurement Period" -define "Date viral load test results received by client D.DE193 Value": - "Date viral load test results received by client D.DE193" O - return O.value + where O.issued.toInterval() during "Measurement Period" + /* End of Date viral load test results received by client D.DE193 */ +/* +@dataElement: HIV.D.DE194 - Date of viral load sample collection +@activity: HIV.D10 Counsel returning client +@description: Date and time when the sample was collected to test the client's HIV viral load +*/ + +define "Date of viral load sample collection D.DE194": + exists(Elements."Date of viral load sample collection D.DE194" P + where P.performed.toInterval() during "Measurement Period") +/* End of Date of viral load sample collection D.DE194 */ + /* @dataElement: HIV.D.DE217 - Reason ART stopped @activity: HIV.D10 Counsel returning client @@ -2200,6 +3066,37 @@ define "Other reason for stopping ART D.DE223 Observation": where O.effective.toInterval() during "Measurement Period" /* End of Other reason for stopping ART D.DE223 */ +/* +@dataElement: HIV.D.DE259 - Risk factors, comorbidities and coinfections signs and symptoms +@activity: HIV.D14 Prevent, screen, and manage comorbidities and coinfections +@description: Signs and symptoms of opportunistic infections or other comorbidities experienced by client +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Risk factors, comorbidities and coinfections signs and symptoms": + exists "Risk factors, comorbidities and coinfections signs and symptoms Observation" +define "Risk factors, comorbidities and coinfections signs and symptoms Observation": + Elements."Risk factors, comorbidities and coinfections signs and symptoms Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Risk factors, comorbidities and coinfections signs and symptoms */ + +/* +@dataElement: HIV.D.DE282 - Presumptive TB +@activity: HIV.D14 Prevent, screen, and manage comorbidities and coinfections +@description: Client's comorbidities or coinfections or symptoms of these include presumptive TB +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Presumptive TB D.DE282": + exists "Presumptive TB D.DE282 Condition" + or exists "Presumptive TB D.DE282 Observation" +define "Presumptive TB D.DE282 Condition": + Elements."Presumptive TB D.DE282 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Presumptive TB D.DE282 Observation": + Elements."Presumptive TB D.DE282 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Presumptive TB D.DE282 */ + /* @dataElement: HIV.D.DE367 - Baseline CD4 count @activity: HIV.D20 Diagnostics @@ -2295,6 +3192,105 @@ define "Within 90 days of HIV diagnosis Observation": where O.effective.toInterval() during "Measurement Period" /* End of Within 90 days of HIV diagnosis */ +/* +@dataElement: HIV.D.DE387 - Viral load test result +@activity: HIV.D20 Diagnostics +@description: Result from the viral load test in number of copies/mL +*/ + +define "Viral load test result D.DE387": + Elements."Viral load test result D.DE387" O + where O.effective.toInterval() during "Measurement Period" +define "Viral load test result D.DE387 Value": + "Viral load test result D.DE387" O + return O.value +/* End of Viral load test result D.DE387 */ + +/* +@dataElement: HIV.D.DE391 - Reason for HIV viral load test +@activity: HIV.D20 Diagnostics +@description: Whether the viral load is being tested for routine monitoring on a set schedule or for targeted monitoring for suspected treatment failure +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Reason for HIV viral load test": + exists "Reason for HIV viral load test Observation" +define "Reason for HIV viral load test Observation": + Elements."Reason for HIV viral load test Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Reason for HIV viral load test */ + +/* +@dataElement: HIV.D.DE392 - Routine viral load test +@activity: HIV.D20 Diagnostics +@description: Routine refers to viral load tests obtained at standard intervals following ART initiation to monitor viral load response to ART +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Routine viral load test": + exists "Routine viral load test Condition" + or exists "Routine viral load test Observation" +define "Routine viral load test Condition": + Elements."Routine viral load test Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Routine viral load test Observation": + Elements."Routine viral load test Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Routine viral load test */ + +/* +@dataElement: HIV.D.DE393 - Targeted viral load monitoring +@activity: HIV.D20 Diagnostics +@description: Targeted refers to viral load tests obtained based on a specific clinical indication (such as concern about disease progression or failure to respond to ART) +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Targeted viral load monitoring": + exists "Targeted viral load monitoring Condition" + or exists "Targeted viral load monitoring Observation" +define "Targeted viral load monitoring Condition": + Elements."Targeted viral load monitoring Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Targeted viral load monitoring Observation": + Elements."Targeted viral load monitoring Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Targeted viral load monitoring */ + +/* +@dataElement: HIV.D.DE394 - Initial viral load test +@activity: HIV.D20 Diagnostics +@description: The first viral load test of the client +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Initial viral load test": + exists "Initial viral load test Condition" + or exists "Initial viral load test Observation" +define "Initial viral load test Condition": + Elements."Initial viral load test Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Initial viral load test Observation": + Elements."Initial viral load test Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Initial viral load test */ + +/* +@dataElement: HIV.D.DE395 - Follow-up viral load test after receiving enhanced adherence counselling +@activity: HIV.D20 Diagnostics +@description: A follow-up viral load test within 3-6 months after enhanced adherence counselling after client received a high viral load test result +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Follow-up viral load test after receiving enhanced adherence counselling": + exists "Follow-up viral load test after receiving enhanced adherence counselling Condition" + or exists "Follow-up viral load test after receiving enhanced adherence counselling Observation" +define "Follow-up viral load test after receiving enhanced adherence counselling Condition": + Elements."Follow-up viral load test after receiving enhanced adherence counselling Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Follow-up viral load test after receiving enhanced adherence counselling Observation": + Elements."Follow-up viral load test after receiving enhanced adherence counselling Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Follow-up viral load test after receiving enhanced adherence counselling */ + /* @dataElement: HIV.D.DE417 - Date viral load test results received by client @activity: HIV.D20 Diagnostics @@ -2750,6 +3746,25 @@ define "Unexpected adverse drug reaction Observation": where O.effective.toInterval() during "Measurement Period" /* End of Unexpected adverse drug reaction */ +/* +HIV.D.DE485 +New regimen after switch to second-line regimen +*/ + +define "New regimen after switch to second-line regimen": + Elements."New regimen after switch to second-line regimen" MS + where start of MS.effective.toInterval() during "Measurement Period" + + +/* +HIV.D.DE491 +New regimen after switch to third-line regimen +*/ + +define "New regimen after switch to third-line regimen": + Elements."New regimen after switch to third-line regimen" MS + where start of MS.effective.toInterval() during "Measurement Period" + /* @dataElement: HIV.D.DE487 - Dates of substitution within second-line regimen @activity: HIV.D21 Determine regimen and treatment options @@ -2778,6 +3793,47 @@ define "Dates of substitution within third-line regimen Value": return O.value /* End of Dates of substitution within third-line regimen */ +/* +@dataElement: HIV.D.DE496 - Enhanced adherence counselling provided +@activity: HIV.D24 Counsel +@description: Enhanced adherence counselling was provided to the client during the visit +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Enhanced adherence counselling provided": + exists "Enhanced adherence counselling provided Observation" +define "Enhanced adherence counselling provided Observation": + Elements."Enhanced adherence counselling provided Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Enhanced adherence counselling provided */ + +/* +@dataElement: HIV.D.DE656 - Date of cervical cancer screening test +@activity: HIV.D28 Offer other services +@description: Date of cervical cancer screening test +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Date of cervical cancer screening test": + Elements."Date of cervical cancer screening test" O + where O.effective.toInterval() during "Measurement Period" +define "Date of cervical cancer screening test Value": + "Date of cervical cancer screening test" O + return O.value +/* End of Date of cervical cancer screening test */ + +/* +@dataElement: HIV.D.DE657 - Lifetime screening test number +@activity: HIV.D28 Offer other services +@description: Client's lifetime number of screenings for cervical cancer +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Lifetime screening test number": + Elements."Lifetime screening test number" O + where O.effective.toInterval() during "Measurement Period" +define "Lifetime screening test number Value": + "Lifetime screening test number" O + return O.value +/* End of Lifetime screening test number */ + /* @dataElement: HIV.D.DE705 - Date of diagnosis of cervical precancer lesions or invasive cervical cancer @activity: HIV.D28 Offer other services @@ -3520,23 +4576,90 @@ define "Syphilis test date D.DE801 Value": /* End of Syphilis test date D.DE801 */ /* -@dataElement: HIV.D.DE806 - Syphilis treatment start date +@dataElement: HIV.D.DE802 - Syphilis test result @activity: HIV.D26 Offer sexual and reproductive health services -@description: Date of initiation of syphilis treatment +@description: Result from syphilis test */ // TODO: Replace placeholder with relevant CQL logic -define "Syphilis treatment start date D.DE806": - Elements."Syphilis treatment start date D.DE806" O +define "Syphilis test result D.DE802": + exists "Syphilis test result D.DE802 Observation" +define "Syphilis test result D.DE802 Observation": + Elements."Syphilis test result D.DE802 Observation" O where O.effective.toInterval() during "Measurement Period" -define "Syphilis treatment start date D.DE806 Value": - "Syphilis treatment start date D.DE806" O - return O.value -/* End of Syphilis treatment start date D.DE806 */ +/* End of Syphilis test result D.DE802 */ /* -@dataElement: HIV.D.DE807 - Gonorrhoea test date +@dataElement: HIV.D.DE803 - Positive @activity: HIV.D26 Offer sexual and reproductive health services -@description: Date of Gonorrhoea test +@description: Test result is positive for syphilis +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Positive D.DE803": + exists "Positive D.DE803 Condition" + or exists "Positive D.DE803 Observation" +define "Positive D.DE803 Condition": + Elements."Positive D.DE803 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Positive D.DE803 Observation": + Elements."Positive D.DE803 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Positive D.DE803 */ + +/* +@dataElement: HIV.D.DE804 - Negative +@activity: HIV.D26 Offer sexual and reproductive health services +@description: Test result is negative for syphilis +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Negative D.DE804": + exists "Negative D.DE804 Condition" + or exists "Negative D.DE804 Observation" +define "Negative D.DE804 Condition": + Elements."Negative D.DE804 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Negative D.DE804 Observation": + Elements."Negative D.DE804 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Negative D.DE804 */ + +/* +@dataElement: HIV.D.DE805 - Inconclusive +@activity: HIV.D26 Offer sexual and reproductive health services +@description: Test result is inconclusive +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Inconclusive D.DE805": + exists "Inconclusive D.DE805 Condition" + or exists "Inconclusive D.DE805 Observation" +define "Inconclusive D.DE805 Condition": + Elements."Inconclusive D.DE805 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Inconclusive D.DE805 Observation": + Elements."Inconclusive D.DE805 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Inconclusive D.DE805 */ + +/* +@dataElement: HIV.D.DE806 - Syphilis treatment start date +@activity: HIV.D26 Offer sexual and reproductive health services +@description: Date of initiation of syphilis treatment +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Syphilis treatment start date D.DE806": + Elements."Syphilis treatment start date D.DE806" O + where O.effective.toInterval() during "Measurement Period" +define "Syphilis treatment start date D.DE806 Value": + "Syphilis treatment start date D.DE806" O + return O.value +/* End of Syphilis treatment start date D.DE806 */ + +/* +@dataElement: HIV.D.DE807 - Gonorrhoea test date +@activity: HIV.D26 Offer sexual and reproductive health services +@description: Date of Gonorrhoea test */ // TODO: Replace placeholder with relevant CQL logic define "Gonorrhoea test date D.DE807": @@ -3852,6 +4975,68 @@ define "Other D.DE833 Observation": where O.effective.toInterval() during "Measurement Period" /* End of Other D.DE833 */ +/* +@dataElement: HIV.D.DE939 - TB diagnosis result +@activity: HIV.D8 Capture or update client history +@description: Final result of the TB investigation (bacteriological and/or clinical) +*/ +// TODO: Replace placeholder with relevant CQL logic +define "TB diagnosis result": + exists "TB diagnosis result Observation" +define "TB diagnosis result Observation": + Elements."TB diagnosis result Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of TB diagnosis result */ + +/* +@dataElement: HIV.D.DE940 - Diagnosed TB +@activity: HIV.D8 Capture or update client history +@description: Client is diagnosed with TB disease +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Diagnosed TB": + exists "Diagnosed TB Condition" + or exists "Diagnosed TB Observation" +define "Diagnosed TB Condition": + Elements."Diagnosed TB Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Diagnosed TB Observation": + Elements."Diagnosed TB Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Diagnosed TB */ + +/* +@dataElement: HIV.D.DE941 - TB excluded +@activity: HIV.D8 Capture or update client history +@description: Client is not diagnosed with TB +*/ +// TODO: Replace placeholder with relevant CQL logic +define "TB excluded": + exists "TB excluded Condition" + or exists "TB excluded Observation" +define "TB excluded Condition": + Elements."TB excluded Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "TB excluded Observation": + Elements."TB excluded Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of TB excluded */ + +/* +@dataElement: HIV.D.DE945 - Presumptive TB +@activity: HIV.D8 Capture or update client history +@description: Client has signs or symptoms of tuberculosis (TB) without laboratory confirmation +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Presumptive TB D.DE945": + exists "Presumptive TB D.DE945 Observation" +define "Presumptive TB D.DE945 Observation": + Elements."Presumptive TB D.DE945 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Presumptive TB D.DE945 */ + /* @dataElement: HIV.D.DE952 - Date of TB diagnosis @activity: HIV.D8 Capture or update client history @@ -3880,6 +5065,73 @@ define "TB preventive treatment TPT start date Value": return O.value /* End of TB preventive treatment TPT start date */ +/* +@dataElement: HIV.D.DE986 - TB screening result +@activity: HIV.D4 Screen for TB +@description: Record the result of the tuberculosis (TB) screening +*/ +// TODO: Replace placeholder with relevant CQL logic +define "TB screening result": + exists "TB screening result Observation" +define "TB screening result Observation": + Elements."TB screening result Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of TB screening result */ + +/* +@dataElement: HIV.D.DE987 - Screen positive for TB +@activity: HIV.D4 Screen for TB +@description: Screening result was positive for tuberculosis (TB) +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Screen positive for TB": + exists "Screen positive for TB Condition" + or exists "Screen positive for TB Observation" +define "Screen positive for TB Condition": + Elements."Screen positive for TB Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Screen positive for TB Observation": + Elements."Screen positive for TB Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Screen positive for TB */ + +/* +@dataElement: HIV.D.DE988 - Screen negative for TB +@activity: HIV.D4 Screen for TB +@description: Screening result was negative for tuberculosis (TB) +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Screen negative for TB": + exists "Screen negative for TB Condition" + or exists "Screen negative for TB Observation" +define "Screen negative for TB Condition": + Elements."Screen negative for TB Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Screen negative for TB Observation": + Elements."Screen negative for TB Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Screen negative for TB */ + +/* +@dataElement: HIV.D.DE989 - Inconclusive +@activity: HIV.D4 Screen for TB +@description: Screening result was inconclusive for tuberculosis (TB) +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Inconclusive D.DE989": + exists "Inconclusive D.DE989 Condition" + or exists "Inconclusive D.DE989 Observation" +define "Inconclusive D.DE989 Condition": + Elements."Inconclusive D.DE989 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Inconclusive D.DE989 Observation": + Elements."Inconclusive D.DE989 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Inconclusive D.DE989 */ + /* @dataElement: HIV.D.DE990 - TB screening date @activity: HIV.D4 Screen for TB @@ -4374,6 +5626,20 @@ define "Other E.DE70 Observation": where O.effective.toInterval() during "Measurement Period" /* End of Other E.DE70 */ +/* +@dataElement: HIV.E.DE85 - ANC contact date +@activity: HIV.E1 Capture or update mother's history +@description: The date and time of the client's ANC contact (in the ANC DAK this is called 'Contact date') +*/ +// TODO: Replace placeholder with relevant CQL logic +define "ANC contact date E.DE85": + Elements."ANC contact date E.DE85" O + where O.effective.toInterval() during "Measurement Period" +define "ANC contact date E.DE85 Value": + "ANC contact date E.DE85" O + return O.value +/* End of ANC contact date E.DE85 */ + /* @dataElement: HIV.E.DE87 - Infant date of birth @activity: HIV.E1 Capture or update mother's history @@ -4393,8 +5659,6 @@ define "Infant date of birth Value": @activity: HIV.E1 Capture or update mother's history @description: Infant age calculated using date of birth */ - -/* End of Age of infant */ define "Age of infant in days": "Infant date of birth Value" bd return CalculateAgeInDaysAt(bd, start of "Measurement Period") @@ -4410,6 +5674,8 @@ define "Age of infant in weeks": define "Age of infant in years": "Infant date of birth Value" bd return CalculateAgeInYearsAt(bd, start of "Measurement Period") +/* End of Age of infant */ + /* @dataElement: HIV.E.DE112 - HIV-exposed infant or child @activity: HIV.F6 Check whether infant/child had HIV exposure @@ -4423,6 +5689,148 @@ define "HIV-exposed infant or child E.DE112 Observation": where O.effective.toInterval() during "Measurement Period" /* End of HIV-exposed infant or child E.DE112 */ +/* +@dataElement: HIV.E.DE114 - Key population member type +@activity: HIV.E1 Capture or update mother's history +@description: The type of key population that the infant's mother is included in +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Key population member type E.DE114": + exists "Key population member type E.DE114 Observation" +define "Key population member type E.DE114 Observation": + Elements."Key population member type E.DE114 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Key population member type E.DE114 */ + +/* +@dataElement: HIV.E.DE115 - Sex worker +@activity: HIV.E1 Capture or update mother's history +@description: Infant's mother is a sex worker +*/ + +define "Sex worker E.DE115": + exists(Elements."Sex worker E.DE115" SW + where SW.issued before end of "Measurement Period") +/* End of Sex worker E.DE115 */ + +/* +@dataElement: HIV.E.DE116 - People who inject drugs +@activity: HIV.E1 Capture or update mother's history +@description: Infant's mother is a person who injects drugs +*/ + +define "People who inject drugs E.DE116": + exists(Elements."People who inject drugs E.DE116" PWID + where PWID.issued before end of "Measurement Period") +/* End of People who inject drugs E.DE116 */ + +/* +@dataElement: HIV.E.DE117 - Trans and gender-diverse people +@activity: HIV.E1 Capture or update mother's history +@description: Infant's mother identifies as trans and gender-diverse +*/ + +define "Trans and gender-diverse people E.DE117": + exists(Elements."Trans and gender-diverse people E.DE117" T + where T.issued before end of "Measurement Period") +/* End of Trans and gender-diverse people E.DE117 */ + +/* +@dataElement: HIV.E.DE118 - People living in prisons and other closed setting +@activity: HIV.E1 Capture or update mother's history +@description: Infant's mother is in a prison or closed setting +*/ + +define "People living in prisons and other closed setting": + exists(Elements."People living in prisons and other closed setting" P + where P.issued before end of "Measurement Period") +/* End of People living in prisons and other closed setting */ + +/* +@dataElement: HIV.E.DE168 - HIV test type +@activity: HIV.E4 Test mother for HIV using testing algorithm +@description: Type of HIV test +*/ +// TODO: Replace placeholder with relevant CQL logic +define "HIV test type E.DE168": + exists "HIV test type E.DE168 Observation" +define "HIV test type E.DE168 Observation": + Elements."HIV test type E.DE168 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of HIV test type E.DE168 */ + +/* +@dataElement: HIV.E.DE169 - Rapid diagnostic test for HIV +@activity: HIV.E4 Test mother for HIV using testing algorithm +@description: Antibody test for HIV performed with a rapid diagnostic (RDT) +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Rapid diagnostic test for HIV E.DE169": + exists "Rapid diagnostic test for HIV E.DE169 Condition" + or exists "Rapid diagnostic test for HIV E.DE169 Observation" +define "Rapid diagnostic test for HIV E.DE169 Condition": + Elements."Rapid diagnostic test for HIV E.DE169 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Rapid diagnostic test for HIV E.DE169 Observation": + Elements."Rapid diagnostic test for HIV E.DE169 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Rapid diagnostic test for HIV E.DE169 */ + +/* +@dataElement: HIV.E.DE170 - Enzyme immunoassay for HIV +@activity: HIV.E4 Test mother for HIV using testing algorithm +@description: Antibody test for HIV performed with an enzyme immunoassay (EIA) +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Enzyme immunoassay for HIV E.DE170": + exists "Enzyme immunoassay for HIV E.DE170 Condition" + or exists "Enzyme immunoassay for HIV E.DE170 Observation" +define "Enzyme immunoassay for HIV E.DE170 Condition": + Elements."Enzyme immunoassay for HIV E.DE170 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Enzyme immunoassay for HIV E.DE170 Observation": + Elements."Enzyme immunoassay for HIV E.DE170 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Enzyme immunoassay for HIV E.DE170 */ + +/* +@dataElement: HIV.E.DE171 - Nucleic acid test for HIV +@activity: HIV.E4 Test mother for HIV using testing algorithm +@description: Virological test, which includes testing for early infant diagnosis +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Nucleic acid test for HIV E.DE171": + exists "Nucleic acid test for HIV E.DE171 Condition" + or exists "Nucleic acid test for HIV E.DE171 Observation" +define "Nucleic acid test for HIV E.DE171 Condition": + Elements."Nucleic acid test for HIV E.DE171 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Nucleic acid test for HIV E.DE171 Observation": + Elements."Nucleic acid test for HIV E.DE171 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Nucleic acid test for HIV E.DE171 */ + +/* +@dataElement: HIV.E.DE172 - Dual HIV/syphilis rapid diagnostic test +@activity: HIV.E4 Test mother for HIV using testing algorithm +@description: Antibody test for HIV and syphilis performed with a rapid diagnostic +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Dual HIV/syphilis rapid diagnostic test E.DE172": + exists "Dual HIV/syphilis rapid diagnostic test E.DE172 Condition" + or exists "Dual HIV/syphilis rapid diagnostic test E.DE172 Observation" +define "Dual HIV/syphilis rapid diagnostic test E.DE172 Condition": + Elements."Dual HIV/syphilis rapid diagnostic test E.DE172 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Dual HIV/syphilis rapid diagnostic test E.DE172 Observation": + Elements."Dual HIV/syphilis rapid diagnostic test E.DE172 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Dual HIV/syphilis rapid diagnostic test E.DE172 */ + /* @dataElement: HIV.E.DE173 - Maternal and child health service visit @activity: HIV.E1 Capture or update mother's history @@ -4679,6 +6087,34 @@ define "Baseline CD4 count G.DE3 Value": return O.value /* End of Baseline CD4 count G.DE3 */ +/* +@dataElement: HIV.G.DE8 - Date of viral load sample collection +@activity: HIV.D20 Diagnostics +@description: Date and time when the sample was collected to test the client's HIV viral load +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Date of viral load sample collection G.DE8": + Elements."Date of viral load sample collection G.DE8" O + where O.effective.toInterval() during "Measurement Period" +define "Date of viral load sample collection G.DE8 Value": + "Date of viral load sample collection G.DE8" O + return O.value +/* End of Date of viral load sample collection G.DE8 */ + +/* +@dataElement: HIV.G.DE12 - Viral load test result +@activity: HIV.D20 Diagnostics +@description: Result from the viral load test in number of copies/mL +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Viral load test result G.DE12": + Elements."Viral load test result G.DE12" O + where O.effective.toInterval() during "Measurement Period" +define "Viral load test result G.DE12 Value": + "Viral load test result G.DE12" O + return O.value +/* End of Viral load test result G.DE12 */ + /* @dataElement: HIV.G.DE17 - HBsAg test date @activity: HIV.D20 Diagnostics @@ -4693,6 +6129,73 @@ define "HBsAg test date G.DE17 Value": return O.value /* End of HBsAg test date G.DE17 */ +/* +@dataElement: HIV.G.DE18 - HBsAg test result +@activity: HIV.D20 Diagnostics +@description: Hepatitis B virus test result (HBsAg) +*/ +// TODO: Replace placeholder with relevant CQL logic +define "HBsAg test result G.DE18": + exists "HBsAg test result G.DE18 Observation" +define "HBsAg test result G.DE18 Observation": + Elements."HBsAg test result G.DE18 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of HBsAg test result G.DE18 */ + +/* +@dataElement: HIV.G.DE19 - Positive +@activity: HIV.D20 Diagnostics +@description: HBsAg test result was positive +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Positive G.DE19": + exists "Positive G.DE19 Condition" + or exists "Positive G.DE19 Observation" +define "Positive G.DE19 Condition": + Elements."Positive G.DE19 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Positive G.DE19 Observation": + Elements."Positive G.DE19 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Positive G.DE19 */ + +/* +@dataElement: HIV.G.DE20 - Negative +@activity: HIV.D20 Diagnostics +@description: HBsAg test result was negative +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Negative G.DE20": + exists "Negative G.DE20 Condition" + or exists "Negative G.DE20 Observation" +define "Negative G.DE20 Condition": + Elements."Negative G.DE20 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Negative G.DE20 Observation": + Elements."Negative G.DE20 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Negative G.DE20 */ + +/* +@dataElement: HIV.G.DE21 - Indeterminate +@activity: HIV.D20 Diagnostics +@description: HBsAg test result was indeterminate +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Indeterminate G.DE21": + exists "Indeterminate G.DE21 Condition" + or exists "Indeterminate G.DE21 Observation" +define "Indeterminate G.DE21 Condition": + Elements."Indeterminate G.DE21 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Indeterminate G.DE21 Observation": + Elements."Indeterminate G.DE21 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Indeterminate G.DE21 */ + /* @dataElement: HIV.G.DE42 - HCV test date @activity: HIV.D20 Diagnostics @@ -4707,6 +6210,73 @@ define "HCV test date G.DE42 Value": return O.value /* End of HCV test date G.DE42 */ +/* +@dataElement: HIV.G.DE43 - HCV test result +@activity: HIV.D20 Diagnostics +@description: Hepatitis C virus test result (HCV antibody, HCV RNA or HCV core antigen) +*/ +// TODO: Replace placeholder with relevant CQL logic +define "HCV test result G.DE43": + exists "HCV test result G.DE43 Observation" +define "HCV test result G.DE43 Observation": + Elements."HCV test result G.DE43 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of HCV test result G.DE43 */ + +/* +@dataElement: HIV.G.DE44 - Positive +@activity: HIV.D20 Diagnostics +@description: HCV test result was positive +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Positive G.DE44": + exists "Positive G.DE44 Condition" + or exists "Positive G.DE44 Observation" +define "Positive G.DE44 Condition": + Elements."Positive G.DE44 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Positive G.DE44 Observation": + Elements."Positive G.DE44 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Positive G.DE44 */ + +/* +@dataElement: HIV.G.DE45 - Negative +@activity: HIV.D20 Diagnostics +@description: HCV test result was negative +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Negative G.DE45": + exists "Negative G.DE45 Condition" + or exists "Negative G.DE45 Observation" +define "Negative G.DE45 Condition": + Elements."Negative G.DE45 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Negative G.DE45 Observation": + Elements."Negative G.DE45 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Negative G.DE45 */ + +/* +@dataElement: HIV.G.DE46 - Indeterminate +@activity: HIV.D20 Diagnostics +@description: HCV test result was indeterminate +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Indeterminate G.DE46": + exists "Indeterminate G.DE46 Condition" + or exists "Indeterminate G.DE46 Observation" +define "Indeterminate G.DE46 Condition": + Elements."Indeterminate G.DE46 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Indeterminate G.DE46 Observation": + Elements."Indeterminate G.DE46 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Indeterminate G.DE46 */ + /* @dataElement: HIV.G.DE47 - HCV viral load test date @activity: HIV.D20 Diagnostics @@ -4784,16 +6354,111 @@ define "Syphilis test date G.DE69 Value": return O.value /* End of Syphilis test date G.DE69 */ +/* +@dataElement: HIV.G.DE70 - Syphilis test result +@activity: HIV.D20 Diagnostics +@description: Result from syphilis test +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Syphilis test result G.DE70": + exists "Syphilis test result G.DE70 Observation" +define "Syphilis test result G.DE70 Observation": + Elements."Syphilis test result G.DE70 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Syphilis test result G.DE70 */ + +/* +@dataElement: HIV.G.DE71 - Positive +@activity: HIV.D20 Diagnostics +@description: Test result is positive for syphilis +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Positive G.DE71": + exists "Positive G.DE71 Condition" + or exists "Positive G.DE71 Observation" +define "Positive G.DE71 Condition": + Elements."Positive G.DE71 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Positive G.DE71 Observation": + Elements."Positive G.DE71 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Positive G.DE71 */ + +/* +@dataElement: HIV.G.DE72 - Negative +@activity: HIV.D20 Diagnostics +@description: Test result is negative for syphilis +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Negative G.DE72": + exists "Negative G.DE72 Condition" + or exists "Negative G.DE72 Observation" +define "Negative G.DE72 Condition": + Elements."Negative G.DE72 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Negative G.DE72 Observation": + Elements."Negative G.DE72 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Negative G.DE72 */ + +/* +@dataElement: HIV.G.DE73 - Inconclusive +@activity: HIV.D20 Diagnostics +@description: Test result is inconclusive +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Inconclusive G.DE73": + exists "Inconclusive G.DE73 Condition" + or exists "Inconclusive G.DE73 Observation" +define "Inconclusive G.DE73 Condition": + Elements."Inconclusive G.DE73 Condition" C + where C.prevalenceInterval() overlaps before "Measurement Period" + or C.prevalenceInterval() overlaps after "Measurement Period" +define "Inconclusive G.DE73 Observation": + Elements."Inconclusive G.DE73 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Inconclusive G.DE73 */ + +/* +@dataElement: HIV.H.DE35 - Already knew positive +@activity: HIV.B6 Capture or update client history +@description: The partner or contact of the index case already knew they are HIV-positive +*/ + +define "Already knew positive": + exists(Elements."Already knew positive" O where O.issued during "Measurement Period") +/* End of Already knew positive */ + +/* +@dataElement: HIV.H.DE36 - Newly diagnosed +@activity: HIV.B6 Capture or update client history +@description: The partner or contact of the index case is newly diagnosed as HIV-positive +*/ + +define "Newly diagnosed": + exists(Elements."Newly diagnosed" O where O.issued during "Measurement Period") +/* End of Newly diagnosed */ + +/* +@dataElement: HIV.H.DE37 - Negative +@activity: HIV.B6 Capture or update client history +@description: The partner or contact of the index case is newly diagnosed is HIV-negative +*/ + +define "Negative H.DE37": + exists(Elements."Negative H.DE37" O where O.issued during "Measurement Period") +/* End of Negative H.DE37 */ + /* @dataElement: HIV.H.DE41 - HIV treatment outcome @activity: HIV.H3 Record outreach and result @description: The outcome for the client which is used for reporting retention/attrition. */ -// TODO: Replace placeholder with relevant CQL logic + define "HIV treatment outcome": - exists "HIV treatment outcome Observation" -define "HIV treatment outcome Observation": - Elements."HIV treatment outcome Observation" O + exists Elements."HIV treatment outcome" O where O.effective.toInterval() during "Measurement Period" /* End of HIV treatment outcome */ @@ -4802,17 +6467,9 @@ define "HIV treatment outcome Observation": @activity: HIV.H3 Record outreach and result @description: Twenty-eight days or more since last missed appointment */ -// TODO: Replace placeholder with relevant CQL logic + define "Lost to follow-up": - exists "Lost to follow-up Condition" - or exists "Lost to follow-up Observation" -define "Lost to follow-up Condition": - Elements."Lost to follow-up Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "Lost to follow-up Observation": - Elements."Lost to follow-up Observation" O - where O.effective.toInterval() during "Measurement Period" + exists(Elements."Lost to follow-up") /* End of Lost to follow-up */ /* @@ -4820,17 +6477,9 @@ define "Lost to follow-up Observation": @activity: HIV.H3 Record outreach and result @description: The client transferred to another facility */ -// TODO: Replace placeholder with relevant CQL logic + define "Transferred out": - exists "Transferred out Condition" - or exists "Transferred out Observation" -define "Transferred out Condition": - Elements."Transferred out Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "Transferred out Observation": - Elements."Transferred out Observation" O - where O.effective.toInterval() during "Measurement Period" + exists(Elements."Transferred out" t where t ends during "Measurement Period") /* End of Transferred out */ /* @@ -4838,17 +6487,9 @@ define "Transferred out Observation": @activity: HIV.H3 Record outreach and result @description: People living with HIV previously on ART who are confirmed to have died from any cause */ -// TODO: Replace placeholder with relevant CQL logic + define "Death documented": - exists "Death documented Condition" - or exists "Death documented Observation" -define "Death documented Condition": - Elements."Death documented Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "Death documented Observation": - Elements."Death documented Observation" O - where O.effective.toInterval() during "Measurement Period" + Elements."Death documented" before end of "Measurement Period" /* End of Death documented */ /* @@ -4856,19 +6497,23 @@ define "Death documented Observation": @activity: HIV.H3 Record outreach and result @description: Client was contacted and confirmed to have stopped ART (reasons may include stigma and discrimination, faith healing, etc.) */ -// TODO: Replace placeholder with relevant CQL logic + define "Refused stopped treatment": - exists "Refused stopped treatment Condition" - or exists "Refused stopped treatment Observation" -define "Refused stopped treatment Condition": - Elements."Refused stopped treatment Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "Refused stopped treatment Observation": - Elements."Refused stopped treatment Observation" O - where O.effective.toInterval() during "Measurement Period" + exists(Elements."Refused stopped treatment" O where O.effective.toInterval() during "Measurement Period") /* End of Refused stopped treatment */ +/* +@dataElement: HIV.H.DE47 - On ART +@activity: HIV.H3 Record outreach and result +@description: Client is currently taking ART +*/ +define "On ART H.DE47": + exists(Elements."On ART H.DE47" ART + where ART.effective.toInterval() starts before end of "Measurement Period" + and (ART.effective.toInterval() ends after start of "Measurement Period") + ) +/* End of On ART H.DE47 */ + /* @dataElement: HIV.H.DE73 - Date ART stopped @activity: HIV.H3 Record outreach and result @@ -4901,17 +6546,13 @@ define "Reason ART stopped H.DE74 Observation": @activity: HIV.H3 Record outreach and result @description: Client stopped ART because of toxicity/side effects */ -// TODO: Replace placeholder with relevant CQL logic + define "Toxicity/side effects H.DE75": - exists "Toxicity/side effects H.DE75 Condition" - or exists "Toxicity/side effects H.DE75 Observation" -define "Toxicity/side effects H.DE75 Condition": - Elements."Toxicity/side effects H.DE75 Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "Toxicity/side effects H.DE75 Observation": - Elements."Toxicity/side effects H.DE75 Observation" O - where O.effective.toInterval() during "Measurement Period" + exists([MedicationStatement] MS + where MS.status in {'stopped'} + and exists(MS.reasonCode C where C ~ Concepts."On ART - HIV.H.DE47") + and exists(MS.statusReason R where R ~ Concepts."Toxicity/side effects - HIV.H.DE75") + and start of MS.effective.toInterval() during "Measurement Period") /* End of Toxicity/side effects H.DE75 */ /* @@ -5004,6 +6645,17 @@ define "Other reason for stopping ART H.DE80 Observation": where O.effective.toInterval() during "Measurement Period" /* End of Other reason for stopping ART H.DE80 */ +/* +@dataElement: HIV.PRV.DE1 - At elevated risk for HIV acquisition +@activity: HIV.B6 Capture or update client history +@description: Client is at elevated risk for HIV acquisition, defined according to country/programme context +*/ +// TODO: Replace placeholder with relevant CQL logic +define "At elevated risk for HIV acquisition PRV.DE1": + exists(Elements."At elevated risk for HIV acquisition PRV.DE1" O + where O.effective.toInterval() during "Measurement Period") +/* End of At elevated risk for HIV acquisition PRV.DE1 */ + /* @dataElement: HIV.PRV.DE2 - HIV prevention intervention @activity: HIV.B6 Capture or update client history @@ -5022,17 +6674,11 @@ define "HIV prevention intervention Observation": @activity: HIV.B6 Capture or update client history @description: Client accessed PrEP services */ -// TODO: Replace placeholder with relevant CQL logic + define "PrEP service": - exists "PrEP service Condition" - or exists "PrEP service Observation" -define "PrEP service Condition": - Elements."PrEP service Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "PrEP service Observation": - Elements."PrEP service Observation" O - where O.effective.toInterval() during "Measurement Period" + exists(Elements."PrEP service" prep + where prep.effective.toInterval() during "Measurement Period" + ) /* End of PrEP service */ /* @@ -5040,17 +6686,9 @@ define "PrEP service Observation": @activity: HIV.B6 Capture or update client history @description: Client accessed opioid agonist maintenance treatment (OAMT) services */ -// TODO: Replace placeholder with relevant CQL logic + define "OAMT": - exists "OAMT Condition" - or exists "OAMT Observation" -define "OAMT Condition": - Elements."OAMT Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "OAMT Observation": - Elements."OAMT Observation" O - where O.effective.toInterval() during "Measurement Period" + exists(Elements."OAMT" t where t during "Measurement Period") /* End of OAMT */ /* @@ -5058,17 +6696,9 @@ define "OAMT Observation": @activity: HIV.B6 Capture or update client history @description: Client accessed needle-syringe programme (NSP) services */ -// TODO: Replace placeholder with relevant CQL logic + define "NSP": - exists "NSP Condition" - or exists "NSP Observation" -define "NSP Condition": - Elements."NSP Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "NSP Observation": - Elements."NSP Observation" O - where O.effective.toInterval() during "Measurement Period" + exists(Elements."NSP" DUS where DUS.timing.toInterval() during "Measurement Period") /* End of NSP */ /* @@ -5076,17 +6706,9 @@ define "NSP Observation": @activity: HIV.B6 Capture or update client history @description: Client accessed sexually transmitted infection (STI) services */ -// TODO: Replace placeholder with relevant CQL logic + define "STI services": - exists "STI services Condition" - or exists "STI services Observation" -define "STI services Condition": - Elements."STI services Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "STI services Observation": - Elements."STI services Observation" O - where O.effective.toInterval() during "Measurement Period" + exists(Elements."STI services" STI where STI.performed.toInterval() during "Measurement Period") /* End of STI services */ /* @@ -5094,17 +6716,9 @@ define "STI services Observation": @activity: HIV.B6 Capture or update client history @description: Client accessed voluntary medical male circumcision (VMMC) services */ -// TODO: Replace placeholder with relevant CQL logic + define "VMMC": - exists "VMMC Condition" - or exists "VMMC Observation" -define "VMMC Condition": - Elements."VMMC Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "VMMC Observation": - Elements."VMMC Observation" O - where O.effective.toInterval() during "Measurement Period" + exists(Elements."VMMC" V where V.performed.toInterval() during "Measurement Period") /* End of VMMC */ /* @@ -5112,17 +6726,10 @@ define "VMMC Observation": @activity: HIV.B6 Capture or update client history @description: Client accessed other HIV prevention services */ -// TODO: Replace placeholder with relevant CQL logic + define "Other PRV.DE8": - exists "Other PRV.DE8 Condition" - or exists "Other PRV.DE8 Observation" -define "Other PRV.DE8 Condition": - Elements."Other PRV.DE8 Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "Other PRV.DE8 Observation": - Elements."Other PRV.DE8 Observation" O - where O.effective.toInterval() during "Measurement Period" + exists(Elements."Other PRV.DE8" O + where O.effective.toInterval() during "Measurement Period") /* End of Other PRV.DE8 */ /* @@ -5316,12 +6923,25 @@ define "HIV test date SRV.DE1 Value": return O.value /* End of HIV test date SRV.DE1 */ +/* +@dataElement: HIV.SRV.DE2 - HIV test result +@activity: HIV.B7 Test for HIV using testing algorithm +@description: The result from HIV testing after applying the testing algorithm +*/ +// TODO: Replace placeholder with relevant CQL logic +define "HIV test result SRV.DE2": + exists "HIV test result SRV.DE2 Observation" +define "HIV test result SRV.DE2 Observation": + Elements."HIV test result SRV.DE2 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of HIV test result SRV.DE2 */ + /* @dataElement: HIV.SRV.DE3 - Baseline CD4 count @activity: HIV.D20 Diagnostics @description: CD4 count performed at HIV diagnosis */ -// TODO: Replace placeholder with relevant CQL logic + define "Baseline CD4 count SRV.DE3": Elements."Baseline CD4 count SRV.DE3" O where O.effective.toInterval() during "Measurement Period" @@ -5335,14 +6955,93 @@ define "Baseline CD4 count SRV.DE3 Value": @activity: HIV.D20 Diagnostics @description: Date and time when baseline CD4 count test was conducted */ -// TODO: Replace placeholder with relevant CQL logic + define "Date of baseline CD4 count test SRV.DE4": - Elements."Date of baseline CD4 count test SRV.DE4" O + exists(Elements."Date of baseline CD4 count test SRV.DE4" O where O starts during "Measurement Period") +/* End of Date of baseline CD4 count test SRV.DE4 */ + +/* +@dataElement: HIV.SRV.DE6 - ART start date +@activity: HIV.B8 Provide post-test counselling +@description: The date on which the client started or restarted antiretroviral therapy (ART) +*/ +// TODO: Replace placeholder with relevant CQL logic +define "ART start date SRV.DE6": + Elements."ART start date SRV.DE6" O where O.effective.toInterval() during "Measurement Period" -define "Date of baseline CD4 count test SRV.DE4 Value": - "Date of baseline CD4 count test SRV.DE4" O +define "ART start date SRV.DE6 Value": + "ART start date SRV.DE6" O return O.value -/* End of Date of baseline CD4 count test SRV.DE4 */ +/* End of ART start date SRV.DE6 */ + +/* +@dataElement: HIV.SRV.DE7 - Currently pregnant +@activity: HIV.B6 Capture or update client history +@description: Client is currently pregnant +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Currently pregnant SRV.DE7": + exists "Currently pregnant SRV.DE7 Observation" +define "Currently pregnant SRV.DE7 Observation": + Elements."Currently pregnant SRV.DE7 Observation" O + where O.effective.toInterval() during "Measurement Period" +/* End of Currently pregnant SRV.DE7 */ + +/* +@dataElement: HIV.SRV.DE12 - Date of viral load sample collection +@activity: HIV.D10 Counsel returning client +@description: Date and time when the sample was collected to test the client's HIV viral load +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Date of viral load sample collection SRV.DE12": + Elements."Date of viral load sample collection SRV.DE12" O + where O.effective.toInterval() during "Measurement Period" +define "Date of viral load sample collection SRV.DE12 Value": + "Date of viral load sample collection SRV.DE12" O + return O.value +/* End of Date of viral load sample collection SRV.DE12 */ + +/* +@dataElement: HIV.SRV.DE13 - Viral load test result +@activity: HIV.D20 Diagnostics +@description: Result from the viral load test in number of copies/mL +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Viral load test result SRV.DE13": + Elements."Viral load test result SRV.DE13" O + where O.effective.toInterval() during "Measurement Period" +define "Viral load test result SRV.DE13 Value": + "Viral load test result SRV.DE13" O + return O.value +/* End of Viral load test result SRV.DE13 */ + +/* +@dataElement: HIV.SRV.DE15 - Visit date +@activity: HIV.A2 Gather client details +@description: The date and time of the client's visit +*/ +// TODO: Replace placeholder with relevant CQL logic +define "Visit date SRV.DE15": + Elements."Visit date SRV.DE15" O + where O.effective.toInterval() during "Measurement Period" +define "Visit date SRV.DE15 Value": + "Visit date SRV.DE15" O + return O.value +/* End of Visit date SRV.DE15 */ + +/* +@dataElement: HIV.SRV.DE18 - ANC contact date +@activity: HIV.E1 Capture or update mother's history +@description: The date and time of the client's ANC contact (in the ANC DAK this is called 'Contact date') +*/ +// TODO: Replace placeholder with relevant CQL logic +define "ANC contact date SRV.DE18": + Elements."ANC contact date SRV.DE18" O + where O.effective.toInterval() during "Measurement Period" +define "ANC contact date SRV.DE18 Value": + "ANC contact date SRV.DE18" O + return O.value +/* End of ANC contact date SRV.DE18 */ /* @dataElement: HIV.SRV.DE20 - HIV-exposed infant or child diff --git a/smart-hiv b/smart-hiv new file mode 160000 index 00000000000..a2b06879a97 --- /dev/null +++ b/smart-hiv @@ -0,0 +1 @@ +Subproject commit a2b06879a979d7653d2789b385aef54dceb77143 From bc9e02fa596a07ac86bc5f240125ec248a570a8b Mon Sep 17 00:00:00 2001 From: Piotr Mankowski Date: Fri, 9 Aug 2024 15:32:21 -0700 Subject: [PATCH 06/10] Wsg 99 fixed (#45) * IND 44 * IND 45 * Refactoring and updates to IND44 and IND45 * Added simple Config file * indicators 37-39 * Fixed IG Builder translation issues --------- Co-authored-by: Patric Prado --- input/cql/HIVB2DTLogic.cql | 2 +- input/cql/HIVB7DTLogic.cql | 2 +- input/cql/HIVB9DTLogic.cql | 2 +- input/cql/HIVCommon.cql | 25 +- input/cql/HIVConcepts.cql | 143 +++++- input/cql/HIVConceptsCustom.cql | 2 +- input/cql/HIVConfig.cql | 10 + input/cql/HIVElements.cql | 232 +++------- input/cql/HIVEncounterElements.cql | 70 +-- input/cql/HIVIND11Logic.cql | 2 +- input/cql/HIVIND12Logic.cql | 2 +- input/cql/HIVIND13Logic.cql | 15 +- input/cql/HIVIND14Logic.cql | 3 + input/cql/HIVIND15Logic.cql | 15 +- input/cql/HIVIND16Logic.cql | 15 +- input/cql/HIVIND18Logic.cql | 15 +- input/cql/HIVIND19Logic.cql | 15 +- input/cql/HIVIND20Logic.cql | 15 +- input/cql/HIVIND21Logic.cql | 14 +- input/cql/HIVIND22Logic.cql | 17 +- input/cql/HIVIND24Logic.cql | 13 +- input/cql/HIVIND25Logic.cql | 14 +- input/cql/HIVIND27Logic.cql | 13 +- input/cql/HIVIND28Logic.cql | 13 +- input/cql/HIVIND29Logic.cql | 15 +- input/cql/HIVIND2Logic.cql | 15 +- input/cql/HIVIND30Logic.cql | 13 +- input/cql/HIVIND31Logic.cql | 15 +- input/cql/HIVIND32Logic.cql | 13 +- input/cql/HIVIND33Logic.cql | 13 +- input/cql/HIVIND34Logic.cql | 13 +- input/cql/HIVIND35Logic.cql | 13 +- input/cql/HIVIND37Logic.cql | 43 +- input/cql/HIVIND38Logic.cql | 25 +- input/cql/HIVIND39Logic.cql | 2 +- input/cql/HIVIND3Logic.cql | 15 +- input/cql/HIVIND40Logic.cql | 2 +- input/cql/HIVIND41Logic.cql | 2 +- input/cql/HIVIND42Logic.cql | 2 +- input/cql/HIVIND43Logic.cql | 1 - input/cql/HIVIND44Logic.cql | 31 +- input/cql/HIVIND45Logic.cql | 42 +- input/cql/HIVIND46Logic.cql | 2 +- input/cql/HIVIND47Logic.cql | 2 +- input/cql/HIVIND48Logic.cql | 2 +- input/cql/HIVIND49Logic.cql | 2 +- input/cql/HIVIND4Logic.cql | 16 +- input/cql/HIVIND50Logic.cql | 2 +- input/cql/HIVIND51Logic.cql | 2 +- input/cql/HIVIND52Logic.cql | 2 +- input/cql/HIVIND53Logic.cql | 2 +- input/cql/HIVIND54Logic.cql | 2 +- input/cql/HIVIND55Logic.cql | 2 +- input/cql/HIVIND56Logic.cql | 2 +- input/cql/HIVIND57Logic.cql | 2 +- input/cql/HIVIND58Logic.cql | 2 +- input/cql/HIVIND59Logic.cql | 2 +- input/cql/HIVIND5Logic.cql | 15 +- input/cql/HIVIND60Logic.cql | 2 +- input/cql/HIVIND61Logic.cql | 2 +- input/cql/HIVIND62Logic.cql | 2 +- input/cql/HIVIND63Logic.cql | 2 +- input/cql/HIVIND64Logic.cql | 2 +- input/cql/HIVIND65Logic.cql | 2 +- input/cql/HIVIND66Logic.cql | 2 +- input/cql/HIVIND67Logic.cql | 2 +- input/cql/HIVIND68Logic.cql | 2 +- input/cql/HIVIND69Logic.cql | 2 +- input/cql/HIVIND6Logic.cql | 15 +- input/cql/HIVIND70Logic.cql | 2 +- input/cql/HIVIND71Logic.cql | 2 +- input/cql/HIVIND72Logic.cql | 2 +- input/cql/HIVIND73Logic.cql | 2 +- input/cql/HIVIND74Logic.cql | 2 +- input/cql/HIVIND75Logic.cql | 2 +- input/cql/HIVIND76Logic.cql | 2 +- input/cql/HIVIND77Logic.cql | 2 +- input/cql/HIVIND78Logic.cql | 2 +- input/cql/HIVIND79Logic.cql | 2 +- input/cql/HIVIND7Logic.cql | 15 +- input/cql/HIVIND80Logic.cql | 2 +- input/cql/HIVIND81Logic.cql | 2 +- input/cql/HIVIND82Logic.cql | 2 +- input/cql/HIVIND83Logic.cql | 2 +- input/cql/HIVIND84Logic.cql | 2 +- input/cql/HIVIND85Logic.cql | 2 +- input/cql/HIVIND86Logic.cql | 2 +- input/cql/HIVIND87Logic.cql | 2 +- input/cql/HIVIND88Logic.cql | 2 +- input/cql/HIVIND89Logic.cql | 2 +- input/cql/HIVIND8Logic.cql | 15 +- input/cql/HIVIND90Logic.cql | 2 +- input/cql/HIVIND91Logic.cql | 2 +- input/cql/HIVIND92Logic.cql | 2 +- input/cql/HIVIND93Logic.cql | 2 +- input/cql/HIVIND94Logic.cql | 2 +- input/cql/HIVIND95Logic.cql | 2 +- input/cql/HIVIND96Logic.cql | 2 +- input/cql/HIVIND9Logic.cql | 2 +- input/cql/HIVIndicatorElements.cql | 438 ++++++------------- input/fsh/libraries/HIVB2DTLogic.fsh | 2 +- input/fsh/libraries/HIVB7DTLogic.fsh | 2 +- input/fsh/libraries/HIVB9DTLogic.fsh | 2 +- input/fsh/libraries/HIVCommon.fsh | 2 +- input/fsh/libraries/HIVConcepts.fsh | 2 +- input/fsh/libraries/HIVConceptsCustom.fsh | 2 +- input/fsh/libraries/HIVElements.fsh | 2 +- input/fsh/libraries/HIVEncounterElements.fsh | 2 +- input/fsh/libraries/HIVIND11Logic.fsh | 2 +- input/fsh/libraries/HIVIND12Logic.fsh | 2 +- input/fsh/libraries/HIVIND13Logic.fsh | 2 +- input/fsh/libraries/HIVIND14Logic.fsh | 2 +- input/fsh/libraries/HIVIND15Logic.fsh | 2 +- input/fsh/libraries/HIVIND16Logic.fsh | 2 +- input/fsh/libraries/HIVIND18Logic.fsh | 2 +- input/fsh/libraries/HIVIND19Logic.fsh | 2 +- input/fsh/libraries/HIVIND20Logic.fsh | 2 +- input/fsh/libraries/HIVIND21Logic.fsh | 2 +- input/fsh/libraries/HIVIND22Logic.fsh | 2 +- input/fsh/libraries/HIVIND24Logic.fsh | 2 +- input/fsh/libraries/HIVIND25Logic.fsh | 2 +- input/fsh/libraries/HIVIND27Logic.fsh | 2 +- input/fsh/libraries/HIVIND28Logic.fsh | 2 +- input/fsh/libraries/HIVIND29Logic.fsh | 2 +- input/fsh/libraries/HIVIND2Logic.fsh | 2 +- input/fsh/libraries/HIVIND30Logic.fsh | 2 +- input/fsh/libraries/HIVIND31Logic.fsh | 2 +- input/fsh/libraries/HIVIND32Logic.fsh | 2 +- input/fsh/libraries/HIVIND33Logic.fsh | 2 +- input/fsh/libraries/HIVIND34Logic.fsh | 2 +- input/fsh/libraries/HIVIND35Logic.fsh | 2 +- input/fsh/libraries/HIVIND37Logic.fsh | 2 +- input/fsh/libraries/HIVIND38Logic.fsh | 2 +- input/fsh/libraries/HIVIND39Logic.fsh | 2 +- input/fsh/libraries/HIVIND3Logic.fsh | 2 +- input/fsh/libraries/HIVIND40Logic.fsh | 2 +- input/fsh/libraries/HIVIND41Logic.fsh | 2 +- input/fsh/libraries/HIVIND42Logic.fsh | 2 +- input/fsh/libraries/HIVIND43Logic.fsh | 2 +- input/fsh/libraries/HIVIND44Logic.fsh | 2 +- input/fsh/libraries/HIVIND45Logic.fsh | 2 +- input/fsh/libraries/HIVIND46Logic.fsh | 2 +- input/fsh/libraries/HIVIND47Logic.fsh | 2 +- input/fsh/libraries/HIVIND48Logic.fsh | 2 +- input/fsh/libraries/HIVIND49Logic.fsh | 2 +- input/fsh/libraries/HIVIND4Logic.fsh | 2 +- input/fsh/libraries/HIVIND50Logic.fsh | 2 +- input/fsh/libraries/HIVIND51Logic.fsh | 2 +- input/fsh/libraries/HIVIND52Logic.fsh | 2 +- input/fsh/libraries/HIVIND53Logic.fsh | 2 +- input/fsh/libraries/HIVIND54Logic.fsh | 2 +- input/fsh/libraries/HIVIND55Logic.fsh | 2 +- input/fsh/libraries/HIVIND56Logic.fsh | 2 +- input/fsh/libraries/HIVIND57Logic.fsh | 2 +- input/fsh/libraries/HIVIND58Logic.fsh | 2 +- input/fsh/libraries/HIVIND59Logic.fsh | 2 +- input/fsh/libraries/HIVIND5Logic.fsh | 2 +- input/fsh/libraries/HIVIND60Logic.fsh | 2 +- input/fsh/libraries/HIVIND61Logic.fsh | 2 +- input/fsh/libraries/HIVIND62Logic.fsh | 2 +- input/fsh/libraries/HIVIND63Logic.fsh | 2 +- input/fsh/libraries/HIVIND64Logic.fsh | 2 +- input/fsh/libraries/HIVIND65Logic.fsh | 2 +- input/fsh/libraries/HIVIND66Logic.fsh | 2 +- input/fsh/libraries/HIVIND67Logic.fsh | 2 +- input/fsh/libraries/HIVIND68Logic.fsh | 2 +- input/fsh/libraries/HIVIND69Logic.fsh | 2 +- input/fsh/libraries/HIVIND6Logic.fsh | 2 +- input/fsh/libraries/HIVIND70Logic.fsh | 2 +- input/fsh/libraries/HIVIND71Logic.fsh | 2 +- input/fsh/libraries/HIVIND72Logic.fsh | 2 +- input/fsh/libraries/HIVIND73Logic.fsh | 2 +- input/fsh/libraries/HIVIND74Logic.fsh | 2 +- input/fsh/libraries/HIVIND75Logic.fsh | 2 +- input/fsh/libraries/HIVIND76Logic.fsh | 2 +- input/fsh/libraries/HIVIND77Logic.fsh | 2 +- input/fsh/libraries/HIVIND78Logic.fsh | 2 +- input/fsh/libraries/HIVIND79Logic.fsh | 2 +- input/fsh/libraries/HIVIND7Logic.fsh | 2 +- input/fsh/libraries/HIVIND80Logic.fsh | 2 +- input/fsh/libraries/HIVIND81Logic.fsh | 2 +- input/fsh/libraries/HIVIND82Logic.fsh | 2 +- input/fsh/libraries/HIVIND83Logic.fsh | 2 +- input/fsh/libraries/HIVIND84Logic.fsh | 2 +- input/fsh/libraries/HIVIND85Logic.fsh | 2 +- input/fsh/libraries/HIVIND86Logic.fsh | 2 +- input/fsh/libraries/HIVIND87Logic.fsh | 2 +- input/fsh/libraries/HIVIND88Logic.fsh | 2 +- input/fsh/libraries/HIVIND89Logic.fsh | 2 +- input/fsh/libraries/HIVIND8Logic.fsh | 2 +- input/fsh/libraries/HIVIND90Logic.fsh | 2 +- input/fsh/libraries/HIVIND91Logic.fsh | 2 +- input/fsh/libraries/HIVIND92Logic.fsh | 2 +- input/fsh/libraries/HIVIND93Logic.fsh | 2 +- input/fsh/libraries/HIVIND94Logic.fsh | 2 +- input/fsh/libraries/HIVIND95Logic.fsh | 2 +- input/fsh/libraries/HIVIND96Logic.fsh | 2 +- input/fsh/libraries/HIVIND9Logic.fsh | 2 +- input/fsh/libraries/HIVIndicatorElements.fsh | 2 +- input/fsh/measures/HIVIND11.fsh | 4 +- input/fsh/measures/HIVIND12.fsh | 4 +- input/fsh/measures/HIVIND13.fsh | 4 +- input/fsh/measures/HIVIND14.fsh | 4 +- input/fsh/measures/HIVIND15.fsh | 4 +- input/fsh/measures/HIVIND16.fsh | 4 +- input/fsh/measures/HIVIND18.fsh | 4 +- input/fsh/measures/HIVIND19.fsh | 4 +- input/fsh/measures/HIVIND2.fsh | 4 +- input/fsh/measures/HIVIND20.fsh | 4 +- input/fsh/measures/HIVIND21.fsh | 4 +- input/fsh/measures/HIVIND22.fsh | 4 +- input/fsh/measures/HIVIND24.fsh | 4 +- input/fsh/measures/HIVIND25.fsh | 4 +- input/fsh/measures/HIVIND27.fsh | 4 +- input/fsh/measures/HIVIND28.fsh | 4 +- input/fsh/measures/HIVIND29.fsh | 4 +- input/fsh/measures/HIVIND3.fsh | 4 +- input/fsh/measures/HIVIND30.fsh | 4 +- input/fsh/measures/HIVIND31.fsh | 4 +- input/fsh/measures/HIVIND32.fsh | 4 +- input/fsh/measures/HIVIND33.fsh | 4 +- input/fsh/measures/HIVIND34.fsh | 4 +- input/fsh/measures/HIVIND35.fsh | 4 +- input/fsh/measures/HIVIND37.fsh | 4 +- input/fsh/measures/HIVIND38.fsh | 4 +- input/fsh/measures/HIVIND39.fsh | 4 +- input/fsh/measures/HIVIND4.fsh | 4 +- input/fsh/measures/HIVIND40.fsh | 4 +- input/fsh/measures/HIVIND41.fsh | 4 +- input/fsh/measures/HIVIND42.fsh | 4 +- input/fsh/measures/HIVIND43.fsh | 4 +- input/fsh/measures/HIVIND44.fsh | 4 +- input/fsh/measures/HIVIND45.fsh | 4 +- input/fsh/measures/HIVIND46.fsh | 4 +- input/fsh/measures/HIVIND47.fsh | 4 +- input/fsh/measures/HIVIND48.fsh | 4 +- input/fsh/measures/HIVIND49.fsh | 4 +- input/fsh/measures/HIVIND5.fsh | 4 +- input/fsh/measures/HIVIND50.fsh | 4 +- input/fsh/measures/HIVIND51.fsh | 4 +- input/fsh/measures/HIVIND52.fsh | 4 +- input/fsh/measures/HIVIND53.fsh | 4 +- input/fsh/measures/HIVIND54.fsh | 4 +- input/fsh/measures/HIVIND55.fsh | 4 +- input/fsh/measures/HIVIND56.fsh | 4 +- input/fsh/measures/HIVIND57.fsh | 4 +- input/fsh/measures/HIVIND58.fsh | 4 +- input/fsh/measures/HIVIND59.fsh | 4 +- input/fsh/measures/HIVIND6.fsh | 4 +- input/fsh/measures/HIVIND60.fsh | 4 +- input/fsh/measures/HIVIND61.fsh | 4 +- input/fsh/measures/HIVIND62.fsh | 4 +- input/fsh/measures/HIVIND63.fsh | 4 +- input/fsh/measures/HIVIND64.fsh | 4 +- input/fsh/measures/HIVIND65.fsh | 4 +- input/fsh/measures/HIVIND66.fsh | 4 +- input/fsh/measures/HIVIND67.fsh | 4 +- input/fsh/measures/HIVIND68.fsh | 4 +- input/fsh/measures/HIVIND69.fsh | 4 +- input/fsh/measures/HIVIND7.fsh | 4 +- input/fsh/measures/HIVIND70.fsh | 4 +- input/fsh/measures/HIVIND71.fsh | 4 +- input/fsh/measures/HIVIND72.fsh | 4 +- input/fsh/measures/HIVIND73.fsh | 4 +- input/fsh/measures/HIVIND74.fsh | 4 +- input/fsh/measures/HIVIND75.fsh | 4 +- input/fsh/measures/HIVIND76.fsh | 4 +- input/fsh/measures/HIVIND77.fsh | 4 +- input/fsh/measures/HIVIND78.fsh | 4 +- input/fsh/measures/HIVIND79.fsh | 4 +- input/fsh/measures/HIVIND8.fsh | 4 +- input/fsh/measures/HIVIND80.fsh | 4 +- input/fsh/measures/HIVIND81.fsh | 4 +- input/fsh/measures/HIVIND82.fsh | 4 +- input/fsh/measures/HIVIND83.fsh | 4 +- input/fsh/measures/HIVIND84.fsh | 4 +- input/fsh/measures/HIVIND85.fsh | 4 +- input/fsh/measures/HIVIND86.fsh | 4 +- input/fsh/measures/HIVIND87.fsh | 4 +- input/fsh/measures/HIVIND88.fsh | 4 +- input/fsh/measures/HIVIND89.fsh | 4 +- input/fsh/measures/HIVIND9.fsh | 4 +- input/fsh/measures/HIVIND90.fsh | 4 +- input/fsh/measures/HIVIND91.fsh | 4 +- input/fsh/measures/HIVIND92.fsh | 4 +- input/fsh/measures/HIVIND93.fsh | 4 +- input/fsh/measures/HIVIND94.fsh | 4 +- input/fsh/measures/HIVIND95.fsh | 4 +- input/fsh/measures/HIVIND96.fsh | 4 +- 289 files changed, 1037 insertions(+), 1083 deletions(-) create mode 100644 input/cql/HIVConfig.cql diff --git a/input/cql/HIVB2DTLogic.cql b/input/cql/HIVB2DTLogic.cql index 4ca521660bf..a5c62b05c30 100644 --- a/input/cql/HIVB2DTLogic.cql +++ b/input/cql/HIVB2DTLogic.cql @@ -24,7 +24,7 @@ include HIVCommon version '0.0.1' called HIC include HIVConcepts called HCx include HIVEncounterElements called Elements include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom context Patient diff --git a/input/cql/HIVB7DTLogic.cql b/input/cql/HIVB7DTLogic.cql index 07ce928bb31..c1932ea531c 100644 --- a/input/cql/HIVB7DTLogic.cql +++ b/input/cql/HIVB7DTLogic.cql @@ -32,7 +32,7 @@ valueset "Non-reactive": 'http://fhir.org/guides/who/hiv-dak/ValueSet/hiv-b-de10 include FHIRHelpers version '4.0.1' include WHOCommon called WCom -include FHIRCommon called FC + //code "Assay 1 Reactive": 'HIV.B.DE95' from "TestresultofHIVassay1Codes" display 'Assay 1 reactive' //code "Reactive": 'HIV.B.DE103' from "HIV_DAK_Codes" display 'Reactive' diff --git a/input/cql/HIVB9DTLogic.cql b/input/cql/HIVB9DTLogic.cql index baf76772eeb..63e19f653ff 100644 --- a/input/cql/HIVB9DTLogic.cql +++ b/input/cql/HIVB9DTLogic.cql @@ -27,7 +27,7 @@ include HIVConcepts called HCx include HIVConfig called Config include HIVEncounterElements called Elements include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Included for PlanDefinition include WHOConcepts called WCx diff --git a/input/cql/HIVCommon.cql b/input/cql/HIVCommon.cql index 831bca5e079..7aa28b58e9c 100644 --- a/input/cql/HIVCommon.cql +++ b/input/cql/HIVCommon.cql @@ -4,7 +4,7 @@ using FHIR version '4.0.1' include FHIRHelpers version '4.0.1' include WHOCommon called WCom -//include FHIRCommon called FC +// include HIVConcepts called HC include HIVConceptsCustom called HCC include HIVElements called HE @@ -45,7 +45,7 @@ define "Elevated Viral load test during Measurement Period": HE."Viral load test result D.DE387" VL with "viral load sample collection" P such that VL.partOf.references(P) and P.performed.toInterval() during "Measurement Period" - where VL.value > 1000 'copies/ml' + where VL.value > 1000 sort by start of effective.toInterval() @@ -137,24 +137,6 @@ define "By Age Stratifier 3": * By state stratifier */ -define "By Geographic Region Stratifier": - First(Patient.address A where A.use in { 'home' }).state - -/* - * By Administrative Gender of Patient Stratifier - * Need to expand codes - */ - -define "By Administrative Gender Stratifier": - case - when Patient.gender = 'male' then HC."Male" - when Patient.gender = 'female' then HC."Female" - when Patient.gender = 'transgender female' then HC."Transgender female" - when Patient.gender = 'transgender male' then HC."Transgender male" - else HC."Other - HIV.A.DE23" - end - - define "HIV status of partner or contact": case when HIE."Already knew positive" then HC."Already knew positive" @@ -919,6 +901,3 @@ define "VMMC_adverse_event_Postoperative": where P.status = 'completed' and P.code ~ HC."STI testing and treatment services" - - - diff --git a/input/cql/HIVConcepts.cql b/input/cql/HIVConcepts.cql index e5e73babe3f..9d68baf5a4f 100644 --- a/input/cql/HIVConcepts.cql +++ b/input/cql/HIVConcepts.cql @@ -10,14 +10,27 @@ library HIVConcepts codesystem "HIVConcepts": 'http://smart.who.int/hiv/CodeSystem/HIVConcepts' +valueset "Referred by Choices": 'http://smart.who.int/hiv/ValueSet/HIV.A.DE5' +valueset "Country of birth Choices": 'http://smart.who.int/hiv/ValueSet/HIV.A.DE13' valueset "Gender Choices": 'http://smart.who.int/hiv/ValueSet/HIV.A.DE18' +valueset "Sex Choices": 'http://smart.who.int/hiv/ValueSet/HIV.A.DE25' +valueset "Marital Status Choices": 'http://smart.who.int/hiv/ValueSet/HIV.A.DE30' +valueset "[Administrative Area] Choices": 'http://smart.who.int/hiv/ValueSet/HIV.A.DE43' +valueset "Communication preferences Choices": 'http://smart.who.int/hiv/ValueSet/HIV.A.DE46' valueset "Reason for visit - HIV.B.DE1 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE1' valueset "Referred through partner services Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE5' valueset "Type of contact or partner for partner services Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE8' valueset "Testing entry point Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE15' +valueset "Entry point for community-level testing Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE18' +valueset "Entry point for facility-level testing - HIV.B.DE22 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE22' valueset "Partner HIV status reported Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE33' +valueset "Partner is from a key population Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE37' +valueset "HIV self-test result Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE44' valueset "Key population member type - HIV.B.DE50 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE50' valueset "HIV exposure type Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE61' +valueset "HIV diagnosing facility Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE66' +valueset "HIV serotype Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE68' +valueset "Type of contact elicited Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE74' valueset "HIV test type - HIV.B.DE81 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE81' valueset "Assay number in testing strategy - HIV.B.DE88 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE88' valueset "Test result of HIV assay 1 - HIV.B.DE94 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE94' @@ -26,35 +39,53 @@ valueset "Test result of HIV assay 3 - HIV.B.DE102 Choices": 'http://smart.who.i valueset "Test result of HIV assay 1 repeated - HIV.B.DE106 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE106' valueset "HIV test result - HIV.B.DE111 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE111' valueset "HIV status Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE115' +valueset "Site where positive HIV test confirmed Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE120' valueset "Probable route of transmission Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE121' +valueset "Partner HIV test result Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE132' +valueset "Partner HIV status confirmed Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE136' valueset "Counselling provided Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE142' valueset "Prevention services offered and referrals - HIV.B.DE149 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE149' valueset "Sexual and reproductive health integrated services - HIV.B.DE158 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE158' valueset "Offer other clinical services - HIV.B.DE165 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE165' valueset "Other support services - HIV.B.DE172 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE172' +valueset "Intimate partner violence enquiry results Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE179' valueset "Type of follow-up appointment - HIV.B.DE191 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE191' valueset "Adverse event severity Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE201' valueset "Timing of adverse event Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE204' valueset "Type of adverse VMMC event Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE207' valueset "Syndrome/STI diagnosed - HIV.B.DE226 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE226' +valueset "STI tested for - HIV.B.DE237 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE237' valueset "Syphilis test result - HIV.B.DE250 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE250' valueset "Gonorrhoea test result - HIV.B.DE256 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE256' valueset "Type of specimen - HIV.B.DE261 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE261' +valueset "Syphilis test type - HIV.B.DE269 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE269' valueset "Neisseria gonorrhoeae test type - HIV.B.DE276 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE276' +valueset "Chlamydia trachomatis test type - HIV.B.DE284 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE284' +valueset "Trichomonas vaginalis test type - HIV.B.DE293 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE293' +valueset "Herpes simplex virus HSV test type - HIV.B.DE301 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE301' +valueset "Mycoplasma genitalium test type - HIV.B.DE306 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE306' +valueset "STI test result - HIV.B.DE312 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE312' +valueset "Confirmatory syphilis test type - HIV.B.DE317 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE317' +valueset "Confirmatory STI test result - HIV.B.DE325 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE325' +valueset "Reason for PrEP visit Choices": 'http://smart.who.int/hiv/ValueSet/HIV.C.DE1' valueset "PrEP dosing type Choices": 'http://smart.who.int/hiv/ValueSet/HIV.C.DE11' valueset "Current PrEP regimen Choices": 'http://smart.who.int/hiv/ValueSet/HIV.C.DE17' valueset "Experience with PrEP Choices": 'http://smart.who.int/hiv/ValueSet/HIV.C.DE24' valueset "PEP history Choices": 'http://smart.who.int/hiv/ValueSet/HIV.C.DE31' valueset "Signs of substantial risk of HIV infection - HIV.C.DE36 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.C.DE36' +valueset "Pregnancy intention in serodiscordant partnerships Choices": 'http://smart.who.int/hiv/ValueSet/HIV.C.DE41' valueset "Acute HIV infection symptoms - HIV.C.DE46 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.C.DE46' valueset "Sex partners HIV treatment status Choices": 'http://smart.who.int/hiv/ValueSet/HIV.C.DE55' +valueset "Screenings and diagnostics for PrEP users Choices": 'http://smart.who.int/hiv/ValueSet/HIV.C.DE63' valueset "Medications prescribed - HIV.C.DE75 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.C.DE75' valueset "PrEP product prescribed Choices": 'http://smart.who.int/hiv/ValueSet/HIV.C.DE80' valueset "Preferred PEP backbone regimen Choices": 'http://smart.who.int/hiv/ValueSet/HIV.C.DE91' valueset "Alternative PEP backbone regimen Choices": 'http://smart.who.int/hiv/ValueSet/HIV.C.DE95' valueset "Preferred third PEP drug Choices": 'http://smart.who.int/hiv/ValueSet/HIV.C.DE99' valueset "Alternative third PEP drug Choices": 'http://smart.who.int/hiv/ValueSet/HIV.C.DE101' +valueset "Sex factor for estimating creatinine clearance Choices": 'http://smart.who.int/hiv/ValueSet/HIV.C.DE107' valueset "Contraindications to PrEP usage Choices": 'http://smart.who.int/hiv/ValueSet/HIV.C.DE112' +valueset "PrEP regimen prescribed Choices": 'http://smart.who.int/hiv/ValueSet/HIV.C.DE122' valueset "Type of follow-up appointment - HIV.C.DE125 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.C.DE125' valueset "Prevention services offered and referrals - HIV.C.DE131 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.C.DE131' valueset "Condom type Choices": 'http://smart.who.int/hiv/ValueSet/HIV.C.DE138' @@ -65,6 +96,13 @@ valueset "Other support services - HIV.C.DE164 Choices": 'http://smart.who.int/h valueset "Reason for visit - HIV.D.DE1 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE1' valueset "Signs of serious illness Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE17' valueset "ART start type Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE43' +valueset "Facility transferred from Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE52' +valueset "Facility where client first enrolled in HIV care Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE55' +valueset "Antiretroviral ARV drugs received prior to enrolment Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE56' +valueset "Location ARV drugs received prior to enrolment Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE63' +valueset "ARV drug regimen received prior to enrolment Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE64' +valueset "Existing chronic health conditions Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE65' +valueset "Original first-line ART regimen Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE74' valueset "Current ART regimen Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE75' valueset "Preferred first-line ART regimen Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE77' valueset "Alternative first-line ART regimen Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE78' @@ -73,51 +111,125 @@ valueset "Preferred second-line ART regimen Choices": 'http://smart.who.int/hiv/ valueset "Alternative second-line ART regimen Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE81' valueset "Optimal regimen for transition Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE82' valueset "Current ART regimen first-, second-, or third-line Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE83' +valueset "ART regimen Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE90' valueset "ART regimen composition Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE128' +valueset "ART regimen drug class Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE146' valueset "Prevention services offered and referrals - HIV.D.DE152 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE152' valueset "Sexual and reproductive health integrated services - HIV.D.DE156 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE156' valueset "HBsAg test result - HIV.D.DE162 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE162' +valueset "HBV treatment regimen prescribed Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE168' valueset "HCV test result - HIV.D.DE170 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE170' +valueset "HCV treatment regimen prescribed Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE177' valueset "HCV viral load test result - HIV.D.DE179 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE179' valueset "HCV medicine type Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE182' valueset "HIV clinical stage - HIV.D.DE186 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE186' +valueset "Reasons for adherence problem - HIV.D.DE197 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE197' valueset "Reason ART stopped - HIV.D.DE217 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE217' valueset "Treatment failure Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE225' +valueset "General care activities recommended Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE229' +valueset "Preventing and treating coinfections Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE247' valueset "Risk factors, comorbidities and coinfections signs and symptoms Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE259' valueset "WHO HIV clinical stage condition or symptom - HIV.D.DE289 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE289' +valueset "Clinical stage at start of ART Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE358' +valueset "Reasons for delayed ART initiation Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE370' valueset "Time to start ART Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE383' valueset "Reason for HIV viral load test Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE391' valueset "Monitoring examinations Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE399' valueset "Reason for ARV drug regimen substitution Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE418' +valueset "Reason for regimen switch Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE430' +valueset "ART regimen prescribed Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE444' +valueset "Coinfection status at ART start Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE446' +valueset "Pregnant and breastfeeding status at ART start Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE449' valueset "Medications prescribed - HIV.D.DE457 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE457' +valueset "Medications dispensed Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE461' valueset "Type of treatment-limiting toxicity Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE466' +valueset "Reasons for substitution within first-line regimen Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE482' +valueset "New antiretroviral regimen after substitution within first-line regimen Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE483' +valueset "New regimen after switch to second-line regimen Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE485' +valueset "Reason for switch to second-line regimen Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE486' +valueset "Reasons for substitution within second-line regimen Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE488' +valueset "New regimens after substitution within second-line regimen Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE489' +valueset "New regimen after switch to third-line regimen Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE491' +valueset "Reason for switch to third-line regimen Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE492' +valueset "Reasons for substitution within third-line regimen Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE494' +valueset "New regimens after substitution within third-line regimen Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE495' +valueset "HIV status of family member Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE514' valueset "Other support services - HIV.D.DE519 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE519' valueset "Type of follow-up appointment - HIV.D.DE525 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE525' +valueset "Reason blood pressure reading not done Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE532' valueset "Current medications Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE537' +valueset "Allergies Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE560' +valueset "Family planning method used Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE569' +valueset "Medication status Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE593' +valueset "Vaccine brand Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE603' +valueset "Vaccine type Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE604' +valueset "Vaccination location Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE606' +valueset "Disease targeted Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE610' +valueset "Reason immunization was not provided Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE636' +valueset "Reason malaria prophylaxis not provided Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE646' valueset "Cervical cancer primary screening test type Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE658' +valueset "HPV-DNA cervical cancer screening test result Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE664' +valueset "VIA cervical cancer screening test result Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE668' +valueset "Cervical cytology screening test result Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE673' +valueset "Cervical cancer triage test type Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE681' +valueset "HPV16/18 test result Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE688' +valueset "Cervical cancer colposcopy result Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE691' +valueset "Cervical cancer histopathology result Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE697' valueset "Cervical cancer screening outcome Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE706' valueset "Cervical cancer diagnosis Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE709' valueset "Cervical cancer stage at diagnosis Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE712' +valueset "Treatment method for cervical precancer lesions Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE719' valueset "Invasive cervical cancer treatment method Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE731' +valueset "Entry point for facility-level testing - HIV.D.DE746 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE746' valueset "Offer other clinical services - HIV.D.DE753 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE753' valueset "DSD ART models Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE764' valueset "Syndrome/STI diagnosed - HIV.D.DE778 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE778' +valueset "STI tested for - HIV.D.DE789 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE789' valueset "Syphilis test result - HIV.D.DE802 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE802' valueset "Gonorrhoea test result - HIV.D.DE808 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE808' valueset "Type of specimen - HIV.D.DE813 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE813' +valueset "Syphilis test type - HIV.D.DE821 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE821' valueset "Neisseria gonorrhoeae test type - HIV.D.DE828 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE828' +valueset "Chlamydia trachomatis test type - HIV.D.DE836 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE836' +valueset "Trichomonas vaginalis test type - HIV.D.DE845 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE845' +valueset "Herpes simplex virus HSV test type - HIV.D.DE853 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE853' +valueset "Mycoplasma genitalium test type - HIV.D.DE858 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE858' +valueset "STI test result - HIV.D.DE864 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE864' +valueset "Confirmatory syphilis test type - HIV.D.DE869 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE869' +valueset "Confirmatory STI test result - HIV.D.DE877 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE877' +valueset "Staging of liver disease Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE893' +valueset "WHO functional status Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE897' valueset "Medication/drug Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE903' valueset "WHO HIV clinical stage condition or symptom - HIV.D.DE934 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE934' valueset "TB diagnosis result Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE939' +valueset "Method of TB diagnosis Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE942' +valueset "TB treatment history Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE947' valueset "TB screening algorithm Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE956' valueset "Symptoms of TB Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE973' valueset "TB screening result Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE986' valueset "TB diagnostic test category Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE992' +valueset "TB treatment outcome Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE1002' +valueset "TB treatment regimen composition Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE1010' +valueset "TB status at ART start Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE1019' valueset "TPT regimen type Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE1028' valueset "TB preventive treatment TPT status Choices": 'http://smart.who.int/hiv/ValueSet/HIV.D.DE1034' +valueset "Source of gestational age Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE6' +valueset "Past pregnancy complications Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE17' valueset "Timing of ART initiation Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE41' +valueset "Pregnancy outcome Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE47' +valueset "Delivery mode Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE52' +valueset "Preterm birth status Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE62' valueset "Place of delivery Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE67' +valueset "Cause of death of mother Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE75' +valueset "Gender of infant Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE91' +valueset "Maternal HIV test result Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE104' +valueset "Infant or child exposure to HIV Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE108' valueset "Key population member type - HIV.E.DE114 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE114' +valueset "Infant feeding practice Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE127' +valueset "Type of iron supplement dosage provided Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE136' +valueset "Maternal HIV status Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE141' +valueset "Maternal HIV status at first ANC visit - HIV.E.DE145 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE145' +valueset "Maternal syphilis test result Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE149' valueset "Signs of substantial risk of HIV infection - HIV.E.DE155 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE155' valueset "HIV test type - HIV.E.DE168 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE168' valueset "Maternal and child health service visit Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE173' @@ -134,17 +246,39 @@ valueset "Test result of syphilis assay 1 Choices": 'http://smart.who.int/hiv/Va valueset "Test result of syphilis assay 1 repeated Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE220' valueset "Infant HIV status Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE225' valueset "Final diagnosis of HIV-exposed infant - HIV.E.DE230 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE230' +valueset "HIV-exposed infant reason for unknown final status Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE234' +valueset "Cause of death of infant Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE240' +valueset "Blood group and Rh factor Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE246' +valueset "Asymptomatic bacteriuria ASB test result Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE255' +valueset "Urine protein test result Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE259' +valueset "Type of hypertensive disorder Choices": 'http://smart.who.int/hiv/ValueSet/HIV.E.DE264' +valueset "HIV viral load specimen type Choices": 'http://smart.who.int/hiv/ValueSet/HIV.G.DE13' valueset "HBsAg test result - HIV.G.DE18 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.G.DE18' +valueset "Reason Hepatitis B test not conducted Choices": 'http://smart.who.int/hiv/ValueSet/HIV.G.DE22' +valueset "Hepatitis B diagnosis Choices": 'http://smart.who.int/hiv/ValueSet/HIV.G.DE29' +valueset "Reason Hepatitis C test not done Choices": 'http://smart.who.int/hiv/ValueSet/HIV.G.DE35' valueset "HCV test result - HIV.G.DE43 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.G.DE43' valueset "HCV viral load test result - HIV.G.DE48 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.G.DE48' +valueset "Hepatitis C diagnosis Choices": 'http://smart.who.int/hiv/ValueSet/HIV.G.DE51' +valueset "Syphilis test type - HIV.G.DE55 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.G.DE55' +valueset "Reason syphilis test not done Choices": 'http://smart.who.int/hiv/ValueSet/HIV.G.DE62' valueset "Syphilis test result - HIV.G.DE70 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.G.DE70' +valueset "Syphilis diagnosis Choices": 'http://smart.who.int/hiv/ValueSet/HIV.G.DE74' +valueset "Reason for follow-up Choices": 'http://smart.who.int/hiv/ValueSet/HIV.H.DE1' +valueset "Contact method Choices": 'http://smart.who.int/hiv/ValueSet/HIV.H.DE13' +valueset "Source of information Choices": 'http://smart.who.int/hiv/ValueSet/HIV.H.DE17' +valueset "Outcome from outreach attempt Choices": 'http://smart.who.int/hiv/ValueSet/HIV.H.DE23' valueset "HIV status of partner or contact Choices": 'http://smart.who.int/hiv/ValueSet/HIV.H.DE34' valueset "HIV treatment outcome Choices": 'http://smart.who.int/hiv/ValueSet/HIV.H.DE41' +valueset "Transfer to facility Choices": 'http://smart.who.int/hiv/ValueSet/HIV.H.DE50' +valueset "Reasons for adherence problem - HIV.H.DE53 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.H.DE53' valueset "Reason ART stopped - HIV.H.DE74 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.H.DE74' +valueset "Reason for referral Choices": 'http://smart.who.int/hiv/ValueSet/HIV.I.DE2' valueset "HIV prevention intervention Choices": 'http://smart.who.int/hiv/ValueSet/HIV.PRV.DE2' valueset "HIV status of contact Choices": 'http://smart.who.int/hiv/ValueSet/HIV.PRV.DE11' valueset "HIV test result - HIV.SRV.DE2 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.SRV.DE2' valueset "HIV clinical stage - HIV.SRV.DE5 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.SRV.DE5' +valueset "Maternal HIV status at first ANC visit - HIV.SRV.DE19 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.SRV.DE19' valueset "Test result of HIV assay 1 - HIV.SRV.DE21 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.SRV.DE21' valueset "Final diagnosis of HIV-exposed infant - HIV.SRV.DE22 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.SRV.DE22' valueset "HIV burden of the setting Choices": 'http://smart.who.int/hiv/ValueSet/HIV.Config.DE12' @@ -704,10 +838,7 @@ code "Bone dysfunction": 'HIV.D.DE476' from "HIVConcepts" display 'Bone dysfunct code "Metabolic symptoms": 'HIV.D.DE477' from "HIVConcepts" display 'Metabolic symptoms' code "Kidney dysfunction": 'HIV.D.DE478' from "HIVConcepts" display 'Kidney dysfunction' code "Unexpected adverse drug reaction": 'HIV.D.DE479' from "HIVConcepts" display 'Unexpected adverse drug reaction' -code "New regimen after switch to second-line regimen": 'HIV.D.DE485' from "HIVConcepts" -code "New regimen after switch to third-line regimen": 'HIV.D.DE491' from "HIVConcepts" -code "New regimen after substitution within second-line regimen": 'HIV.D.DE489' from "HIVConcepts" -code "New regimen after substitution within third-line regimen": 'HIV.D.DE495' from "HIVConcepts" + code "Dates of substitution within second-line regimen": 'HIV.D.DE487' from "HIVConcepts" display 'Dates of substitution within second-line regimen' code "Dates of substitution within third-line regimen": 'HIV.D.DE493' from "HIVConcepts" display 'Dates of substitution within third-line regimen' code "Enhanced adherence counselling provided": 'HIV.D.DE496' from "HIVConcepts" display 'Enhanced adherence counselling provided' @@ -752,6 +883,10 @@ code "Lifetime screening test number": 'HIV.D.DE657' from "HIVConcepts" display code "Cervical cancer primary screening test type": 'HIV.D.DE658' from "HIVConcepts" display 'Cervical cancer primary screening test type' code "HPV-DNA": 'HIV.D.DE659' from "HIVConcepts" display 'HPV-DNA' code "VIA": 'HIV.D.DE660' from "HIVConcepts" display 'VIA' +code "New regimen after switch to second-line regimen": 'HIV.D.DE485' from "HIVConcepts" +code "New regimen after switch to third-line regimen": 'HIV.D.DE491' from "HIVConcepts" +code "New regimen after substitution within second-line regimen": 'HIV.D.DE489' from "HIVConcepts" +code "New regimen after substitution within third-line regimen": 'HIV.D.DE495' from "HIVConcepts" code "Cervical cytology": 'HIV.D.DE661' from "HIVConcepts" display 'Cervical cytology' code "Other - HIV.D.DE662": 'HIV.D.DE662' from "HIVConcepts" display 'Other' code "Date of diagnosis of cervical precancer lesions or invasive cervical cancer": 'HIV.D.DE705' from "HIVConcepts" display 'Date of diagnosis of cervical precancer lesions or invasive cervical cancer' diff --git a/input/cql/HIVConceptsCustom.cql b/input/cql/HIVConceptsCustom.cql index b375081e9fc..70a7b3d5b4d 100644 --- a/input/cql/HIVConceptsCustom.cql +++ b/input/cql/HIVConceptsCustom.cql @@ -59,4 +59,4 @@ code "needle-syringe": 'needle syringe' from "missing concepts" code "methadone": 'methadone' from "missing concepts" code "buprenorphine": 'buprenorphine' from "missing concepts" code "viral load test": 'viral load test' from "missing concepts" - +code "delivery": 'delivery' from "missing concepts" diff --git a/input/cql/HIVConfig.cql b/input/cql/HIVConfig.cql new file mode 100644 index 00000000000..89476690d47 --- /dev/null +++ b/input/cql/HIVConfig.cql @@ -0,0 +1,10 @@ +library HIVConfig + +using FHIR version '4.0.1' + +/* + * HIV burden of setting + */ +define "HIV burden of setting": + 'High HIV burden setting' + diff --git a/input/cql/HIVElements.cql b/input/cql/HIVElements.cql index 5ea2fa9e03f..baead28999b 100644 --- a/input/cql/HIVElements.cql +++ b/input/cql/HIVElements.cql @@ -25,6 +25,20 @@ context Patient * HIV Elements */ +// Umbrella Element Definitions + +/* On ART - includes "On ART - HIV.B.DE47" and "On ART - HIV.B.DE48" */ +define "ART Medication Statement": + [MedicationStatement: Concepts."ART regimen Choices"] MS + sort by start of effective.toInterval() + +define "On ART": + exists "ART Medication Statement" + +define "ART start date": + "ART Medication Statement" MS + return start of MS.effective.toInterval() + // Auto-generated Elements from DAK Data Dictionary // Entries based on DAK Data Dictionary for Data Elements marked as used // in at least one Decision Support Table or Aggregate Indicator @@ -757,8 +771,6 @@ define "HIV test conducted Observation": */ // TODO: Replace placeholder with relevant CQL logic define "HIV test type B.DE81": - exists "HIV test type B.DE81 Observation" -define "HIV test type B.DE81 Observation": [Observation: Concepts."HIV test type - HIV.B.DE81"] O where O.status in { 'final', 'amended', 'corrected' } /* End of HIV test type B.DE81 */ @@ -768,14 +780,9 @@ define "HIV test type B.DE81 Observation": @activity: HIV.B7 Test for HIV using testing algorithm @description: Antibody test for HIV performed with a rapid diagnostic */ -// TODO: Replace placeholder with relevant CQL logic + define "Rapid diagnostic test for HIV B.DE82": - exists "Rapid diagnostic test for HIV B.DE82 Condition" - or exists "Rapid diagnostic test for HIV B.DE82 Observation" -define "Rapid diagnostic test for HIV B.DE82 Condition": - [Condition: Concepts."Rapid diagnostic test for HIV - HIV.B.DE82"] -define "Rapid diagnostic test for HIV B.DE82 Observation": - "HIV test type B.DE81 Observation" O + "HIV test type B.DE81" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Rapid diagnostic test for HIV - HIV.B.DE82" /* End of Rapid diagnostic test for HIV B.DE82 */ @@ -785,14 +792,9 @@ define "Rapid diagnostic test for HIV B.DE82 Observation": @activity: HIV.B7 Test for HIV using testing algorithm @description: Antibody test for HIV performed with an enzyme immunoassay */ -// TODO: Replace placeholder with relevant CQL logic + define "Enzyme immunoassay for HIV B.DE83": - exists "Enzyme immunoassay for HIV B.DE83 Condition" - or exists "Enzyme immunoassay for HIV B.DE83 Observation" -define "Enzyme immunoassay for HIV B.DE83 Condition": - [Condition: Concepts."Enzyme immunoassay for HIV - HIV.B.DE83"] -define "Enzyme immunoassay for HIV B.DE83 Observation": - "HIV test type B.DE81 Observation" O + "HIV test type B.DE81" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Enzyme immunoassay for HIV - HIV.B.DE83" /* End of Enzyme immunoassay for HIV B.DE83 */ @@ -802,14 +804,9 @@ define "Enzyme immunoassay for HIV B.DE83 Observation": @activity: HIV.B7 Test for HIV using testing algorithm @description: Virological test, which includes testing for early infant diagnosis */ -// TODO: Replace placeholder with relevant CQL logic + define "Nucleic acid test for HIV B.DE84": - exists "Nucleic acid test for HIV B.DE84 Condition" - or exists "Nucleic acid test for HIV B.DE84 Observation" -define "Nucleic acid test for HIV B.DE84 Condition": - [Condition: Concepts."Nucleic acid test for HIV - HIV.B.DE84"] -define "Nucleic acid test for HIV B.DE84 Observation": - "HIV test type B.DE81 Observation" O + "HIV test type B.DE81" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Nucleic acid test for HIV - HIV.B.DE84" /* End of Nucleic acid test for HIV B.DE84 */ @@ -819,14 +816,9 @@ define "Nucleic acid test for HIV B.DE84 Observation": @activity: HIV.B7 Test for HIV using testing algorithm @description: Antibody test for HIV and syphilis performed with a rapid diagnostic */ -// TODO: Replace placeholder with relevant CQL logic + define "Dual HIV/syphilis rapid diagnostic test B.DE85": - exists "Dual HIV/syphilis rapid diagnostic test B.DE85 Condition" - or exists "Dual HIV/syphilis rapid diagnostic test B.DE85 Observation" -define "Dual HIV/syphilis rapid diagnostic test B.DE85 Condition": - [Condition: Concepts."Dual HIV/syphilis rapid diagnostic test - HIV.B.DE85"] -define "Dual HIV/syphilis rapid diagnostic test B.DE85 Observation": - "HIV test type B.DE81 Observation" O + "HIV test type B.DE81" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."Dual HIV/syphilis rapid diagnostic test - HIV.B.DE85" /* End of Dual HIV/syphilis rapid diagnostic test B.DE85 */ @@ -836,14 +828,9 @@ define "Dual HIV/syphilis rapid diagnostic test B.DE85 Observation": @activity: HIV.B7 Test for HIV using testing algorithm @description: Antibody test for HIV performed by self-tester using a rapid diagnostic */ -// TODO: Replace placeholder with relevant CQL logic + define "HIV self-test": - exists "HIV self-test Condition" - or exists "HIV self-test Observation" -define "HIV self-test Condition": - [Condition: Concepts."HIV self-test"] -define "HIV self-test Observation": - "HIV test type B.DE81 Observation" O + "HIV test type B.DE81" O where O.status in { 'final', 'amended', 'corrected' } and O.value ~ Concepts."HIV self-test" /* End of HIV self-test */ @@ -5402,13 +5389,9 @@ define "On ART D.DE38": @activity: HIV.D8 Capture or update client history @description: The date on which the client started or restarted ART */ -// TODO: Replace placeholder with relevant CQL logic define "ART start date D.DE39": - [Observation: Concepts."ART start date - HIV.D.DE39"] O - where O.status in { 'final', 'amended', 'corrected' } -define "ART start date D.DE39 Value": - "ART start date D.DE39" O - return O.value + "On ART D.DE38" MS + return start of MS.effective.toInterval() /* End of ART start date D.DE39 */ /* @@ -11564,11 +11547,9 @@ define "Date of TB diagnosis Value": */ // TODO: Replace placeholder with relevant CQL logic define "TB preventive treatment TPT start date": - [Observation: Concepts."TB preventive treatment TPT start date"] O - where O.status in { 'final', 'amended', 'corrected' } -define "TB preventive treatment TPT start date Value": - "TB preventive treatment TPT start date" O - return O.value + "TPT regimen" MS + return start of MS.effective.toInterval() + /* End of TB preventive treatment TPT start date */ /* @@ -12270,99 +12251,15 @@ define "C reactive protein test result Value": @activity: HIV.D4 Screen for TB @description: Type of TPT regimen the client is currently on */ -// TODO: Replace placeholder with relevant CQL logic +define "TPT regimen": + [MedicationStatement: Concepts."TPT regimen type Choices"] MS + where MS.status in { 'active', 'completed' } + define "TPT regimen type": - exists "TPT regimen type Observation" -define "TPT regimen type Observation": - [Observation: Concepts."TPT regimen type"] O - where O.status in { 'final', 'amended', 'corrected' } + "TPT regimen" MS + return MS.medication /* End of TPT regimen type */ -/* -@dataElement: HIV.D.DE1029 - 3HP -@activity: HIV.D4 Screen for TB -@description: The client's current TPT regimen is 3HP -*/ -// TODO: Replace placeholder with relevant CQL logic -define "3HP": - exists "3HP Condition" - or exists "3HP Observation" -define "3HP Condition": - [Condition: Concepts."3HP"] -define "3HP Observation": - "TPT regimen type Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."3HP" -/* End of 3HP */ - -/* -@dataElement: HIV.D.DE1030 - 1HP -@activity: HIV.D4 Screen for TB -@description: The client's current TPT regimen is 1HP -*/ -// TODO: Replace placeholder with relevant CQL logic -define "1HP": - exists "1HP Condition" - or exists "1HP Observation" -define "1HP Condition": - [Condition: Concepts."1HP"] -define "1HP Observation": - "TPT regimen type Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."1HP" -/* End of 1HP */ - -/* -@dataElement: HIV.D.DE1031 - 6H -@activity: HIV.D4 Screen for TB -@description: The client's current TPT regimen is 6H -*/ -// TODO: Replace placeholder with relevant CQL logic -define "6H": - exists "6H Condition" - or exists "6H Observation" -define "6H Condition": - [Condition: Concepts."6H"] -define "6H Observation": - "TPT regimen type Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."6H" -/* End of 6H */ - -/* -@dataElement: HIV.D.DE1032 - Six months of levofloxacin daily -@activity: HIV.D4 Screen for TB -@description: The client's current TPT regimen is six months of levofloxacin daily -*/ -// TODO: Replace placeholder with relevant CQL logic -define "Six months of levofloxacin daily": - exists "Six months of levofloxacin daily Condition" - or exists "Six months of levofloxacin daily Observation" -define "Six months of levofloxacin daily Condition": - [Condition: Concepts."Six months of levofloxacin daily"] -define "Six months of levofloxacin daily Observation": - "TPT regimen type Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."Six months of levofloxacin daily" -/* End of Six months of levofloxacin daily */ - -/* -@dataElement: HIV.D.DE1033 - Other TB preventive treatment TPT regimen -@activity: HIV.D4 Screen for TB -@description: The client's current TPT regimen is another regimen than those listed above -*/ -// TODO: Replace placeholder with relevant CQL logic -define "Other TB preventive treatment TPT regimen": - exists "Other TB preventive treatment TPT regimen Condition" - or exists "Other TB preventive treatment TPT regimen Observation" -define "Other TB preventive treatment TPT regimen Condition": - [Condition: Concepts."Other TB preventive treatment TPT regimen"] -define "Other TB preventive treatment TPT regimen Observation": - "TPT regimen type Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."Other TB preventive treatment TPT regimen" -/* End of Other TB preventive treatment TPT regimen */ - /* @dataElement: HIV.D.DE1034 - TB preventive treatment TPT status @activity: HIV.D4 Screen for TB @@ -12544,12 +12441,10 @@ define "Delivery date Value": @activity: HIV.E1 Capture or update mother's history @description: The type of place where the woman delivered */ -// TODO: Replace placeholder with relevant CQL logic + define "Place of delivery": - exists "Place of delivery Observation" -define "Place of delivery Observation": - [Observation: Concepts."Place of delivery"] O - where O.status in { 'final', 'amended', 'corrected' } + [Procedure: CustomConcepts."delivery"] + /* End of Place of delivery */ /* @@ -12557,16 +12452,13 @@ define "Place of delivery Observation": @activity: HIV.E1 Capture or update mother's history @description: The woman delivered at a health facility */ -// TODO: Replace placeholder with relevant CQL logic + define "Health facility": - exists "Health facility Condition" - or exists "Health facility Observation" -define "Health facility Condition": - [Condition: Concepts."Health facility"] -define "Health facility Observation": - "Place of delivery Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."Health facility" + "Place of delivery" P + with [Location] L + such that P.location.references(L) + and L.physicalType ~ Concepts."Health facility" + /* End of Health facility */ /* @@ -12574,16 +12466,13 @@ define "Health facility Observation": @activity: HIV.E1 Capture or update mother's history @description: The woman delivered at home */ -// TODO: Replace placeholder with relevant CQL logic + define "Home": - exists "Home Condition" - or exists "Home Observation" -define "Home Condition": - [Condition: Concepts."Home"] -define "Home Observation": - "Place of delivery Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."Home" + "Place of delivery" P + with [Location] L + such that P.location.references(L) + and L.physicalType ~ Concepts."Home" + /* End of Home */ /* @@ -12591,16 +12480,12 @@ define "Home Observation": @activity: HIV.E1 Capture or update mother's history @description: The woman delivered at another location that is not at home or at a health facility */ -// TODO: Replace placeholder with relevant CQL logic + define "Other E.DE70": - exists "Other E.DE70 Condition" - or exists "Other E.DE70 Observation" -define "Other E.DE70 Condition": - [Condition: Concepts."Other - HIV.E.DE70"] -define "Other E.DE70 Observation": - "Place of delivery Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."Other - HIV.E.DE70" + "Place of delivery" P + with [Location] L + such that P.location.references(L) + and L.physicalType ~ Concepts."Other - HIV.E.DE70" /* End of Other E.DE70 */ /* @@ -12659,13 +12544,11 @@ define "Age of infant in years": @activity: HIV.F6 Check whether infant/child had HIV exposure @description: Whether the infant or child was determined to have had HIV exposure */ -// TODO: Replace placeholder with relevant CQL logic + define "HIV-exposed infant or child E.DE112": - exists "HIV-exposed infant or child E.DE112 Observation" -define "HIV-exposed infant or child E.DE112 Observation": [Observation: Concepts."HIV-exposed infant or child - HIV.E.DE112"] O where O.status in { 'final', 'amended', 'corrected' } - and O.value is true + /* End of HIV-exposed infant or child E.DE112 */ /* @@ -14576,7 +14459,6 @@ define "STI services": @activity: HIV.B6 Capture or update client history @description: Client accessed voluntary medical male circumcision (VMMC) services */ - define "VMMC": [Procedure] P where P.status = 'completed' diff --git a/input/cql/HIVEncounterElements.cql b/input/cql/HIVEncounterElements.cql index 7902b1acd93..0eaa54a68ae 100644 --- a/input/cql/HIVEncounterElements.cql +++ b/input/cql/HIVEncounterElements.cql @@ -501,12 +501,6 @@ define "HIV test conducted Observation": @description: Type of HIV test */ // TODO: Replace placeholder with relevant CQL logic -define "HIV test type B.DE81": - exists "HIV test type B.DE81 Observation" -define "HIV test type B.DE81 Observation": - Elements."HIV test type B.DE81 Observation" O - where O.encounter.references(EncounterId) - or O.effective.toInterval() starts on or before Today /* End of HIV test type B.DE81 */ /* @@ -515,16 +509,7 @@ define "HIV test type B.DE81 Observation": @description: Antibody test for HIV performed with a rapid diagnostic */ // TODO: Replace placeholder with relevant CQL logic -define "Rapid diagnostic test for HIV B.DE82": - exists "Rapid diagnostic test for HIV B.DE82 Condition" - or exists "Rapid diagnostic test for HIV B.DE82 Observation" -define "Rapid diagnostic test for HIV B.DE82 Condition": - Elements."Rapid diagnostic test for HIV B.DE82 Condition" C - where C.prevalenceInterval() starts on or before Today -define "Rapid diagnostic test for HIV B.DE82 Observation": - Elements."Rapid diagnostic test for HIV B.DE82 Observation" O - where O.encounter.references(EncounterId) - or O.effective.toInterval() starts on or before Today + /* End of Rapid diagnostic test for HIV B.DE82 */ /* @@ -533,16 +518,7 @@ define "Rapid diagnostic test for HIV B.DE82 Observation": @description: Antibody test for HIV performed with an enzyme immunoassay */ // TODO: Replace placeholder with relevant CQL logic -define "Enzyme immunoassay for HIV B.DE83": - exists "Enzyme immunoassay for HIV B.DE83 Condition" - or exists "Enzyme immunoassay for HIV B.DE83 Observation" -define "Enzyme immunoassay for HIV B.DE83 Condition": - Elements."Enzyme immunoassay for HIV B.DE83 Condition" C - where C.prevalenceInterval() starts on or before Today -define "Enzyme immunoassay for HIV B.DE83 Observation": - Elements."Enzyme immunoassay for HIV B.DE83 Observation" O - where O.encounter.references(EncounterId) - or O.effective.toInterval() starts on or before Today + /* End of Enzyme immunoassay for HIV B.DE83 */ /* @@ -551,16 +527,7 @@ define "Enzyme immunoassay for HIV B.DE83 Observation": @description: Virological test, which includes testing for early infant diagnosis */ // TODO: Replace placeholder with relevant CQL logic -define "Nucleic acid test for HIV B.DE84": - exists "Nucleic acid test for HIV B.DE84 Condition" - or exists "Nucleic acid test for HIV B.DE84 Observation" -define "Nucleic acid test for HIV B.DE84 Condition": - Elements."Nucleic acid test for HIV B.DE84 Condition" C - where C.prevalenceInterval() starts on or before Today -define "Nucleic acid test for HIV B.DE84 Observation": - Elements."Nucleic acid test for HIV B.DE84 Observation" O - where O.encounter.references(EncounterId) - or O.effective.toInterval() starts on or before Today + /* End of Nucleic acid test for HIV B.DE84 */ /* @@ -569,16 +536,7 @@ define "Nucleic acid test for HIV B.DE84 Observation": @description: Antibody test for HIV and syphilis performed with a rapid diagnostic */ // TODO: Replace placeholder with relevant CQL logic -define "Dual HIV/syphilis rapid diagnostic test B.DE85": - exists "Dual HIV/syphilis rapid diagnostic test B.DE85 Condition" - or exists "Dual HIV/syphilis rapid diagnostic test B.DE85 Observation" -define "Dual HIV/syphilis rapid diagnostic test B.DE85 Condition": - Elements."Dual HIV/syphilis rapid diagnostic test B.DE85 Condition" C - where C.prevalenceInterval() starts on or before Today -define "Dual HIV/syphilis rapid diagnostic test B.DE85 Observation": - Elements."Dual HIV/syphilis rapid diagnostic test B.DE85 Observation" O - where O.encounter.references(EncounterId) - or O.effective.toInterval() starts on or before Today + /* End of Dual HIV/syphilis rapid diagnostic test B.DE85 */ /* @@ -587,16 +545,7 @@ define "Dual HIV/syphilis rapid diagnostic test B.DE85 Observation": @description: Antibody test for HIV performed by self-tester using a rapid diagnostic */ // TODO: Replace placeholder with relevant CQL logic -define "HIV self-test": - exists "HIV self-test Condition" - or exists "HIV self-test Observation" -define "HIV self-test Condition": - Elements."HIV self-test Condition" C - where C.prevalenceInterval() starts on or before Today -define "HIV self-test Observation": - Elements."HIV self-test Observation" O - where O.encounter.references(EncounterId) - or O.effective.toInterval() starts on or before Today + /* End of HIV self-test */ /* @@ -3834,13 +3783,8 @@ define "On ART D.DE38": @description: The date on which the client started or restarted ART */ // TODO: Replace placeholder with relevant CQL logic -define "ART start date D.DE39": - Elements."ART start date D.DE39" O - where O.encounter.references(EncounterId) - or O.effective.toInterval() starts on or before Today -define "ART start date D.DE39 Value": - "ART start date D.DE39" O - return O.value + + /* End of ART start date D.DE39 */ /* diff --git a/input/cql/HIVIND11Logic.cql b/input/cql/HIVIND11Logic.cql index cd695aefba4..ac6591bc57d 100644 --- a/input/cql/HIVIND11Logic.cql +++ b/input/cql/HIVIND11Logic.cql @@ -66,7 +66,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND12Logic.cql b/input/cql/HIVIND12Logic.cql index 7555dae371b..9110a420d51 100644 --- a/input/cql/HIVIND12Logic.cql +++ b/input/cql/HIVIND12Logic.cql @@ -64,7 +64,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND13Logic.cql b/input/cql/HIVIND13Logic.cql index 9600cb945b0..08d46d523e2 100644 --- a/input/cql/HIVIND13Logic.cql +++ b/input/cql/HIVIND13Logic.cql @@ -56,6 +56,9 @@ include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE + // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -98,13 +101,13 @@ define "Denominator": */ define "Administrative Gender Stratifier": - HIC."By Administrative Gender Stratifier" + HIE."By Administrative Gender Stratifier" define "Age Stratifier": - HIC."By Age Stratifier 3" + HIE."By Age Stratifier 3" define "Geographic Region Stratifier": - HIC."By Geographic Region Stratifier" + HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": HIC."patientGroups" @@ -115,8 +118,8 @@ define "Setting": //provider type not provided? define "Stratification": - HIC."By Administrative Gender Stratifier".code - + ':' + HIC."By Age Stratifier" -+ ':' + HIC."By Geographic Region Stratifier" + HIE."By Administrative Gender Stratifier".code + + ':' + HIE."By Age Stratifier" ++ ':' + HIE."By Geographic Region Stratifier" + Combine(HIC.patientGroups, ':') + Combine(HIC.setting, ':') diff --git a/input/cql/HIVIND14Logic.cql b/input/cql/HIVIND14Logic.cql index 3f4e1b05485..91ad3e7277d 100644 --- a/input/cql/HIVIND14Logic.cql +++ b/input/cql/HIVIND14Logic.cql @@ -62,6 +62,9 @@ include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE + // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] diff --git a/input/cql/HIVIND15Logic.cql b/input/cql/HIVIND15Logic.cql index f85e1909fee..f9375c0bdb3 100644 --- a/input/cql/HIVIND15Logic.cql +++ b/input/cql/HIVIND15Logic.cql @@ -52,6 +52,9 @@ include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE + // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -94,13 +97,13 @@ define function "Measure Observation"(Patient "Patient"): */ define "Administrative Gender Stratifier": - HIC."By Administrative Gender Stratifier" + HIE."By Administrative Gender Stratifier" define "Age Stratifier": - HIC."By Age Stratifier 3" + HIE."By Age Stratifier 3" define "Geographic Region Stratifier": - HIC."By Geographic Region Stratifier" + HIE."By Geographic Region Stratifier" define "Setting": HIC."setting" @@ -111,8 +114,8 @@ define "HIV Status": //provider type not provided? define "Stratification": - HIC."By Administrative Gender Stratifier".code - + ':' + HIC."By Age Stratifier" -+ ':' + HIC."By Geographic Region Stratifier" + HIE."By Administrative Gender Stratifier".code + + ':' + HIE."By Age Stratifier" ++ ':' + HIE."By Geographic Region Stratifier" + Combine(HIC.setting, ':') + ':' + HIC."HIV Status".code \ No newline at end of file diff --git a/input/cql/HIVIND16Logic.cql b/input/cql/HIVIND16Logic.cql index 02355303242..1fda01d53ac 100644 --- a/input/cql/HIVIND16Logic.cql +++ b/input/cql/HIVIND16Logic.cql @@ -74,6 +74,9 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom + +include HIVElements called HE +include HIVIndicatorElements called HIE include HIVConceptsCustom called HCC // Indicator Definition @@ -125,13 +128,13 @@ define "Denominator": */ define "Administrative Gender Stratifier": - HIC."By Administrative Gender Stratifier" + HIE."By Administrative Gender Stratifier" define "Age Stratifier": - HIC."By Age Stratifier 3" + HIE."By Age Stratifier 3" define "Geographic Region Stratifier": - HIC."By Geographic Region Stratifier" + HIE."By Geographic Region Stratifier" define "Setting": HIC."setting" @@ -147,9 +150,9 @@ define "VMMC_adverse_event_timing": //service site not provided? define "Stratification": - HIC."By Administrative Gender Stratifier".code - + ':' + HIC."By Age Stratifier" -+ ':' + HIC."By Geographic Region Stratifier" + HIE."By Administrative Gender Stratifier".code + + ':' + HIE."By Age Stratifier" ++ ':' + HIE."By Geographic Region Stratifier" + Combine(HIC.setting, ':') + ':' + HIC."VMMC_adverse_event_type".code + ':' + HIC."VMMC_adverse_event_timing".code \ No newline at end of file diff --git a/input/cql/HIVIND18Logic.cql b/input/cql/HIVIND18Logic.cql index 87a6df73397..fb6dba43f7a 100644 --- a/input/cql/HIVIND18Logic.cql +++ b/input/cql/HIVIND18Logic.cql @@ -73,6 +73,9 @@ include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE + // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -106,13 +109,13 @@ define function "Measure Observation"(Patient "Patient"): */ define "Administrative Gender Stratifier": - HIC."By Administrative Gender Stratifier" + HIE."By Administrative Gender Stratifier" define "Age Stratifier": - HIC."By Age Stratifier 2" + HIE."By Age Stratifier 2" define "Geographic Region Stratifier": - HIC."By Geographic Region Stratifier" + HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": HIC."patientGroups" @@ -122,8 +125,8 @@ define "ANC Stratifier": define "Stratification": - HIC."By Administrative Gender Stratifier".code - + ':' + HIC."By Age Stratifier 2" -+ ':' + HIC."By Geographic Region Stratifier" + HIE."By Administrative Gender Stratifier".code + + ':' + HIE."By Age Stratifier 2" ++ ':' + HIE."By Geographic Region Stratifier" + Combine(HIC.patientGroups, ':') + Combine(HIC."anc", ':') diff --git a/input/cql/HIVIND19Logic.cql b/input/cql/HIVIND19Logic.cql index 6633197299b..bf42eb7da20 100644 --- a/input/cql/HIVIND19Logic.cql +++ b/input/cql/HIVIND19Logic.cql @@ -85,6 +85,9 @@ include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE + // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -128,13 +131,13 @@ define "denominatorExclusion": */ define "Administrative Gender Stratifier": - HIC."By Administrative Gender Stratifier" + HIE."By Administrative Gender Stratifier" define "Age Stratifier": - HIC."By Age Stratifier" + HIE."By Age Stratifier" define "Geographic Region Stratifier": - HIC."By Geographic Region Stratifier" + HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": HIC."patientGroups" @@ -146,9 +149,9 @@ define "TB Stratifier": HIC."tb" define "Stratification": - HIC."By Administrative Gender Stratifier".code - + ':' + HIC."By Age Stratifier" -+ ':' + HIC."By Geographic Region Stratifier" + HIE."By Administrative Gender Stratifier".code + + ':' + HIE."By Age Stratifier" ++ ':' + HIE."By Geographic Region Stratifier" + Combine(HIC.patientGroups, ':') + Combine(HIC.setting, ':') + Combine(HIC.tb, ':') diff --git a/input/cql/HIVIND20Logic.cql b/input/cql/HIVIND20Logic.cql index 1c7774d9aac..8027f48081d 100644 --- a/input/cql/HIVIND20Logic.cql +++ b/input/cql/HIVIND20Logic.cql @@ -88,6 +88,9 @@ include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE + // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -127,13 +130,13 @@ define "denominator": */ define "Administrative Gender Stratifier": - HIC."By Administrative Gender Stratifier" + HIE."By Administrative Gender Stratifier" define "Age Stratifier": - HIC."By Age Stratifier" + HIE."By Age Stratifier" define "Geographic Region Stratifier": - HIC."By Geographic Region Stratifier" + HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": HIC."patientGroups" @@ -145,9 +148,9 @@ define "TB Stratifier": HIC."tb" define "Stratification": - HIC."By Administrative Gender Stratifier".code - + ':' + HIC."By Age Stratifier" -+ ':' + HIC."By Geographic Region Stratifier" + HIE."By Administrative Gender Stratifier".code + + ':' + HIE."By Age Stratifier" ++ ':' + HIE."By Geographic Region Stratifier" + Combine(HIC.patientGroups, ':') + Combine(HIC.setting, ':') + Combine(HIC.tb, ':') \ No newline at end of file diff --git a/input/cql/HIVIND21Logic.cql b/input/cql/HIVIND21Logic.cql index 9f3db38b7e8..a16c1ef7565 100644 --- a/input/cql/HIVIND21Logic.cql +++ b/input/cql/HIVIND21Logic.cql @@ -80,7 +80,9 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom + include HIVElements called HE +include HIVIndicatorElements called HIE // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -122,13 +124,13 @@ define "denominator": */ define "Administrative Gender Stratifier": - HIC."By Administrative Gender Stratifier" + HIE."By Administrative Gender Stratifier" define "Age Stratifier": - HIC."By Age Stratifier" + HIE."By Age Stratifier" define "Geographic Region Stratifier": - HIC."By Geographic Region Stratifier" + HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": HIC."patientGroups" @@ -140,10 +142,10 @@ define "Time to start ART": HIC."Time to start ART" define "Stratification": - HIC."By Administrative Gender Stratifier".code + HIE."By Administrative Gender Stratifier".code //not working //+ ':' + HIC."Time to start ART".code - + ':' + HIC."By Age Stratifier" -+ ':' + HIC."By Geographic Region Stratifier" + + ':' + HIE."By Age Stratifier" ++ ':' + HIE."By Geographic Region Stratifier" + Combine(HIC.patientGroups, ':') + Combine(HIC.tb, ':') diff --git a/input/cql/HIVIND22Logic.cql b/input/cql/HIVIND22Logic.cql index 53a01cd7922..cfcba2d7e1f 100644 --- a/input/cql/HIVIND22Logic.cql +++ b/input/cql/HIVIND22Logic.cql @@ -81,6 +81,9 @@ include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE + // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -135,13 +138,13 @@ define function "Measure Observation"(Patient "Patient"): */ define "Administrative Gender Stratifier": - HIC."By Administrative Gender Stratifier" + HIE."By Administrative Gender Stratifier" define "Age Stratifier": - HIC."By Age Stratifier 2" + HIE."By Age Stratifier 2" define "Geographic Region Stratifier": - HIC."By Geographic Region Stratifier" + HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": HIC."patientGroups" @@ -150,8 +153,8 @@ define "HIV status of partner or contact": HIC."HIV status of partner or contact" define "Stratification": - HIC."By Administrative Gender Stratifier".code + HIE."By Administrative Gender Stratifier".code + ':' + HIC."HIV status of partner or contact".code - + ':' + HIC."By Age Stratifier 2" -+ ':' + HIC."By Geographic Region Stratifier" -+ Combine(HIC.patientGroups, ':') + + ':' + HIE."By Age Stratifier 2" ++ ':' + HIE."By Geographic Region Stratifier" ++ Combine(HIC.patientGroups, ':') \ No newline at end of file diff --git a/input/cql/HIVIND24Logic.cql b/input/cql/HIVIND24Logic.cql index a59b8c5c9b7..a6cdc501165 100644 --- a/input/cql/HIVIND24Logic.cql +++ b/input/cql/HIVIND24Logic.cql @@ -85,6 +85,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom + include HIVElements called HE include HIVIndicatorElements called HIE @@ -156,13 +157,13 @@ define "Denominator": */ define "Administrative Gender Stratifier": - HIC."By Administrative Gender Stratifier" + HIE."By Administrative Gender Stratifier" define "Age Stratifier": - HIC."By Age Stratifier 2" + HIE."By Age Stratifier 2" define "Geographic Region Stratifier": - HIC."By Geographic Region Stratifier" + HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": HIC."patientGroups" @@ -171,8 +172,8 @@ define "HIV prevention intervention": HIC."HIV prevention intervention" define "Stratification": - HIC."By Administrative Gender Stratifier".code - + ':' + HIC."By Age Stratifier 2" -+ ':' + HIC."By Geographic Region Stratifier" + HIE."By Administrative Gender Stratifier".code + + ':' + HIE."By Age Stratifier 2" ++ ':' + HIE."By Geographic Region Stratifier" + Combine(HIC.patientGroups, ':') + Combine(HIC."HIV prevention intervention", ':') \ No newline at end of file diff --git a/input/cql/HIVIND25Logic.cql b/input/cql/HIVIND25Logic.cql index 64444d3003c..dae14bc439f 100644 --- a/input/cql/HIVIND25Logic.cql +++ b/input/cql/HIVIND25Logic.cql @@ -75,7 +75,9 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom + include HIVElements called HE +include HIVIndicatorElements called HIE // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -124,20 +126,20 @@ define "Denominator": */ define "Administrative Gender Stratifier": - HIC."By Administrative Gender Stratifier" + HIE."By Administrative Gender Stratifier" define "Age Stratifier": - HIC."By Age Stratifier 2" + HIE."By Age Stratifier 2" define "Geographic Region Stratifier": - HIC."By Geographic Region Stratifier" + HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": HIC."patientGroups" define "Stratification": - HIC."By Administrative Gender Stratifier".code + HIE."By Administrative Gender Stratifier".code + ':' + HIC."HIV status of partner or contact".code - + ':' + HIC."By Age Stratifier 2" -+ ':' + HIC."By Geographic Region Stratifier" + + ':' + HIE."By Age Stratifier 2" ++ ':' + HIE."By Geographic Region Stratifier" + Combine(HIC.patientGroups, ':') \ No newline at end of file diff --git a/input/cql/HIVIND27Logic.cql b/input/cql/HIVIND27Logic.cql index 8342d4a1fbe..9f377ff47ec 100644 --- a/input/cql/HIVIND27Logic.cql +++ b/input/cql/HIVIND27Logic.cql @@ -69,6 +69,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom + include HIVElements called HE include HIVIndicatorElements called HIE @@ -107,19 +108,19 @@ define function "Measure Observation"(Patient "Patient"): */ define "Administrative Gender Stratifier": - HIC."By Administrative Gender Stratifier" + HIE."By Administrative Gender Stratifier" define "Age Stratifier": - HIC."By Age Stratifier" + HIE."By Age Stratifier" define "Geographic Region Stratifier": - HIC."By Geographic Region Stratifier" + HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": HIC."patientGroups" define "Stratification": - HIC."By Administrative Gender Stratifier".code - + ':' + HIC."By Age Stratifier" -+ ':' + HIC."By Geographic Region Stratifier" + HIE."By Administrative Gender Stratifier".code + + ':' + HIE."By Age Stratifier" ++ ':' + HIE."By Geographic Region Stratifier" + Combine(HIC.patientGroups, ':') \ No newline at end of file diff --git a/input/cql/HIVIND28Logic.cql b/input/cql/HIVIND28Logic.cql index 6628066bff1..aea5462a456 100644 --- a/input/cql/HIVIND28Logic.cql +++ b/input/cql/HIVIND28Logic.cql @@ -79,6 +79,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom + include HIVElements called HE include HIVIndicatorElements called HIE @@ -142,13 +143,13 @@ define "numerator": */ define "Administrative Gender Stratifier": - HIC."By Administrative Gender Stratifier" + HIE."By Administrative Gender Stratifier" define "Age Stratifier": - HIC."By Age Stratifier" + HIE."By Age Stratifier" define "Geographic Region Stratifier": - HIC."By Geographic Region Stratifier" + HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": HIC."patientGroups" @@ -157,8 +158,8 @@ define "Treatment outcome category Stratifier": HIC."Treatment outcome category" define "Stratification": - HIC."By Administrative Gender Stratifier".code - + ':' + HIC."By Age Stratifier" -+ ':' + HIC."By Geographic Region Stratifier" + HIE."By Administrative Gender Stratifier".code + + ':' + HIE."By Age Stratifier" ++ ':' + HIE."By Geographic Region Stratifier" + Combine(HIC.patientGroups, ':') + Combine(HIC."Treatment outcome category", ':') \ No newline at end of file diff --git a/input/cql/HIVIND29Logic.cql b/input/cql/HIVIND29Logic.cql index 3a7daeb24d9..b513d031255 100644 --- a/input/cql/HIVIND29Logic.cql +++ b/input/cql/HIVIND29Logic.cql @@ -87,6 +87,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom + include HIVElements called HE include HIVIndicatorElements called HIE @@ -120,7 +121,7 @@ define "Numerator": HIE."Viral load test result D.DE387" VL with HIC."routine viral load sample collection" P such that VL.partOf.references(P) and P.performed.toInterval() during "Measurement Period" - where VL.value < 1000 'copies/ml' + where VL.value < 1000 // 'copies/ml' ) @@ -151,20 +152,20 @@ define "Denominator": */ define "Administrative Gender Stratifier": - HIC."By Administrative Gender Stratifier" + HIE."By Administrative Gender Stratifier" define "Age Stratifier": - HIC."By Age Stratifier" + HIE."By Age Stratifier" define "Geographic Region Stratifier": - HIC."By Geographic Region Stratifier" + HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": HIC."patientGroups" define "Stratification": - HIC."By Administrative Gender Stratifier".code - + ':' + HIC."By Age Stratifier" -+ ':' + HIC."By Geographic Region Stratifier" + HIE."By Administrative Gender Stratifier".code + + ':' + HIE."By Age Stratifier" ++ ':' + HIE."By Geographic Region Stratifier" + Combine(HIC.patientGroups, ':') \ No newline at end of file diff --git a/input/cql/HIVIND2Logic.cql b/input/cql/HIVIND2Logic.cql index 2daed18b972..1a1a70f5165 100644 --- a/input/cql/HIVIND2Logic.cql +++ b/input/cql/HIVIND2Logic.cql @@ -90,6 +90,9 @@ include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE + // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -120,13 +123,13 @@ define function "Measure Observation"(Patient "Patient"): */ define "Administrative Gender Stratifier": - HIC."By Administrative Gender Stratifier" + HIE."By Administrative Gender Stratifier" define "Age Stratifier": - HIC."By Age Stratifier 3" + HIE."By Age Stratifier 3" define "Geographic Region Stratifier": - HIC."By Geographic Region Stratifier" + HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": HIC."patientGroups" @@ -146,9 +149,9 @@ define "prep_dosing": // Provider type concepts are not found in DD define "Stratification": - HIC."By Administrative Gender Stratifier".code - + ':' + HIC."By Age Stratifier" -+ ':' + HIC."By Geographic Region Stratifier" + HIE."By Administrative Gender Stratifier".code + + ':' + HIE."By Age Stratifier" ++ ':' + HIE."By Geographic Region Stratifier" + Combine(HIC.patientGroups, ':') + Combine(HIC.setting, ':') + Combine(HIC.prep_product, ':') diff --git a/input/cql/HIVIND30Logic.cql b/input/cql/HIVIND30Logic.cql index 75085e6a32f..18ba8397d0c 100644 --- a/input/cql/HIVIND30Logic.cql +++ b/input/cql/HIVIND30Logic.cql @@ -75,6 +75,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom + include HIVElements called HE include HIVIndicatorElements called HIE @@ -106,19 +107,19 @@ define function "Measure Observation"(Patient "Patient"): */ define "Administrative Gender Stratifier": - HIC."By Administrative Gender Stratifier" + HIE."By Administrative Gender Stratifier" define "Age Stratifier": - HIC."By Age Stratifier" + HIE."By Age Stratifier" define "Geographic Region Stratifier": - HIC."By Geographic Region Stratifier" + HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": HIC."patientGroups" define "Stratification": - HIC."By Administrative Gender Stratifier".code - + ':' + HIC."By Age Stratifier" -+ ':' + HIC."By Geographic Region Stratifier" + HIE."By Administrative Gender Stratifier".code + + ':' + HIE."By Age Stratifier" ++ ':' + HIE."By Geographic Region Stratifier" + Combine(HIC.patientGroups, ':') \ No newline at end of file diff --git a/input/cql/HIVIND31Logic.cql b/input/cql/HIVIND31Logic.cql index 24383c99f62..25d6aecff51 100644 --- a/input/cql/HIVIND31Logic.cql +++ b/input/cql/HIVIND31Logic.cql @@ -79,6 +79,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom + include HIVElements called HE include HIVIndicatorElements called HIE @@ -107,7 +108,7 @@ define "Numerator": and (date from start of HIC."First On ART".effective.toInterval() during "Measurement Period") and exists(HE."Baseline CD4 count SRV.DE3" O where O.effective.toInterval() during "Measurement Period" - and O.value < 200 'cells/mm^3') + and O.value < 200) //'cells/mm^3') /** @@ -132,19 +133,19 @@ define "Denominator": */ define "Administrative Gender Stratifier": - HIC."By Administrative Gender Stratifier" + HIE."By Administrative Gender Stratifier" define "Age Stratifier": - HIC."By Age Stratifier" + HIE."By Age Stratifier" define "Geographic Region Stratifier": - HIC."By Geographic Region Stratifier" + HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": HIC."patientGroups" define "Stratification": - HIC."By Administrative Gender Stratifier".code - + ':' + HIC."By Age Stratifier" -+ ':' + HIC."By Geographic Region Stratifier" + HIE."By Administrative Gender Stratifier".code + + ':' + HIE."By Age Stratifier" ++ ':' + HIE."By Geographic Region Stratifier" + Combine(HIC.patientGroups, ':') \ No newline at end of file diff --git a/input/cql/HIVIND32Logic.cql b/input/cql/HIVIND32Logic.cql index a8b921039c9..6099b7df427 100644 --- a/input/cql/HIVIND32Logic.cql +++ b/input/cql/HIVIND32Logic.cql @@ -84,6 +84,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom + include HIVElements called HE include HIVIndicatorElements called HIE @@ -162,19 +163,19 @@ define "Denominator Exclusions": */ define "Administrative Gender Stratifier": - HIC."By Administrative Gender Stratifier" + HIE."By Administrative Gender Stratifier" define "Age Stratifier": - HIC."By Age Stratifier" + HIE."By Age Stratifier" define "Geographic Region Stratifier": - HIC."By Geographic Region Stratifier" + HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": HIC."patientGroups" define "Stratification": - HIC."By Administrative Gender Stratifier".code - + ':' + HIC."By Age Stratifier" -+ ':' + HIC."By Geographic Region Stratifier" + HIE."By Administrative Gender Stratifier".code + + ':' + HIE."By Age Stratifier" ++ ':' + HIE."By Geographic Region Stratifier" + Combine(HIC.patientGroups, ':') diff --git a/input/cql/HIVIND33Logic.cql b/input/cql/HIVIND33Logic.cql index a6ceb8ecaf1..e0977b342a5 100644 --- a/input/cql/HIVIND33Logic.cql +++ b/input/cql/HIVIND33Logic.cql @@ -78,6 +78,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom + include HIVElements called HE include HIVIndicatorElements called HIE @@ -128,19 +129,19 @@ define "Denominator": */ define "Administrative Gender Stratifier": - HIC."By Administrative Gender Stratifier" + HIE."By Administrative Gender Stratifier" define "Age Stratifier": - HIC."By Age Stratifier" + HIE."By Age Stratifier" define "Geographic Region Stratifier": - HIC."By Geographic Region Stratifier" + HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": HIC."patientGroups" define "Stratification": - HIC."By Administrative Gender Stratifier".code - + ':' + HIC."By Age Stratifier" -+ ':' + HIC."By Geographic Region Stratifier" + HIE."By Administrative Gender Stratifier".code + + ':' + HIE."By Age Stratifier" ++ ':' + HIE."By Geographic Region Stratifier" + Combine(HIC.patientGroups, ':') \ No newline at end of file diff --git a/input/cql/HIVIND34Logic.cql b/input/cql/HIVIND34Logic.cql index 67d34ccb40e..cd3d157a211 100644 --- a/input/cql/HIVIND34Logic.cql +++ b/input/cql/HIVIND34Logic.cql @@ -81,6 +81,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom + include HIVElements called HE include HIVIndicatorElements called HIE @@ -140,21 +141,21 @@ define "Denominator": */ define "Administrative Gender Stratifier": - HIC."By Administrative Gender Stratifier" + HIE."By Administrative Gender Stratifier" define "Age Stratifier": - HIC."By Age Stratifier" + HIE."By Age Stratifier" define "Geographic Region Stratifier": - HIC."By Geographic Region Stratifier" + HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": HIC."patientGroups" define "Stratification": - HIC."By Administrative Gender Stratifier".code - + ':' + HIC."By Age Stratifier" -+ ':' + HIC."By Geographic Region Stratifier" + HIE."By Administrative Gender Stratifier".code + + ':' + HIE."By Age Stratifier" ++ ':' + HIE."By Geographic Region Stratifier" + Combine(HIC.patientGroups, ':') //Need to add diff --git a/input/cql/HIVIND35Logic.cql b/input/cql/HIVIND35Logic.cql index b37a0db2311..b08a8a8ece5 100644 --- a/input/cql/HIVIND35Logic.cql +++ b/input/cql/HIVIND35Logic.cql @@ -124,6 +124,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom + include HIVElements called HE include HIVIndicatorElements called HIE @@ -212,21 +213,21 @@ define "Denominator": */ define "Administrative Gender Stratifier": - HIC."By Administrative Gender Stratifier" + HIE."By Administrative Gender Stratifier" define "Age Stratifier": - HIC."By Age Stratifier" + HIE."By Age Stratifier" define "Geographic Region Stratifier": - HIC."By Geographic Region Stratifier" + HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": HIC."patientGroups" define "Stratification": - HIC."By Administrative Gender Stratifier".code - + ':' + HIC."By Age Stratifier" -+ ':' + HIC."By Geographic Region Stratifier" + HIE."By Administrative Gender Stratifier".code + + ':' + HIE."By Age Stratifier" ++ ':' + HIE."By Geographic Region Stratifier" + Combine(HIC.patientGroups, ':') /* diff --git a/input/cql/HIVIND37Logic.cql b/input/cql/HIVIND37Logic.cql index 0ca1b334e36..fc5f5401c94 100644 --- a/input/cql/HIVIND37Logic.cql +++ b/input/cql/HIVIND37Logic.cql @@ -66,8 +66,10 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -89,8 +91,19 @@ define "Initial Population": * Calculation: COUNT of clients with "HIV status"='HIV-positive' AND "Place of delivery" is a 'Health facility' AND "Delivery date" is in the reporting period AND "Date of viral load sample collection" is on "Delivery date" AND "Viral load test result" LESS THAN 1000 copies/mL */ +define "First Health facility": + (First(HE."Health facility")) + define "Numerator": - true + HIE."HIV-positive B.DE116" + and HIE."On ART D.DE38" + and HIE."Health facility" + and exists( + HIE."Viral load test result D.DE387" VL + with HIC."viral load sample collection" P + such that VL.partOf.references(P) and start of P.performed.toInterval() = start of "First Health facility".performed.toInterval() + where VL.value < 1000 + ) /** @@ -101,8 +114,30 @@ define "Numerator": */ define "Denominator": - true - + HIE."HIV-positive B.DE116" + and HIE."On ART D.DE38" + and HIE."Health facility" + and exists( + HIE."Viral load test result D.DE387" VL + with HIC."viral load sample collection" P + such that VL.partOf.references(P) and start of P.performed.toInterval() = start of "First Health facility".performed.toInterval() + ) /* end Populations */ +/* + * Disaggregators + */ + + +define "Age Stratifier": + HIE."By Age Stratifier 3" + +define "Geographic Region Stratifier": + HIE."By Geographic Region Stratifier" + +define "Stratification": + HIE."By Age Stratifier 3" ++ ':' + HIE."By Geographic Region Stratifier" + + // need to add  Timing of ART initiation (during pregnancy, on ART at first ANC visit) \ No newline at end of file diff --git a/input/cql/HIVIND38Logic.cql b/input/cql/HIVIND38Logic.cql index 894312b5a3a..953f05cef27 100644 --- a/input/cql/HIVIND38Logic.cql +++ b/input/cql/HIVIND38Logic.cql @@ -66,8 +66,10 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -89,12 +91,22 @@ define "Initial Population": * Calculation: COUNT of infants who are an "HIV-exposed infant or child" with "Infant date of birth" within the reporting period AND with "Date of viral load sample collection" LESS THAN 2 months AFTER "Infant date of birth" AND "HIV test type"='Nucleic acid test for HIV' */ + define "Numerator": - true + exists(HE."HIV-exposed infant or child E.DE112" O + with [Patient] P + such that O.subject.references(P) and P.birthDate during "Measurement Period") + and exists( + HE."Nucleic acid test for HIV B.DE84" O + with [Patient] Pt + such that O.subject.references(Pt) + and months between start of O.effective.toInterval() and FHIRHelpers.ToDate(Pt.birthDate) < 2 months) + + /** - * Denominator + * Denominator - THiS SHOULDN'T BE PROPORTION * * Definition: Estimated number of HIV-positive women who delivered during the reporting period. | | Note: The denominator is a proxy measure for the number of infants born to HIV-infected women. * Calculation: *Estimated number of HIV-positive women who delivered during the reporting period @@ -106,3 +118,10 @@ define "Denominator": /* end Populations */ +/* + * Disaggregators + */ + + +define "Geographic Region Stratifier": + HIE."By Geographic Region Stratifier" \ No newline at end of file diff --git a/input/cql/HIVIND39Logic.cql b/input/cql/HIVIND39Logic.cql index 48b3c1beed1..887ae62991f 100644 --- a/input/cql/HIVIND39Logic.cql +++ b/input/cql/HIVIND39Logic.cql @@ -60,7 +60,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND3Logic.cql b/input/cql/HIVIND3Logic.cql index 2b1bd88564c..09007f6a4e9 100644 --- a/input/cql/HIVIND3Logic.cql +++ b/input/cql/HIVIND3Logic.cql @@ -98,6 +98,9 @@ include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE + // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -131,13 +134,13 @@ define "denominator": */ define "Administrative Gender Stratifier": - HIC."By Administrative Gender Stratifier" + HIE."By Administrative Gender Stratifier" define "Age Stratifier": - HIC."By Age Stratifier 3" + HIE."By Age Stratifier 3" define "Geographic Region Stratifier": - HIC."By Geographic Region Stratifier" + HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": HIC."patientGroups" @@ -157,9 +160,9 @@ define "prep_dosing": // Provider type concepts are not found in DD define "Stratification": - HIC."By Administrative Gender Stratifier".code - + ':' + HIC."By Age Stratifier 3" -+ ':' + HIC."By Geographic Region Stratifier" + HIE."By Administrative Gender Stratifier".code + + ':' + HIE."By Age Stratifier 3" ++ ':' + HIE."By Geographic Region Stratifier" + Combine(HIC.patientGroups, ':') + Combine(HIC.setting, ':') + Combine(HIC.prep_product, ':') diff --git a/input/cql/HIVIND40Logic.cql b/input/cql/HIVIND40Logic.cql index 898f3d84b07..0e32bab4a00 100644 --- a/input/cql/HIVIND40Logic.cql +++ b/input/cql/HIVIND40Logic.cql @@ -64,7 +64,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND41Logic.cql b/input/cql/HIVIND41Logic.cql index f25abed6482..6f6cfe61efe 100644 --- a/input/cql/HIVIND41Logic.cql +++ b/input/cql/HIVIND41Logic.cql @@ -62,7 +62,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND42Logic.cql b/input/cql/HIVIND42Logic.cql index b3279fd6923..62c290700aa 100644 --- a/input/cql/HIVIND42Logic.cql +++ b/input/cql/HIVIND42Logic.cql @@ -60,7 +60,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND43Logic.cql b/input/cql/HIVIND43Logic.cql index 8f15a4710e5..2725b56d45b 100644 --- a/input/cql/HIVIND43Logic.cql +++ b/input/cql/HIVIND43Logic.cql @@ -64,7 +64,6 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND44Logic.cql b/input/cql/HIVIND44Logic.cql index b842bcf4dcf..75a40701601 100644 --- a/input/cql/HIVIND44Logic.cql +++ b/input/cql/HIVIND44Logic.cql @@ -14,7 +14,7 @@ * Denominator Exclusions: * * Disaggregations: - * • Gender (female, male, other*) + * • Gender (female, male, other*) * • Age (0–4, 5–9, 10–14, 15–19, 20–24, 25–29, 30–34, 35–39, 40–44, 45–49, 50+ years)** * • Type of TPT regimen * • Cities and other administrative regions of epidemiologic importance @@ -67,9 +67,12 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE + // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -91,8 +94,7 @@ define "Initial Population": */ define "Numerator": - true - + HIE."HIV-positive B.DE116" and HIE."On ART" and exists(HIE."TB preventive treatment TPT start date in measurement period") /** * Denominator @@ -102,8 +104,27 @@ define "Numerator": */ define "Denominator": - true + HIE."HIV-positive B.DE116" and HIE."On ART" and HIE."Eligible for TB preventive treatment" /* end Populations */ +/* + * Disaggregations: + * • Gender (female, male, other*) + * • Age (0–4, 5–9, 10–14, 15–19, 20–24, 25–29, 30–34, 35–39, 40–44, 45–49, 50+ years)** + * • Type of TPT regimen + * • Cities and other administrative regions of epidemiologic importance + */ + + define "Administrative Gender Stratifier": + HIE."By Administrative Gender Stratifier" + +define "Age Stratifier": + HIE."By Age Stratifier" + +define "TPT Regimen Type Stratifier": + HE."TPT regimen type" + +define "Geographic Region Stratifier": + HIE."By Geographic Region Stratifier" \ No newline at end of file diff --git a/input/cql/HIVIND45Logic.cql b/input/cql/HIVIND45Logic.cql index bc76e408e94..a1046464e26 100644 --- a/input/cql/HIVIND45Logic.cql +++ b/input/cql/HIVIND45Logic.cql @@ -76,13 +76,20 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom -// Indicator Definition +include HIVElements called HE +include HIVIndicatorElements called HIE + parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] context Patient + +/** + * Indicator Definition + */ + /* Populations */ /* @@ -100,8 +107,7 @@ define "Initial Population": */ define "Numerator": - true - + HIE."HIV-positive B.DE116" and HIE."On ART" and exists(HIE."TB preventive treatment TPT completed in measurement period") /** * Denominator @@ -111,8 +117,32 @@ define "Numerator": */ define "Denominator": - true + HIE."HIV-positive B.DE116" and HIE."On ART" and exists(HIE."TB preventive treatment TPT start date in measurement period") - /* end Populations */ +/* + * Disaggregation + * + * • Gender (female, male, other*) + * • Age (0–4, 5–9, 10–14, 15–19, 20–24, 25–29, 30–34, 35–39, 40–44, 45–49, 50+ years)** + * • Type of TPT regimen + * • ART initiation (<12 months on ART, 12+ months on ART) + * • Cities and other administrative regions of epidemiologic importance + * + */ + +define "Administrative Gender Stratifier": + HIE."By Administrative Gender Stratifier" + +define "Age Stratifier": + HIE."By Age Stratifier" + +define "TPT Regimen Type Stratifier": + HE."TPT regimen type" + +define "ART Initiation Stratifier": + HIE."By ART initiation" + +define "Geographic Region Stratifier": + HIE."By Geographic Region Stratifier" \ No newline at end of file diff --git a/input/cql/HIVIND46Logic.cql b/input/cql/HIVIND46Logic.cql index df2d2ddcc31..54bb23d97f2 100644 --- a/input/cql/HIVIND46Logic.cql +++ b/input/cql/HIVIND46Logic.cql @@ -84,7 +84,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND47Logic.cql b/input/cql/HIVIND47Logic.cql index bf737b89c7b..95150cd7c46 100644 --- a/input/cql/HIVIND47Logic.cql +++ b/input/cql/HIVIND47Logic.cql @@ -77,7 +77,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND48Logic.cql b/input/cql/HIVIND48Logic.cql index cd069c2c54d..ef2bb885aae 100644 --- a/input/cql/HIVIND48Logic.cql +++ b/input/cql/HIVIND48Logic.cql @@ -63,7 +63,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND49Logic.cql b/input/cql/HIVIND49Logic.cql index 682fad3e1b5..a5e702b3e5d 100644 --- a/input/cql/HIVIND49Logic.cql +++ b/input/cql/HIVIND49Logic.cql @@ -68,7 +68,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND4Logic.cql b/input/cql/HIVIND4Logic.cql index 446231423c1..2fdd85cd091 100644 --- a/input/cql/HIVIND4Logic.cql +++ b/input/cql/HIVIND4Logic.cql @@ -77,8 +77,10 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -//include FHIRCommon called FC + include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -112,13 +114,13 @@ define function "Measure Observation"(Patient "Patient"): */ define "Administrative Gender Stratifier": - HIC."By Administrative Gender Stratifier" + HIE."By Administrative Gender Stratifier" define "Age Stratifier": - HIC."By Age Stratifier 3" + HIE."By Age Stratifier 3" define "Geographic Region Stratifier": - HIC."By Geographic Region Stratifier" + HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": HIC."patientGroups" @@ -132,9 +134,9 @@ define "Setting": //provider type not provided? define "Stratification": - HIC."By Administrative Gender Stratifier".code - + ':' + HIC."By Age Stratifier 3" -+ ':' + HIC."By Geographic Region Stratifier" + HIE."By Administrative Gender Stratifier".code + + ':' + HIE."By Age Stratifier 3" ++ ':' + HIE."By Geographic Region Stratifier" + Combine(HIC.patientGroups, ':') + Combine(HIC.setting, ':') + Combine(HIC.prep_product, ':') diff --git a/input/cql/HIVIND50Logic.cql b/input/cql/HIVIND50Logic.cql index 14203a98d64..01b5f7ee7ad 100644 --- a/input/cql/HIVIND50Logic.cql +++ b/input/cql/HIVIND50Logic.cql @@ -78,7 +78,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND51Logic.cql b/input/cql/HIVIND51Logic.cql index ceee0411a03..bfe94f32c43 100644 --- a/input/cql/HIVIND51Logic.cql +++ b/input/cql/HIVIND51Logic.cql @@ -80,7 +80,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND52Logic.cql b/input/cql/HIVIND52Logic.cql index c6a2fbcf845..6e153b01850 100644 --- a/input/cql/HIVIND52Logic.cql +++ b/input/cql/HIVIND52Logic.cql @@ -80,7 +80,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND53Logic.cql b/input/cql/HIVIND53Logic.cql index ef9ace24a30..cb1067423bf 100644 --- a/input/cql/HIVIND53Logic.cql +++ b/input/cql/HIVIND53Logic.cql @@ -70,7 +70,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND54Logic.cql b/input/cql/HIVIND54Logic.cql index e0d33f26778..d3592196034 100644 --- a/input/cql/HIVIND54Logic.cql +++ b/input/cql/HIVIND54Logic.cql @@ -82,7 +82,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND55Logic.cql b/input/cql/HIVIND55Logic.cql index f30289133bb..cab322ac98d 100644 --- a/input/cql/HIVIND55Logic.cql +++ b/input/cql/HIVIND55Logic.cql @@ -82,7 +82,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND56Logic.cql b/input/cql/HIVIND56Logic.cql index 3e730541b8c..d792295cc77 100644 --- a/input/cql/HIVIND56Logic.cql +++ b/input/cql/HIVIND56Logic.cql @@ -72,7 +72,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND57Logic.cql b/input/cql/HIVIND57Logic.cql index dc726132a32..215cfb52e45 100644 --- a/input/cql/HIVIND57Logic.cql +++ b/input/cql/HIVIND57Logic.cql @@ -76,7 +76,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND58Logic.cql b/input/cql/HIVIND58Logic.cql index 445b4057073..76f00d2bafc 100644 --- a/input/cql/HIVIND58Logic.cql +++ b/input/cql/HIVIND58Logic.cql @@ -79,7 +79,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND59Logic.cql b/input/cql/HIVIND59Logic.cql index 0f426368329..5e01610e783 100644 --- a/input/cql/HIVIND59Logic.cql +++ b/input/cql/HIVIND59Logic.cql @@ -72,7 +72,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND5Logic.cql b/input/cql/HIVIND5Logic.cql index 6d979a9cdb7..a5fc41c94b8 100644 --- a/input/cql/HIVIND5Logic.cql +++ b/input/cql/HIVIND5Logic.cql @@ -79,6 +79,9 @@ include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE + // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -106,13 +109,13 @@ define function "Measure Observation"(Patient "Patient"): */ define "Administrative Gender Stratifier": - HIC."By Administrative Gender Stratifier" + HIE."By Administrative Gender Stratifier" define "Age Stratifier": - HIC."By Age Stratifier 3" + HIE."By Age Stratifier 3" define "Geographic Region Stratifier": - HIC."By Geographic Region Stratifier" + HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": HIC."patientGroups" @@ -129,9 +132,9 @@ define "hiv_exposure_type": //provider type not provided? define "Stratification": - HIC."By Administrative Gender Stratifier".code - + ':' + HIC."By Age Stratifier 3" -+ ':' + HIC."By Geographic Region Stratifier" + HIE."By Administrative Gender Stratifier".code + + ':' + HIE."By Age Stratifier 3" ++ ':' + HIE."By Geographic Region Stratifier" + Combine(HIC.patientGroups, ':') + Combine(HIC.setting, ':') + Combine(HIC.prep_product, ':') diff --git a/input/cql/HIVIND60Logic.cql b/input/cql/HIVIND60Logic.cql index 7cfa017d04f..b45063e1d85 100644 --- a/input/cql/HIVIND60Logic.cql +++ b/input/cql/HIVIND60Logic.cql @@ -53,7 +53,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND61Logic.cql b/input/cql/HIVIND61Logic.cql index 2c1ef8c920e..36e936cb250 100644 --- a/input/cql/HIVIND61Logic.cql +++ b/input/cql/HIVIND61Logic.cql @@ -53,7 +53,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND62Logic.cql b/input/cql/HIVIND62Logic.cql index ce82d62e493..9584d5b3512 100644 --- a/input/cql/HIVIND62Logic.cql +++ b/input/cql/HIVIND62Logic.cql @@ -92,7 +92,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND63Logic.cql b/input/cql/HIVIND63Logic.cql index 8fd29f1cd76..ab4ecae25e7 100644 --- a/input/cql/HIVIND63Logic.cql +++ b/input/cql/HIVIND63Logic.cql @@ -82,7 +82,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND64Logic.cql b/input/cql/HIVIND64Logic.cql index ff937f40235..703f3e94d02 100644 --- a/input/cql/HIVIND64Logic.cql +++ b/input/cql/HIVIND64Logic.cql @@ -66,7 +66,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND65Logic.cql b/input/cql/HIVIND65Logic.cql index 06fef934301..8d53edd2831 100644 --- a/input/cql/HIVIND65Logic.cql +++ b/input/cql/HIVIND65Logic.cql @@ -66,7 +66,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND66Logic.cql b/input/cql/HIVIND66Logic.cql index 43a5ccfd6c1..75676469e60 100644 --- a/input/cql/HIVIND66Logic.cql +++ b/input/cql/HIVIND66Logic.cql @@ -94,7 +94,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND67Logic.cql b/input/cql/HIVIND67Logic.cql index 7b81f0856eb..94cfd46f4b3 100644 --- a/input/cql/HIVIND67Logic.cql +++ b/input/cql/HIVIND67Logic.cql @@ -85,7 +85,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND68Logic.cql b/input/cql/HIVIND68Logic.cql index a5dd5694f2f..cd128ab6b93 100644 --- a/input/cql/HIVIND68Logic.cql +++ b/input/cql/HIVIND68Logic.cql @@ -69,7 +69,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND69Logic.cql b/input/cql/HIVIND69Logic.cql index 012b1bc2c08..bcbb45ecd1e 100644 --- a/input/cql/HIVIND69Logic.cql +++ b/input/cql/HIVIND69Logic.cql @@ -69,7 +69,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND6Logic.cql b/input/cql/HIVIND6Logic.cql index 93c837ba4ce..7b344bd54ef 100644 --- a/input/cql/HIVIND6Logic.cql +++ b/input/cql/HIVIND6Logic.cql @@ -81,6 +81,9 @@ include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE + // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -108,13 +111,13 @@ define "denominator": */ define "Administrative Gender Stratifier": - HIC."By Administrative Gender Stratifier" + HIE."By Administrative Gender Stratifier" define "Age Stratifier": - HIC."By Age Stratifier 3" + HIE."By Age Stratifier 3" define "Geographic Region Stratifier": - HIC."By Geographic Region Stratifier" + HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": HIC."patientGroups" @@ -131,9 +134,9 @@ define "hiv_exposure_type": //provider type not provided? define "Stratification": - HIC."By Administrative Gender Stratifier".code - + ':' + HIC."By Age Stratifier 3" -+ ':' + HIC."By Geographic Region Stratifier" + HIE."By Administrative Gender Stratifier".code + + ':' + HIE."By Age Stratifier 3" ++ ':' + HIE."By Geographic Region Stratifier" + Combine(HIC.patientGroups, ':') + Combine(HIC.setting, ':') + Combine(HIC.prep_product, ':') diff --git a/input/cql/HIVIND70Logic.cql b/input/cql/HIVIND70Logic.cql index d2d979b1bfe..edf9bcea6d3 100644 --- a/input/cql/HIVIND70Logic.cql +++ b/input/cql/HIVIND70Logic.cql @@ -105,7 +105,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND71Logic.cql b/input/cql/HIVIND71Logic.cql index bc9e7196e10..82e6ebe2920 100644 --- a/input/cql/HIVIND71Logic.cql +++ b/input/cql/HIVIND71Logic.cql @@ -98,7 +98,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND72Logic.cql b/input/cql/HIVIND72Logic.cql index 6a289f98c20..66ae952aaf9 100644 --- a/input/cql/HIVIND72Logic.cql +++ b/input/cql/HIVIND72Logic.cql @@ -114,7 +114,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND73Logic.cql b/input/cql/HIVIND73Logic.cql index 4f2d207a5f7..b9398aa0155 100644 --- a/input/cql/HIVIND73Logic.cql +++ b/input/cql/HIVIND73Logic.cql @@ -104,7 +104,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND74Logic.cql b/input/cql/HIVIND74Logic.cql index 3c7c7311913..bdd84e42c3b 100644 --- a/input/cql/HIVIND74Logic.cql +++ b/input/cql/HIVIND74Logic.cql @@ -89,7 +89,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND75Logic.cql b/input/cql/HIVIND75Logic.cql index e00f0a02a92..33dc1b02b76 100644 --- a/input/cql/HIVIND75Logic.cql +++ b/input/cql/HIVIND75Logic.cql @@ -80,7 +80,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND76Logic.cql b/input/cql/HIVIND76Logic.cql index 80ba52dfd2d..bfe1fa89c10 100644 --- a/input/cql/HIVIND76Logic.cql +++ b/input/cql/HIVIND76Logic.cql @@ -95,7 +95,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND77Logic.cql b/input/cql/HIVIND77Logic.cql index 7ec26990916..5b95d7381df 100644 --- a/input/cql/HIVIND77Logic.cql +++ b/input/cql/HIVIND77Logic.cql @@ -88,7 +88,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND78Logic.cql b/input/cql/HIVIND78Logic.cql index c081814ff8b..2cd0cac084d 100644 --- a/input/cql/HIVIND78Logic.cql +++ b/input/cql/HIVIND78Logic.cql @@ -95,7 +95,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND79Logic.cql b/input/cql/HIVIND79Logic.cql index 07f95936fe0..89fbe50ae53 100644 --- a/input/cql/HIVIND79Logic.cql +++ b/input/cql/HIVIND79Logic.cql @@ -88,7 +88,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND7Logic.cql b/input/cql/HIVIND7Logic.cql index 221e86a111a..26871ae948e 100644 --- a/input/cql/HIVIND7Logic.cql +++ b/input/cql/HIVIND7Logic.cql @@ -89,6 +89,9 @@ include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE + // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -121,13 +124,13 @@ define "denominator": */ define "Administrative Gender Stratifier": - HIC."By Administrative Gender Stratifier" + HIE."By Administrative Gender Stratifier" define "Age Stratifier": - HIC."By Age Stratifier 3" + HIE."By Age Stratifier 3" define "Geographic Region Stratifier": - HIC."By Geographic Region Stratifier" + HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": HIC."patientGroups" @@ -144,9 +147,9 @@ define "hiv_exposure_type": //provider type not provided? define "Stratification": - HIC."By Administrative Gender Stratifier".code - + ':' + HIC."By Age Stratifier 3" -+ ':' + HIC."By Geographic Region Stratifier" + HIE."By Administrative Gender Stratifier".code + + ':' + HIE."By Age Stratifier 3" ++ ':' + HIE."By Geographic Region Stratifier" + Combine(HIC.patientGroups, ':') + Combine(HIC.setting, ':') + Combine(HIC.prep_product, ':') diff --git a/input/cql/HIVIND80Logic.cql b/input/cql/HIVIND80Logic.cql index 26a80dc0378..2ffcd47c040 100644 --- a/input/cql/HIVIND80Logic.cql +++ b/input/cql/HIVIND80Logic.cql @@ -71,7 +71,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND81Logic.cql b/input/cql/HIVIND81Logic.cql index b3d40ee392f..9573128beef 100644 --- a/input/cql/HIVIND81Logic.cql +++ b/input/cql/HIVIND81Logic.cql @@ -73,7 +73,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND82Logic.cql b/input/cql/HIVIND82Logic.cql index 30c9ec5ae33..c5fcfe23980 100644 --- a/input/cql/HIVIND82Logic.cql +++ b/input/cql/HIVIND82Logic.cql @@ -70,7 +70,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND83Logic.cql b/input/cql/HIVIND83Logic.cql index eefcef7e990..43fcb514f04 100644 --- a/input/cql/HIVIND83Logic.cql +++ b/input/cql/HIVIND83Logic.cql @@ -71,7 +71,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND84Logic.cql b/input/cql/HIVIND84Logic.cql index 7c8bed70ad3..065a1861dd5 100644 --- a/input/cql/HIVIND84Logic.cql +++ b/input/cql/HIVIND84Logic.cql @@ -72,7 +72,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND85Logic.cql b/input/cql/HIVIND85Logic.cql index 9e20c3b8bc3..2ae7a77a951 100644 --- a/input/cql/HIVIND85Logic.cql +++ b/input/cql/HIVIND85Logic.cql @@ -80,7 +80,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND86Logic.cql b/input/cql/HIVIND86Logic.cql index 61b9393d5a6..39c4c6b8faf 100644 --- a/input/cql/HIVIND86Logic.cql +++ b/input/cql/HIVIND86Logic.cql @@ -79,7 +79,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND87Logic.cql b/input/cql/HIVIND87Logic.cql index 1f83e0bdea2..c9b88aa3b3c 100644 --- a/input/cql/HIVIND87Logic.cql +++ b/input/cql/HIVIND87Logic.cql @@ -78,7 +78,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND88Logic.cql b/input/cql/HIVIND88Logic.cql index 8bea98b6d8a..494cb497772 100644 --- a/input/cql/HIVIND88Logic.cql +++ b/input/cql/HIVIND88Logic.cql @@ -80,7 +80,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND89Logic.cql b/input/cql/HIVIND89Logic.cql index 5d922e072ed..9501833a386 100644 --- a/input/cql/HIVIND89Logic.cql +++ b/input/cql/HIVIND89Logic.cql @@ -78,7 +78,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND8Logic.cql b/input/cql/HIVIND8Logic.cql index 50996a6875d..502fe08c70a 100644 --- a/input/cql/HIVIND8Logic.cql +++ b/input/cql/HIVIND8Logic.cql @@ -67,6 +67,9 @@ include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE + // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -94,13 +97,13 @@ define "denominator": */ define "Administrative Gender Stratifier": - HIC."By Administrative Gender Stratifier" + HIE."By Administrative Gender Stratifier" define "Age Stratifier": - HIC."By Age Stratifier 3" + HIE."By Age Stratifier 3" define "Geographic Region Stratifier": - HIC."By Geographic Region Stratifier" + HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": HIC."patientGroups" @@ -111,8 +114,8 @@ define "Setting": //provider type not provided? define "Stratification": - HIC."By Administrative Gender Stratifier".code - + ':' + HIC."By Age Stratifier" -+ ':' + HIC."By Geographic Region Stratifier" + HIE."By Administrative Gender Stratifier".code + + ':' + HIE."By Age Stratifier" ++ ':' + HIE."By Geographic Region Stratifier" + Combine(HIC.patientGroups, ':') + Combine(HIC.setting, ':') \ No newline at end of file diff --git a/input/cql/HIVIND90Logic.cql b/input/cql/HIVIND90Logic.cql index 68176520d18..0134bb1db11 100644 --- a/input/cql/HIVIND90Logic.cql +++ b/input/cql/HIVIND90Logic.cql @@ -81,7 +81,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND91Logic.cql b/input/cql/HIVIND91Logic.cql index 314c0de8fe0..e7c8babd516 100644 --- a/input/cql/HIVIND91Logic.cql +++ b/input/cql/HIVIND91Logic.cql @@ -83,7 +83,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND92Logic.cql b/input/cql/HIVIND92Logic.cql index e8721c23608..0a17fbe5773 100644 --- a/input/cql/HIVIND92Logic.cql +++ b/input/cql/HIVIND92Logic.cql @@ -81,7 +81,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND93Logic.cql b/input/cql/HIVIND93Logic.cql index e004a8dc1d1..8f4b2807db4 100644 --- a/input/cql/HIVIND93Logic.cql +++ b/input/cql/HIVIND93Logic.cql @@ -50,7 +50,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND94Logic.cql b/input/cql/HIVIND94Logic.cql index adc0c1b6798..a5498b3e779 100644 --- a/input/cql/HIVIND94Logic.cql +++ b/input/cql/HIVIND94Logic.cql @@ -55,7 +55,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND95Logic.cql b/input/cql/HIVIND95Logic.cql index 1b9529b54a2..9f2689a05a8 100644 --- a/input/cql/HIVIND95Logic.cql +++ b/input/cql/HIVIND95Logic.cql @@ -65,7 +65,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND96Logic.cql b/input/cql/HIVIND96Logic.cql index 6cd41245919..e74c58a07f9 100644 --- a/input/cql/HIVIND96Logic.cql +++ b/input/cql/HIVIND96Logic.cql @@ -59,7 +59,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND9Logic.cql b/input/cql/HIVIND9Logic.cql index 31b69163540..05721809ba9 100644 --- a/input/cql/HIVIND9Logic.cql +++ b/input/cql/HIVIND9Logic.cql @@ -64,7 +64,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' -include FHIRCommon called FC + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIndicatorElements.cql b/input/cql/HIVIndicatorElements.cql index dd788582cc5..c43587f6bc3 100644 --- a/input/cql/HIVIndicatorElements.cql +++ b/input/cql/HIVIndicatorElements.cql @@ -20,6 +20,39 @@ context Patient * HIV Elements */ +/* + * Umbrella Data Elements + */ + +// ART Status + +define "ART Medication Statement": + Elements."ART Medication Statement" MS + where MS.effective.toInterval() overlaps "Measurement Period" + sort by start of effective.toInterval() + +define "On ART": + exists "ART Medication Statement" + +define "ART Start Date": + "ART Medication Statement" MS + return start of MS.effective.toInterval() + +define "ART Duration in Months": + "ART Medication Statement" MS + return duration in months of MS.effective.toInterval() + +define "By ART initiation": + case + when Sum("ART Duration in Months") < 12 then '<12 months on ART' + when Sum("ART Duration in Months") >= 12 then '12+ months on ART' + else 'Unknown' + end + +// Geographic Region +define "By Geographic Region Stratifier": + First(Patient.address A where A.use in { 'home' }).state + // Auto-generated Elements from DAK Data Dictionary // Entries based on DAK Data Dictionary for Data Elements marked as used // in at least one Decision Support Table or Aggregate Indicator @@ -52,110 +85,76 @@ define "Age In Months": define "Age In Days": AgeInDaysAt(start of "Measurement Period") -/* End of Age */ -/* -@dataElement: HIV.A.DE18 - Gender -@activity: HIV.A6.1 Review sociodemographic data with client | HIV.A5 Create new client record -@description: Gender of the client -*/ -// TODO: Replace placeholder with relevant CQL logic -define "Gender": - exists "Gender Observation" -define "Gender Observation": - Elements."Gender Observation" O - where O.effective.toInterval() during "Measurement Period" -/* End of Gender */ /* -@dataElement: HIV.A.DE19 - Female -@activity: HIV.A6.1 Review sociodemographic data with client | HIV.A5 Create new client record -@description: Client identifies as female -*/ -// TODO: Replace placeholder with relevant CQL logic -define "Female": - exists "Female Condition" - or exists "Female Observation" -define "Female Condition": - Elements."Female Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "Female Observation": - Elements."Female Observation" O - where O.effective.toInterval() during "Measurement Period" -/* End of Female */ + * By Age Stratifiers + * (0–4, 5–9, 10–14, 15–19, 20–24, 25–29, 30–34, 35–39, 40–44, 45–49, 50+ years) + * + */ +define "By Age Stratifier": + case + when "Age In Years" <= 4 then '0-4' + when "Age In Years" <= 9 then '5-9' + when "Age In Years" <= 14 then '10–14' + when "Age In Years" <= 19 then '15–19' + when "Age In Years" <= 24 then '20–24' + when "Age In Years" <= 29 then '25–29' + when "Age In Years" <= 34 then '30–34' + when "Age In Years" <= 39 then '35–39' + when "Age In Years" <= 44 then '40–44' + when "Age In Years" <= 49 then '45–49' + when "Age In Years" >= 50 then '50+' + else null + end + + /* + * By Age Stratifiers + * Age (0–4, 5–9, 10–14, 15–19, 20–24, 25–49, 50+ years) + * + */ +define "By Age Stratifier 2": + case + when "Age In Years" <= 4 then '0-4' + when "Age In Years" <= 9 then '5-9' + when "Age In Years" <= 14 then '10–14' + when "Age In Years" <= 19 then '15–19' + when "Age In Years" <= 24 then '20–24' + when "Age In Years" <= 49 then '25–49' + when "Age In Years" >= 50 then '50+' + else null + end + +define "By Age Stratifier 3": + case + when "Age In Years" >= 15 and "Age In Years"<= 19 then '15-19' + when "Age In Years" <= 24 then '20-24' + when "Age In Years" <= 49 then '25–49' + when "Age In Years" >= 50 then '50+' + else null + end -/* -@dataElement: HIV.A.DE20 - Male -@activity: HIV.A6.1 Review sociodemographic data with client | HIV.A5 Create new client record -@description: Client identifies as male -*/ -// TODO: Replace placeholder with relevant CQL logic -define "Male": - exists "Male Condition" - or exists "Male Observation" -define "Male Condition": - Elements."Male Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "Male Observation": - Elements."Male Observation" O - where O.effective.toInterval() during "Measurement Period" -/* End of Male */ +/* End of Age */ /* -@dataElement: HIV.A.DE21 - Transgender male +@dataElement: HIV.A.DE18 - Gender @activity: HIV.A6.1 Review sociodemographic data with client | HIV.A5 Create new client record -@description: Client identifies as transgender male +@description: Gender of the client */ -// TODO: Replace placeholder with relevant CQL logic -define "Transgender male": - exists "Transgender male Condition" - or exists "Transgender male Observation" -define "Transgender male Condition": - Elements."Transgender male Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "Transgender male Observation": - Elements."Transgender male Observation" O - where O.effective.toInterval() during "Measurement Period" -/* End of Transgender male */ /* -@dataElement: HIV.A.DE22 - Transgender female -@activity: HIV.A6.1 Review sociodemographic data with client | HIV.A5 Create new client record -@description: Client identifies as transgender female -*/ -// TODO: Replace placeholder with relevant CQL logic -define "Transgender female": - exists "Transgender female Condition" - or exists "Transgender female Observation" -define "Transgender female Condition": - Elements."Transgender female Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "Transgender female Observation": - Elements."Transgender female Observation" O - where O.effective.toInterval() during "Measurement Period" -/* End of Transgender female */ + * By Administrative Gender of Patient Stratifier + * Need to expand codes + */ -/* -@dataElement: HIV.A.DE23 - Other -@activity: HIV.A6.1 Review sociodemographic data with client | HIV.A5 Create new client record -@description: Additional category -*/ -// TODO: Replace placeholder with relevant CQL logic -define "Other A.DE23": - exists "Other A.DE23 Condition" - or exists "Other A.DE23 Observation" -define "Other A.DE23 Condition": - Elements."Other A.DE23 Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "Other A.DE23 Observation": - Elements."Other A.DE23 Observation" O - where O.effective.toInterval() during "Measurement Period" -/* End of Other A.DE23 */ +define "By Administrative Gender Stratifier": + case + when Patient.gender = 'male' then Concepts."Male" + when Patient.gender = 'female' then Concepts."Female" + when Patient.gender = 'transgender female' then Concepts."Transgender female" + when Patient.gender = 'transgender male' then Concepts."Transgender male" + else Concepts."Other - HIV.A.DE23" + end /* @dataElement: HIV.B.DE5 - Referred through partner services @@ -629,12 +628,10 @@ define "ART start date B.DE72 Value": @activity: HIV.B7 Test for HIV using testing algorithm @description: Type of HIV test */ -// TODO: Replace placeholder with relevant CQL logic + define "HIV test type B.DE81": - exists "HIV test type B.DE81 Observation" -define "HIV test type B.DE81 Observation": - Elements."HIV test type B.DE81 Observation" O - where O.effective.toInterval() during "Measurement Period" + exists Elements."HIV test type B.DE81" + /* End of HIV test type B.DE81 */ /* @@ -642,17 +639,10 @@ define "HIV test type B.DE81 Observation": @activity: HIV.B7 Test for HIV using testing algorithm @description: Antibody test for HIV performed with a rapid diagnostic */ -// TODO: Replace placeholder with relevant CQL logic + define "Rapid diagnostic test for HIV B.DE82": - exists "Rapid diagnostic test for HIV B.DE82 Condition" - or exists "Rapid diagnostic test for HIV B.DE82 Observation" -define "Rapid diagnostic test for HIV B.DE82 Condition": - Elements."Rapid diagnostic test for HIV B.DE82 Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "Rapid diagnostic test for HIV B.DE82 Observation": - Elements."Rapid diagnostic test for HIV B.DE82 Observation" O - where O.effective.toInterval() during "Measurement Period" + exists(Elements."Rapid diagnostic test for HIV B.DE82" O + where O.effective.toInterval() during "Measurement Period") /* End of Rapid diagnostic test for HIV B.DE82 */ /* @@ -660,17 +650,10 @@ define "Rapid diagnostic test for HIV B.DE82 Observation": @activity: HIV.B7 Test for HIV using testing algorithm @description: Antibody test for HIV performed with an enzyme immunoassay */ -// TODO: Replace placeholder with relevant CQL logic + define "Enzyme immunoassay for HIV B.DE83": - exists "Enzyme immunoassay for HIV B.DE83 Condition" - or exists "Enzyme immunoassay for HIV B.DE83 Observation" -define "Enzyme immunoassay for HIV B.DE83 Condition": - Elements."Enzyme immunoassay for HIV B.DE83 Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "Enzyme immunoassay for HIV B.DE83 Observation": - Elements."Enzyme immunoassay for HIV B.DE83 Observation" O - where O.effective.toInterval() during "Measurement Period" + exists(Elements."Enzyme immunoassay for HIV B.DE83" O + where O.effective.toInterval() during "Measurement Period") /* End of Enzyme immunoassay for HIV B.DE83 */ /* @@ -678,17 +661,10 @@ define "Enzyme immunoassay for HIV B.DE83 Observation": @activity: HIV.B7 Test for HIV using testing algorithm @description: Virological test, which includes testing for early infant diagnosis */ -// TODO: Replace placeholder with relevant CQL logic + define "Nucleic acid test for HIV B.DE84": - exists "Nucleic acid test for HIV B.DE84 Condition" - or exists "Nucleic acid test for HIV B.DE84 Observation" -define "Nucleic acid test for HIV B.DE84 Condition": - Elements."Nucleic acid test for HIV B.DE84 Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "Nucleic acid test for HIV B.DE84 Observation": - Elements."Nucleic acid test for HIV B.DE84 Observation" O - where O.effective.toInterval() during "Measurement Period" + exists(Elements."Nucleic acid test for HIV B.DE84" O + where O.effective.toInterval() during "Measurement Period") /* End of Nucleic acid test for HIV B.DE84 */ /* @@ -696,17 +672,10 @@ define "Nucleic acid test for HIV B.DE84 Observation": @activity: HIV.B7 Test for HIV using testing algorithm @description: Antibody test for HIV and syphilis performed with a rapid diagnostic */ -// TODO: Replace placeholder with relevant CQL logic + define "Dual HIV/syphilis rapid diagnostic test B.DE85": - exists "Dual HIV/syphilis rapid diagnostic test B.DE85 Condition" - or exists "Dual HIV/syphilis rapid diagnostic test B.DE85 Observation" -define "Dual HIV/syphilis rapid diagnostic test B.DE85 Condition": - Elements."Dual HIV/syphilis rapid diagnostic test B.DE85 Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "Dual HIV/syphilis rapid diagnostic test B.DE85 Observation": - Elements."Dual HIV/syphilis rapid diagnostic test B.DE85 Observation" O - where O.effective.toInterval() during "Measurement Period" + exists(Elements."Dual HIV/syphilis rapid diagnostic test B.DE85" O + where O.effective.toInterval() during "Measurement Period") /* End of Dual HIV/syphilis rapid diagnostic test B.DE85 */ /* @@ -714,17 +683,10 @@ define "Dual HIV/syphilis rapid diagnostic test B.DE85 Observation": @activity: HIV.B7 Test for HIV using testing algorithm @description: Antibody test for HIV performed by self-tester using a rapid diagnostic */ -// TODO: Replace placeholder with relevant CQL logic + define "HIV self-test": - exists "HIV self-test Condition" - or exists "HIV self-test Observation" -define "HIV self-test Condition": - Elements."HIV self-test Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "HIV self-test Observation": - Elements."HIV self-test Observation" O - where O.effective.toInterval() during "Measurement Period" + exists(Elements."HIV self-test" O + where O.effective.toInterval() during "Measurement Period") /* End of HIV self-test */ /* @@ -818,7 +780,7 @@ define "HIV status Observation": @activity: HIV.B7 Test for HIV using testing algorithm @description: Client is HIV-positive */ -// TODO: Replace placeholder with relevant CQL logic + define "HIV-positive B.DE116": exists(Elements."HIV-positive B.DE116" HIV where HIV starts before end of "Measurement Period") /* End of HIV-positive B.DE116 */ @@ -2509,12 +2471,7 @@ define "On ART D.DE38": @description: The date on which the client started or restarted ART */ // TODO: Replace placeholder with relevant CQL logic -define "ART start date D.DE39": - Elements."ART start date D.DE39" O - where O.effective.toInterval() during "Measurement Period" -define "ART start date D.DE39 Value": - "ART start date D.DE39" O - return O.value + /* End of ART start date D.DE39 */ /* @@ -5056,13 +5013,14 @@ define "Date of TB diagnosis Value": @activity: HIV.D8 Capture or update client history @description: The date on which the client began taking TPT */ -// TODO: Replace placeholder with relevant CQL logic -define "TB preventive treatment TPT start date": - Elements."TB preventive treatment TPT start date" O - where O.effective.toInterval() during "Measurement Period" -define "TB preventive treatment TPT start date Value": - "TB preventive treatment TPT start date" O - return O.value +define "TB preventive treatment TPT start date in measurement period": + Elements."TB preventive treatment TPT start date" D + where D in "Measurement Period" + +define "TB preventive treatment TPT completed in measurement period": + Elements."TPT regimen" MS + where start of MS.effective.toInterval() in "Measurement Period" + and MS.status = 'completed' /* End of TB preventive treatment TPT start date */ /* @@ -5277,103 +5235,13 @@ define "Eligible for TB preventive treatment Observation": @activity: HIV.D4 Screen for TB @description: Type of TPT regimen the client is currently on */ -// TODO: Replace placeholder with relevant CQL logic -define "TPT regimen type": - exists "TPT regimen type Observation" -define "TPT regimen type Observation": - Elements."TPT regimen type Observation" O - where O.effective.toInterval() during "Measurement Period" -/* End of TPT regimen type */ - -/* -@dataElement: HIV.D.DE1029 - 3HP -@activity: HIV.D4 Screen for TB -@description: The client's current TPT regimen is 3HP -*/ -// TODO: Replace placeholder with relevant CQL logic -define "3HP": - exists "3HP Condition" - or exists "3HP Observation" -define "3HP Condition": - Elements."3HP Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "3HP Observation": - Elements."3HP Observation" O - where O.effective.toInterval() during "Measurement Period" -/* End of 3HP */ - -/* -@dataElement: HIV.D.DE1030 - 1HP -@activity: HIV.D4 Screen for TB -@description: The client's current TPT regimen is 1HP -*/ -// TODO: Replace placeholder with relevant CQL logic -define "1HP": - exists "1HP Condition" - or exists "1HP Observation" -define "1HP Condition": - Elements."1HP Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "1HP Observation": - Elements."1HP Observation" O - where O.effective.toInterval() during "Measurement Period" -/* End of 1HP */ - -/* -@dataElement: HIV.D.DE1031 - 6H -@activity: HIV.D4 Screen for TB -@description: The client's current TPT regimen is 6H -*/ -// TODO: Replace placeholder with relevant CQL logic -define "6H": - exists "6H Condition" - or exists "6H Observation" -define "6H Condition": - Elements."6H Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "6H Observation": - Elements."6H Observation" O - where O.effective.toInterval() during "Measurement Period" -/* End of 6H */ - -/* -@dataElement: HIV.D.DE1032 - Six months of levofloxacin daily -@activity: HIV.D4 Screen for TB -@description: The client's current TPT regimen is six months of levofloxacin daily -*/ -// TODO: Replace placeholder with relevant CQL logic -define "Six months of levofloxacin daily": - exists "Six months of levofloxacin daily Condition" - or exists "Six months of levofloxacin daily Observation" -define "Six months of levofloxacin daily Condition": - Elements."Six months of levofloxacin daily Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "Six months of levofloxacin daily Observation": - Elements."Six months of levofloxacin daily Observation" O - where O.effective.toInterval() during "Measurement Period" -/* End of Six months of levofloxacin daily */ +define "On TPT regimen": + exists "TPT regimen" -/* -@dataElement: HIV.D.DE1033 - Other TB preventive treatment TPT regimen -@activity: HIV.D4 Screen for TB -@description: The client's current TPT regimen is another regimen than those listed above -*/ -// TODO: Replace placeholder with relevant CQL logic -define "Other TB preventive treatment TPT regimen": - exists "Other TB preventive treatment TPT regimen Condition" - or exists "Other TB preventive treatment TPT regimen Observation" -define "Other TB preventive treatment TPT regimen Condition": - Elements."Other TB preventive treatment TPT regimen Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "Other TB preventive treatment TPT regimen Observation": - Elements."Other TB preventive treatment TPT regimen Observation" O - where O.effective.toInterval() during "Measurement Period" -/* End of Other TB preventive treatment TPT regimen */ +define "TPT regimen": + Elements."TPT regimen" MS + where MS.effective.toInterval() during "Measurement Period" +/* End of TPT regimen type */ /* @dataElement: HIV.D.DE1034 - TB preventive treatment TPT status @@ -5564,12 +5432,10 @@ define "Delivery date Value": @activity: HIV.E1 Capture or update mother's history @description: The type of place where the woman delivered */ -// TODO: Replace placeholder with relevant CQL logic + define "Place of delivery": - exists "Place of delivery Observation" -define "Place of delivery Observation": - Elements."Place of delivery Observation" O - where O.effective.toInterval() during "Measurement Period" + exists (Elements."Place of delivery" P + where P.performed.toInterval() during "Measurement Period") /* End of Place of delivery */ /* @@ -5577,35 +5443,20 @@ define "Place of delivery Observation": @activity: HIV.E1 Capture or update mother's history @description: The woman delivered at a health facility */ -// TODO: Replace placeholder with relevant CQL logic + define "Health facility": - exists "Health facility Condition" - or exists "Health facility Observation" -define "Health facility Condition": - Elements."Health facility Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "Health facility Observation": - Elements."Health facility Observation" O - where O.effective.toInterval() during "Measurement Period" -/* End of Health facility */ + exists (Elements."Health facility" P + where P.performed.toInterval() during "Measurement Period") /* @dataElement: HIV.E.DE69 - Home @activity: HIV.E1 Capture or update mother's history @description: The woman delivered at home */ -// TODO: Replace placeholder with relevant CQL logic + define "Home": - exists "Home Condition" - or exists "Home Observation" -define "Home Condition": - Elements."Home Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "Home Observation": - Elements."Home Observation" O - where O.effective.toInterval() during "Measurement Period" + exists (Elements."Health facility" P + where P.performed.toInterval() during "Measurement Period") /* End of Home */ /* @@ -5613,17 +5464,10 @@ define "Home Observation": @activity: HIV.E1 Capture or update mother's history @description: The woman delivered at another location that is not at home or at a health facility */ -// TODO: Replace placeholder with relevant CQL logic + define "Other E.DE70": - exists "Other E.DE70 Condition" - or exists "Other E.DE70 Observation" -define "Other E.DE70 Condition": - Elements."Other E.DE70 Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "Other E.DE70 Observation": - Elements."Other E.DE70 Observation" O - where O.effective.toInterval() during "Measurement Period" + exists (Elements."Other E.DE70" P + where P.performed.toInterval() during "Measurement Period") /* End of Other E.DE70 */ /* @@ -5681,11 +5525,9 @@ define "Age of infant in years": @activity: HIV.F6 Check whether infant/child had HIV exposure @description: Whether the infant or child was determined to have had HIV exposure */ -// TODO: Replace placeholder with relevant CQL logic + define "HIV-exposed infant or child E.DE112": - exists "HIV-exposed infant or child E.DE112 Observation" -define "HIV-exposed infant or child E.DE112 Observation": - Elements."HIV-exposed infant or child E.DE112 Observation" O + exists Elements."HIV-exposed infant or child E.DE112" O where O.effective.toInterval() during "Measurement Period" /* End of HIV-exposed infant or child E.DE112 */ diff --git a/input/fsh/libraries/HIVB2DTLogic.fsh b/input/fsh/libraries/HIVB2DTLogic.fsh index b8f6f14fec7..8c4305d0ef9 100644 --- a/input/fsh/libraries/HIVB2DTLogic.fsh +++ b/input/fsh/libraries/HIVB2DTLogic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVB2DTLogic" +* url = "http://smart.who.int/hiv/Library/HIVB2DTLogic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVB7DTLogic.fsh b/input/fsh/libraries/HIVB7DTLogic.fsh index edfd7a6433c..e7f7e75a527 100644 --- a/input/fsh/libraries/HIVB7DTLogic.fsh +++ b/input/fsh/libraries/HIVB7DTLogic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVB7DTLogic" +* url = "http://smart.who.int/hiv/Library/HIVB7DTLogic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVB9DTLogic.fsh b/input/fsh/libraries/HIVB9DTLogic.fsh index 291085bcac5..6ff209ba0ca 100644 --- a/input/fsh/libraries/HIVB9DTLogic.fsh +++ b/input/fsh/libraries/HIVB9DTLogic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVB2DTLogic" +* url = "http://smart.who.int/hiv/Library/HIVB2DTLogic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVCommon.fsh b/input/fsh/libraries/HIVCommon.fsh index 73a46750a3d..90da519a2fe 100644 --- a/input/fsh/libraries/HIVCommon.fsh +++ b/input/fsh/libraries/HIVCommon.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVCommon" +* url = "http://smart.who.int/hiv/Library/HIVCommon" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVConcepts.fsh b/input/fsh/libraries/HIVConcepts.fsh index 41b212fbee8..55150688994 100644 --- a/input/fsh/libraries/HIVConcepts.fsh +++ b/input/fsh/libraries/HIVConcepts.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVConcepts" +* url = "http://smart.who.int/hiv/Library/HIVConcepts" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVConceptsCustom.fsh b/input/fsh/libraries/HIVConceptsCustom.fsh index a3c0918c5fc..5a00f0931e4 100644 --- a/input/fsh/libraries/HIVConceptsCustom.fsh +++ b/input/fsh/libraries/HIVConceptsCustom.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVConceptsCustom" +* url = "http://smart.who.int/hiv/Library/HIVConceptsCustom" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVElements.fsh b/input/fsh/libraries/HIVElements.fsh index 66390a76d29..f46cbf2b933 100644 --- a/input/fsh/libraries/HIVElements.fsh +++ b/input/fsh/libraries/HIVElements.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVElements" +* url = "http://smart.who.int/hiv/Library/HIVElements" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVEncounterElements.fsh b/input/fsh/libraries/HIVEncounterElements.fsh index aad142f766e..93f144b1d50 100644 --- a/input/fsh/libraries/HIVEncounterElements.fsh +++ b/input/fsh/libraries/HIVEncounterElements.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIVEncounter/Library/HIVEncounterElements" +* url = "http://smart.who.int/hivEncounter/Library/HIVEncounterElements" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND11Logic.fsh b/input/fsh/libraries/HIVIND11Logic.fsh index 55024abd1f2..8f3f69a1681 100644 --- a/input/fsh/libraries/HIVIND11Logic.fsh +++ b/input/fsh/libraries/HIVIND11Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND11Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND11Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND12Logic.fsh b/input/fsh/libraries/HIVIND12Logic.fsh index 003d1bd0a1e..d904fb0a541 100644 --- a/input/fsh/libraries/HIVIND12Logic.fsh +++ b/input/fsh/libraries/HIVIND12Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND12Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND12Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND13Logic.fsh b/input/fsh/libraries/HIVIND13Logic.fsh index 469bd5bbce2..67cadc830e7 100644 --- a/input/fsh/libraries/HIVIND13Logic.fsh +++ b/input/fsh/libraries/HIVIND13Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND13Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND13Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND14Logic.fsh b/input/fsh/libraries/HIVIND14Logic.fsh index db0214db232..5e4835296ba 100644 --- a/input/fsh/libraries/HIVIND14Logic.fsh +++ b/input/fsh/libraries/HIVIND14Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND14Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND14Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND15Logic.fsh b/input/fsh/libraries/HIVIND15Logic.fsh index a504f5b41aa..ed713c21576 100644 --- a/input/fsh/libraries/HIVIND15Logic.fsh +++ b/input/fsh/libraries/HIVIND15Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND15Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND15Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND16Logic.fsh b/input/fsh/libraries/HIVIND16Logic.fsh index ca0a2f3fb5e..512ae919d05 100644 --- a/input/fsh/libraries/HIVIND16Logic.fsh +++ b/input/fsh/libraries/HIVIND16Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND16Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND16Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND18Logic.fsh b/input/fsh/libraries/HIVIND18Logic.fsh index e5fd1e0e227..9b33b2dddd1 100644 --- a/input/fsh/libraries/HIVIND18Logic.fsh +++ b/input/fsh/libraries/HIVIND18Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND18Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND18Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND19Logic.fsh b/input/fsh/libraries/HIVIND19Logic.fsh index 48b7dd503f1..87b793fb7d9 100644 --- a/input/fsh/libraries/HIVIND19Logic.fsh +++ b/input/fsh/libraries/HIVIND19Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND19Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND19Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND20Logic.fsh b/input/fsh/libraries/HIVIND20Logic.fsh index e6afa489fa3..8dcb93fa339 100644 --- a/input/fsh/libraries/HIVIND20Logic.fsh +++ b/input/fsh/libraries/HIVIND20Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND20Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND20Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND21Logic.fsh b/input/fsh/libraries/HIVIND21Logic.fsh index f1265c52cc1..f3b0a5657b4 100644 --- a/input/fsh/libraries/HIVIND21Logic.fsh +++ b/input/fsh/libraries/HIVIND21Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND21Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND21Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND22Logic.fsh b/input/fsh/libraries/HIVIND22Logic.fsh index fca1761aca0..73faa49ad07 100644 --- a/input/fsh/libraries/HIVIND22Logic.fsh +++ b/input/fsh/libraries/HIVIND22Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND22Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND22Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND24Logic.fsh b/input/fsh/libraries/HIVIND24Logic.fsh index c8867194abf..5220262dd92 100644 --- a/input/fsh/libraries/HIVIND24Logic.fsh +++ b/input/fsh/libraries/HIVIND24Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND24Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND24Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND25Logic.fsh b/input/fsh/libraries/HIVIND25Logic.fsh index 47f6c557c58..7674b187ee9 100644 --- a/input/fsh/libraries/HIVIND25Logic.fsh +++ b/input/fsh/libraries/HIVIND25Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND25Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND25Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND27Logic.fsh b/input/fsh/libraries/HIVIND27Logic.fsh index 6e5c33a5fa0..f0c938ac914 100644 --- a/input/fsh/libraries/HIVIND27Logic.fsh +++ b/input/fsh/libraries/HIVIND27Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND27Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND27Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND28Logic.fsh b/input/fsh/libraries/HIVIND28Logic.fsh index 70a45c9748b..5a6d1705aec 100644 --- a/input/fsh/libraries/HIVIND28Logic.fsh +++ b/input/fsh/libraries/HIVIND28Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND28Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND28Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND29Logic.fsh b/input/fsh/libraries/HIVIND29Logic.fsh index 380d2f8caba..a92066fca09 100644 --- a/input/fsh/libraries/HIVIND29Logic.fsh +++ b/input/fsh/libraries/HIVIND29Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND29Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND29Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND2Logic.fsh b/input/fsh/libraries/HIVIND2Logic.fsh index f0f66d55e30..783efb6863e 100644 --- a/input/fsh/libraries/HIVIND2Logic.fsh +++ b/input/fsh/libraries/HIVIND2Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND2Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND2Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND30Logic.fsh b/input/fsh/libraries/HIVIND30Logic.fsh index 68825d65d6a..e97f14d4895 100644 --- a/input/fsh/libraries/HIVIND30Logic.fsh +++ b/input/fsh/libraries/HIVIND30Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND30Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND30Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND31Logic.fsh b/input/fsh/libraries/HIVIND31Logic.fsh index 827daa19127..85841892393 100644 --- a/input/fsh/libraries/HIVIND31Logic.fsh +++ b/input/fsh/libraries/HIVIND31Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND31Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND31Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND32Logic.fsh b/input/fsh/libraries/HIVIND32Logic.fsh index 27c91841a50..d2fde64c52d 100644 --- a/input/fsh/libraries/HIVIND32Logic.fsh +++ b/input/fsh/libraries/HIVIND32Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND32Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND32Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND33Logic.fsh b/input/fsh/libraries/HIVIND33Logic.fsh index e0024638e07..33fe8fa6fcc 100644 --- a/input/fsh/libraries/HIVIND33Logic.fsh +++ b/input/fsh/libraries/HIVIND33Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND33Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND33Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND34Logic.fsh b/input/fsh/libraries/HIVIND34Logic.fsh index 69e1cb74d53..bc7a932972c 100644 --- a/input/fsh/libraries/HIVIND34Logic.fsh +++ b/input/fsh/libraries/HIVIND34Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND34Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND34Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND35Logic.fsh b/input/fsh/libraries/HIVIND35Logic.fsh index 11e3c522d0b..1efce270445 100644 --- a/input/fsh/libraries/HIVIND35Logic.fsh +++ b/input/fsh/libraries/HIVIND35Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND35Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND35Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND37Logic.fsh b/input/fsh/libraries/HIVIND37Logic.fsh index 5b78cb22d9d..fc722d8c3fc 100644 --- a/input/fsh/libraries/HIVIND37Logic.fsh +++ b/input/fsh/libraries/HIVIND37Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND37Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND37Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND38Logic.fsh b/input/fsh/libraries/HIVIND38Logic.fsh index 358e5a75676..8618f571e96 100644 --- a/input/fsh/libraries/HIVIND38Logic.fsh +++ b/input/fsh/libraries/HIVIND38Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND38Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND38Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND39Logic.fsh b/input/fsh/libraries/HIVIND39Logic.fsh index eb76c349ba8..97483f92105 100644 --- a/input/fsh/libraries/HIVIND39Logic.fsh +++ b/input/fsh/libraries/HIVIND39Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND39Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND39Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND3Logic.fsh b/input/fsh/libraries/HIVIND3Logic.fsh index d67c52f8660..af53282f825 100644 --- a/input/fsh/libraries/HIVIND3Logic.fsh +++ b/input/fsh/libraries/HIVIND3Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND3Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND3Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND40Logic.fsh b/input/fsh/libraries/HIVIND40Logic.fsh index 475087351b5..b4efe4b93d0 100644 --- a/input/fsh/libraries/HIVIND40Logic.fsh +++ b/input/fsh/libraries/HIVIND40Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND40Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND40Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND41Logic.fsh b/input/fsh/libraries/HIVIND41Logic.fsh index 6f3f2269718..f9769fe512a 100644 --- a/input/fsh/libraries/HIVIND41Logic.fsh +++ b/input/fsh/libraries/HIVIND41Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND41Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND41Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND42Logic.fsh b/input/fsh/libraries/HIVIND42Logic.fsh index d5f1a02c6db..82ec82e1e90 100644 --- a/input/fsh/libraries/HIVIND42Logic.fsh +++ b/input/fsh/libraries/HIVIND42Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND42Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND42Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND43Logic.fsh b/input/fsh/libraries/HIVIND43Logic.fsh index 7db60d59882..74d8e143d37 100644 --- a/input/fsh/libraries/HIVIND43Logic.fsh +++ b/input/fsh/libraries/HIVIND43Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND43Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND43Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND44Logic.fsh b/input/fsh/libraries/HIVIND44Logic.fsh index f16c6dadc57..7914ea95854 100644 --- a/input/fsh/libraries/HIVIND44Logic.fsh +++ b/input/fsh/libraries/HIVIND44Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND44Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND44Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND45Logic.fsh b/input/fsh/libraries/HIVIND45Logic.fsh index 27d3e103d48..ae9f77c6cad 100644 --- a/input/fsh/libraries/HIVIND45Logic.fsh +++ b/input/fsh/libraries/HIVIND45Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND45Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND45Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND46Logic.fsh b/input/fsh/libraries/HIVIND46Logic.fsh index 9995cfd6a28..9225f538a66 100644 --- a/input/fsh/libraries/HIVIND46Logic.fsh +++ b/input/fsh/libraries/HIVIND46Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND46Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND46Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND47Logic.fsh b/input/fsh/libraries/HIVIND47Logic.fsh index 2cee89da036..2ab32eecd4c 100644 --- a/input/fsh/libraries/HIVIND47Logic.fsh +++ b/input/fsh/libraries/HIVIND47Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND47Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND47Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND48Logic.fsh b/input/fsh/libraries/HIVIND48Logic.fsh index a0decba743a..884e89c5a8f 100644 --- a/input/fsh/libraries/HIVIND48Logic.fsh +++ b/input/fsh/libraries/HIVIND48Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND48Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND48Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND49Logic.fsh b/input/fsh/libraries/HIVIND49Logic.fsh index e40db7895bd..5e08ca62915 100644 --- a/input/fsh/libraries/HIVIND49Logic.fsh +++ b/input/fsh/libraries/HIVIND49Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND49Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND49Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND4Logic.fsh b/input/fsh/libraries/HIVIND4Logic.fsh index 6a76111c50e..f35659f6c65 100644 --- a/input/fsh/libraries/HIVIND4Logic.fsh +++ b/input/fsh/libraries/HIVIND4Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND4Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND4Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND50Logic.fsh b/input/fsh/libraries/HIVIND50Logic.fsh index ef0cd96b4b7..bb99720b683 100644 --- a/input/fsh/libraries/HIVIND50Logic.fsh +++ b/input/fsh/libraries/HIVIND50Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND50Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND50Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND51Logic.fsh b/input/fsh/libraries/HIVIND51Logic.fsh index e508e4b7e8d..86c9b6f2c47 100644 --- a/input/fsh/libraries/HIVIND51Logic.fsh +++ b/input/fsh/libraries/HIVIND51Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND51Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND51Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND52Logic.fsh b/input/fsh/libraries/HIVIND52Logic.fsh index 134e9171c27..f5aacf690f3 100644 --- a/input/fsh/libraries/HIVIND52Logic.fsh +++ b/input/fsh/libraries/HIVIND52Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND52Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND52Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND53Logic.fsh b/input/fsh/libraries/HIVIND53Logic.fsh index c93096253dd..d09e34a05db 100644 --- a/input/fsh/libraries/HIVIND53Logic.fsh +++ b/input/fsh/libraries/HIVIND53Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND53Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND53Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND54Logic.fsh b/input/fsh/libraries/HIVIND54Logic.fsh index a53e61f3838..9c4e0a430c0 100644 --- a/input/fsh/libraries/HIVIND54Logic.fsh +++ b/input/fsh/libraries/HIVIND54Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND54Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND54Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND55Logic.fsh b/input/fsh/libraries/HIVIND55Logic.fsh index 987d8527c95..7157aa52543 100644 --- a/input/fsh/libraries/HIVIND55Logic.fsh +++ b/input/fsh/libraries/HIVIND55Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND55Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND55Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND56Logic.fsh b/input/fsh/libraries/HIVIND56Logic.fsh index 622ad6a06bd..80e9f2800cd 100644 --- a/input/fsh/libraries/HIVIND56Logic.fsh +++ b/input/fsh/libraries/HIVIND56Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND56Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND56Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND57Logic.fsh b/input/fsh/libraries/HIVIND57Logic.fsh index ae15d5c4018..ef00cd1473e 100644 --- a/input/fsh/libraries/HIVIND57Logic.fsh +++ b/input/fsh/libraries/HIVIND57Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND57Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND57Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND58Logic.fsh b/input/fsh/libraries/HIVIND58Logic.fsh index aa51f8dfe3b..2fd737b8bd6 100644 --- a/input/fsh/libraries/HIVIND58Logic.fsh +++ b/input/fsh/libraries/HIVIND58Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND58Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND58Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND59Logic.fsh b/input/fsh/libraries/HIVIND59Logic.fsh index 5d6e4f3e870..1f94a43c3ba 100644 --- a/input/fsh/libraries/HIVIND59Logic.fsh +++ b/input/fsh/libraries/HIVIND59Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND59Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND59Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND5Logic.fsh b/input/fsh/libraries/HIVIND5Logic.fsh index 992670f611d..2a7cea9c4f7 100644 --- a/input/fsh/libraries/HIVIND5Logic.fsh +++ b/input/fsh/libraries/HIVIND5Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND5Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND5Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND60Logic.fsh b/input/fsh/libraries/HIVIND60Logic.fsh index 75848cd73fc..2bb0c2f8353 100644 --- a/input/fsh/libraries/HIVIND60Logic.fsh +++ b/input/fsh/libraries/HIVIND60Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND60Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND60Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND61Logic.fsh b/input/fsh/libraries/HIVIND61Logic.fsh index b191c1dc155..8f9e7752ea4 100644 --- a/input/fsh/libraries/HIVIND61Logic.fsh +++ b/input/fsh/libraries/HIVIND61Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND61Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND61Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND62Logic.fsh b/input/fsh/libraries/HIVIND62Logic.fsh index f9d26781493..74a1ccb25a9 100644 --- a/input/fsh/libraries/HIVIND62Logic.fsh +++ b/input/fsh/libraries/HIVIND62Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND62Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND62Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND63Logic.fsh b/input/fsh/libraries/HIVIND63Logic.fsh index 3f4c5bceae3..9784bf95466 100644 --- a/input/fsh/libraries/HIVIND63Logic.fsh +++ b/input/fsh/libraries/HIVIND63Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND63Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND63Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND64Logic.fsh b/input/fsh/libraries/HIVIND64Logic.fsh index 5bc5ba6922f..9a60a74301c 100644 --- a/input/fsh/libraries/HIVIND64Logic.fsh +++ b/input/fsh/libraries/HIVIND64Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND64Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND64Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND65Logic.fsh b/input/fsh/libraries/HIVIND65Logic.fsh index b74f4df08bc..a1a5e7cb1d4 100644 --- a/input/fsh/libraries/HIVIND65Logic.fsh +++ b/input/fsh/libraries/HIVIND65Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND65Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND65Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND66Logic.fsh b/input/fsh/libraries/HIVIND66Logic.fsh index ad535012179..c7d8985af5e 100644 --- a/input/fsh/libraries/HIVIND66Logic.fsh +++ b/input/fsh/libraries/HIVIND66Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND66Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND66Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND67Logic.fsh b/input/fsh/libraries/HIVIND67Logic.fsh index a6ee68836cf..d949818c2a8 100644 --- a/input/fsh/libraries/HIVIND67Logic.fsh +++ b/input/fsh/libraries/HIVIND67Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND67Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND67Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND68Logic.fsh b/input/fsh/libraries/HIVIND68Logic.fsh index 84d30578a0e..22edb6ddb01 100644 --- a/input/fsh/libraries/HIVIND68Logic.fsh +++ b/input/fsh/libraries/HIVIND68Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND68Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND68Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND69Logic.fsh b/input/fsh/libraries/HIVIND69Logic.fsh index 7cebdd14a08..dae3dff4bb1 100644 --- a/input/fsh/libraries/HIVIND69Logic.fsh +++ b/input/fsh/libraries/HIVIND69Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND69Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND69Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND6Logic.fsh b/input/fsh/libraries/HIVIND6Logic.fsh index d26f9fc2faf..69a643dd55e 100644 --- a/input/fsh/libraries/HIVIND6Logic.fsh +++ b/input/fsh/libraries/HIVIND6Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND6Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND6Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND70Logic.fsh b/input/fsh/libraries/HIVIND70Logic.fsh index 39bc0464592..682292373ca 100644 --- a/input/fsh/libraries/HIVIND70Logic.fsh +++ b/input/fsh/libraries/HIVIND70Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND70Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND70Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND71Logic.fsh b/input/fsh/libraries/HIVIND71Logic.fsh index 474ac1757eb..27b99c06727 100644 --- a/input/fsh/libraries/HIVIND71Logic.fsh +++ b/input/fsh/libraries/HIVIND71Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND71Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND71Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND72Logic.fsh b/input/fsh/libraries/HIVIND72Logic.fsh index 271a372b0f3..f3f5c939717 100644 --- a/input/fsh/libraries/HIVIND72Logic.fsh +++ b/input/fsh/libraries/HIVIND72Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND72Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND72Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND73Logic.fsh b/input/fsh/libraries/HIVIND73Logic.fsh index 160c1080b7c..2906195e729 100644 --- a/input/fsh/libraries/HIVIND73Logic.fsh +++ b/input/fsh/libraries/HIVIND73Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND73Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND73Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND74Logic.fsh b/input/fsh/libraries/HIVIND74Logic.fsh index d25acf09106..6500b14279d 100644 --- a/input/fsh/libraries/HIVIND74Logic.fsh +++ b/input/fsh/libraries/HIVIND74Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND74Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND74Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND75Logic.fsh b/input/fsh/libraries/HIVIND75Logic.fsh index 48496eeaa20..dfac7271be9 100644 --- a/input/fsh/libraries/HIVIND75Logic.fsh +++ b/input/fsh/libraries/HIVIND75Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND75Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND75Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND76Logic.fsh b/input/fsh/libraries/HIVIND76Logic.fsh index 0a7e9af70c5..ce29a190f50 100644 --- a/input/fsh/libraries/HIVIND76Logic.fsh +++ b/input/fsh/libraries/HIVIND76Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND76Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND76Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND77Logic.fsh b/input/fsh/libraries/HIVIND77Logic.fsh index 3596c5a1360..a5eea424e9a 100644 --- a/input/fsh/libraries/HIVIND77Logic.fsh +++ b/input/fsh/libraries/HIVIND77Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND77Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND77Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND78Logic.fsh b/input/fsh/libraries/HIVIND78Logic.fsh index ae30575f87e..5991d29df0b 100644 --- a/input/fsh/libraries/HIVIND78Logic.fsh +++ b/input/fsh/libraries/HIVIND78Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND78Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND78Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND79Logic.fsh b/input/fsh/libraries/HIVIND79Logic.fsh index 43c787a44d0..1cf27d170fc 100644 --- a/input/fsh/libraries/HIVIND79Logic.fsh +++ b/input/fsh/libraries/HIVIND79Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND79Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND79Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND7Logic.fsh b/input/fsh/libraries/HIVIND7Logic.fsh index be215bd4e5b..d19d72a7aec 100644 --- a/input/fsh/libraries/HIVIND7Logic.fsh +++ b/input/fsh/libraries/HIVIND7Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND7Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND7Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND80Logic.fsh b/input/fsh/libraries/HIVIND80Logic.fsh index 09dfa436892..99e84016632 100644 --- a/input/fsh/libraries/HIVIND80Logic.fsh +++ b/input/fsh/libraries/HIVIND80Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND80Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND80Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND81Logic.fsh b/input/fsh/libraries/HIVIND81Logic.fsh index 28daba8d70e..36f90b15810 100644 --- a/input/fsh/libraries/HIVIND81Logic.fsh +++ b/input/fsh/libraries/HIVIND81Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND81Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND81Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND82Logic.fsh b/input/fsh/libraries/HIVIND82Logic.fsh index 9c3d1cbe066..b23963db724 100644 --- a/input/fsh/libraries/HIVIND82Logic.fsh +++ b/input/fsh/libraries/HIVIND82Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND82Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND82Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND83Logic.fsh b/input/fsh/libraries/HIVIND83Logic.fsh index eb79fb9dbc0..f77407a45c8 100644 --- a/input/fsh/libraries/HIVIND83Logic.fsh +++ b/input/fsh/libraries/HIVIND83Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND83Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND83Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND84Logic.fsh b/input/fsh/libraries/HIVIND84Logic.fsh index 15ff4e2e1f9..852e3f12991 100644 --- a/input/fsh/libraries/HIVIND84Logic.fsh +++ b/input/fsh/libraries/HIVIND84Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND84Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND84Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND85Logic.fsh b/input/fsh/libraries/HIVIND85Logic.fsh index 7b3c765be23..266738ef941 100644 --- a/input/fsh/libraries/HIVIND85Logic.fsh +++ b/input/fsh/libraries/HIVIND85Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND85Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND85Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND86Logic.fsh b/input/fsh/libraries/HIVIND86Logic.fsh index f0c1c6cd6b2..66fa008606b 100644 --- a/input/fsh/libraries/HIVIND86Logic.fsh +++ b/input/fsh/libraries/HIVIND86Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND86Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND86Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND87Logic.fsh b/input/fsh/libraries/HIVIND87Logic.fsh index d557c54ef75..84841d61f76 100644 --- a/input/fsh/libraries/HIVIND87Logic.fsh +++ b/input/fsh/libraries/HIVIND87Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND87Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND87Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND88Logic.fsh b/input/fsh/libraries/HIVIND88Logic.fsh index b433e2ad499..246c3caef5b 100644 --- a/input/fsh/libraries/HIVIND88Logic.fsh +++ b/input/fsh/libraries/HIVIND88Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND88Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND88Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND89Logic.fsh b/input/fsh/libraries/HIVIND89Logic.fsh index f8108090a62..49cdd217e0a 100644 --- a/input/fsh/libraries/HIVIND89Logic.fsh +++ b/input/fsh/libraries/HIVIND89Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND89Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND89Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND8Logic.fsh b/input/fsh/libraries/HIVIND8Logic.fsh index b1ee8f304ee..4b32cd44c6f 100644 --- a/input/fsh/libraries/HIVIND8Logic.fsh +++ b/input/fsh/libraries/HIVIND8Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND8Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND8Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND90Logic.fsh b/input/fsh/libraries/HIVIND90Logic.fsh index fb6892fb518..26407ea5ddd 100644 --- a/input/fsh/libraries/HIVIND90Logic.fsh +++ b/input/fsh/libraries/HIVIND90Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND90Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND90Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND91Logic.fsh b/input/fsh/libraries/HIVIND91Logic.fsh index 31fe48f90d0..b4715d4d329 100644 --- a/input/fsh/libraries/HIVIND91Logic.fsh +++ b/input/fsh/libraries/HIVIND91Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND91Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND91Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND92Logic.fsh b/input/fsh/libraries/HIVIND92Logic.fsh index e6e83f9528d..4c6bab76529 100644 --- a/input/fsh/libraries/HIVIND92Logic.fsh +++ b/input/fsh/libraries/HIVIND92Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND92Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND92Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND93Logic.fsh b/input/fsh/libraries/HIVIND93Logic.fsh index 8d16d9f85ad..4890476e8b2 100644 --- a/input/fsh/libraries/HIVIND93Logic.fsh +++ b/input/fsh/libraries/HIVIND93Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND93Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND93Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND94Logic.fsh b/input/fsh/libraries/HIVIND94Logic.fsh index 6fd5ca4599e..fae779c89ec 100644 --- a/input/fsh/libraries/HIVIND94Logic.fsh +++ b/input/fsh/libraries/HIVIND94Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND94Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND94Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND95Logic.fsh b/input/fsh/libraries/HIVIND95Logic.fsh index 667e208b8c4..b4f30f4a6ec 100644 --- a/input/fsh/libraries/HIVIND95Logic.fsh +++ b/input/fsh/libraries/HIVIND95Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND95Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND95Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND96Logic.fsh b/input/fsh/libraries/HIVIND96Logic.fsh index 2b18408a645..97bf0f15808 100644 --- a/input/fsh/libraries/HIVIND96Logic.fsh +++ b/input/fsh/libraries/HIVIND96Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND96Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND96Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIND9Logic.fsh b/input/fsh/libraries/HIVIND9Logic.fsh index e77a507eeaa..ea45c62d2cb 100644 --- a/input/fsh/libraries/HIVIND9Logic.fsh +++ b/input/fsh/libraries/HIVIND9Logic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIV/Library/HIVIND9Logic" +* url = "http://smart.who.int/hiv/Library/HIVIND9Logic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIndicatorElements.fsh b/input/fsh/libraries/HIVIndicatorElements.fsh index 957392bcaff..2820fda0e5b 100644 --- a/input/fsh/libraries/HIVIndicatorElements.fsh +++ b/input/fsh/libraries/HIVIndicatorElements.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/HIVIndicator/Library/HIVIndicatorElements" +* url = "http://smart.who.int/hivIndicator/Library/HIVIndicatorElements" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/measures/HIVIND11.fsh b/input/fsh/measures/HIVIND11.fsh index 52e3efb1ab9..abded22d2dd 100644 --- a/input/fsh/measures/HIVIND11.fsh +++ b/input/fsh/measures/HIVIND11.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.11 OAMT coverage" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of opioid dependent people receiving opioid agonist maintenance treatment (OAMT) at a specified date" -* url = "http://smart.who.int/HIV/Measure/HIVIND11" +* url = "http://smart.who.int/hiv/Measure/HIVIND11" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND11" * title = "HIV.IND.11 OAMT coverage" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND11Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND11Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND12.fsh b/input/fsh/measures/HIVIND12.fsh index c22b1b8e239..01d57f0ed40 100644 --- a/input/fsh/measures/HIVIND12.fsh +++ b/input/fsh/measures/HIVIND12.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.12 Total person-years on OAMT" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of person-years of follow-up (PYFU) on OAMT among opioid dependent people" -* url = "http://smart.who.int/HIV/Measure/HIVIND12" +* url = "http://smart.who.int/hiv/Measure/HIVIND12" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND12" * title = "HIV.IND.12 Total person-years on OAMT" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND12Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND12Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND13.fsh b/input/fsh/measures/HIVIND13.fsh index 218ea6d2ba9..fad2e7169c9 100644 --- a/input/fsh/measures/HIVIND13.fsh +++ b/input/fsh/measures/HIVIND13.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.13 OAMT minimum duration" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of OAMT recipients who received treatment for at least six months" -* url = "http://smart.who.int/HIV/Measure/HIVIND13" +* url = "http://smart.who.int/hiv/Measure/HIVIND13" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND13" * title = "HIV.IND.13 OAMT minimum duration" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND13Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND13Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND14.fsh b/input/fsh/measures/HIVIND14.fsh index bbcaf249786..aeb964f600e 100644 --- a/input/fsh/measures/HIVIND14.fsh +++ b/input/fsh/measures/HIVIND14.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.14 OAMT minimum dose" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of OAMT recipients receiving a maintenance dose greater than or equal to the recommended minimum dose" -* url = "http://smart.who.int/HIV/Measure/HIVIND14" +* url = "http://smart.who.int/hiv/Measure/HIVIND14" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND14" * title = "HIV.IND.14 OAMT minimum dose" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND14Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND14Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND15.fsh b/input/fsh/measures/HIVIND15.fsh index 0e707561832..92f292fd676 100644 --- a/input/fsh/measures/HIVIND15.fsh +++ b/input/fsh/measures/HIVIND15.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.15 VMMC scale-up" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "Total number of voluntary medical male circumcisions (VMMCs) performed according to national standard during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND15" +* url = "http://smart.who.int/hiv/Measure/HIVIND15" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND15" * title = "HIV.IND.15 VMMC scale-up" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND15Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND15Logic" * scoring = $measure-scoring#continuous-variable "Continuous Variable" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND16.fsh b/input/fsh/measures/HIVIND16.fsh index 6daa23e8703..bbb520d0030 100644 --- a/input/fsh/measures/HIVIND16.fsh +++ b/input/fsh/measures/HIVIND16.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.16 VMMC adverse events" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "a) Number or (b) % of adverse events during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND16" +* url = "http://smart.who.int/hiv/Measure/HIVIND16" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND16" * title = "HIV.IND.16 VMMC adverse events" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND16Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND16Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND18.fsh b/input/fsh/measures/HIVIND18.fsh index 209a134ec60..d6f169622cd 100644 --- a/input/fsh/measures/HIVIND18.fsh +++ b/input/fsh/measures/HIVIND18.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.18 People living with HIV who know their HIV status (first 95)" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "Number and % of people living with HIV who know their HIV status" -* url = "http://smart.who.int/HIV/Measure/HIVIND18" +* url = "http://smart.who.int/hiv/Measure/HIVIND18" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND18" * title = "HIV.IND.18 People living with HIV who know their HIV status (first 95)" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND18Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND18Logic" * scoring = $measure-scoring#continuous-variable "Continuous Variable" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND19.fsh b/input/fsh/measures/HIVIND19.fsh index 8d72d538c96..de761c6fc9d 100644 --- a/input/fsh/measures/HIVIND19.fsh +++ b/input/fsh/measures/HIVIND19.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.19 HTS test volume and positivity" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "Number of HIV tests performed (volume) and the % of HIV-positive results returned to people (positivity)" -* url = "http://smart.who.int/HIV/Measure/HIVIND19" +* url = "http://smart.who.int/hiv/Measure/HIVIND19" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND19" * title = "HIV.IND.19 HTS test volume and positivity" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND19Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND19Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND2.fsh b/input/fsh/measures/HIVIND2.fsh index a152aff2485..b3045918514 100644 --- a/input/fsh/measures/HIVIND2.fsh +++ b/input/fsh/measures/HIVIND2.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.2 Total PrEP recipients" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "Number of people who received PrEP at least once during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND2" +* url = "http://smart.who.int/hiv/Measure/HIVIND2" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND2" * title = "HIV.IND.2 Total PrEP recipients" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND2Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND2Logic" * scoring = $measure-scoring#continuous-variable "Continuous Variable" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND20.fsh b/input/fsh/measures/HIVIND20.fsh index 9857f27a10e..d4605d36dd2 100644 --- a/input/fsh/measures/HIVIND20.fsh +++ b/input/fsh/measures/HIVIND20.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.20 Individuals testing positive for HIV" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% testing positive among people who received an HIV test in the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND20" +* url = "http://smart.who.int/hiv/Measure/HIVIND20" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND20" * title = "HIV.IND.20 Individuals testing positive for HIV" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND20Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND20Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND21.fsh b/input/fsh/measures/HIVIND21.fsh index cd7cb39f5ae..f1b93e1b2fb 100644 --- a/input/fsh/measures/HIVIND21.fsh +++ b/input/fsh/measures/HIVIND21.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.21 Linkage to ART" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people newly diagnosed with HIV initiated on ART" -* url = "http://smart.who.int/HIV/Measure/HIVIND21" +* url = "http://smart.who.int/hiv/Measure/HIVIND21" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND21" * title = "HIV.IND.21 Linkage to ART" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND21Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND21Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND22.fsh b/input/fsh/measures/HIVIND22.fsh index 39bb01fedc8..dc91051ff02 100644 --- a/input/fsh/measures/HIVIND22.fsh +++ b/input/fsh/measures/HIVIND22.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.22 HTS partner services" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "Number of people who were identified and tested using partner testing services and who received their results" -* url = "http://smart.who.int/HIV/Measure/HIVIND22" +* url = "http://smart.who.int/hiv/Measure/HIVIND22" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND22" * title = "HIV.IND.22 HTS partner services" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND22Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND22Logic" * scoring = $measure-scoring#continuous-variable "Continuous Variable" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND24.fsh b/input/fsh/measures/HIVIND24.fsh index 2c1176fb24d..a536127a29e 100644 --- a/input/fsh/measures/HIVIND24.fsh +++ b/input/fsh/measures/HIVIND24.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.24 HTS linkage to prevention" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "Among those testing HIV-negative and identified as being at elevated risk for HIV acquisition, % of people who receive an HIV prevention intervention within defined period" -* url = "http://smart.who.int/HIV/Measure/HIVIND24" +* url = "http://smart.who.int/hiv/Measure/HIVIND24" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND24" * title = "HIV.IND.24 HTS linkage to prevention" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND24Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND24Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND25.fsh b/input/fsh/measures/HIVIND25.fsh index 021b557b8d3..546c83ccdf0 100644 --- a/input/fsh/measures/HIVIND25.fsh +++ b/input/fsh/measures/HIVIND25.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.25 HIV retesting coverage" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people testing HIV-negative who tested again within a defined period of time after their previous test" -* url = "http://smart.who.int/HIV/Measure/HIVIND25" +* url = "http://smart.who.int/hiv/Measure/HIVIND25" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND25" * title = "HIV.IND.25 HIV retesting coverage" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND25Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND25Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND27.fsh b/input/fsh/measures/HIVIND27.fsh index 902e446dc18..92451f2467d 100644 --- a/input/fsh/measures/HIVIND27.fsh +++ b/input/fsh/measures/HIVIND27.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.27 People living with HIV on ART" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "Number and % of people on ART among all people living with HIV at the end of the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND27" +* url = "http://smart.who.int/hiv/Measure/HIVIND27" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND27" * title = "HIV.IND.27 People living with HIV on ART" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND27Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND27Logic" * scoring = $measure-scoring#continuous-variable "Continuous Variable" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND28.fsh b/input/fsh/measures/HIVIND28.fsh index ce9df48d1a2..b9f9432d9cc 100644 --- a/input/fsh/measures/HIVIND28.fsh +++ b/input/fsh/measures/HIVIND28.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.28 Total attrition from ART" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "Number and % of people living with HIV on ART at the end of the last reporting period and those newly initiating ART during the current reporting period who were not on ART at the end of the current reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND28" +* url = "http://smart.who.int/hiv/Measure/HIVIND28" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND28" * title = "HIV.IND.28 Total attrition from ART" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND28Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND28Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND29.fsh b/input/fsh/measures/HIVIND29.fsh index d77d0a0197f..40e63f0f632 100644 --- a/input/fsh/measures/HIVIND29.fsh +++ b/input/fsh/measures/HIVIND29.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.29 People living with HIV on ART who have suppressed viral load" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people living with HIV on ART (for at least six months) who have virological suppression" -* url = "http://smart.who.int/HIV/Measure/HIVIND29" +* url = "http://smart.who.int/hiv/Measure/HIVIND29" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND29" * title = "HIV.IND.29 People living with HIV on ART who have suppressed viral load" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND29Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND29Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND3.fsh b/input/fsh/measures/HIVIND3.fsh index 6983ceae346..60753f4cd1d 100644 --- a/input/fsh/measures/HIVIND3.fsh +++ b/input/fsh/measures/HIVIND3.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.3 PrEP coverage" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people prescribed PrEP among those identified as being at elevated risk for HIV acquisition" -* url = "http://smart.who.int/HIV/Measure/HIVIND3" +* url = "http://smart.who.int/hiv/Measure/HIVIND3" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND3" * title = "HIV.IND.3 PrEP coverage" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND3Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND3Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND30.fsh b/input/fsh/measures/HIVIND30.fsh index 68418bc68d2..ea0f85d94e4 100644 --- a/input/fsh/measures/HIVIND30.fsh +++ b/input/fsh/measures/HIVIND30.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.30 New ART patients" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "Number of people living with HIV who initiated ART" -* url = "http://smart.who.int/HIV/Measure/HIVIND30" +* url = "http://smart.who.int/hiv/Measure/HIVIND30" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND30" * title = "HIV.IND.30 New ART patients" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND30Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND30Logic" * scoring = $measure-scoring#continuous-variable "Continuous Variable" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND31.fsh b/input/fsh/measures/HIVIND31.fsh index f72dee06fef..2892e18c1de 100644 --- a/input/fsh/measures/HIVIND31.fsh +++ b/input/fsh/measures/HIVIND31.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.31 Late ART initiation" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people living with HIV who initiate ART with a CD4 count of <200 cells/mm3" -* url = "http://smart.who.int/HIV/Measure/HIVIND31" +* url = "http://smart.who.int/hiv/Measure/HIVIND31" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND31" * title = "HIV.IND.31 Late ART initiation" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND31Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND31Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND32.fsh b/input/fsh/measures/HIVIND32.fsh index 0fc531239df..c9685e77475 100644 --- a/input/fsh/measures/HIVIND32.fsh +++ b/input/fsh/measures/HIVIND32.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.32 Viral load testing coverage" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people living with HIV on ART (for at least six months) with viral load test results" -* url = "http://smart.who.int/HIV/Measure/HIVIND32" +* url = "http://smart.who.int/hiv/Measure/HIVIND32" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND32" * title = "HIV.IND.32 Viral load testing coverage" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND32Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND32Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND33.fsh b/input/fsh/measures/HIVIND33.fsh index f5493739723..b290d85befc 100644 --- a/input/fsh/measures/HIVIND33.fsh +++ b/input/fsh/measures/HIVIND33.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.33 Early viral load testing (at six months)" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "Number and % of people living with HIV on ART who had a viral load result reviewed by six months after initiation of ART" -* url = "http://smart.who.int/HIV/Measure/HIVIND33" +* url = "http://smart.who.int/hiv/Measure/HIVIND33" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND33" * title = "HIV.IND.33 Early viral load testing (at six months)" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND33Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND33Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND34.fsh b/input/fsh/measures/HIVIND34.fsh index 6ad6192ff8c..1010a6b2a95 100644 --- a/input/fsh/measures/HIVIND34.fsh +++ b/input/fsh/measures/HIVIND34.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.34 Appropriate second viral load test after adherence counsellin * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people living with HIV receiving ART with VL ≥1000 copies/mL who received a follow-up viral load test within three months" -* url = "http://smart.who.int/HIV/Measure/HIVIND34" +* url = "http://smart.who.int/hiv/Measure/HIVIND34" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND34" * title = "HIV.IND.34 Appropriate second viral load test after adherence counselling" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND34Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND34Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND35.fsh b/input/fsh/measures/HIVIND35.fsh index 422bbff6e86..660f74d94ef 100644 --- a/input/fsh/measures/HIVIND35.fsh +++ b/input/fsh/measures/HIVIND35.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.35 ARV toxicity prevalence" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of ART patients with treatment-limiting ARV toxicity" -* url = "http://smart.who.int/HIV/Measure/HIVIND35" +* url = "http://smart.who.int/hiv/Measure/HIVIND35" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND35" * title = "HIV.IND.35 ARV toxicity prevalence" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND35Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND35Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND37.fsh b/input/fsh/measures/HIVIND37.fsh index 1a4ab0b67c7..535ef8c960e 100644 --- a/input/fsh/measures/HIVIND37.fsh +++ b/input/fsh/measures/HIVIND37.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.37 Viral suppression at labour and delivery" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of HIV-positive pregnant women who are virally suppressed at labour and delivery" -* url = "http://smart.who.int/HIV/Measure/HIVIND37" +* url = "http://smart.who.int/hiv/Measure/HIVIND37" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND37" * title = "HIV.IND.37 Viral suppression at labour and delivery" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND37Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND37Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND38.fsh b/input/fsh/measures/HIVIND38.fsh index 9cf6006245f..ea937e8f85a 100644 --- a/input/fsh/measures/HIVIND38.fsh +++ b/input/fsh/measures/HIVIND38.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.38 Early infant diagnosis (EID) coverage" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of HIV-exposed infants who receive a virological test for HIV within two months (and 12 months) of birth" -* url = "http://smart.who.int/HIV/Measure/HIVIND38" +* url = "http://smart.who.int/hiv/Measure/HIVIND38" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND38" * title = "HIV.IND.38 Early infant diagnosis (EID) coverage" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND38Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND38Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND39.fsh b/input/fsh/measures/HIVIND39.fsh index af2f99bbb1d..ddd3fcb70bf 100644 --- a/input/fsh/measures/HIVIND39.fsh +++ b/input/fsh/measures/HIVIND39.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.39 Infant ARV prophylaxis coverage" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of HIV-exposed infants who initiated ARV prophylaxis" -* url = "http://smart.who.int/HIV/Measure/HIVIND39" +* url = "http://smart.who.int/hiv/Measure/HIVIND39" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND39" * title = "HIV.IND.39 Infant ARV prophylaxis coverage" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND39Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND39Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND4.fsh b/input/fsh/measures/HIVIND4.fsh index 459f13f22e7..fa534cb98f1 100644 --- a/input/fsh/measures/HIVIND4.fsh +++ b/input/fsh/measures/HIVIND4.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.4 Volume of PrEP prescribed" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "Total volume of PrEP product prescribed" -* url = "http://smart.who.int/HIV/Measure/HIVIND4" +* url = "http://smart.who.int/hiv/Measure/HIVIND4" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND4" * title = "HIV.IND.4 Volume of PrEP prescribed" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND4Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND4Logic" * scoring = $measure-scoring#continuous-variable "Continuous Variable" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND40.fsh b/input/fsh/measures/HIVIND40.fsh index 781c0c26b9b..c234a2f88ec 100644 --- a/input/fsh/measures/HIVIND40.fsh +++ b/input/fsh/measures/HIVIND40.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.40 ART coverage in pregnant women" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of HIV-positive pregnant women who received ART during pregnancy and/or at labour and delivery" -* url = "http://smart.who.int/HIV/Measure/HIVIND40" +* url = "http://smart.who.int/hiv/Measure/HIVIND40" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND40" * title = "HIV.IND.40 ART coverage in pregnant women" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND40Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND40Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND41.fsh b/input/fsh/measures/HIVIND41.fsh index b9212708ae0..54c23e34b41 100644 --- a/input/fsh/measures/HIVIND41.fsh +++ b/input/fsh/measures/HIVIND41.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.41 ART coverage in breastfeeding mothers" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of HIV-exposed breastfeeding infants whose mothers are receiving ART at 12 (and 24 months) postpartum" -* url = "http://smart.who.int/HIV/Measure/HIVIND41" +* url = "http://smart.who.int/hiv/Measure/HIVIND41" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND41" * title = "HIV.IND.41 ART coverage in breastfeeding mothers" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND41Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND41Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND42.fsh b/input/fsh/measures/HIVIND42.fsh index 208a9ee49c1..77f19ec4d95 100644 --- a/input/fsh/measures/HIVIND42.fsh +++ b/input/fsh/measures/HIVIND42.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.42 Final outcome of PMTCT" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of HIV-exposed infants whose final HIV outcome status is known" -* url = "http://smart.who.int/HIV/Measure/HIVIND42" +* url = "http://smart.who.int/hiv/Measure/HIVIND42" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND42" * title = "HIV.IND.42 Final outcome of PMTCT" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND42Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND42Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND43.fsh b/input/fsh/measures/HIVIND43.fsh index 7b5d31de43d..0716bfdd9c3 100644 --- a/input/fsh/measures/HIVIND43.fsh +++ b/input/fsh/measures/HIVIND43.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.43 HIV prevalence among women attending ANC" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of pregnant women who are HIV-positive at the time of their first test during the current pregnancy" -* url = "http://smart.who.int/HIV/Measure/HIVIND43" +* url = "http://smart.who.int/hiv/Measure/HIVIND43" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND43" * title = "HIV.IND.43 HIV prevalence among women attending ANC" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND43Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND43Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND44.fsh b/input/fsh/measures/HIVIND44.fsh index c20fa72d001..4f3cd33fbba 100644 --- a/input/fsh/measures/HIVIND44.fsh +++ b/input/fsh/measures/HIVIND44.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.44 TPT initiation" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "Number and % of eligible people living with HIV on ART who initiated TB preventive treatment" -* url = "http://smart.who.int/HIV/Measure/HIVIND44" +* url = "http://smart.who.int/hiv/Measure/HIVIND44" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND44" * title = "HIV.IND.44 TPT initiation" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND44Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND44Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND45.fsh b/input/fsh/measures/HIVIND45.fsh index 9f349f6b726..a2e1ebe3286 100644 --- a/input/fsh/measures/HIVIND45.fsh +++ b/input/fsh/measures/HIVIND45.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.45 TPT completion" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "Number and % of people living with HIV on ART who completed a course of TB preventive treatment among those who initiated TPT" -* url = "http://smart.who.int/HIV/Measure/HIVIND45" +* url = "http://smart.who.int/hiv/Measure/HIVIND45" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND45" * title = "HIV.IND.45 TPT completion" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND45Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND45Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND46.fsh b/input/fsh/measures/HIVIND46.fsh index b7874ddb8ff..f87b537dfdd 100644 --- a/input/fsh/measures/HIVIND46.fsh +++ b/input/fsh/measures/HIVIND46.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.46 TB diagnostic testing type" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people living with HIV with TB symptoms who receive a rapid molecular test, for example, Xpert MTB/RIF, as a first test for diagnosis of TB" -* url = "http://smart.who.int/HIV/Measure/HIVIND46" +* url = "http://smart.who.int/hiv/Measure/HIVIND46" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND46" * title = "HIV.IND.46 TB diagnostic testing type" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND46Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND46Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND47.fsh b/input/fsh/measures/HIVIND47.fsh index a2120a13b8d..34f2a3ee6a6 100644 --- a/input/fsh/measures/HIVIND47.fsh +++ b/input/fsh/measures/HIVIND47.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.47 People living with HIV with active TB disease" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people living with HIV newly initiated on ART who have active TB disease" -* url = "http://smart.who.int/HIV/Measure/HIVIND47" +* url = "http://smart.who.int/hiv/Measure/HIVIND47" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND47" * title = "HIV.IND.47 People living with HIV with active TB disease" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND47Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND47Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND48.fsh b/input/fsh/measures/HIVIND48.fsh index f34ba370fcd..10eaa937c24 100644 --- a/input/fsh/measures/HIVIND48.fsh +++ b/input/fsh/measures/HIVIND48.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.48 TB screening coverage among new ART patients" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people living with HIV newly initiated on ART who were screened for TB" -* url = "http://smart.who.int/HIV/Measure/HIVIND48" +* url = "http://smart.who.int/hiv/Measure/HIVIND48" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND48" * title = "HIV.IND.48 TB screening coverage among new ART patients" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND48Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND48Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND49.fsh b/input/fsh/measures/HIVIND49.fsh index 2f441635ea8..78f11f914b5 100644 --- a/input/fsh/measures/HIVIND49.fsh +++ b/input/fsh/measures/HIVIND49.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.49 TB symptom-screened positive among new ART patients" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people living with HIV newly initiated on ART who were screened for TB symptoms and who screened positive" -* url = "http://smart.who.int/HIV/Measure/HIVIND49" +* url = "http://smart.who.int/hiv/Measure/HIVIND49" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND49" * title = "HIV.IND.49 TB symptom-screened positive among new ART patients" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND49Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND49Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND5.fsh b/input/fsh/measures/HIVIND5.fsh index 93aafaa0f36..b48c2cf19fc 100644 --- a/input/fsh/measures/HIVIND5.fsh +++ b/input/fsh/measures/HIVIND5.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.5 Number of PEP recipients" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "Number of people prescribed PEP during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND5" +* url = "http://smart.who.int/hiv/Measure/HIVIND5" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND5" * title = "HIV.IND.5 Number of PEP recipients" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND5Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND5Logic" * scoring = $measure-scoring#continuous-variable "Continuous Variable" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND50.fsh b/input/fsh/measures/HIVIND50.fsh index 9eb9e5be3fc..7a043da19f5 100644 --- a/input/fsh/measures/HIVIND50.fsh +++ b/input/fsh/measures/HIVIND50.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.50 TB testing among those symptom-screened positive" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people living with HIV newly initiated on ART and screened positive for TB symptoms who then are tested for TB" -* url = "http://smart.who.int/HIV/Measure/HIVIND50" +* url = "http://smart.who.int/hiv/Measure/HIVIND50" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND50" * title = "HIV.IND.50 TB testing among those symptom-screened positive" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND50Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND50Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND51.fsh b/input/fsh/measures/HIVIND51.fsh index c4dbf774520..58940b01def 100644 --- a/input/fsh/measures/HIVIND51.fsh +++ b/input/fsh/measures/HIVIND51.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.51 TB diagnosis among those tested for TB" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people living with HIV newly initiated on ART and tested for TB who are diagnosed with active TB disease" -* url = "http://smart.who.int/HIV/Measure/HIVIND51" +* url = "http://smart.who.int/hiv/Measure/HIVIND51" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND51" * title = "HIV.IND.51 TB diagnosis among those tested for TB" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND51Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND51Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND52.fsh b/input/fsh/measures/HIVIND52.fsh index 254e5aacdbf..2f32fcd96f0 100644 --- a/input/fsh/measures/HIVIND52.fsh +++ b/input/fsh/measures/HIVIND52.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.52 TB treatment initiation among diagnosed" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people living with HIV newly initiated on ART and diagnosed with active TB who initiated TB treatment" -* url = "http://smart.who.int/HIV/Measure/HIVIND52" +* url = "http://smart.who.int/hiv/Measure/HIVIND52" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND52" * title = "HIV.IND.52 TB treatment initiation among diagnosed" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND52Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND52Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND53.fsh b/input/fsh/measures/HIVIND53.fsh index 302afa4d89a..9bc42dd75fe 100644 --- a/input/fsh/measures/HIVIND53.fsh +++ b/input/fsh/measures/HIVIND53.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.53 Multi-month ARV dispensing" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people living with HIV and On ART who are receiving multi-month dispensing of ARV medicine during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND53" +* url = "http://smart.who.int/hiv/Measure/HIVIND53" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND53" * title = "HIV.IND.53 Multi-month ARV dispensing" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND53Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND53Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND54.fsh b/input/fsh/measures/HIVIND54.fsh index 4b8ecb6542f..c7c13f1f34c 100644 --- a/input/fsh/measures/HIVIND54.fsh +++ b/input/fsh/measures/HIVIND54.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.54 Uptake of DSD ART models among people living with HIV" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people newly enrolled in DSD ART models among those eligible" -* url = "http://smart.who.int/HIV/Measure/HIVIND54" +* url = "http://smart.who.int/hiv/Measure/HIVIND54" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND54" * title = "HIV.IND.54 Uptake of DSD ART models among people living with HIV" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND54Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND54Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND55.fsh b/input/fsh/measures/HIVIND55.fsh index 77c1b162e86..e6c65942899 100644 --- a/input/fsh/measures/HIVIND55.fsh +++ b/input/fsh/measures/HIVIND55.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.55 Coverage of DSD ART models among people living with HIV on AR * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people living with HIV enrolled in DSD ART models among those eligible for DSD ART (for facilities with electronic HIS) or among people living with HIV On ART (facilities with paper-based systems) during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND55" +* url = "http://smart.who.int/hiv/Measure/HIVIND55" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND55" * title = "HIV.IND.55 Coverage of DSD ART models among people living with HIV on ART" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND55Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND55Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND56.fsh b/input/fsh/measures/HIVIND56.fsh index 3c4645e4b50..d4ee7ef1bec 100644 --- a/input/fsh/measures/HIVIND56.fsh +++ b/input/fsh/measures/HIVIND56.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.56 Retention in DSD ART models" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people retained in DSD ART models during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND56" +* url = "http://smart.who.int/hiv/Measure/HIVIND56" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND56" * title = "HIV.IND.56 Retention in DSD ART models" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND56Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND56Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND57.fsh b/input/fsh/measures/HIVIND57.fsh index 8ad850f3a94..230f2849a28 100644 --- a/input/fsh/measures/HIVIND57.fsh +++ b/input/fsh/measures/HIVIND57.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.57 Viral suppression among people living with HIV engaged in DSD * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people living with HIV engaged in DSD ART models who have virological suppression" -* url = "http://smart.who.int/HIV/Measure/HIVIND57" +* url = "http://smart.who.int/hiv/Measure/HIVIND57" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND57" * title = "HIV.IND.57 Viral suppression among people living with HIV engaged in DSD ART models" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND57Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND57Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND58.fsh b/input/fsh/measures/HIVIND58.fsh index 46e1c039832..2fcdd3202b7 100644 --- a/input/fsh/measures/HIVIND58.fsh +++ b/input/fsh/measures/HIVIND58.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.58 Syphilis testing coverage, HIV prevention services" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people attending HIV prevention services who were tested for syphilis during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND58" +* url = "http://smart.who.int/hiv/Measure/HIVIND58" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND58" * title = "HIV.IND.58 Syphilis testing coverage, HIV prevention services" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND58Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND58Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND59.fsh b/input/fsh/measures/HIVIND59.fsh index aa216c1f3bd..b2658d7d0dc 100644 --- a/input/fsh/measures/HIVIND59.fsh +++ b/input/fsh/measures/HIVIND59.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.59 Syphilis testing coverage, HIV-positive clients" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people living with HIV who were tested for syphilis during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND59" +* url = "http://smart.who.int/hiv/Measure/HIVIND59" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND59" * title = "HIV.IND.59 Syphilis testing coverage, HIV-positive clients" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND59Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND59Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND6.fsh b/input/fsh/measures/HIVIND6.fsh index a450eb55fda..0c6c6c1644d 100644 --- a/input/fsh/measures/HIVIND6.fsh +++ b/input/fsh/measures/HIVIND6.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.6 PEP completion" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of PEP recipients completing PEP course" -* url = "http://smart.who.int/HIV/Measure/HIVIND6" +* url = "http://smart.who.int/hiv/Measure/HIVIND6" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND6" * title = "HIV.IND.6 PEP completion" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND6Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND6Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND60.fsh b/input/fsh/measures/HIVIND60.fsh index 69f656b4160..5623ff2fcd3 100644 --- a/input/fsh/measures/HIVIND60.fsh +++ b/input/fsh/measures/HIVIND60.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.60 Syphilis testing coverage, pregnant women, first ANC visit" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of pregnant women who were tested for syphilis on first ANC services visit during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND60" +* url = "http://smart.who.int/hiv/Measure/HIVIND60" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND60" * title = "HIV.IND.60 Syphilis testing coverage, pregnant women, first ANC visit" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND60Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND60Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND61.fsh b/input/fsh/measures/HIVIND61.fsh index f9c06236158..76fb44d3ae7 100644 --- a/input/fsh/measures/HIVIND61.fsh +++ b/input/fsh/measures/HIVIND61.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.61 Syphilis testing coverage, pregnant women, any ANC visit" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of pregnant women who were tested for syphilis on any ANC visit during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND61" +* url = "http://smart.who.int/hiv/Measure/HIVIND61" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND61" * title = "HIV.IND.61 Syphilis testing coverage, pregnant women, any ANC visit" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND61Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND61Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND62.fsh b/input/fsh/measures/HIVIND62.fsh index f3be3d20eac..ca3fd66e824 100644 --- a/input/fsh/measures/HIVIND62.fsh +++ b/input/fsh/measures/HIVIND62.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.62 Syphilis test positivity, HIV prevention services" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people attending HIV prevention services who were tested for syphilis and had a positive syphilis test result during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND62" +* url = "http://smart.who.int/hiv/Measure/HIVIND62" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND62" * title = "HIV.IND.62 Syphilis test positivity, HIV prevention services" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND62Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND62Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND63.fsh b/input/fsh/measures/HIVIND63.fsh index aa19071ee36..a25f2dba9e5 100644 --- a/input/fsh/measures/HIVIND63.fsh +++ b/input/fsh/measures/HIVIND63.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.63 Syphilis test positivity, HIV-positive clients" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people living with HIV who were tested for syphilis and had a positive syphilis test result during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND63" +* url = "http://smart.who.int/hiv/Measure/HIVIND63" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND63" * title = "HIV.IND.63 Syphilis test positivity, HIV-positive clients" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND63Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND63Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND64.fsh b/input/fsh/measures/HIVIND64.fsh index fdd9715d623..b203c617116 100644 --- a/input/fsh/measures/HIVIND64.fsh +++ b/input/fsh/measures/HIVIND64.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.64 Syphilis test positivity, pregnant women, first visit" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of pregnant women who tested positive for syphilis during first ANC services visit in the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND64" +* url = "http://smart.who.int/hiv/Measure/HIVIND64" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND64" * title = "HIV.IND.64 Syphilis test positivity, pregnant women, first visit" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND64Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND64Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND65.fsh b/input/fsh/measures/HIVIND65.fsh index 316847d7e2c..922c8a0c68e 100644 --- a/input/fsh/measures/HIVIND65.fsh +++ b/input/fsh/measures/HIVIND65.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.65 Syphilis test positivity, pregnant women, any visit" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of pregnant women who tested positive for syphilis during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND65" +* url = "http://smart.who.int/hiv/Measure/HIVIND65" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND65" * title = "HIV.IND.65 Syphilis test positivity, pregnant women, any visit" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND65Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND65Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND66.fsh b/input/fsh/measures/HIVIND66.fsh index 1ab158a093d..d7d62943d78 100644 --- a/input/fsh/measures/HIVIND66.fsh +++ b/input/fsh/measures/HIVIND66.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.66 Syphilis treatment coverage, HIV prevention services" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people attending HIV prevention services tested positive for syphilis who were treated based on national guidelines during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND66" +* url = "http://smart.who.int/hiv/Measure/HIVIND66" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND66" * title = "HIV.IND.66 Syphilis treatment coverage, HIV prevention services" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND66Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND66Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND67.fsh b/input/fsh/measures/HIVIND67.fsh index 0d5841fd959..4b1eddbaca7 100644 --- a/input/fsh/measures/HIVIND67.fsh +++ b/input/fsh/measures/HIVIND67.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.67 Syphilis treatment coverage, HIV-positive clients" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people living with HIV tested positive for syphilis who were treated based on national guidelines during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND67" +* url = "http://smart.who.int/hiv/Measure/HIVIND67" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND67" * title = "HIV.IND.67 Syphilis treatment coverage, HIV-positive clients" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND67Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND67Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND68.fsh b/input/fsh/measures/HIVIND68.fsh index 0115ecef764..990fe72f01a 100644 --- a/input/fsh/measures/HIVIND68.fsh +++ b/input/fsh/measures/HIVIND68.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.68 Syphilis treatment coverage, pregnant women, first ANC visit" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of pregnant women tested positive for syphilis on first ANC services visit who were treated based on national guidelines during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND68" +* url = "http://smart.who.int/hiv/Measure/HIVIND68" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND68" * title = "HIV.IND.68 Syphilis treatment coverage, pregnant women, first ANC visit" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND68Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND68Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND69.fsh b/input/fsh/measures/HIVIND69.fsh index 007d089458f..6461cfbe0fc 100644 --- a/input/fsh/measures/HIVIND69.fsh +++ b/input/fsh/measures/HIVIND69.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.69 Syphilis treatment coverage, pregnant women, any ANC visit" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of pregnant women who tested positive for syphilis who were treated based on national guidelines during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND69" +* url = "http://smart.who.int/hiv/Measure/HIVIND69" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND69" * title = "HIV.IND.69 Syphilis treatment coverage, pregnant women, any ANC visit" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND69Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND69Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND7.fsh b/input/fsh/measures/HIVIND7.fsh index 440c32e5936..d0b7f6a961b 100644 --- a/input/fsh/measures/HIVIND7.fsh +++ b/input/fsh/measures/HIVIND7.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.7 HIV in PEP recipients" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of PEP recipients testing HIV-positive three months after PEP was prescribed" -* url = "http://smart.who.int/HIV/Measure/HIVIND7" +* url = "http://smart.who.int/hiv/Measure/HIVIND7" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND7" * title = "HIV.IND.7 HIV in PEP recipients" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND7Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND7Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND70.fsh b/input/fsh/measures/HIVIND70.fsh index 1088d7bd843..1068160b932 100644 --- a/input/fsh/measures/HIVIND70.fsh +++ b/input/fsh/measures/HIVIND70.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.70 Gonorrhoea testing coverage, HIV prevention services" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people attending HIV prevention services tested for gonorrhoea during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND70" +* url = "http://smart.who.int/hiv/Measure/HIVIND70" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND70" * title = "HIV.IND.70 Gonorrhoea testing coverage, HIV prevention services" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND70Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND70Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND71.fsh b/input/fsh/measures/HIVIND71.fsh index 57858e82394..054cf6677fc 100644 --- a/input/fsh/measures/HIVIND71.fsh +++ b/input/fsh/measures/HIVIND71.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.71 Gonorrhoea testing coverage, HIV-positive clients" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people living with HIV tested for gonorrhoea during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND71" +* url = "http://smart.who.int/hiv/Measure/HIVIND71" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND71" * title = "HIV.IND.71 Gonorrhoea testing coverage, HIV-positive clients" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND71Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND71Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND72.fsh b/input/fsh/measures/HIVIND72.fsh index 2eae99ddd91..f49478dbf8d 100644 --- a/input/fsh/measures/HIVIND72.fsh +++ b/input/fsh/measures/HIVIND72.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.72 Gonorrhoea test positivity, HIV prevention services" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people who tested positive for gonorrhoea during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND72" +* url = "http://smart.who.int/hiv/Measure/HIVIND72" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND72" * title = "HIV.IND.72 Gonorrhoea test positivity, HIV prevention services" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND72Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND72Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND73.fsh b/input/fsh/measures/HIVIND73.fsh index 10f74f19047..fc626bda974 100644 --- a/input/fsh/measures/HIVIND73.fsh +++ b/input/fsh/measures/HIVIND73.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.73 Gonorrhoea test positivity, HIV-positive clients" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people living with HIV who tested positive for gonorrhoea during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND73" +* url = "http://smart.who.int/hiv/Measure/HIVIND73" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND73" * title = "HIV.IND.73 Gonorrhoea test positivity, HIV-positive clients" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND73Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND73Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND74.fsh b/input/fsh/measures/HIVIND74.fsh index 2299926afad..aa0ba283070 100644 --- a/input/fsh/measures/HIVIND74.fsh +++ b/input/fsh/measures/HIVIND74.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.74 Gonorrhoea treatment coverage, HIV prevention services" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people attending HIV prevention services tested positive for gonorrhoea who were treated based on national guidelines during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND74" +* url = "http://smart.who.int/hiv/Measure/HIVIND74" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND74" * title = "HIV.IND.74 Gonorrhoea treatment coverage, HIV prevention services" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND74Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND74Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND75.fsh b/input/fsh/measures/HIVIND75.fsh index 9519a5e48b4..799a64ed97d 100644 --- a/input/fsh/measures/HIVIND75.fsh +++ b/input/fsh/measures/HIVIND75.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.75 Gonorrhoea treatment coverage, HIV-positive clients" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people living with HIV tested positive for gonorrhoea who were treated based on national guidelines during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND75" +* url = "http://smart.who.int/hiv/Measure/HIVIND75" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND75" * title = "HIV.IND.75 Gonorrhoea treatment coverage, HIV-positive clients" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND75Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND75Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND76.fsh b/input/fsh/measures/HIVIND76.fsh index 42f47e68e8c..8947fcf711e 100644 --- a/input/fsh/measures/HIVIND76.fsh +++ b/input/fsh/measures/HIVIND76.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.76 Presence of STI syndrome, HIV prevention services" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people attending HIV prevention services diagnosed with a particular STI syndrome during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND76" +* url = "http://smart.who.int/hiv/Measure/HIVIND76" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND76" * title = "HIV.IND.76 Presence of STI syndrome, HIV prevention services" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND76Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND76Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND77.fsh b/input/fsh/measures/HIVIND77.fsh index cc2eedb0274..e489ba3fec3 100644 --- a/input/fsh/measures/HIVIND77.fsh +++ b/input/fsh/measures/HIVIND77.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.77 Presence of STI syndrome, HIV-positive clients" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people living with HIV diagnosed with a particular STI syndrome during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND77" +* url = "http://smart.who.int/hiv/Measure/HIVIND77" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND77" * title = "HIV.IND.77 Presence of STI syndrome, HIV-positive clients" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND77Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND77Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND78.fsh b/input/fsh/measures/HIVIND78.fsh index 5f1ba2983a1..ced341b859c 100644 --- a/input/fsh/measures/HIVIND78.fsh +++ b/input/fsh/measures/HIVIND78.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.78 Repeat diagnosis of STI syndrome, HIV prevention services" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people attending HIV prevention services diagnosed with a particular STI syndrome who were diagnosed with the same STI syndrome two or more times during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND78" +* url = "http://smart.who.int/hiv/Measure/HIVIND78" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND78" * title = "HIV.IND.78 Repeat diagnosis of STI syndrome, HIV prevention services" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND78Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND78Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND79.fsh b/input/fsh/measures/HIVIND79.fsh index 9763c1c610a..3114da07557 100644 --- a/input/fsh/measures/HIVIND79.fsh +++ b/input/fsh/measures/HIVIND79.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.79 Repeat diagnosis of STI syndrome, HIV-positive clients" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people living with HIV diagnosed with a particular STI syndrome who were diagnosed with the same STI syndrome two or more times during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND79" +* url = "http://smart.who.int/hiv/Measure/HIVIND79" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND79" * title = "HIV.IND.79 Repeat diagnosis of STI syndrome, HIV-positive clients" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND79Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND79Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND8.fsh b/input/fsh/measures/HIVIND8.fsh index 32ca1ee1197..a3b1dc6c0e2 100644 --- a/input/fsh/measures/HIVIND8.fsh +++ b/input/fsh/measures/HIVIND8.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.8 NSP coverage" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people who inject drugs provided with needles-syringes during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND8" +* url = "http://smart.who.int/hiv/Measure/HIVIND8" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND8" * title = "HIV.IND.8 NSP coverage" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND8Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND8Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND80.fsh b/input/fsh/measures/HIVIND80.fsh index 00712b4dced..bec8c007dcc 100644 --- a/input/fsh/measures/HIVIND80.fsh +++ b/input/fsh/measures/HIVIND80.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.80 HBV test coverage, HIV prevention services" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people attending HIV prevention services who were tested for hepatitis B surface antigen (HBsAg) during the reporting period (laboratory-based test or rapid test)" -* url = "http://smart.who.int/HIV/Measure/HIVIND80" +* url = "http://smart.who.int/hiv/Measure/HIVIND80" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND80" * title = "HIV.IND.80 HBV test coverage, HIV prevention services" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND80Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND80Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND81.fsh b/input/fsh/measures/HIVIND81.fsh index 05b48e57ce7..f71bd9ea574 100644 --- a/input/fsh/measures/HIVIND81.fsh +++ b/input/fsh/measures/HIVIND81.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.81 HBV test coverage, HIV-positive clients" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people living with HIV who were tested for hepatitis B surface antigen (HBsAg) during the reporting period (laboratory-based test or rapid test)" -* url = "http://smart.who.int/HIV/Measure/HIVIND81" +* url = "http://smart.who.int/hiv/Measure/HIVIND81" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND81" * title = "HIV.IND.81 HBV test coverage, HIV-positive clients" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND81Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND81Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND82.fsh b/input/fsh/measures/HIVIND82.fsh index cac6159faea..4ba5af316ff 100644 --- a/input/fsh/measures/HIVIND82.fsh +++ b/input/fsh/measures/HIVIND82.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.82 HBV test coverage, pregnant women" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of pregnant women who were tested for hepatitis B surface antigen (HBsAg) during the reporting period (laboratory-based test or rapid test)" -* url = "http://smart.who.int/HIV/Measure/HIVIND82" +* url = "http://smart.who.int/hiv/Measure/HIVIND82" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND82" * title = "HIV.IND.82 HBV test coverage, pregnant women" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND82Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND82Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND83.fsh b/input/fsh/measures/HIVIND83.fsh index a888ff3300f..6e6589bdeab 100644 --- a/input/fsh/measures/HIVIND83.fsh +++ b/input/fsh/measures/HIVIND83.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.83 HCV test coverage, HIV prevention services" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people attending HIV prevention services who were tested for HCV (HCV antibody, HCV RNA or HCV core antigen) during the reporting period (laboratory-based test or rapid test)" -* url = "http://smart.who.int/HIV/Measure/HIVIND83" +* url = "http://smart.who.int/hiv/Measure/HIVIND83" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND83" * title = "HIV.IND.83 HCV test coverage, HIV prevention services" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND83Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND83Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND84.fsh b/input/fsh/measures/HIVIND84.fsh index e1ecc50de2f..d6390a6cdc6 100644 --- a/input/fsh/measures/HIVIND84.fsh +++ b/input/fsh/measures/HIVIND84.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.84 HCV test coverage, HIV-positive clients" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people living with HIV who were tested for HCV (HCV antibody, HCV RNA or HCV core antigen) during the reporting period (laboratory-based test or rapid test)" -* url = "http://smart.who.int/HIV/Measure/HIVIND84" +* url = "http://smart.who.int/hiv/Measure/HIVIND84" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND84" * title = "HIV.IND.84 HCV test coverage, HIV-positive clients" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND84Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND84Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND85.fsh b/input/fsh/measures/HIVIND85.fsh index 8948e98fd4d..388b11f1135 100644 --- a/input/fsh/measures/HIVIND85.fsh +++ b/input/fsh/measures/HIVIND85.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.85 HBsAg positivity, HIV prevention services" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "Percentage of people attending HIV prevention services who were tested for HBsAg and had a positive HBsAg test during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND85" +* url = "http://smart.who.int/hiv/Measure/HIVIND85" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND85" * title = "HIV.IND.85 HBsAg positivity, HIV prevention services" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND85Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND85Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND86.fsh b/input/fsh/measures/HIVIND86.fsh index ca310f50a9d..d7b6afe7646 100644 --- a/input/fsh/measures/HIVIND86.fsh +++ b/input/fsh/measures/HIVIND86.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.86 HBsAg positivity, HIV-positive clients" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "Percentage of people living with HIV who were tested for HBsAg and had a positive HBsAg test during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND86" +* url = "http://smart.who.int/hiv/Measure/HIVIND86" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND86" * title = "HIV.IND.86 HBsAg positivity, HIV-positive clients" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND86Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND86Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND87.fsh b/input/fsh/measures/HIVIND87.fsh index db62de5490f..eca822fa1b7 100644 --- a/input/fsh/measures/HIVIND87.fsh +++ b/input/fsh/measures/HIVIND87.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.87 HBsAg positivity, pregnant women" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "Percentage of pregnant women who were tested for HBsAg and had a positive HBsAg test during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND87" +* url = "http://smart.who.int/hiv/Measure/HIVIND87" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND87" * title = "HIV.IND.87 HBsAg positivity, pregnant women" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND87Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND87Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND88.fsh b/input/fsh/measures/HIVIND88.fsh index 2ffe2e28488..0819b384401 100644 --- a/input/fsh/measures/HIVIND88.fsh +++ b/input/fsh/measures/HIVIND88.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.88 HCV positivity, HIV prevention services" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people attending HIV prevention services with a positive HCV test result (HCV antibody, HCV RNA (PCR) or HCV core antigen) during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND88" +* url = "http://smart.who.int/hiv/Measure/HIVIND88" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND88" * title = "HIV.IND.88 HCV positivity, HIV prevention services" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND88Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND88Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND89.fsh b/input/fsh/measures/HIVIND89.fsh index 9a8f96a6732..bdb06257314 100644 --- a/input/fsh/measures/HIVIND89.fsh +++ b/input/fsh/measures/HIVIND89.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.89 HCV positivity, HIV-positive clients" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people living with HIV with a positive HCV test result (HCV antibody, HCV RNA (PCR) or HCV core antigen) during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND89" +* url = "http://smart.who.int/hiv/Measure/HIVIND89" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND89" * title = "HIV.IND.89 HCV positivity, HIV-positive clients" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND89Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND89Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND9.fsh b/input/fsh/measures/HIVIND9.fsh index 81d3c5a9538..f67e8c5e104 100644 --- a/input/fsh/measures/HIVIND9.fsh +++ b/input/fsh/measures/HIVIND9.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.9 Regular NSP access" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people who inject drugs accessing a needle-syringe programme (NSP) at least once per month during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND9" +* url = "http://smart.who.int/hiv/Measure/HIVIND9" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND9" * title = "HIV.IND.9 Regular NSP access" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND9Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND9Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND90.fsh b/input/fsh/measures/HIVIND90.fsh index f40ec1ed1a6..6c7a6a35ca1 100644 --- a/input/fsh/measures/HIVIND90.fsh +++ b/input/fsh/measures/HIVIND90.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.90 HBV treatment among people living with HIV" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people living with HIV and diagnosed with HBV infection who are on TDF-based ART" -* url = "http://smart.who.int/HIV/Measure/HIVIND90" +* url = "http://smart.who.int/hiv/Measure/HIVIND90" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND90" * title = "HIV.IND.90 HBV treatment among people living with HIV" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND90Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND90Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND91.fsh b/input/fsh/measures/HIVIND91.fsh index 1b5f88d588e..150f804b30f 100644 --- a/input/fsh/measures/HIVIND91.fsh +++ b/input/fsh/measures/HIVIND91.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.91 HCV treatment among people living with HIV" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people living with HIV and diagnosed with HCV infection who initiated HCV treatment (direct acting antivirals) during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND91" +* url = "http://smart.who.int/hiv/Measure/HIVIND91" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND91" * title = "HIV.IND.91 HCV treatment among people living with HIV" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND91Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND91Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND92.fsh b/input/fsh/measures/HIVIND92.fsh index abb95e62e66..c4758f43940 100644 --- a/input/fsh/measures/HIVIND92.fsh +++ b/input/fsh/measures/HIVIND92.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.92 HCV cured among people living with HIV" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of people living with HIV and co-infected with HCV who were confirmed to be cured of HCV during the reporting period" -* url = "http://smart.who.int/HIV/Measure/HIVIND92" +* url = "http://smart.who.int/hiv/Measure/HIVIND92" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND92" * title = "HIV.IND.92 HCV cured among people living with HIV" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND92Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND92Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND93.fsh b/input/fsh/measures/HIVIND93.fsh index a99c6bc387f..6ef53ee1788 100644 --- a/input/fsh/measures/HIVIND93.fsh +++ b/input/fsh/measures/HIVIND93.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.93 Cervical cancer screening" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "Number of women living with HIV who were screened for cervical cancer using any screening test" -* url = "http://smart.who.int/HIV/Measure/HIVIND93" +* url = "http://smart.who.int/hiv/Measure/HIVIND93" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND93" * title = "HIV.IND.93 Cervical cancer screening" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND93Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND93Logic" * scoring = $measure-scoring#continuous-variable "Continuous Variable" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND94.fsh b/input/fsh/measures/HIVIND94.fsh index 663be7c7103..c02a382b9cb 100644 --- a/input/fsh/measures/HIVIND94.fsh +++ b/input/fsh/measures/HIVIND94.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.94 Pre-invasive cervical disease treatment" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of women living with HIV who screened positive for pre-invasive cervical disease and received treatment for it" -* url = "http://smart.who.int/HIV/Measure/HIVIND94" +* url = "http://smart.who.int/hiv/Measure/HIVIND94" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND94" * title = "HIV.IND.94 Pre-invasive cervical disease treatment" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND94Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND94Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND95.fsh b/input/fsh/measures/HIVIND95.fsh index de25c9e7924..b0565599ab7 100644 --- a/input/fsh/measures/HIVIND95.fsh +++ b/input/fsh/measures/HIVIND95.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.95 Invasive cervical cancer treatment" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "% of women living with HIV diagnosed with invasive cancer who were treated" -* url = "http://smart.who.int/HIV/Measure/HIVIND95" +* url = "http://smart.who.int/hiv/Measure/HIVIND95" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND95" * title = "HIV.IND.95 Invasive cervical cancer treatment" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND95Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND95Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] diff --git a/input/fsh/measures/HIVIND96.fsh b/input/fsh/measures/HIVIND96.fsh index ff6f0f48e28..9983a9e1b6d 100644 --- a/input/fsh/measures/HIVIND96.fsh +++ b/input/fsh/measures/HIVIND96.fsh @@ -5,14 +5,14 @@ Title: "HIV.IND.96 Cervical cancer survival" * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure" * extension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis].valueCode = #boolean * description = "Crude probability of surviving 1 year after a diagnosis of cervical cancer" -* url = "http://smart.who.int/HIV/Measure/HIVIND96" +* url = "http://smart.who.int/hiv/Measure/HIVIND96" * status = #draft * experimental = true * date = "2024-07-12" * name = "HIVIND96" * title = "HIV.IND.96 Cervical cancer survival" * publisher = "World Health Organization (WHO)" -* library = "http://smart.who.int/HIV/Library/HIVIND96Logic" +* library = "http://smart.who.int/hiv/Library/HIVIND96Logic" * scoring = $measure-scoring#proportion "Proportion" * group[+] * population[initialPopulation] From fefed6ab10b9ddcf6d5100b486f3b32d5e46eba1 Mon Sep 17 00:00:00 2001 From: Piotr Mankowski Date: Mon, 12 Aug 2024 16:17:05 -0700 Subject: [PATCH 07/10] Elements and Common Refactoring Fixed (#46) * Squashing to examine changes * Removed erroring include FHIRCommon * Synchronized with comitted updates * Fixing EncounterElements * Elements fixes * Indicator fixes * Fixes * Validation fixes * Review fixes --- input/cql/HIVB9DTLogic.cql | 24 +- input/cql/HIVCommon.cql | 756 ++--------------- input/cql/HIVConcepts.cql | 8 +- input/cql/HIVConceptsCustom.cql | 10 +- input/cql/HIVConfig.cql | 8 + input/cql/HIVElements.cql | 670 ++++++++------- input/cql/HIVEncounterElements.cql | 280 ++----- input/cql/HIVIND13Logic.cql | 14 +- input/cql/HIVIND14Logic.cql | 3 - input/cql/HIVIND15Logic.cql | 15 +- input/cql/HIVIND16Logic.cql | 21 +- input/cql/HIVIND18Logic.cql | 22 +- input/cql/HIVIND19Logic.cql | 62 +- input/cql/HIVIND20Logic.cql | 28 +- input/cql/HIVIND21Logic.cql | 30 +- input/cql/HIVIND22Logic.cql | 23 +- input/cql/HIVIND24Logic.cql | 35 +- input/cql/HIVIND25Logic.cql | 16 +- input/cql/HIVIND27Logic.cql | 13 +- input/cql/HIVIND28Logic.cql | 23 +- input/cql/HIVIND29Logic.cql | 19 +- input/cql/HIVIND2Logic.cql | 26 +- input/cql/HIVIND30Logic.cql | 9 +- input/cql/HIVIND31Logic.cql | 15 +- input/cql/HIVIND32Logic.cql | 27 +- input/cql/HIVIND33Logic.cql | 15 +- input/cql/HIVIND34Logic.cql | 17 +- input/cql/HIVIND35Logic.cql | 13 +- input/cql/HIVIND37Logic.cql | 13 +- input/cql/HIVIND38Logic.cql | 4 +- input/cql/HIVIND3Logic.cql | 39 +- input/cql/HIVIND43Logic.cql | 1 + input/cql/HIVIND44Logic.cql | 21 +- input/cql/HIVIND45Logic.cql | 18 +- input/cql/HIVIND4Logic.cql | 19 +- input/cql/HIVIND5Logic.cql | 18 +- input/cql/HIVIND6Logic.cql | 24 +- input/cql/HIVIND7Logic.cql | 20 +- input/cql/HIVIND8Logic.cql | 14 +- input/cql/HIVIndicatorElements.cql | 805 +++++++++++-------- input/fsh/libraries/HIVB9DTLogic.fsh | 2 +- input/fsh/libraries/HIVEncounterElements.fsh | 2 +- input/fsh/libraries/HIVIndicatorElements.fsh | 2 +- input/fsh/libraries/WHOEncounterElements.fsh | 2 +- input/fsh/measures/HIVIND11.fsh | 2 +- input/fsh/measures/HIVIND12.fsh | 2 +- input/fsh/measures/HIVIND13.fsh | 8 +- input/fsh/measures/HIVIND14.fsh | 4 +- input/fsh/measures/HIVIND15.fsh | 8 +- input/fsh/measures/HIVIND16.fsh | 8 +- input/fsh/measures/HIVIND18.fsh | 22 +- input/fsh/measures/HIVIND19.fsh | 22 +- input/fsh/measures/HIVIND2.fsh | 18 +- input/fsh/measures/HIVIND20.fsh | 24 +- input/fsh/measures/HIVIND21.fsh | 22 +- input/fsh/measures/HIVIND22.fsh | 8 +- input/fsh/measures/HIVIND24.fsh | 8 +- input/fsh/measures/HIVIND25.fsh | 8 +- input/fsh/measures/HIVIND27.fsh | 18 +- input/fsh/measures/HIVIND28.fsh | 20 +- input/fsh/measures/HIVIND29.fsh | 10 +- input/fsh/measures/HIVIND3.fsh | 18 +- input/fsh/measures/HIVIND30.fsh | 18 +- input/fsh/measures/HIVIND31.fsh | 8 +- input/fsh/measures/HIVIND32.fsh | 8 +- input/fsh/measures/HIVIND33.fsh | 8 +- input/fsh/measures/HIVIND34.fsh | 10 +- input/fsh/measures/HIVIND35.fsh | 8 +- input/fsh/measures/HIVIND37.fsh | 2 +- input/fsh/measures/HIVIND38.fsh | 2 +- input/fsh/measures/HIVIND39.fsh | 2 +- input/fsh/measures/HIVIND4.fsh | 18 +- input/fsh/measures/HIVIND40.fsh | 2 +- input/fsh/measures/HIVIND41.fsh | 4 +- input/fsh/measures/HIVIND42.fsh | 2 +- input/fsh/measures/HIVIND43.fsh | 2 +- input/fsh/measures/HIVIND44.fsh | 8 +- input/fsh/measures/HIVIND45.fsh | 8 +- input/fsh/measures/HIVIND46.fsh | 2 +- input/fsh/measures/HIVIND47.fsh | 2 +- input/fsh/measures/HIVIND48.fsh | 2 +- input/fsh/measures/HIVIND49.fsh | 2 +- input/fsh/measures/HIVIND5.fsh | 18 +- input/fsh/measures/HIVIND50.fsh | 4 +- input/fsh/measures/HIVIND51.fsh | 4 +- input/fsh/measures/HIVIND52.fsh | 2 +- input/fsh/measures/HIVIND53.fsh | 2 +- input/fsh/measures/HIVIND54.fsh | 4 +- input/fsh/measures/HIVIND55.fsh | 2 +- input/fsh/measures/HIVIND56.fsh | 4 +- input/fsh/measures/HIVIND57.fsh | 2 +- input/fsh/measures/HIVIND58.fsh | 2 +- input/fsh/measures/HIVIND59.fsh | 2 +- input/fsh/measures/HIVIND6.fsh | 18 +- input/fsh/measures/HIVIND60.fsh | 2 +- input/fsh/measures/HIVIND61.fsh | 2 +- input/fsh/measures/HIVIND62.fsh | 2 +- input/fsh/measures/HIVIND63.fsh | 2 +- input/fsh/measures/HIVIND64.fsh | 2 +- input/fsh/measures/HIVIND65.fsh | 2 +- input/fsh/measures/HIVIND66.fsh | 2 +- input/fsh/measures/HIVIND67.fsh | 2 +- input/fsh/measures/HIVIND68.fsh | 2 +- input/fsh/measures/HIVIND69.fsh | 2 +- input/fsh/measures/HIVIND7.fsh | 18 +- input/fsh/measures/HIVIND70.fsh | 2 +- input/fsh/measures/HIVIND71.fsh | 2 +- input/fsh/measures/HIVIND72.fsh | 2 +- input/fsh/measures/HIVIND73.fsh | 2 +- input/fsh/measures/HIVIND74.fsh | 2 +- input/fsh/measures/HIVIND75.fsh | 2 +- input/fsh/measures/HIVIND76.fsh | 2 +- input/fsh/measures/HIVIND77.fsh | 2 +- input/fsh/measures/HIVIND78.fsh | 2 +- input/fsh/measures/HIVIND79.fsh | 2 +- input/fsh/measures/HIVIND8.fsh | 18 +- input/fsh/measures/HIVIND80.fsh | 2 +- input/fsh/measures/HIVIND81.fsh | 2 +- input/fsh/measures/HIVIND82.fsh | 2 +- input/fsh/measures/HIVIND83.fsh | 2 +- input/fsh/measures/HIVIND84.fsh | 2 +- input/fsh/measures/HIVIND85.fsh | 2 +- input/fsh/measures/HIVIND86.fsh | 2 +- input/fsh/measures/HIVIND87.fsh | 2 +- input/fsh/measures/HIVIND88.fsh | 2 +- input/fsh/measures/HIVIND89.fsh | 2 +- input/fsh/measures/HIVIND9.fsh | 2 +- input/fsh/measures/HIVIND90.fsh | 2 +- input/fsh/measures/HIVIND91.fsh | 2 +- input/fsh/measures/HIVIND92.fsh | 2 +- input/fsh/measures/HIVIND93.fsh | 2 +- input/fsh/measures/HIVIND94.fsh | 2 +- input/fsh/measures/HIVIND95.fsh | 2 +- input/fsh/measures/HIVIND96.fsh | 2 +- 134 files changed, 1516 insertions(+), 2214 deletions(-) diff --git a/input/cql/HIVB9DTLogic.cql b/input/cql/HIVB9DTLogic.cql index 63e19f653ff..cb12b45fb41 100644 --- a/input/cql/HIVB9DTLogic.cql +++ b/input/cql/HIVB9DTLogic.cql @@ -1,5 +1,7 @@ /* -@DecisionID: HIV.B9.DT +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 @@ -22,8 +24,8 @@ library HIVB9DTLogic // Included Libraries using FHIR version '4.0.1' -include HIVCommon version '0.0.1' called HIC -include HIVConcepts called HCx +include HIVCommon version '0.0.1' called Common +include HIVConcepts called Concepts include HIVConfig called Config include HIVEncounterElements called Elements include FHIRHelpers version '4.0.1' @@ -41,8 +43,8 @@ context Patient @pseudocode: "HIV status" IN 'HIV-negative', 'Unknown' */ define "HIV status negative or unknown": - exists(Elements."HIV status Observation" O - where O.value in { HCx."HIV-negative", HCx."Unknown" }) + exists(Elements."HIV status" S + where S in { Concepts."HIV-negative", Concepts."Unknown" }) /* @input: "Partner HIV reported positive" @@ -50,7 +52,7 @@ define "HIV status negative or unknown": */ define "Partner HIV positive": exists(Elements."Partner HIV status reported Observation" O - where O.value ~ HCx."HIV-positive") + where O.value ~ Concepts."HIV-positive") /* @input: "Sex partner's HIV treatment status is partner not virally suppressed" @@ -58,28 +60,28 @@ define "Partner HIV positive": */ define "Sex partner's HIV treatment status is partner not virally suppressed": exists(Elements."Sex partners HIV treatment status Observation" O - where O.value ~ HCx."Partner is not virally suppressed") + where O.value ~ Concepts."Partner is not virally suppressed") /* @input: "HIV burden of setting is high HIV burden setting" @pseudocode: "HIV burden of the setting"='High HIV burden setting' */ define "HIV burden of setting is high HIV burden setting": - Config."HIV burden of setting" ~ HCx."High HIV burden setting" + Config."HIV burden of setting" ~ Concepts."High HIV burden setting" /* @input: "HIV burden of setting is low HIV burden setting" @pseudocode: "HIV burden of the setting"='Low HIV burden setting' */ define "HIV burden of setting is low HIV burden setting": - Config."HIV burden of setting" ~ HCx."Low HIV burden setting" + Config."HIV burden of setting" ~ Concepts."Low HIV burden setting" /* @input: "Key population member" @pseudocode: "Key population member" = TRUE */ define "Key population member": - exists(Elements."Key population member* B.DE49 Observation" O + exists(Elements."Key population member B.DE49 Observation" O where O.value is true) /* @@ -95,7 +97,7 @@ define "Currently pregnant": */ define "TB diagnosis result is diagnosed TB": exists(Elements."TB diagnosis result Observation" O - where O.value ~ HCx."Diagnosed TB" or) + where O.value ~ Concepts."Diagnosed TB") /* @input: "Presumptive TB" diff --git a/input/cql/HIVCommon.cql b/input/cql/HIVCommon.cql index 7aa28b58e9c..47110153f3f 100644 --- a/input/cql/HIVCommon.cql +++ b/input/cql/HIVCommon.cql @@ -4,577 +4,18 @@ using FHIR version '4.0.1' include FHIRHelpers version '4.0.1' include WHOCommon called WCom -// -include HIVConcepts called HC -include HIVConceptsCustom called HCC -include HIVElements called HE -include HIVIndicatorElements called HIE - -parameter "Measurement Period" Interval default Interval[@2020-01-01, @2020-12-31] -parameter "Measurement Date" Date default @2020-01-01 -parameter "Testing Interval" System.Quantity default 3 months -parameter "Intervention Interval" System.Quantity default 7 days +include HIVConcepts called Concepts +include HIVConceptsCustom called CustomConcepts context Patient - //VERIFIED -define "routine viral load sample collection": - [Procedure] P - where P.status = 'completed' - and P.code ~ HCC."viral load test" - and exists(P.reasonCode RC where RC ~ HC."Routine viral load test") - -define "viral load sample collection": - [Procedure] P - where P.status = 'completed' - and P.code ~ HCC."viral load test" - - -define "First On ART": - (First(HE."On ART D.DE38")) - -define "Viral load tests received after ART intitiation": - HE."Viral load test result D.DE387" O - where start of O.issued.toInterval() after start of "First On ART".effective.toInterval() - sort by start of issued.toInterval() - -define "Elevated Viral load test during Measurement Period": - HE."Viral load test result D.DE387" VL - with "viral load sample collection" P - such that VL.partOf.references(P) and P.performed.toInterval() during "Measurement Period" - where VL.value > 1000 - sort by start of effective.toInterval() - - -define "Negative Tests within Measurement Period": -HE."HIV-negative B.DE113" O - with HE."At elevated risk for HIV acquisition B.DE225" HIV - such that O.hasMember.references(HIV) - where O.effective.toInterval() starts during "Measurement Period" - sort by start of effective.toInterval() - -define "First Negative Test within Measurement Period": - (First("Negative Tests within Measurement Period")) - -define "Negative Tests after First Negative Test": -HE."HIV-negative B.DE113" O - with HE."At elevated risk for HIV acquisition B.DE225" HIV - such that O.hasMember.references(HIV) - where O.effective.toInterval() starts after start of "First Negative Test within Measurement Period".effective.toInterval() - and O.effective.toInterval() starts before (start of "First Negative Test within Measurement Period".effective.toInterval() + "Testing Interval") - sort by start of effective.toInterval() - - define patientGroups: - List{ - if HIE."Sex worker B.DE51" then 'SW' else null, - if HIE."Men who have sex with men" then 'MSM' else null, - if HIE."Trans and gender-diverse people B.DE53" then 'Trans' else null, - if HIE."People who inject drugs B.DE54" then 'PWID' else null, - if HIE."People living in prisons and other closed settings" then 'Prisoner' else null - } - - define "Treatment outcome category": - List{ - if HIE."Lost to follow-up" then 'LTFU' else null, - if HIE."Transferred out" then 'Transfer Out' else null, - if HIE."Death documented" then 'Death' else null, - if HIE."Refused stopped treatment" then 'Stopped' else null, - if HIE."On ART H.DE47" then 'On ART' else null - } - - -/* - * By Age Stratifiers - * (0–4, 5–9, 10–14, 15–19, 20–24, 25–29, 30–34, 35–39, 40–44, 45–49, 50+ years) - * - */ -define "By Age Stratifier": - case - when HIE."Age In Years" <= 4 then '0-4' - when HIE."Age In Years" <= 9 then '5-9' - when HIE."Age In Years" <= 14 then '10–14' - when HIE."Age In Years" <= 19 then '15–19' - when HIE."Age In Years" <= 24 then '20–24' - when HIE."Age In Years" <= 29 then '25–29' - when HIE."Age In Years" <= 34 then '30–34' - when HIE."Age In Years" <= 39 then '35–39' - when HIE."Age In Years" <= 44 then '40–44' - when HIE."Age In Years" <= 49 then '45–49' - when HIE."Age In Years" >= 50 then '50+' - else null - end - - /* - * By Age Stratifiers - * Age (0–4, 5–9, 10–14, 15–19, 20–24, 25–49, 50+ years) - * - */ -define "By Age Stratifier 2": - case - when HIE."Age In Years" <= 4 then '0-4' - when HIE."Age In Years" <= 9 then '5-9' - when HIE."Age In Years" <= 14 then '10–14' - when HIE."Age In Years" <= 19 then '15–19' - when HIE."Age In Years" <= 24 then '20–24' - when HIE."Age In Years" <= 49 then '25–49' - when HIE."Age In Years" >= 50 then '50+' - else null - end - -define "By Age Stratifier 3": - case - when HIE."Age In Years" >= 15 and HIE."Age In Years"<= 19 then '15-19' - when HIE."Age In Years" <= 24 then '20-24' - when HIE."Age In Years" <= 49 then '25–49' - when HIE."Age In Years" >= 50 then '50+' - else null - end - -/* - * By state stratifier - */ - - define "HIV status of partner or contact": - case - when HIE."Already knew positive" then HC."Already knew positive" - when HIE."Newly diagnosed" then HC."Newly diagnosed" - when HIE."Negative H.DE37" then HC."Negative - HIV.H.DE37" - else null - end - -//(including PrEP, OAMT, NSP, STI services, VMMC) - define "HIV prevention intervention": - List{ - if HIE."PrEP service" then 'PrEP' else null, - if HIE."OAMT" then 'OAMT' else null, - if HIE."NSP" then 'NSP' else null, - if HIE."STI services" then 'STI services' else null, - if HIE."VMMC" then 'VMMC' else null, - if HIE."Other PRV.DE8" then 'other prevention' else null - } //DRAFT -define "Patient Deceased during Measurement Period": - case - when Patient.deceased is FHIR.boolean and Patient.deceased ~ true then Patient.meta.lastUpdated before end of "Measurement Period" and Patient.meta.lastUpdated after start of "Measurement Period" - when Patient.deceased is FHIR.dateTime then Patient.deceased as FHIR.dateTime before end of "Measurement Period" and Patient.deceased as FHIR.dateTime after start of "Measurement Period" - else false - end - -define "HIV Positive Condition": -[Condition] C - where C.clinicalStatus ~ HCC."active" - and exists(C.category CC where CC ~ HCC."encounter-diagnosis") - and C.code ~ HC."HIV-positive - HIV.B.DE116" - sort by start of onset.toInterval() - -define "First HIV Positive Condition": - First("HIV Positive Condition") - -define "HIV Positive Observation": -[Observation] O - where O.status in {'final', 'amended'} - and O.code ~ HC."HIV status" - and O.value ~ HC."HIV-positive - HIV.B.DE116" - -define "HIV Positive Observation - HIV Self Test": -[Observation] O - where O.status in {'final', 'amended'} - and O.code ~ HC."HIV self-test" - and O.value ~ HC."HIV-positive - HIV.B.DE116" - -define "HIV Negative Observation": -[Observation] O - where O.status in {'final', 'amended'} - and O.code ~ HC."Rapid diagnostic test for HIV - HIV.B.DE82" - and O.value ~ HC."HIV-negative - HIV.B.DE117" - -define "HIV test resulted": - [Observation] O - where O.status in {'final', 'amended'} - and O.code ~ HC."Rapid diagnostic test for HIV - HIV.B.DE82" - -define "HIV PREP Active": -[MedicationStatement] MS - where MS.status = 'completed' - and exists(MS.reasonCode C where C ~ HC."PrEP for HIV prevention") - - define "Client is at elevated risk for HIV acquisition": - [Observation] O - where O.status in { 'final', 'amended', 'corrected' } - and exists(O.category OC where OC ~ HCC."social-history") - and O.code ~ HC."At elevated risk for HIV acquisition - HIV.B.DE225" - -define "PREP Prescription": - [MedicationRequest] MR - where MR.status = 'completed' - and MR.intent = 'order' - and MR.medication ~ HC."PrEP for HIV prevention" - -define "PEP Prescription": - [MedicationRequest] MR - where MR.status = 'completed' - and MR.intent = 'order' - and MR.medication ~ HC."PEP for HIV prevention" - -define "PEP Prescribed before start of Measurement Period and Completed": - [MedicationStatement] MS - with [MedicationRequest] MR - such that MS.basedOn.references(MR) and MR.status = 'completed' - and MR.intent = 'order' - and MR.medication ~ HC."PEP for HIV prevention" - and MR.authoredOn before end of "Measurement Period" - where (MS.status = 'completed' - and exists(MS.reasonCode C where C ~ HC."PrEP for HIV prevention") - ) - -define "PEP Prescribed during Measurement Period and Completed": - [MedicationStatement] MS - with [MedicationRequest] MR - such that MS.basedOn.references(MR) and MR.status = 'completed' - and MR.intent = 'order' - and MR.medication ~ HC."PEP for HIV prevention" - and MR.authoredOn after start of "Measurement Period" - and MR.authoredOn before end of "Measurement Period" - where (MS.status = 'completed' - and exists(MS.reasonCode C where C ~ HC."PrEP for HIV prevention") - ) - -define "HIV Test Positive After PEP Prescribed during Measurement Period": - [Observation: HC."HIV test result - HIV.B.DE111"] O - with [MedicationRequest] MR - such that O.basedOn.references(MR) and MR.status = 'completed' - and MR.intent = 'order' - and MR.medication ~ HC."PEP for HIV prevention" - and MR.authoredOn after start of "Measurement Period" - and MR.authoredOn before end of "Measurement Period" - and O.issued before (MR.authoredOn + 3 months) - where ( O.status in {'final', 'amended'} - and O.value ~ HC."HIV-positive - HIV.B.DE112" - ) - -define "Needle Syringe Dispensed": - [DeviceUseStatement] DUS - with [Observation: HC."Key population member - HIV.E.DE113"] O - such that DUS.reasonReference.references(O) - and O.status in { 'final', 'amended', 'corrected' } - and exists(O.category OC where OC ~ HCC."social-history") - and O.value ~ HC."People who inject drugs - HIV.B.DE54" - where DUS.status = 'completed' - -define PWID_person: - [Observation: HC."Key population member - HIV.E.DE113"] O - where O.status in { 'final', 'amended', 'corrected' } - and exists(O.category OC where OC ~ HCC."social-history") - and O.value ~ HC."People who inject drugs - HIV.B.DE54" - -define "OAMT_initiated": -exists( - [EpisodeOfCare] EOC - where exists(EOC.type T where T ~ HC."OAMT") - and (exists ( - EOC.statusHistory H - where H.period starts after start of "Measurement Period" - and H.period starts before end of "Measurement Period" - ) - or ( - EOC.period starts after start of "Measurement Period" - and EOC.period starts before end of "Measurement Period" - ) - ) - ) - -define "OAMT_retained": -exists( - [EpisodeOfCare] EOC - where exists(EOC.type T where T ~ HC."OAMT") - and (exists ( - EOC.statusHistory H - where H.period starts after start of "Measurement Period" - and H.period starts before end of "Measurement Period" - and H.period ends after (end of "Measurement Period" + 6 months) - ) - or ( - EOC.period starts after start of "Measurement Period" - and EOC.period starts before end of "Measurement Period" - and (EOC.period ends after (end of "Measurement Period" + 6 months) - or end of EOC.period is null) - ) - ) - ) - -define "methadone_prescribed": -[MedicationRequest] MR - where MR.status = 'completed' - and MR.intent = 'order' - and MR.medication ~ HCC."methadone" - -define "buprenorphine_prescribed": -[MedicationRequest] MR - where MR.status = 'completed' - and MR.intent = 'order' - and MR.medication ~ HCC."buprenorphine" - - - -define "Lost to Follow Up during the measurement period": - exists(HE."On ART H.DE47" H - where H.effective starts before end of "Measurement Period" - and H.effective ends after start of "Measurement Period" - and not (H.effective ends after (end of "Measurement Period" - 28 days)) - ) - -define "HIV Status": - case - when exists("HIV Positive Condition" C where C.onset before end of "Measurement Period") then HC."HIV-positive - HIV.B.DE116" - when not exists("HIV Positive Condition" C where C.onset before end of "Measurement Period") and exists("HIV Negative Observation" O where O.issued before end of "Measurement Period") then HC."HIV-negative - HIV.B.DE117" - else HC."Unknown - HIV.B.DE118" - end - -/* - * Key populations (men who have sex with men, people living in prisons and other closed settings, people who inject drugs, sex workers, trans and gender diverse people) - */ - - define SW: - exists ( - [Observation: HC."Key population member - HIV.E.DE113"] O - where O.status in { 'final', 'amended', 'corrected' } - and exists(O.category OC where OC ~ HCC."social-history") - and O.value ~ HC."Sex worker - HIV.B.DE51" - ) - - define MSM: - exists ( - [Observation: HC."Key population member - HIV.E.DE113"] O - where O.status in { 'final', 'amended', 'corrected' } - and exists(O.category OC where OC ~ HCC."social-history") - and O.value ~ HC."Men who have sex with men" - ) - - define Trans: - exists ( - [Observation: HC."Key population member - HIV.E.DE113"] O - where O.status in { 'final', 'amended', 'corrected' } - and exists(O.category OC where OC ~ HCC."social-history") - and O.value ~ HC."Trans and gender-diverse people - HIV.B.DE53" - ) - - define PWID: - exists ( - [Observation: HC."Key population member - HIV.E.DE113"] O - where O.status in { 'final', 'amended', 'corrected' } - and exists(O.category OC where OC ~ HCC."social-history") - and O.value ~ HC."People who inject drugs - HIV.B.DE54" - ) - - define Prisoner: - exists ( - [Observation: HC."Key population member - HIV.E.DE113"] O - where O.status in { 'final', 'amended', 'corrected' } - and exists(O.category OC where OC ~ HCC."social-history") - and O.value ~ HC."People living in prisons and other closed settings" - ) - - define TB_diagnosed: - exists( - ([Condition] C - where C.clinicalStatus ~ HCC."active" - and exists(C.category CC where CC ~ HCC."encounter-diagnosis") - and C.code ~ HC."Diagnosed TB" - and C.onset during "Measurement Period") - ) - - define TB_presumptive: - exists( - ([Condition] C - where C.clinicalStatus ~ HCC."active" - and exists(C.category CC where CC ~ HCC."encounter-diagnosis") - and C.code ~ HC."Presumptive TB - HIV.D.DE945" - and C.onset during "Measurement Period") - ) - - -define Exposure_Occupational: - exists ( - [Observation: HC."HIV exposure type"] O - where O.status in { 'final', 'amended', 'corrected' } - and exists(O.category OC where OC ~ HCC."social-history") - and O.value ~ HC."Occupational" - ) - -define Exposure_Non_Occupational_violent: - exists ( - [Observation: HC."HIV exposure type"] O - where O.status in { 'final', 'amended', 'corrected' } - and exists(O.category OC where OC ~ HCC."social-history") - and O.value ~ HC."Non-occupational violent" - ) - -define Exposure_Non_Occupational_consensual_sex: - exists ( - [Observation: HC."HIV exposure type"] O - where O.status in { 'final', 'amended', 'corrected' } - and exists(O.category OC where OC ~ HCC."social-history") - and O.value ~ HC."Non-occupational consensual sex" - ) - -define hiv_exposure_type: - List{ - if Exposure_Occupational then 'Occupational' else null, - if Exposure_Non_Occupational_violent then 'Non-occupational violent' else null, - if Exposure_Non_Occupational_consensual_sex then 'Non-occupational consensual sex' else null - } - -/*@triggeredBy Encounter with location = community level testing*/ - -define "Community_testing": - exists([Observation] O - with [Encounter] E - such that O.encounter.references(E) and exists(E.location.physicalType PT where PT ~ HC."Community-level testing") - where (O.status in { 'final', 'amended' } - and O.code ~ HC."Rapid diagnostic test for HIV - HIV.B.DE82" - and O.issued after start of "Measurement Period" - and O.issued before end of "Measurement Period")) - - -/*@triggeredBy Encounter with location = facility level testing*/ -define "Facility_testing": - exists([Observation] O - with [Encounter] E - such that O.encounter.references(E) and exists(E.location.physicalType PT where PT ~ HC."Facility-level testing") - where (O.status in { 'final', 'amended' } - and O.code ~ HC."Rapid diagnostic test for HIV - HIV.B.DE82" - and O.issued after start of "Measurement Period" - and O.issued before end of "Measurement Period") - ) - -//lifted this from ANC DAK -define "ANC_case": -exists( - [EpisodeOfCare] EOC - where exists(EOC.type T where T ~ HC."Already on ART at first antenatal care visit") - and (exists ( - EOC.statusHistory H - where H.period overlaps "Measurement Period" - ) - or ( - EOC.period overlaps "Measurement Period" - ) - ) - ) - - - define "PREP Product Oral": - exists([MedicationStatement] MS - where MS.status = 'completed' - and exists(MS.reasonCode C where C ~ HC."Currently on PrEP") - and (MS.medication ~ HC."TDF + FTC - HIV.C.DE18" or - MS.medication ~ HC."TDF - HIV.C.DE19" or - MS.medication ~ HC."TDF + 3TC - HIV.C.DE20" or - MS.medication ~ HC."Other TDF-based regimen") - ) - - define "PREP Product long-acting device": - exists([MedicationStatement] MS - where MS.status = 'completed' - and exists(MS.reasonCode C where C ~ HC."Currently on PrEP") - and MS.medication ~ HC."Dapivirine vaginal ring DVR - HIV.C.DE22" - ) - - define "PREP Product long-acting injectable": - exists([MedicationStatement] MS - where MS.status = 'completed' - and exists(MS.reasonCode C where C ~ HC."Currently on PrEP") - and MS.medication ~ HC."CAB-LA - HIV.C.DE23" - ) - - define "PREP first time": - exists([MedicationStatement] MS - where MS.status = 'completed' - and exists(MS.reasonCode C where C ~ HC."Currently on PrEP") - and exists(MS.statusReason SR where SR ~ HC."First-time user - HIV.C.DE25") - ) - - define "PREP Continuing user": - exists([MedicationStatement] MS - where MS.status = 'completed' - and exists(MS.reasonCode C where C ~ HC."Currently on PrEP") - and exists(MS.statusReason SR where SR ~ HC."Continuing user") - ) - - define "PREP Restarting": - exists([MedicationStatement] MS - where MS.status = 'completed' - and exists(MS.reasonCode C where C ~ HC."Currently on PrEP") - and exists(MS.statusReason SR where SR ~ HC."Restarting following a period of not taking PrEP") - ) - - define "Daily_oral_PrEP": - exists([MedicationStatement] MS - where MS.status = 'completed' - and exists(MS.reasonCode C where C ~ HC."Currently on PrEP") - and exists(MS.dosage.additionalInstruction AI where AI ~ HC."Daily oral PrEP") - ) - - define "Event_driven_PrEP": - exists([MedicationStatement] MS - where MS.status = 'completed' - and exists(MS.reasonCode C where C ~ HC."Currently on PrEP") - and exists(MS.dosage.additionalInstruction AI where AI ~ HC."Event-driven PrEP 2+1+1") - ) - - define "other_dosing_PrEP": - exists([MedicationStatement] MS - where MS.status = 'completed' - and exists(MS.reasonCode C where C ~ HC."Currently on PrEP") - and exists(MS.dosage.additionalInstruction AI where AI ~ HC."Other PrEP dosing type") - ) - - - - - define setting: - List{ - if Community_testing then 'Community-level testing' else null, - if Facility_testing then 'Facility-level testing' else null - } - - define anc: - List{ - if ANC_case then 'ANC case' else null - } - - define tb: - List{ - if TB_diagnosed then 'Diagnosed TB' else null, - if TB_presumptive then 'Presumptive TB' else null - } - - define prep_product: - List{ - if `PREP Product Oral` then 'PREP Product Oral' else null, - if `PREP Product long-acting device` then 'PREP Product long-acting device' else null, - if `PREP Product long-acting injectable` then 'PREP Product long-acting injectable' else null - } - - define prep_experience: - List{ - if `PREP first time` then 'PREP first time' else null, - if `PREP Continuing user` then 'PREP Continuing user' else null, - if `PREP Restarting` then 'PREP Restarting' else null - } - - define prep_dosing: - List{ - if `Daily_oral_PrEP` then 'Daily oral PrEP' else null, - if `Event_driven_PrEP` then 'Event driven PrEP' else null, - if `other_dosing_PrEP` then 'Other PrEP dosing type' else null - } //need to add Time to start ART (within 7, 30 or 90 days of diagnosis, as per country guidelines) //need to add Disaggregation by time since diagnosis @@ -642,7 +83,7 @@ define "PREP Prescription Days": [MedicationRequest] MR where MR.status = 'completed' and MR.intent = 'order' - and MR.medication ~ HC."PrEP for HIV prevention" + and MR.medication ~ Concepts."PrEP for HIV prevention" return WComV2."Prescription Relevant Period"( MR ) intersect "Measurement Period" ) ) PREPUseInterval @@ -707,7 +148,7 @@ define function ToDaily(frequency System.Integer, period System.Quantity): or end of period = maximum DateTime ) - define function MedicationRequestPeriod(Request "MedicationRequest"): + define function MedicationRequestPeriod(Request FHIR.MedicationRequest): Request R let dosage: singleton from R.dosageInstruction, @@ -743,26 +184,26 @@ define function ToDaily(frequency System.Integer, period System.Quantity): define function "DosesPerDay"(frequency Code): /*Calculates the cumulative dose per day for each prescription*/ case - when frequency ~ HCC."Once daily (qualifier value)" then 1.0 - when frequency ~ HCC."Twice a day (qualifier value)" then 2.0 - when frequency ~ HCC."Three times daily (qualifier value)" then 3.0 - when frequency ~ HCC."Four times daily (qualifier value)" then 4.0 - when frequency ~ HCC."Every twenty four hours (qualifier value)" then 1.0 - when frequency ~ HCC."Every twelve hours (qualifier value)" then 2.0 - when frequency ~ HCC."Every thirty six hours (qualifier value)" then 0.67 - when frequency ~ HCC."Every eight hours (qualifier value)" then 3.0 - when frequency ~ HCC."Every four hours (qualifier value)" then 6.0 - when frequency ~ HCC."Every six hours (qualifier value)" then 4.0 - when frequency ~ HCC."Every seventy two hours (qualifier value)" then 0.34 - when frequency ~ HCC."Every forty eight hours (qualifier value)" then 0.5 - when frequency ~ HCC."Every eight to twelve hours (qualifier value)" then 2.0 - when frequency ~ HCC."Every six to eight hours (qualifier value)" then 3.0 - when frequency ~ HCC."Every three to four hours (qualifier value)" then 6.0 - when frequency ~ HCC."Every three to six hours (qualifier value)" then 4.0 - when frequency ~ HCC."Every two to four hours (qualifier value)" then 6.0 - when frequency ~ HCC."One to four times a day (qualifier value)" then 4.0 - when frequency ~ HCC."One to three times a day (qualifier value)" then 3.0 - when frequency ~ HCC."One to two times a day (qualifier value)" then 2.0 + when frequency ~ CustomConcepts."Once daily (qualifier value)" then 1.0 + when frequency ~ CustomConcepts."Twice a day (qualifier value)" then 2.0 + when frequency ~ CustomConcepts."Three times daily (qualifier value)" then 3.0 + when frequency ~ CustomConcepts."Four times daily (qualifier value)" then 4.0 + when frequency ~ CustomConcepts."Every twenty four hours (qualifier value)" then 1.0 + when frequency ~ CustomConcepts."Every twelve hours (qualifier value)" then 2.0 + when frequency ~ CustomConcepts."Every thirty six hours (qualifier value)" then 0.67 + when frequency ~ CustomConcepts."Every eight hours (qualifier value)" then 3.0 + when frequency ~ CustomConcepts."Every four hours (qualifier value)" then 6.0 + when frequency ~ CustomConcepts."Every six hours (qualifier value)" then 4.0 + when frequency ~ CustomConcepts."Every seventy two hours (qualifier value)" then 0.34 + when frequency ~ CustomConcepts."Every forty eight hours (qualifier value)" then 0.5 + when frequency ~ CustomConcepts."Every eight to twelve hours (qualifier value)" then 2.0 + when frequency ~ CustomConcepts."Every six to eight hours (qualifier value)" then 3.0 + when frequency ~ CustomConcepts."Every three to four hours (qualifier value)" then 6.0 + when frequency ~ CustomConcepts."Every three to six hours (qualifier value)" then 4.0 + when frequency ~ CustomConcepts."Every two to four hours (qualifier value)" then 6.0 + when frequency ~ CustomConcepts."One to four times a day (qualifier value)" then 4.0 + when frequency ~ CustomConcepts."One to three times a day (qualifier value)" then 3.0 + when frequency ~ CustomConcepts."One to two times a day (qualifier value)" then 2.0 else null end @@ -770,128 +211,17 @@ define function "DosesPerDay"(frequency Code): //dosage * Quantity { value: dosesPerDay, unit: '/d' } -define "methadone_prescribed at date": -[MedicationRequest] MR - where MR.status = 'completed' - and MR.intent = 'order' - and MR.medication ~ HCC."methadone" - //and "GetMedicationDailyDose"(MR.dosageInstruction, "DosesPerDay"(singleton from MR.dosageInstruction.timing.repeat.frequencyMax)) >= 60 'mg/d' - and MedicationRequestPeriod(MR) starts before "Measurement Date" - and MedicationRequestPeriod(MR) ends after "Measurement Date" -define "VMMC_done": -[Procedure] P - where P.status = 'completed' - and P.code ~ HC."Voluntary medical male circumcision VMMC" - -define "VMMC_adverse_event": -[AdverseEvent] AE - with [Procedure] P - such that AE.suspectEntity.instance.references(P) and P.status = 'completed' - and P.code ~ HC."Voluntary medical male circumcision VMMC" - and P.performed after start of "Measurement Period" - and P.performed before end of "Measurement Period" - and AE.date <= (P.performed + 30 days) - and AE.date >= (P.performed) - where AE.actuality = 'actual' - -define "VMMC_adverse_event_type": - case - when exists("VMMC_adverse_event" AE where AE.event ~ HC."Abnormal pain") then HC."Abnormal pain" - when exists("VMMC_adverse_event" AE where AE.event ~ HC."Anaesthesia-related effects") then HC."Anaesthesia-related effects" - when exists("VMMC_adverse_event" AE where AE.event ~ HC."Damage to the penis") then HC."Damage to the penis" - when exists("VMMC_adverse_event" AE where AE.event ~ HC."Difficulty urinating") then HC."Difficulty urinating" - when exists("VMMC_adverse_event" AE where AE.event ~ HC."Excessive bleeding") then HC."Excessive bleeding" - when exists("VMMC_adverse_event" AE where AE.event ~ HC."Excessive skin removal") then HC."Excessive skin removal" - when exists("VMMC_adverse_event" AE where AE.event ~ HC."Excessive swelling") then HC."Excessive swelling" - when exists("VMMC_adverse_event" AE where AE.event ~ HC."Haematoma") then HC."Haematoma" - when exists("VMMC_adverse_event" AE where AE.event ~ HC."Infection") then HC."Infection" - when exists("VMMC_adverse_event" AE where AE.event ~ HC."Injury to glans") then HC."Injury to glans" - when exists("VMMC_adverse_event" AE where AE.event ~ HC."Scar or disfigurement") then HC."Scar or disfigurement" - when exists("VMMC_adverse_event" AE where AE.event ~ HC."Sharps injury to personnel") then HC."Sharps injury to personnel" - when exists("VMMC_adverse_event" AE where AE.event ~ HC."Wound disruption") then HC."Wound disruption" - else HC."Other - HIV.B.DE222" - end -define "VMMC_adverse_event_Intraoperative": -[AdverseEvent] AE - with [Procedure] P - such that AE.suspectEntity.instance.references(P) and P.status = 'completed' - and P.code ~ HC."Voluntary medical male circumcision VMMC" - and P.performed after start of "Measurement Period" - and P.performed before end of "Measurement Period" - and AE.date = P.performed - where AE.actuality = 'actual' - -define "VMMC_adverse_event_Postoperative": -[AdverseEvent] AE - with [Procedure] P - such that AE.suspectEntity.instance.references(P) and P.status = 'completed' - and P.code ~ HC."Voluntary medical male circumcision VMMC" - and P.performed after start of "Measurement Period" - and P.performed before end of "Measurement Period" - and AE.date <= (P.performed + 30 days) - and AE.date > (P.performed) - where AE.actuality = 'actual' - - define "VMMC_adverse_event_timing": - case - when exists(VMMC_adverse_event_Intraoperative) then HC."Intraoperative" - when exists(VMMC_adverse_event_Postoperative) then HC."Postoperative" - else null - end - define "Partner or contact of an index case": - [Observation: HC."Referred through partner services"] O - where O.status in { 'final', 'amended', 'corrected' } - and exists(O.category OC where OC ~ HCC."social-history") - and O.code ~ HC."Partner or contact of an index case" - - define "Drug-injecting partner": - [Observation: HC."Type of contact or partner for partner services"] O - where O.status in { 'final', 'amended', 'corrected' } - and exists(O.category OC where OC ~ HCC."social-history") - and O.code ~ HC."Drug-injecting partner - HIV.B.DE10" - - define "Sexual partner": - [Observation: HC."Type of contact or partner for partner services"] O - where O.status in { 'final', 'amended', 'corrected' } - and exists(O.category OC where OC ~ HCC."social-history") - and O.code ~ HC."Sexual partner - HIV.B.DE11" - - define "First HIV Treatment": - First(HE."On ART H.DE47") - define "Time to start ART": - case - when difference in days between start of "First HIV Treatment".effective.toInterval() and start of "First HIV Positive Condition".onset.toInterval() <= 7 then HC."Within 7 days of HIV diagnosis" - when difference in days between start of "First HIV Treatment".effective.toInterval() and start of "First HIV Positive Condition".onset.toInterval() <= 30 then HC."Within 30 days of HIV diagnosis" - when difference in days between start of "First HIV Treatment".effective.toInterval() and start of "First HIV Positive Condition".onset.toInterval() <= 90 then HC."Within 90 days of HIV diagnosis" - else null - end - - //HIV status of partner or contact (already known positive, newly diagnosed positive, negative) - define "already known positive": - [Observation: HC."HIV status of partner or contact"] O - where O.status in { 'final', 'amended', 'corrected' } - and exists(O.category OC where OC ~ HCC."social-history") - and O.code ~ HC."Already knew positive" + + - define "Newly diagnosed": - [Observation: HC."HIV status of partner or contact"] O - where O.status in { 'final', 'amended', 'corrected' } - and exists(O.category OC where OC ~ HCC."social-history") - and O.code ~ HC."Newly diagnosed" - - define "Negative - HIV.H.DE37": - [Observation: HC."HIV status of partner or contact"] O - where O.status in { 'final', 'amended', 'corrected' } - and exists(O.category OC where OC ~ HCC."social-history") - and O.code ~ HC."Negative - HIV.H.DE37" @@ -899,5 +229,37 @@ define "VMMC_adverse_event_Postoperative": define STI_testing: [Procedure] P where P.status = 'completed' - and P.code ~ HC."STI testing and treatment services" + and P.code ~ Concepts."STI testing and treatment services" + + +/** + * @description Takes a choice between a Medication and a CodeableConcept and returns just the code of the medication + */ +define function ExtractMedicationCode(choice Choice): + case + when choice is FHIR.CodeableConcept then + choice as FHIR.CodeableConcept + when choice is FHIR.Reference then + First([Medication] M + where M.id = Last(Split(choice.reference, '/')) + return M.code as FHIR.CodeableConcept) + else + Message(null as FHIR.CodeableConcept, true, '1', 'Error', 'Cannot compute a medication code') // TODO: I'm sure that this is supported somehow? + end + +/** + * @description Returns the code of an Observation CodeableConcept + */ +define fluent function getObservationCode(observation FHIR.Observation): + case + when observation.code is FHIR.CodeableConcept then (observation.value as CodeableConcept).coding.code + else null + end + +/** + * @description Returns a list of codes of an a list of Observations + */ +define fluent function getObservationCodes(obslist List): + obslist obs return obs.getObservationCode() + diff --git a/input/cql/HIVConcepts.cql b/input/cql/HIVConcepts.cql index 9d68baf5a4f..5d4d3166ee2 100644 --- a/input/cql/HIVConcepts.cql +++ b/input/cql/HIVConcepts.cql @@ -15,7 +15,7 @@ valueset "Country of birth Choices": 'http://smart.who.int/hiv/ValueSet/HIV.A.DE valueset "Gender Choices": 'http://smart.who.int/hiv/ValueSet/HIV.A.DE18' valueset "Sex Choices": 'http://smart.who.int/hiv/ValueSet/HIV.A.DE25' valueset "Marital Status Choices": 'http://smart.who.int/hiv/ValueSet/HIV.A.DE30' -valueset "[Administrative Area] Choices": 'http://smart.who.int/hiv/ValueSet/HIV.A.DE43' +valueset "Administrative Area Choices": 'http://smart.who.int/hiv/ValueSet/HIV.A.DE43' valueset "Communication preferences Choices": 'http://smart.who.int/hiv/ValueSet/HIV.A.DE46' valueset "Reason for visit - HIV.B.DE1 Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE1' valueset "Referred through partner services Choices": 'http://smart.who.int/hiv/ValueSet/HIV.B.DE5' @@ -312,9 +312,9 @@ code "Facility-level testing": 'HIV.B.DE17' from "HIVConcepts" display 'Facility code "Currently pregnant - HIV.B.DE29": 'HIV.B.DE29' from "HIVConcepts" display 'Currently pregnant' code "Breastfeeding - HIV.B.DE32": 'HIV.B.DE32' from "HIVConcepts" display 'Breastfeeding' code "Partner HIV status reported": 'HIV.B.DE33' from "HIVConcepts" display 'Partner HIV status reported' -code "HIV-positive - HIV.B.DE34": 'HIV.B.DE34' from "HIVConcepts" display 'HIV-positive' -code "HIV-negative - HIV.B.DE35": 'HIV.B.DE35' from "HIVConcepts" display 'HIV-negative' -code "Unknown - HIV.B.DE36": 'HIV.B.DE36' from "HIVConcepts" display 'Unknown' +code "HIV-positive": 'HIV.B.DE34' from "HIVConcepts" display 'HIV-positive' +code "HIV-negative": 'HIV.B.DE35' from "HIVConcepts" display 'HIV-negative' +code "Unknown": 'HIV.B.DE36' from "HIVConcepts" display 'Unknown' code "Key population member - HIV.B.DE49": 'HIV.B.DE49' from "HIVConcepts" display 'Key population member*' code "Key population member type - HIV.B.DE50": 'HIV.B.DE50' from "HIVConcepts" display 'Key population member type*' code "Sex worker - HIV.B.DE51": 'HIV.B.DE51' from "HIVConcepts" display 'Sex worker' diff --git a/input/cql/HIVConceptsCustom.cql b/input/cql/HIVConceptsCustom.cql index 70a7b3d5b4d..09d3e09460f 100644 --- a/input/cql/HIVConceptsCustom.cql +++ b/input/cql/HIVConceptsCustom.cql @@ -1,4 +1,5 @@ library HIVConceptsCustom +codesystem "HIVConceptsCustom": 'http://smart.who.int/hiv/CodeSystem/HIVConceptsCustom' codesystem "ConditionCategoryCodes": 'http://terminology.hl7.org/CodeSystem/condition-category' codesystem "ConditionClinicalStatusCodes": 'http://terminology.hl7.org/CodeSystem/condition-clinical' @@ -8,9 +9,13 @@ codesystem "Devicestatement-status": 'http://hl7.org/fhir/device-statement-statu codesystem "SNOMEDCT:2018-03": 'urn:oid:2.16.840.1.113883.6.96' version 'urn:hl7:version:2018-03' codesystem "SNOMEDCT": 'urn:oid:2.16.840.1.113883.6.96' codesystem "AdverseEventSeverity": 'http://terminology.hl7.org/CodeSystem/adverse-event-severity' - +codesystem "RoleCode": 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' code "encounter-diagnosis": 'encounter-diagnosis' from "ConditionCategoryCodes" display 'Encounter Diagnosis' +// Related Person +valueset "RelatedPersonRelationshipType": 'http://hl7.org/fhir/ValueSet/relatedperson-relationshiptype' +code "Mother": 'MTH' from "RoleCode" + // Condition Clinical Status Codes code "active": 'active' from "ConditionClinicalStatusCodes" code "recurrence": 'recurrence' from "ConditionClinicalStatusCodes" @@ -54,6 +59,9 @@ code "Twice a day (qualifier value)": '229799001' from "SNOMEDCT:2018-03" displa code "Two to four times a day (qualifier value)": '396111001' from "SNOMEDCT" display 'Two to four times a day (qualifier value)' +// Encounter Types +code "HTS Visit": 'HTS Visit' from "HIVConceptsCustom" + //not currently provided code "needle-syringe": 'needle syringe' from "missing concepts" code "methadone": 'methadone' from "missing concepts" diff --git a/input/cql/HIVConfig.cql b/input/cql/HIVConfig.cql index 89476690d47..c5ee11cac43 100644 --- a/input/cql/HIVConfig.cql +++ b/input/cql/HIVConfig.cql @@ -8,3 +8,11 @@ using FHIR version '4.0.1' define "HIV burden of setting": 'High HIV burden setting' +define "Testing Interval": + 3 months + +define "Intervention Interval": + 7 days + +define "LTFU Days": + 28 days diff --git a/input/cql/HIVElements.cql b/input/cql/HIVElements.cql index baead28999b..34f69be6121 100644 --- a/input/cql/HIVElements.cql +++ b/input/cql/HIVElements.cql @@ -10,14 +10,8 @@ include WHOCommon called WC include WHOElements called WE include HIVConcepts called Concepts -include HIVConceptsCustom called CustomConcepts -//include HIVCommon called Common - -parameter "Measurement Period" Interval default Interval[@2020-01-01, @2020-12-31] -parameter "Measurement Date" Date default @2020-01-01 -parameter "Testing Interval" System.Quantity default 3 months -parameter "Intervention Interval" System.Quantity default 7 days -parameter "LTFU Days" System.Quantity default 28 days +include HIVConceptsCustom called ConceptsCustom +include HIVCommon called Common context Patient @@ -25,7 +19,92 @@ context Patient * HIV Elements */ -// Umbrella Element Definitions +/* General Element Definitions */ + +// From Common + +// Exposure to HIV +define Exposure_Occupational: + exists ( + [Observation: Concepts."HIV exposure type"] O + where O.status in { 'final', 'amended', 'corrected' } + and exists(O.category OC where OC ~ ConceptsCustom."social-history") + and O.value ~ Concepts."Occupational" + ) + +define Exposure_Non_Occupational_violent: + exists ( + [Observation: Concepts."HIV exposure type"] O + where O.status in { 'final', 'amended', 'corrected' } + and exists(O.category OC where OC ~ ConceptsCustom."social-history") + and O.value ~ Concepts."Non-occupational violent" + ) + +define Exposure_Non_Occupational_consensual_sex: + exists ( + [Observation: Concepts."HIV exposure type"] O + where O.status in { 'final', 'amended', 'corrected' } + and exists(O.category OC where OC ~ ConceptsCustom."social-history") + and O.value ~ Concepts."Non-occupational consensual sex" + ) + +// Needle Syringe Dispensed +define "Needle Syringe Dispensed": + [DeviceUseStatement] DUS + with [Observation: Concepts."Key population member - HIV.E.DE113"] O + such that DUS.reasonReference.references(O) + and O.status in { 'final', 'amended', 'corrected' } + and exists(O.category OC where OC ~ ConceptsCustom."social-history") + and O.value ~ Concepts."People who inject drugs - HIV.B.DE54" + where DUS.status = 'completed' + +define "HIV PREP Active": +[MedicationStatement] MS + where MS.status = 'completed' + and exists(MS.reasonCode C where C ~ Concepts."PrEP for HIV prevention") + + define "Client is at elevated risk for HIV acquisition": + [Observation] O + where O.status in { 'final', 'amended', 'corrected' } + and exists(O.category OC where OC ~ ConceptsCustom."social-history") + and O.code ~ Concepts."At elevated risk for HIV acquisition - HIV.B.DE225" + +define "PREP Prescription": + [MedicationRequest] MR + where MR.status = 'completed' + and MR.intent = 'order' + and MR.medication ~ Concepts."PrEP for HIV prevention" + +define "PEP Prescription": + [MedicationRequest] MR + where MR.status = 'completed' + and MR.intent = 'order' + and MR.medication ~ Concepts."PEP for HIV prevention" + +define "routine viral load sample collection": + [Procedure] P + where P.status = 'completed' + and P.code ~ ConceptsCustom."viral load test" + and exists(P.reasonCode RC where RC ~ Concepts."Routine viral load test") + +define "viral load sample collection": + [Procedure] P + where P.status = 'completed' + and P.code ~ ConceptsCustom."viral load test" + +define "HIV Positive Condition": +[Condition] C + where C.clinicalStatus ~ ConceptsCustom."active" + and exists(C.category CC where CC ~ ConceptsCustom."encounter-diagnosis") + and C.code ~ Concepts."HIV-positive - HIV.B.DE116" + sort by start of onset.toInterval() + +define "First HIV Treatment": + First("On ART H.DE47") + +define "First HIV Positive Condition": + First("HIV Positive Condition") + /* On ART - includes "On ART - HIV.B.DE47" and "On ART - HIV.B.DE48" */ define "ART Medication Statement": @@ -39,9 +118,16 @@ define "ART start date": "ART Medication Statement" MS return start of MS.effective.toInterval() -// Auto-generated Elements from DAK Data Dictionary -// Entries based on DAK Data Dictionary for Data Elements marked as used -// in at least one Decision Support Table or Aggregate Indicator +define "First On ART": + (First("On ART D.DE38")) + +define "Viral load tests received after ART intitiation": + "Viral load test result D.DE387" O + where start of O.issued.toInterval() after start of "First On ART".effective.toInterval() + sort by start of issued.toInterval() + +// Entries based on DAK Data Dictionary for Data Elements marked as used +// in at least one Decision Support Table or Aggregate Indicator /* @dataElement: HIV.A.DE3 - Visit date @@ -193,17 +279,24 @@ define "Other A.DE23 Observation": and O.value ~ Concepts."Other - HIV.A.DE23" /* End of Other A.DE23 */ + +/* +@dataElement: HIV.B HTS Visit Enounter +@activity: HIV.B1 Determine reason for visit +@description: Encounter for HIV testing services visit +*/ +define "HTS Visit Encounter": + [Encounter] E + where E.type.coding.code contains ConceptsCustom."HTS Visit".code + /* @dataElement: HIV.B.DE1 - Reason for visit @activity: HIV.B1 Determine reason for visit @description: Reason for HIV testing services visit */ -// TODO: Replace placeholder with relevant CQL logic define "Reason for visit B.DE1": - exists "Reason for visit B.DE1 Observation" -define "Reason for visit B.DE1 Observation": - [Observation: Concepts."Reason for visit - HIV.B.DE1"] O - where O.status in { 'final', 'amended', 'corrected' } + "HTS Visit Encounter" E + return E.reasonCode /* End of Reason for visit B.DE1 */ /* @@ -211,16 +304,9 @@ define "Reason for visit B.DE1 Observation": @activity: HIV.B1 Determine reason for visit @description: First encounter for screening for human immunodeficiency virus */ -// TODO: Replace placeholder with relevant CQL logic -define "First-time HIV test": - exists "First-time HIV test Condition" - or exists "First-time HIV test Observation" -define "First-time HIV test Condition": - [Condition: Concepts."First-time HIV test"] -define "First-time HIV test Observation": - "Reason for visit B.DE1 Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."First-time HIV test" +define "First-time HIV test Encounter": + "HTS Visit Encounter" E + where E.reasonCode.coding.code contains Concepts."First-time HIV test".code /* End of First-time HIV test */ /* @@ -229,15 +315,9 @@ define "First-time HIV test Observation": @description: Retesting for human immunodeficiency virus */ // TODO: Replace placeholder with relevant CQL logic -define "Retesting for HIV B.DE3": - exists "Retesting for HIV B.DE3 Condition" - or exists "Retesting for HIV B.DE3 Observation" -define "Retesting for HIV B.DE3 Condition": - [Condition: Concepts."Retesting for HIV - HIV.B.DE3"] -define "Retesting for HIV B.DE3 Observation": - "Reason for visit B.DE1 Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."Retesting for HIV - HIV.B.DE3" +define "Retesting for HIV B.DE3 Encounter": + "HTS Visit Encounter" E + where E.reasonCode.coding.code contains Concepts."Retesting for HIV - HIV.B.DE3".code /* End of Retesting for HIV B.DE3 */ /* @@ -246,15 +326,9 @@ define "Retesting for HIV B.DE3 Observation": @description: Client attending facility for HIV testing services visit */ // TODO: Replace placeholder with relevant CQL logic -define "HIV testing services visit": - exists "HIV testing services visit Condition" - or exists "HIV testing services visit Observation" -define "HIV testing services visit Condition": - [Condition: Concepts."HIV testing services visit"] -define "HIV testing services visit Observation": - "Reason for visit B.DE1 Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."HIV testing services visit" +define "HIV testing services visit Encounter": + "HTS Visit Encounter" E + where E.reasonCode.coding.code contains Concepts."HIV testing services visit".code /* End of HIV testing services visit */ /* @@ -275,16 +349,39 @@ define "Referred through partner services Observation": @activity: HIV.B1 Determine reason for visit @description: The client is a contact or partner of a person diagnosed with HIV (an index case) */ -// TODO: Replace placeholder with relevant CQL logic + define "Partner or contact of an index case": - exists "Partner or contact of an index case Condition" - or exists "Partner or contact of an index case Observation" -define "Partner or contact of an index case Condition": - [Condition: Concepts."Partner or contact of an index case"] -define "Partner or contact of an index case Observation": - "Referred through partner services Observation" O + [Observation: Concepts."Referred through partner services"] O where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."Partner or contact of an index case" + and exists(O.category OC where OC ~ ConceptsCustom."social-history") + and O.code ~ Concepts."Partner or contact of an index case" + +define "Drug-injecting partner": + [Observation: Concepts."Type of contact or partner for partner services"] O + where O.status in { 'final', 'amended', 'corrected' } + and exists(O.category OC where OC ~ ConceptsCustom."social-history") + and O.code ~ Concepts."Drug-injecting partner - HIV.B.DE10" + +define "Sexual partner": + [Observation: Concepts."Type of contact or partner for partner services"] O + where O.status in { 'final', 'amended', 'corrected' } + and exists(O.category OC where OC ~ ConceptsCustom."social-history") + and O.code ~ Concepts."Sexual partner - HIV.B.DE11" + +//HIV status of partner or contact (already known positive, newly diagnosed positive, negative) + +define "already known positive": + [Observation: Concepts."HIV status of partner or contact"] O + where O.status in { 'final', 'amended', 'corrected' } + and exists(O.category OC where OC ~ ConceptsCustom."social-history") + and O.code ~ Concepts."Already knew positive" + +define "Negative - HIV.H.DE37": + [Observation: Concepts."HIV status of partner or contact"] O + where O.status in { 'final', 'amended', 'corrected' } + and exists(O.category OC where OC ~ ConceptsCustom."social-history") + and O.code ~ Concepts."Negative - HIV.H.DE37" + /* End of Partner or contact of an index case */ /* @@ -497,11 +594,11 @@ define "HIV-positive B.DE34": exists "HIV-positive B.DE34 Condition" or exists "HIV-positive B.DE34 Observation" define "HIV-positive B.DE34 Condition": - [Condition: Concepts."HIV-positive - HIV.B.DE34"] + [Condition: Concepts."HIV-positive"] define "HIV-positive B.DE34 Observation": "Partner HIV status reported Observation" O where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."HIV-positive - HIV.B.DE34" + and O.value ~ Concepts."HIV-positive" /* End of HIV-positive B.DE34 */ /* @@ -514,11 +611,11 @@ define "HIV-negative B.DE35": exists "HIV-negative B.DE35 Condition" or exists "HIV-negative B.DE35 Observation" define "HIV-negative B.DE35 Condition": - [Condition: Concepts."HIV-negative - HIV.B.DE35"] + [Condition: Concepts."HIV-negative"] define "HIV-negative B.DE35 Observation": "Partner HIV status reported Observation" O where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."HIV-negative - HIV.B.DE35" + and O.value ~ Concepts."HIV-negative" /* End of HIV-negative B.DE35 */ /* @@ -531,25 +628,24 @@ define "Unknown B.DE36": exists "Unknown B.DE36 Condition" or exists "Unknown B.DE36 Observation" define "Unknown B.DE36 Condition": - [Condition: Concepts."Unknown - HIV.B.DE36"] + [Condition: Concepts."Unknown"] define "Unknown B.DE36 Observation": "Partner HIV status reported Observation" O where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."Unknown - HIV.B.DE36" + and O.value ~ Concepts."Unknown" /* End of Unknown B.DE36 */ +/* + * Key populations (men who have sex with men, people living in prisons and other closed settings, people who inject drugs, sex workers, trans and gender diverse people) + */ + /* @dataElement: HIV.B.DE49 - Key population member @activity: HIV.B6 Capture or update client history @description: Client is a member of a key population that has an increased risk of HIV */ -// TODO: Replace placeholder with relevant CQL logic -define "Key population member B.DE49": - exists "Key population member B.DE49 Observation" -define "Key population member B.DE49 Observation": - [Observation: Concepts."Key population member - HIV.B.DE49"] O - where O.status in { 'final', 'amended', 'corrected' } - and O.value is true +define "Is Key population member": + exists "Key population member type Observation" /* End of Key population member B.DE49 */ /* @@ -557,12 +653,10 @@ define "Key population member B.DE49 Observation": @activity: HIV.B6 Capture or update client history @description: The type of key population that the client is included in */ -// TODO: Replace placeholder with relevant CQL logic -define "Key population member type B.DE50": - exists "Key population member type B.DE50 Observation" -define "Key population member type B.DE50 Observation": - [Observation: Concepts."Key population member type - HIV.B.DE50"] O +define "Key population member type Observation": + [Observation: Concepts."Key population member - HIV.B.DE49"] O where O.status in { 'final', 'amended', 'corrected' } + and exists(O.category OC where OC ~ ConceptsCustom."social-history") /* End of Key population member type B.DE50 */ /* @@ -570,12 +664,9 @@ define "Key population member type B.DE50 Observation": @activity: HIV.B6 Capture or update client history @description: Client is a sex worker */ - -define "Sex worker B.DE51": - [Observation: Concepts."Key population member - HIV.B.DE49"] O - where O.status in { 'final', 'amended', 'corrected' } - and exists(O.category OC where OC ~ CustomConcepts."social-history") - and O.value ~ Concepts."Sex worker - HIV.B.DE51" +define "Sex worker": + "Key population member type Observation" O + where O.value ~ Concepts."Sex worker - HIV.B.DE51" /* End of Sex worker B.DE51 */ /* @@ -583,12 +674,10 @@ define "Sex worker B.DE51": @activity: HIV.B6 Capture or update client history @description: Client is a man who has sex with men */ - define "Men who have sex with men": - [Observation: Concepts."Key population member - HIV.B.DE49"] O - where O.status in { 'final', 'amended', 'corrected' } - and exists(O.category OC where OC ~ CustomConcepts."social-history") - and O.value ~ Concepts."Men who have sex with men" + "Key population member type Observation" O + where O.value ~ Concepts."Men who have sex with men" + /* End of Men who have sex with men */ /* @@ -596,12 +685,10 @@ define "Men who have sex with men": @activity: HIV.B6 Capture or update client history @description: Client identifies as trans and gender-diverse */ - -define "Trans and gender-diverse people B.DE53": - [Observation: Concepts."Key population member - HIV.B.DE49"] O - where O.status in { 'final', 'amended', 'corrected' } - and exists(O.category OC where OC ~ CustomConcepts."social-history") - and O.value ~ Concepts."Trans and gender-diverse people - HIV.B.DE53" +define "Trans and gender-diverse people": + "Key population member type Observation" O + where O.value ~ Concepts."Trans and gender-diverse people - HIV.B.DE53" + /* End of Trans and gender-diverse people B.DE53 */ /* @@ -609,12 +696,10 @@ define "Trans and gender-diverse people B.DE53": @activity: HIV.B6 Capture or update client history @description: Client is a person who injects drugs */ - -define "People who inject drugs B.DE54": - [Observation: Concepts."Key population member - HIV.B.DE49"] O - where O.status in { 'final', 'amended', 'corrected' } - and exists(O.category OC where OC ~ CustomConcepts."social-history") - and O.value ~ Concepts."People who inject drugs - HIV.B.DE54" +define "People who inject drugs": + "Key population member type Observation" O + where O.value ~ Concepts."People who inject drugs - HIV.B.DE54" + /* End of People who inject drugs B.DE54 */ /* @@ -622,12 +707,9 @@ define "People who inject drugs B.DE54": @activity: HIV.B6 Capture or update client history @description: Client lives in a prison or another closed setting */ - define "People living in prisons and other closed settings": - [Observation: Concepts."Key population member - HIV.B.DE49"] O - where O.status in { 'final', 'amended', 'corrected' } - and exists(O.category OC where OC ~ CustomConcepts."social-history") - and O.value ~ Concepts."People living in prisons and other closed settings" + "Key population member type Observation" O + where O.value ~ Concepts."People living in prisons and other closed settings" /* End of People living in prisons and other closed settings */ /* @@ -635,13 +717,9 @@ define "People living in prisons and other closed settings": @activity: HIV.B6 Capture or update client history @description: Date HIV test result returned to client */ -// TODO: Replace placeholder with relevant CQL logic define "Date HIV test results returned": - [Observation: Concepts."Date HIV test results returned"] O - where O.status in { 'final', 'amended', 'corrected' } -define "Date HIV test results returned Value": - "Date HIV test results returned" O - return O.value + "HIV test" O + return O.issued /* End of Date HIV test results returned */ /* @@ -722,6 +800,17 @@ define "Date informed of HIV-positive diagnosis Value": return O.value /* End of Date informed of HIV-positive diagnosis */ +/* +@activity: HIV.B7 Test for HIV using testing algorithm +*/ +define "HIV test": + [Observation: Concepts."HIV test type - HIV.B.DE81 Choices"] O + where O.status in { 'final', 'amended', 'corrected' } + +define "Non-Self HIV test": + "HIV test" O + where O.code !~ Concepts."HIV self-test" + /* @dataElement: HIV.B.DE71 - HIV diagnosis date @activity: HIV.B8 Provide post-test counselling @@ -769,10 +858,12 @@ define "HIV test conducted Observation": @activity: HIV.B7 Test for HIV using testing algorithm @description: Type of HIV test */ -// TODO: Replace placeholder with relevant CQL logic define "HIV test type B.DE81": [Observation: Concepts."HIV test type - HIV.B.DE81"] O where O.status in { 'final', 'amended', 'corrected' } +define "HIV test type B.DE81 Value": + "HIV test type B.DE81" O + return O.value /* End of HIV test type B.DE81 */ /* @@ -783,8 +874,7 @@ define "HIV test type B.DE81": define "Rapid diagnostic test for HIV B.DE82": "HIV test type B.DE81" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."Rapid diagnostic test for HIV - HIV.B.DE82" + where O.value ~ Concepts."Rapid diagnostic test for HIV - HIV.B.DE82" /* End of Rapid diagnostic test for HIV B.DE82 */ /* @@ -795,8 +885,7 @@ define "Rapid diagnostic test for HIV B.DE82": define "Enzyme immunoassay for HIV B.DE83": "HIV test type B.DE81" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."Enzyme immunoassay for HIV - HIV.B.DE83" + where O.value ~ Concepts."Enzyme immunoassay for HIV - HIV.B.DE83" /* End of Enzyme immunoassay for HIV B.DE83 */ /* @@ -804,11 +893,9 @@ define "Enzyme immunoassay for HIV B.DE83": @activity: HIV.B7 Test for HIV using testing algorithm @description: Virological test, which includes testing for early infant diagnosis */ - define "Nucleic acid test for HIV B.DE84": "HIV test type B.DE81" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."Nucleic acid test for HIV - HIV.B.DE84" + where O.value ~ Concepts."Nucleic acid test for HIV - HIV.B.DE84" /* End of Nucleic acid test for HIV B.DE84 */ /* @@ -819,8 +906,7 @@ define "Nucleic acid test for HIV B.DE84": define "Dual HIV/syphilis rapid diagnostic test B.DE85": "HIV test type B.DE81" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."Dual HIV/syphilis rapid diagnostic test - HIV.B.DE85" + where O.value ~ Concepts."Dual HIV/syphilis rapid diagnostic test - HIV.B.DE85" /* End of Dual HIV/syphilis rapid diagnostic test B.DE85 */ /* @@ -831,8 +917,7 @@ define "Dual HIV/syphilis rapid diagnostic test B.DE85": define "HIV self-test": "HIV test type B.DE81" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."HIV self-test" + where O.value ~ Concepts."HIV self-test" /* End of HIV self-test */ /* @@ -1194,13 +1279,9 @@ define "Invalid B.DE109 Observation": @activity: HIV.B7 Test for HIV using testing algorithm @description: Date of the HIV test */ -// TODO: Replace placeholder with relevant CQL logic define "HIV test date B.DE110": - [Observation: Concepts."HIV test date - HIV.B.DE110"] O - where O.status in { 'final', 'amended', 'corrected' } -define "HIV test date B.DE110 Value": - "HIV test date B.DE110" O - return O.value + "HIV test" O + return start of O.effective.toInterval() /* End of HIV test date B.DE110 */ /* @@ -1208,12 +1289,20 @@ define "HIV test date B.DE110 Value": @activity: HIV.B7 Test for HIV using testing algorithm @description: The result from HIV testing after applying the testing algorithm */ -// TODO: Replace placeholder with relevant CQL logic -define "HIV test result B.DE111": - exists "HIV test result B.DE111 Observation" -define "HIV test result B.DE111 Observation": - [Observation: Concepts."HIV test result - HIV.B.DE111"] O - where O.status in { 'final', 'amended', 'corrected' } +// Same as test - see profile +define "HIV test result Observation": + "HIV test" O + +define "HIV test result Value": + "HIV test" O + return O.value + +// Moved and Redefined in HIE +// define "HIV test resulted": +// [Observation] O +// where O.status in {'final', 'amended'} +// and O.code ~ Concepts."Rapid diagnostic test for HIV - HIV.B.DE82" + /* End of HIV test result B.DE111 */ /* @@ -1221,16 +1310,9 @@ define "HIV test result B.DE111 Observation": @activity: HIV.B7 Test for HIV using testing algorithm @description: Test result is HIV-positive */ -// TODO: Replace placeholder with relevant CQL logic -define "HIV-positive B.DE112": - exists "HIV-positive B.DE112 Condition" - or exists "HIV-positive B.DE112 Observation" -define "HIV-positive B.DE112 Condition": - [Condition: Concepts."HIV-positive - HIV.B.DE112"] -define "HIV-positive B.DE112 Observation": - "HIV test result B.DE111 Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."HIV-positive - HIV.B.DE112" +define "HIV-positive test result": + "HIV test result Observation" O + where O.value ~ Concepts."HIV-positive - HIV.B.DE112" /* End of HIV-positive B.DE112 */ /* @@ -1238,12 +1320,9 @@ define "HIV-positive B.DE112 Observation": @activity: HIV.B7 Test for HIV using testing algorithm @description: Test result is HIV-negative */ - -define "HIV-negative B.DE113": - [Observation] O - where O.status in {'final', 'amended'} - and O.code ~ Concepts."Rapid diagnostic test for HIV - HIV.B.DE82" - and O.value ~ Concepts."HIV-negative - HIV.B.DE117" +define "HIV-negative test result": + "HIV test result Observation" O + where O.value ~ Concepts."HIV-negative - HIV.B.DE113" /* End of HIV-negative B.DE113 */ /* @@ -1251,16 +1330,9 @@ define "HIV-negative B.DE113": @activity: HIV.B7 Test for HIV using testing algorithm @description: Test result is HIV-inconclusive */ -// TODO: Replace placeholder with relevant CQL logic -define "HIV-inconclusive": - exists "HIV-inconclusive Condition" - or exists "HIV-inconclusive Observation" -define "HIV-inconclusive Condition": - [Condition: Concepts."HIV-inconclusive"] -define "HIV-inconclusive Observation": - "HIV test result B.DE111 Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."HIV-inconclusive" +define "HIV-inconclusive test result": + "HIV test result Observation" O + where O.value ~ Concepts."HIV-inconclusive" /* End of HIV-inconclusive */ /* @@ -1268,71 +1340,49 @@ define "HIV-inconclusive Observation": @activity: HIV.B7 Test for HIV using testing algorithm @description: HIV status reported after applying the national HIV testing algorithm. No single HIV test can provide an HIV-positive diagnosis. */ -// TODO: Replace placeholder with relevant CQL logic -define "HIV status": - exists "HIV status Observation" -define "HIV status Observation": +define "HIV Status Observation": [Observation: Concepts."HIV status"] O where O.status in { 'final', 'amended', 'corrected' } -/* End of HIV status */ /* @dataElement: HIV.B.DE116 - HIV-positive @activity: HIV.B7 Test for HIV using testing algorithm @description: Client is HIV-positive */ -// TODO: Replace placeholder with relevant CQL logic -define "HIV-positive B.DE116": - {First("HIV-positive B.DE116 Condition").prevalenceInterval(),First("HIV-positive B.DE116 Observation").effective.toInterval()} +define "Date HIV Status Positive": + Min("HIV Status Positive Observation Date" union "HIV Status Positive Condition Date") -define "HIV-positive B.DE116 Condition": - [Condition] C - where C.clinicalStatus ~ CustomConcepts."active" - and exists(C.category CC where CC ~ CustomConcepts."encounter-diagnosis") - and C.code ~ Concepts."HIV-positive - HIV.B.DE116" +define "HIV Status Positive Observation": +"HIV Status Observation" O + where O.value ~ Concepts."HIV-positive - HIV.B.DE116" + sort by start of effective.toInterval() + +define "HIV Status Positive Observation Date": + "HIV Status Positive Observation" O + return start of O.effective.toInterval() + + +define "HIV Status Positive Condition": + [Condition: Concepts."HIV-positive - HIV.B.DE116"] C + where C.clinicalStatus ~ ConceptsCustom."active" + and exists(C.category CC where CC ~ ConceptsCustom."encounter-diagnosis") sort by start of onset.toInterval() -define "HIV-positive B.DE116 Observation": - [Observation] O - where O.status in {'final', 'amended'} - and O.code ~ Concepts."HIV status" - and O.value ~ Concepts."HIV-positive - HIV.B.DE116" +define "HIV Status Positive Condition Date": + "HIV Status Positive Condition" C + return start of C.onset.toInterval() + +define "HIV Status Negative Observation": + "HIV Status Observation" O + where O.value ~ Concepts."HIV-negative - HIV.B.DE117" sort by start of effective.toInterval() -/* End of HIV-positive B.DE116 */ - -/* -@dataElement: HIV.B.DE117 - HIV-negative -@activity: HIV.B7 Test for HIV using testing algorithm -@description: Client is HIV-negative -*/ -// TODO: Replace placeholder with relevant CQL logic -define "HIV-negative B.DE117": - exists "HIV-negative B.DE117 Condition" - or exists "HIV-negative B.DE117 Observation" -define "HIV-negative B.DE117 Condition": - [Condition: Concepts."HIV-negative - HIV.B.DE117"] -define "HIV-negative B.DE117 Observation": - "HIV status Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."HIV-negative - HIV.B.DE117" -/* End of HIV-negative B.DE117 */ -/* -@dataElement: HIV.B.DE118 - Unknown -@activity: HIV.B7 Test for HIV using testing algorithm -@description: Client has unknown HIV status -*/ -// TODO: Replace placeholder with relevant CQL logic -define "Unknown B.DE118": - exists "Unknown B.DE118 Condition" - or exists "Unknown B.DE118 Observation" -define "Unknown B.DE118 Condition": - [Condition: Concepts."Unknown - HIV.B.DE118"] -define "Unknown B.DE118 Observation": - "HIV status Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."Unknown - HIV.B.DE118" -/* End of Unknown B.DE118 */ +define "HIV Status Negative Condition": + [Condition: Concepts."HIV-negative - HIV.B.DE117"] C + where C.clinicalStatus ~ ConceptsCustom."active" + and exists(C.category CC where CC ~ ConceptsCustom."encounter-diagnosis") + sort by start of onset.toInterval() +/* End of HIV status */ /* @dataElement: HIV.B.DE121 - Probable route of transmission @@ -2532,7 +2582,7 @@ define "HIV retest prior to starting ART conducted Observation": define "At elevated risk for HIV acquisition B.DE225": [Observation] O where O.status in { 'final', 'amended', 'corrected' } - and exists(O.category OC where OC ~ CustomConcepts."social-history") + and exists(O.category OC where OC ~ ConceptsCustom."social-history") and O.code ~ Concepts."At elevated risk for HIV acquisition - HIV.B.DE225" /* End of At elevated risk for HIV acquisition B.DE225 */ @@ -3098,6 +3148,77 @@ define "Date/time of suspected exposure to HIV C.DE9 Value": @activity: HIV.C3 Capture or update client history @description: The client is currently taking PrEP. Oral pre-exposure prophylaxis (PrEP) of HIV is the use of ARV drugs by people who are not infected with HIV to block the acquisition of HIV. */ + +/*@triggeredBy Encounter with location = community level testing*/ + +define "PREP Product Oral": + exists([MedicationStatement] MS + where MS.status = 'completed' + and exists(MS.reasonCode C where C ~ Concepts."Currently on PrEP") + and (MS.medication ~ Concepts."TDF + FTC - HIV.C.DE18" or + MS.medication ~ Concepts."TDF - HIV.C.DE19" or + MS.medication ~ Concepts."TDF + 3TC - HIV.C.DE20" or + MS.medication ~ Concepts."Other TDF-based regimen") + ) + +define "PREP Product long-acting device": + exists([MedicationStatement] MS + where MS.status = 'completed' + and exists(MS.reasonCode C where C ~ Concepts."Currently on PrEP") + and MS.medication ~ Concepts."Dapivirine vaginal ring DVR - HIV.C.DE22" + ) + +define "PREP Product long-acting injectable": + exists([MedicationStatement] MS + where MS.status = 'completed' + and exists(MS.reasonCode C where C ~ Concepts."Currently on PrEP") + and MS.medication ~ Concepts."CAB-LA - HIV.C.DE23" + ) + +define "PREP first time": + exists([MedicationStatement] MS + where MS.status = 'completed' + and exists(MS.reasonCode C where C ~ Concepts."Currently on PrEP") + and exists(MS.statusReason SR where SR ~ Concepts."First-time user - HIV.C.DE25") + ) + +define "PREP Continuing user": + exists([MedicationStatement] MS + where MS.status = 'completed' + and exists(MS.reasonCode C where C ~ Concepts."Currently on PrEP") + and exists(MS.statusReason SR where SR ~ Concepts."Continuing user") + ) + +define "PREP Restarting": + exists([MedicationStatement] MS + where MS.status = 'completed' + and exists(MS.reasonCode C where C ~ Concepts."Currently on PrEP") + and exists(MS.statusReason SR where SR ~ Concepts."Restarting following a period of not taking PrEP") + ) + +define "Daily_oral_PrEP": + exists([MedicationStatement] MS + where MS.status = 'completed' + and exists(MS.reasonCode C where C ~ Concepts."Currently on PrEP") + and exists(MS.dosage.additionalInstruction AI where AI ~ Concepts."Daily oral PrEP") + ) + +define "Event_driven_PrEP": + exists([MedicationStatement] MS + where MS.status = 'completed' + and exists(MS.reasonCode C where C ~ Concepts."Currently on PrEP") + and exists(MS.dosage.additionalInstruction AI where AI ~ Concepts."Event-driven PrEP 2+1+1") + ) + +define "other_dosing_PrEP": + exists([MedicationStatement] MS + where MS.status = 'completed' + and exists(MS.reasonCode C where C ~ Concepts."Currently on PrEP") + and exists(MS.dosage.additionalInstruction AI where AI ~ Concepts."Other PrEP dosing type") + ) + + + // TODO: Replace placeholder with relevant CQL logic define "Currently on PrEP": exists "Currently on PrEP Observation" @@ -5399,13 +5520,9 @@ define "ART start date D.DE39": @activity: HIV.D8 Capture or update client history @description: Date on which client stopped ART */ -// TODO: Replace placeholder with relevant CQL logic define "Date ART stopped D.DE41": - [Observation: Concepts."Date ART stopped - HIV.D.DE41"] O - where O.status in { 'final', 'amended', 'corrected' } -define "Date ART stopped D.DE41 Value": - "Date ART stopped D.DE41" O - return O.value + "On ART D.DE38" MS + return end of MS.effective.toInterval() /* End of Date ART stopped D.DE41 */ /* @@ -6543,7 +6660,7 @@ define "Date viral load test results received by client D.DE193": define "Date of viral load sample collection D.DE194": [Procedure] P where P.status = 'completed' - and P.code ~ CustomConcepts."viral load test" + and P.code ~ ConceptsCustom."viral load test" /* End of Date of viral load sample collection D.DE194 */ /* @@ -7985,65 +8102,15 @@ define "Date of baseline CD4 count test D.DE368 Value": @activity: HIV.D8 Capture or update client history @description: Time from HIV diagnosis to when client started ART */ -// TODO: Replace placeholder with relevant CQL logic define "Time to start ART": - exists "Time to start ART Observation" -define "Time to start ART Observation": - [Observation: Concepts."Time to start ART"] O - where O.status in { 'final', 'amended', 'corrected' } + case + when difference in days between start of "First HIV Treatment".effective.toInterval() and start of "First HIV Positive Condition".onset.toInterval() <= 7 then Concepts."Within 7 days of HIV diagnosis" + when difference in days between start of "First HIV Treatment".effective.toInterval() and start of "First HIV Positive Condition".onset.toInterval() <= 30 then Concepts."Within 30 days of HIV diagnosis" + when difference in days between start of "First HIV Treatment".effective.toInterval() and start of "First HIV Positive Condition".onset.toInterval() <= 90 then Concepts."Within 90 days of HIV diagnosis" + else null + end /* End of Time to start ART */ -/* -@dataElement: HIV.D.DE384 - Within 7 days of HIV diagnosis -@activity: HIV.D8 Capture or update client history -@description: Client started ART within 7 days -*/ -// TODO: Replace placeholder with relevant CQL logic -define "Within 7 days of HIV diagnosis": - exists "Within 7 days of HIV diagnosis Condition" - or exists "Within 7 days of HIV diagnosis Observation" -define "Within 7 days of HIV diagnosis Condition": - [Condition: Concepts."Within 7 days of HIV diagnosis"] -define "Within 7 days of HIV diagnosis Observation": - "Time to start ART Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."Within 7 days of HIV diagnosis" -/* End of Within 7 days of HIV diagnosis */ - -/* -@dataElement: HIV.D.DE385 - Within 30 days of HIV diagnosis -@activity: HIV.D8 Capture or update client history -@description: Client started ART within 30 days of ART initiation (but over 7 days) -*/ -// TODO: Replace placeholder with relevant CQL logic -define "Within 30 days of HIV diagnosis": - exists "Within 30 days of HIV diagnosis Condition" - or exists "Within 30 days of HIV diagnosis Observation" -define "Within 30 days of HIV diagnosis Condition": - [Condition: Concepts."Within 30 days of HIV diagnosis"] -define "Within 30 days of HIV diagnosis Observation": - "Time to start ART Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."Within 30 days of HIV diagnosis" -/* End of Within 30 days of HIV diagnosis */ - -/* -@dataElement: HIV.D.DE386 - Within 90 days of HIV diagnosis -@activity: HIV.D8 Capture or update client history -@description: Client started ART within 90 days of ART initiation (but over 30 days) -*/ -// TODO: Replace placeholder with relevant CQL logic -define "Within 90 days of HIV diagnosis": - exists "Within 90 days of HIV diagnosis Condition" - or exists "Within 90 days of HIV diagnosis Observation" -define "Within 90 days of HIV diagnosis Condition": - [Condition: Concepts."Within 90 days of HIV diagnosis"] -define "Within 90 days of HIV diagnosis Observation": - "Time to start ART Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."Within 90 days of HIV diagnosis" -/* End of Within 90 days of HIV diagnosis */ - /* @dataElement: HIV.D.DE387 - Viral load test result @activity: HIV.D20 Diagnostics @@ -9449,6 +9516,11 @@ define "Antivirals Observation": @activity: HIV.D8 Capture or update client history @description: Opioid substitution to treat opioid dependence */ +define "buprenorphine_prescribed": +[MedicationRequest] MR + where MR.status = 'completed' + and MR.intent = 'order' + and MR.medication ~ ConceptsCustom."buprenorphine" // TODO: Replace placeholder with relevant CQL logic define "Buprenorphine D.DE552": exists "Buprenorphine D.DE552 Condition" @@ -9500,6 +9572,12 @@ define "Hormonal family planning method Observation": @activity: HIV.D8 Capture or update client history @description: Opioid substitution to treat opioid dependence */ +define "methadone_prescribed": +[MedicationRequest] MR + where MR.status = 'completed' + and MR.intent = 'order' + and MR.medication ~ ConceptsCustom."methadone" + // TODO: Replace placeholder with relevant CQL logic define "Methadone D.DE555": exists "Methadone D.DE555 Condition" @@ -12257,7 +12335,7 @@ define "TPT regimen": define "TPT regimen type": "TPT regimen" MS - return MS.medication + return Common.ExtractMedicationCode(MS.medication) /* End of TPT regimen type */ /* @@ -12443,7 +12521,7 @@ define "Delivery date Value": */ define "Place of delivery": - [Procedure: CustomConcepts."delivery"] + [Procedure: ConceptsCustom."delivery"] /* End of Place of delivery */ @@ -12556,9 +12634,15 @@ define "HIV-exposed infant or child E.DE112": @activity: HIV.E1 Capture or update mother's history @description: Mother is a member of a key population which has an increased risk of HIV */ -// TODO: Replace placeholder with relevant CQL logic -define "Key population member E.DE113": +define "RelatedPersonMother": + [RelatedPerson] R + where ConceptsCustom."Mother" in R.relationship.coding + +define "Mother": singleton from "RelatedPersonMother" + +define "Is Key population member E.DE113": exists "Key population member E.DE113 Observation" + define "Key population member E.DE113 Observation": [Observation: Concepts."Key population member - HIV.E.DE113"] O where O.status in { 'final', 'amended', 'corrected' } @@ -12587,7 +12671,7 @@ define "Key population member type E.DE114 Observation": define "Sex worker E.DE115": [Observation: Concepts."Key population member - HIV.E.DE113"] O where O.status in { 'final', 'amended', 'corrected' } - and exists(O.category OC where OC ~ CustomConcepts."social-history") + and exists(O.category OC where OC ~ ConceptsCustom."social-history") and O.value ~ Concepts."Sex worker - HIV.E.DE115" /* End of Sex worker E.DE115 */ @@ -12600,7 +12684,7 @@ define "Sex worker E.DE115": define "People who inject drugs E.DE116": [Observation: Concepts."Key population member - HIV.E.DE113"] O where O.status in { 'final', 'amended', 'corrected' } - and exists(O.category OC where OC ~ CustomConcepts."social-history") + and exists(O.category OC where OC ~ ConceptsCustom."social-history") and O.value ~ Concepts."People who inject drugs - HIV.E.DE116" /* End of People who inject drugs E.DE116 */ @@ -12613,7 +12697,7 @@ define "People who inject drugs E.DE116": define "Trans and gender-diverse people E.DE117": [Observation: Concepts."Key population member - HIV.E.DE113"] O where O.status in { 'final', 'amended', 'corrected' } - and exists(O.category OC where OC ~ CustomConcepts."social-history") + and exists(O.category OC where OC ~ ConceptsCustom."social-history") and O.value ~ Concepts."Trans and gender-diverse people - HIV.E.DE117" /* End of Trans and gender-diverse people E.DE117 */ @@ -12622,11 +12706,10 @@ define "Trans and gender-diverse people E.DE117": @activity: HIV.E1 Capture or update mother's history @description: Infant's mother is in a prison or closed setting */ - define "People living in prisons and other closed setting": [Observation: Concepts."Key population member - HIV.E.DE113"] O where O.status in { 'final', 'amended', 'corrected' } - and exists(O.category OC where OC ~ CustomConcepts."social-history") + and exists(O.category OC where OC ~ ConceptsCustom."social-history") and O.value ~ Concepts."People living in prisons and other closed setting" /* End of People living in prisons and other closed setting */ @@ -14117,7 +14200,7 @@ define "HIV status of partner or contact Observation": define "Already knew positive": [Observation: Concepts."HIV status of partner or contact"] O where O.status in { 'final', 'amended', 'corrected' } - and exists(O.category OC where OC ~ CustomConcepts."social-history") + and exists(O.category OC where OC ~ ConceptsCustom."social-history") and O.code ~ Concepts."Already knew positive" /* End of Already knew positive */ @@ -14130,7 +14213,7 @@ define "Already knew positive": define "Newly diagnosed": [Observation: Concepts."HIV status of partner or contact"] O where O.status in { 'final', 'amended', 'corrected' } - and exists(O.category OC where OC ~ CustomConcepts."social-history") + and exists(O.category OC where OC ~ ConceptsCustom."social-history") and O.code ~ Concepts."Newly diagnosed" /* End of Newly diagnosed */ @@ -14143,7 +14226,7 @@ define "Newly diagnosed": define "Negative H.DE37": [Observation: Concepts."HIV status of partner or contact"] O where O.status in { 'final', 'amended', 'corrected' } - and exists(O.category OC where OC ~ CustomConcepts."social-history") + and exists(O.category OC where OC ~ ConceptsCustom."social-history") and O.code ~ Concepts."Negative - HIV.H.DE37" /* End of Negative H.DE37 */ @@ -14163,12 +14246,6 @@ define "HIV treatment outcome": @activity: HIV.H3 Record outreach and result @description: Twenty-eight days or more since last missed appointment */ - -define "Lost to follow-up": - "On ART H.DE47" H - where H.effective starts before end of "Measurement Period" - and H.effective ends after start of "Measurement Period" - and not (H.effective ends after (end of "Measurement Period" - "LTFU Days")) /* End of Lost to follow-up */ @@ -14177,6 +14254,8 @@ define "Lost to follow-up": @activity: HIV.H3 Record outreach and result @description: The client transferred to another facility */ +define "Has transferred out": + exists "Transferred out" define "Transferred out": flatten{"Transferred out status","Transferred out statusHistory".statusHistory.period} @@ -14210,6 +14289,9 @@ define "Death documented": when Patient.deceased is FHIR.dateTime then Patient.deceased as FHIR.dateTime else null end + +define "Has death documented": + "Death documented" is not null /* End of Death documented */ /* @@ -14373,7 +14455,7 @@ define "Other reason for stopping ART H.DE80 Observation": define "At elevated risk for HIV acquisition PRV.DE1": [Observation] O where O.status in { 'final', 'amended', 'corrected' } - and exists(O.category OC where OC ~ CustomConcepts."social-history") + and exists(O.category OC where OC ~ ConceptsCustom."social-history") and O.code ~ Concepts."At elevated risk for HIV acquisition - HIV.PRV.DE1" /* End of At elevated risk for HIV acquisition PRV.DE1 */ @@ -14436,7 +14518,7 @@ define "OAMT statusHistory": define "NSP": [DeviceUseStatement] DUS - with [Device: CustomConcepts."needle-syringe"] D + with [Device: ConceptsCustom."needle-syringe"] D such that DUS.reasonReference.references(D) and D.status in { 'active' } where DUS.status = 'completed' @@ -14459,6 +14541,12 @@ define "STI services": @activity: HIV.B6 Capture or update client history @description: Client accessed voluntary medical male circumcision (VMMC) services */ +// define "VMMC_done": +// [Procedure] P +// where P.status = 'completed' +// and P.code ~ Concepts."Voluntary medical male circumcision VMMC" + + define "VMMC": [Procedure] P where P.status = 'completed' diff --git a/input/cql/HIVEncounterElements.cql b/input/cql/HIVEncounterElements.cql index 0eaa54a68ae..95fba35dd00 100644 --- a/input/cql/HIVEncounterElements.cql +++ b/input/cql/HIVEncounterElements.cql @@ -2,7 +2,6 @@ library HIVEncounterElements using FHIR version '4.0.1' -include fhir.cqf.common.FHIRCommon called FC include FHIRHelpers version '4.0.1' include WHOConcepts @@ -189,13 +188,11 @@ define "Other A.DE23 Observation": @activity: HIV.B1 Determine reason for visit @description: Reason for HIV testing services visit */ -// TODO: Replace placeholder with relevant CQL logic define "Reason for visit B.DE1": - exists "Reason for visit B.DE1 Observation" -define "Reason for visit B.DE1 Observation": - Elements."Reason for visit B.DE1 Observation" O - where O.encounter.references(EncounterId) - or O.effective.toInterval() starts on or before Today + Elements."HTS Visit Encounter" E + where E.partOf.references(EncounterId) + or E.period.start = Today + return E.reasonCode /* End of Reason for visit B.DE1 */ /* @@ -203,17 +200,12 @@ define "Reason for visit B.DE1 Observation": @activity: HIV.B1 Determine reason for visit @description: First encounter for screening for human immunodeficiency virus */ -// TODO: Replace placeholder with relevant CQL logic -define "First-time HIV test": - exists "First-time HIV test Condition" - or exists "First-time HIV test Observation" -define "First-time HIV test Condition": - Elements."First-time HIV test Condition" C - where C.prevalenceInterval() starts on or before Today -define "First-time HIV test Observation": - Elements."First-time HIV test Observation" O - where O.encounter.references(EncounterId) - or O.effective.toInterval() starts on or before Today +define "Is First-time HIV test Encounter": + exists "First-time HIV test Encounter" +define "First-time HIV test Encounter": + Elements."First-time HIV test Encounter" E + where E.partOf.references(EncounterId) + or E.period.start = Today /* End of First-time HIV test */ /* @@ -221,17 +213,12 @@ define "First-time HIV test Observation": @activity: HIV.B1 Determine reason for visit @description: Retesting for human immunodeficiency virus */ -// TODO: Replace placeholder with relevant CQL logic -define "Retesting for HIV B.DE3": - exists "Retesting for HIV B.DE3 Condition" - or exists "Retesting for HIV B.DE3 Observation" -define "Retesting for HIV B.DE3 Condition": - Elements."Retesting for HIV B.DE3 Condition" C - where C.prevalenceInterval() starts on or before Today -define "Retesting for HIV B.DE3 Observation": - Elements."Retesting for HIV B.DE3 Observation" O - where O.encounter.references(EncounterId) - or O.effective.toInterval() starts on or before Today +define "Is Retesting for HIV B.DE3 Encounter": + exists "Retesting for HIV B.DE3 Encounter" +define "Retesting for HIV B.DE3 Encounter": + Elements."Retesting for HIV B.DE3 Encounter" E + where E.partOf.references(EncounterId) + or E.period.start = Today /* End of Retesting for HIV B.DE3 */ /* @@ -240,16 +227,12 @@ define "Retesting for HIV B.DE3 Observation": @description: Client attending facility for HIV testing services visit */ // TODO: Replace placeholder with relevant CQL logic -define "HIV testing services visit": - exists "HIV testing services visit Condition" - or exists "HIV testing services visit Observation" -define "HIV testing services visit Condition": - Elements."HIV testing services visit Condition" C - where C.prevalenceInterval() starts on or before Today -define "HIV testing services visit Observation": - Elements."HIV testing services visit Observation" O - where O.encounter.references(EncounterId) - or O.effective.toInterval() starts on or before Today +define "Is HIV testing services visit": + exists "HIV testing services visit Encounter" +define "HIV testing services visit Encounter": + Elements."HIV testing services visit Encounter" E + where E.partOf.references(EncounterId) + or E.period.start = Today /* End of HIV testing services visit */ /* @@ -354,13 +337,8 @@ define "Unknown B.DE36 Observation": @activity: HIV.B6 Capture or update client history @description: Client is a member of a key population that has an increased risk of HIV */ -// TODO: Replace placeholder with relevant CQL logic -define "Key population member B.DE49": - exists "Key population member B.DE49 Observation" -define "Key population member B.DE49 Observation": - Elements."Key population member B.DE49 Observation" O - where O.encounter.references(EncounterId) - or O.effective.toInterval() starts on or before Today +define "Is Key population member B.DE49": + exists("Key population member type Observation") /* End of Key population member B.DE49 */ /* @@ -368,74 +346,12 @@ define "Key population member B.DE49 Observation": @activity: HIV.B6 Capture or update client history @description: The type of key population that the client is included in */ -// TODO: Replace placeholder with relevant CQL logic -define "Key population member type B.DE50": - exists "Key population member type B.DE50 Observation" -define "Key population member type B.DE50 Observation": - Elements."Key population member type B.DE50 Observation" O +define "Key population member type Observation": + Elements."Key population member type Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today /* End of Key population member type B.DE50 */ -/* -@dataElement: HIV.B.DE51 - Sex worker -@activity: HIV.B6 Capture or update client history -@description: Client is a sex worker -*/ -// TODO: Replace placeholder with relevant CQL logic - -define "Sex worker B.DE51": - Elements."Sex worker B.DE51" O - where O.encounter.references(EncounterId) - or O.effective.toInterval() starts on or before Today -/* End of Sex worker B.DE51 */ - -/* -@dataElement: HIV.B.DE52 - Men who have sex with men -@activity: HIV.B6 Capture or update client history -@description: Client is a man who has sex with men -*/ -define "Men who have sex with men": - Elements."Men who have sex with men" O - where O.encounter.references(EncounterId) - or O.effective.toInterval() starts on or before Today -/* End of Men who have sex with men */ - -/* -@dataElement: HIV.B.DE53 - Trans and gender-diverse people -@activity: HIV.B6 Capture or update client history -@description: Client identifies as trans and gender-diverse -*/ -// TODO: Replace placeholder with relevant CQL logic -define "Trans and gender-diverse people B.DE53 Observation": - Elements."Trans and gender-diverse people B.DE53" O - where O.encounter.references(EncounterId) - or O.effective.toInterval() starts on or before Today -/* End of Trans and gender-diverse people B.DE53 */ - -/* -@dataElement: HIV.B.DE54 - People who inject drugs -@activity: HIV.B6 Capture or update client history -@description: Client is a person who injects drugs -*/ -// TODO: Replace placeholder with relevant CQL logic -define "People who inject drugs B.DE54": - Elements."People who inject drugs B.DE54" O - where O.encounter.references(EncounterId) - or O.effective.toInterval() starts on or before Today -/* End of People who inject drugs B.DE54 */ - -/* -@dataElement: HIV.B.DE55 - People living in prisons and other closed settings -@activity: HIV.B6 Capture or update client history -@description: Client lives in a prison or another closed setting -*/ -define "People living in prisons and other closed settings Observation": - Elements."People living in prisons and other closed settings" O - where O.encounter.references(EncounterId) - or O.effective.toInterval() starts on or before Today -/* End of People living in prisons and other closed settings */ - /* @dataElement: HIV.B.DE65 - Date informed of HIV-positive diagnosis @activity: HIV.B6 Capture or update client history @@ -500,7 +416,13 @@ define "HIV test conducted Observation": @activity: HIV.B7 Test for HIV using testing algorithm @description: Type of HIV test */ -// TODO: Replace placeholder with relevant CQL logic +define "HIV test type B.DE81": + Elements."HIV test type B.DE81" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today +define "HIV test type B.DE81 Value": + "HIV test type B.DE81" O + return O.value /* End of HIV test type B.DE81 */ /* @@ -508,8 +430,10 @@ define "HIV test conducted Observation": @activity: HIV.B7 Test for HIV using testing algorithm @description: Antibody test for HIV performed with a rapid diagnostic */ -// TODO: Replace placeholder with relevant CQL logic - +define "Rapid diagnostic test for HIV B.DE82": + Elements."Rapid diagnostic test for HIV B.DE82" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today /* End of Rapid diagnostic test for HIV B.DE82 */ /* @@ -517,8 +441,10 @@ define "HIV test conducted Observation": @activity: HIV.B7 Test for HIV using testing algorithm @description: Antibody test for HIV performed with an enzyme immunoassay */ -// TODO: Replace placeholder with relevant CQL logic - +define "Enzyme immunoassay for HIV B.DE83": + Elements."Enzyme immunoassay for HIV B.DE83" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today /* End of Enzyme immunoassay for HIV B.DE83 */ /* @@ -527,7 +453,10 @@ define "HIV test conducted Observation": @description: Virological test, which includes testing for early infant diagnosis */ // TODO: Replace placeholder with relevant CQL logic - +define "Nucleic acid test for HIV B.DE84": + Elements."Nucleic acid test for HIV B.DE84" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today /* End of Nucleic acid test for HIV B.DE84 */ /* @@ -535,8 +464,10 @@ define "HIV test conducted Observation": @activity: HIV.B7 Test for HIV using testing algorithm @description: Antibody test for HIV and syphilis performed with a rapid diagnostic */ -// TODO: Replace placeholder with relevant CQL logic - +define "Dual HIV/syphilis rapid diagnostic test B.DE85": + Elements."Dual HIV/syphilis rapid diagnostic test B.DE85" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today /* End of Dual HIV/syphilis rapid diagnostic test B.DE85 */ /* @@ -545,7 +476,10 @@ define "HIV test conducted Observation": @description: Antibody test for HIV performed by self-tester using a rapid diagnostic */ // TODO: Replace placeholder with relevant CQL logic - +define "HIV self-test": + Elements."HIV self-test" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today /* End of HIV self-test */ /* @@ -929,13 +863,15 @@ define "Invalid B.DE109 Observation": @activity: HIV.B7 Test for HIV using testing algorithm @description: The result from HIV testing after applying the testing algorithm */ -// TODO: Replace placeholder with relevant CQL logic -define "HIV test result B.DE111": - exists "HIV test result B.DE111 Observation" -define "HIV test result B.DE111 Observation": - Elements."HIV test result B.DE111 Observation" O +define "HIV test result Observation": + Elements."HIV test result Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today +define "HIV test result Value": + Elements."HIV test result Observation" O + where O.encounter.references(EncounterId) + or O.effective.toInterval() starts on or before Today + return O.value /* End of HIV test result B.DE111 */ /* @@ -943,15 +879,8 @@ define "HIV test result B.DE111 Observation": @activity: HIV.B7 Test for HIV using testing algorithm @description: Test result is HIV-positive */ -// TODO: Replace placeholder with relevant CQL logic -define "HIV-positive B.DE112": - exists "HIV-positive B.DE112 Condition" - or exists "HIV-positive B.DE112 Observation" -define "HIV-positive B.DE112 Condition": - Elements."HIV-positive B.DE112 Condition" C - where C.prevalenceInterval() starts on or before Today -define "HIV-positive B.DE112 Observation": - Elements."HIV-positive B.DE112 Observation" O +define "HIV-positive test result": + Elements."HIV-positive test result" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today /* End of HIV-positive B.DE112 */ @@ -961,9 +890,8 @@ define "HIV-positive B.DE112 Observation": @activity: HIV.B7 Test for HIV using testing algorithm @description: Test result is HIV-negative */ -// TODO: Replace placeholder with relevant CQL logic -define "HIV-negative B.DE113 Observation": - Elements."HIV-negative B.DE113" O +define "HIV-negative test result": + Elements."HIV-negative test result" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today /* End of HIV-negative B.DE113 */ @@ -973,15 +901,8 @@ define "HIV-negative B.DE113 Observation": @activity: HIV.B7 Test for HIV using testing algorithm @description: Test result is HIV-inconclusive */ -// TODO: Replace placeholder with relevant CQL logic -define "HIV-inconclusive": - exists "HIV-inconclusive Condition" - or exists "HIV-inconclusive Observation" -define "HIV-inconclusive Condition": - Elements."HIV-inconclusive Condition" C - where C.prevalenceInterval() starts on or before Today -define "HIV-inconclusive Observation": - Elements."HIV-inconclusive Observation" O +define "HIV-inconclusive test result": + Elements."HIV-inconclusive test result" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today /* End of HIV-inconclusive */ @@ -991,13 +912,16 @@ define "HIV-inconclusive Observation": @activity: HIV.B7 Test for HIV using testing algorithm @description: HIV status reported after applying the national HIV testing algorithm. No single HIV test can provide an HIV-positive diagnosis. */ -// TODO: Replace placeholder with relevant CQL logic -define "HIV status": - exists "HIV status Observation" -define "HIV status Observation": - Elements."HIV status Observation" O +define "HIV Status Observation": + Elements."HIV Status Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today + + // case + // when exists("HIV-positive Condition") or exists("HIV-positive Condition") then Concepts."HIV-positive - HIV.B.DE116" + // when not exists("HIV-positive Condition") and exists(Common."HIV Negative Observation") then Concepts."HIV-negative - HIV.B.DE117" + // else Concepts."Unknown - HIV.B.DE118" + // end /* End of HIV status */ /* @@ -1005,54 +929,14 @@ define "HIV status Observation": @activity: HIV.B7 Test for HIV using testing algorithm @description: Client is HIV-positive */ -// TODO: Replace placeholder with relevant CQL logic -define "HIV-positive B.DE116": - exists "HIV-positive B.DE116 Condition" - or exists "HIV-positive B.DE116 Observation" -define "HIV-positive B.DE116 Condition": - Elements."HIV-positive B.DE116 Condition" C - where C.prevalenceInterval() starts on or before Today -define "HIV-positive B.DE116 Observation": - Elements."HIV-positive B.DE116 Observation" O - where O.encounter.references(EncounterId) - or O.effective.toInterval() starts on or before Today -/* End of HIV-positive B.DE116 */ - -/* -@dataElement: HIV.B.DE117 - HIV-negative -@activity: HIV.B7 Test for HIV using testing algorithm -@description: Client is HIV-negative -*/ -// TODO: Replace placeholder with relevant CQL logic -define "HIV-negative B.DE117": - exists "HIV-negative B.DE117 Condition" - or exists "HIV-negative B.DE117 Observation" -define "HIV-negative B.DE117 Condition": - Elements."HIV-negative B.DE117 Condition" C - where C.prevalenceInterval() starts on or before Today -define "HIV-negative B.DE117 Observation": - Elements."HIV-negative B.DE117 Observation" O +define "HIV Status Postitive Observation": + Elements."HIV Status Positive Observation" O where O.encounter.references(EncounterId) or O.effective.toInterval() starts on or before Today -/* End of HIV-negative B.DE117 */ - -/* -@dataElement: HIV.B.DE118 - Unknown -@activity: HIV.B7 Test for HIV using testing algorithm -@description: Client has unknown HIV status -*/ -// TODO: Replace placeholder with relevant CQL logic -define "Unknown B.DE118": - exists "Unknown B.DE118 Condition" - or exists "Unknown B.DE118 Observation" -define "Unknown B.DE118 Condition": - Elements."Unknown B.DE118 Condition" C +define "HIV Status Positive Condition": + Elements."HIV Status Positive Condition" C where C.prevalenceInterval() starts on or before Today -define "Unknown B.DE118 Observation": - Elements."Unknown B.DE118 Observation" O - where O.encounter.references(EncounterId) - or O.effective.toInterval() starts on or before Today -/* End of Unknown B.DE118 */ +/* End of HIV-positive B.DE116 */ /* @dataElement: HIV.B.DE141 - Partner virally suppressed on ART @@ -3782,9 +3666,9 @@ define "On ART D.DE38": @activity: HIV.D8 Capture or update client history @description: The date on which the client started or restarted ART */ -// TODO: Replace placeholder with relevant CQL logic - - +define "ART start date D.DE39": + "On ART D.DE38" MS + return start of MS.effective.toInterval() /* End of ART start date D.DE39 */ /* diff --git a/input/cql/HIVIND13Logic.cql b/input/cql/HIVIND13Logic.cql index 08d46d523e2..564474a5dd5 100644 --- a/input/cql/HIVIND13Logic.cql +++ b/input/cql/HIVIND13Logic.cql @@ -56,9 +56,7 @@ include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom -include HIVElements called HE include HIVIndicatorElements called HIE - // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -80,7 +78,7 @@ define "Initial Population": */ define "Numerator": - HIC.OAMT_retained + HIE.OAMT_retained /** @@ -91,7 +89,7 @@ define "Numerator": */ define "Denominator": - HIC.OAMT_initiated + HIE.OAMT_initiated /* end Populations */ @@ -110,10 +108,10 @@ define "Geographic Region Stratifier": HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": - HIC."patientGroups" + HIE."patientGroups" define "Setting": - HIC."setting" + HIE."setting" //provider type not provided? @@ -121,5 +119,5 @@ define "Stratification": HIE."By Administrative Gender Stratifier".code + ':' + HIE."By Age Stratifier" + ':' + HIE."By Geographic Region Stratifier" -+ Combine(HIC.patientGroups, ':') -+ Combine(HIC.setting, ':') ++ Combine(HIE.patientGroups, ':') ++ Combine(HIE.setting, ':') diff --git a/input/cql/HIVIND14Logic.cql b/input/cql/HIVIND14Logic.cql index 91ad3e7277d..3f4e1b05485 100644 --- a/input/cql/HIVIND14Logic.cql +++ b/input/cql/HIVIND14Logic.cql @@ -62,9 +62,6 @@ include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom -include HIVElements called HE -include HIVIndicatorElements called HIE - // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] diff --git a/input/cql/HIVIND15Logic.cql b/input/cql/HIVIND15Logic.cql index f9375c0bdb3..a8ce23b43a9 100644 --- a/input/cql/HIVIND15Logic.cql +++ b/input/cql/HIVIND15Logic.cql @@ -52,9 +52,7 @@ include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom -include HIVElements called HE include HIVIndicatorElements called HIE - // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -76,10 +74,7 @@ define "Initial Population": */ define "Measure Population": - exists(HIC."VMMC_done" VM - where (VM.performed during "Measurement Period") - ) - + HIE."VMMC" /** * Measure Observation @@ -106,10 +101,10 @@ define "Geographic Region Stratifier": HIE."By Geographic Region Stratifier" define "Setting": - HIC."setting" + HIE."setting" define "HIV Status": - HIC."HIV Status" + HIE."HIV Status Stratifier" //provider type not provided? @@ -117,5 +112,5 @@ define "Stratification": HIE."By Administrative Gender Stratifier".code + ':' + HIE."By Age Stratifier" + ':' + HIE."By Geographic Region Stratifier" -+ Combine(HIC.setting, ':') -+ ':' + HIC."HIV Status".code \ No newline at end of file ++ Combine(HIE.setting, ':') ++ ':' + HIE."HIV Status Stratifier".code \ No newline at end of file diff --git a/input/cql/HIVIND16Logic.cql b/input/cql/HIVIND16Logic.cql index 1fda01d53ac..3e7642a4cdd 100644 --- a/input/cql/HIVIND16Logic.cql +++ b/input/cql/HIVIND16Logic.cql @@ -74,10 +74,9 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom +include HIVConceptsCustom called HCC -include HIVElements called HE include HIVIndicatorElements called HIE -include HIVConceptsCustom called HCC // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -100,7 +99,7 @@ define "Initial Population": */ define "Numerator": - exists(HIC."VMMC_adverse_event" VMAC + exists(HIE."VMMC_adverse_event" VMAC where (VMAC.severity = HCC."severe" or VMAC.severity = HCC."moderate") ) @@ -114,9 +113,7 @@ define "Numerator": */ define "Denominator": - exists(HIC."VMMC_done" VM - where (VM.performed during "Measurement Period") - ) + HIE."VMMC" /* end Populations */ @@ -137,13 +134,13 @@ define "Geographic Region Stratifier": HIE."By Geographic Region Stratifier" define "Setting": - HIC."setting" + HIE."setting" define "VMMC_adverse_event_type": - HIC."VMMC_adverse_event_type" + HIE."VMMC_adverse_event_type" define "VMMC_adverse_event_timing": - HIC.VMMC_adverse_event_timing + HIE.VMMC_adverse_event_timing //provider type not provided? @@ -153,6 +150,6 @@ define "Stratification": HIE."By Administrative Gender Stratifier".code + ':' + HIE."By Age Stratifier" + ':' + HIE."By Geographic Region Stratifier" -+ Combine(HIC.setting, ':') -+ ':' + HIC."VMMC_adverse_event_type".code -+ ':' + HIC."VMMC_adverse_event_timing".code \ No newline at end of file ++ Combine(HIE.setting, ':') ++ ':' + HIE."VMMC_adverse_event_type".code ++ ':' + HIE."VMMC_adverse_event_timing".code \ No newline at end of file diff --git a/input/cql/HIVIND18Logic.cql b/input/cql/HIVIND18Logic.cql index fb6dba43f7a..2dee0a9cbbe 100644 --- a/input/cql/HIVIND18Logic.cql +++ b/input/cql/HIVIND18Logic.cql @@ -81,16 +81,8 @@ parameter "Measurement Period" Interval default Interval[@2023-01-01, @202 context Patient define "Measure Population": - exists(HIC."HIV Positive Condition" C - where C.onset before end of "Measurement Period") - or - exists(HIC."HIV Positive Observation" O - where O.issued before end of "Measurement Period" - ) - -//define denominator? -//How to bring in data from external sources - + HIE."Has HIV-positive Status" + /* * As defined by Member States */ @@ -118,15 +110,15 @@ define "Geographic Region Stratifier": HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": - HIC."patientGroups" + HIE."patientGroups" -define "ANC Stratifier": - HIC."anc" +// define "ANC Stratifier": +// HIC."anc" define "Stratification": HIE."By Administrative Gender Stratifier".code + ':' + HIE."By Age Stratifier 2" + ':' + HIE."By Geographic Region Stratifier" -+ Combine(HIC.patientGroups, ':') -+ Combine(HIC."anc", ':') ++ Combine(HIE.patientGroups, ':') +// + Combine(HIC."anc", ':') diff --git a/input/cql/HIVIND19Logic.cql b/input/cql/HIVIND19Logic.cql index bf42eb7da20..b5458b83470 100644 --- a/input/cql/HIVIND19Logic.cql +++ b/input/cql/HIVIND19Logic.cql @@ -97,34 +97,36 @@ context Patient */ define "Initial Population": true + +define "numerator": + Count(HIE."Non-Self HIV test date and results returned within measurement period for HIV-positive result") +define "denominator": + Count(HIE."Non-Self HIV test with date and results returned in measurement period") -define "numerator": - exists(HIC."HIV Positive Condition" C - where C.onset during "Measurement Period") - or - exists(HIC."HIV Positive Observation" O - where (O.issued before end of "Measurement Period" - and O.issued after start of "Measurement Period") - ) - -define "numeratorExclusion": - exists(HIC."HIV Positive Observation - HIV Self Test" O - where (O.issued before end of "Measurement Period" - and O.issued after start of "Measurement Period") - ) +// exists(HE."HIV Positive Condition" C +// where C.onset during "Measurement Period") +// or +// exists(HIE."HIV Positive Observation" O +// where (O.issued before end of "Measurement Period" +// and O.issued after start of "Measurement Period") +// ) + +// define "numeratorExclusion": +// exists(HIC."HIV Positive Observation - HIV Self Test" O +// where (O.issued before end of "Measurement Period" +// and O.issued after start of "Measurement Period") +// ) + +// define "denominator": -define "denominator": - exists(HIC."HIV test resulted" T - where T.issued before end of "Measurement Period" - and T.issued after start of "Measurement Period") -define "denominatorExclusion": - exists(HIC."HIV Positive Observation - HIV Self Test" O - where (O.issued before end of "Measurement Period" - and O.issued after start of "Measurement Period") - ) +// define "denominatorExclusion": +// exists(HIC."HIV Positive Observation - HIV Self Test" O +// where (O.issued before end of "Measurement Period" +// and O.issued after start of "Measurement Period") +// ) /* * Disaggregators @@ -140,18 +142,18 @@ define "Geographic Region Stratifier": HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": - HIC."patientGroups" + HIE."patientGroups" define "Setting": - HIC."setting" + HIE."setting" -define "TB Stratifier": - HIC."tb" +// define "TB Stratifier": +// HIC."tb" define "Stratification": HIE."By Administrative Gender Stratifier".code + ':' + HIE."By Age Stratifier" + ':' + HIE."By Geographic Region Stratifier" -+ Combine(HIC.patientGroups, ':') -+ Combine(HIC.setting, ':') -+ Combine(HIC.tb, ':') ++ Combine(HIE.patientGroups, ':') ++ Combine(HIE.setting, ':') +//+ Combine(HIC.tb, ':') diff --git a/input/cql/HIVIND20Logic.cql b/input/cql/HIVIND20Logic.cql index 8027f48081d..a01b859ccd2 100644 --- a/input/cql/HIVIND20Logic.cql +++ b/input/cql/HIVIND20Logic.cql @@ -88,7 +88,6 @@ include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom -include HIVElements called HE include HIVIndicatorElements called HIE // Indicator Definition @@ -111,19 +110,12 @@ define "Initial Population": //Does this also filter out self HIV tests //right now using HIVIND19 definition which does define "numerator": - exists(HIC."HIV Positive Condition" C - where C.onset during "Measurement Period") + exists(HIE."HIV Status Positive Condition") or - exists(HIC."HIV Positive Observation" O - where (O.issued before end of "Measurement Period" - and O.issued after start of "Measurement Period") - ) + exists(HIE."HIV Status Positive Observation") define "denominator": - exists(HIC."HIV test resulted" T - where T.issued before end of "Measurement Period" - and T.issued after start of "Measurement Period") - + exists(HIE."HIV test results returned in measurement period") /* * Disaggregators @@ -139,18 +131,18 @@ define "Geographic Region Stratifier": HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": - HIC."patientGroups" + HIE."patientGroups" define "Setting": - HIC."setting" + HIE."setting" -define "TB Stratifier": - HIC."tb" +// define "TB Stratifier": +// HIC."tb" define "Stratification": HIE."By Administrative Gender Stratifier".code + ':' + HIE."By Age Stratifier" + ':' + HIE."By Geographic Region Stratifier" -+ Combine(HIC.patientGroups, ':') -+ Combine(HIC.setting, ':') -+ Combine(HIC.tb, ':') \ No newline at end of file ++ Combine(HIE.patientGroups, ':') ++ Combine(HIE.setting, ':') +//+ Combine(HIC.tb, ':') \ No newline at end of file diff --git a/input/cql/HIVIND21Logic.cql b/input/cql/HIVIND21Logic.cql index a16c1ef7565..0ce715d8ca0 100644 --- a/input/cql/HIVIND21Logic.cql +++ b/input/cql/HIVIND21Logic.cql @@ -80,7 +80,6 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom - include HIVElements called HE include HIVIndicatorElements called HIE @@ -96,14 +95,9 @@ define "Initial Population": define "numerator": - (exists(HIC."HIV Positive Condition" C - where C.onset during "Measurement Period") + exists(HIE."HIV Status Positive Condition" C) or - exists(HIC."HIV Positive Observation" O - //during doesn't work - where (O.issued before end of "Measurement Period" and - O.issued after start of "Measurement Period") - )) + exists(HIE."HIV Status Positive Observation" O) and exists(HE."On ART H.DE47" H where H.effective starts before end of "Measurement Period" and (H.effective ends after start of "Measurement Period" @@ -111,13 +105,9 @@ define "numerator": ) define "denominator": - (exists(HIC."HIV Positive Condition" C - where C.onset before end of "Measurement Period") + exists(HE."HIV Status Positive Condition") or - exists(HIC."HIV Positive Observation" O - where (O.issued before end of "Measurement Period" and - O.issued after start of "Measurement Period") - )) + exists(HIE."HIV Status Positive Observation" O) /* * Disaggregators @@ -133,13 +123,13 @@ define "Geographic Region Stratifier": HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": - HIC."patientGroups" + HIE."patientGroups" -define "TB Stratifier": - HIC."tb" +// define "TB Stratifier": +// HIC."tb" define "Time to start ART": - HIC."Time to start ART" + HE."Time to start ART" define "Stratification": HIE."By Administrative Gender Stratifier".code @@ -147,5 +137,5 @@ define "Stratification": //+ ':' + HIC."Time to start ART".code + ':' + HIE."By Age Stratifier" + ':' + HIE."By Geographic Region Stratifier" -+ Combine(HIC.patientGroups, ':') -+ Combine(HIC.tb, ':') ++ Combine(HIE.patientGroups, ':') +//+ Combine(HIC.tb, ':') diff --git a/input/cql/HIVIND22Logic.cql b/input/cql/HIVIND22Logic.cql index cfcba2d7e1f..ee85e72c5f8 100644 --- a/input/cql/HIVIND22Logic.cql +++ b/input/cql/HIVIND22Logic.cql @@ -80,9 +80,8 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom - -include HIVElements called HE include HIVIndicatorElements called HIE +include HIVElements called HE // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -105,18 +104,18 @@ define "Initial Population": */ define "Measure Population": - exists(HIC."Partner or contact of an index case" IC - with HIC."Drug-injecting partner" DIP + exists(HE."Partner or contact of an index case" IC + with HE."Drug-injecting partner" DIP such that IC.hasMember.references(DIP) - with HIC."HIV test resulted" HIV + with HIE."HIV test results returned in measurement period" HIV such that IC.hasMember.references(HIV) and HIV.issued after start of "Measurement Period" and HIV.issued before end of "Measurement Period") or - exists(HIC."Partner or contact of an index case" IC - with HIC."Sexual partner" SP + exists(HE."Partner or contact of an index case" IC + with HE."Sexual partner" SP such that IC.hasMember.references(SP) - with HIC."HIV test resulted" HIV + with HIE."HIV test results returned in measurement period" HIV such that IC.hasMember.references(HIV) and HIV.issued after start of "Measurement Period" and HIV.issued before end of "Measurement Period") @@ -147,14 +146,14 @@ define "Geographic Region Stratifier": HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": - HIC."patientGroups" + HIE."patientGroups" define "HIV status of partner or contact": - HIC."HIV status of partner or contact" + HIE."HIV status of partner or contact" define "Stratification": HIE."By Administrative Gender Stratifier".code - + ':' + HIC."HIV status of partner or contact".code + + ':' + HIE."HIV status of partner or contact".code + ':' + HIE."By Age Stratifier 2" + ':' + HIE."By Geographic Region Stratifier" -+ Combine(HIC.patientGroups, ':') \ No newline at end of file ++ Combine(HIE.patientGroups, ':') diff --git a/input/cql/HIVIND24Logic.cql b/input/cql/HIVIND24Logic.cql index a6cdc501165..4be77da1dcf 100644 --- a/input/cql/HIVIND24Logic.cql +++ b/input/cql/HIVIND24Logic.cql @@ -85,7 +85,6 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom - include HIVElements called HE include HIVIndicatorElements called HIE @@ -113,25 +112,25 @@ define "Initial Population": define "Numerator": (exists(HE."PrEP service" prep - where prep.effective.toInterval() starts before (start of HIC."First Negative Test within Measurement Period".effective.toInterval() + "Intervention Interval") - and prep.effective.toInterval() starts after (start of HIC."First Negative Test within Measurement Period".effective.toInterval()) + where prep.effective.toInterval() starts before (start of HIE."First Negative Test within Measurement Period".effective.toInterval() + "Intervention Interval") + and prep.effective.toInterval() starts after (start of HIE."First Negative Test within Measurement Period".effective.toInterval()) ) or - exists(HE."OAMT" t where t starts before (start of HIC."First Negative Test within Measurement Period".effective.toInterval() + "Intervention Interval") - and t starts after (start of HIC."First Negative Test within Measurement Period".effective.toInterval())) + exists(HE."OAMT" t where t starts before (start of HIE."First Negative Test within Measurement Period".effective.toInterval() + "Intervention Interval") + and t starts after (start of HIE."First Negative Test within Measurement Period".effective.toInterval())) or - exists(HE."NSP" DUS where DUS.timing.toInterval() starts before (start of HIC."First Negative Test within Measurement Period".effective.toInterval() + "Intervention Interval") - and DUS.timing.toInterval() starts after (start of HIC."First Negative Test within Measurement Period".effective.toInterval())) + exists(HE."NSP" DUS where DUS.timing.toInterval() starts before (start of HIE."First Negative Test within Measurement Period".effective.toInterval() + "Intervention Interval") + and DUS.timing.toInterval() starts after (start of HIE."First Negative Test within Measurement Period".effective.toInterval())) or - exists(HE."STI services" STI where STI.performed.toInterval() starts before (start of HIC."First Negative Test within Measurement Period".effective.toInterval() + "Intervention Interval") - and STI.performed.toInterval() starts after (start of HIC."First Negative Test within Measurement Period".effective.toInterval())) + exists(HE."STI services" STI where STI.performed.toInterval() starts before (start of HIE."First Negative Test within Measurement Period".effective.toInterval() + "Intervention Interval") + and STI.performed.toInterval() starts after (start of HIE."First Negative Test within Measurement Period".effective.toInterval())) or - exists(HE."VMMC" V where V.performed.toInterval() starts before (start of HIC."First Negative Test within Measurement Period".effective.toInterval() + "Intervention Interval") - and V.performed.toInterval() starts after (start of HIC."First Negative Test within Measurement Period".effective.toInterval())) + exists(HE."VMMC" V where V.performed.toInterval() starts before (start of HIE."First Negative Test within Measurement Period".effective.toInterval() + "Intervention Interval") + and V.performed.toInterval() starts after (start of HIE."First Negative Test within Measurement Period".effective.toInterval())) or exists(HE."Other PRV.DE8" O - where O.effective.toInterval() starts before (start of HIC."First Negative Test within Measurement Period".effective.toInterval() + "Intervention Interval") - and O.effective.toInterval() starts after (start of HIC."First Negative Test within Measurement Period".effective.toInterval()))) + where O.effective.toInterval() starts before (start of HIE."First Negative Test within Measurement Period".effective.toInterval() + "Intervention Interval") + and O.effective.toInterval() starts after (start of HIE."First Negative Test within Measurement Period".effective.toInterval()))) and HIE."At elevated risk for HIV acquisition B.DE225" @@ -145,7 +144,7 @@ define "Numerator": */ define "Denominator": - exists(HIC."Negative Tests within Measurement Period") + exists(HIE."Negative Tests within Measurement Period") and HIE."At elevated risk for HIV acquisition B.DE225" @@ -166,14 +165,14 @@ define "Geographic Region Stratifier": HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": - HIC."patientGroups" + HIE."patientGroups" define "HIV prevention intervention": - HIC."HIV prevention intervention" + HIE."HIV prevention intervention" define "Stratification": HIE."By Administrative Gender Stratifier".code + ':' + HIE."By Age Stratifier 2" + ':' + HIE."By Geographic Region Stratifier" -+ Combine(HIC.patientGroups, ':') -+ Combine(HIC."HIV prevention intervention", ':') \ No newline at end of file ++ Combine(HIE.patientGroups, ':') ++ Combine(HIE."HIV prevention intervention", ':') \ No newline at end of file diff --git a/input/cql/HIVIND25Logic.cql b/input/cql/HIVIND25Logic.cql index dae14bc439f..28028185edb 100644 --- a/input/cql/HIVIND25Logic.cql +++ b/input/cql/HIVIND25Logic.cql @@ -75,13 +75,12 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom - +include HIVConfig called Config include HIVElements called HE include HIVIndicatorElements called HIE // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] -parameter "Testing Interval" System.Quantity default 3 months context Patient /* Populations */ @@ -100,11 +99,8 @@ define "Initial Population": * Calculation: COUNT of clients with "At elevated risk for HIV acquisition"=True AND with a second "HIV test date" within fixed period after "HIV test date" in the reporting period with "HIV test result"='HIV-negative' */ - - - define "Numerator": - exists(HIC."Negative Tests after First Negative Test") + exists(HIE."Negative Tests after First Negative Test") /** @@ -115,7 +111,7 @@ define "Numerator": */ define "Denominator": - exists(HIC."Negative Tests within Measurement Period") + exists(HIE."Negative Tests within Measurement Period") /* end Populations */ @@ -135,11 +131,11 @@ define "Geographic Region Stratifier": HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": - HIC."patientGroups" + HIE."patientGroups" define "Stratification": HIE."By Administrative Gender Stratifier".code - + ':' + HIC."HIV status of partner or contact".code + + ':' + HIE."HIV status of partner or contact".code + ':' + HIE."By Age Stratifier 2" + ':' + HIE."By Geographic Region Stratifier" -+ Combine(HIC.patientGroups, ':') \ No newline at end of file ++ Combine(HIE.patientGroups, ':') \ No newline at end of file diff --git a/input/cql/HIVIND27Logic.cql b/input/cql/HIVIND27Logic.cql index 9f377ff47ec..af3889313ba 100644 --- a/input/cql/HIVIND27Logic.cql +++ b/input/cql/HIVIND27Logic.cql @@ -69,7 +69,6 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom - include HIVElements called HE include HIVIndicatorElements called HIE @@ -84,11 +83,11 @@ context Patient */ define "Measure Population": - HIE."HIV-positive B.DE116" + HIE."Has HIV-positive Status" and HIE."On ART H.DE47" - and not HIE."Death documented" - and not HIE."Transferred out" - and not HIE."Lost to follow-up" + and not HIE."Has death documented" + and not HIE."Has transferred out" + and not HIE."Is lost to follow-up" /* * As defined by Member States @@ -117,10 +116,10 @@ define "Geographic Region Stratifier": HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": - HIC."patientGroups" + HIE."patientGroups" define "Stratification": HIE."By Administrative Gender Stratifier".code + ':' + HIE."By Age Stratifier" + ':' + HIE."By Geographic Region Stratifier" -+ Combine(HIC.patientGroups, ':') \ No newline at end of file ++ Combine(HIE.patientGroups, ':') \ No newline at end of file diff --git a/input/cql/HIVIND28Logic.cql b/input/cql/HIVIND28Logic.cql index aea5462a456..ba9a1faa215 100644 --- a/input/cql/HIVIND28Logic.cql +++ b/input/cql/HIVIND28Logic.cql @@ -79,7 +79,6 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom - include HIVElements called HE include HIVIndicatorElements called HIE @@ -97,19 +96,19 @@ define "Initial Population": define "numerator": //MINUS | COUNT of clients with "HIV status"='HIV-positive' AND "On ART"=True on the reporting period end date ( - HIE."Death documented" - or HIE."Transferred out" - or HIE."Lost to follow-up" + HIE."Has death documented" + or HIE."Has transferred out" + or HIE."Is lost to follow-up" ) and ((( //saying needs to not be counted this measurement period but should have counted this period or last period - HIE."HIV-positive B.DE116" + HIE."Has HIV-positive Status" and HIE."On ART H.DE47" ) ) or ( //Accounts for end of last period - exists(HE."HIV-positive B.DE116" HIV where HIV starts before (end of "Measurement Period" - duration in days of "Measurement Period")) + HIE."Has HIV-positive Status at last measurment period" and exists(HE."On ART H.DE47" ART where ART.effective starts before (end of "Measurement Period" - duration in days of "Measurement Period") and ART.effective ends after (start of "Measurement Period" - duration in days of "Measurement Period") @@ -122,13 +121,13 @@ define "numerator": define "denominator": ((( //saying needs to not be counted this measurement period but should have counted this period or last period - HIE."HIV-positive B.DE116" + HIE."Has HIV-positive Status" and HIE."On ART H.DE47" ) ) or ( //Accounts for end of last period - exists(HE."HIV-positive B.DE116" HIV where HIV starts before (end of "Measurement Period" - duration in days of "Measurement Period")) + HIE."Has HIV-positive Status at last measurment period" and exists(HE."On ART H.DE47" ART where ART.effective starts before (end of "Measurement Period" - duration in days of "Measurement Period") and ART.effective ends after (start of "Measurement Period" - duration in days of "Measurement Period") @@ -152,14 +151,14 @@ define "Geographic Region Stratifier": HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": - HIC."patientGroups" + HIE."patientGroups" define "Treatment outcome category Stratifier": - HIC."Treatment outcome category" + HIE."Treatment outcome category" define "Stratification": HIE."By Administrative Gender Stratifier".code + ':' + HIE."By Age Stratifier" + ':' + HIE."By Geographic Region Stratifier" -+ Combine(HIC.patientGroups, ':') -+ Combine(HIC."Treatment outcome category", ':') \ No newline at end of file ++ Combine(HIE.patientGroups, ':') ++ Combine(HIE."Treatment outcome category", ':') \ No newline at end of file diff --git a/input/cql/HIVIND29Logic.cql b/input/cql/HIVIND29Logic.cql index b513d031255..3c71a6e09f2 100644 --- a/input/cql/HIVIND29Logic.cql +++ b/input/cql/HIVIND29Logic.cql @@ -87,7 +87,6 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom - include HIVElements called HE include HIVIndicatorElements called HIE @@ -112,16 +111,16 @@ define "Initial Population": */ define "Numerator": - HIE."HIV-positive B.DE116" + HIE."Has HIV-positive Status" and HIE."On ART H.DE47" and - (months between (end of "Measurement Period") and (date from start of HIC."First On ART".effective.toInterval()) > 6 months) + (months between (end of "Measurement Period") and (date from start of HE."First On ART".effective.toInterval()) > 6 months) and exists( HIE."Viral load test result D.DE387" VL - with HIC."routine viral load sample collection" P + with HE."routine viral load sample collection" P such that VL.partOf.references(P) and P.performed.toInterval() during "Measurement Period" - where VL.value < 1000 // 'copies/ml' + where VL.value < 1000 ) @@ -133,14 +132,14 @@ define "Numerator": */ define "Denominator": - HIE."HIV-positive B.DE116" + HIE."Has HIV-positive Status" and HIE."On ART H.DE47" and - (months between (end of "Measurement Period") and (date from start of HIC."First On ART".effective.toInterval()) > 6 months) + (months between (end of "Measurement Period") and (date from start of HE."First On ART".effective.toInterval()) > 6 months) and exists( HIE."Viral load test result D.DE387" VL - with HIC."routine viral load sample collection" P + with HE."routine viral load sample collection" P such that VL.partOf.references(P) and P.performed.toInterval() during "Measurement Period" ) @@ -161,11 +160,11 @@ define "Geographic Region Stratifier": HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": - HIC."patientGroups" + HIE."patientGroups" define "Stratification": HIE."By Administrative Gender Stratifier".code + ':' + HIE."By Age Stratifier" + ':' + HIE."By Geographic Region Stratifier" -+ Combine(HIC.patientGroups, ':') \ No newline at end of file ++ Combine(HIE.patientGroups, ':') \ No newline at end of file diff --git a/input/cql/HIVIND2Logic.cql b/input/cql/HIVIND2Logic.cql index 1a1a70f5165..6970f0fe22c 100644 --- a/input/cql/HIVIND2Logic.cql +++ b/input/cql/HIVIND2Logic.cql @@ -98,11 +98,7 @@ parameter "Measurement Period" Interval default Interval[@2023-01-01, @202 context Patient define "Measure Population": - exists(HIC."HIV PREP Active" H - where H.effective starts before end of "Measurement Period" - and (H.effective ends after start of "Measurement Period" - or end of H.effective ~ null) - ) + HIE."HIV PREP Active" /* * As defined by Member States @@ -132,19 +128,19 @@ define "Geographic Region Stratifier": HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": - HIC."patientGroups" + HIE."patientGroups" define "Setting": - HIC."setting" + HIE."setting" define "prep product": - HIC."prep_product" + HIE."prep_product" define "prep_experience": - HIC."prep_experience" + HIE."prep_experience" define "prep_dosing": - HIC."prep_dosing" + HIE."prep_dosing" // Provider type concepts are not found in DD @@ -152,8 +148,8 @@ define "Stratification": HIE."By Administrative Gender Stratifier".code + ':' + HIE."By Age Stratifier" + ':' + HIE."By Geographic Region Stratifier" -+ Combine(HIC.patientGroups, ':') -+ Combine(HIC.setting, ':') -+ Combine(HIC.prep_product, ':') -+ Combine(HIC.prep_experience, ':') -+ Combine(HIC.prep_dosing, ':') \ No newline at end of file ++ Combine(HIE.patientGroups, ':') ++ Combine(HIE.setting, ':') ++ Combine(HIE.prep_product, ':') ++ Combine(HIE.prep_experience, ':') ++ Combine(HIE.prep_dosing, ':') \ No newline at end of file diff --git a/input/cql/HIVIND30Logic.cql b/input/cql/HIVIND30Logic.cql index 18ba8397d0c..f797a3c5003 100644 --- a/input/cql/HIVIND30Logic.cql +++ b/input/cql/HIVIND30Logic.cql @@ -75,7 +75,6 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom - include HIVElements called HE include HIVIndicatorElements called HIE @@ -85,8 +84,8 @@ parameter "Measurement Period" Interval default Interval[@2023-01-01, @202 context Patient define "Measure Population": - HIE."HIV-positive B.DE116" - and (date from start of HIC."First On ART".effective.toInterval() during "Measurement Period") + HIE."Has HIV-positive Status" + and (date from start of HE."First On ART".effective.toInterval() during "Measurement Period") /* * As defined by Member States @@ -116,10 +115,10 @@ define "Geographic Region Stratifier": HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": - HIC."patientGroups" + HIE."patientGroups" define "Stratification": HIE."By Administrative Gender Stratifier".code + ':' + HIE."By Age Stratifier" + ':' + HIE."By Geographic Region Stratifier" -+ Combine(HIC.patientGroups, ':') \ No newline at end of file ++ Combine(HIE.patientGroups, ':') \ No newline at end of file diff --git a/input/cql/HIVIND31Logic.cql b/input/cql/HIVIND31Logic.cql index 25d6aecff51..6481eb776da 100644 --- a/input/cql/HIVIND31Logic.cql +++ b/input/cql/HIVIND31Logic.cql @@ -79,7 +79,6 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom - include HIVElements called HE include HIVIndicatorElements called HIE @@ -104,11 +103,11 @@ define "Initial Population": */ define "Numerator": - HIE."HIV-positive B.DE116" - and (date from start of HIC."First On ART".effective.toInterval() during "Measurement Period") + HIE."Has HIV-positive Status" + and (date from start of HE."First On ART".effective.toInterval() during "Measurement Period") and exists(HE."Baseline CD4 count SRV.DE3" O where O.effective.toInterval() during "Measurement Period" - and O.value < 200) //'cells/mm^3') + and O.value < 200) /** @@ -119,8 +118,8 @@ define "Numerator": */ define "Denominator": - HIE."HIV-positive B.DE116" - and (date from start of HIC."First On ART".effective.toInterval() during "Measurement Period") + HIE."Has HIV-positive Status" + and (date from start of HE."First On ART".effective.toInterval() during "Measurement Period") and exists(HE."Baseline CD4 count SRV.DE3" O where O.effective.toInterval() during "Measurement Period") @@ -142,10 +141,10 @@ define "Geographic Region Stratifier": HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": - HIC."patientGroups" + HIE."patientGroups" define "Stratification": HIE."By Administrative Gender Stratifier".code + ':' + HIE."By Age Stratifier" + ':' + HIE."By Geographic Region Stratifier" -+ Combine(HIC.patientGroups, ':') \ No newline at end of file ++ Combine(HIE.patientGroups, ':') \ No newline at end of file diff --git a/input/cql/HIVIND32Logic.cql b/input/cql/HIVIND32Logic.cql index 6099b7df427..95a0701ad1a 100644 --- a/input/cql/HIVIND32Logic.cql +++ b/input/cql/HIVIND32Logic.cql @@ -84,7 +84,6 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom - include HIVElements called HE include HIVIndicatorElements called HIE @@ -109,14 +108,14 @@ define "Initial Population": */ define "Numerator": - HIE."HIV-positive B.DE116" + HIE."Has HIV-positive Status" and HIE."On ART H.DE47" and - (months between (end of "Measurement Period") and (date from start of HIC."First On ART".effective.toInterval()) > 6 months) + (months between (end of "Measurement Period") and (date from start of HE."First On ART".effective.toInterval()) > 6 months) and exists( HE."Date viral load test results received by client D.DE193" VL - with HIC."routine viral load sample collection" P + with HE."routine viral load sample collection" P such that VL.partOf.references(P) where VL.issued.toInterval() during "Measurement Period" ) @@ -128,9 +127,9 @@ define "Numerator": */ define "Numerator Exclusions": - HIE."Death documented" - and HIE."Transferred out" - and HIE."Lost to follow-up" + HIE."Has death documented" + or HIE."Has transferred out" + or HIE."Is lost to follow-up" /** * Denominator @@ -140,10 +139,10 @@ define "Numerator Exclusions": */ define "Denominator": - HIE."HIV-positive B.DE116" + HIE."Has HIV-positive Status" and HIE."On ART H.DE47" and - (months between (end of "Measurement Period") and (date from start of HIC."First On ART".effective.toInterval()) > 6 months) + (months between (end of "Measurement Period") and (date from start of HE."First On ART".effective.toInterval()) > 6 months) /** * Denominator Exclusions @@ -152,9 +151,9 @@ define "Denominator": */ define "Denominator Exclusions": - HIE."Death documented" - and HIE."Transferred out" - and HIE."Lost to follow-up" + HIE."Has death documented" + and HIE."Has transferred out" + and HIE."Is lost to follow-up" /* end Populations */ @@ -172,10 +171,10 @@ define "Geographic Region Stratifier": HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": - HIC."patientGroups" + HIE."patientGroups" define "Stratification": HIE."By Administrative Gender Stratifier".code + ':' + HIE."By Age Stratifier" + ':' + HIE."By Geographic Region Stratifier" -+ Combine(HIC.patientGroups, ':') ++ Combine(HIE.patientGroups, ':') diff --git a/input/cql/HIVIND33Logic.cql b/input/cql/HIVIND33Logic.cql index e0977b342a5..17bd436413b 100644 --- a/input/cql/HIVIND33Logic.cql +++ b/input/cql/HIVIND33Logic.cql @@ -78,7 +78,6 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom - include HIVElements called HE include HIVIndicatorElements called HIE @@ -103,10 +102,10 @@ define "Initial Population": */ define "Numerator": - HIE."HIV-positive B.DE116" + HIE."Has HIV-positive Status" and HIE."On ART H.DE47" - and (date from start of HIC."First On ART".effective.toInterval() during "Measurement Period") - and (months between (start of First(HIC."Viral load tests received after ART intitiation").issued.toInterval()) and (date from start of HIC."First On ART".effective.toInterval()) < 6 months) + and (date from start of HE."First On ART".effective.toInterval() during "Measurement Period") + and (months between (start of First(HE."Viral load tests received after ART intitiation").issued.toInterval()) and (date from start of HE."First On ART".effective.toInterval()) < 6 months) /** @@ -117,9 +116,9 @@ define "Numerator": */ define "Denominator": - HIE."HIV-positive B.DE116" + HIE."Has HIV-positive Status" and HIE."On ART H.DE47" - and (date from start of HIC."First On ART".effective.toInterval() during "Measurement Period") + and (date from start of HE."First On ART".effective.toInterval() during "Measurement Period") /* end Populations */ @@ -138,10 +137,10 @@ define "Geographic Region Stratifier": HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": - HIC."patientGroups" + HIE."patientGroups" define "Stratification": HIE."By Administrative Gender Stratifier".code + ':' + HIE."By Age Stratifier" + ':' + HIE."By Geographic Region Stratifier" -+ Combine(HIC.patientGroups, ':') \ No newline at end of file ++ Combine(HIE.patientGroups, ':') \ No newline at end of file diff --git a/input/cql/HIVIND34Logic.cql b/input/cql/HIVIND34Logic.cql index cd3d157a211..aa99d059c8e 100644 --- a/input/cql/HIVIND34Logic.cql +++ b/input/cql/HIVIND34Logic.cql @@ -81,7 +81,6 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom - include HIVElements called HE include HIVIndicatorElements called HIE @@ -106,14 +105,14 @@ define "Initial Population": */ define "Numerator": - HIE."HIV-positive B.DE116" + HIE."Has HIV-positive Status" and HIE."On ART H.DE47" and - exists(HIC."Elevated Viral load test during Measurement Period") + exists(HIE."Elevated Viral load test during Measurement Period") and exists( - HIC."viral load sample collection" VL - where (months between (start of First(HIC."Elevated Viral load test during Measurement Period").issued.toInterval()) and (date from start of VL.performed.toInterval() ) < 3 months) + HE."viral load sample collection" VL + where (months between (start of First(HIE."Elevated Viral load test during Measurement Period").issued.toInterval()) and (date from start of VL.performed.toInterval() ) < 3 months) ) @@ -128,10 +127,10 @@ define "Numerator": */ define "Denominator": - HIE."HIV-positive B.DE116" + HIE."Has HIV-positive Status" and HIE."On ART H.DE47" and - exists(HIC."Elevated Viral load test during Measurement Period") + exists(HIE."Elevated Viral load test during Measurement Period") /* end Populations */ @@ -150,13 +149,13 @@ define "Geographic Region Stratifier": HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": - HIC."patientGroups" + HIE."patientGroups" define "Stratification": HIE."By Administrative Gender Stratifier".code + ':' + HIE."By Age Stratifier" + ':' + HIE."By Geographic Region Stratifier" -+ Combine(HIC.patientGroups, ':') ++ Combine(HIE.patientGroups, ':') //Need to add // * • ART regimen diff --git a/input/cql/HIVIND35Logic.cql b/input/cql/HIVIND35Logic.cql index b08a8a8ece5..9fcf89aa589 100644 --- a/input/cql/HIVIND35Logic.cql +++ b/input/cql/HIVIND35Logic.cql @@ -124,7 +124,6 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom - include HIVElements called HE include HIVIndicatorElements called HIE @@ -149,10 +148,10 @@ define "Initial Population": */ define "Numerator": - (HIE."HIV-positive B.DE116" + (HIE."Has HIV-positive Status" and HIE."Toxicity/side effects H.DE75") and (( - HIE."HIV-positive B.DE116" + HIE."Has HIV-positive Status" and HIE."On ART H.DE47" and (exists(HE."New regimen after switch to second-line regimen" R @@ -172,7 +171,7 @@ define "Numerator": ) or ( - HIE."HIV-positive B.DE116" + HIE."Has HIV-positive Status" and HIE."On ART H.DE47" and (exists(HE."New regimen after substitution within second-line regimen" R @@ -201,7 +200,7 @@ define "Numerator": */ define "Denominator": - HIE."HIV-positive B.DE116" + HIE."Has HIV-positive Status" and HIE."On ART H.DE47" @@ -222,13 +221,13 @@ define "Geographic Region Stratifier": HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": - HIC."patientGroups" + HIE."patientGroups" define "Stratification": HIE."By Administrative Gender Stratifier".code + ':' + HIE."By Age Stratifier" + ':' + HIE."By Geographic Region Stratifier" -+ Combine(HIC.patientGroups, ':') ++ Combine(HIE.patientGroups, ':') /* need to add diff --git a/input/cql/HIVIND37Logic.cql b/input/cql/HIVIND37Logic.cql index fc5f5401c94..95354a7c29a 100644 --- a/input/cql/HIVIND37Logic.cql +++ b/input/cql/HIVIND37Logic.cql @@ -68,8 +68,9 @@ include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom -include HIVElements called HE + include HIVIndicatorElements called HIE +include HIVElements called HE // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -95,12 +96,12 @@ define "First Health facility": (First(HE."Health facility")) define "Numerator": - HIE."HIV-positive B.DE116" + HIE."Has HIV-positive Status" and HIE."On ART D.DE38" and HIE."Health facility" and exists( HIE."Viral load test result D.DE387" VL - with HIC."viral load sample collection" P + with HE."viral load sample collection" P such that VL.partOf.references(P) and start of P.performed.toInterval() = start of "First Health facility".performed.toInterval() where VL.value < 1000 ) @@ -114,12 +115,12 @@ define "Numerator": */ define "Denominator": - HIE."HIV-positive B.DE116" + HIE."Has HIV-positive Status" and HIE."On ART D.DE38" and HIE."Health facility" and exists( HIE."Viral load test result D.DE387" VL - with HIC."viral load sample collection" P + with HE."viral load sample collection" P such that VL.partOf.references(P) and start of P.performed.toInterval() = start of "First Health facility".performed.toInterval() ) @@ -140,4 +141,4 @@ define "Stratification": HIE."By Age Stratifier 3" + ':' + HIE."By Geographic Region Stratifier" - // need to add  Timing of ART initiation (during pregnancy, on ART at first ANC visit) \ No newline at end of file + // need to add Timing of ART initiation (during pregnancy, on ART at first ANC visit) \ No newline at end of file diff --git a/input/cql/HIVIND38Logic.cql b/input/cql/HIVIND38Logic.cql index 953f05cef27..bc4ca9c233e 100644 --- a/input/cql/HIVIND38Logic.cql +++ b/input/cql/HIVIND38Logic.cql @@ -93,7 +93,7 @@ define "Initial Population": define "Numerator": - exists(HE."HIV-exposed infant or child E.DE112" O + exists(HIE."HIV-exposed infant or child E.DE112" O with [Patient] P such that O.subject.references(P) and P.birthDate during "Measurement Period") and exists( @@ -102,8 +102,6 @@ define "Numerator": such that O.subject.references(Pt) and months between start of O.effective.toInterval() and FHIRHelpers.ToDate(Pt.birthDate) < 2 months) - - /** * Denominator - THiS SHOULDN'T BE PROPORTION diff --git a/input/cql/HIVIND3Logic.cql b/input/cql/HIVIND3Logic.cql index 09007f6a4e9..3b229eb3c33 100644 --- a/input/cql/HIVIND3Logic.cql +++ b/input/cql/HIVIND3Logic.cql @@ -97,10 +97,10 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom - include HIVElements called HE include HIVIndicatorElements called HIE + // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -111,22 +111,15 @@ context Patient define "Initial Population": true +/* Numerator Calculation: Count of clients with "Date medications prescribed" within reporting period AND "Medications prescribed"='PrEP for HIV prevention'*/ define "numerator": - exists(HIC."HIV PREP Active" H - where H.effective starts before end of "Measurement Period" - and (H.effective ends after start of "Measurement Period" - or end of H.effective ~ null) - ) + HIE."HIV PREP Active" +/* * Denominator Calculation: Programme/service provider level: | COUNT of clients with "HIV test date" within reporting period AND "HIV test result"='HIV-negative' AND "At elevated risk for HIV acquisition"=True † | | Population level: *Estimate of the number of people who would benefit from PrEP */ define "denominator": - exists(HIC."HIV Negative Observation" O - where (O.issued before end of "Measurement Period" - and O.issued after start of "Measurement Period") - ) and - exists(HIC."Client is at elevated risk for HIV acquisition" O - where O.issued before end of "Measurement Period" - and O.issued after start of "Measurement Period") + exists(HIE."Negative HIV test within measurement period") and + HIE."At elevated risk for HIV acquisition B.DE225" /* @@ -143,19 +136,19 @@ define "Geographic Region Stratifier": HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": - HIC."patientGroups" + HIE."patientGroups" define "Setting": - HIC."setting" + HIE."setting" define "prep product": - HIC."prep_product" + HIE."prep_product" define "prep_experience": - HIC."prep_experience" + HIE."prep_experience" define "prep_dosing": - HIC."prep_dosing" + HIE."prep_dosing" // Provider type concepts are not found in DD @@ -163,8 +156,8 @@ define "Stratification": HIE."By Administrative Gender Stratifier".code + ':' + HIE."By Age Stratifier 3" + ':' + HIE."By Geographic Region Stratifier" -+ Combine(HIC.patientGroups, ':') -+ Combine(HIC.setting, ':') -+ Combine(HIC.prep_product, ':') -+ Combine(HIC.prep_experience, ':') -+ Combine(HIC.prep_dosing, ':') \ No newline at end of file ++ Combine(HIE.patientGroups, ':') ++ Combine(HIE.setting, ':') ++ Combine(HIE.prep_product, ':') ++ Combine(HIE.prep_experience, ':') ++ Combine(HIE.prep_dosing, ':') \ No newline at end of file diff --git a/input/cql/HIVIND43Logic.cql b/input/cql/HIVIND43Logic.cql index 2725b56d45b..2cb23226e56 100644 --- a/input/cql/HIVIND43Logic.cql +++ b/input/cql/HIVIND43Logic.cql @@ -64,6 +64,7 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' + include WHOCommon called WCom // Indicator Definition diff --git a/input/cql/HIVIND44Logic.cql b/input/cql/HIVIND44Logic.cql index 75a40701601..3dfab9fcb5c 100644 --- a/input/cql/HIVIND44Logic.cql +++ b/input/cql/HIVIND44Logic.cql @@ -65,7 +65,7 @@ library HIVIND44Logic // Included Libraries using FHIR version '4.0.1' -include HIVCommon version '0.0.1' called HIC +include HIVCommon called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom @@ -94,7 +94,7 @@ define "Initial Population": */ define "Numerator": - HIE."HIV-positive B.DE116" and HIE."On ART" and exists(HIE."TB preventive treatment TPT start date in measurement period") + HIE."Has HIV-positive Status" and HIE."On ART" and exists(HIE."TB preventive treatment TPT start date in measurement period") /** * Denominator @@ -104,7 +104,7 @@ define "Numerator": */ define "Denominator": - HIE."HIV-positive B.DE116" and HIE."On ART" and HIE."Eligible for TB preventive treatment" + HIE."Has HIV-positive Status" and HIE."On ART" and HIE."Eligible for TB preventive treatment" /* end Populations */ @@ -117,14 +117,23 @@ define "Denominator": * • Cities and other administrative regions of epidemiologic importance */ - define "Administrative Gender Stratifier": +define "Administrative Gender Stratifier": HIE."By Administrative Gender Stratifier" define "Age Stratifier": HIE."By Age Stratifier" define "TPT Regimen Type Stratifier": - HE."TPT regimen type" + HIE."TPT regimen type" define "Geographic Region Stratifier": - HIE."By Geographic Region Stratifier" \ No newline at end of file + HIE."By Geographic Region Stratifier" + +/* + * Combined stratifiers + */ +define "Stratification": + HIE."By Administrative Gender Stratifier".code + + ':' + HIE."By Age Stratifier" + + ':' + Combine(HIE."TPT regimen type".coding.code) + + ':' + HIE."By Geographic Region Stratifier" diff --git a/input/cql/HIVIND45Logic.cql b/input/cql/HIVIND45Logic.cql index a1046464e26..79399fbdbe5 100644 --- a/input/cql/HIVIND45Logic.cql +++ b/input/cql/HIVIND45Logic.cql @@ -107,7 +107,7 @@ define "Initial Population": */ define "Numerator": - HIE."HIV-positive B.DE116" and HIE."On ART" and exists(HIE."TB preventive treatment TPT completed in measurement period") + HIE."Has HIV-positive Status" and HIE."On ART" and exists(HIE."TB preventive treatment TPT completed in measurement period") /** * Denominator @@ -117,7 +117,7 @@ define "Numerator": */ define "Denominator": - HIE."HIV-positive B.DE116" and HIE."On ART" and exists(HIE."TB preventive treatment TPT start date in measurement period") + HIE."Has HIV-positive Status" and HIE."On ART" and exists(HIE."TB preventive treatment TPT start date in measurement period") /* end Populations */ @@ -139,10 +139,20 @@ define "Age Stratifier": HIE."By Age Stratifier" define "TPT Regimen Type Stratifier": - HE."TPT regimen type" + HIE."TPT regimen type" define "ART Initiation Stratifier": HIE."By ART initiation" define "Geographic Region Stratifier": - HIE."By Geographic Region Stratifier" \ No newline at end of file + HIE."By Geographic Region Stratifier" + +/* + * Combined stratifiers + */ +define "Stratification": + HIE."By Administrative Gender Stratifier".code + + ':' + HIE."By Age Stratifier" + + ':' + Combine(HIE."TPT regimen type".coding.code) + + ':' + HIE."By ART initiation" + + ':' + HIE."By Geographic Region Stratifier" diff --git a/input/cql/HIVIND4Logic.cql b/input/cql/HIVIND4Logic.cql index 2fdd85cd091..5df89d315ed 100644 --- a/input/cql/HIVIND4Logic.cql +++ b/input/cql/HIVIND4Logic.cql @@ -77,8 +77,9 @@ using FHIR version '4.0.1' include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' - +// include WHOCommon called WCom + include HIVElements called HE include HIVIndicatorElements called HIE @@ -89,7 +90,7 @@ context Patient define "Measure Population": Sum( ( - collapse (HIC."PREP Prescription" MR + collapse (HE."PREP Prescription" MR return HIC."Prescription Relevant Period"( MR ) intersect "Measurement Period" ) ) PREPUseInterval @@ -120,16 +121,16 @@ define "Age Stratifier": HIE."By Age Stratifier 3" define "Geographic Region Stratifier": - HIE."By Geographic Region Stratifier" + HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": - HIC."patientGroups" + HIE."patientGroups" define "prep product": - HIC."prep_product" + HIE."prep_product" define "Setting": - HIC."setting" + HIE."setting" //provider type not provided? @@ -137,6 +138,6 @@ define "Stratification": HIE."By Administrative Gender Stratifier".code + ':' + HIE."By Age Stratifier 3" + ':' + HIE."By Geographic Region Stratifier" -+ Combine(HIC.patientGroups, ':') -+ Combine(HIC.setting, ':') -+ Combine(HIC.prep_product, ':') ++ Combine(HIE.patientGroups, ':') ++ Combine(HIE.setting, ':') ++ Combine(HIE.prep_product, ':') diff --git a/input/cql/HIVIND5Logic.cql b/input/cql/HIVIND5Logic.cql index a5fc41c94b8..b06130f4207 100644 --- a/input/cql/HIVIND5Logic.cql +++ b/input/cql/HIVIND5Logic.cql @@ -87,7 +87,7 @@ parameter "Measurement Period" Interval default Interval[@2023-01-01, @202 context Patient define "Measure Population": - exists(HIC."PEP Prescription" MR + exists(HE."PEP Prescription" MR where MR.authoredOn before end of "Measurement Period" and MR.authoredOn after start of "Measurement Period") @@ -118,16 +118,16 @@ define "Geographic Region Stratifier": HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": - HIC."patientGroups" + HIE."patientGroups" define "prep product": - HIC."prep_product" + HIE."prep_product" define "Setting": - HIC."setting" + HIE."setting" define "hiv_exposure_type": - HIC."hiv_exposure_type" + HIE."hiv_exposure_type" //provider type not provided? @@ -135,7 +135,7 @@ define "Stratification": HIE."By Administrative Gender Stratifier".code + ':' + HIE."By Age Stratifier 3" + ':' + HIE."By Geographic Region Stratifier" -+ Combine(HIC.patientGroups, ':') -+ Combine(HIC.setting, ':') -+ Combine(HIC.prep_product, ':') -+ Combine(HIC.hiv_exposure_type, ':') ++ Combine(HIE.patientGroups, ':') ++ Combine(HIE.setting, ':') ++ Combine(HIE.prep_product, ':') ++ Combine(HIE."hiv_exposure_type", ':') diff --git a/input/cql/HIVIND6Logic.cql b/input/cql/HIVIND6Logic.cql index 7b344bd54ef..e50bd8c8297 100644 --- a/input/cql/HIVIND6Logic.cql +++ b/input/cql/HIVIND6Logic.cql @@ -81,7 +81,6 @@ include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom -include HIVElements called HE include HIVIndicatorElements called HIE // Indicator Definition @@ -96,13 +95,13 @@ define "Initial Population": define "numerator": - exists(HIC."PEP Prescribed before start of Measurement Period and Completed" MS + exists(HIE."PEP Prescribed before start of Measurement Period and Completed" MS where (MS.effective ends during "Measurement Period") ) define "denominator": - exists(HIC."PEP Prescribed during Measurement Period and Completed" MS + exists(HIE."PEP Prescribed during Measurement Period and Completed" MS where not (MS.effective ends after end of "Measurement Period") ) @@ -120,16 +119,16 @@ define "Geographic Region Stratifier": HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": - HIC."patientGroups" + HIE."patientGroups" define "prep product": - HIC."prep_product" + HIE."prep_product" define "Setting": - HIC."setting" + HIE."setting" define "hiv_exposure_type": - HIC."hiv_exposure_type" + HIE."hiv_exposure_type" //provider type not provided? @@ -137,9 +136,8 @@ define "Stratification": HIE."By Administrative Gender Stratifier".code + ':' + HIE."By Age Stratifier 3" + ':' + HIE."By Geographic Region Stratifier" -+ Combine(HIC.patientGroups, ':') -+ Combine(HIC.setting, ':') -+ Combine(HIC.prep_product, ':') -+ Combine(HIC.hiv_exposure_type, ':') -//Need to discuss how to add list -//+ ':' +HIC."patientGroups" ++ Combine(HIE.patientGroups, ':') ++ Combine(HIE.setting, ':') ++ Combine(HIE.prep_product, ':') ++ Combine(HIE."hiv_exposure_type", ':') + diff --git a/input/cql/HIVIND7Logic.cql b/input/cql/HIVIND7Logic.cql index 26871ae948e..525d8b747b6 100644 --- a/input/cql/HIVIND7Logic.cql +++ b/input/cql/HIVIND7Logic.cql @@ -104,13 +104,13 @@ define "Initial Population": define "numerator": - exists(HIC."HIV Test Positive After PEP Prescribed during Measurement Period" O + exists(HIE."HIV Test Positive After PEP Prescribed during Measurement Period" O where (O.issued after start of "Measurement Period") ) define "denominator": - exists(HIC."PEP Prescription" MR + exists(HE."PEP Prescription" MR where (MR.authoredOn after start of "Measurement Period" and MR.authoredOn before end of "Measurement Period") ) @@ -133,16 +133,16 @@ define "Geographic Region Stratifier": HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": - HIC."patientGroups" + HIE."patientGroups" define "prep product": - HIC."prep_product" + HIE."prep_product" define "Setting": - HIC."setting" + HIE."setting" define "hiv_exposure_type": - HIC."hiv_exposure_type" + HIE."hiv_exposure_type" //provider type not provided? @@ -150,7 +150,7 @@ define "Stratification": HIE."By Administrative Gender Stratifier".code + ':' + HIE."By Age Stratifier 3" + ':' + HIE."By Geographic Region Stratifier" -+ Combine(HIC.patientGroups, ':') -+ Combine(HIC.setting, ':') -+ Combine(HIC.prep_product, ':') -+ Combine(HIC.hiv_exposure_type, ':') ++ Combine(HIE.patientGroups, ':') ++ Combine(HIE.setting, ':') ++ Combine(HIE.prep_product, ':') ++ Combine(HIE."hiv_exposure_type", ':') diff --git a/input/cql/HIVIND8Logic.cql b/input/cql/HIVIND8Logic.cql index 502fe08c70a..38cf333cc43 100644 --- a/input/cql/HIVIND8Logic.cql +++ b/input/cql/HIVIND8Logic.cql @@ -82,15 +82,13 @@ define "Initial Population": define "numerator": - exists(HIC."Needle Syringe Dispensed" DUS + exists(HE."Needle Syringe Dispensed" DUS where (DUS.timing during "Measurement Period") ) define "denominator": - exists(HIC.PWID_person O - where (O.effective during "Measurement Period") - ) + exists(HIE."People who inject drugs") /* * Disaggregators @@ -106,10 +104,10 @@ define "Geographic Region Stratifier": HIE."By Geographic Region Stratifier" define "patientGroups Stratifier": - HIC."patientGroups" + HIE."patientGroups" define "Setting": - HIC."setting" + HIE."setting" //provider type not provided? @@ -117,5 +115,5 @@ define "Stratification": HIE."By Administrative Gender Stratifier".code + ':' + HIE."By Age Stratifier" + ':' + HIE."By Geographic Region Stratifier" -+ Combine(HIC.patientGroups, ':') -+ Combine(HIC.setting, ':') \ No newline at end of file ++ Combine(HIE.patientGroups, ':') ++ Combine(HIE.setting, ':') \ No newline at end of file diff --git a/input/cql/HIVIndicatorElements.cql b/input/cql/HIVIndicatorElements.cql index c43587f6bc3..ced54bcc5b7 100644 --- a/input/cql/HIVIndicatorElements.cql +++ b/input/cql/HIVIndicatorElements.cql @@ -10,7 +10,10 @@ include WHOCommon called WC include WHOElements called WE include HIVConcepts called Concepts +include HIVConceptsCustom called ConceptsCustom include HIVElements called Elements +include HIVCommon called Common +include HIVConfig called Config parameter "Measurement Period" Interval default Interval[@2024-01-01, @2024-12-30] @@ -20,9 +23,171 @@ context Patient * HIV Elements */ -/* - * Umbrella Data Elements - */ +/* General Data Elements */ + +// From Common + +define "Community_testing": + exists([Observation] O + with [Encounter] E + such that O.encounter.references(E) and exists(E.location.physicalType PT where PT ~ Concepts."Community-level testing") + where (O.status in { 'final', 'amended' } + and O.code ~ Concepts."Rapid diagnostic test for HIV - HIV.B.DE82" + and O.issued after start of "Measurement Period" + and O.issued before end of "Measurement Period")) + + +/*@triggeredBy Encounter with location = facility level testing*/ +define "Facility_testing": + exists([Observation] O + with [Encounter] E + such that O.encounter.references(E) and exists(E.location.physicalType PT where PT ~ Concepts."Facility-level testing") + where (O.status in { 'final', 'amended' } + and O.code ~ Concepts."Rapid diagnostic test for HIV - HIV.B.DE82" + and O.issued after start of "Measurement Period" + and O.issued before end of "Measurement Period") + ) + +//lifted this from ANC DAK +define "ANC_case": +exists( + [EpisodeOfCare] EOC + where exists(EOC.type T where T ~ Concepts."Already on ART at first antenatal care visit") + and (exists ( + EOC.statusHistory H + where H.period overlaps "Measurement Period" + ) + or ( + EOC.period overlaps "Measurement Period" + ) + ) + ) + +define "methadone_prescribed at date": +[MedicationRequest] MR + where MR.status = 'completed' + and MR.intent = 'order' + and MR.medication ~ ConceptsCustom."methadone" + //and "GetMedicationDailyDose"(MR.dosageInstruction, "DosesPerDay"(singleton from MR.dosageInstruction.timing.repeat.frequencyMax)) >= 60 'mg/d' + and Common.MedicationRequestPeriod(MR) starts before start of "Measurement Period" + and Common.MedicationRequestPeriod(MR) ends after end of "Measurement Period" + +define "OAMT_initiated": +exists( + [EpisodeOfCare] EOC + where exists(EOC.type T where T ~ Concepts."OAMT") + and (exists ( + EOC.statusHistory H + where H.period starts after start of "Measurement Period" + and H.period starts before end of "Measurement Period" + ) + or ( + EOC.period starts after start of "Measurement Period" + and EOC.period starts before end of "Measurement Period" + ) + ) + ) + +define "OAMT_retained": +exists( + [EpisodeOfCare] EOC + where exists(EOC.type T where T ~ Concepts."OAMT") + and (exists ( + EOC.statusHistory H + where H.period starts after start of "Measurement Period" + and H.period starts before end of "Measurement Period" + and H.period ends after (end of "Measurement Period" + 6 months) + ) + or ( + EOC.period starts after start of "Measurement Period" + and EOC.period starts before end of "Measurement Period" + and (EOC.period ends after (end of "Measurement Period" + 6 months) + or end of EOC.period is null) + ) + ) + ) + + +define "PEP Prescribed before start of Measurement Period and Completed": + [MedicationStatement] MS + with [MedicationRequest] MR + such that MS.basedOn.references(MR) and MR.status = 'completed' + and MR.intent = 'order' + and MR.medication ~ Concepts."PEP for HIV prevention" + and MR.authoredOn before end of "Measurement Period" + where (MS.status = 'completed' + and exists(MS.reasonCode C where C ~ Concepts."PrEP for HIV prevention") + ) + +define "PEP Prescribed during Measurement Period and Completed": + [MedicationStatement] MS + with [MedicationRequest] MR + such that MS.basedOn.references(MR) and MR.status = 'completed' + and MR.intent = 'order' + and MR.medication ~ Concepts."PEP for HIV prevention" + and MR.authoredOn after start of "Measurement Period" + and MR.authoredOn before end of "Measurement Period" + where (MS.status = 'completed' + and exists(MS.reasonCode C where C ~ Concepts."PrEP for HIV prevention") + ) + +define "HIV Test Positive After PEP Prescribed during Measurement Period": + [Observation: Concepts."HIV test result - HIV.B.DE111"] O + with [MedicationRequest] MR + such that O.basedOn.references(MR) and MR.status = 'completed' + and MR.intent = 'order' + and MR.medication ~ Concepts."PEP for HIV prevention" + and MR.authoredOn after start of "Measurement Period" + and MR.authoredOn before end of "Measurement Period" + and O.issued before (MR.authoredOn + 3 months) + where ( O.status in {'final', 'amended'} + and O.value ~ Concepts."HIV-positive - HIV.B.DE112" + ) + + +define "Patient Deceased during Measurement Period": + case + when Patient.deceased is FHIR.boolean and Patient.deceased ~ true then Patient.meta.lastUpdated before end of "Measurement Period" and Patient.meta.lastUpdated after start of "Measurement Period" + when Patient.deceased is FHIR.dateTime then Patient.deceased as FHIR.dateTime before end of "Measurement Period" and Patient.deceased as FHIR.dateTime after start of "Measurement Period" + else false + end + + +// HIV Testing +define "Elevated Viral load test during Measurement Period": + "Viral load test result D.DE387" VL + with Elements."viral load sample collection" P + such that VL.partOf.references(P) and P.performed.toInterval() during "Measurement Period" + where VL.value > 1000 + sort by start of effective.toInterval() + + +define "Negative Tests within Measurement Period": + Elements."HIV-negative test result" O + // with Elements."At elevated risk for HIV acquisition B.DE225" HIV + // such that O.hasMember.references(HIV) + where O.effective.toInterval() starts during "Measurement Period" + sort by start of effective.toInterval() + +define "First Negative Test within Measurement Period": + (First("Negative Tests within Measurement Period")) + +define "Negative Tests after First Negative Test": + Elements."HIV-negative test result" O + // with Elements."At elevated risk for HIV acquisition B.DE225" HIV + // such that O.hasMember.references(HIV) + where O.effective.toInterval() starts after start of "First Negative Test within Measurement Period".effective.toInterval() + and O.effective.toInterval() starts before (start of "First Negative Test within Measurement Period".effective.toInterval() + Config."Testing Interval") + sort by start of effective.toInterval() + +define "Lost to Follow Up during the measurement period": + exists(Elements."On ART H.DE47" H + where H.effective starts before end of "Measurement Period" + and H.effective ends after start of "Measurement Period" + and not (H.effective ends after (end of "Measurement Period" - Config."LTFU Days")) + ) + +// HIV Status // ART Status @@ -53,6 +218,74 @@ define "By ART initiation": define "By Geographic Region Stratifier": First(Patient.address A where A.use in { 'home' }).state +/* + * Other Stratifiers + */ +define hiv_exposure_type: + List{ + if Elements.Exposure_Occupational then 'Occupational' else null, + if Elements.Exposure_Non_Occupational_violent then 'Non-occupational violent' else null, + if Elements.Exposure_Non_Occupational_consensual_sex then 'Non-occupational consensual sex' else null + } + +define setting: + List{ + if Community_testing then 'Community-level testing' else null, + if Facility_testing then 'Facility-level testing' else null + } + +define anc: + List{ + if ANC_case then 'ANC case' else null + } + +define tb: + List{ + if TB_diagnosed then 'Diagnosed TB' else null, + if TB_presumptive then 'Presumptive TB' else null + } + +define prep_product: + List{ + if Elements."PREP Product Oral" then 'PREP Product Oral' else null, + if Elements."PREP Product long-acting device" then 'PREP Product long-acting device' else null, + if Elements."PREP Product long-acting injectable" then 'PREP Product long-acting injectable' else null + } + +define prep_experience: + List{ + if Elements."PREP first time" then 'PREP first time' else null, + if Elements."PREP Continuing user" then 'PREP Continuing user' else null, + if Elements."PREP Restarting" then 'PREP Restarting' else null + } + +define prep_dosing: + List{ + if Elements."Daily_oral_PrEP" then 'Daily oral PrEP' else null, + if Elements."Event_driven_PrEP" then 'Event driven PrEP' else null, + if Elements."other_dosing_PrEP" then 'Other PrEP dosing type' else null + } + +define "Treatment outcome category": + List{ + if "Is lost to follow-up" then 'LTFU' else null, + if "Has transferred out" then 'Transfer Out' else null, + if "Has death documented" then 'Death' else null, + if "Refused stopped treatment" then 'Stopped' else null, + if "On ART H.DE47" then 'On ART' else null + } + +define "HIV status of partner or contact": + case + when "Already knew positive" then Concepts."Already knew positive" + when "Newly diagnosed" then Concepts."Newly diagnosed" + when "Negative H.DE37" then Concepts."Negative - HIV.H.DE37" + else null + end + + + + // Auto-generated Elements from DAK Data Dictionary // Entries based on DAK Data Dictionary for Data Elements marked as used // in at least one Decision Support Table or Aggregate Indicator @@ -136,6 +369,11 @@ define "By Age Stratifier 3": /* End of Age */ + + + + + /* @dataElement: HIV.A.DE18 - Gender @activity: HIV.A6.1 Review sociodemographic data with client | HIV.A5 Create new client record @@ -174,17 +412,7 @@ define "Referred through partner services Observation": @activity: HIV.B1 Determine reason for visit @description: The client is a contact or partner of a person diagnosed with HIV (an index case) */ -// TODO: Replace placeholder with relevant CQL logic -define "Partner or contact of an index case": - exists "Partner or contact of an index case Condition" - or exists "Partner or contact of an index case Observation" -define "Partner or contact of an index case Condition": - Elements."Partner or contact of an index case Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "Partner or contact of an index case Observation": - Elements."Partner or contact of an index case Observation" O - where O.effective.toInterval() during "Measurement Period" + /* End of Partner or contact of an index case */ /* @@ -437,12 +665,18 @@ define "Unknown B.DE36 Observation": @activity: HIV.B6 Capture or update client history @description: The type of key population that the client is included in */ -// TODO: Replace placeholder with relevant CQL logic -define "Key population member type B.DE50": - exists "Key population member type B.DE50 Observation" -define "Key population member type B.DE50 Observation": - Elements."Key population member type B.DE50 Observation" O - where O.effective.toInterval() during "Measurement Period" +define "Is Key population member": + exists "Key population member type Observation" + +define "Key population member type Observation": + Elements."Key population member type Observation" O + where O.effective.toInterval() before end of "Measurement Period" + or O.issued before end of "Measurement Period" + +// Stratifier +define patientGroups: + "Key population member type Observation" O + return Combine(O.code.coding.code, ':') /* End of Key population member type B.DE50 */ /* @@ -450,10 +684,9 @@ define "Key population member type B.DE50 Observation": @activity: HIV.B6 Capture or update client history @description: Client is a sex worker */ - -define "Sex worker B.DE51": - exists(Elements."Sex worker B.DE51" SW - where SW.issued before end of "Measurement Period") +define "Sex worker": + exists("Key population member type Observation" O + where O.value ~ Concepts."Sex worker - HIV.B.DE51") /* End of Sex worker B.DE51 */ /* @@ -461,10 +694,9 @@ define "Sex worker B.DE51": @activity: HIV.B6 Capture or update client history @description: Client is a man who has sex with men */ - define "Men who have sex with men": - exists(Elements."Men who have sex with men" MSM - where MSM.issued before end of "Measurement Period") + exists("Key population member type Observation" O + where O.value ~ Concepts."Men who have sex with men") /* End of Men who have sex with men */ /* @@ -472,10 +704,9 @@ define "Men who have sex with men": @activity: HIV.B6 Capture or update client history @description: Client identifies as trans and gender-diverse */ - -define "Trans and gender-diverse people B.DE53": - exists(Elements."Trans and gender-diverse people B.DE53" T - where T.issued before end of "Measurement Period") +define "Trans and gender-diverse people": + exists("Key population member type Observation" O + where O.value ~ Concepts."Trans and gender-diverse people - HIV.B.DE53") /* End of Trans and gender-diverse people B.DE53 */ /* @@ -483,10 +714,10 @@ define "Trans and gender-diverse people B.DE53": @activity: HIV.B6 Capture or update client history @description: Client is a person who injects drugs */ +define "People who inject drugs": + "Key population member type Observation" O + where O.value ~ Concepts."People who inject drugs - HIV.B.DE54" -define "People who inject drugs B.DE54": - exists(Elements."People who inject drugs B.DE54" PWID - where PWID.issued before end of "Measurement Period") /* End of People who inject drugs B.DE54 */ /* @@ -494,10 +725,9 @@ define "People who inject drugs B.DE54": @activity: HIV.B6 Capture or update client history @description: Client lives in a prison or another closed setting */ - define "People living in prisons and other closed settings": - exists(Elements."People living in prisons and other closed settings" P - where P.issued before end of "Measurement Period") + exists("Key population member type Observation" O + where O.value ~ Concepts."People living in prisons and other closed settings") /* End of People living in prisons and other closed settings */ /* @@ -505,13 +735,12 @@ define "People living in prisons and other closed settings": @activity: HIV.B6 Capture or update client history @description: Date HIV test result returned to client */ -// TODO: Replace placeholder with relevant CQL logic -define "Date HIV test results returned": - Elements."Date HIV test results returned" O - where O.effective.toInterval() during "Measurement Period" -define "Date HIV test results returned Value": - "Date HIV test results returned" O - return O.value +define "HIV test results returned in measurement period": + Elements."HIV test" O + where O.issued during "Measurement Period" + +define "Has HIV test results returned in measurement period": + exists("HIV test results returned in measurement period") /* End of Date HIV test results returned */ /* @@ -628,151 +857,64 @@ define "ART start date B.DE72 Value": @activity: HIV.B7 Test for HIV using testing algorithm @description: Type of HIV test */ - define "HIV test type B.DE81": - exists Elements."HIV test type B.DE81" - + Elements."HIV test type B.DE81" O + where O.effective.toInterval() during "Measurement Period" +define "HIV test type B.DE81 Value": + "HIV test type B.DE81" O + return O.value /* End of HIV test type B.DE81 */ -/* -@dataElement: HIV.B.DE82 - Rapid diagnostic test for HIV -@activity: HIV.B7 Test for HIV using testing algorithm -@description: Antibody test for HIV performed with a rapid diagnostic -*/ - -define "Rapid diagnostic test for HIV B.DE82": - exists(Elements."Rapid diagnostic test for HIV B.DE82" O - where O.effective.toInterval() during "Measurement Period") -/* End of Rapid diagnostic test for HIV B.DE82 */ - -/* -@dataElement: HIV.B.DE83 - Enzyme immunoassay for HIV -@activity: HIV.B7 Test for HIV using testing algorithm -@description: Antibody test for HIV performed with an enzyme immunoassay -*/ - -define "Enzyme immunoassay for HIV B.DE83": - exists(Elements."Enzyme immunoassay for HIV B.DE83" O - where O.effective.toInterval() during "Measurement Period") -/* End of Enzyme immunoassay for HIV B.DE83 */ - -/* -@dataElement: HIV.B.DE84 - Nucleic acid test for HIV -@activity: HIV.B7 Test for HIV using testing algorithm -@description: Virological test, which includes testing for early infant diagnosis -*/ - -define "Nucleic acid test for HIV B.DE84": - exists(Elements."Nucleic acid test for HIV B.DE84" O - where O.effective.toInterval() during "Measurement Period") -/* End of Nucleic acid test for HIV B.DE84 */ - -/* -@dataElement: HIV.B.DE85 - Dual HIV/syphilis rapid diagnostic test -@activity: HIV.B7 Test for HIV using testing algorithm -@description: Antibody test for HIV and syphilis performed with a rapid diagnostic -*/ - -define "Dual HIV/syphilis rapid diagnostic test B.DE85": - exists(Elements."Dual HIV/syphilis rapid diagnostic test B.DE85" O - where O.effective.toInterval() during "Measurement Period") -/* End of Dual HIV/syphilis rapid diagnostic test B.DE85 */ - -/* -@dataElement: HIV.B.DE86 - HIV self-test -@activity: HIV.B7 Test for HIV using testing algorithm -@description: Antibody test for HIV performed by self-tester using a rapid diagnostic -*/ - -define "HIV self-test": - exists(Elements."HIV self-test" O - where O.effective.toInterval() during "Measurement Period") -/* End of HIV self-test */ - /* @dataElement: HIV.B.DE110 - HIV test date @activity: HIV.B7 Test for HIV using testing algorithm @description: Date of the HIV test */ -// TODO: Replace placeholder with relevant CQL logic -define "HIV test date B.DE110": - Elements."HIV test date B.DE110" O - where O.effective.toInterval() during "Measurement Period" -define "HIV test date B.DE110 Value": - "HIV test date B.DE110" O - return O.value -/* End of HIV test date B.DE110 */ +define "Non-Self HIV test with date and results returned in measurement period": + Elements."Non-Self HIV test" O + where start of O.effective.toInterval() during "Measurement Period" + and O.issued during "Measurement Period" -/* -@dataElement: HIV.B.DE111 - HIV test result -@activity: HIV.B7 Test for HIV using testing algorithm -@description: The result from HIV testing after applying the testing algorithm -*/ -// TODO: Replace placeholder with relevant CQL logic -define "HIV test result B.DE111": - exists "HIV test result B.DE111 Observation" -define "HIV test result B.DE111 Observation": - Elements."HIV test result B.DE111 Observation" O - where O.effective.toInterval() during "Measurement Period" -/* End of HIV test result B.DE111 */ +/* End of HIV test date B.DE110 */ /* @dataElement: HIV.B.DE112 - HIV-positive @activity: HIV.B7 Test for HIV using testing algorithm @description: Test result is HIV-positive */ -// TODO: Replace placeholder with relevant CQL logic -define "HIV-positive B.DE112": - exists "HIV-positive B.DE112 Condition" - or exists "HIV-positive B.DE112 Observation" -define "HIV-positive B.DE112 Condition": - Elements."HIV-positive B.DE112 Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "HIV-positive B.DE112 Observation": - Elements."HIV-positive B.DE112 Observation" O - where O.effective.toInterval() during "Measurement Period" -/* End of HIV-positive B.DE112 */ -/* -@dataElement: HIV.B.DE113 - HIV-negative -@activity: HIV.B7 Test for HIV using testing algorithm -@description: Test result is HIV-negative -*/ -define "HIV-negative B.DE113": - exists(Elements."HIV-negative B.DE113" O - where O.effective.toInterval() starts during "Measurement Period") -/* End of HIV-negative B.DE113 */ +define "Non-Self HIV test date and results returned within measurement period for HIV-positive result": + "Non-Self HIV test with date and results returned in measurement period" O + where O.value ~ Concepts."HIV-positive - HIV.B.DE112" +/* End of HIV-positive B.DE112 */ -/* -@dataElement: HIV.B.DE114 - HIV-inconclusive -@activity: HIV.B7 Test for HIV using testing algorithm -@description: Test result is HIV-inconclusive -*/ -// TODO: Replace placeholder with relevant CQL logic -define "HIV-inconclusive": - exists "HIV-inconclusive Condition" - or exists "HIV-inconclusive Observation" -define "HIV-inconclusive Condition": - Elements."HIV-inconclusive Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "HIV-inconclusive Observation": - Elements."HIV-inconclusive Observation" O - where O.effective.toInterval() during "Measurement Period" -/* End of HIV-inconclusive */ +/* HIV-negative test */ +define "Negative HIV test within measurement period": + Elements."HIV test" O + where O.effective.toInterval() overlaps "Measurement Period" + and O.value ~ Concepts."HIV-negative - HIV.B.DE113" /* @dataElement: HIV.B.DE115 - HIV status @activity: HIV.B7 Test for HIV using testing algorithm @description: HIV status reported after applying the national HIV testing algorithm. No single HIV test can provide an HIV-positive diagnosis. */ -// TODO: Replace placeholder with relevant CQL logic -define "HIV status": - exists "HIV status Observation" -define "HIV status Observation": - Elements."HIV status Observation" O - where O.effective.toInterval() during "Measurement Period" +// define "HIV Status": +// case +// when exists("HIV Positive Condition") then Concepts."HIV-positive - HIV.B.DE116" +// when not exists("HIV Positive Condition") and exists(Elements."HIV Negative Observation" O where O.issued before end of "Measurement Period") then Concepts."HIV-negative - HIV.B.DE117" +// else Concepts."Unknown - HIV.B.DE118" +// end + +define "HIV Status Stratifier": + case + when "Has HIV-positive Status" then Concepts."HIV-positive - HIV.B.DE116" + when not exists("HIV Status Positive Condition") and exists("HIV Status Negative Observation") then Concepts."HIV-negative - HIV.B.DE117" + else Concepts."Unknown - HIV.B.DE118" + end + + + /* End of HIV status */ /* @@ -780,46 +922,41 @@ define "HIV status Observation": @activity: HIV.B7 Test for HIV using testing algorithm @description: Client is HIV-positive */ +define "Has HIV-positive Status at last measurment period": + exists "HIV Status positive at last measurement period Condition" + or exists "HIV Status positive at last measurement period Observation" + +define "HIV Status positive at last measurement period Condition": + Elements."HIV Status Positive Condition" C + where C.onset.toInterval() starts before (start of "Measurement Period" - duration in days of "Measurement Period") + +define "HIV Status positive at last measurement period Observation": + Elements."HIV Status Positive Observation" O + where O.effective.toInterval() starts before (start of "Measurement Period" - duration in days of "Measurement Period") + +define "Has HIV-positive Status": + exists "HIV Status Positive Condition" + or exists "HIV Status Positive Observation" + +define "HIV Status Positive Condition": + Elements."HIV Status Positive Condition" C + where C.onset before end of "Measurement Period" + +define "HIV Status Positive Observation": + Elements."HIV Status Positive Observation" O + where O.issued before end of "Measurement Period" + or O.effective.toInterval() starts before end of "Measurement Period" -define "HIV-positive B.DE116": - exists(Elements."HIV-positive B.DE116" HIV where HIV starts before end of "Measurement Period") /* End of HIV-positive B.DE116 */ -/* -@dataElement: HIV.B.DE117 - HIV-negative -@activity: HIV.B7 Test for HIV using testing algorithm -@description: Client is HIV-negative -*/ -// TODO: Replace placeholder with relevant CQL logic -define "HIV-negative B.DE117": - exists "HIV-negative B.DE117 Condition" - or exists "HIV-negative B.DE117 Observation" -define "HIV-negative B.DE117 Condition": - Elements."HIV-negative B.DE117 Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "HIV-negative B.DE117 Observation": - Elements."HIV-negative B.DE117 Observation" O - where O.effective.toInterval() during "Measurement Period" -/* End of HIV-negative B.DE117 */ +define "HIV Status Negative Observation": + Elements."HIV Status Negative Observation" O + where O.issued before end of "Measurement Period" + or O.effective.toInterval() starts before end of "Measurement Period" -/* -@dataElement: HIV.B.DE118 - Unknown -@activity: HIV.B7 Test for HIV using testing algorithm -@description: Client has unknown HIV status -*/ -// TODO: Replace placeholder with relevant CQL logic -define "Unknown B.DE118": - exists "Unknown B.DE118 Condition" - or exists "Unknown B.DE118 Observation" -define "Unknown B.DE118 Condition": - Elements."Unknown B.DE118 Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "Unknown B.DE118 Observation": - Elements."Unknown B.DE118 Observation" O - where O.effective.toInterval() during "Measurement Period" -/* End of Unknown B.DE118 */ +define "HIV Status Negative Condition": + Elements."HIV Status Negative Condition" C + where C.onset before end of "Measurement Period" /* @dataElement: HIV.B.DE121 - Probable route of transmission @@ -979,6 +1116,65 @@ define "VMMC procedure date Value": @activity: HIV.B21 Offer prevention options @description: Severity of the adverse event associated with voluntary medical male circumcision (VMMC) procedure */ + +define "VMMC_adverse_event": +[AdverseEvent] AE + with [Procedure] P + such that AE.suspectEntity.instance.references(P) and P.status = 'completed' + and P.code ~ Concepts."Voluntary medical male circumcision VMMC" + and P.performed after start of "Measurement Period" + and P.performed before end of "Measurement Period" + and AE.date <= (P.performed + 30 days) + and AE.date >= (P.performed) + where AE.actuality = 'actual' + + +define "VMMC_adverse_event_type": + case + when exists("VMMC_adverse_event" AE where AE.event ~ Concepts."Abnormal pain") then Concepts."Abnormal pain" + when exists("VMMC_adverse_event" AE where AE.event ~ Concepts."Anaesthesia-related effects") then Concepts."Anaesthesia-related effects" + when exists("VMMC_adverse_event" AE where AE.event ~ Concepts."Damage to the penis") then Concepts."Damage to the penis" + when exists("VMMC_adverse_event" AE where AE.event ~ Concepts."Difficulty urinating") then Concepts."Difficulty urinating" + when exists("VMMC_adverse_event" AE where AE.event ~ Concepts."Excessive bleeding") then Concepts."Excessive bleeding" + when exists("VMMC_adverse_event" AE where AE.event ~ Concepts."Excessive skin removal") then Concepts."Excessive skin removal" + when exists("VMMC_adverse_event" AE where AE.event ~ Concepts."Excessive swelling") then Concepts."Excessive swelling" + when exists("VMMC_adverse_event" AE where AE.event ~ Concepts."Haematoma") then Concepts."Haematoma" + when exists("VMMC_adverse_event" AE where AE.event ~ Concepts."Infection") then Concepts."Infection" + when exists("VMMC_adverse_event" AE where AE.event ~ Concepts."Injury to glans") then Concepts."Injury to glans" + when exists("VMMC_adverse_event" AE where AE.event ~ Concepts."Scar or disfigurement") then Concepts."Scar or disfigurement" + when exists("VMMC_adverse_event" AE where AE.event ~ Concepts."Sharps injury to personnel") then Concepts."Sharps injury to personnel" + when exists("VMMC_adverse_event" AE where AE.event ~ Concepts."Wound disruption") then Concepts."Wound disruption" + else Concepts."Other - HIV.B.DE222" + end + +define "VMMC_adverse_event_Intraoperative": +[AdverseEvent] AE + with [Procedure] P + such that AE.suspectEntity.instance.references(P) and P.status = 'completed' + and P.code ~ Concepts."Voluntary medical male circumcision VMMC" + and P.performed after start of "Measurement Period" + and P.performed before end of "Measurement Period" + and AE.date = P.performed + where AE.actuality = 'actual' + +define "VMMC_adverse_event_Postoperative": +[AdverseEvent] AE + with [Procedure] P + such that AE.suspectEntity.instance.references(P) and P.status = 'completed' + and P.code ~ Concepts."Voluntary medical male circumcision VMMC" + and P.performed after start of "Measurement Period" + and P.performed before end of "Measurement Period" + and AE.date <= (P.performed + 30 days) + and AE.date > (P.performed) + where AE.actuality = 'actual' + +define "VMMC_adverse_event_timing": + case + when exists(VMMC_adverse_event_Intraoperative) then Concepts."Intraoperative" + when exists(VMMC_adverse_event_Postoperative) then Concepts."Postoperative" + else null + end + // TODO: Replace placeholder with relevant CQL logic define "Adverse event severity": exists "Adverse event severity Observation" @@ -1363,7 +1559,7 @@ define "Other B.DE222 Observation": define "At elevated risk for HIV acquisition B.DE225": exists(Elements."At elevated risk for HIV acquisition B.DE225" O - where O.effective.toInterval() during "Measurement Period") + where O.effective.toInterval() overlaps "Measurement Period") /* End of At elevated risk for HIV acquisition B.DE225 */ /* @@ -2112,6 +2308,12 @@ define "Medications prescribed C.DE75 Observation": @activity: HIV.C23 Prescribe or administer PrEP or PEP @description: Client was prescribed pre-exposure prophylaxis (PrEP) for HIV prevention */ +define "HIV PREP Active": + exists(Elements."HIV PREP Active" H + where H.effective starts before end of "Measurement Period" + and (H.effective ends after start of "Measurement Period" + or end of H.effective ~ null) + ) // TODO: Replace placeholder with relevant CQL logic define "PrEP for HIV prevention": exists "PrEP for HIV prevention Condition" @@ -2470,22 +2672,18 @@ define "On ART D.DE38": @activity: HIV.D8 Capture or update client history @description: The date on which the client started or restarted ART */ -// TODO: Replace placeholder with relevant CQL logic - /* End of ART start date D.DE39 */ - +define "ART start date within measurement period": + Elements."ART start date D.DE39" d + where d during "Measurement Period" /* @dataElement: HIV.D.DE41 - Date ART stopped @activity: HIV.D8 Capture or update client history @description: Date on which client stopped ART */ -// TODO: Replace placeholder with relevant CQL logic -define "Date ART stopped D.DE41": - Elements."Date ART stopped D.DE41" O - where O.effective.toInterval() during "Measurement Period" -define "Date ART stopped D.DE41 Value": - "Date ART stopped D.DE41" O - return O.value +define "ART stopped during measurement period": + Elements."Date ART stopped D.DE41" d + where d during "Measurement Period" /* End of Date ART stopped D.DE41 */ /* @@ -3082,73 +3280,6 @@ define "Date of baseline CD4 count test D.DE368 Value": return O.value /* End of Date of baseline CD4 count test D.DE368 */ -/* -@dataElement: HIV.D.DE383 - Time to start ART -@activity: HIV.D8 Capture or update client history -@description: Time from HIV diagnosis to when client started ART -*/ -// TODO: Replace placeholder with relevant CQL logic -define "Time to start ART": - exists "Time to start ART Observation" -define "Time to start ART Observation": - Elements."Time to start ART Observation" O - where O.effective.toInterval() during "Measurement Period" -/* End of Time to start ART */ - -/* -@dataElement: HIV.D.DE384 - Within 7 days of HIV diagnosis -@activity: HIV.D8 Capture or update client history -@description: Client started ART within 7 days -*/ -// TODO: Replace placeholder with relevant CQL logic -define "Within 7 days of HIV diagnosis": - exists "Within 7 days of HIV diagnosis Condition" - or exists "Within 7 days of HIV diagnosis Observation" -define "Within 7 days of HIV diagnosis Condition": - Elements."Within 7 days of HIV diagnosis Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "Within 7 days of HIV diagnosis Observation": - Elements."Within 7 days of HIV diagnosis Observation" O - where O.effective.toInterval() during "Measurement Period" -/* End of Within 7 days of HIV diagnosis */ - -/* -@dataElement: HIV.D.DE385 - Within 30 days of HIV diagnosis -@activity: HIV.D8 Capture or update client history -@description: Client started ART within 30 days of ART initiation (but over 7 days) -*/ -// TODO: Replace placeholder with relevant CQL logic -define "Within 30 days of HIV diagnosis": - exists "Within 30 days of HIV diagnosis Condition" - or exists "Within 30 days of HIV diagnosis Observation" -define "Within 30 days of HIV diagnosis Condition": - Elements."Within 30 days of HIV diagnosis Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "Within 30 days of HIV diagnosis Observation": - Elements."Within 30 days of HIV diagnosis Observation" O - where O.effective.toInterval() during "Measurement Period" -/* End of Within 30 days of HIV diagnosis */ - -/* -@dataElement: HIV.D.DE386 - Within 90 days of HIV diagnosis -@activity: HIV.D8 Capture or update client history -@description: Client started ART within 90 days of ART initiation (but over 30 days) -*/ -// TODO: Replace placeholder with relevant CQL logic -define "Within 90 days of HIV diagnosis": - exists "Within 90 days of HIV diagnosis Condition" - or exists "Within 90 days of HIV diagnosis Observation" -define "Within 90 days of HIV diagnosis Condition": - Elements."Within 90 days of HIV diagnosis Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "Within 90 days of HIV diagnosis Observation": - Elements."Within 90 days of HIV diagnosis Observation" O - where O.effective.toInterval() during "Measurement Period" -/* End of Within 90 days of HIV diagnosis */ - /* @dataElement: HIV.D.DE387 - Viral load test result @activity: HIV.D20 Diagnostics @@ -4950,6 +5081,15 @@ define "TB diagnosis result Observation": @activity: HIV.D8 Capture or update client history @description: Client is diagnosed with TB disease */ +define TB_diagnosed: + exists( + ([Condition] C + where C.clinicalStatus ~ ConceptsCustom."active" + and exists(C.category CC where CC ~ ConceptsCustom."encounter-diagnosis") + and C.code ~ Concepts."Diagnosed TB" + and C.onset during "Measurement Period") + ) + // TODO: Replace placeholder with relevant CQL logic define "Diagnosed TB": exists "Diagnosed TB Condition" @@ -4986,6 +5126,15 @@ define "TB excluded Observation": @activity: HIV.D8 Capture or update client history @description: Client has signs or symptoms of tuberculosis (TB) without laboratory confirmation */ +define TB_presumptive: + exists( + ([Condition] C + where C.clinicalStatus ~ ConceptsCustom."active" + and exists(C.category CC where CC ~ ConceptsCustom."encounter-diagnosis") + and C.code ~ Concepts."Presumptive TB - HIV.D.DE945" + and C.onset during "Measurement Period") + ) + // TODO: Replace placeholder with relevant CQL logic define "Presumptive TB D.DE945": exists "Presumptive TB D.DE945 Observation" @@ -5241,6 +5390,11 @@ define "On TPT regimen": define "TPT regimen": Elements."TPT regimen" MS where MS.effective.toInterval() during "Measurement Period" + +define "TPT regimen type": + "TPT regimen" MS + return Common.ExtractMedicationCode(MS.medication) + /* End of TPT regimen type */ /* @@ -5432,7 +5586,7 @@ define "Delivery date Value": @activity: HIV.E1 Capture or update mother's history @description: The type of place where the woman delivered */ - +// TODO: Replace placeholder with relevant CQL logic define "Place of delivery": exists (Elements."Place of delivery" P where P.performed.toInterval() during "Measurement Period") @@ -5443,17 +5597,18 @@ define "Place of delivery": @activity: HIV.E1 Capture or update mother's history @description: The woman delivered at a health facility */ - +// TODO: Replace placeholder with relevant CQL logic define "Health facility": exists (Elements."Health facility" P where P.performed.toInterval() during "Measurement Period") +/* End of Health facility */ /* @dataElement: HIV.E.DE69 - Home @activity: HIV.E1 Capture or update mother's history @description: The woman delivered at home */ - +// TODO: Replace placeholder with relevant CQL logic define "Home": exists (Elements."Health facility" P where P.performed.toInterval() during "Measurement Period") @@ -5464,7 +5619,7 @@ define "Home": @activity: HIV.E1 Capture or update mother's history @description: The woman delivered at another location that is not at home or at a health facility */ - +// TODO: Replace placeholder with relevant CQL logic define "Other E.DE70": exists (Elements."Other E.DE70" P where P.performed.toInterval() during "Measurement Period") @@ -5525,10 +5680,12 @@ define "Age of infant in years": @activity: HIV.F6 Check whether infant/child had HIV exposure @description: Whether the infant or child was determined to have had HIV exposure */ - +// TODO: Replace placeholder with relevant CQL logic define "HIV-exposed infant or child E.DE112": - exists Elements."HIV-exposed infant or child E.DE112" O + Elements."HIV-exposed infant or child E.DE112" O where O.effective.toInterval() during "Measurement Period" +define "is HIV-exposed infant or child E.DE112": + exists "HIV-exposed infant or child E.DE112" /* End of HIV-exposed infant or child E.DE112 */ /* @@ -5537,57 +5694,13 @@ define "HIV-exposed infant or child E.DE112": @description: The type of key population that the infant's mother is included in */ // TODO: Replace placeholder with relevant CQL logic -define "Key population member type E.DE114": +define "Is Key population member type E.DE114": exists "Key population member type E.DE114 Observation" define "Key population member type E.DE114 Observation": Elements."Key population member type E.DE114 Observation" O where O.effective.toInterval() during "Measurement Period" /* End of Key population member type E.DE114 */ -/* -@dataElement: HIV.E.DE115 - Sex worker -@activity: HIV.E1 Capture or update mother's history -@description: Infant's mother is a sex worker -*/ - -define "Sex worker E.DE115": - exists(Elements."Sex worker E.DE115" SW - where SW.issued before end of "Measurement Period") -/* End of Sex worker E.DE115 */ - -/* -@dataElement: HIV.E.DE116 - People who inject drugs -@activity: HIV.E1 Capture or update mother's history -@description: Infant's mother is a person who injects drugs -*/ - -define "People who inject drugs E.DE116": - exists(Elements."People who inject drugs E.DE116" PWID - where PWID.issued before end of "Measurement Period") -/* End of People who inject drugs E.DE116 */ - -/* -@dataElement: HIV.E.DE117 - Trans and gender-diverse people -@activity: HIV.E1 Capture or update mother's history -@description: Infant's mother identifies as trans and gender-diverse -*/ - -define "Trans and gender-diverse people E.DE117": - exists(Elements."Trans and gender-diverse people E.DE117" T - where T.issued before end of "Measurement Period") -/* End of Trans and gender-diverse people E.DE117 */ - -/* -@dataElement: HIV.E.DE118 - People living in prisons and other closed setting -@activity: HIV.E1 Capture or update mother's history -@description: Infant's mother is in a prison or closed setting -*/ - -define "People living in prisons and other closed setting": - exists(Elements."People living in prisons and other closed setting" P - where P.issued before end of "Measurement Period") -/* End of People living in prisons and other closed setting */ - /* @dataElement: HIV.E.DE168 - HIV test type @activity: HIV.E4 Test mother for HIV using testing algorithm @@ -6309,9 +6422,16 @@ define "HIV treatment outcome": @activity: HIV.H3 Record outreach and result @description: Twenty-eight days or more since last missed appointment */ - define "Lost to follow-up": - exists(Elements."Lost to follow-up") + Elements."On ART H.DE47" H + where H.effective starts before end of "Measurement Period" + and H.effective ends after start of "Measurement Period" + and not (H.effective ends after (end of "Measurement Period" - Config."LTFU Days")) + + +define "Is lost to follow-up": + exists("Lost to follow-up") + /* End of Lost to follow-up */ /* @@ -6320,7 +6440,7 @@ define "Lost to follow-up": @description: The client transferred to another facility */ -define "Transferred out": +define "Has transferred out": exists(Elements."Transferred out" t where t ends during "Measurement Period") /* End of Transferred out */ @@ -6329,8 +6449,7 @@ define "Transferred out": @activity: HIV.H3 Record outreach and result @description: People living with HIV previously on ART who are confirmed to have died from any cause */ - -define "Death documented": +define "Has death documented": Elements."Death documented" before end of "Measurement Period" /* End of Death documented */ @@ -6504,11 +6623,17 @@ define "At elevated risk for HIV acquisition PRV.DE1": @description: HIV prevention intervention that client accessed */ // TODO: Replace placeholder with relevant CQL logic +//(including PrEP, OAMT, NSP, STI services, VMMC) define "HIV prevention intervention": - exists "HIV prevention intervention Observation" -define "HIV prevention intervention Observation": - Elements."HIV prevention intervention Observation" O - where O.effective.toInterval() during "Measurement Period" + List{ + if "PrEP service" then 'PrEP' else null, + if "OAMT" then 'OAMT' else null, + if "NSP" then 'NSP' else null, + if "STI services" then 'STI services' else null, + if "VMMC" then 'VMMC' else null, + if "Other PRV.DE8" then 'other prevention' else null + } + /* End of HIV prevention intervention */ /* diff --git a/input/fsh/libraries/HIVB9DTLogic.fsh b/input/fsh/libraries/HIVB9DTLogic.fsh index 6ff209ba0ca..8853d4bc1d6 100644 --- a/input/fsh/libraries/HIVB9DTLogic.fsh +++ b/input/fsh/libraries/HIVB9DTLogic.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/hiv/Library/HIVB2DTLogic" +* url = "http://smart.who.int/hiv/Library/HIVB9DTLogic" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVEncounterElements.fsh b/input/fsh/libraries/HIVEncounterElements.fsh index 93f144b1d50..e22e7323b64 100644 --- a/input/fsh/libraries/HIVEncounterElements.fsh +++ b/input/fsh/libraries/HIVEncounterElements.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/hivEncounter/Library/HIVEncounterElements" +* url = "http://smart.who.int/hiv/Library/HIVEncounterElements" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/HIVIndicatorElements.fsh b/input/fsh/libraries/HIVIndicatorElements.fsh index 2820fda0e5b..4522b09bd8d 100644 --- a/input/fsh/libraries/HIVIndicatorElements.fsh +++ b/input/fsh/libraries/HIVIndicatorElements.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/hivIndicator/Library/HIVIndicatorElements" +* url = "http://smart.who.int/hiv/Library/HIVIndicatorElements" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/libraries/WHOEncounterElements.fsh b/input/fsh/libraries/WHOEncounterElements.fsh index f42b28365cf..75415446e2c 100644 --- a/input/fsh/libraries/WHOEncounterElements.fsh +++ b/input/fsh/libraries/WHOEncounterElements.fsh @@ -7,7 +7,7 @@ Usage: #definition * meta.profile[+] = "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library" * meta.profile[+] = "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module" -* url = "http://smart.who.int/WHOEncounter/Library/WHOEncounterElements" +* url = "http://smart.who.int/WHO/Library/WHOEncounterElements" * extension[+] * url = "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability" * valueCode = #computable diff --git a/input/fsh/measures/HIVIND11.fsh b/input/fsh/measures/HIVIND11.fsh index abded22d2dd..a746e80c5bd 100644 --- a/input/fsh/measures/HIVIND11.fsh +++ b/input/fsh/measures/HIVIND11.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.11 OAMT coverage" * url = "http://smart.who.int/hiv/Measure/HIVIND11" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND11" * title = "HIV.IND.11 OAMT coverage" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND12.fsh b/input/fsh/measures/HIVIND12.fsh index 01d57f0ed40..c4ace647906 100644 --- a/input/fsh/measures/HIVIND12.fsh +++ b/input/fsh/measures/HIVIND12.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.12 Total person-years on OAMT" * url = "http://smart.who.int/hiv/Measure/HIVIND12" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND12" * title = "HIV.IND.12 Total person-years on OAMT" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND13.fsh b/input/fsh/measures/HIVIND13.fsh index fad2e7169c9..c56867eeaac 100644 --- a/input/fsh/measures/HIVIND13.fsh +++ b/input/fsh/measures/HIVIND13.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.13 OAMT minimum duration" * url = "http://smart.who.int/hiv/Measure/HIVIND13" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND13" * title = "HIV.IND.13 OAMT minimum duration" * publisher = "World Health Organization (WHO)" @@ -32,4 +32,8 @@ Title: "HIV.IND.13 OAMT minimum duration" * description = "Number of people in cohort retained in OAMT for at least six months" * code = $measure-population#numerator "Numerator" * criteria.language = #text/cql-identifier - * criteria.expression = "Numerator" \ No newline at end of file + * criteria.expression = "Numerator" + * stratifier[+] + * id = "HIV.IND.13.S" + * criteria.language = #text/cql-identifier + * criteria.expression = "Stratification" \ No newline at end of file diff --git a/input/fsh/measures/HIVIND14.fsh b/input/fsh/measures/HIVIND14.fsh index aeb964f600e..741f9ae93aa 100644 --- a/input/fsh/measures/HIVIND14.fsh +++ b/input/fsh/measures/HIVIND14.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.14 OAMT minimum dose" * url = "http://smart.who.int/hiv/Measure/HIVIND14" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND14" * title = "HIV.IND.14 OAMT minimum dose" * publisher = "World Health Organization (WHO)" @@ -29,7 +29,7 @@ Title: "HIV.IND.14 OAMT minimum dose" * criteria.expression = "Denominator" * population[numerator] * id = "HIV.IND.14.NUM" - * description = "Number of people, at a specified date, maintained on methadone or buprenorphine receiving recommended minimum maintenance dose (WHO guidance recommends doses of ≥60 mg of methadone or ≥8 mg of buprenorphine*)" + * description = "Number of people, at a specified date, maintained on methadone or buprenorphine receiving recommended minimum maintenance dose (WHO guidance recommends doses of ≥60 mg of methadone or ≥8 mg of buprenorphine)" * code = $measure-population#numerator "Numerator" * criteria.language = #text/cql-identifier * criteria.expression = "Numerator" \ No newline at end of file diff --git a/input/fsh/measures/HIVIND15.fsh b/input/fsh/measures/HIVIND15.fsh index 92f292fd676..d7d4514f4d5 100644 --- a/input/fsh/measures/HIVIND15.fsh +++ b/input/fsh/measures/HIVIND15.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.15 VMMC scale-up" * url = "http://smart.who.int/hiv/Measure/HIVIND15" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND15" * title = "HIV.IND.15 VMMC scale-up" * publisher = "World Health Organization (WHO)" @@ -35,4 +35,8 @@ Title: "HIV.IND.15 VMMC scale-up" * description = "Measure Observation" * code = $measure-population#measure-observation "Measure Observation" * criteria.language = #text/cql-identifier - * criteria.expression = "Measure Observation" \ No newline at end of file + * criteria.expression = "Measure Observation" + * stratifier[+] + * id = "HIV.IND.15.S" + * criteria.language = #text/cql-identifier + * criteria.expression = "Stratification" \ No newline at end of file diff --git a/input/fsh/measures/HIVIND16.fsh b/input/fsh/measures/HIVIND16.fsh index bbb520d0030..7f074e60e1d 100644 --- a/input/fsh/measures/HIVIND16.fsh +++ b/input/fsh/measures/HIVIND16.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.16 VMMC adverse events" * url = "http://smart.who.int/hiv/Measure/HIVIND16" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND16" * title = "HIV.IND.16 VMMC adverse events" * publisher = "World Health Organization (WHO)" @@ -32,4 +32,8 @@ Title: "HIV.IND.16 VMMC adverse events" * description = "Number of people experiencing at least one moderate or severe adverse event during or following circumcision surgery during the reporting period" * code = $measure-population#numerator "Numerator" * criteria.language = #text/cql-identifier - * criteria.expression = "Numerator" \ No newline at end of file + * criteria.expression = "Numerator" + * stratifier[+] + * id = "HIV.IND.16.S" + * criteria.language = #text/cql-identifier + * criteria.expression = "Stratification" \ No newline at end of file diff --git a/input/fsh/measures/HIVIND18.fsh b/input/fsh/measures/HIVIND18.fsh index d6f169622cd..75528661fbe 100644 --- a/input/fsh/measures/HIVIND18.fsh +++ b/input/fsh/measures/HIVIND18.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.18 People living with HIV who know their HIV status (first 95)" * url = "http://smart.who.int/hiv/Measure/HIVIND18" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND18" * title = "HIV.IND.18 People living with HIV who know their HIV status (first 95)" * publisher = "World Health Organization (WHO)" @@ -37,22 +37,6 @@ Title: "HIV.IND.18 People living with HIV who know their HIV status (first 95)" * criteria.language = #text/cql-identifier * criteria.expression = "Measure Observation" * stratifier[+] - * id = "HIV.IND.18.S.AG" + * id = "HIV.IND.18.S" * criteria.language = #text/cql-identifier - * criteria.expression = "Administrative Gender Stratifier" - * stratifier[+] - * id = "HIV.IND.18.S.A" - * criteria.language = #text/cql-identifier - * criteria.expression = "Age Stratifier" - * stratifier[+] - * id = "HIV.IND.18.S.GR" - * criteria.language = #text/cql-identifier - * criteria.expression = "Geographic Region Stratifier" - * stratifier[+] - * id = "HIV.IND.18.S.P" - * criteria.language = #text/cql-identifier - * criteria.expression = "patientGroups Stratifier" - * stratifier[+] - * id = "HIV.IND.18.S.A" - * criteria.language = #text/cql-identifier - * criteria.expression = "ANC Stratifier" \ No newline at end of file + * criteria.expression = "Stratification" \ No newline at end of file diff --git a/input/fsh/measures/HIVIND19.fsh b/input/fsh/measures/HIVIND19.fsh index de761c6fc9d..981ff0870d3 100644 --- a/input/fsh/measures/HIVIND19.fsh +++ b/input/fsh/measures/HIVIND19.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.19 HTS test volume and positivity" * url = "http://smart.who.int/hiv/Measure/HIVIND19" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND19" * title = "HIV.IND.19 HTS test volume and positivity" * publisher = "World Health Organization (WHO)" @@ -34,22 +34,6 @@ Title: "HIV.IND.19 HTS test volume and positivity" * criteria.language = #text/cql-identifier * criteria.expression = "Numerator" * stratifier[+] - * id = "HIV.IND.19.S.AG" + * id = "HIV.IND.19.S" * criteria.language = #text/cql-identifier - * criteria.expression = "Administrative Gender Stratifier" - * stratifier[+] - * id = "HIV.IND.19.S.A" - * criteria.language = #text/cql-identifier - * criteria.expression = "Age Stratifier" - * stratifier[+] - * id = "HIV.IND.19.S.GR" - * criteria.language = #text/cql-identifier - * criteria.expression = "Geographic Region Stratifier" - * stratifier[+] - * id = "HIV.IND.19.S.P" - * criteria.language = #text/cql-identifier - * criteria.expression = "patientGroups Stratifier" - * stratifier[+] - * id = "HIV.IND.19.S.T" - * criteria.language = #text/cql-identifier - * criteria.expression = "TB Stratifier" \ No newline at end of file + * criteria.expression = "Stratification" \ No newline at end of file diff --git a/input/fsh/measures/HIVIND2.fsh b/input/fsh/measures/HIVIND2.fsh index b3045918514..8453bdc7a57 100644 --- a/input/fsh/measures/HIVIND2.fsh +++ b/input/fsh/measures/HIVIND2.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.2 Total PrEP recipients" * url = "http://smart.who.int/hiv/Measure/HIVIND2" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND2" * title = "HIV.IND.2 Total PrEP recipients" * publisher = "World Health Organization (WHO)" @@ -37,18 +37,6 @@ Title: "HIV.IND.2 Total PrEP recipients" * criteria.language = #text/cql-identifier * criteria.expression = "Measure Observation" * stratifier[+] - * id = "HIV.IND.2.S.AG" + * id = "HIV.IND.2.S" * criteria.language = #text/cql-identifier - * criteria.expression = "Administrative Gender Stratifier" - * stratifier[+] - * id = "HIV.IND.2.S.A" - * criteria.language = #text/cql-identifier - * criteria.expression = "Age Stratifier" - * stratifier[+] - * id = "HIV.IND.2.S.GR" - * criteria.language = #text/cql-identifier - * criteria.expression = "Geographic Region Stratifier" - * stratifier[+] - * id = "HIV.IND.2.S.P" - * criteria.language = #text/cql-identifier - * criteria.expression = "patientGroups Stratifier" \ No newline at end of file + * criteria.expression = "Stratification" \ No newline at end of file diff --git a/input/fsh/measures/HIVIND20.fsh b/input/fsh/measures/HIVIND20.fsh index d4605d36dd2..182a65c546b 100644 --- a/input/fsh/measures/HIVIND20.fsh +++ b/input/fsh/measures/HIVIND20.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.20 Individuals testing positive for HIV" * url = "http://smart.who.int/hiv/Measure/HIVIND20" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND20" * title = "HIV.IND.20 Individuals testing positive for HIV" * publisher = "World Health Organization (WHO)" @@ -29,27 +29,11 @@ Title: "HIV.IND.20 Individuals testing positive for HIV" * criteria.expression = "Denominator" * population[numerator] * id = "HIV.IND.20.NUM" - * description = "Number of people who test HIV-positive in the reporting period and have results returned to them*" + * description = "Number of people who test HIV-positive in the reporting period and have results returned to them" * code = $measure-population#numerator "Numerator" * criteria.language = #text/cql-identifier * criteria.expression = "Numerator" * stratifier[+] - * id = "HIV.IND.20.S.AG" + * id = "HIV.IND.20.S" * criteria.language = #text/cql-identifier - * criteria.expression = "Administrative Gender Stratifier" - * stratifier[+] - * id = "HIV.IND.20.S.A" - * criteria.language = #text/cql-identifier - * criteria.expression = "Age Stratifier" - * stratifier[+] - * id = "HIV.IND.20.S.GR" - * criteria.language = #text/cql-identifier - * criteria.expression = "Geographic Region Stratifier" - * stratifier[+] - * id = "HIV.IND.20.S.P" - * criteria.language = #text/cql-identifier - * criteria.expression = "patientGroups Stratifier" - * stratifier[+] - * id = "HIV.IND.20.S.T" - * criteria.language = #text/cql-identifier - * criteria.expression = "TB Stratifier" \ No newline at end of file + * criteria.expression = "Stratification" \ No newline at end of file diff --git a/input/fsh/measures/HIVIND21.fsh b/input/fsh/measures/HIVIND21.fsh index f1b93e1b2fb..bb19a6038d3 100644 --- a/input/fsh/measures/HIVIND21.fsh +++ b/input/fsh/measures/HIVIND21.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.21 Linkage to ART" * url = "http://smart.who.int/hiv/Measure/HIVIND21" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND21" * title = "HIV.IND.21 Linkage to ART" * publisher = "World Health Organization (WHO)" @@ -34,22 +34,6 @@ Title: "HIV.IND.21 Linkage to ART" * criteria.language = #text/cql-identifier * criteria.expression = "Numerator" * stratifier[+] - * id = "HIV.IND.21.S.AG" + * id = "HIV.IND.21.S" * criteria.language = #text/cql-identifier - * criteria.expression = "Administrative Gender Stratifier" - * stratifier[+] - * id = "HIV.IND.21.S.A" - * criteria.language = #text/cql-identifier - * criteria.expression = "Age Stratifier" - * stratifier[+] - * id = "HIV.IND.21.S.GR" - * criteria.language = #text/cql-identifier - * criteria.expression = "Geographic Region Stratifier" - * stratifier[+] - * id = "HIV.IND.21.S.P" - * criteria.language = #text/cql-identifier - * criteria.expression = "patientGroups Stratifier" - * stratifier[+] - * id = "HIV.IND.21.S.T" - * criteria.language = #text/cql-identifier - * criteria.expression = "TB Stratifier" \ No newline at end of file + * criteria.expression = "Stratification" \ No newline at end of file diff --git a/input/fsh/measures/HIVIND22.fsh b/input/fsh/measures/HIVIND22.fsh index dc91051ff02..f2dad959d56 100644 --- a/input/fsh/measures/HIVIND22.fsh +++ b/input/fsh/measures/HIVIND22.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.22 HTS partner services" * url = "http://smart.who.int/hiv/Measure/HIVIND22" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND22" * title = "HIV.IND.22 HTS partner services" * publisher = "World Health Organization (WHO)" @@ -35,4 +35,8 @@ Title: "HIV.IND.22 HTS partner services" * description = "Measure Observation" * code = $measure-population#measure-observation "Measure Observation" * criteria.language = #text/cql-identifier - * criteria.expression = "Measure Observation" \ No newline at end of file + * criteria.expression = "Measure Observation" + * stratifier[+] + * id = "HIV.IND.22.S" + * criteria.language = #text/cql-identifier + * criteria.expression = "Stratification" \ No newline at end of file diff --git a/input/fsh/measures/HIVIND24.fsh b/input/fsh/measures/HIVIND24.fsh index a536127a29e..838037b6fdd 100644 --- a/input/fsh/measures/HIVIND24.fsh +++ b/input/fsh/measures/HIVIND24.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.24 HTS linkage to prevention" * url = "http://smart.who.int/hiv/Measure/HIVIND24" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND24" * title = "HIV.IND.24 HTS linkage to prevention" * publisher = "World Health Organization (WHO)" @@ -32,4 +32,8 @@ Title: "HIV.IND.24 HTS linkage to prevention" * description = "Number of people who receive an HIV prevention intervention within a defined period after receiving a negative HIV test result" * code = $measure-population#numerator "Numerator" * criteria.language = #text/cql-identifier - * criteria.expression = "Numerator" \ No newline at end of file + * criteria.expression = "Numerator" + * stratifier[+] + * id = "HIV.IND.24.S" + * criteria.language = #text/cql-identifier + * criteria.expression = "Stratification" \ No newline at end of file diff --git a/input/fsh/measures/HIVIND25.fsh b/input/fsh/measures/HIVIND25.fsh index 546c83ccdf0..e0caaa8e3f0 100644 --- a/input/fsh/measures/HIVIND25.fsh +++ b/input/fsh/measures/HIVIND25.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.25 HIV retesting coverage" * url = "http://smart.who.int/hiv/Measure/HIVIND25" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND25" * title = "HIV.IND.25 HIV retesting coverage" * publisher = "World Health Organization (WHO)" @@ -32,4 +32,8 @@ Title: "HIV.IND.25 HIV retesting coverage" * description = "Number of individuals who tested HIV-negative assessed to be at elevated risk for HIV acquisition who had another HIV test within a defined period after previous test." * code = $measure-population#numerator "Numerator" * criteria.language = #text/cql-identifier - * criteria.expression = "Numerator" \ No newline at end of file + * criteria.expression = "Numerator" + * stratifier[+] + * id = "HIV.IND.25.S" + * criteria.language = #text/cql-identifier + * criteria.expression = "Stratification" \ No newline at end of file diff --git a/input/fsh/measures/HIVIND27.fsh b/input/fsh/measures/HIVIND27.fsh index 92451f2467d..5d3d04f16a3 100644 --- a/input/fsh/measures/HIVIND27.fsh +++ b/input/fsh/measures/HIVIND27.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.27 People living with HIV on ART" * url = "http://smart.who.int/hiv/Measure/HIVIND27" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND27" * title = "HIV.IND.27 People living with HIV on ART" * publisher = "World Health Organization (WHO)" @@ -37,18 +37,6 @@ Title: "HIV.IND.27 People living with HIV on ART" * criteria.language = #text/cql-identifier * criteria.expression = "Measure Observation" * stratifier[+] - * id = "HIV.IND.27.S.AG" + * id = "HIV.IND.27.S" * criteria.language = #text/cql-identifier - * criteria.expression = "Administrative Gender Stratifier" - * stratifier[+] - * id = "HIV.IND.27.S.A" - * criteria.language = #text/cql-identifier - * criteria.expression = "Age Stratifier" - * stratifier[+] - * id = "HIV.IND.27.S.GR" - * criteria.language = #text/cql-identifier - * criteria.expression = "Geographic Region Stratifier" - * stratifier[+] - * id = "HIV.IND.27.S.P" - * criteria.language = #text/cql-identifier - * criteria.expression = "patientGroups Stratifier" \ No newline at end of file + * criteria.expression = "Stratification" \ No newline at end of file diff --git a/input/fsh/measures/HIVIND28.fsh b/input/fsh/measures/HIVIND28.fsh index b9f9432d9cc..17831182980 100644 --- a/input/fsh/measures/HIVIND28.fsh +++ b/input/fsh/measures/HIVIND28.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.28 Total attrition from ART" * url = "http://smart.who.int/hiv/Measure/HIVIND28" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND28" * title = "HIV.IND.28 Total attrition from ART" * publisher = "World Health Organization (WHO)" @@ -29,23 +29,11 @@ Title: "HIV.IND.28 Total attrition from ART" * criteria.expression = "Denominator" * population[numerator] * id = "HIV.IND.28.NUM" - * description = "*Number of people living with HIV reported on ART at the end of the last reporting period | plus | Number of people living with HIV newly initiated on ART during the current reporting period | minus | Total number of people living with HIV on ART at the end of the current reporting period" + * description = "Number of people living with HIV reported on ART at the end of the last reporting period | plus | Number of people living with HIV newly initiated on ART during the current reporting period | minus | Total number of people living with HIV on ART at the end of the current reporting period" * code = $measure-population#numerator "Numerator" * criteria.language = #text/cql-identifier * criteria.expression = "Numerator" * stratifier[+] - * id = "HIV.IND.28.S.AG" + * id = "HIV.IND.28.S" * criteria.language = #text/cql-identifier - * criteria.expression = "Administrative Gender Stratifier" - * stratifier[+] - * id = "HIV.IND.28.S.A" - * criteria.language = #text/cql-identifier - * criteria.expression = "Age Stratifier" - * stratifier[+] - * id = "HIV.IND.28.S.GR" - * criteria.language = #text/cql-identifier - * criteria.expression = "Geographic Region Stratifier" - * stratifier[+] - * id = "HIV.IND.28.S.P" - * criteria.language = #text/cql-identifier - * criteria.expression = "patientGroups Stratifier" \ No newline at end of file + * criteria.expression = "Stratification" \ No newline at end of file diff --git a/input/fsh/measures/HIVIND29.fsh b/input/fsh/measures/HIVIND29.fsh index 40e63f0f632..47aad8b6fdf 100644 --- a/input/fsh/measures/HIVIND29.fsh +++ b/input/fsh/measures/HIVIND29.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.29 People living with HIV on ART who have suppressed viral load" * url = "http://smart.who.int/hiv/Measure/HIVIND29" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND29" * title = "HIV.IND.29 People living with HIV on ART who have suppressed viral load" * publisher = "World Health Organization (WHO)" @@ -29,7 +29,11 @@ Title: "HIV.IND.29 People living with HIV on ART who have suppressed viral load" * criteria.expression = "Denominator" * population[numerator] * id = "HIV.IND.29.NUM" - * description = "Number of people living with HIV on ART for at least six months and with at least one routine VL test result who have virological suppression (<1000 copies/mL*) during the reporting period." + * description = "Number of people living with HIV on ART for at least six months and with at least one routine VL test result who have virological suppression (<1000 copies/mL) during the reporting period." * code = $measure-population#numerator "Numerator" * criteria.language = #text/cql-identifier - * criteria.expression = "Numerator" \ No newline at end of file + * criteria.expression = "Numerator" + * stratifier[+] + * id = "HIV.IND.29.S" + * criteria.language = #text/cql-identifier + * criteria.expression = "Stratification" \ No newline at end of file diff --git a/input/fsh/measures/HIVIND3.fsh b/input/fsh/measures/HIVIND3.fsh index 60753f4cd1d..2a4cd0cb40e 100644 --- a/input/fsh/measures/HIVIND3.fsh +++ b/input/fsh/measures/HIVIND3.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.3 PrEP coverage" * url = "http://smart.who.int/hiv/Measure/HIVIND3" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND3" * title = "HIV.IND.3 PrEP coverage" * publisher = "World Health Organization (WHO)" @@ -34,18 +34,6 @@ Title: "HIV.IND.3 PrEP coverage" * criteria.language = #text/cql-identifier * criteria.expression = "Numerator" * stratifier[+] - * id = "HIV.IND.3.S.AG" + * id = "HIV.IND.3.S" * criteria.language = #text/cql-identifier - * criteria.expression = "Administrative Gender Stratifier" - * stratifier[+] - * id = "HIV.IND.3.S.A" - * criteria.language = #text/cql-identifier - * criteria.expression = "Age Stratifier" - * stratifier[+] - * id = "HIV.IND.3.S.GR" - * criteria.language = #text/cql-identifier - * criteria.expression = "Geographic Region Stratifier" - * stratifier[+] - * id = "HIV.IND.3.S.P" - * criteria.language = #text/cql-identifier - * criteria.expression = "patientGroups Stratifier" \ No newline at end of file + * criteria.expression = "Stratification" \ No newline at end of file diff --git a/input/fsh/measures/HIVIND30.fsh b/input/fsh/measures/HIVIND30.fsh index ea0f85d94e4..5e95cde31bd 100644 --- a/input/fsh/measures/HIVIND30.fsh +++ b/input/fsh/measures/HIVIND30.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.30 New ART patients" * url = "http://smart.who.int/hiv/Measure/HIVIND30" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND30" * title = "HIV.IND.30 New ART patients" * publisher = "World Health Organization (WHO)" @@ -37,18 +37,6 @@ Title: "HIV.IND.30 New ART patients" * criteria.language = #text/cql-identifier * criteria.expression = "Measure Observation" * stratifier[+] - * id = "HIV.IND.30.S.AG" + * id = "HIV.IND.30.S" * criteria.language = #text/cql-identifier - * criteria.expression = "Administrative Gender Stratifier" - * stratifier[+] - * id = "HIV.IND.30.S.A" - * criteria.language = #text/cql-identifier - * criteria.expression = "Age Stratifier" - * stratifier[+] - * id = "HIV.IND.30.S.GR" - * criteria.language = #text/cql-identifier - * criteria.expression = "Geographic Region Stratifier" - * stratifier[+] - * id = "HIV.IND.30.S.P" - * criteria.language = #text/cql-identifier - * criteria.expression = "patientGroups Stratifier" \ No newline at end of file + * criteria.expression = "Stratification" \ No newline at end of file diff --git a/input/fsh/measures/HIVIND31.fsh b/input/fsh/measures/HIVIND31.fsh index 2892e18c1de..cb971fb6899 100644 --- a/input/fsh/measures/HIVIND31.fsh +++ b/input/fsh/measures/HIVIND31.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.31 Late ART initiation" * url = "http://smart.who.int/hiv/Measure/HIVIND31" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND31" * title = "HIV.IND.31 Late ART initiation" * publisher = "World Health Organization (WHO)" @@ -32,4 +32,8 @@ Title: "HIV.IND.31 Late ART initiation" * description = "Number of people living with HIV initiating ART during the reporting period with a baseline CD4 count of <200 cells/mm3" * code = $measure-population#numerator "Numerator" * criteria.language = #text/cql-identifier - * criteria.expression = "Numerator" \ No newline at end of file + * criteria.expression = "Numerator" + * stratifier[+] + * id = "HIV.IND.31.S" + * criteria.language = #text/cql-identifier + * criteria.expression = "Stratification" \ No newline at end of file diff --git a/input/fsh/measures/HIVIND32.fsh b/input/fsh/measures/HIVIND32.fsh index c9685e77475..35846576e0a 100644 --- a/input/fsh/measures/HIVIND32.fsh +++ b/input/fsh/measures/HIVIND32.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.32 Viral load testing coverage" * url = "http://smart.who.int/hiv/Measure/HIVIND32" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND32" * title = "HIV.IND.32 Viral load testing coverage" * publisher = "World Health Organization (WHO)" @@ -32,4 +32,8 @@ Title: "HIV.IND.32 Viral load testing coverage" * description = "Number of people living with HIV on ART with at least one routine VL test result during the reporting period" * code = $measure-population#numerator "Numerator" * criteria.language = #text/cql-identifier - * criteria.expression = "Numerator" \ No newline at end of file + * criteria.expression = "Numerator" + * stratifier[+] + * id = "HIV.IND.32.S" + * criteria.language = #text/cql-identifier + * criteria.expression = "Stratification" \ No newline at end of file diff --git a/input/fsh/measures/HIVIND33.fsh b/input/fsh/measures/HIVIND33.fsh index b290d85befc..a4324bc7537 100644 --- a/input/fsh/measures/HIVIND33.fsh +++ b/input/fsh/measures/HIVIND33.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.33 Early viral load testing (at six months)" * url = "http://smart.who.int/hiv/Measure/HIVIND33" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND33" * title = "HIV.IND.33 Early viral load testing (at six months)" * publisher = "World Health Organization (WHO)" @@ -32,4 +32,8 @@ Title: "HIV.IND.33 Early viral load testing (at six months)" * description = "Number of people living with HIV on ART who were eligible for VL monitoring at six months after initiation of ART during the reporting period and who had a VL test performed and result reviewed by six months after ART initiation" * code = $measure-population#numerator "Numerator" * criteria.language = #text/cql-identifier - * criteria.expression = "Numerator" \ No newline at end of file + * criteria.expression = "Numerator" + * stratifier[+] + * id = "HIV.IND.33.S" + * criteria.language = #text/cql-identifier + * criteria.expression = "Stratification" \ No newline at end of file diff --git a/input/fsh/measures/HIVIND34.fsh b/input/fsh/measures/HIVIND34.fsh index 1010a6b2a95..d2c301f6642 100644 --- a/input/fsh/measures/HIVIND34.fsh +++ b/input/fsh/measures/HIVIND34.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.34 Appropriate second viral load test after adherence counsellin * url = "http://smart.who.int/hiv/Measure/HIVIND34" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND34" * title = "HIV.IND.34 Appropriate second viral load test after adherence counselling" * publisher = "World Health Organization (WHO)" @@ -29,7 +29,11 @@ Title: "HIV.IND.34 Appropriate second viral load test after adherence counsellin * criteria.expression = "Denominator" * population[numerator] * id = "HIV.IND.34.NUM" - * description = "Number of people living with HIV on ART who received a follow-up VL test three months after a VL test result of ≥1000 copies/mL during the reporting period*" + * description = "Number of people living with HIV on ART who received a follow-up VL test three months after a VL test result of ≥1000 copies/mL during the reporting period" * code = $measure-population#numerator "Numerator" * criteria.language = #text/cql-identifier - * criteria.expression = "Numerator" \ No newline at end of file + * criteria.expression = "Numerator" + * stratifier[+] + * id = "HIV.IND.34.S" + * criteria.language = #text/cql-identifier + * criteria.expression = "Stratification" \ No newline at end of file diff --git a/input/fsh/measures/HIVIND35.fsh b/input/fsh/measures/HIVIND35.fsh index 660f74d94ef..4d144066d7a 100644 --- a/input/fsh/measures/HIVIND35.fsh +++ b/input/fsh/measures/HIVIND35.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.35 ARV toxicity prevalence" * url = "http://smart.who.int/hiv/Measure/HIVIND35" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND35" * title = "HIV.IND.35 ARV toxicity prevalence" * publisher = "World Health Organization (WHO)" @@ -32,4 +32,8 @@ Title: "HIV.IND.35 ARV toxicity prevalence" * description = "Number of ART patients who have stopped treatment or switched regimen due to toxicity in the reporting period" * code = $measure-population#numerator "Numerator" * criteria.language = #text/cql-identifier - * criteria.expression = "Numerator" \ No newline at end of file + * criteria.expression = "Numerator" + * stratifier[+] + * id = "HIV.IND.35.S" + * criteria.language = #text/cql-identifier + * criteria.expression = "Stratification" \ No newline at end of file diff --git a/input/fsh/measures/HIVIND37.fsh b/input/fsh/measures/HIVIND37.fsh index 535ef8c960e..663450a2316 100644 --- a/input/fsh/measures/HIVIND37.fsh +++ b/input/fsh/measures/HIVIND37.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.37 Viral suppression at labour and delivery" * url = "http://smart.who.int/hiv/Measure/HIVIND37" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND37" * title = "HIV.IND.37 Viral suppression at labour and delivery" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND38.fsh b/input/fsh/measures/HIVIND38.fsh index ea937e8f85a..f16470d8504 100644 --- a/input/fsh/measures/HIVIND38.fsh +++ b/input/fsh/measures/HIVIND38.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.38 Early infant diagnosis (EID) coverage" * url = "http://smart.who.int/hiv/Measure/HIVIND38" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND38" * title = "HIV.IND.38 Early infant diagnosis (EID) coverage" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND39.fsh b/input/fsh/measures/HIVIND39.fsh index ddd3fcb70bf..aba5015a813 100644 --- a/input/fsh/measures/HIVIND39.fsh +++ b/input/fsh/measures/HIVIND39.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.39 Infant ARV prophylaxis coverage" * url = "http://smart.who.int/hiv/Measure/HIVIND39" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND39" * title = "HIV.IND.39 Infant ARV prophylaxis coverage" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND4.fsh b/input/fsh/measures/HIVIND4.fsh index fa534cb98f1..fe38c1e7bbe 100644 --- a/input/fsh/measures/HIVIND4.fsh +++ b/input/fsh/measures/HIVIND4.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.4 Volume of PrEP prescribed" * url = "http://smart.who.int/hiv/Measure/HIVIND4" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND4" * title = "HIV.IND.4 Volume of PrEP prescribed" * publisher = "World Health Organization (WHO)" @@ -37,18 +37,6 @@ Title: "HIV.IND.4 Volume of PrEP prescribed" * criteria.language = #text/cql-identifier * criteria.expression = "Measure Observation" * stratifier[+] - * id = "HIV.IND.4.S.AG" + * id = "HIV.IND.4.S" * criteria.language = #text/cql-identifier - * criteria.expression = "Administrative Gender Stratifier" - * stratifier[+] - * id = "HIV.IND.4.S.A" - * criteria.language = #text/cql-identifier - * criteria.expression = "Age Stratifier" - * stratifier[+] - * id = "HIV.IND.4.S.GR" - * criteria.language = #text/cql-identifier - * criteria.expression = "Geographic Region Stratifier" - * stratifier[+] - * id = "HIV.IND.4.S.P" - * criteria.language = #text/cql-identifier - * criteria.expression = "patientGroups Stratifier" \ No newline at end of file + * criteria.expression = "Stratification" \ No newline at end of file diff --git a/input/fsh/measures/HIVIND40.fsh b/input/fsh/measures/HIVIND40.fsh index c234a2f88ec..594d77564c2 100644 --- a/input/fsh/measures/HIVIND40.fsh +++ b/input/fsh/measures/HIVIND40.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.40 ART coverage in pregnant women" * url = "http://smart.who.int/hiv/Measure/HIVIND40" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND40" * title = "HIV.IND.40 ART coverage in pregnant women" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND41.fsh b/input/fsh/measures/HIVIND41.fsh index 54c23e34b41..3d3586c8eca 100644 --- a/input/fsh/measures/HIVIND41.fsh +++ b/input/fsh/measures/HIVIND41.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.41 ART coverage in breastfeeding mothers" * url = "http://smart.who.int/hiv/Measure/HIVIND41" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND41" * title = "HIV.IND.41 ART coverage in breastfeeding mothers" * publisher = "World Health Organization (WHO)" @@ -29,7 +29,7 @@ Title: "HIV.IND.41 ART coverage in breastfeeding mothers" * criteria.expression = "Denominator" * population[numerator] * id = "HIV.IND.41.NUM" - * description = "Number of HIV-exposed breastfeeding infants whose mothers are receiving ART at 12 months (and 24 months*) postpartum" + * description = "Number of HIV-exposed breastfeeding infants whose mothers are receiving ART at 12 months (and 24 months) postpartum" * code = $measure-population#numerator "Numerator" * criteria.language = #text/cql-identifier * criteria.expression = "Numerator" \ No newline at end of file diff --git a/input/fsh/measures/HIVIND42.fsh b/input/fsh/measures/HIVIND42.fsh index 77f19ec4d95..7a83586cc13 100644 --- a/input/fsh/measures/HIVIND42.fsh +++ b/input/fsh/measures/HIVIND42.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.42 Final outcome of PMTCT" * url = "http://smart.who.int/hiv/Measure/HIVIND42" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND42" * title = "HIV.IND.42 Final outcome of PMTCT" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND43.fsh b/input/fsh/measures/HIVIND43.fsh index 0716bfdd9c3..c052e3baf20 100644 --- a/input/fsh/measures/HIVIND43.fsh +++ b/input/fsh/measures/HIVIND43.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.43 HIV prevalence among women attending ANC" * url = "http://smart.who.int/hiv/Measure/HIVIND43" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND43" * title = "HIV.IND.43 HIV prevalence among women attending ANC" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND44.fsh b/input/fsh/measures/HIVIND44.fsh index 4f3cd33fbba..5adbf896ab5 100644 --- a/input/fsh/measures/HIVIND44.fsh +++ b/input/fsh/measures/HIVIND44.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.44 TPT initiation" * url = "http://smart.who.int/hiv/Measure/HIVIND44" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND44" * title = "HIV.IND.44 TPT initiation" * publisher = "World Health Organization (WHO)" @@ -32,4 +32,8 @@ Title: "HIV.IND.44 TPT initiation" * description = "Number of ART patients who initiated TPT during the reporting period" * code = $measure-population#numerator "Numerator" * criteria.language = #text/cql-identifier - * criteria.expression = "Numerator" \ No newline at end of file + * criteria.expression = "Numerator" + * stratifier[+] + * id = "HIV.IND.44.S" + * criteria.language = #text/cql-identifier + * criteria.expression = "Stratification" \ No newline at end of file diff --git a/input/fsh/measures/HIVIND45.fsh b/input/fsh/measures/HIVIND45.fsh index a2e1ebe3286..79519abee5a 100644 --- a/input/fsh/measures/HIVIND45.fsh +++ b/input/fsh/measures/HIVIND45.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.45 TPT completion" * url = "http://smart.who.int/hiv/Measure/HIVIND45" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND45" * title = "HIV.IND.45 TPT completion" * publisher = "World Health Organization (WHO)" @@ -32,4 +32,8 @@ Title: "HIV.IND.45 TPT completion" * description = "Number of ART patients who completed a course of TPT during the reporting period" * code = $measure-population#numerator "Numerator" * criteria.language = #text/cql-identifier - * criteria.expression = "Numerator" \ No newline at end of file + * criteria.expression = "Numerator" + * stratifier[+] + * id = "HIV.IND.45.S" + * criteria.language = #text/cql-identifier + * criteria.expression = "Stratification" \ No newline at end of file diff --git a/input/fsh/measures/HIVIND46.fsh b/input/fsh/measures/HIVIND46.fsh index f87b537dfdd..04328e1debd 100644 --- a/input/fsh/measures/HIVIND46.fsh +++ b/input/fsh/measures/HIVIND46.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.46 TB diagnostic testing type" * url = "http://smart.who.int/hiv/Measure/HIVIND46" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND46" * title = "HIV.IND.46 TB diagnostic testing type" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND47.fsh b/input/fsh/measures/HIVIND47.fsh index 34f2a3ee6a6..61a58821247 100644 --- a/input/fsh/measures/HIVIND47.fsh +++ b/input/fsh/measures/HIVIND47.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.47 People living with HIV with active TB disease" * url = "http://smart.who.int/hiv/Measure/HIVIND47" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND47" * title = "HIV.IND.47 People living with HIV with active TB disease" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND48.fsh b/input/fsh/measures/HIVIND48.fsh index 10eaa937c24..8bdd096ae98 100644 --- a/input/fsh/measures/HIVIND48.fsh +++ b/input/fsh/measures/HIVIND48.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.48 TB screening coverage among new ART patients" * url = "http://smart.who.int/hiv/Measure/HIVIND48" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND48" * title = "HIV.IND.48 TB screening coverage among new ART patients" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND49.fsh b/input/fsh/measures/HIVIND49.fsh index 78f11f914b5..2aa7f0f0249 100644 --- a/input/fsh/measures/HIVIND49.fsh +++ b/input/fsh/measures/HIVIND49.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.49 TB symptom-screened positive among new ART patients" * url = "http://smart.who.int/hiv/Measure/HIVIND49" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND49" * title = "HIV.IND.49 TB symptom-screened positive among new ART patients" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND5.fsh b/input/fsh/measures/HIVIND5.fsh index b48c2cf19fc..ba7d759deb6 100644 --- a/input/fsh/measures/HIVIND5.fsh +++ b/input/fsh/measures/HIVIND5.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.5 Number of PEP recipients" * url = "http://smart.who.int/hiv/Measure/HIVIND5" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND5" * title = "HIV.IND.5 Number of PEP recipients" * publisher = "World Health Organization (WHO)" @@ -37,18 +37,6 @@ Title: "HIV.IND.5 Number of PEP recipients" * criteria.language = #text/cql-identifier * criteria.expression = "Measure Observation" * stratifier[+] - * id = "HIV.IND.5.S.AG" + * id = "HIV.IND.5.S" * criteria.language = #text/cql-identifier - * criteria.expression = "Administrative Gender Stratifier" - * stratifier[+] - * id = "HIV.IND.5.S.A" - * criteria.language = #text/cql-identifier - * criteria.expression = "Age Stratifier" - * stratifier[+] - * id = "HIV.IND.5.S.GR" - * criteria.language = #text/cql-identifier - * criteria.expression = "Geographic Region Stratifier" - * stratifier[+] - * id = "HIV.IND.5.S.P" - * criteria.language = #text/cql-identifier - * criteria.expression = "patientGroups Stratifier" \ No newline at end of file + * criteria.expression = "Stratification" \ No newline at end of file diff --git a/input/fsh/measures/HIVIND50.fsh b/input/fsh/measures/HIVIND50.fsh index 7a043da19f5..1f0292292dc 100644 --- a/input/fsh/measures/HIVIND50.fsh +++ b/input/fsh/measures/HIVIND50.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.50 TB testing among those symptom-screened positive" * url = "http://smart.who.int/hiv/Measure/HIVIND50" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND50" * title = "HIV.IND.50 TB testing among those symptom-screened positive" * publisher = "World Health Organization (WHO)" @@ -29,7 +29,7 @@ Title: "HIV.IND.50 TB testing among those symptom-screened positive" * criteria.expression = "Denominator" * population[numerator] * id = "HIV.IND.50.NUM" - * description = "Number of people living with HIV newly initiated on ART who are investigated for active TB disease with appropriate diagnostic testing*" + * description = "Number of people living with HIV newly initiated on ART who are investigated for active TB disease with appropriate diagnostic testing" * code = $measure-population#numerator "Numerator" * criteria.language = #text/cql-identifier * criteria.expression = "Numerator" \ No newline at end of file diff --git a/input/fsh/measures/HIVIND51.fsh b/input/fsh/measures/HIVIND51.fsh index 58940b01def..b732c3c3302 100644 --- a/input/fsh/measures/HIVIND51.fsh +++ b/input/fsh/measures/HIVIND51.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.51 TB diagnosis among those tested for TB" * url = "http://smart.who.int/hiv/Measure/HIVIND51" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND51" * title = "HIV.IND.51 TB diagnosis among those tested for TB" * publisher = "World Health Organization (WHO)" @@ -23,7 +23,7 @@ Title: "HIV.IND.51 TB diagnosis among those tested for TB" * criteria.expression = "Initial Population" * population[denominator] * id = "HIV.IND.51.DEN" - * description = "Number of people living with HIV who newly initiated ART and screened positive for TB symptoms who had appropriate diagnostic testing during the reporting period*" + * description = "Number of people living with HIV who newly initiated ART and screened positive for TB symptoms who had appropriate diagnostic testing during the reporting period" * code = $measure-population#denominator "Denominator" * criteria.language = #text/cql-identifier * criteria.expression = "Denominator" diff --git a/input/fsh/measures/HIVIND52.fsh b/input/fsh/measures/HIVIND52.fsh index 2f32fcd96f0..fec6d9db416 100644 --- a/input/fsh/measures/HIVIND52.fsh +++ b/input/fsh/measures/HIVIND52.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.52 TB treatment initiation among diagnosed" * url = "http://smart.who.int/hiv/Measure/HIVIND52" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND52" * title = "HIV.IND.52 TB treatment initiation among diagnosed" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND53.fsh b/input/fsh/measures/HIVIND53.fsh index 9bc42dd75fe..1dfe17a7000 100644 --- a/input/fsh/measures/HIVIND53.fsh +++ b/input/fsh/measures/HIVIND53.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.53 Multi-month ARV dispensing" * url = "http://smart.who.int/hiv/Measure/HIVIND53" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND53" * title = "HIV.IND.53 Multi-month ARV dispensing" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND54.fsh b/input/fsh/measures/HIVIND54.fsh index c7c13f1f34c..9cc7ae0f0e8 100644 --- a/input/fsh/measures/HIVIND54.fsh +++ b/input/fsh/measures/HIVIND54.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.54 Uptake of DSD ART models among people living with HIV" * url = "http://smart.who.int/hiv/Measure/HIVIND54" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND54" * title = "HIV.IND.54 Uptake of DSD ART models among people living with HIV" * publisher = "World Health Organization (WHO)" @@ -23,7 +23,7 @@ Title: "HIV.IND.54 Uptake of DSD ART models among people living with HIV" * criteria.expression = "Initial Population" * population[denominator] * id = "HIV.IND.54.DEN" - * description = "Number of people on ART newly eligible* for DSD ART models during the reporting period. For facilities with electronic health information systems, it is possible to measure uptake as a proportion of all people living with HIV eligible for DSD. | | No denominator for facilities with paper-based reporting systems" + * description = "Number of people on ART newly eligible for DSD ART models during the reporting period. For facilities with electronic health information systems, it is possible to measure uptake as a proportion of all people living with HIV eligible for DSD. | | No denominator for facilities with paper-based reporting systems" * code = $measure-population#denominator "Denominator" * criteria.language = #text/cql-identifier * criteria.expression = "Denominator" diff --git a/input/fsh/measures/HIVIND55.fsh b/input/fsh/measures/HIVIND55.fsh index e6c65942899..a49029ec5f9 100644 --- a/input/fsh/measures/HIVIND55.fsh +++ b/input/fsh/measures/HIVIND55.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.55 Coverage of DSD ART models among people living with HIV on AR * url = "http://smart.who.int/hiv/Measure/HIVIND55" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND55" * title = "HIV.IND.55 Coverage of DSD ART models among people living with HIV on ART" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND56.fsh b/input/fsh/measures/HIVIND56.fsh index d4ee7ef1bec..7152fe0b139 100644 --- a/input/fsh/measures/HIVIND56.fsh +++ b/input/fsh/measures/HIVIND56.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.56 Retention in DSD ART models" * url = "http://smart.who.int/hiv/Measure/HIVIND56" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND56" * title = "HIV.IND.56 Retention in DSD ART models" * publisher = "World Health Organization (WHO)" @@ -29,7 +29,7 @@ Title: "HIV.IND.56 Retention in DSD ART models" * criteria.expression = "Denominator" * population[numerator] * id = "HIV.IND.56.NUM" - * description = "Number of people on ART known to be on treatment 12 months after enrolling in a DSD ART model* (also at 24, 36, 48, 60 months, etc. after enrolment in the model)" + * description = "Number of people on ART known to be on treatment 12 months after enrolling in a DSD ART model (also at 24, 36, 48, 60 months, etc. after enrolment in the model)" * code = $measure-population#numerator "Numerator" * criteria.language = #text/cql-identifier * criteria.expression = "Numerator" \ No newline at end of file diff --git a/input/fsh/measures/HIVIND57.fsh b/input/fsh/measures/HIVIND57.fsh index 230f2849a28..540893f4529 100644 --- a/input/fsh/measures/HIVIND57.fsh +++ b/input/fsh/measures/HIVIND57.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.57 Viral suppression among people living with HIV engaged in DSD * url = "http://smart.who.int/hiv/Measure/HIVIND57" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND57" * title = "HIV.IND.57 Viral suppression among people living with HIV engaged in DSD ART models" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND58.fsh b/input/fsh/measures/HIVIND58.fsh index 2fcdd3202b7..baae68835e9 100644 --- a/input/fsh/measures/HIVIND58.fsh +++ b/input/fsh/measures/HIVIND58.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.58 Syphilis testing coverage, HIV prevention services" * url = "http://smart.who.int/hiv/Measure/HIVIND58" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND58" * title = "HIV.IND.58 Syphilis testing coverage, HIV prevention services" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND59.fsh b/input/fsh/measures/HIVIND59.fsh index b2658d7d0dc..d1c93efb890 100644 --- a/input/fsh/measures/HIVIND59.fsh +++ b/input/fsh/measures/HIVIND59.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.59 Syphilis testing coverage, HIV-positive clients" * url = "http://smart.who.int/hiv/Measure/HIVIND59" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND59" * title = "HIV.IND.59 Syphilis testing coverage, HIV-positive clients" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND6.fsh b/input/fsh/measures/HIVIND6.fsh index 0c6c6c1644d..14ceb2647b6 100644 --- a/input/fsh/measures/HIVIND6.fsh +++ b/input/fsh/measures/HIVIND6.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.6 PEP completion" * url = "http://smart.who.int/hiv/Measure/HIVIND6" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND6" * title = "HIV.IND.6 PEP completion" * publisher = "World Health Organization (WHO)" @@ -34,18 +34,6 @@ Title: "HIV.IND.6 PEP completion" * criteria.language = #text/cql-identifier * criteria.expression = "Numerator" * stratifier[+] - * id = "HIV.IND.6.S.AG" + * id = "HIV.IND.6.S" * criteria.language = #text/cql-identifier - * criteria.expression = "Administrative Gender Stratifier" - * stratifier[+] - * id = "HIV.IND.6.S.A" - * criteria.language = #text/cql-identifier - * criteria.expression = "Age Stratifier" - * stratifier[+] - * id = "HIV.IND.6.S.GR" - * criteria.language = #text/cql-identifier - * criteria.expression = "Geographic Region Stratifier" - * stratifier[+] - * id = "HIV.IND.6.S.P" - * criteria.language = #text/cql-identifier - * criteria.expression = "patientGroups Stratifier" \ No newline at end of file + * criteria.expression = "Stratification" \ No newline at end of file diff --git a/input/fsh/measures/HIVIND60.fsh b/input/fsh/measures/HIVIND60.fsh index 5623ff2fcd3..60ba4e80388 100644 --- a/input/fsh/measures/HIVIND60.fsh +++ b/input/fsh/measures/HIVIND60.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.60 Syphilis testing coverage, pregnant women, first ANC visit" * url = "http://smart.who.int/hiv/Measure/HIVIND60" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND60" * title = "HIV.IND.60 Syphilis testing coverage, pregnant women, first ANC visit" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND61.fsh b/input/fsh/measures/HIVIND61.fsh index 76fb44d3ae7..e751975de6f 100644 --- a/input/fsh/measures/HIVIND61.fsh +++ b/input/fsh/measures/HIVIND61.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.61 Syphilis testing coverage, pregnant women, any ANC visit" * url = "http://smart.who.int/hiv/Measure/HIVIND61" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND61" * title = "HIV.IND.61 Syphilis testing coverage, pregnant women, any ANC visit" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND62.fsh b/input/fsh/measures/HIVIND62.fsh index ca3fd66e824..a819e3343e4 100644 --- a/input/fsh/measures/HIVIND62.fsh +++ b/input/fsh/measures/HIVIND62.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.62 Syphilis test positivity, HIV prevention services" * url = "http://smart.who.int/hiv/Measure/HIVIND62" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND62" * title = "HIV.IND.62 Syphilis test positivity, HIV prevention services" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND63.fsh b/input/fsh/measures/HIVIND63.fsh index a25f2dba9e5..1ca51942e49 100644 --- a/input/fsh/measures/HIVIND63.fsh +++ b/input/fsh/measures/HIVIND63.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.63 Syphilis test positivity, HIV-positive clients" * url = "http://smart.who.int/hiv/Measure/HIVIND63" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND63" * title = "HIV.IND.63 Syphilis test positivity, HIV-positive clients" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND64.fsh b/input/fsh/measures/HIVIND64.fsh index b203c617116..7da36c3354f 100644 --- a/input/fsh/measures/HIVIND64.fsh +++ b/input/fsh/measures/HIVIND64.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.64 Syphilis test positivity, pregnant women, first visit" * url = "http://smart.who.int/hiv/Measure/HIVIND64" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND64" * title = "HIV.IND.64 Syphilis test positivity, pregnant women, first visit" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND65.fsh b/input/fsh/measures/HIVIND65.fsh index 922c8a0c68e..f68e815e877 100644 --- a/input/fsh/measures/HIVIND65.fsh +++ b/input/fsh/measures/HIVIND65.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.65 Syphilis test positivity, pregnant women, any visit" * url = "http://smart.who.int/hiv/Measure/HIVIND65" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND65" * title = "HIV.IND.65 Syphilis test positivity, pregnant women, any visit" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND66.fsh b/input/fsh/measures/HIVIND66.fsh index d7d62943d78..f783f24cc9e 100644 --- a/input/fsh/measures/HIVIND66.fsh +++ b/input/fsh/measures/HIVIND66.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.66 Syphilis treatment coverage, HIV prevention services" * url = "http://smart.who.int/hiv/Measure/HIVIND66" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND66" * title = "HIV.IND.66 Syphilis treatment coverage, HIV prevention services" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND67.fsh b/input/fsh/measures/HIVIND67.fsh index 4b1eddbaca7..129f414b853 100644 --- a/input/fsh/measures/HIVIND67.fsh +++ b/input/fsh/measures/HIVIND67.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.67 Syphilis treatment coverage, HIV-positive clients" * url = "http://smart.who.int/hiv/Measure/HIVIND67" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND67" * title = "HIV.IND.67 Syphilis treatment coverage, HIV-positive clients" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND68.fsh b/input/fsh/measures/HIVIND68.fsh index 990fe72f01a..74f47411577 100644 --- a/input/fsh/measures/HIVIND68.fsh +++ b/input/fsh/measures/HIVIND68.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.68 Syphilis treatment coverage, pregnant women, first ANC visit" * url = "http://smart.who.int/hiv/Measure/HIVIND68" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND68" * title = "HIV.IND.68 Syphilis treatment coverage, pregnant women, first ANC visit" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND69.fsh b/input/fsh/measures/HIVIND69.fsh index 6461cfbe0fc..49e25cc3b77 100644 --- a/input/fsh/measures/HIVIND69.fsh +++ b/input/fsh/measures/HIVIND69.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.69 Syphilis treatment coverage, pregnant women, any ANC visit" * url = "http://smart.who.int/hiv/Measure/HIVIND69" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND69" * title = "HIV.IND.69 Syphilis treatment coverage, pregnant women, any ANC visit" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND7.fsh b/input/fsh/measures/HIVIND7.fsh index d0b7f6a961b..d7b60e1e7d2 100644 --- a/input/fsh/measures/HIVIND7.fsh +++ b/input/fsh/measures/HIVIND7.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.7 HIV in PEP recipients" * url = "http://smart.who.int/hiv/Measure/HIVIND7" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND7" * title = "HIV.IND.7 HIV in PEP recipients" * publisher = "World Health Organization (WHO)" @@ -34,18 +34,6 @@ Title: "HIV.IND.7 HIV in PEP recipients" * criteria.language = #text/cql-identifier * criteria.expression = "Numerator" * stratifier[+] - * id = "HIV.IND.7.S.AG" + * id = "HIV.IND.7.S" * criteria.language = #text/cql-identifier - * criteria.expression = "Administrative Gender Stratifier" - * stratifier[+] - * id = "HIV.IND.7.S.A" - * criteria.language = #text/cql-identifier - * criteria.expression = "Age Stratifier" - * stratifier[+] - * id = "HIV.IND.7.S.GR" - * criteria.language = #text/cql-identifier - * criteria.expression = "Geographic Region Stratifier" - * stratifier[+] - * id = "HIV.IND.7.S.P" - * criteria.language = #text/cql-identifier - * criteria.expression = "patientGroups Stratifier" \ No newline at end of file + * criteria.expression = "Stratification" \ No newline at end of file diff --git a/input/fsh/measures/HIVIND70.fsh b/input/fsh/measures/HIVIND70.fsh index 1068160b932..13b73ec00e0 100644 --- a/input/fsh/measures/HIVIND70.fsh +++ b/input/fsh/measures/HIVIND70.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.70 Gonorrhoea testing coverage, HIV prevention services" * url = "http://smart.who.int/hiv/Measure/HIVIND70" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND70" * title = "HIV.IND.70 Gonorrhoea testing coverage, HIV prevention services" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND71.fsh b/input/fsh/measures/HIVIND71.fsh index 054cf6677fc..93ce0314bd1 100644 --- a/input/fsh/measures/HIVIND71.fsh +++ b/input/fsh/measures/HIVIND71.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.71 Gonorrhoea testing coverage, HIV-positive clients" * url = "http://smart.who.int/hiv/Measure/HIVIND71" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND71" * title = "HIV.IND.71 Gonorrhoea testing coverage, HIV-positive clients" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND72.fsh b/input/fsh/measures/HIVIND72.fsh index f49478dbf8d..25b7dd842df 100644 --- a/input/fsh/measures/HIVIND72.fsh +++ b/input/fsh/measures/HIVIND72.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.72 Gonorrhoea test positivity, HIV prevention services" * url = "http://smart.who.int/hiv/Measure/HIVIND72" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND72" * title = "HIV.IND.72 Gonorrhoea test positivity, HIV prevention services" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND73.fsh b/input/fsh/measures/HIVIND73.fsh index fc626bda974..426a240fa7f 100644 --- a/input/fsh/measures/HIVIND73.fsh +++ b/input/fsh/measures/HIVIND73.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.73 Gonorrhoea test positivity, HIV-positive clients" * url = "http://smart.who.int/hiv/Measure/HIVIND73" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND73" * title = "HIV.IND.73 Gonorrhoea test positivity, HIV-positive clients" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND74.fsh b/input/fsh/measures/HIVIND74.fsh index aa0ba283070..ef10791f0b9 100644 --- a/input/fsh/measures/HIVIND74.fsh +++ b/input/fsh/measures/HIVIND74.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.74 Gonorrhoea treatment coverage, HIV prevention services" * url = "http://smart.who.int/hiv/Measure/HIVIND74" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND74" * title = "HIV.IND.74 Gonorrhoea treatment coverage, HIV prevention services" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND75.fsh b/input/fsh/measures/HIVIND75.fsh index 799a64ed97d..63dd93baaa4 100644 --- a/input/fsh/measures/HIVIND75.fsh +++ b/input/fsh/measures/HIVIND75.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.75 Gonorrhoea treatment coverage, HIV-positive clients" * url = "http://smart.who.int/hiv/Measure/HIVIND75" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND75" * title = "HIV.IND.75 Gonorrhoea treatment coverage, HIV-positive clients" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND76.fsh b/input/fsh/measures/HIVIND76.fsh index 8947fcf711e..952892d7dce 100644 --- a/input/fsh/measures/HIVIND76.fsh +++ b/input/fsh/measures/HIVIND76.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.76 Presence of STI syndrome, HIV prevention services" * url = "http://smart.who.int/hiv/Measure/HIVIND76" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND76" * title = "HIV.IND.76 Presence of STI syndrome, HIV prevention services" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND77.fsh b/input/fsh/measures/HIVIND77.fsh index e489ba3fec3..f23d39f4e1e 100644 --- a/input/fsh/measures/HIVIND77.fsh +++ b/input/fsh/measures/HIVIND77.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.77 Presence of STI syndrome, HIV-positive clients" * url = "http://smart.who.int/hiv/Measure/HIVIND77" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND77" * title = "HIV.IND.77 Presence of STI syndrome, HIV-positive clients" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND78.fsh b/input/fsh/measures/HIVIND78.fsh index ced341b859c..54098ea6b86 100644 --- a/input/fsh/measures/HIVIND78.fsh +++ b/input/fsh/measures/HIVIND78.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.78 Repeat diagnosis of STI syndrome, HIV prevention services" * url = "http://smart.who.int/hiv/Measure/HIVIND78" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND78" * title = "HIV.IND.78 Repeat diagnosis of STI syndrome, HIV prevention services" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND79.fsh b/input/fsh/measures/HIVIND79.fsh index 3114da07557..3d893e74104 100644 --- a/input/fsh/measures/HIVIND79.fsh +++ b/input/fsh/measures/HIVIND79.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.79 Repeat diagnosis of STI syndrome, HIV-positive clients" * url = "http://smart.who.int/hiv/Measure/HIVIND79" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND79" * title = "HIV.IND.79 Repeat diagnosis of STI syndrome, HIV-positive clients" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND8.fsh b/input/fsh/measures/HIVIND8.fsh index a3b1dc6c0e2..c04985c5260 100644 --- a/input/fsh/measures/HIVIND8.fsh +++ b/input/fsh/measures/HIVIND8.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.8 NSP coverage" * url = "http://smart.who.int/hiv/Measure/HIVIND8" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND8" * title = "HIV.IND.8 NSP coverage" * publisher = "World Health Organization (WHO)" @@ -34,18 +34,6 @@ Title: "HIV.IND.8 NSP coverage" * criteria.language = #text/cql-identifier * criteria.expression = "Numerator" * stratifier[+] - * id = "HIV.IND.8.S.AG" + * id = "HIV.IND.8.S" * criteria.language = #text/cql-identifier - * criteria.expression = "Administrative Gender Stratifier" - * stratifier[+] - * id = "HIV.IND.8.S.A" - * criteria.language = #text/cql-identifier - * criteria.expression = "Age Stratifier" - * stratifier[+] - * id = "HIV.IND.8.S.GR" - * criteria.language = #text/cql-identifier - * criteria.expression = "Geographic Region Stratifier" - * stratifier[+] - * id = "HIV.IND.8.S.P" - * criteria.language = #text/cql-identifier - * criteria.expression = "patientGroups Stratifier" \ No newline at end of file + * criteria.expression = "Stratification" \ No newline at end of file diff --git a/input/fsh/measures/HIVIND80.fsh b/input/fsh/measures/HIVIND80.fsh index bec8c007dcc..1d59bd4082c 100644 --- a/input/fsh/measures/HIVIND80.fsh +++ b/input/fsh/measures/HIVIND80.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.80 HBV test coverage, HIV prevention services" * url = "http://smart.who.int/hiv/Measure/HIVIND80" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND80" * title = "HIV.IND.80 HBV test coverage, HIV prevention services" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND81.fsh b/input/fsh/measures/HIVIND81.fsh index f71bd9ea574..c47110f46c7 100644 --- a/input/fsh/measures/HIVIND81.fsh +++ b/input/fsh/measures/HIVIND81.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.81 HBV test coverage, HIV-positive clients" * url = "http://smart.who.int/hiv/Measure/HIVIND81" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND81" * title = "HIV.IND.81 HBV test coverage, HIV-positive clients" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND82.fsh b/input/fsh/measures/HIVIND82.fsh index 4ba5af316ff..70b35c10495 100644 --- a/input/fsh/measures/HIVIND82.fsh +++ b/input/fsh/measures/HIVIND82.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.82 HBV test coverage, pregnant women" * url = "http://smart.who.int/hiv/Measure/HIVIND82" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND82" * title = "HIV.IND.82 HBV test coverage, pregnant women" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND83.fsh b/input/fsh/measures/HIVIND83.fsh index 6e6589bdeab..e1fa80510b6 100644 --- a/input/fsh/measures/HIVIND83.fsh +++ b/input/fsh/measures/HIVIND83.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.83 HCV test coverage, HIV prevention services" * url = "http://smart.who.int/hiv/Measure/HIVIND83" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND83" * title = "HIV.IND.83 HCV test coverage, HIV prevention services" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND84.fsh b/input/fsh/measures/HIVIND84.fsh index d6390a6cdc6..2c1be83abc1 100644 --- a/input/fsh/measures/HIVIND84.fsh +++ b/input/fsh/measures/HIVIND84.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.84 HCV test coverage, HIV-positive clients" * url = "http://smart.who.int/hiv/Measure/HIVIND84" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND84" * title = "HIV.IND.84 HCV test coverage, HIV-positive clients" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND85.fsh b/input/fsh/measures/HIVIND85.fsh index 388b11f1135..4289ee8b157 100644 --- a/input/fsh/measures/HIVIND85.fsh +++ b/input/fsh/measures/HIVIND85.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.85 HBsAg positivity, HIV prevention services" * url = "http://smart.who.int/hiv/Measure/HIVIND85" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND85" * title = "HIV.IND.85 HBsAg positivity, HIV prevention services" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND86.fsh b/input/fsh/measures/HIVIND86.fsh index d7b6afe7646..eea72d6ea9e 100644 --- a/input/fsh/measures/HIVIND86.fsh +++ b/input/fsh/measures/HIVIND86.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.86 HBsAg positivity, HIV-positive clients" * url = "http://smart.who.int/hiv/Measure/HIVIND86" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND86" * title = "HIV.IND.86 HBsAg positivity, HIV-positive clients" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND87.fsh b/input/fsh/measures/HIVIND87.fsh index eca822fa1b7..3be81ad17cf 100644 --- a/input/fsh/measures/HIVIND87.fsh +++ b/input/fsh/measures/HIVIND87.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.87 HBsAg positivity, pregnant women" * url = "http://smart.who.int/hiv/Measure/HIVIND87" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND87" * title = "HIV.IND.87 HBsAg positivity, pregnant women" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND88.fsh b/input/fsh/measures/HIVIND88.fsh index 0819b384401..ab7c99c692c 100644 --- a/input/fsh/measures/HIVIND88.fsh +++ b/input/fsh/measures/HIVIND88.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.88 HCV positivity, HIV prevention services" * url = "http://smart.who.int/hiv/Measure/HIVIND88" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND88" * title = "HIV.IND.88 HCV positivity, HIV prevention services" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND89.fsh b/input/fsh/measures/HIVIND89.fsh index bdb06257314..56ea1414102 100644 --- a/input/fsh/measures/HIVIND89.fsh +++ b/input/fsh/measures/HIVIND89.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.89 HCV positivity, HIV-positive clients" * url = "http://smart.who.int/hiv/Measure/HIVIND89" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND89" * title = "HIV.IND.89 HCV positivity, HIV-positive clients" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND9.fsh b/input/fsh/measures/HIVIND9.fsh index f67e8c5e104..1ed29aab782 100644 --- a/input/fsh/measures/HIVIND9.fsh +++ b/input/fsh/measures/HIVIND9.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.9 Regular NSP access" * url = "http://smart.who.int/hiv/Measure/HIVIND9" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND9" * title = "HIV.IND.9 Regular NSP access" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND90.fsh b/input/fsh/measures/HIVIND90.fsh index 6c7a6a35ca1..ee30e8c1050 100644 --- a/input/fsh/measures/HIVIND90.fsh +++ b/input/fsh/measures/HIVIND90.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.90 HBV treatment among people living with HIV" * url = "http://smart.who.int/hiv/Measure/HIVIND90" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND90" * title = "HIV.IND.90 HBV treatment among people living with HIV" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND91.fsh b/input/fsh/measures/HIVIND91.fsh index 150f804b30f..09e33e6a9cf 100644 --- a/input/fsh/measures/HIVIND91.fsh +++ b/input/fsh/measures/HIVIND91.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.91 HCV treatment among people living with HIV" * url = "http://smart.who.int/hiv/Measure/HIVIND91" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND91" * title = "HIV.IND.91 HCV treatment among people living with HIV" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND92.fsh b/input/fsh/measures/HIVIND92.fsh index c4758f43940..7fb9b9034c4 100644 --- a/input/fsh/measures/HIVIND92.fsh +++ b/input/fsh/measures/HIVIND92.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.92 HCV cured among people living with HIV" * url = "http://smart.who.int/hiv/Measure/HIVIND92" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND92" * title = "HIV.IND.92 HCV cured among people living with HIV" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND93.fsh b/input/fsh/measures/HIVIND93.fsh index 6ef53ee1788..f2ebf0f886d 100644 --- a/input/fsh/measures/HIVIND93.fsh +++ b/input/fsh/measures/HIVIND93.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.93 Cervical cancer screening" * url = "http://smart.who.int/hiv/Measure/HIVIND93" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND93" * title = "HIV.IND.93 Cervical cancer screening" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND94.fsh b/input/fsh/measures/HIVIND94.fsh index c02a382b9cb..f40b6bee993 100644 --- a/input/fsh/measures/HIVIND94.fsh +++ b/input/fsh/measures/HIVIND94.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.94 Pre-invasive cervical disease treatment" * url = "http://smart.who.int/hiv/Measure/HIVIND94" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND94" * title = "HIV.IND.94 Pre-invasive cervical disease treatment" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND95.fsh b/input/fsh/measures/HIVIND95.fsh index b0565599ab7..e2ee27afeb9 100644 --- a/input/fsh/measures/HIVIND95.fsh +++ b/input/fsh/measures/HIVIND95.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.95 Invasive cervical cancer treatment" * url = "http://smart.who.int/hiv/Measure/HIVIND95" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND95" * title = "HIV.IND.95 Invasive cervical cancer treatment" * publisher = "World Health Organization (WHO)" diff --git a/input/fsh/measures/HIVIND96.fsh b/input/fsh/measures/HIVIND96.fsh index 9983a9e1b6d..aa44fc13e90 100644 --- a/input/fsh/measures/HIVIND96.fsh +++ b/input/fsh/measures/HIVIND96.fsh @@ -8,7 +8,7 @@ Title: "HIV.IND.96 Cervical cancer survival" * url = "http://smart.who.int/hiv/Measure/HIVIND96" * status = #draft * experimental = true -* date = "2024-07-12" +* date = "2024-08-05" * name = "HIVIND96" * title = "HIV.IND.96 Cervical cancer survival" * publisher = "World Health Organization (WHO)" From dea3370b1f87bfea54e1c4bcfd5520efd1c1979f Mon Sep 17 00:00:00 2001 From: Patric Prado Date: Thu, 8 Aug 2024 19:01:11 -0700 Subject: [PATCH 08/10] indicators 46-47 --- input/cql/HIVElements.cql | 116 ++++++++-------------------- input/cql/HIVIND46Logic.cql | 46 ++++++++++- input/cql/HIVIND47Logic.cql | 32 +++++++- input/cql/HIVIndicatorElements.cql | 118 +++++++---------------------- 4 files changed, 135 insertions(+), 177 deletions(-) diff --git a/input/cql/HIVElements.cql b/input/cql/HIVElements.cql index 34f69be6121..ab31cde4219 100644 --- a/input/cql/HIVElements.cql +++ b/input/cql/HIVElements.cql @@ -11609,13 +11609,10 @@ define "Presumptive TB D.DE945 Observation": @activity: HIV.D8 Capture or update client history @description: The date when the diagnosis was established */ -// TODO: Replace placeholder with relevant CQL logic + define "Date of TB diagnosis": - [Observation: Concepts."Date of TB diagnosis"] O - where O.status in { 'final', 'amended', 'corrected' } -define "Date of TB diagnosis Value": - "Date of TB diagnosis" O - return O.value + [Condition: Concepts."Diagnosed TB"] C + return C.prevalenceInterval() /* End of Date of TB diagnosis */ /* @@ -12100,10 +12097,8 @@ define "History of contact with a person with TB Observation": @activity: HIV.D4 Screen for TB @description: Record the result of the tuberculosis (TB) screening */ -// TODO: Replace placeholder with relevant CQL logic + define "TB screening result": - exists "TB screening result Observation" -define "TB screening result Observation": [Observation: Concepts."TB screening result"] O where O.status in { 'final', 'amended', 'corrected' } /* End of TB screening result */ @@ -12113,16 +12108,10 @@ define "TB screening result Observation": @activity: HIV.D4 Screen for TB @description: Screening result was positive for tuberculosis (TB) */ -// TODO: Replace placeholder with relevant CQL logic + define "Screen positive for TB": - exists "Screen positive for TB Condition" - or exists "Screen positive for TB Observation" -define "Screen positive for TB Condition": - [Condition: Concepts."Screen positive for TB"] -define "Screen positive for TB Observation": - "TB screening result Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."Screen positive for TB" + "TB screening result" O + where O.value ~ Concepts."Screen positive for TB" /* End of Screen positive for TB */ /* @@ -12130,16 +12119,10 @@ define "Screen positive for TB Observation": @activity: HIV.D4 Screen for TB @description: Screening result was negative for tuberculosis (TB) */ -// TODO: Replace placeholder with relevant CQL logic + define "Screen negative for TB": - exists "Screen negative for TB Condition" - or exists "Screen negative for TB Observation" -define "Screen negative for TB Condition": - [Condition: Concepts."Screen negative for TB"] -define "Screen negative for TB Observation": - "TB screening result Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."Screen negative for TB" + "TB screening result" O + where O.value ~ Concepts."Screen negative for TB" /* End of Screen negative for TB */ /* @@ -12147,16 +12130,10 @@ define "Screen negative for TB Observation": @activity: HIV.D4 Screen for TB @description: Screening result was inconclusive for tuberculosis (TB) */ -// TODO: Replace placeholder with relevant CQL logic + define "Inconclusive D.DE989": - exists "Inconclusive D.DE989 Condition" - or exists "Inconclusive D.DE989 Observation" -define "Inconclusive D.DE989 Condition": - [Condition: Concepts."Inconclusive - HIV.D.DE989"] -define "Inconclusive D.DE989 Observation": - "TB screening result Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."Inconclusive - HIV.D.DE989" + "TB screening result" O + where O.value ~ Concepts."Inconclusive - HIV.D.DE989" /* End of Inconclusive D.DE989 */ /* @@ -12164,13 +12141,11 @@ define "Inconclusive D.DE989 Observation": @activity: HIV.D4 Screen for TB @description: Date the TB screening was conducted */ -// TODO: Replace placeholder with relevant CQL logic + define "TB screening date": - [Observation: Concepts."TB screening date"] O - where O.status in { 'final', 'amended', 'corrected' } -define "TB screening date Value": - "TB screening date" O - return O.value + [Procedure] P + where P.status = 'completed' + and P.category ~ Concepts."TB diagnostic test category" /* End of TB screening date */ /* @@ -12178,12 +12153,11 @@ define "TB screening date Value": @activity: HIV.D4 Screen for TB @description: The type of diagnostic test performed to detect tuberculosis (TB) disease */ -// TODO: Replace placeholder with relevant CQL logic + define "TB diagnostic test category": - exists "TB diagnostic test category Observation" -define "TB diagnostic test category Observation": - [Observation: Concepts."TB diagnostic test category"] O - where O.status in { 'final', 'amended', 'corrected' } + [Procedure] P + where P.status = 'completed' + and P.category ~ Concepts."TB diagnostic test category" /* End of TB diagnostic test category */ /* @@ -12191,16 +12165,10 @@ define "TB diagnostic test category Observation": @activity: HIV.D4 Screen for TB @description: Client tested for tuberculosis with a lateral flow urine lipoarabinomannan assay */ -// TODO: Replace placeholder with relevant CQL logic + define "LF-LAM": - exists "LF-LAM Condition" - or exists "LF-LAM Observation" -define "LF-LAM Condition": - [Condition: Concepts."LF-LAM"] -define "LF-LAM Observation": - "TB diagnostic test category Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."LF-LAM" + "TB diagnostic test category" P + where P.code ~ Concepts."LF-LAM" /* End of LF-LAM */ /* @@ -12208,16 +12176,10 @@ define "LF-LAM Observation": @activity: HIV.D4 Screen for TB @description: Client tested with a WHO-recommended molecular diagnostic test to detect Mycobacterium tuberculosis (MTB) */ -// TODO: Replace placeholder with relevant CQL logic + define "mWRD test for TB": - exists "mWRD test for TB Condition" - or exists "mWRD test for TB Observation" -define "mWRD test for TB Condition": - [Condition: Concepts."mWRD test for TB"] -define "mWRD test for TB Observation": - "TB diagnostic test category Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."mWRD test for TB" + "TB diagnostic test category" P + where P.code ~ Concepts."mWRD test for TB" /* End of mWRD test for TB */ /* @@ -12225,16 +12187,10 @@ define "mWRD test for TB Observation": @activity: HIV.D4 Screen for TB @description: Client tested for tuberculosis with a sputum acid-fast bacilli (AFB) */ -// TODO: Replace placeholder with relevant CQL logic + define "Microscopy - Sputum acid-fast bacilli AFB": - exists "Microscopy - Sputum acid-fast bacilli AFB Condition" - or exists "Microscopy - Sputum acid-fast bacilli AFB Observation" -define "Microscopy - Sputum acid-fast bacilli AFB Condition": - [Condition: Concepts."Microscopy - Sputum acid-fast bacilli AFB"] -define "Microscopy - Sputum acid-fast bacilli AFB Observation": - "TB diagnostic test category Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."Microscopy - Sputum acid-fast bacilli AFB" + "TB diagnostic test category" P + where P.code ~ Concepts."Microscopy - Sputum acid-fast bacilli AFB" /* End of Microscopy - Sputum acid-fast bacilli AFB */ /* @@ -12242,16 +12198,10 @@ define "Microscopy - Sputum acid-fast bacilli AFB Observation": @activity: HIV.D4 Screen for TB @description: Client tested for tuberculosis (TB) with a culture */ -// TODO: Replace placeholder with relevant CQL logic + define "TB Culture": - exists "TB Culture Condition" - or exists "TB Culture Observation" -define "TB Culture Condition": - [Condition: Concepts."TB Culture"] -define "TB Culture Observation": - "TB diagnostic test category Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."TB Culture" + "TB diagnostic test category" P + where P.code ~ Concepts."TB Culture" /* End of TB Culture */ /* diff --git a/input/cql/HIVIND46Logic.cql b/input/cql/HIVIND46Logic.cql index 54bb23d97f2..1521bc1c077 100644 --- a/input/cql/HIVIND46Logic.cql +++ b/input/cql/HIVIND46Logic.cql @@ -86,6 +86,8 @@ include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -107,10 +109,18 @@ define "Initial Population": * Calculation: COUNT of clients with "HIV status"='HIV-positive' AND "TB screening date" in the reporting period AND "TB screening result"='Screen positive for TB' AND "TB diagnostic test category"='mWRD test for TB' */ -define "Numerator": - true +define "Numerator": + HIE."HIV-positive B.DE116" + and + exists( + HE."mWRD test for TB" P + with HE."Screen positive for TB" O + such that P.partOf.references(O) + where P.performed.toInterval() during "Measurement Period" + ) + /** * Denominator * @@ -119,8 +129,38 @@ define "Numerator": */ define "Denominator": - true + HIE."HIV-positive B.DE116" + and + exists( + HE."TB diagnostic test category" P + with HE."Screen positive for TB" O + such that P.partOf.references(O) + where P.performed.toInterval() during "Measurement Period" + ) /* end Populations */ +/* + * Disaggregators + */ + +define "Administrative Gender Stratifier": + HIC."By Administrative Gender Stratifier" + +define "Age Stratifier": + HIC."By Age Stratifier" + +define "Geographic Region Stratifier": + HIC."By Geographic Region Stratifier" + +define "patientGroups Stratifier": + HIC."patientGroups" + +define "Stratification": + HIC."By Administrative Gender Stratifier".code + + ':' + HIC."By Age Stratifier" ++ ':' + HIC."By Geographic Region Stratifier" ++ Combine(HIC.patientGroups, ':') + +//add Pregnant or breastfeeding women \ No newline at end of file diff --git a/input/cql/HIVIND47Logic.cql b/input/cql/HIVIND47Logic.cql index 95150cd7c46..8f11a1472fd 100644 --- a/input/cql/HIVIND47Logic.cql +++ b/input/cql/HIVIND47Logic.cql @@ -79,6 +79,8 @@ include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -101,7 +103,9 @@ define "Initial Population": */ define "Numerator": - true + HIE."HIV-positive B.DE116" + and (start of HIC."First On ART".effective.toInterval() during "Measurement Period") + and HIE."Date of TB diagnosis" /** @@ -112,8 +116,32 @@ define "Numerator": */ define "Denominator": - true + HIE."HIV-positive B.DE116" + and (start of HIC."First On ART".effective.toInterval() during "Measurement Period") /* end Populations */ +/* + * Disaggregators + */ + +define "Administrative Gender Stratifier": + HIC."By Administrative Gender Stratifier" + +define "Age Stratifier": + HIC."By Age Stratifier" + +define "Geographic Region Stratifier": + HIC."By Geographic Region Stratifier" + +define "patientGroups Stratifier": + HIC."patientGroups" + +define "Stratification": + HIC."By Administrative Gender Stratifier".code + + ':' + HIC."By Age Stratifier" ++ ':' + HIC."By Geographic Region Stratifier" ++ Combine(HIC.patientGroups, ':') + +//add Pregnant or breastfeeding women \ No newline at end of file diff --git a/input/cql/HIVIndicatorElements.cql b/input/cql/HIVIndicatorElements.cql index ced54bcc5b7..db6726da767 100644 --- a/input/cql/HIVIndicatorElements.cql +++ b/input/cql/HIVIndicatorElements.cql @@ -5148,13 +5148,10 @@ define "Presumptive TB D.DE945 Observation": @activity: HIV.D8 Capture or update client history @description: The date when the diagnosis was established */ -// TODO: Replace placeholder with relevant CQL logic + define "Date of TB diagnosis": - Elements."Date of TB diagnosis" O - where O.effective.toInterval() during "Measurement Period" -define "Date of TB diagnosis Value": - "Date of TB diagnosis" O - return O.value + start of First(Elements."Date of TB diagnosis") during "Measurement Period" + /* End of Date of TB diagnosis */ /* @@ -5177,12 +5174,9 @@ define "TB preventive treatment TPT completed in measurement period": @activity: HIV.D4 Screen for TB @description: Record the result of the tuberculosis (TB) screening */ -// TODO: Replace placeholder with relevant CQL logic + define "TB screening result": - exists "TB screening result Observation" -define "TB screening result Observation": - Elements."TB screening result Observation" O - where O.effective.toInterval() during "Measurement Period" + exists (Elements."TB screening result") /* End of TB screening result */ /* @@ -5190,16 +5184,9 @@ define "TB screening result Observation": @activity: HIV.D4 Screen for TB @description: Screening result was positive for tuberculosis (TB) */ -// TODO: Replace placeholder with relevant CQL logic + define "Screen positive for TB": - exists "Screen positive for TB Condition" - or exists "Screen positive for TB Observation" -define "Screen positive for TB Condition": - Elements."Screen positive for TB Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "Screen positive for TB Observation": - Elements."Screen positive for TB Observation" O + exists Elements."Screen positive for TB" O where O.effective.toInterval() during "Measurement Period" /* End of Screen positive for TB */ @@ -5208,16 +5195,9 @@ define "Screen positive for TB Observation": @activity: HIV.D4 Screen for TB @description: Screening result was negative for tuberculosis (TB) */ -// TODO: Replace placeholder with relevant CQL logic + define "Screen negative for TB": - exists "Screen negative for TB Condition" - or exists "Screen negative for TB Observation" -define "Screen negative for TB Condition": - Elements."Screen negative for TB Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "Screen negative for TB Observation": - Elements."Screen negative for TB Observation" O + exists Elements."Screen negative for TB" O where O.effective.toInterval() during "Measurement Period" /* End of Screen negative for TB */ @@ -5226,16 +5206,9 @@ define "Screen negative for TB Observation": @activity: HIV.D4 Screen for TB @description: Screening result was inconclusive for tuberculosis (TB) */ -// TODO: Replace placeholder with relevant CQL logic + define "Inconclusive D.DE989": - exists "Inconclusive D.DE989 Condition" - or exists "Inconclusive D.DE989 Observation" -define "Inconclusive D.DE989 Condition": - Elements."Inconclusive D.DE989 Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "Inconclusive D.DE989 Observation": - Elements."Inconclusive D.DE989 Observation" O + exists Elements."Inconclusive D.DE989" O where O.effective.toInterval() during "Measurement Period" /* End of Inconclusive D.DE989 */ @@ -5244,13 +5217,11 @@ define "Inconclusive D.DE989 Observation": @activity: HIV.D4 Screen for TB @description: Date the TB screening was conducted */ -// TODO: Replace placeholder with relevant CQL logic + define "TB screening date": - Elements."TB screening date" O - where O.effective.toInterval() during "Measurement Period" -define "TB screening date Value": - "TB screening date" O - return O.value + exists (Elements."TB screening date" P + where P.performed.toInterval() during "Measurement Period") + /* End of TB screening date */ /* @@ -5258,12 +5229,9 @@ define "TB screening date Value": @activity: HIV.D4 Screen for TB @description: The type of diagnostic test performed to detect tuberculosis (TB) disease */ -// TODO: Replace placeholder with relevant CQL logic + define "TB diagnostic test category": - exists "TB diagnostic test category Observation" -define "TB diagnostic test category Observation": - Elements."TB diagnostic test category Observation" O - where O.effective.toInterval() during "Measurement Period" + exists (Elements."TB diagnostic test category") /* End of TB diagnostic test category */ /* @@ -5271,17 +5239,10 @@ define "TB diagnostic test category Observation": @activity: HIV.D4 Screen for TB @description: Client tested for tuberculosis with a lateral flow urine lipoarabinomannan assay */ -// TODO: Replace placeholder with relevant CQL logic + define "LF-LAM": - exists "LF-LAM Condition" - or exists "LF-LAM Observation" -define "LF-LAM Condition": - Elements."LF-LAM Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "LF-LAM Observation": - Elements."LF-LAM Observation" O - where O.effective.toInterval() during "Measurement Period" + exists (Elements."LF-LAM" O + where O.performed.toInterval() during "Measurement Period") /* End of LF-LAM */ /* @@ -5289,17 +5250,10 @@ define "LF-LAM Observation": @activity: HIV.D4 Screen for TB @description: Client tested with a WHO-recommended molecular diagnostic test to detect Mycobacterium tuberculosis (MTB) */ -// TODO: Replace placeholder with relevant CQL logic + define "mWRD test for TB": - exists "mWRD test for TB Condition" - or exists "mWRD test for TB Observation" -define "mWRD test for TB Condition": - Elements."mWRD test for TB Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "mWRD test for TB Observation": - Elements."mWRD test for TB Observation" O - where O.effective.toInterval() during "Measurement Period" + exists (Elements."mWRD test for TB" O + where O.performed.toInterval() during "Measurement Period") /* End of mWRD test for TB */ /* @@ -5307,17 +5261,10 @@ define "mWRD test for TB Observation": @activity: HIV.D4 Screen for TB @description: Client tested for tuberculosis with a sputum acid-fast bacilli (AFB) */ -// TODO: Replace placeholder with relevant CQL logic + define "Microscopy - Sputum acid-fast bacilli AFB": - exists "Microscopy - Sputum acid-fast bacilli AFB Condition" - or exists "Microscopy - Sputum acid-fast bacilli AFB Observation" -define "Microscopy - Sputum acid-fast bacilli AFB Condition": - Elements."Microscopy - Sputum acid-fast bacilli AFB Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "Microscopy - Sputum acid-fast bacilli AFB Observation": - Elements."Microscopy - Sputum acid-fast bacilli AFB Observation" O - where O.effective.toInterval() during "Measurement Period" + exists (Elements."Microscopy - Sputum acid-fast bacilli AFB" O + where O.performed.toInterval() during "Measurement Period") /* End of Microscopy - Sputum acid-fast bacilli AFB */ /* @@ -5325,17 +5272,10 @@ define "Microscopy - Sputum acid-fast bacilli AFB Observation": @activity: HIV.D4 Screen for TB @description: Client tested for tuberculosis (TB) with a culture */ -// TODO: Replace placeholder with relevant CQL logic + define "TB Culture": - exists "TB Culture Condition" - or exists "TB Culture Observation" -define "TB Culture Condition": - Elements."TB Culture Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "TB Culture Observation": - Elements."TB Culture Observation" O - where O.effective.toInterval() during "Measurement Period" + exists (Elements."TB Culture" O + where O.performed.toInterval() during "Measurement Period") /* End of TB Culture */ /* From b94542ec2c5bd4652b8327e205a28835463d44b4 Mon Sep 17 00:00:00 2001 From: Patric Prado Date: Thu, 8 Aug 2024 21:18:50 -0700 Subject: [PATCH 09/10] HIVIND 46 - 52 updated --- input/cql/HIVConceptsCustom.cql | 1 + input/cql/HIVElements.cql | 47 +++++++++--------------------- input/cql/HIVIND46Logic.cql | 1 + input/cql/HIVIND48Logic.cql | 30 +++++++++++++++++-- input/cql/HIVIND49Logic.cql | 29 ++++++++++++++++-- input/cql/HIVIND50Logic.cql | 36 +++++++++++++++++++++-- input/cql/HIVIND51Logic.cql | 42 ++++++++++++++++++++++++-- input/cql/HIVIND52Logic.cql | 46 +++++++++++++++++++++++++++-- input/cql/HIVIndicatorElements.cql | 47 ++++++++---------------------- 9 files changed, 201 insertions(+), 78 deletions(-) diff --git a/input/cql/HIVConceptsCustom.cql b/input/cql/HIVConceptsCustom.cql index 09d3e09460f..f31e3fdf7b0 100644 --- a/input/cql/HIVConceptsCustom.cql +++ b/input/cql/HIVConceptsCustom.cql @@ -68,3 +68,4 @@ code "methadone": 'methadone' from "missing concepts" code "buprenorphine": 'buprenorphine' from "missing concepts" code "viral load test": 'viral load test' from "missing concepts" code "delivery": 'delivery' from "missing concepts" +code "tb treatment": 'tb treatment' from "missing concepts" diff --git a/input/cql/HIVElements.cql b/input/cql/HIVElements.cql index ab31cde4219..5bded3c7844 100644 --- a/input/cql/HIVElements.cql +++ b/input/cql/HIVElements.cql @@ -5544,10 +5544,8 @@ define "Established on ART Observation": @activity: HIV.D8 Capture or update client history @description: Whether the client is ART naive or is restarting ART */ -// TODO: Replace placeholder with relevant CQL logic + define "ART start type": - exists "ART start type Observation" -define "ART start type Observation": [Observation: Concepts."ART start type"] O where O.status in { 'final', 'amended', 'corrected' } /* End of ART start type */ @@ -5557,16 +5555,10 @@ define "ART start type Observation": @activity: HIV.D8 Capture or update client history @description: Client is ART naive, having never taken ART to treat HIV before */ -// TODO: Replace placeholder with relevant CQL logic + define "First-time user of ART": - exists "First-time user of ART Condition" - or exists "First-time user of ART Observation" -define "First-time user of ART Condition": - [Condition: Concepts."First-time user of ART"] -define "First-time user of ART Observation": - "ART start type Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."First-time user of ART" + "ART start type" O + where O.value ~ Concepts."First-time user of ART" /* End of First-time user of ART */ /* @@ -5574,16 +5566,10 @@ define "First-time user of ART Observation": @activity: HIV.D8 Capture or update client history @description: Client is restarting ART after stopping treatment for any reason */ -// TODO: Replace placeholder with relevant CQL logic + define "Restarting ART": - exists "Restarting ART Condition" - or exists "Restarting ART Observation" -define "Restarting ART Condition": - [Condition: Concepts."Restarting ART"] -define "Restarting ART Observation": - "ART start type Observation" O - where O.status in { 'final', 'amended', 'corrected' } - and O.value ~ Concepts."Restarting ART" + "ART start type" O + where O.value ~ Concepts."Restarting ART" /* End of Restarting ART */ /* @@ -12209,13 +12195,10 @@ define "TB Culture": @activity: HIV.D4 Screen for TB @description: The date when TB diagnostic test was performed */ -// TODO: Replace placeholder with relevant CQL logic + define "TB diagnostic test date": - [Observation: Concepts."TB diagnostic test date"] O - where O.status in { 'final', 'amended', 'corrected' } -define "TB diagnostic test date Value": - "TB diagnostic test date" O - return O.value + "TB diagnostic test category" P + return (start of P.performed.toInterval()) /* End of TB diagnostic test date */ /* @@ -12223,13 +12206,11 @@ define "TB diagnostic test date Value": @activity: HIV.D8 Capture or update client history @description: The date on which the client start or restarted tuberculosis (TB) treatment */ -// TODO: Replace placeholder with relevant CQL logic + define "TB treatment start date": - [Observation: Concepts."TB treatment start date"] O - where O.status in { 'final', 'amended', 'corrected' } -define "TB treatment start date Value": - "TB treatment start date" O - return O.value + [MedicationStatement] MS + where exists(MS.reasonCode C where C ~ CustomConcepts."tb treatment") + return (start of MS.effective.toInterval()) /* End of TB treatment start date */ /* diff --git a/input/cql/HIVIND46Logic.cql b/input/cql/HIVIND46Logic.cql index 1521bc1c077..664eadc4cb7 100644 --- a/input/cql/HIVIND46Logic.cql +++ b/input/cql/HIVIND46Logic.cql @@ -114,6 +114,7 @@ define "Initial Population": define "Numerator": HIE."HIV-positive B.DE116" and + //I related the two because otherwise a positive observation could come from another test type and be counted. exists( HE."mWRD test for TB" P with HE."Screen positive for TB" O diff --git a/input/cql/HIVIND48Logic.cql b/input/cql/HIVIND48Logic.cql index ef2bb885aae..97b560c7112 100644 --- a/input/cql/HIVIND48Logic.cql +++ b/input/cql/HIVIND48Logic.cql @@ -65,6 +65,8 @@ include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -87,7 +89,10 @@ define "Initial Population": */ define "Numerator": - true + HIE."HIV-positive B.DE116" + and (start of HIC."First On ART".effective.toInterval() during "Measurement Period") + and HIE."First-time user of ART" + and HIE."TB screening date" /** @@ -98,8 +103,29 @@ define "Numerator": */ define "Denominator": - true + HIE."HIV-positive B.DE116" + and (start of HIC."First On ART".effective.toInterval() during "Measurement Period") + and HIE."First-time user of ART" /* end Populations */ +/* + * Disaggregators + */ + +define "Administrative Gender Stratifier": + HIC."By Administrative Gender Stratifier" + +define "Age Stratifier": + HIC."By Age Stratifier" + +define "Geographic Region Stratifier": + HIC."By Geographic Region Stratifier" + +define "Stratification": + HIC."By Administrative Gender Stratifier".code + + ':' + HIC."By Age Stratifier" ++ ':' + HIC."By Geographic Region Stratifier" + + diff --git a/input/cql/HIVIND49Logic.cql b/input/cql/HIVIND49Logic.cql index a5e702b3e5d..42d79741e05 100644 --- a/input/cql/HIVIND49Logic.cql +++ b/input/cql/HIVIND49Logic.cql @@ -70,6 +70,8 @@ include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -92,7 +94,10 @@ define "Initial Population": */ define "Numerator": - true + HIE."HIV-positive B.DE116" + and (start of HIC."First On ART".effective.toInterval() during "Measurement Period") + and HIE."First-time user of ART" + and HIE."Screen positive for TB" /** @@ -103,8 +108,28 @@ define "Numerator": */ define "Denominator": - true + HIE."HIV-positive B.DE116" + and (start of HIC."First On ART".effective.toInterval() during "Measurement Period") + and HIE."First-time user of ART" + and HIE."TB screening date" /* end Populations */ +/* + * Disaggregators + */ + +define "Administrative Gender Stratifier": + HIC."By Administrative Gender Stratifier" + +define "Age Stratifier": + HIC."By Age Stratifier" + +define "Geographic Region Stratifier": + HIC."By Geographic Region Stratifier" + +define "Stratification": + HIC."By Administrative Gender Stratifier".code + + ':' + HIC."By Age Stratifier" ++ ':' + HIC."By Geographic Region Stratifier" \ No newline at end of file diff --git a/input/cql/HIVIND50Logic.cql b/input/cql/HIVIND50Logic.cql index 01b5f7ee7ad..ce2c0227244 100644 --- a/input/cql/HIVIND50Logic.cql +++ b/input/cql/HIVIND50Logic.cql @@ -80,6 +80,8 @@ include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -94,6 +96,7 @@ context Patient define "Initial Population": true + /** * Numerator * @@ -102,7 +105,16 @@ define "Initial Population": */ define "Numerator": - true + HIE."HIV-positive B.DE116" + and (start of HIC."First On ART".effective.toInterval() during "Measurement Period") + and HIE."First-time user of ART" + //related the two since we want a positive observation from a specific diagnostic test. + and exists( + HE."TB diagnostic test category" P + with HE."Screen positive for TB" O + such that P.partOf.references(O) + where P.performed.toInterval() during "Measurement Period" + ) /** @@ -113,8 +125,28 @@ define "Numerator": */ define "Denominator": - true + HIE."HIV-positive B.DE116" + and (start of HIC."First On ART".effective.toInterval() during "Measurement Period") + and HIE."First-time user of ART" + and HIE."Screen positive for TB" /* end Populations */ +/* + * Disaggregators + */ + +define "Administrative Gender Stratifier": + HIC."By Administrative Gender Stratifier" + +define "Age Stratifier": + HIC."By Age Stratifier" + +define "Geographic Region Stratifier": + HIC."By Geographic Region Stratifier" + +define "Stratification": + HIC."By Administrative Gender Stratifier".code + + ':' + HIC."By Age Stratifier" ++ ':' + HIC."By Geographic Region Stratifier" diff --git a/input/cql/HIVIND51Logic.cql b/input/cql/HIVIND51Logic.cql index bfe94f32c43..3f0a2d6b487 100644 --- a/input/cql/HIVIND51Logic.cql +++ b/input/cql/HIVIND51Logic.cql @@ -82,6 +82,8 @@ include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -104,7 +106,17 @@ define "Initial Population": */ define "Numerator": - true + HIE."HIV-positive B.DE116" + and (start of HIC."First On ART".effective.toInterval() during "Measurement Period") + and HIE."First-time user of ART" + //related the two since we want a positive observation from a specific diagnostic test. + and exists( + HE."TB diagnostic test category" P + with HE."Screen positive for TB" O + such that P.partOf.references(O) + where P.performed.toInterval() during "Measurement Period" + ) + and HIE."Date of TB diagnosis" /** @@ -115,8 +127,34 @@ define "Numerator": */ define "Denominator": - true + HIE."HIV-positive B.DE116" + and (start of HIC."First On ART".effective.toInterval() during "Measurement Period") + and HIE."First-time user of ART" + //related the two since we want a positive observation from a specific diagnostic test. + and exists( + HE."TB diagnostic test category" P + with HE."Screen positive for TB" O + such that P.partOf.references(O) + where P.performed.toInterval() during "Measurement Period" + ) /* end Populations */ +/* + * Disaggregators + */ + +define "Administrative Gender Stratifier": + HIC."By Administrative Gender Stratifier" + +define "Age Stratifier": + HIC."By Age Stratifier" + +define "Geographic Region Stratifier": + HIC."By Geographic Region Stratifier" + +define "Stratification": + HIC."By Administrative Gender Stratifier".code + + ':' + HIC."By Age Stratifier" ++ ':' + HIC."By Geographic Region Stratifier" \ No newline at end of file diff --git a/input/cql/HIVIND52Logic.cql b/input/cql/HIVIND52Logic.cql index 6e153b01850..f2a6315e394 100644 --- a/input/cql/HIVIND52Logic.cql +++ b/input/cql/HIVIND52Logic.cql @@ -82,6 +82,8 @@ include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -104,7 +106,19 @@ define "Initial Population": */ define "Numerator": - true + HIE."HIV-positive B.DE116" + and (start of HIC."First On ART".effective.toInterval() during "Measurement Period") + and HIE."First-time user of ART" + //related the two since we want a positive observation from a specific diagnostic test. + and exists( + HE."TB diagnostic test category" P + with HE."Screen positive for TB" O + such that P.partOf.references(O) + where P.performed.toInterval() during "Measurement Period" + ) + and HIE."Date of TB diagnosis" + and HIE."TB treatment start date" + /** @@ -115,8 +129,36 @@ define "Numerator": */ define "Denominator": - true + HIE."HIV-positive B.DE116" + and (start of HIC."First On ART".effective.toInterval() during "Measurement Period") + and HIE."First-time user of ART" + //related the two since we want a positive observation from a specific diagnostic test. + and exists( + HE."TB diagnostic test category" P + with HE."Screen positive for TB" O + such that P.partOf.references(O) + where P.performed.toInterval() during "Measurement Period" + ) + and HIE."Date of TB diagnosis" + /* end Populations */ +/* + * Disaggregators + */ + +define "Administrative Gender Stratifier": + HIC."By Administrative Gender Stratifier" + +define "Age Stratifier": + HIC."By Age Stratifier" + +define "Geographic Region Stratifier": + HIC."By Geographic Region Stratifier" + +define "Stratification": + HIC."By Administrative Gender Stratifier".code + + ':' + HIC."By Age Stratifier" ++ ':' + HIC."By Geographic Region Stratifier" \ No newline at end of file diff --git a/input/cql/HIVIndicatorElements.cql b/input/cql/HIVIndicatorElements.cql index db6726da767..fc88a7f970a 100644 --- a/input/cql/HIVIndicatorElements.cql +++ b/input/cql/HIVIndicatorElements.cql @@ -2691,12 +2691,10 @@ define "ART stopped during measurement period": @activity: HIV.D8 Capture or update client history @description: Whether the client is ART naive or is restarting ART */ -// TODO: Replace placeholder with relevant CQL logic + define "ART start type": - exists "ART start type Observation" -define "ART start type Observation": - Elements."ART start type Observation" O - where O.effective.toInterval() during "Measurement Period" + exists Elements."ART start type" + /* End of ART start type */ /* @@ -2704,16 +2702,9 @@ define "ART start type Observation": @activity: HIV.D8 Capture or update client history @description: Client is ART naive, having never taken ART to treat HIV before */ -// TODO: Replace placeholder with relevant CQL logic + define "First-time user of ART": - exists "First-time user of ART Condition" - or exists "First-time user of ART Observation" -define "First-time user of ART Condition": - Elements."First-time user of ART Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "First-time user of ART Observation": - Elements."First-time user of ART Observation" O + exists Elements."First-time user of ART" O where O.effective.toInterval() during "Measurement Period" /* End of First-time user of ART */ @@ -2722,16 +2713,9 @@ define "First-time user of ART Observation": @activity: HIV.D8 Capture or update client history @description: Client is restarting ART after stopping treatment for any reason */ -// TODO: Replace placeholder with relevant CQL logic + define "Restarting ART": - exists "Restarting ART Condition" - or exists "Restarting ART Observation" -define "Restarting ART Condition": - Elements."Restarting ART Condition" C - where C.prevalenceInterval() overlaps before "Measurement Period" - or C.prevalenceInterval() overlaps after "Measurement Period" -define "Restarting ART Observation": - Elements."Restarting ART Observation" O + exists Elements."Restarting ART" O where O.effective.toInterval() during "Measurement Period" /* End of Restarting ART */ @@ -5283,13 +5267,10 @@ define "TB Culture": @activity: HIV.D4 Screen for TB @description: The date when TB diagnostic test was performed */ -// TODO: Replace placeholder with relevant CQL logic + define "TB diagnostic test date": - Elements."TB diagnostic test date" O - where O.effective.toInterval() during "Measurement Period" -define "TB diagnostic test date Value": - "TB diagnostic test date" O - return O.value + exists(Elements."TB diagnostic test date" P where P during "Measurement Period") + /* End of TB diagnostic test date */ /* @@ -5297,13 +5278,9 @@ define "TB diagnostic test date Value": @activity: HIV.D8 Capture or update client history @description: The date on which the client start or restarted tuberculosis (TB) treatment */ -// TODO: Replace placeholder with relevant CQL logic + define "TB treatment start date": - Elements."TB treatment start date" O - where O.effective.toInterval() during "Measurement Period" -define "TB treatment start date Value": - "TB treatment start date" O - return O.value + exists(Elements."TB treatment start date" MS where MS during "Measurement Period") /* End of TB treatment start date */ /* From 9121d805625ce357b305cfd8f6c545b7230962aa Mon Sep 17 00:00:00 2001 From: Patric Prado Date: Mon, 12 Aug 2024 23:18:31 -0700 Subject: [PATCH 10/10] indicators 46-55 --- input/cql/HIVCommon.cql | 2 - input/cql/HIVConceptsCustom.cql | 2 + input/cql/HIVElements.cql | 65 +++++++++++++++++------------- input/cql/HIVIND47Logic.cql | 14 +++---- input/cql/HIVIND48Logic.cql | 12 +++--- input/cql/HIVIND49Logic.cql | 14 +++---- input/cql/HIVIND50Logic.cql | 14 +++---- input/cql/HIVIND51Logic.cql | 14 +++---- input/cql/HIVIND52Logic.cql | 14 +++---- input/cql/HIVIND53Logic.cql | 40 +++++++++++++++++- input/cql/HIVIND54Logic.cql | 11 ++++- input/cql/HIVIND55Logic.cql | 11 ++++- input/cql/HIVIndicatorElements.cql | 43 ++++++++++---------- 13 files changed, 154 insertions(+), 102 deletions(-) diff --git a/input/cql/HIVCommon.cql b/input/cql/HIVCommon.cql index 47110153f3f..0efa5678f4e 100644 --- a/input/cql/HIVCommon.cql +++ b/input/cql/HIVCommon.cql @@ -15,8 +15,6 @@ context Patient //DRAFT - - //need to add Time to start ART (within 7, 30 or 90 days of diagnosis, as per country guidelines) //need to add Disaggregation by time since diagnosis diff --git a/input/cql/HIVConceptsCustom.cql b/input/cql/HIVConceptsCustom.cql index f31e3fdf7b0..d3db50471c2 100644 --- a/input/cql/HIVConceptsCustom.cql +++ b/input/cql/HIVConceptsCustom.cql @@ -69,3 +69,5 @@ code "buprenorphine": 'buprenorphine' from "missing concepts" code "viral load test": 'viral load test' from "missing concepts" code "delivery": 'delivery' from "missing concepts" code "tb treatment": 'tb treatment' from "missing concepts" +code "ART medication": 'ART medication' from "missing concepts" +code "DSD ART eligibility assessed" : 'DSD ART eligibility assessed' from "missing concepts" \ No newline at end of file diff --git a/input/cql/HIVElements.cql b/input/cql/HIVElements.cql index 5bded3c7844..e7ddef1336b 100644 --- a/input/cql/HIVElements.cql +++ b/input/cql/HIVElements.cql @@ -5546,8 +5546,9 @@ define "Established on ART Observation": */ define "ART start type": - [Observation: Concepts."ART start type"] O - where O.status in { 'final', 'amended', 'corrected' } + [MedicationStatement] MS + where exists(MS.reasonCode C where C ~ Concepts."On ART - HIV.D.DE38") + sort by start of effective.toInterval() /* End of ART start type */ /* @@ -5557,8 +5558,8 @@ define "ART start type": */ define "First-time user of ART": - "ART start type" O - where O.value ~ Concepts."First-time user of ART" + "ART start type" MS + where exists(MS.reasonCode C where C ~ Concepts."First-time user of ART") /* End of First-time user of ART */ /* @@ -5568,8 +5569,9 @@ define "First-time user of ART": */ define "Restarting ART": - "ART start type" O - where O.value ~ Concepts."Restarting ART" + "ART start type" MS + where exists(MS.reasonCode C where C ~ Concepts."Restarting ART") + /* End of Restarting ART */ /* @@ -10253,10 +10255,8 @@ define "Malaria prevention such as bed nets and prophylaxis, depending on epidem @activity: HIV.D21 Determine regimen and treatment options @description: Client is eligible for differentiated service delivery (DSD) for ART */ -// TODO: Replace placeholder with relevant CQL logic + define "Eligible for DSD ART": - exists "Eligible for DSD ART Observation" -define "Eligible for DSD ART Observation": [Observation: Concepts."Eligible for DSD ART"] O where O.status in { 'final', 'amended', 'corrected' } and O.value is true @@ -10267,13 +10267,11 @@ define "Eligible for DSD ART Observation": @activity: HIV.D21 Determine regimen and treatment options @description: Date client was assessed for eligibility for differentiated service delivery (DSD) for ART */ -// TODO: Replace placeholder with relevant CQL logic + define "Date DSD ART eligibility assessed": - [Observation: Concepts."Date DSD ART eligibility assessed"] O - where O.status in { 'final', 'amended', 'corrected' } -define "Date DSD ART eligibility assessed Value": - "Date DSD ART eligibility assessed" O - return O.value + [Procedure: CustomConcepts."DSD ART eligibility assessed"] P + where P.status in { 'completed' } + return P.performed.toInterval() /* End of Date DSD ART eligibility assessed */ /* @@ -10281,13 +10279,11 @@ define "Date DSD ART eligibility assessed Value": @activity: HIV.D21 Determine regimen and treatment options @description: Client currently enrolled in differentiated service delivery (DSD) ART model */ -// TODO: Replace placeholder with relevant CQL logic + define "Currently enrolled in DSD ART model": - exists "Currently enrolled in DSD ART model Observation" -define "Currently enrolled in DSD ART model Observation": - [Observation: Concepts."Currently enrolled in DSD ART model"] O - where O.status in { 'final', 'amended', 'corrected' } - and O.value is true + [EpisodeOfCare] EOC + where exists(EOC.type T where T ~ Concepts."Currently enrolled in DSD ART model") + /* End of Currently enrolled in DSD ART model */ /* @@ -10295,13 +10291,23 @@ define "Currently enrolled in DSD ART model Observation": @activity: HIV.D21 Determine regimen and treatment options @description: Date client started on differentiated service delivery (DSD) for ART */ -// TODO: Replace placeholder with relevant CQL logic + define "DSD ART start date": - [Observation: Concepts."DSD ART start date"] O - where O.status in { 'final', 'amended', 'corrected' } -define "DSD ART start date Value": - "DSD ART start date" O - return O.value + flatten{"DSD ART status","DSD ART statusHistory".statusHistory.period} + +define "DSD ART status": + [EpisodeOfCare] EOC + where exists(EOC.type T where T ~ Concepts."Currently enrolled in DSD ART model") + and EOC.status = 'finished' + return EOC.period + +define "DSD ART statusHistory": + [EpisodeOfCare] EOC + where exists(EOC.type T where T ~ Concepts."Currently enrolled in DSD ART model") + and (exists ( + EOC.statusHistory H + where H.status = 'finished' + and H.period is not null)) /* End of DSD ART start date */ /* @@ -15011,4 +15017,7 @@ define "Reporting date Value": /* * Custom elements and logic for use DT and IND CQL Libraries - */ \ No newline at end of file + */ + +define "First On ART": + (First("On ART D.DE38")) \ No newline at end of file diff --git a/input/cql/HIVIND47Logic.cql b/input/cql/HIVIND47Logic.cql index 8f11a1472fd..12f0dedc80a 100644 --- a/input/cql/HIVIND47Logic.cql +++ b/input/cql/HIVIND47Logic.cql @@ -104,7 +104,7 @@ define "Initial Population": define "Numerator": HIE."HIV-positive B.DE116" - and (start of HIC."First On ART".effective.toInterval() during "Measurement Period") + and (start of HE."First On ART".effective.toInterval() during "Measurement Period") and HIE."Date of TB diagnosis" @@ -117,7 +117,7 @@ define "Numerator": define "Denominator": HIE."HIV-positive B.DE116" - and (start of HIC."First On ART".effective.toInterval() during "Measurement Period") + and (start of HE."First On ART".effective.toInterval() during "Measurement Period") /* end Populations */ @@ -138,10 +138,10 @@ define "Geographic Region Stratifier": define "patientGroups Stratifier": HIC."patientGroups" -define "Stratification": - HIC."By Administrative Gender Stratifier".code - + ':' + HIC."By Age Stratifier" -+ ':' + HIC."By Geographic Region Stratifier" -+ Combine(HIC.patientGroups, ':') +//define "Stratification": +// HIC."By Administrative Gender Stratifier".code +// + ':' + HIC."By Age Stratifier" +//+ ':' + HIC."By Geographic Region Stratifier" +//+ Combine(HIC.patientGroups, ':') //add Pregnant or breastfeeding women \ No newline at end of file diff --git a/input/cql/HIVIND48Logic.cql b/input/cql/HIVIND48Logic.cql index 97b560c7112..7efe26dd63b 100644 --- a/input/cql/HIVIND48Logic.cql +++ b/input/cql/HIVIND48Logic.cql @@ -90,7 +90,7 @@ define "Initial Population": define "Numerator": HIE."HIV-positive B.DE116" - and (start of HIC."First On ART".effective.toInterval() during "Measurement Period") + and (start of HE."First On ART".effective.toInterval() during "Measurement Period") and HIE."First-time user of ART" and HIE."TB screening date" @@ -104,7 +104,7 @@ define "Numerator": define "Denominator": HIE."HIV-positive B.DE116" - and (start of HIC."First On ART".effective.toInterval() during "Measurement Period") + and (start of HE."First On ART".effective.toInterval() during "Measurement Period") and HIE."First-time user of ART" @@ -123,9 +123,9 @@ define "Age Stratifier": define "Geographic Region Stratifier": HIC."By Geographic Region Stratifier" -define "Stratification": - HIC."By Administrative Gender Stratifier".code - + ':' + HIC."By Age Stratifier" -+ ':' + HIC."By Geographic Region Stratifier" +//define "Stratification": + //HIC."By Administrative Gender Stratifier".code + // + ':' + HIC."By Age Stratifier" +//+ ':' + HIC."By Geographic Region Stratifier" diff --git a/input/cql/HIVIND49Logic.cql b/input/cql/HIVIND49Logic.cql index 42d79741e05..71a44892d83 100644 --- a/input/cql/HIVIND49Logic.cql +++ b/input/cql/HIVIND49Logic.cql @@ -95,8 +95,7 @@ define "Initial Population": define "Numerator": HIE."HIV-positive B.DE116" - and (start of HIC."First On ART".effective.toInterval() during "Measurement Period") - and HIE."First-time user of ART" + and (start of First(HE."First-time user of ART").effective.toInterval() during "Measurement Period") and HIE."Screen positive for TB" @@ -109,8 +108,7 @@ define "Numerator": define "Denominator": HIE."HIV-positive B.DE116" - and (start of HIC."First On ART".effective.toInterval() during "Measurement Period") - and HIE."First-time user of ART" + and (start of First(HE."First-time user of ART").effective.toInterval() during "Measurement Period") and HIE."TB screening date" @@ -129,7 +127,7 @@ define "Age Stratifier": define "Geographic Region Stratifier": HIC."By Geographic Region Stratifier" -define "Stratification": - HIC."By Administrative Gender Stratifier".code - + ':' + HIC."By Age Stratifier" -+ ':' + HIC."By Geographic Region Stratifier" \ No newline at end of file +//define "Stratification": + //HIC."By Administrative Gender Stratifier".code + // + ':' + HIC."By Age Stratifier" +//+ ':' + HIC."By Geographic Region Stratifier" \ No newline at end of file diff --git a/input/cql/HIVIND50Logic.cql b/input/cql/HIVIND50Logic.cql index ce2c0227244..d11396d8470 100644 --- a/input/cql/HIVIND50Logic.cql +++ b/input/cql/HIVIND50Logic.cql @@ -106,8 +106,7 @@ define "Initial Population": define "Numerator": HIE."HIV-positive B.DE116" - and (start of HIC."First On ART".effective.toInterval() during "Measurement Period") - and HIE."First-time user of ART" + and (start of First(HE."First-time user of ART").effective.toInterval() during "Measurement Period") //related the two since we want a positive observation from a specific diagnostic test. and exists( HE."TB diagnostic test category" P @@ -126,8 +125,7 @@ define "Numerator": define "Denominator": HIE."HIV-positive B.DE116" - and (start of HIC."First On ART".effective.toInterval() during "Measurement Period") - and HIE."First-time user of ART" + and (start of First(HE."First-time user of ART").effective.toInterval() during "Measurement Period") and HIE."Screen positive for TB" @@ -146,7 +144,7 @@ define "Age Stratifier": define "Geographic Region Stratifier": HIC."By Geographic Region Stratifier" -define "Stratification": - HIC."By Administrative Gender Stratifier".code - + ':' + HIC."By Age Stratifier" -+ ':' + HIC."By Geographic Region Stratifier" +//define "Stratification": +// HIC."By Administrative Gender Stratifier".code +// + ':' + HIC."By Age Stratifier" +//+ ':' + HIC."By Geographic Region Stratifier" diff --git a/input/cql/HIVIND51Logic.cql b/input/cql/HIVIND51Logic.cql index 3f0a2d6b487..0077913214e 100644 --- a/input/cql/HIVIND51Logic.cql +++ b/input/cql/HIVIND51Logic.cql @@ -107,8 +107,7 @@ define "Initial Population": define "Numerator": HIE."HIV-positive B.DE116" - and (start of HIC."First On ART".effective.toInterval() during "Measurement Period") - and HIE."First-time user of ART" + and (start of First(HE."First-time user of ART").effective.toInterval() during "Measurement Period") //related the two since we want a positive observation from a specific diagnostic test. and exists( HE."TB diagnostic test category" P @@ -128,8 +127,7 @@ define "Numerator": define "Denominator": HIE."HIV-positive B.DE116" - and (start of HIC."First On ART".effective.toInterval() during "Measurement Period") - and HIE."First-time user of ART" + and (start of First(HE."First-time user of ART").effective.toInterval() during "Measurement Period") //related the two since we want a positive observation from a specific diagnostic test. and exists( HE."TB diagnostic test category" P @@ -154,7 +152,7 @@ define "Age Stratifier": define "Geographic Region Stratifier": HIC."By Geographic Region Stratifier" -define "Stratification": - HIC."By Administrative Gender Stratifier".code - + ':' + HIC."By Age Stratifier" -+ ':' + HIC."By Geographic Region Stratifier" \ No newline at end of file +//define "Stratification": +// HIC."By Administrative Gender Stratifier".code +// + ':' + HIC."By Age Stratifier" +//+ ':' + HIC."By Geographic Region Stratifier" \ No newline at end of file diff --git a/input/cql/HIVIND52Logic.cql b/input/cql/HIVIND52Logic.cql index f2a6315e394..26a5eed0a34 100644 --- a/input/cql/HIVIND52Logic.cql +++ b/input/cql/HIVIND52Logic.cql @@ -107,8 +107,7 @@ define "Initial Population": define "Numerator": HIE."HIV-positive B.DE116" - and (start of HIC."First On ART".effective.toInterval() during "Measurement Period") - and HIE."First-time user of ART" + and (start of First(HE."First-time user of ART").effective.toInterval() during "Measurement Period") //related the two since we want a positive observation from a specific diagnostic test. and exists( HE."TB diagnostic test category" P @@ -130,8 +129,7 @@ define "Numerator": define "Denominator": HIE."HIV-positive B.DE116" - and (start of HIC."First On ART".effective.toInterval() during "Measurement Period") - and HIE."First-time user of ART" + and (start of First(HE."First-time user of ART").effective.toInterval() during "Measurement Period") //related the two since we want a positive observation from a specific diagnostic test. and exists( HE."TB diagnostic test category" P @@ -158,7 +156,7 @@ define "Age Stratifier": define "Geographic Region Stratifier": HIC."By Geographic Region Stratifier" -define "Stratification": - HIC."By Administrative Gender Stratifier".code - + ':' + HIC."By Age Stratifier" -+ ':' + HIC."By Geographic Region Stratifier" \ No newline at end of file +//define "Stratification": +// HIC."By Administrative Gender Stratifier".code +// + ':' + HIC."By Age Stratifier" +//+ ':' + HIC."By Geographic Region Stratifier" \ No newline at end of file diff --git a/input/cql/HIVIND53Logic.cql b/input/cql/HIVIND53Logic.cql index cb1067423bf..bdcfb3e487c 100644 --- a/input/cql/HIVIND53Logic.cql +++ b/input/cql/HIVIND53Logic.cql @@ -72,6 +72,11 @@ include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom +include HIVConcepts called HC +include HIVConceptsCustom called HCC +include HIVCommon called Common +include HIVElements called HE +include HIVIndicatorElements called HIE // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -79,6 +84,13 @@ parameter "Measurement Period" Interval default Interval[@2023-01-01, @202 context Patient /* Populations */ +define "Last ART prescribed before end of measurement period": + Last([MedicationRequest: HCC."ART medication"] MR + where (MR.authoredOn.toInterval() before end of "Measurement Period") + and Common.MedicationRequestPeriod(MR) overlaps "Measurement Period" + sort by start of authoredOn.toInterval()) + + /* *Initial Population */ @@ -94,7 +106,9 @@ define "Initial Population": */ define "Numerator": - true + HIE."HIV-positive B.DE116" + and HIE."On ART H.DE47" + and (duration in months of Common.MedicationRequestPeriod("Last ART prescribed before end of measurement period") >= 3 months) /** @@ -105,8 +119,30 @@ define "Numerator": */ define "Denominator": - true + HIE."HIV-positive B.DE116" + and HIE."On ART H.DE47" /* end Populations */ +/* + * Disaggregators + */ + +define "Administrative Gender Stratifier": + HIC."By Administrative Gender Stratifier" + +define "Age Stratifier": + HIC."By Age Stratifier" + +define "Geographic Region Stratifier": + HIC."By Geographic Region Stratifier" + +define "patientGroups Stratifier": + HIC."patientGroups" + +define "Stratification": + HIC."By Administrative Gender Stratifier".code + + ':' + HIC."By Age Stratifier" ++ ':' + HIC."By Geographic Region Stratifier" ++ Combine(HIC.patientGroups, ':') \ No newline at end of file diff --git a/input/cql/HIVIND54Logic.cql b/input/cql/HIVIND54Logic.cql index d3592196034..cc36736af91 100644 --- a/input/cql/HIVIND54Logic.cql +++ b/input/cql/HIVIND54Logic.cql @@ -84,6 +84,8 @@ include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -106,7 +108,9 @@ define "Initial Population": */ define "Numerator": - true + HIE."HIV-positive B.DE116" + and HIE."On ART H.DE47" + and HIE."DSD ART start date" /** @@ -117,7 +121,10 @@ define "Numerator": */ define "Denominator": - true +HIE."HIV-positive B.DE116" + and HIE."On ART H.DE47" + and HIE."Date DSD ART eligibility assessed" + and HIE."Eligible for DSD ART" /* end Populations */ diff --git a/input/cql/HIVIND55Logic.cql b/input/cql/HIVIND55Logic.cql index cab322ac98d..d3a884ba249 100644 --- a/input/cql/HIVIND55Logic.cql +++ b/input/cql/HIVIND55Logic.cql @@ -84,6 +84,8 @@ include HIVCommon version '0.0.1' called HIC include FHIRHelpers version '4.0.1' include WHOCommon called WCom +include HIVElements called HE +include HIVIndicatorElements called HIE // Indicator Definition parameter "Measurement Period" Interval default Interval[@2023-01-01, @2023-01-30] @@ -106,7 +108,9 @@ define "Initial Population": */ define "Numerator": - true + HIE."HIV-positive B.DE116" + and HIE."On ART H.DE47" + and HIE."Currently enrolled in DSD ART model" /** @@ -117,7 +121,10 @@ define "Numerator": */ define "Denominator": - true + HIE."HIV-positive B.DE116" + and HIE."On ART H.DE47" + and HIE."Date DSD ART eligibility assessed" + and HIE."Eligible for DSD ART" /* end Populations */ diff --git a/input/cql/HIVIndicatorElements.cql b/input/cql/HIVIndicatorElements.cql index fc88a7f970a..8d53be26135 100644 --- a/input/cql/HIVIndicatorElements.cql +++ b/input/cql/HIVIndicatorElements.cql @@ -4311,11 +4311,9 @@ define "Other D.DE739 Observation": @activity: HIV.D21 Determine regimen and treatment options @description: Client is eligible for differentiated service delivery (DSD) for ART */ -// TODO: Replace placeholder with relevant CQL logic + define "Eligible for DSD ART": - exists "Eligible for DSD ART Observation" -define "Eligible for DSD ART Observation": - Elements."Eligible for DSD ART Observation" O + exists Elements."Eligible for DSD ART" O where O.effective.toInterval() during "Measurement Period" /* End of Eligible for DSD ART */ @@ -4324,13 +4322,10 @@ define "Eligible for DSD ART Observation": @activity: HIV.D21 Determine regimen and treatment options @description: Date client was assessed for eligibility for differentiated service delivery (DSD) for ART */ -// TODO: Replace placeholder with relevant CQL logic + define "Date DSD ART eligibility assessed": - Elements."Date DSD ART eligibility assessed" O - where O.effective.toInterval() during "Measurement Period" -define "Date DSD ART eligibility assessed Value": - "Date DSD ART eligibility assessed" O - return O.value + exists(Elements."Date DSD ART eligibility assessed" P where P during "Measurement Period") + /* End of Date DSD ART eligibility assessed */ /* @@ -4338,12 +4333,22 @@ define "Date DSD ART eligibility assessed Value": @activity: HIV.D21 Determine regimen and treatment options @description: Client currently enrolled in differentiated service delivery (DSD) ART model */ -// TODO: Replace placeholder with relevant CQL logic + define "Currently enrolled in DSD ART model": - exists "Currently enrolled in DSD ART model Observation" -define "Currently enrolled in DSD ART model Observation": - Elements."Currently enrolled in DSD ART model Observation" O - where O.effective.toInterval() during "Measurement Period" + exists( + [EpisodeOfCare] EOC + where exists(EOC.type T where T ~ Concepts."Currently enrolled in DSD ART model") + and (exists ( + EOC.statusHistory H + where H.period starts after start of "Measurement Period" + and H.period starts before end of "Measurement Period" + ) + or ( + EOC.period starts after start of "Measurement Period" + and EOC.period starts before end of "Measurement Period" + ) + ) + ) /* End of Currently enrolled in DSD ART model */ /* @@ -4351,13 +4356,9 @@ define "Currently enrolled in DSD ART model Observation": @activity: HIV.D21 Determine regimen and treatment options @description: Date client started on differentiated service delivery (DSD) for ART */ -// TODO: Replace placeholder with relevant CQL logic + define "DSD ART start date": - Elements."DSD ART start date" O - where O.effective.toInterval() during "Measurement Period" -define "DSD ART start date Value": - "DSD ART start date" O - return O.value + exists(Elements."DSD ART start date" t where t starts during "Measurement Period") /* End of DSD ART start date */ /*