WhatMattersLogic
type: Library
node role: treeRoot
id:
  v: WhatMattersLogic
language:
  v: en
text:
  status:
    v: extensions
  div:
    v: Id: WhatMattersLogic Version: 1.0.0 Url: WhatMattersLogic Status: draft Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2026-03-02 20:03:58+0000 Publisher: HL7 International / Patient Care Description: CQL logic for What Matters concepts. Jurisdiction: US Related Artifacts: Dependencies http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1 http://hl7.org/fhir/uv/cql/Library/FHIRCommon|2.0.0 http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1 http://hl7.org/fhir/us/pco/Library/PCOCommon|0.1.0 Person-Centered Outcome Concepts Person-Centered Categories Well-Being Domains Example Parameters: Name Type Min Max In/Out Measurement Period Period 0 1 In Follow-Up Interval Range 0 1 In Patient Patient 0 1 Out Well-Being Observations Observation 0 * 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 WhatMattersLogic version '0.1.0' using FHIR version '4.0.1' include hl7.fhir.uv.cql.FHIRCommon version '2.0.0' include hl7.fhir.uv.cql.FHIRHelpers version '4.0.1' include PCOCommon version '0.1.0' called PC codesystem "Well-Being Concepts": 'http://hl7.org/fhir/us/pco/CodeSystem/pco-concepts-temporary' valueset "Well-Being Categories": 'http://hl7.org/fhir/us/pco/ValueSet/pco-categories' valueset "Well-Being Domains": 'http://hl7.org/fhir/us/pco/ValueSet/wellbeing-domains-example' code "What Matters category": 'what-matters' from "Well-Being Concepts" display 'What Matters' parameter "Measurement Period" Interval<DateTime> default Interval[@2024-01-01T00:00:00.000Z, @2024-12-31T23:59:59.999Z] parameter "Follow-Up Interval" Interval<System.Quantity> default Interval[2 weeks, 26 weeks] context Patient define "Well-Being Observations": [Observation] obs where obs.category in "Well-Being Categories" or obs.code in "Well-Being Domains" // Returns a list of what matters Observations this…
contained: Parameters
  id:
    v: options
  parameter:
    name:
      v: translatorVersion
    value: String
      v: 3.25.0
  parameter:
    name:
      v: option
    value: String
      v: EnableAnnotations
  parameter:
    name:
      v: option
    value: String
      v: EnableLocators
  parameter:
    name:
      v: option
    value: String
      v: DisableListDemotion
  parameter:
    name:
      v: option
    value: String
      v: DisableListPromotion
  parameter:
    name:
      v: format
    value: String
      v: JSON
  parameter:
    name:
      v: format
    value: String
      v: XML
  parameter:
    name:
      v: analyzeDataRequirements
    value: Boolean
      v: false
  parameter:
    name:
      v: collapseDataRequirements
    value: Boolean
      v: true
  parameter:
    name:
      v: compatibilityLevel
    value: String
      v: 1.5
  parameter:
    name:
      v: enableCqlOnly
    value: Boolean
      v: false
  parameter:
    name:
      v: errorLevel
    value: String
      v: Info
  parameter:
    name:
      v: signatureLevel
    value: String
      v: Overloads
  parameter:
    name:
      v: validateUnits
    value: Boolean
      v: true
  parameter:
    name:
      v: verifyOnly
    value: Boolean
      v: false
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-cqlOptions
    l: cqf-cqlOptions
  value: Reference
    l: options
    reference:
      v: #options
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-wg
    l: structuredefinition-wg
  value: Code
    v: pc
url:
  v: http://hl7.org/fhir/us/pco/Library/WhatMattersLogic
  l: WhatMattersLogic
version:
  v: 1.0.0
name:
  v: WhatMattersLogic
status:
  v: draft
type:
  coding:
    system:
      v: http://terminology.hl7.org/CodeSystem/library-type
      l: library-type
    code:
      v: logic-library
date:
  v: 2026-03-02T20:03:58+00:00
publisher:
  v: HL7 International / Patient Care
contact:
  name:
    v: HL7 International / Patient Care
  telecom:
    system:
      v: url
    value:
      v: http://www.hl7.org/Special/committees/patientcare
  telecom:
    system:
      v: email
description:
  v: CQL logic for What Matters concepts.
jurisdiction:
  coding:
    system:
      v: urn:iso:std:iso:3166
      l: 3166
    code:
      v: US
    display:
      v: United States of America
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 FHIRCommon
  resource:
    v: http://hl7.org/fhir/uv/cql/Library/FHIRCommon|2.0.0
    l: http://hl7.org/fhir/uv/cql/Library/FHIRCommon
related artifact:
  type:
    v: depends-on
  display:
    v: Library FHIRHelpers
  resource:
    v: http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1
    l: http://hl7.org/fhir/uv/cql/Library/FHIRHelpers
related artifact:
  type:
    v: depends-on
  display:
    v: Library PC
  resource:
    v: http://hl7.org/fhir/us/pco/Library/PCOCommon|0.1.0
    l: http://hl7.org/fhir/us/pco/Library/PCOCommon
related artifact:
  type:
    v: depends-on
  display:
    v: Code system Well-Being Concepts
  resource:
    v: http://hl7.org/fhir/us/pco/CodeSystem/pco-concepts-temporary
    l: pco-concepts-temporary
related artifact:
  type:
    v: depends-on
  display:
    v: Value set Well-Being Categories
  resource:
    v: http://hl7.org/fhir/us/pco/ValueSet/pco-categories
    l: pco-categories
related artifact:
  type:
    v: depends-on
  display:
    v: Value set Well-Being Domains
  resource:
    v: http://hl7.org/fhir/us/pco/ValueSet/wellbeing-domains-example
    l: wellbeing-domains-example

name:
  v: Measurement Period
use:
  v: in
min:
  v: 0
max:
  v: 1
type:
  v: Period

name:
  v: Follow-Up Interval
use:
  v: in
min:
  v: 0
max:
  v: 1
type:
  v: Range

name:
  v: Patient
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: Patient

name:
  v: Well-Being Observations
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Observation

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: category
must support:
  v: code
must support:
  v: id

content type:
  v: text/cql

content type:
  v: application/elm+xml

content type:
  v: application/elm+json