GoalAttainmentLogic
type: Library
node role: treeRoot
id:
  v: GoalAttainmentLogic
language:
  v: en
text:
  status:
    v: extensions
  div:
    v: 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 Shared logic for Goal Attainment Scaling. 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: Library WM Resource: http://hl7.org/fhir/us/pco/Library/WhatMattersLogic|0.1.0 Canonical URL: http://hl7.org/fhir/us/pco/Library/WhatMattersLogic|0.1.0 Dependency Description: Code system LOINC Resource: Logical Observation Identifiers, Names and Codes (LOINC) Canonical URL: http://loinc.org Dependency Description: Value set PCO Goal Domain Categories Resource: PCO Goal Domain Categories Canonical URL: http://hl7.org/fhir/us/pco/ValueSet/pco-goal-domain-categories Dependency Description: Value set Goal Attainment Scaling (GAS) Score Resource: Goal Attainment Scaling (GAS) Score Canonical URL: http://hl7.org/fhir/us/pco/ValueSet/goal-attainment-scaling-score Dependency Description: Value set PROM Target Measures Resource: PROM Target Measure Scores Canonical URL: http://hl7.org/fhir/us/pco/ValueSet/prom-target-measures Data Requirement Type: Patient Profile(s): Patient Data Requirement Type: Observation Profile(s): Observation Must Support Elements: c…
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/GoalAttainmentLogic
  l: GoalAttainmentLogic
version:
  v: 1.0.0
name:
  v: GoalAttainmentLogic
status:
  v: draft
type:
  coding:
    system:
      v: http://terminology.hl7.org/CodeSystem/library-type
      l: library-type
    code:
      v: logic-library
date:
  v: 2026-04-27T13:30:43+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: Shared logic for Goal Attainment Scaling.
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: Library WM
  resource:
    v: http://hl7.org/fhir/us/pco/Library/WhatMattersLogic|0.1.0
    l: http://hl7.org/fhir/us/pco/Library/WhatMattersLogic
related artifact:
  type:
    v: depends-on
  display:
    v: Code system LOINC
  resource:
    v: http://loinc.org
    l: loinc.org
related artifact:
  type:
    v: depends-on
  display:
    v: Value set PCO Goal Domain Categories
  resource:
    v: http://hl7.org/fhir/us/pco/ValueSet/pco-goal-domain-categories
    l: pco-goal-domain-categories

type:
  v: depends-on
display:
  v: Value set Goal Attainment Scaling (GAS) Score
resource:
  v: http://hl7.org/fhir/us/pco/ValueSet/goal-attainment-scaling-score
  l: goal-attainment-scaling-score

type:
  v: depends-on
display:
  v: Value set PROM Target Measures
resource:
  v: http://hl7.org/fhir/us/pco/ValueSet/prom-target-measures
  l: prom-target-measures

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: GAS Scores
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Observation

name:
  v: GoalSummary
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Resource

name:
  v: PCO Goals
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Goal

name:
  v: CarPlanSummary
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Resource

name:
  v: All Goals
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Goal

name:
  v: GAS Goals
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Goal

name:
  v: All Care Plans
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: CarePlan

name:
  v: PCO Care Plans
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: CarePlan

name:
  v: PCO Goals with GAS and Action Plan
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Goal

name:
  v: PROM Scores
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Observation

name:
  v: GAS Patient Scores
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Observation

name:
  v: GAS Practitioner Scores
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Observation

name:
  v: GAS Caregiver Scores
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Observation

name:
  v: PCO Goals During Measurement Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Goal

name:
  v: Baseline Scores Before Follow-Up Period
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Observation

name:
  v: Follow-Up Scores During Measurement Period
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: code
code filter:
  path:
    v: code
  value set:
    v: http://hl7.org/fhir/us/pco/ValueSet/goal-attainment-scaling-score
    l: goal-attainment-scaling-score

type:
  v: Observation
profile:
  v: http://hl7.org/fhir/StructureDefinition/Observation
  l: Observation
must support:
  v: code
code filter:
  path:
    v: code
  value set:
    v: http://hl7.org/fhir/us/pco/ValueSet/prom-target-measures
    l: prom-target-measures

type:
  v: Goal
profile:
  v: http://hl7.org/fhir/StructureDefinition/Goal
  l: Goal
must support:
  v: id
must support:
  v: id.value
must support:
  v: category
must support:
  v: measure
must support:
  v: start

type:
  v: CarePlan
profile:
  v: http://hl7.org/fhir/StructureDefinition/CarePlan
  l: CarePlan
must support:
  v: id
must support:
  v: id.value

content type:
  v: text/cql

content type:
  v: application/elm+xml

content type:
  v: application/elm+json