OHSU Hypertension Implementation Guide
0.1.0 - CI Build Unknown region code '840'

OHSU Hypertension Implementation Guide, published by Oregon Health and Science University. This is not an authorized publication; it is the continuous build for version 0.1.0). This version is based on the current content of https://github.com/OHSUCMP/htnu18ig/ and changes regularly. See the Directory of published versions

Library: Therapy - Medicines Logic

Official URL: http://fhir.org/guides/ohsuhypertensionig/Library/Pharma Version: 0.1.0
Draft as of 2023-05-11 Computable Name: Pharma

Copyright/Legal: Published by OHSU under an Apache 2.0 License

Decision logic for recommendations concerning hypertension medications

Id: Pharma
Url: http://fhir.org/guides/ohsuhypertensionig/Library/Pharma
Version: 0.1.0
Name: Pharma
Title: Therapy - Medicines Logic
Status: draft
Date: 2023-05-11 22:13:39+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:
TypeResource
depends-onhttp://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1
depends-onhttp://fhir.org/guides/ohsuhypertensionig/Library/FHIRHelpers|4.0.1
depends-onhttp://fhir.org/guides/ohsuhypertensionig/Library/OHSUHTNCommon|0.1
depends-onhttp://terminology.hl7.org/CodeSystem/condition-ver-status
depends-onhttp://terminology.hl7.org/CodeSystem/condition-category
depends-onhttp://hl7.org/fhir/CodeSystem/medicationrequest-status
depends-onhttp://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.104.12.1016
depends-onhttp://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1032.10
depends-onhttp://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.2.590
depends-onhttp://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.378
depends-onhttp://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1104.2
depends-onhttp://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.2.1045
depends-onhttp://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.2012
depends-onhttp://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1178.10
depends-onhttp://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1200.242
Parameters:
NameTypeMinMaxIn/Out
PatientPatient01out
Meets Inclusion Criteriaboolean01out
Meets Exclusion Criteriaboolean01out
In Populationboolean01out
Enter Workflowboolean01out
Recommendationstring01out
Rationalestring01out
Suggestionsstring01out
Selection Behaviorstring01out
Linksstring01out
Rationale Combined Datastring01out
Indicator Statusstring01out
Test Antihypertensive Medicationsboolean01out
Data Requirements:
TypeProfileMSCode Filter
Patient http://hl7.org/fhir/StructureDefinition/Patient
Condition http://hl7.org/fhir/StructureDefinition/Condition ;;

code filter:
path: category

system: http://terminology.hl7.org/CodeSystem/condition-category

code: problem-list-item

display: Problem List Item

Condition http://hl7.org/fhir/StructureDefinition/Condition ;;

code filter:
path: category

system: http://terminology.hl7.org/CodeSystem/condition-category

code: encounter-diagnosis

display: Encounter Diagnosis

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'

using FHIR version '4.0.1'

include FHIRHelpers version '4.0.1' called FHIRHelpers
include OHSUHTNCommon version '0.1' called Common

context Patient

define "Meets Inclusion Criteria":
  exists Common."Condition Indicating Preexisting Hypertension"

define "Meets Exclusion Criteria":
  Common."Patient Under Age 18"
    or Common."Patient Over Age 80"
    or exists Common."Condition Indicating End Stage Renal Disease"
    or exists Common."Condition Indicating Pregnancy"
    or Common."HTN Crisis"

define "In Population":
  // Preserve this ordering so excluded patients fail fast
  not "Meets Exclusion Criteria" and "Meets Inclusion Criteria"

// Tests conditions from other workflows needed for Pharma intervention to proceed
define "Enter Workflow":
    "In Population" and Common."Receive Therapy"

define "Recommendation":
  if Common."Patient is Using Antihypertensive Medications" then 'Use shared decision making for treatment.'
  else 'Discuss using medication to treat high blood pressure with your care team.'

define "Rationale Combined Data":
  "Rationale" + '|' + "Suggestions" + '|' + "Selection Behavior" + '|' + "Links"

define "Rationale":
  if Common."Patient is Using Antihypertensive Medications" then '{{#patient}}Your <strong>blood pressure is still high despite current efforts to lower it</strong>; changing your medication may be an option. This may occur sooner than expected.{{/patient}}{{#careTeam}}Employ shared decision making practices when discussing treatment for high blood pressure with your patient.{{/careTeam}}'
  else '{{#patient}}Your blood pressure is substantially elevated, to the point where <strong>medication should be considered</strong>.This may occur sooner than expected. Speak with your care team to discuss medication options.{{/patient}}{{#careTeam}}In patients under 55 with high blood pressure and listed comorbidities, use thiazide-type diuretic, ACE-I, ARB, or CCB for first-line therapy{{/careTeam}}'

define "Suggestions":
  if Common."Patient is Using Antihypertensive Medications" then '[ { "id": "contact-suggestion", "label": "Contact care team", "type": "suggestion-link", "actions": [{"label":"Contact your care team about options to control your high blood pressure.", "url":"/contact?token=recommend-advancing-treatment"}] } ]'
  else '[ { "id": "contact-suggestion", "label": "Contact care team", "type": "suggestion-link", "actions": [{"label":"Contact your care team about options to control your high blood pressure.", "url":"/contact?token=recommend-pharma"}] } ]'

define "Indicator Status":
  'warning'

define "Selection Behavior":
  'at-most-one'

define "Links":
  ''

define "Test Antihypertensive Medications":
  Common."Patient is Using Antihypertensive Medications"
Content: application/elm+xml
Encoded data (32388 characters)
Content: application/elm+json
Encoded data (52244 characters)