HypertensiveEmergency
type: Library
node role: treeRoot
id:
  v: HypertensiveEmergency
text:
  status:
    v: extensions
  div:
    v: Id: HypertensiveEmergency Url: Very High Blood Pressure Alert Logic Version: 0.1.0 Name: HypertensiveEmergency Title: Very High Blood Pressure Alert Logic Status: draft Date: 2026-02-19 22:08:15+0000 Publisher: Oregon Health and Science University Description: Decision logic for identifying a recent very high blood pressure 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 Systolic blood pressure depends-on Diastolic Blood Pressure depends-on Blood Pressure Measured Parameters: Name Type Min Max In/Out Patient Patient 0 1 Out BP Observation Count integer 0 1 Out Next Most Recent BP Reading Resource 0 1 Out Two Low BPs boolean 0 1 Out In Population boolean 0 1 Out Two High BPs 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 Most Recent BP Reading Resource 0 1 Out TEST Next Most Recent BP Reading Resource 0 1 Out TEST Two High BPs boolean 0 1 Out TEST Two Low BPs boolean 0 1 Out TEST One Low BP boolean 0 1 Out Data Requirements: Type Profile MS Code Filter Patient http://hl7.org/fhir/StructureDefinition/Patient Observation http://hl7.org/fhir/StructureDefinition/Observation ; Content: text/cql library HypertensiveEmergency 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 function &quot;BP Within 14 Days&quot;(O Tuple { id String, effective DateTime, systolic Decimal, diastolic Decimal, readingType String }):#xD; O.effective + 14 days &gt;= Today()#xD; #xD; // Two Low BPs ar…
extension:
  url:
    v: http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-softwaresystem
    l: cqfm-softwaresystem
  value: Reference
    l: cqf-tooling
    reference:
      v: Device/cqf-tooling
url:
  v: http://fhir.org/guides/ohsuhypertensionig/Library/HypertensiveEmergency
  l: HypertensiveEmergency
version:
  v: 0.1.0
name:
  v: HypertensiveEmergency
title:
  v: Very High Blood Pressure Alert Logic
status:
  v: draft
date:
  v: 2026-02-19T22:08:15+00:00
publisher:
  v: Oregon Health and Science University
contact:
  name:
    v: Oregon Health and Science University
  telecom:
    system:
      v: url
    value:
      v: https://www.ohsu.edu/
description:
  v: Decision logic for identifying a recent very high blood pressure
jurisdiction:
  coding:
    system:
      v: http://unstats.un.org/unsd/methods/m49/m49.htm
      l: m49.htm
    code:
      v: 840
copyright:
  v: Published by OHSU under an Apache 2.0 License
related artifact:
  type:
    v: depends-on
  display:
    v: FHIR model information
  resource:
    v: http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1
    l: http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo
related artifact:
  type:
    v: depends-on
  display:
    v: Library FHIRHelpers
  resource:
    v: http://fhir.org/guides/ohsuhypertensionig/Library/FHIRHelpers|4.0.1
    l: http://fhir.org/guides/ohsuhypertensionig/Library/FHIRHelpers
related artifact:
  type:
    v: depends-on
  display:
    v: Library Common
  resource:
    v: http://fhir.org/guides/ohsuhypertensionig/Library/OHSUHTNCommon|0.1
    l: http://fhir.org/guides/ohsuhypertensionig/Library/OHSUHTNCommon
related artifact:
  type:
    v: depends-on
  display:
    v: Value set Systolic Blood Pressure
  resource:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1104.2
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1104.2
related artifact:
  type:
    v: depends-on
  display:
    v: Value set Diastolic Blood Pressure
  resource:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.2.1045
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.2.1045
related artifact:
  type:
    v: depends-on
  display:
    v: Value set Blood Pressure Measured
  resource:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.2012
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.2012
parameter:
  name:
    v: Patient
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: Patient
parameter:
  name:
    v: BP Observation Count
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: integer
parameter:
  name:
    v: Next Most Recent BP Reading
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: Resource
parameter:
  name:
    v: Two Low BPs
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: In Population
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: Two High BPs
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: boolean
parameter:
  name:
    v: Recommendation
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: string
parameter:
  name:
    v: Rationale
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: string
parameter:
  name:
    v: Suggestions
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: string
parameter:
  name:
    v: Selection Behavior

v: out

v: 0

v: 1

v: string

name:
  v: Links
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: string

name:
  v: Rationale Combined Data
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: string

name:
  v: Indicator Status
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: string

name:
  v: TEST Most Recent BP Reading
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: Resource

name:
  v: TEST Next Most Recent BP Reading
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: Resource

name:
  v: TEST Two High BPs
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: boolean

name:
  v: TEST Two Low BPs
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: boolean

name:
  v: TEST One Low BP
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: boolean

type:
  v: Patient
profile:
  v: http://hl7.org/fhir/StructureDefinition/Patient
  l: Patient

type:
  v: Observation
profile:
  v: http://hl7.org/fhir/StructureDefinition/Observation
  l: Observation
must support:
  v: code

content type:
  v: text/cql

content type:
  v: application/elm+xml

content type:
  v: application/elm+json