Person-Centered Outcomes (PCO) Implementation Guide
1.0.0 - STU 1 United States of America flag

Person-Centered Outcomes (PCO) Implementation Guide, published by HL7 International / Patient Care. This guide is not an authorized publication; it is the continuous build for version 1.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/pco-ig/ and changes regularly. See the Directory of published versions

Library: WhatMattersLogic

Official URL: http://hl7.org/fhir/us/pco/Library/WhatMattersLogic Version: 1.0.0
Standards status: Trial-use Maturity Level: 2 Computable Name: WhatMattersLogic

CQL logic for What Matters concepts.

Metadata
Version 1.0.0
Status Draft
Jurisdiction United States of America
Steward (Publisher) HL7 International / Patient Care
Steward Contact HL7 International / Patient Care
Description

CQL logic for What Matters concepts.

Type logic-library from http://terminology.hl7.org/CodeSystem/library-type
Dependency Description: FHIR model information
Resource: http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1
Canonical URL: http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1
Dependency Description: Library FHIRCommon
Resource: http://hl7.org/fhir/uv/cql/Library/FHIRCommon|2.0.0
Canonical URL: http://hl7.org/fhir/uv/cql/Library/FHIRCommon|2.0.0
Dependency Description: Library FHIRHelpers
Resource: http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1
Canonical URL: http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1
Dependency Description: Library PC
Resource: http://hl7.org/fhir/us/pco/Library/PCOCommon|0.1.0
Canonical URL: http://hl7.org/fhir/us/pco/Library/PCOCommon|0.1.0
Dependency Description: Code system Well-Being Concepts
Resource: Person-Centered Outcome Concepts
Canonical URL: http://hl7.org/fhir/us/pco/CodeSystem/pco-concepts-temporary
Dependency Description: Value set Well-Being Categories
Resource: Person-Centered Categories
Canonical URL: http://hl7.org/fhir/us/pco/ValueSet/pco-categories
Dependency Description: Value set Well-Being Domains
Resource: Well-Being Domains Example
Canonical URL: http://hl7.org/fhir/us/pco/ValueSet/wellbeing-domains-example
Data Requirement Type: Patient
Profile(s): Patient
Data Requirement Type: Observation
Profile(s): Observation
Must Support Elements: category, code, id
Parameters
Name Use Card. Type Documentation
Measurement Period In 0..1 Period
Follow-Up Interval In 0..1 Range
Patient Out 0..1 Patient
Well-Being Observations Out 0..* Observation
Library Content
CQL Content
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 Goal addresses.
define fluent function whatMattersObservations(goal Goal):
  flatten( goal.addresses GA
      return [Observation] obs
        where GA.references(obs.id)
          and obs.isWhatMatters()
  )

define fluent function isWhatMatters(obs Observation):
  exists( "Well-Being Observations" obs
    where exists(obs.category cat where cat = "What Matters category")
  )
ELM XML Content
Encoded data 
ELM JSON Content
Encoded data 
Generated using version 0.5.4 of the sample-content-ig Liquid templates