Title: IMMZElements Id: IMMZElements Version: 0.2.0 Url: IMMZElements Status: draft Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2025-07-23 20:56:04+0000 Publisher: WHO Description: This library defines context-independent elements used throughout the Immunization CPG Related Artifacts: Dependencies WHOConcepts WHOCommon WHOElements IMMZConcepts IMMZCommon Parameters: Name Type Min Max In/Out Patient Patient 0 1 Out Doses Administered to Patient Immunization 0 * Out Draft Medication Request for Patient MedicationRequest 0 * Out Live Attenuated Vaccines Immunization 0 * Out Date of Latest Live Attenuated Vaccine date 0 1 Out Current Patient Age In Years integer 0 1 Out Current Patient Age In Months integer 0 1 Out Current Patient Age In Weeks integer 0 1 Out Current Patient Age In Days integer 0 1 Out No live vaccine was administered boolean 0 1 Out Live vaccine was administered in the last 4 weeks boolean 0 1 Out No live vaccine was administered in the last 4 weeks boolean 0 1 Out Potential contraindications Observation 0 * Out CI Currently pregnant Observation Observation 0 * Out CI Currently pregnant Condition Condition 0 * Out The client is pregnant boolean 0 1 Out CI History of anaphylactic reactions Observation Observation 0 * Out CI History of anaphylactic reactions Condition Condition 0 * Out The client has history of anaphylactic reactions boolean 0 1 Out CI Severe allergic reactions Observation Observation 0 * Out CI Severe allergic reactions Condition Condition 0 * Out The client has history of severe allergic reactions boolean 0 1 Out CI Severely immunocompromised Observation Observation 0 * Out CI Severely immunocompromised Condition Condition 0 * Out The client is severely immunocompromised boolean 0 1 Out CI Severely immunosuppressed Observation Observation 0 * Out CI Severely immunosuppressed Condition Condition 0 * Out The client is severely immunosuppressed boolean 0 1 Out CI Symptomatic HIV infection Observation Observation 0 * Out CI Symptomatic HIV infection Condition Condition 0 * Out The client has a symptomatic HIV infection boolean 0 1 Out CI Immunodeficiency syndromes Observation Observation 0 * Out CI Immunodeficiency syndromes Condition Condition 0 * Out The client has immunodeficiency syndromes boolean 0 1 Out CI Exposed to immunosuppressive treatment Observation Observation 0 * Out CI Exposed to immunosuppressive treatment Condition Condition 0 * Out The client is exposed to immunosuppressive treatment boolean 0 1 Out CI Severe acute illness Observation Observation 0 * Out CI Severe acute illness Condition Condition 0 * Out The client currently has a severe acute illness boolean 0 1 Out CI Prior history of intussusception Observation Observation 0 * Out CI Prior history of intussusception Condition Condition 0 * Out The client has prior history of intussusception boolean 0 1 Out CI Altered immunocompetence Observation Observation 0 * Out CI Altered immunocompetence Condition Condition 0 * Out The client has altered immunocompetence boolean 0 1 Out CI Spina bifida Observation Observation 0 * Out CI Spina bifida Condition Condition 0 * Out The client has spina bifida boolean 0 1 Out CI Bladder exstrophy Observation Observation 0 * Out CI Bladder exstrophy Condition Condition 0 * Out The client has bladder exstrophy boolean 0 1 Out Immunocompromised Observation Observation 0 * Out Client is immunocompromised boolean 0 1 Out CI Immunocompromised Observation Observation 0 * Out CI Immunocompromised Condition Condition 0 * Out The client is immunocompromised boolean 0 1 Out CI Planning to get pregnant in the next month Observation Observation 0 * Out CI Planning to get pregnant in the next month Condition Condition 0 * Out The client is planning to get pregnant in next month boolean 0 1 Out CI Receiving blood products Observation Observation 0 * Out CI Receiving blood products Condition Condition 0 * Out The client is receiving blood products boolean 0 1 Out CI TB disease Observation Observation 0 * Out CI TB disease Condition Condition 0 * Out The client has TB disease boolean 0 1 Out CI Breastfeeding Observation Observation 0 * Out CI Breastfeeding Condition Condition 0 * Out The client is lactating boolean 0 1 Out CI Acute gastroenteritis Observation Observation 0 * Out CI Acute gastroenteritis Condition Condition 0 * Out The client has acute gastroenteritis boolean 0 1 Out CI Moderate to severe fever Observation Observation 0 * Out CI Moderate to severe fever Condition Condition 0 * Out The client has moderate to severe fever boolean 0 1 Out CI Hypersensitivity to vaccine components Observation Observation 0 * Out CI Hypersensitivity to vaccine components Condition Condition 0 * Out The client has hypersensitivity to any component of the vaccine boolean 0 1 Out CI Taking antibiotics Observation Observation 0 * Out CI Taking antibiotics Condition Condition 0 * Out The client is currently taking antibiotics boolean 0 1 Out CI Chronic gastrointestinal disease Observation Observation 0 * Out CI Chronic gastrointestinal disease Condition Condition 0 * Out The client has chronic gastrointestinal disease boolean 0 1 Out HIV status Observation Observation 0 * Out Client's HIV status is positive boolean 0 1 Out Client's HIV status is negative or unknown boolean 0 1 Out Currently on ART Observation Observation 0 * Out Client is currently receiving antiretroviral therapy boolean 0 1 Out Client is currently not receiving antiretroviral therapy boolean 0 1 Out Immunologically stable Observation Observation 0 * Out Client is immunologically stable boolean 0 1 Out Client is not immunologically stable boolean 0 1 Out TB infection test result Observation Observation 0 * Out Client's TB infection test result is negative boolean 0 1 Out Client's TB infection test result is positive boolean 0 1 Out Client's TB infection test result is unknown (test not done or no result yet) boolean 0 1 Out Clinically well Observation Observation 0 * Out Client is not clinically well boolean 0 1 Out Client is clinically well boolean 0 1 Out Client is not immunocompromised boolean 0 1 Out Birth weight in grams Observation Observation 0 * Out Birth weight in grams Value Quantity 0 1 Out Birth weight in grams decimal 0 1 Out Client's weight at birth was over 2000 g boolean 0 1 Out Client's weight at birth was below 2000 g boolean 0 1 Out Preterm birth Observation Observation 0 * Out Client was a premature infant at birth boolean 0 1 Out Client was not a premature infant at birth boolean 0 1 Out Completed the primary vaccination series Observation Observation 0 * Out At high risk for pneumococcal infection Observation Observation 0 * Out Client is at high risk for pneumococcal infection boolean 0 1 Out Client is not at high risk for pneumococcal infection boolean 0 1 Out Date when primary vaccination series was completed Observation Observation 0 * Out Completed the booster series Observation Observation 0 * Out Content: text/cql library IMMZElements using FHIR version '4.0.1' include FHIRHelpers version '4.0.1' include WHOConcepts include WHOCommon called WC include WHOElements called WE include IMMZConcepts called Concepts include IMMZCommon called Common context Patient /** * @dataElement All Doses Administered to Patient */ define "Doses Administered to Patient": [Immunization] I where I.status = 'completed' and I.isSubpotent is not true /* @dataElement: Draft Medication Request for Patient */ define "Draft Medication Request for Patient": [MedicationRequest] MR where MR.status = 'draft' and MR.intent = 'proposal' sort by date from (authoredOn as FHIR.dateTime) desc /* @dataElement: Live attenuated vaccines */ define "Live Attenuated Vaccines": "Doses Administered to Patient" I where I.vaccineCode in Concepts."Live Attenuated" /* @dataElement: Date and time of last live attenuated vaccine */ define "Date of Latest Live Attenuated Vaccine": date from start of "Live Attenuated Vaccines".mostRecent().occurrence.toInterval() /** * @dataElement Patient age in years */ define "Current Patient Age In Years": AgeInYearsAt(Today()) /** * @dataElement Patient age in months */ define "Current Patient Age In Months": AgeInMonthsAt(Today()) /** * @dataElement Patient age in weeks */ define "Current Patient Age In Weeks": AgeInWeeksAt(Today()) /** * @dataElement Patient age in days */ define "Current Patient Age In Days": AgeInDaysAt(Today()) /* @input: No live vaccine was administered @pseudocode: Today's date − latest "Date and time of vaccination" (where "Live vaccine" = TRUE) IS NULL */ define "No live vaccine was administered": not exists("Live Attenuated Vaccines") /* @input: Live vaccine was administered in the last 4 weeks @pseudocode: Today's date − latest "Date and time of vaccination" (where "Live vaccine" = TRUE) < 4 weeks */ define "Live vaccine was administered in the last 4 weeks": "Date of Latest Live Attenuated Vaccine" is not null and duration in weeks between "Date of Latest Live Attenuated Vaccine" and Now() < 4 /* @input: No live vaccine was administered in the last 4 weeks @pseudocode: Today's date − latest "Date and time of vaccination" (where "Live vaccine" = TRUE) ≥ 4 weeks */ define "No live vaccine was administered in the last 4 weeks": not("Live vaccine was administered in the last 4 weeks") /* @internal: Potential contraindications observations */ define "Potential contraindications": ([Observation: Concepts."Potential contraindications"]).complete() /* @input: The client is pregnant @pseudocode: "Potential contraindications" = "Currently pregnant" */ define "The client is pregnant": exists "CI Currently pregnant Observation" or exists "CI Currently pregnant Condition" or exists WE."Pregnant Observation" /* @internal: Observation for currently pregnant */ define "CI Currently pregnant Observation": "Potential contraindications" O where O.value ~ Concepts."CI-Currently pregnant" /* @internal: Condition for currently pregnant */ define "CI Currently pregnant Condition": [Condition: Concepts."CI-Currently pregnant"] /* @input: The client has history of anaphylactic reactions @pseudocode: "Potential contraindications" = "History of anaphylactic reactions" */ define "The client has history of anaphylactic reactions": exists "CI History of anaphylactic reactions Observation" or exists "CI History of anaphylactic reactions Condition" /* @internal: Observation for History of anaphylactic reactions */ define "CI History of anaphylactic reactions Observation": "Potential contraindications" O where O.value ~ Concepts."CI-History of anaphylactic reactions" /* @internal: Condition for History of anaphylactic reactions */ define "CI History of anaphylactic reactions Condition": [Condition: Concepts."CI-History of anaphylactic reactions"] /* @input: The client has history of severe allergic reactions @pseudocode: "Potential contraindications" = "Severe allergic reactions" */ define "The client has history of severe allergic reactions": exists "CI Severe allergic reactions Observation" or exists "CI Severe allergic reactions Condition" /* @internal: Observation for Severe allergic reactions */ define "CI Severe allergic reactions Observation": "Potential contraindications" O where O.value ~ Concepts."CI-Severe allergic reactions" /* @internal: Condition for Severe allergic reactions */ define "CI Severe allergic reactions Condition": [Condition: Concepts."CI-Severe allergic reactions"] /* @input: The client is severely immunocompromised @pseudocode: "Potential contraindications" = "Severely immunocompromised" */ define "The client is severely immunocompromised": exists "CI Severely immunocompromised Observation" or exists "CI Severely immunocompromised Condition" /* @internal: Observation for Severely immunocompromised */ define "CI Severely immunocompromised Observation": "Potential contraindications" O where O.value ~ Concepts."CI-Severely immunocompromised" /* @internal: Condition for Severely immunocompromised */ define "CI Severely immunocompromised Condition": [Condition: Concepts."CI-Severely immunocompromised"] /* @input: The client is severely immunosuppressed @pseudocode: "Potential contraindications" = "Severely immunosuppressed" */ define "The client is severely immunosuppressed": exists "CI Severely immunosuppressed Observation" or exists "CI Severely immunosuppressed Condition" /* @internal: Observation for Severely immunosuppressed */ define "CI Severely immunosuppressed Observation": "Potential contraindications" O where O.value ~ Concepts."CI-Severely immunosuppressed" /* @internal: Condition for Severely immunosuppressed */ define "CI Severely immunosuppressed Condition": [Condition: Concepts."CI-Severely immunosuppressed"] /* @input: The client has a symptomatic HIV infection @pseudocode: "Potential contraindications" = "Symptomatic HIV infection" */ define "The client has a symptomatic HIV infection": exists "CI Symptomatic HIV infection Observation" or exists "CI Symptomatic HIV infection Condition" /* @internal: Observation for Symptomatic HIV infection */ define "CI Symptomatic HIV infection Observation": "Potential contraindications" O where O.value ~ Concepts."CI-Symptomatic HIV infection" /* @internal: Condition for Symptomatic HIV infection */ define "CI Symptomatic HIV infection Condition": [Condition: Concepts."CI-Symptomatic HIV infection"] /* @input: The client has immunodeficiency syndromes @pseudocode: "Potential contraindications" = "Immunodeficiency syndromes" */ define "The client has immunodeficiency syndromes": exists "CI Immunodeficiency syndromes Observation" or exists "CI Immunodeficiency syndromes Condition" /* @internal: Observation for Immunodeficiency syndromes */ define "CI Immunodeficiency syndromes Observation": "Potential contraindications" O where O.value ~ Concepts."CI-Immunodeficiency syndromes" /* @internal: Condition for Immunodeficiency syndromes */ define "CI Immunodeficiency syndromes Condition": [Condition: Concepts."CI-Immunodeficiency syndromes"] /* @input: The client is exposed to immunosuppressive treatment @pseudocode: "Potential contraindications" = "Exposed to immunosuppressive treatment" */ define "The client is exposed to immunosuppressive treatment": exists "CI Exposed to immunosuppressive treatment Observation" or exists "CI Exposed to immunosuppressive treatment Condition" /* @internal: Observation for Exposed to immunosuppressive treatment */ define "CI Exposed to immunosuppressive treatment Observation": "Potential contraindications" O where O.value ~ Concepts."CI-Exposed to immunosuppressive treatment" /* @internal: Condition for Exposed to immunosuppressive treatment */ define "CI Exposed to immunosuppressive treatment Condition": [Condition: Concepts."CI-Exposed to immunosuppressive treatment"] /* @input: The client currently has a severe acute illness @pseudocode: "Potential contraindications" = "Severe acute illness" */ define "The client currently has a severe acute illness": exists "CI Severe acute illness Observation" or exists "CI Severe acute illness Condition" /* @internal: Observation for Severe acute illness */ define "CI Severe acute illness Observation": "Potential contraindications" O where O.value ~ Concepts."CI-Severe acute illness" /* @internal: Condition for Severe acute illness */ define "CI Severe acute illness Condition": [Condition: Concepts."CI-Severe acute illness"] /* @input: The client has prior history of intussusception @pseudocode: "Potential contraindications" = "Prior history of intussusception" */ define "The client has prior history of intussusception": exists "CI Prior history of intussusception Observation" or exists "CI Prior history of intussusception Condition" /* @internal: Observation for Prior history of intussusception */ define "CI Prior history of intussusception Observation": "Potential contraindications" O where O.value ~ Concepts."CI-Prior history of intussusception" /* @internal: Condition for Prior history of intussusception */ define "CI Prior history of intussusception Condition": [Condition: Concepts."CI-Prior history of intussusception"] /* @input: The client has altered immunocompetence @pseudocode: "Potential contraindications" = "Altered immunocompetence" */ define "The client has altered immunocompetence": exists "CI Altered immunocompetence Observation" or exists "CI Altered immunocompetence Condition" /* @internal: Observation for Altered immunocompetence */ define "CI Altered immunocompetence Observation": "Potential contraindications" O where O.value ~ Concepts."CI-Altered immunocompetence" /* @internal: Condition for Altered immunocompetence */ define "CI Altered immunocompetence Condition": [Condition: Concepts."CI-Altered immunocompetence"] /* @input: The client has spina bifida @pseudocode: "Potential contraindications" = "Spina bifida" */ define "The client has spina bifida": exists "CI Spina bifida Observation" or exists "CI Spina bifida Condition" /* @internal: Observation for Spina bifida */ define "CI Spina bifida Observation": "Potential contraindications" O where O.value ~ Concepts."CI-Spina bifida" /* @internal: Condition for Spina bifida */ define "CI Spina bifida Condition": [Condition: Concepts."CI-Spina bifida"] /* @input: The client has bladder exstrophy @pseudocode: "Potential contraindications" = "Bladder exstrophy" */ define "The client has bladder exstrophy": exists "CI Bladder exstrophy Observation" or exists "CI Bladder exstrophy Condition" /* @internal: Observation for Bladder exstrophy */ define "CI Bladder exstrophy Observation": "Potential contraindications" O where O.value ~ Concepts."CI-Bladder exstrophy" /* @internal: Condition for Bladder exstrophy */ define "CI Bladder exstrophy Condition": [Condition: Concepts."CI-Bladder exstrophy"] /* @input: The client is immunocompromised @pseudocode: "Potential contraindications" = "Immunocompromised" */ define "The client is immunocompromised": "Client is immunocompromised" or exists "CI Immunocompromised Observation" or exists "CI Immunocompromised Condition" /* @internal: Observation for Immunocompromised */ define "CI Immunocompromised Observation": "Potential contraindications" O where O.value ~ Concepts."CI-Immunocompromised" /* @internal: Condition for Immunocompromised */ define "CI Immunocompromised Condition": [Condition: Concepts."CI-Immunocompromised"] /* @input: The client is planning to get pregnant in next month @pseudocode: "Potential contraindications" = "Planning to get pregnant in the next month" */ define "The client is planning to get pregnant in next month": exists "CI Planning to get pregnant in the next month Observation" or exists "CI Planning to get pregnant in the next month Condition" /* @internal: Observation for Planning to get pregnant in the next month */ define "CI Planning to get pregnant in the next month Observation": "Potential contraindications" O where O.value ~ Concepts."CI-Planning to get pregnant in the next month" /* @internal: Condition for Planning to get pregnant in the next month */ define "CI Planning to get pregnant in the next month Condition": [Condition: Concepts."CI-Planning to get pregnant in the next month"] /* @input: The client is receiving blood products @pseudocode: "Potential contraindications" = "Receiving blood products" */ define "The client is receiving blood products": exists "CI Receiving blood products Observation" or exists "CI Receiving blood products Condition" /* @internal: Observation for Receiving blood products */ define "CI Receiving blood products Observation": "Potential contraindications" O where O.value ~ Concepts."CI-Receiving blood products" /* @internal: Condition for Receiving blood products */ define "CI Receiving blood products Condition": [Condition: Concepts."CI-Receiving blood products"] /* @input: The client has TB disease @pseudocode: "Potential contraindications" = "TB disease" */ define "The client has TB disease": exists "CI TB disease Observation" or exists "CI TB disease Condition" /* @internal: Observation for TB disease */ define "CI TB disease Observation": "Potential contraindications" O where O.value ~ Concepts."CI-TB disease" /* @internal: Condition for TB disease */ define "CI TB disease Condition": [Condition: Concepts."CI-TB disease"] /* @input: The client is lactating @pseudocode: "Potential contraindications" = "Breastfeeding" */ define "The client is lactating": exists "CI Breastfeeding Observation" or exists "CI Breastfeeding Condition" /* @internal: Observation for Breastfeeding */ define "CI Breastfeeding Observation": "Potential contraindications" O where O.value ~ Concepts."CI-Breastfeeding" /* @internal: Condition for Breastfeeding */ define "CI Breastfeeding Condition": [Condition: Concepts."CI-Breastfeeding"] /* @input: The client has acute gastroenteritis @pseudocode: "Potential contraindications" = "Acute gastroenteritis" */ define "The client has acute gastroenteritis": exists "CI Acute gastroenteritis Observation" or exists "CI Acute gastroenteritis Condition" /* @internal: Observation for Acute gastroenteritis */ define "CI Acute gastroenteritis Observation": "Potential contraindications" O where O.value ~ Concepts."CI-Acute gastroenteritis" /* @internal: Condition for Acute gastroenteritis */ define "CI Acute gastroenteritis Condition": [Condition: Concepts."CI-Acute gastroenteritis"] /* @input: The client has moderate to severe fever @pseudocode: "Potential contraindications" = "Moderate to severe fever" */ define "The client has moderate to severe fever": exists "CI Moderate to severe fever Observation" or exists "CI Moderate to severe fever Condition" /* @internal: Observation for Moderate to severe fever */ define "CI Moderate to severe fever Observation": "Potential contraindications" O where O.value ~ Concepts."CI-Moderate to severe fever" /* @internal: Condition for Moderate to severe fever */ define "CI Moderate to severe fever Condition": [Condition: Concepts."CI-Moderate to severe fever"] /* @input: The client has hypersensitivity to any component of the vaccine @pseudocode: "Potential contraindications" = "Hypersensitivity to vaccine components" */ define "The client has hypersensitivity to any component of the vaccine": exists "CI Hypersensitivity to vaccine components Observation" or exists "CI Hypersensitivity to vaccine components Condition" /* @internal: Observation for Hypersensitivity to vaccine components */ define "CI Hypersensitivity to vaccine components Observation": "Potential contraindications" O where O.value ~ Concepts."CI-Hypersensitivity to vaccine components" /* @internal: Condition for Hypersensitivity to vaccine components */ define "CI Hypersensitivity to vaccine components Condition": [Condition: Concepts."CI-Hypersensitivity to vaccine components"] /* @input: The client is currently taking antibiotics @pseudocode: "Potential contraindications" = "Taking antibiotics" */ define "The client is currently taking antibiotics": exists "CI Taking antibiotics Observation" or exists "CI Taking antibiotics Condition" /* @internal: Observation for Taking antibiotics */ define "CI Taking antibiotics Observation": "Potential contraindications" O where O.value ~ Concepts."CI-Taking antibiotics" /* @internal: Condition for Taking antibiotics */ define "CI Taking antibiotics Condition": [Condition: Concepts."CI-Taking antibiotics"] /* @input: The client has chronic gastrointestinal disease @pseudocode: "Potential contraindications" = "Chronic gastrointestinal disease" */ define "The client has chronic gastrointestinal disease": exists "CI Chronic gastrointestinal disease Observation" or exists "CI Chronic gastrointestinal disease Condition" /* @internal: Observation for Chronic gastrointestinal disease */ define "CI Chronic gastrointestinal disease Observation": "Potential contraindications" O where O.value ~ Concepts."CI-Chronic gastrointestinal disease" /* @internal: Condition for Chronic gastrointestinal disease */ define "CI Chronic gastrointestinal disease Condition": [Condition: Concepts."CI-Chronic gastrointestinal disease"] /* @internal: HIV Status Observation */ define "HIV status Observation": ([Observation: Concepts."HIV status"]).complete() /* @input: Client's HIV status is negative or unknown @pseudocode: "HIV status" ≠ "HIV-positive" */ define "Client's HIV status is negative or unknown": not "Client's HIV status is positive" /* @input: Client's HIV status is positive @pseudocode: "HIV status" = "HIV-positive" */ define "Client's HIV status is positive": exists( "HIV status Observation" O where O.value ~ Concepts."HIV-positive" ) /* @internal: Currently on ART Observation */ define "Currently on ART Observation": ([Observation: Concepts."Currently on ART"] O sort by end of effective.toInterval() desc).complete() /* @input: Client is currently receiving antiretroviral therapy @pseudocode: "Currently on ART" = TRUE */ define "Client is currently receiving antiretroviral therapy": First("Currently on ART Observation").value = true /* @input: Client is currently not receiving antiretroviral therapy @pseudocode: "Currently on ART" = FALSE */ define "Client is currently not receiving antiretroviral therapy": not "Client is currently receiving antiretroviral therapy" /* @internal: Immunologically stable Observation */ define "Immunologically stable Observation": ([Observation: Concepts."Immunologically stable"] O sort by end of effective.toInterval() desc).complete() /* @input: Client is immunologically stable @pseudocode: "Immunologically stable" = TRUE */ define "Client is immunologically stable": First("Immunologically stable Observation").value = true /* @input: Client is not immunologically stable @pseudocode: "Immunologically stable" = FALSE */ define "Client is not immunologically stable": First("Immunologically stable Observation").value = false /* @internal: TB infection test result Observation */ define "TB infection test result Observation": ([Observation: Concepts."TB infection test result"] O sort by end of effective.toInterval() desc).complete() /* @input: Client's TB infection test result is negative @pseudocode: "TB infection test result" = "Negative" */ define "Client's TB infection test result is negative": First( "TB infection test result Observation" ).value ~ Concepts."TB-Negative" /* @input: Client's TB infection test result is unknown (test not done or no result yet) @pseudocode: "TB infection test result" IS NULL */ define "Client's TB infection test result is unknown (test not done or no result yet)": not exists( "TB infection test result Observation" ) or ( not ("Client's TB infection test result is negative") and not ("Client's TB infection test result is positive") ) /* @input: Client's TB infection test result is positive @pseudocode: "TB infection test result" = "Positive" */ define "Client's TB infection test result is positive": First( "TB infection test result Observation" ).value ~ Concepts."TB-Positive" /* @internal: Clinically well Observation */ define "Clinically well Observation": ([Observation: Concepts."Clinically well"] O sort by end of effective.toInterval() desc).complete() /* @input: Client is not clinically well @pseudocode: "Clinically well" = FALSE */ define "Client is not clinically well": First( "Clinically well Observation" ).value = false /* @input: Client is clinically well @pseudocode: "Clinically well" = TRUE */ define "Client is clinically well": First( "Clinically well Observation" ).value = true /* @internal: Immunocompromised Observation */ define "Immunocompromised Observation": ([Observation: Concepts."Immunocompromised"] O sort by end of effective.toInterval() desc).complete() /* @input: Client is immunocompromised @pseudocode: "Immunocompromised" = TRUE */ define "Client is immunocompromised": exists( "Immunocompromised Observation" ) and First( "Immunocompromised Observation" ).value = true /* @input: Client is not immunocompromised @pseudocode: "Immunocompromised" ≠ TRUE */ define "Client is not immunocompromised": not "Client is immunocompromised" /* @internal: Birth weight in grams Observation */ define "Birth weight in grams Observation": ([Observation: Concepts."Birth weight in grams"] O sort by end of effective.toInterval() desc).complete() define "Birth weight in grams Value": First("Birth weight in grams Observation" O).value as FHIR.Quantity define "Birth weight in grams": "Birth weight in grams Value".value as FHIR.decimal /* @input: Client's weight at birth was over 2000 g @pseudocode: "Birth weight in grams" ≥ 2000 */ define "Client's weight at birth was over 2000 g": "Birth weight in grams" >= 2000 /* @input: Client's weight at birth was below 2000 g @pseudocode: "Birth weight in grams" < 2000 */ define "Client's weight at birth was below 2000 g": "Birth weight in grams" < 2000 /* @internal: Preterm birth Observation */ define "Preterm birth Observation": ([Observation: Concepts."Preterm birth"]).complete() /* @input: Client was not a premature infant at birth @pseudocode: "Preterm birth" ≠ TRUE */ define "Client was not a premature infant at birth": not "Client was a premature infant at birth" /* @input: Client was a premature infant at birth @pseudocode: "Preterm birth" = TRUE */ define "Client was a premature infant at birth": exists( "Preterm birth Observation" O where O.value = true ) /* @internal: Completed the primary vaccination series Observation */ define "Completed the primary vaccination series Observation": ([Observation: Concepts."Completed the primary vaccination series"]).complete() /* @internal: At high risk for pneumococcal infection Observation */ define "At high risk for pneumococcal infection Observation": ([Observation: Concepts."At high risk for pneumococcal infection"]).complete() /* @input: Client is at high risk for pneumococcal infection @pseudocode: "At high risk for pneumococcal infection" = TRUE */ define "Client is at high risk for pneumococcal infection": exists( "At high risk for pneumococcal infection Observation" O where O.value = true ) /* @input: Client is not at high risk for pneumococcal infection @pseudocode: "At high risk for pneumococcal infection" = FALSE */ define "Client is not at high risk for pneumococcal infection": exists( "At high risk for pneumococcal infection Observation" O where O.value = false ) /* @internal: Date when primary vaccination series was completed Observation */ define "Date when primary vaccination series was completed Observation": ([Observation: Concepts."Date when primary vaccination series was completed"] O sort by end of effective.toInterval() desc).complete() /* @internal: Completed the booster series Observation */ define "Completed the booster series Observation": ([Observation: Concepts."Completed the booster series"]).complete() Content: application/elm+xml Encoded data (360780 characters)
This library defines context-independent elements used throughout the Immunization CPG
Live vaccine was administered in the last 4 weeks
No live vaccine was administered in the last 4 weeks
CI History of anaphylactic reactions Observation
CI History of anaphylactic reactions Condition
The client has history of anaphylactic reactions
CI Severe allergic reactions Observation
The client has history of severe allergic reactions
CI Severely immunocompromised Observation
The client is severely immunocompromised
CI Severely immunosuppressed Observation
CI Symptomatic HIV infection Observation
The client has a symptomatic HIV infection
CI Immunodeficiency syndromes Observation
The client has immunodeficiency syndromes
CI Exposed to immunosuppressive treatment Observation
CI Exposed to immunosuppressive treatment Condition
The client is exposed to immunosuppressive treatment
The client currently has a severe acute illness
CI Prior history of intussusception Observation
CI Prior history of intussusception Condition
The client has prior history of intussusception
CI Planning to get pregnant in the next month Observation
CI Planning to get pregnant in the next month Condition
The client is planning to get pregnant in next month
CI Hypersensitivity to vaccine components Observation
CI Hypersensitivity to vaccine components Condition
The client has hypersensitivity to any component of the vaccine
The client is currently taking antibiotics
CI Chronic gastrointestinal disease Observation
CI Chronic gastrointestinal disease Condition
The client has chronic gastrointestinal disease
Client's HIV status is negative or unknown
Client is currently receiving antiretroviral therapy
Client is currently not receiving antiretroviral therapy
Client's TB infection test result is negative
Client's TB infection test result is positive
Client's TB infection test result is unknown (test not done or no result yet)
Client's weight at birth was over 2000 g
Client's weight at birth was below 2000 g
Client was not a premature infant at birth
Completed the primary vaccination series Observation
At high risk for pneumococcal infection Observation
Client is at high risk for pneumococcal infection
Client is not at high risk for pneumococcal infection
Date when primary vaccination series was completed Observation
Completed the booster series Observation