身體活動量測(Physical Activity Measure)
0.1.0 - ci-build

身體活動量測(Physical Activity Measure) - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

## Resource Profile: Sport Data Goal

Official URL: https://hapi.fhir.tw/fhir/StructureDefinition/Goal-sport | Version: 0.1.0
Active as of 2024-08-01 | Computable Name: SportGoal

此Profile說明本IG如何進一步定義FHIR的Goal Resource以呈現運動目標

Usage:

- Examples for this Resource Profile: Goal/goal-example

### Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

- Differential Table
- Key Elements Table
- Snapshot Table
- Statistics/References
- All

This structure is derived from Goal

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Goal |  | 0..* | Goal | Describes the intended objective(s) for a patient, group or organization
identifier | S | 1..* | Identifier | External Ids for this goal
system | S | 1..1 | uri | The namespace for the identifier value
value |  | 1..1 | string | The value that is unique
lifecycleStatus | S | 1..1 | code | proposed | planned | accepted | active | on-hold | completed | cancelled | entered-in-error | rejected
category | S | 1..* | CodeableConcept | E.g. Treatment, dietary, behavioral, etc.
coding | S | 1..1 | Coding | Code defined by a terminology system
system | S | 1..1 | uri | Identity of the terminology system Required Pattern: https://hapi.fhir.tw/fhir/CodeSystem/tempcode
code | S | 1..1 | code | Symbol in syntax defined by the system Required Pattern: PhysicalActivity
description | S | 1..1 | CodeableConcept | Code or text describing goal
text | S | 1..1 | string | Plain text representation of the concept
subject | S | 1..1 | Reference(Patient) | Who this goal is intended for
Slices for target | S | 1..* | BackboneElement | Target outcome for the goal Slice: Unordered, Open by value:measure.coding.code, value:measure.coding.system
target:step | S | 1..1 | BackboneElement | Target outcome for the goal
measure | S | 1..1 | CodeableConcept | The parameter whose value is being tracked
coding | S | 1..1 | Coding | Code defined by a terminology system
system | S | 1..1 | uri | Identity of the terminology system Required Pattern: http://loinc.org
code | S | 1..1 | code | Symbol in syntax defined by the system Required Pattern: 41950-7
display | S | 0..1 | string | Representation defined by the system Required Pattern: Number of steps in 24 hour Measured
Slices for detail[x] |  | 1..1 | Quantity | The target value to be achieved Slice: Unordered, Open by type:$this
detail[x]:detailQuantity | S | 1..1 | Quantity | The target value to be achieved
value | S | 1..1 | decimal | Numerical value (with implicit precision)
unit | S | 1..1 | string | Unit representation Required Pattern: steps per day
system | S | 1..1 | uri | System that defines coded unit form Fixed Value: http://unitsofmeasure.org
code | S | 1..1 | code | Coded form of the unit Required Pattern: /d
Documentation for this format

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Goal |  | 0..* | Goal | Describes the intended objective(s) for a patient, group or organization
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | S | 1..* | Identifier | External Ids for this goal
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
system | S Σ | 1..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | Σ | 1..1 | string | The value that is unique Example General: 123456
lifecycleStatus | ?!S Σ | 1..1 | code | proposed | planned | accepted | active | on-hold | completed | cancelled | entered-in-error | rejected Binding: GoalLifecycleStatus (required): Codes that reflect the current state of a goal and whether the goal is still being targeted.
category | S Σ | 1..* | CodeableConcept | E.g. Treatment, dietary, behavioral, etc. Binding: GoalCategory (example): Codes for grouping and sorting goals.
coding | S Σ | 1..1 | Coding | Code defined by a terminology system
system | S Σ | 1..1 | uri | Identity of the terminology system Required Pattern: https://hapi.fhir.tw/fhir/CodeSystem/tempcode
code | S Σ | 1..1 | code | Symbol in syntax defined by the system Required Pattern: PhysicalActivity
description | S Σ | 1..1 | CodeableConcept | Code or text describing goal Binding: SNOMEDCTClinicalFindings (example): Codes providing the details of a particular goal. This will generally be system or implementation guide-specific. In many systems, only the text element will be used.
text | S Σ | 1..1 | string | Plain text representation of the concept
subject | S Σ | 1..1 | Reference(Patient) | Who this goal is intended for
Slices for target | S C | 1..* | BackboneElement | Target outcome for the goal Slice: Unordered, Open by value:measure.coding.code, value:measure.coding.system gol-1: Goal.target.measure is required if Goal.target.detail is populated
target:All Slices |  |  |  | Content/Rules for all slices
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
target:step | S C | 1..1 | BackboneElement | Target outcome for the goal gol-1: Goal.target.measure is required if Goal.target.detail is populated
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
measure | S Σ C | 1..1 | CodeableConcept | The parameter whose value is being tracked Binding: LOINCCodes (example): Codes to identify the value being tracked, e.g. body weight, blood pressure, or hemoglobin A1c level.
coding | S Σ | 1..1 | Coding | Code defined by a terminology system
system | S Σ | 1..1 | uri | Identity of the terminology system Required Pattern: http://loinc.org
code | S Σ | 1..1 | code | Symbol in syntax defined by the system Required Pattern: 41950-7
display | S Σ | 0..1 | string | Representation defined by the system Required Pattern: Number of steps in 24 hour Measured
Slices for detail[x] | Σ C | 1..1 | Quantity | The target value to be achieved Slice: Unordered, Closed by type:$this Binding: (unbound) (example): Codes to identify the target value of the focus to be achieved to signify the fulfillment of the goal.
detail[x]:detailQuantity | S Σ C | 1..1 | Quantity | The target value to be achieved Binding: (unbound) (example): Codes to identify the target value of the focus to be achieved to signify the fulfillment of the goal.
value | S Σ | 1..1 | decimal | Numerical value (with implicit precision)
comparator | ?!Σ | 0..1 | code | < | <= | >= | > - how to understand the value Binding: QuantityComparator (required): How the Quantity should be understood and represented.
unit | S Σ | 1..1 | string | Unit representation Required Pattern: steps per day
system | S Σ C | 1..1 | uri | System that defines coded unit form Fixed Value: http://unitsofmeasure.org
code | S Σ | 1..1 | code | Coded form of the unit Required Pattern: /d
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
Goal.identifier.use | required | IdentifierUse `http://hl7.org/fhir/ValueSet/identifier-use|4.0.1` from the FHIR Standard
Goal.lifecycleStatus | required | GoalLifecycleStatus `http://hl7.org/fhir/ValueSet/goal-status|4.0.1` from the FHIR Standard
Goal.category | example | GoalCategory `http://hl7.org/fhir/ValueSet/goal-category` from the FHIR Standard
Goal.description | example | SNOMEDCTClinicalFindings `http://hl7.org/fhir/ValueSet/clinical-findings` from the FHIR Standard
Goal.target:step.measure | example | LOINCCodes (a valid code from LOINC) `http://hl7.org/fhir/ValueSet/observation-codes` from the FHIR Standard
Goal.target:step.detail[x] | example |
Goal.target:step.detail[x]:detailQuantity | example |
Goal.target:step.detail[x]:detailQuantity.comparator | required | QuantityComparator `http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1` from the FHIR Standard

