Id: Pharma Url: Therapy - Medicines Logic Version: 0.1.0 Name: Pharma Title: Therapy - Medicines Logic Status: draft Date: 2026-02-19 22:08:15+0000 Publisher: Oregon Health and Science University Description: Decision logic for recommendations concerning hypertension medications Jurisdiction: 840 Copyright: Published by OHSU under an Apache 2.0 License Related Artifacts: Type Resource depends-on http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1 depends-on http://fhir.org/guides/ohsuhypertensionig/Library/FHIRHelpers|4.0.1 depends-on Common Logicversion: null0.1.0) depends-on ConditionVerificationStatus depends-on Condition Category Codes depends-on Medicationrequest status depends-on Hypertension depends-on Non essential Hypertension SNOMEDCT depends-on End Stage Renal Disease depends-on Pregnancy depends-on Systolic blood pressure depends-on Diastolic Blood Pressure depends-on Blood Pressure Measured depends-on Antihypertensive Medications depends-on Anti Hypertensive Drugs Parameters: Name Type Min Max In/Out Patient Patient 0 1 Out Meets Inclusion Criteria boolean 0 1 Out Meets Exclusion Criteria boolean 0 1 Out In Population boolean 0 1 Out Receive Therapy boolean 0 1 Out Enter Workflow boolean 0 1 Out Recommendation string 0 1 Out Rationale string 0 1 Out Suggestions string 0 1 Out Selection Behavior string 0 1 Out Links string 0 1 Out Rationale Combined Data string 0 1 Out Indicator Status string 0 1 Out Test Antihypertensive Medications boolean 0 1 Out Data Requirements: Type Profile MS Code Filter Patient http://hl7.org/fhir/StructureDefinition/Patient Condition http://hl7.org/fhir/StructureDefinition/Condition ; Observation http://hl7.org/fhir/StructureDefinition/Observation ; Goal http://hl7.org/fhir/StructureDefinition/Goal ; MedicationRequest http://hl7.org/fhir/StructureDefinition/MedicationRequest ;;;;;;;;;; Content: text/cql library Pharma version '0.1'#xD; #xD; using FHIR version '4.0.1'#xD; #xD; include FHIRHelpers version '4.0.1' called FHIRHelpers#xD; include OHSUHTNCommon version '0.1' called Common#xD; #xD; context Patient#xD; #xD; define &quot;Meets Inclusion Criteria&quot;:#xD; exists Common.&quot;Condition Indicating Preexisting Hypertension&quot;#xD; #xD; define &quot;Meets Exclusion Criteria&quot;:#xD; Common.&quot;Patient Under Age 18&quot;#xD; or Common.&quot;Patient Over Age 100&quot;#xD; or exists Common.&quot;Condition Indicating End Stage Renal Disease&quot;#xD; or exists Common.&quot;Condition Indicating Pregnancy&quot;#xD; or Common.&quot;HTN Crisis&quot;#xD; #xD; define &quot;In Population&quot;:#xD; // Preserve this ordering so excluded patients fail fast#xD; not &quot;Meets Exclusion Criteria&quot; and &quot;Meets Inclusion Criteria&quot;#xD; #xD; // Pharma Therapy should be received if there are 12 home BPs and goal has not been achieved#xD; define &quot;Receive Therapy&quot;:#xD; Common.&quot;Has 12 Home BPs&quot; and Common.&quot;Patient has a BP Goal&quot; and Common.&quot;Above Goal Average Most Recent&quot;#xD; #xD; // Tests conditions from other workflows needed for Pharma intervention to proceed#xD; define &quot;Enter Workflow&quot;:#xD; &quot;In Population&quot; and &quot;Receive Therapy&quot;#xD; #xD; define &quot;Recommendation&quot;:#xD; 'Blood Pressure is not at goal'#xD; #xD; define &quot;Rationale Combined Data&quot;:#xD; &quot;Rationale&quot; + '|' + &quot;Suggestions&quot; + '|' + &quot;Selection Behavior&quot; + '|' + &quot;Links&quot;#xD; #xD; define &quot;Rationale&quot;:#xD; if Common.&quot;Patient is Using Antihypertensive Medications&quot; then 'Your blood pressure is not at goal despite continuous monitoring. You may want to consider starting or changing antihypertensive medication. Other factors that can contribute to BP not being at goal include excessive stress, new over the counter remedies. Contact your care team to discuss options.'#xD; else 'Your blood pressure is not at goal despite continuous monitoring. You may want to consider starting or changing antihypertensive medication. Other factors that can contribute to BP not being at goal include excessive stress, new over the counter remedies. Contact your care team to discuss options.'#xD; #xD; define &quot;Suggestions&quot;:#xD; if Common.&quot;Patient is Using Antihypertensive Medications&quot; then '[ { &quot;id&quot;: &quot;contact-suggestion&quot;, &quot;label&quot;: &quot;Contact care team&quot;, &quot;type&quot;: &quot;suggestion-link&quot;, &quot;actions&quot;: [{&quot;label&quot;:&quot;Contact your care team about options to control your high blood pressure.&quot;, &quot;url&quot;:&quot;/contact?token=recommend-advancing-treatment&quot;}] } ]'#xD; else '[ { &quot;id&quot;: &quot;contact-suggestion&quot;, &quot;label&quot;: &quot;Contact care team&quot;, &quot;type&quot;: &quot;suggestion-link&quot;, &quot;actions&quot;: [{&quot;label&quot;:&quot;Contact your care team about options to control your high blood pressure.&quot;, &quot;url&quot;:&quot;/contact?token=recommend-pharma&quot;}] } ]'#xD; #xD; define &quot;Indicator Status&quot;:#xD; 'warning'#xD; #xD; define &quot;Selection Behavior&quot;:#xD; 'at-most-one'#xD; #xD; define &quot;Links&quot;:#xD; ''#xD; #xD; define &quot;Test Antihypertensive Medications&quot;:#xD; Common.&quot;Patient is Using Antihypertensive Medications&quot;#xD; Content: application/elm+xml Encoded data (32384 characters) Content: application/elm+json Encoded data (53224 characters)
Decision logic for recommendations concerning hypertension medications
Published by OHSU under an Apache 2.0 License
Code system ConditionVerificationStatusCodes
Value set Non essential Hypertension SNOMEDCT
Value set Antihypertensive Medications 1
Value set Antihypertensive Medications 2