AdverseEvents
type: Library
node role: treeRoot
id:
  v: AdverseEvents
text:
  status:
    v: extensions
  div:
    v: Id: AdverseEvents Url: Adverse Event Logic Version: 0.1.0 Name: AdverseEvents Title: Adverse Event Logic Status: draft Date: 2026-02-19 22:08:15+0000 Publisher: Oregon Health and Science University Description: Decision logic for identifying recent adverse reactions that may be related to 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 AdverseEventOutcome Parameters: Name Type Min Max In/Out Patient Patient 0 1 Out Untreated Recommendation string 0 1 Out Untreated Rationale string 0 1 Out Adverse Events AdverseEvent 0 * Out Untreated Adverse Events AdverseEvent 0 * Out Untreated Suggestions string 0 1 Out Selection Behavior string 0 1 Out Links string 0 1 Out Untreated Rationale Combined Data string 0 1 Out Untreated Indicator Status string 0 1 Out Treated Indicator Status string 0 1 Out Treated Recommendation string 0 1 Out Treated Adverse Events AdverseEvent 0 * Out Treated Rationale string 0 1 Out Treated Suggestions string 0 1 Out Treated Rationale Combined Data string 0 1 Out Untreated Adverse Events Action Path boolean 0 1 Out Treated Adverse Events Action Path boolean 0 1 Out Data Requirements: Type Profile MS Code Filter Patient http://hl7.org/fhir/StructureDefinition/Patient AdverseEvent http://hl7.org/fhir/StructureDefinition/AdverseEvent ;;; Content: text/cql library AdverseEvents 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; codesystem &quot;AdverseEventOutcomeCodeSystem&quot;: 'http://terminology.hl7.org/CodeSystem/adverse-event-outcome'#xD; code &quot;ongoing&quot;: 'ongoing' from &quot;AdverseEventOutcomeCodeSystem&quot; display 'Ongoin…
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/AdverseEvents
  l: AdverseEvents
version:
  v: 0.1.0
name:
  v: AdverseEvents
title:
  v: Adverse Event 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 recent adverse reactions that may be related to hypertension medications
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: Code system AdverseEventOutcomeCodeSystem
  resource:
    v: http://terminology.hl7.org/CodeSystem/adverse-event-outcome
    l: adverse-event-outcome
parameter:
  name:
    v: Patient
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: Patient
parameter:
  name:
    v: Untreated Recommendation
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: string
parameter:
  name:
    v: Untreated Rationale
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: string
parameter:
  name:
    v: Adverse Events
  use:
    v: out
  min:
    v: 0
  max:
    v: *
  type:
    v: AdverseEvent
parameter:
  name:
    v: Untreated Adverse Events
  use:
    v: out
  min:
    v: 0
  max:
    v: *
  type:
    v: AdverseEvent
parameter:
  name:
    v: Untreated Suggestions
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: string
parameter:
  name:
    v: Selection Behavior
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: string
parameter:
  name:
    v: Links
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: string
parameter:
  name:
    v: Untreated Rationale Combined Data
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: string
parameter:
  name:
    v: Untreated Indicator Status
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: string
parameter:
  name:
    v: Treated Indicator Status
  use:
    v: out
  min:
    v: 0
  max:
    v: 1

v: string

name:
  v: Treated Recommendation
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: string

name:
  v: Treated Adverse Events
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: AdverseEvent

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

name:
  v: Treated Suggestions
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: string

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

name:
  v: Untreated Adverse Events Action Path
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: boolean

name:
  v: Treated Adverse Events Action Path
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: AdverseEvent
profile:
  v: http://hl7.org/fhir/StructureDefinition/AdverseEvent
  l: AdverseEvent
must support:
  v: event
must support:
  v: event.coding
must support:
  v: outcome

content type:
  v: text/cql

content type:
  v: application/elm+xml

content type:
  v: application/elm+json