#### Constraints

Id | Grade | Path(s) | Details | Requirements
dom-2 | error | Goal | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | Goal | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource : contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty() |
dom-4 | error | Goal | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated : contained.meta.versionId.empty() and contained.meta.lastUpdated.empty() |
dom-5 | error | Goal | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | Goal | A resource should have narrative for robust management : text.`div`.exists() |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |
gol-1 | error | Goal.target, Goal.target:step | Goal.target.measure is required if Goal.target.detail is populated : (detail.exists() and measure.exists()) or detail.exists().not() |

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Goal |  | 0..* | Goal | Describes the intended objective(s) for a patient, group or organization
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
Additional Bindings | Purpose
AllLanguages | Max Binding
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | S | 1..* | Identifier | External Ids for this goal
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
type | Σ | 0..1 | CodeableConcept | Description of identifier Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
system | S Σ | 1..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | Σ | 1..1 | string | The value that is unique Example General: 123456
period | Σ | 0..1 | Period | Time period when id is/was valid for use
assigner | Σ | 0..1 | Reference(Organization) | Organization that issued id (may be just text)
lifecycleStatus | ?!S Σ | 1..1 | code | proposed | planned | accepted | active | on-hold | completed | cancelled | entered-in-error | rejected Binding: GoalLifecycleStatus (required): Codes that reflect the current state of a goal and whether the goal is still being targeted.
achievementStatus | Σ | 0..1 | CodeableConcept | in-progress | improving | worsening | no-change | achieved | sustaining | not-achieved | no-progress | not-attainable Binding: GoalAchievementStatus (preferred): Indicates the progression, or lack thereof, towards the goal against the target.
category | S Σ | 1..* | CodeableConcept | E.g. Treatment, dietary, behavioral, etc. Binding: GoalCategory (example): Codes for grouping and sorting goals.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
coding | S Σ | 1..1 | Coding | Code defined by a terminology system
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | Identity of the terminology system Required Pattern: https://hapi.fhir.tw/fhir/CodeSystem/tempcode
version | Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | Symbol in syntax defined by the system Required Pattern: PhysicalActivity
display | Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
text | Σ | 0..1 | string | Plain text representation of the concept
priority | Σ | 0..1 | CodeableConcept | high-priority | medium-priority | low-priority Binding: GoalPriority (preferred): The level of importance associated with a goal.
description | S Σ | 1..1 | CodeableConcept | Code or text describing goal Binding: SNOMEDCTClinicalFindings (example): Codes providing the details of a particular goal. This will generally be system or implementation guide-specific. In many systems, only the text element will be used.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
coding | Σ | 0..* | Coding | Code defined by a terminology system
text | S Σ | 1..1 | string | Plain text representation of the concept
subject | S Σ | 1..1 | Reference(Patient) | Who this goal is intended for
start[x] | Σ | 0..1 |  | When goal pursuit begins Binding: GoalStartEvent (example): Codes describing events that can trigger the initiation of a goal.
startDate |  |  | date |
startCodeableConcept |  |  | CodeableConcept |
Slices for target | S C | 1..* | BackboneElement | Target outcome for the goal Slice: Unordered, Open by value:measure.coding.code, value:measure.coding.system gol-1: Goal.target.measure is required if Goal.target.detail is populated
target:All Slices |  |  |  | Content/Rules for all slices
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
measure | Σ C | 0..1 | CodeableConcept | The parameter whose value is being tracked Binding: LOINCCodes (example): Codes to identify the value being tracked, e.g. body weight, blood pressure, or hemoglobin A1c level.
detail[x] | Σ C | 0..1 |  | The target value to be achieved Binding: (unbound) (example): Codes to identify the target value of the focus to be achieved to signify the fulfillment of the goal.
detailQuantity |  |  | Quantity |
detailRange |  |  | Range |
detailCodeableConcept |  |  | CodeableConcept |
detailString |  |  | string |
detailBoolean |  |  | boolean |
detailInteger |  |  | integer |
detailRatio |  |  | Ratio |
due[x] | Σ | 0..1 |  | Reach goal on or before
dueDate |  |  | date |
dueDuration |  |  | Duration |
target:step | S C | 1..1 | BackboneElement | Target outcome for the goal gol-1: Goal.target.measure is required if Goal.target.detail is populated
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
measure | S Σ C | 1..1 | CodeableConcept | The parameter whose value is being tracked Binding: LOINCCodes (example): Codes to identify the value being tracked, e.g. body weight, blood pressure, or hemoglobin A1c level.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
coding | S Σ | 1..1 | Coding | Code defined by a terminology system
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | Identity of the terminology system Required Pattern: http://loinc.org
version | Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | Symbol in syntax defined by the system Required Pattern: 41950-7
display | S Σ | 0..1 | string | Representation defined by the system Required Pattern: Number of steps in 24 hour Measured
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
text | Σ | 0..1 | string | Plain text representation of the concept
Slices for detail[x] | Σ C | 1..1 | Quantity | The target value to be achieved Slice: Unordered, Closed by type:$this Binding: (unbound) (example): Codes to identify the target value of the focus to be achieved to signify the fulfillment of the goal.
Slices for detail[x] |  |  |  | Content/Rules for all slices
detail[x]:detailQuantity | S Σ C | 1..1 | Quantity | The target value to be achieved Binding: (unbound) (example): Codes to identify the target value of the focus to be achieved to signify the fulfillment of the goal.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
value | S Σ | 1..1 | decimal | Numerical value (with implicit precision)
comparator | ?!Σ | 0..1 | code | < | <= | >= | > - how to understand the value Binding: QuantityComparator (required): How the Quantity should be understood and represented.
unit | S Σ | 1..1 | string | Unit representation Required Pattern: steps per day
system | S Σ C | 1..1 | uri | System that defines coded unit form Fixed Value: http://unitsofmeasure.org
code | S Σ | 1..1 | code | Coded form of the unit Required Pattern: /d
due[x] | Σ | 0..1 |  | Reach goal on or before
dueDate |  |  | date |
dueDuration |  |  | Duration |
statusDate | Σ | 0..1 | date | When goal status took effect
statusReason |  | 0..1 | string | Reason for current status
expressedBy | Σ | 0..1 | Reference(Patient | Practitioner | PractitionerRole | RelatedPerson) | Who's responsible for creating Goal?
addresses |  | 0..* | Reference(Condition | Observation | MedicationStatement | NutritionOrder | ServiceRequest | RiskAssessment) | Issues addressed by this goal
note |  | 0..* | Annotation | Comments about the goal
outcomeCode |  | 0..* | CodeableConcept | What result was achieved regarding the goal? Binding: SNOMEDCTClinicalFindings (example): The result of the goal; e.g. "25% increase in shoulder mobility", "Anxiety reduced to moderate levels". "15 kg weight loss sustained over 6 months".
outcomeReference |  | 0..* | Reference(Observation) | Observation that resulted from goal
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
Goal.language | preferred | CommonLanguages
Additional Bindings | Purpose
AllLanguages | Max Binding
`http://hl7.org/fhir/ValueSet/languages` from the FHIR Standard
Goal.identifier.use | required | IdentifierUse `http://hl7.org/fhir/ValueSet/identifier-use|4.0.1` from the FHIR Standard
Goal.identifier.type | extensible | Identifier Type Codes `http://hl7.org/fhir/ValueSet/identifier-type` from the FHIR Standard
Goal.lifecycleStatus | required | GoalLifecycleStatus `http://hl7.org/fhir/ValueSet/goal-status|4.0.1` from the FHIR Standard
Goal.achievementStatus | preferred | GoalAchievementStatus `http://hl7.org/fhir/ValueSet/goal-achievement` from the FHIR Standard
Goal.category | example | GoalCategory `http://hl7.org/fhir/ValueSet/goal-category` from the FHIR Standard
Goal.priority | preferred | GoalPriority `http://hl7.org/fhir/ValueSet/goal-priority` from the FHIR Standard
Goal.description | example | SNOMEDCTClinicalFindings `http://hl7.org/fhir/ValueSet/clinical-findings` from the FHIR Standard
Goal.start[x] | example | GoalStartEvent `http://hl7.org/fhir/ValueSet/goal-start-event` from the FHIR Standard
Goal.target.measure | example | LOINCCodes (a valid code from LOINC) `http://hl7.org/fhir/ValueSet/observation-codes` from the FHIR Standard
Goal.target.detail[x] | example |
Goal.target:step.measure | example | LOINCCodes (a valid code from LOINC) `http://hl7.org/fhir/ValueSet/observation-codes` from the FHIR Standard
Goal.target:step.detail[x] | example |
Goal.target:step.detail[x]:detailQuantity | example |
Goal.target:step.detail[x]:detailQuantity.comparator | required | QuantityComparator `http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1` from the FHIR Standard
Goal.outcomeCode | example | SNOMEDCTClinicalFindings `http://hl7.org/fhir/ValueSet/clinical-findings` from the FHIR Standard

#### Constraints

Id | Grade | Path(s) | Details | Requirements
dom-2 | error | Goal | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | Goal | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource : contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty() |
dom-4 | error | Goal | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated : contained.meta.versionId.empty() and contained.meta.lastUpdated.empty() |
dom-5 | error | Goal | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | Goal | A resource should have narrative for robust management : text.`div`.exists() |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |
gol-1 | error | Goal.target, Goal.target:step | Goal.target.measure is required if Goal.target.detail is populated : (detail.exists() and measure.exists()) or detail.exists().not() |

This structure is derived from Goal

Summary

Mandatory: 20 elements
Must-Support: 22 elements
Fixed: 1 element

Structures

This structure refers to these other structures:

- Patient (https://hapi.fhir.tw/fhir/StructureDefinition/TWCorePatient)

Slices

This structure defines the following Slices:

- The element 2 is sliced based on the values of Goal.target
- The element 1 is sliced based on the value of Goal.target.detail[x]

Differential View

This structure is derived from Goal

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Goal |  | 0..* | Goal | Describes the intended objective(s) for a patient, group or organization
identifier | S | 1..* | Identifier | External Ids for this goal
system | S | 1..1 | uri | The namespace for the identifier value
value |  | 1..1 | string | The value that is unique
lifecycleStatus | S | 1..1 | code | proposed | planned | accepted | active | on-hold | completed | cancelled | entered-in-error | rejected
category | S | 1..* | CodeableConcept | E.g. Treatment, dietary, behavioral, etc.
coding | S | 1..1 | Coding | Code defined by a terminology system
system | S | 1..1 | uri | Identity of the terminology system Required Pattern: https://hapi.fhir.tw/fhir/CodeSystem/tempcode
code | S | 1..1 | code | Symbol in syntax defined by the system Required Pattern: PhysicalActivity
description | S | 1..1 | CodeableConcept | Code or text describing goal
text | S | 1..1 | string | Plain text representation of the concept
subject | S | 1..1 | Reference(Patient) | Who this goal is intended for
Slices for target | S | 1..* | BackboneElement | Target outcome for the goal Slice: Unordered, Open by value:measure.coding.code, value:measure.coding.system
target:step | S | 1..1 | BackboneElement | Target outcome for the goal
measure | S | 1..1 | CodeableConcept | The parameter whose value is being tracked
coding | S | 1..1 | Coding | Code defined by a terminology system
system | S | 1..1 | uri | Identity of the terminology system Required Pattern: http://loinc.org
code | S | 1..1 | code | Symbol in syntax defined by the system Required Pattern: 41950-7
display | S | 0..1 | string | Representation defined by the system Required Pattern: Number of steps in 24 hour Measured
Slices for detail[x] |  | 1..1 | Quantity | The target value to be achieved Slice: Unordered, Open by type:$this
detail[x]:detailQuantity | S | 1..1 | Quantity | The target value to be achieved
value | S | 1..1 | decimal | Numerical value (with implicit precision)
unit | S | 1..1 | string | Unit representation Required Pattern: steps per day
system | S | 1..1 | uri | System that defines coded unit form Fixed Value: http://unitsofmeasure.org
code | S | 1..1 | code | Coded form of the unit Required Pattern: /d
Documentation for this format

Key Elements View

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Goal |  | 0..* | Goal | Describes the intended objective(s) for a patient, group or organization
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | S | 1..* | Identifier | External Ids for this goal
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
system | S Σ | 1..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | Σ | 1..1 | string | The value that is unique Example General: 123456
lifecycleStatus | ?!S Σ | 1..1 | code | proposed | planned | accepted | active | on-hold | completed | cancelled | entered-in-error | rejected Binding: GoalLifecycleStatus (required): Codes that reflect the current state of a goal and whether the goal is still being targeted.
category | S Σ | 1..* | CodeableConcept | E.g. Treatment, dietary, behavioral, etc. Binding: GoalCategory (example): Codes for grouping and sorting goals.
coding | S Σ | 1..1 | Coding | Code defined by a terminology system
system | S Σ | 1..1 | uri | Identity of the terminology system Required Pattern: https://hapi.fhir.tw/fhir/CodeSystem/tempcode
code | S Σ | 1..1 | code | Symbol in syntax defined by the system Required Pattern: PhysicalActivity
description | S Σ | 1..1 | CodeableConcept | Code or text describing goal Binding: SNOMEDCTClinicalFindings (example): Codes providing the details of a particular goal. This will generally be system or implementation guide-specific. In many systems, only the text element will be used.
text | S Σ | 1..1 | string | Plain text representation of the concept
subject | S Σ | 1..1 | Reference(Patient) | Who this goal is intended for
Slices for target | S C | 1..* | BackboneElement | Target outcome for the goal Slice: Unordered, Open by value:measure.coding.code, value:measure.coding.system gol-1: Goal.target.measure is required if Goal.target.detail is populated
target:All Slices |  |  |  | Content/Rules for all slices
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
target:step | S C | 1..1 | BackboneElement | Target outcome for the goal gol-1: Goal.target.measure is required if Goal.target.detail is populated
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
measure | S Σ C | 1..1 | CodeableConcept | The parameter whose value is being tracked Binding: LOINCCodes (example): Codes to identify the value being tracked, e.g. body weight, blood pressure, or hemoglobin A1c level.
coding | S Σ | 1..1 | Coding | Code defined by a terminology system
system | S Σ | 1..1 | uri | Identity of the terminology system Required Pattern: http://loinc.org
code | S Σ | 1..1 | code | Symbol in syntax defined by the system Required Pattern: 41950-7
display | S Σ | 0..1 | string | Representation defined by the system Required Pattern: Number of steps in 24 hour Measured
Slices for detail[x] | Σ C | 1..1 | Quantity | The target value to be achieved Slice: Unordered, Closed by type:$this Binding: (unbound) (example): Codes to identify the target value of the focus to be achieved to signify the fulfillment of the goal.
detail[x]:detailQuantity | S Σ C | 1..1 | Quantity | The target value to be achieved Binding: (unbound) (example): Codes to identify the target value of the focus to be achieved to signify the fulfillment of the goal.
value | S Σ | 1..1 | decimal | Numerical value (with implicit precision)
comparator | ?!Σ | 0..1 | code | < | <= | >= | > - how to understand the value Binding: QuantityComparator (required): How the Quantity should be understood and represented.
unit | S Σ | 1..1 | string | Unit representation Required Pattern: steps per day
system | S Σ C | 1..1 | uri | System that defines coded unit form Fixed Value: http://unitsofmeasure.org
code | S Σ | 1..1 | code | Coded form of the unit Required Pattern: /d
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
Goal.identifier.use | required | IdentifierUse `http://hl7.org/fhir/ValueSet/identifier-use|4.0.1` from the FHIR Standard
Goal.lifecycleStatus | required | GoalLifecycleStatus `http://hl7.org/fhir/ValueSet/goal-status|4.0.1` from the FHIR Standard
Goal.category | example | GoalCategory `http://hl7.org/fhir/ValueSet/goal-category` from the FHIR Standard
Goal.description | example | SNOMEDCTClinicalFindings `http://hl7.org/fhir/ValueSet/clinical-findings` from the FHIR Standard
Goal.target:step.measure | example | LOINCCodes (a valid code from LOINC) `http://hl7.org/fhir/ValueSet/observation-codes` from the FHIR Standard
Goal.target:step.detail[x] | example |
Goal.target:step.detail[x]:detailQuantity | example |
Goal.target:step.detail[x]:detailQuantity.comparator | required | QuantityComparator `http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1` from the FHIR Standard

#### Constraints

Id | Grade | Path(s) | Details | Requirements
dom-2 | error | Goal | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | Goal | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource : contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty() |
dom-4 | error | Goal | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated : contained.meta.versionId.empty() and contained.meta.lastUpdated.empty() |
dom-5 | error | Goal | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | Goal | A resource should have narrative for robust management : text.`div`.exists() |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |
gol-1 | error | Goal.target, Goal.target:step | Goal.target.measure is required if Goal.target.detail is populated : (detail.exists() and measure.exists()) or detail.exists().not() |

Snapshot View

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Goal |  | 0..* | Goal | Describes the intended objective(s) for a patient, group or organization
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
Additional Bindings | Purpose
AllLanguages | Max Binding
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | S | 1..* | Identifier | External Ids for this goal
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
use | ?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
type | Σ | 0..1 | CodeableConcept | Description of identifier Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
system | S Σ | 1..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | Σ | 1..1 | string | The value that is unique Example General: 123456
period | Σ | 0..1 | Period | Time period when id is/was valid for use
assigner | Σ | 0..1 | Reference(Organization) | Organization that issued id (may be just text)
lifecycleStatus | ?!S Σ | 1..1 | code | proposed | planned | accepted | active | on-hold | completed | cancelled | entered-in-error | rejected Binding: GoalLifecycleStatus (required): Codes that reflect the current state of a goal and whether the goal is still being targeted.
achievementStatus | Σ | 0..1 | CodeableConcept | in-progress | improving | worsening | no-change | achieved | sustaining | not-achieved | no-progress | not-attainable Binding: GoalAchievementStatus (preferred): Indicates the progression, or lack thereof, towards the goal against the target.
category | S Σ | 1..* | CodeableConcept | E.g. Treatment, dietary, behavioral, etc. Binding: GoalCategory (example): Codes for grouping and sorting goals.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
coding | S Σ | 1..1 | Coding | Code defined by a terminology system
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | Identity of the terminology system Required Pattern: https://hapi.fhir.tw/fhir/CodeSystem/tempcode
version | Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | Symbol in syntax defined by the system Required Pattern: PhysicalActivity
display | Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
text | Σ | 0..1 | string | Plain text representation of the concept
priority | Σ | 0..1 | CodeableConcept | high-priority | medium-priority | low-priority Binding: GoalPriority (preferred): The level of importance associated with a goal.
description | S Σ | 1..1 | CodeableConcept | Code or text describing goal Binding: SNOMEDCTClinicalFindings (example): Codes providing the details of a particular goal. This will generally be system or implementation guide-specific. In many systems, only the text element will be used.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
coding | Σ | 0..* | Coding | Code defined by a terminology system
text | S Σ | 1..1 | string | Plain text representation of the concept
subject | S Σ | 1..1 | Reference(Patient) | Who this goal is intended for
start[x] | Σ | 0..1 |  | When goal pursuit begins Binding: GoalStartEvent (example): Codes describing events that can trigger the initiation of a goal.
startDate |  |  | date |
startCodeableConcept |  |  | CodeableConcept |
Slices for target | S C | 1..* | BackboneElement | Target outcome for the goal Slice: Unordered, Open by value:measure.coding.code, value:measure.coding.system gol-1: Goal.target.measure is required if Goal.target.detail is populated
target:All Slices |  |  |  | Content/Rules for all slices
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
measure | Σ C | 0..1 | CodeableConcept | The parameter whose value is being tracked Binding: LOINCCodes (example): Codes to identify the value being tracked, e.g. body weight, blood pressure, or hemoglobin A1c level.
detail[x] | Σ C | 0..1 |  | The target value to be achieved Binding: (unbound) (example): Codes to identify the target value of the focus to be achieved to signify the fulfillment of the goal.
detailQuantity |  |  | Quantity |
detailRange |  |  | Range |
detailCodeableConcept |  |  | CodeableConcept |
detailString |  |  | string |
detailBoolean |  |  | boolean |
detailInteger |  |  | integer |
detailRatio |  |  | Ratio |
due[x] | Σ | 0..1 |  | Reach goal on or before
dueDate |  |  | date |
dueDuration |  |  | Duration |
target:step | S C | 1..1 | BackboneElement | Target outcome for the goal gol-1: Goal.target.measure is required if Goal.target.detail is populated
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
measure | S Σ C | 1..1 | CodeableConcept | The parameter whose value is being tracked Binding: LOINCCodes (example): Codes to identify the value being tracked, e.g. body weight, blood pressure, or hemoglobin A1c level.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
coding | S Σ | 1..1 | Coding | Code defined by a terminology system
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 1..1 | uri | Identity of the terminology system Required Pattern: http://loinc.org
version | Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 1..1 | code | Symbol in syntax defined by the system Required Pattern: 41950-7
display | S Σ | 0..1 | string | Representation defined by the system Required Pattern: Number of steps in 24 hour Measured
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
text | Σ | 0..1 | string | Plain text representation of the concept
Slices for detail[x] | Σ C | 1..1 | Quantity | The target value to be achieved Slice: Unordered, Closed by type:$this Binding: (unbound) (example): Codes to identify the target value of the focus to be achieved to signify the fulfillment of the goal.
Slices for detail[x] |  |  |  | Content/Rules for all slices
detail[x]:detailQuantity | S Σ C | 1..1 | Quantity | The target value to be achieved Binding: (unbound) (example): Codes to identify the target value of the focus to be achieved to signify the fulfillment of the goal.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
value | S Σ | 1..1 | decimal | Numerical value (with implicit precision)
comparator | ?!Σ | 0..1 | code | < | <= | >= | > - how to understand the value Binding: QuantityComparator (required): How the Quantity should be understood and represented.
unit | S Σ | 1..1 | string | Unit representation Required Pattern: steps per day
system | S Σ C | 1..1 | uri | System that defines coded unit form Fixed Value: http://unitsofmeasure.org
code | S Σ | 1..1 | code | Coded form of the unit Required Pattern: /d
due[x] | Σ | 0..1 |  | Reach goal on or before
dueDate |  |  | date |
dueDuration |  |  | Duration |
statusDate | Σ | 0..1 | date | When goal status took effect
statusReason |  | 0..1 | string | Reason for current status
expressedBy | Σ | 0..1 | Reference(Patient | Practitioner | PractitionerRole | RelatedPerson) | Who's responsible for creating Goal?
addresses |  | 0..* | Reference(Condition | Observation | MedicationStatement | NutritionOrder | ServiceRequest | RiskAssessment) | Issues addressed by this goal
note |  | 0..* | Annotation | Comments about the goal
outcomeCode |  | 0..* | CodeableConcept | What result was achieved regarding the goal? Binding: SNOMEDCTClinicalFindings (example): The result of the goal; e.g. "25% increase in shoulder mobility", "Anxiety reduced to moderate levels". "15 kg weight loss sustained over 6 months".
outcomeReference |  | 0..* | Reference(Observation) | Observation that resulted from goal
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
Goal.language | preferred | CommonLanguages
Additional Bindings | Purpose
AllLanguages | Max Binding
`http://hl7.org/fhir/ValueSet/languages` from the FHIR Standard
Goal.identifier.use | required | IdentifierUse `http://hl7.org/fhir/ValueSet/identifier-use|4.0.1` from the FHIR Standard
Goal.identifier.type | extensible | Identifier Type Codes `http://hl7.org/fhir/ValueSet/identifier-type` from the FHIR Standard
Goal.lifecycleStatus | required | GoalLifecycleStatus `http://hl7.org/fhir/ValueSet/goal-status|4.0.1` from the FHIR Standard
Goal.achievementStatus | preferred | GoalAchievementStatus `http://hl7.org/fhir/ValueSet/goal-achievement` from the FHIR Standard
Goal.category | example | GoalCategory `http://hl7.org/fhir/ValueSet/goal-category` from the FHIR Standard
Goal.priority | preferred | GoalPriority `http://hl7.org/fhir/ValueSet/goal-priority` from the FHIR Standard
Goal.description | example | SNOMEDCTClinicalFindings `http://hl7.org/fhir/ValueSet/clinical-findings` from the FHIR Standard
Goal.start[x] | example | GoalStartEvent `http://hl7.org/fhir/ValueSet/goal-start-event` from the FHIR Standard
Goal.target.measure | example | LOINCCodes (a valid code from LOINC) `http://hl7.org/fhir/ValueSet/observation-codes` from the FHIR Standard
Goal.target.detail[x] | example |
Goal.target:step.measure | example | LOINCCodes (a valid code from LOINC) `http://hl7.org/fhir/ValueSet/observation-codes` from the FHIR Standard
Goal.target:step.detail[x] | example |
Goal.target:step.detail[x]:detailQuantity | example |
Goal.target:step.detail[x]:detailQuantity.comparator | required | QuantityComparator `http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1` from the FHIR Standard
Goal.outcomeCode | example | SNOMEDCTClinicalFindings `http://hl7.org/fhir/ValueSet/clinical-findings` from the FHIR Standard

#### Constraints

Id | Grade | Path(s) | Details | Requirements
dom-2 | error | Goal | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | Goal | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource : contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty() |
dom-4 | error | Goal | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated : contained.meta.versionId.empty() and contained.meta.lastUpdated.empty() |
dom-5 | error | Goal | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | Goal | A resource should have narrative for robust management : text.`div`.exists() |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |
gol-1 | error | Goal.target, Goal.target:step | Goal.target.measure is required if Goal.target.detail is populated : (detail.exists() and measure.exists()) or detail.exists().not() |

This structure is derived from Goal

Summary

Mandatory: 20 elements
Must-Support: 22 elements
Fixed: 1 element

Structures

This structure refers to these other structures:

- Patient (https://hapi.fhir.tw/fhir/StructureDefinition/TWCorePatient)

Slices

This structure defines the following Slices:

- The element 2 is sliced based on the values of Goal.target
- The element 1 is sliced based on the value of Goal.target.detail[x]

Other representations of profile: CSV, Excel, Schematron