This repository has been archived by the owner on May 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 114
Review and Updates to Goal #1027
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,39 +9,45 @@ title: Goal | R4 API | |
|
||
## Overview | ||
|
||
The Goal resource describes intended objectives for a patient. A Goal is typically expressed as a desired outcome or health state to be achieved by a patient over a period or at a specific point in time. A Goal may address preventative health or mitigation of a diagnosis or problem. Goals can be non-health care related (e.g. dance at a wedding). | ||
The Goal resource describes intended objectives for a patient. A goal is typically expressed as a desired outcome or health state to be achieved by a patient over a period or at a specific point in time. A goal may address preventative health or mitigation of a diagnosis or problem. Goals can be non-healthcare related (for example, dance at a wedding). | ||
|
||
* The following [HL7® FHIR® US Core Implementation Guide STU 4.0.0](https://hl7.org/fhir/us/core/STU4/) Profiles are supported by this resource: | ||
* This resource supports the following [HL7 FHIR US Core Implementation Guide STU 4.0.0](https://hl7.org/fhir/us/core/STU4/) profiles: | ||
|
||
* [US Core Goal Profile](http://hl7.org/fhir/us/core/STU4/StructureDefinition-us-core-goal.html) | ||
* [US Core Goal Profile](https://hl7.org/fhir/us/core/STU4/StructureDefinition-us-core-goal.html) | ||
|
||
The following fields are returned if valued: | ||
|
||
* [Goal id](http://hl7.org/fhir/r4/resource-definitions.html#Resource.id){:target="_blank"} | ||
* [Lifecycle Status](http://hl7.org/fhir/r4/goal-definitions.html#Goal.lifecycleStatus){:target="_blank"} | ||
* [Achievement Status](http://hl7.org/fhir/r4/goal-definitions.html#Goal.achievementStatus){:target="_blank"} | ||
* [Category](http://hl7.org/fhir/r4/goal-definitions.html#Goal.category){:target="_blank"} | ||
* [Description](http://hl7.org/fhir/r4/goal-definitions.html#Goal.description){:target="_blank"} | ||
* [Subject (patient)](http://hl7.org/fhir/r4/goal-definitions.html#Goal.subject){:target="_blank"} | ||
* [Start Date](http://hl7.org/fhir/r4/goal-definitions.html#Goal.start_x_){:target="_blank"} | ||
* [Target Due (Date only)](http://hl7.org/fhir/r4/goal-definitions.html#Goal.target.due_x_){:target="_blank"} | ||
* [Status Date](http://hl7.org/fhir/r4/goal-definitions.html#Goal.statusDate){:target="_blank"} | ||
* [Expressed By](http://hl7.org/fhir/r4/goal-definitions.html#Goal.expressedBy){:target="_blank"} | ||
* [Reference](http://hl7.org/fhir/r4/references.html#Reference){:target="_blank"} ([Patient](http://hl7.org/fhir/r4/patient.html){:target="_blank"} \| [Practitioner](http://hl7.org/fhir/r4/practitioner.html){:target="_blank"} \| [Related Person](http://hl7.org/fhir/r4/relatedperson.html){:target="_blank"}) | ||
* [Goal ID](https://hl7.org/fhir/r4/resource-definitions.html#Resource.id){:target="_blank"} | ||
* [Lifecycle Status](https://hl7.org/fhir/r4/goal-definitions.html#Goal.lifecycleStatus){:target="_blank"} | ||
* [Achievement Status](https://hl7.org/fhir/r4/goal-definitions.html#Goal.achievementStatus){:target="_blank"} | ||
* [Category](https://hl7.org/fhir/r4/goal-definitions.html#Goal.category){:target="_blank"} | ||
* [Description](https://hl7.org/fhir/r4/goal-definitions.html#Goal.description){:target="_blank"} | ||
* [Subject (patient)](https://hl7.org/fhir/r4/goal-definitions.html#Goal.subject){:target="_blank"} | ||
* [Start Date](https://hl7.org/fhir/r4/goal-definitions.html#Goal.start_x_){:target="_blank"} | ||
* [Target Due](https://hl7.org/fhir/r4/goal-definitions.html#Goal.target.due_x_){:target="_blank"} | ||
* [Status Date](https://hl7.org/fhir/r4/goal-definitions.html#Goal.statusDate){:target="_blank"} | ||
* [Expressed By](https://hl7.org/fhir/r4/goal-definitions.html#Goal.expressedBy){:target="_blank"} | ||
* [Reference](https://hl7.org/fhir/r4/references.html#Reference){:target="_blank"} ([Patient](https://hl7.org/fhir/r4/patient.html){:target="_blank"} \| [Practitioner](https://hl7.org/fhir/r4/practitioner.html){:target="_blank"} \| [Related Person](https://hl7.org/fhir/r4/relatedperson.html){:target="_blank"}) | ||
* [Addresses](https://hl7.org/fhir/r4/goal-definitions.html#Goal.addresses){:target="_blank"} | ||
* [Reference](http://hl7.org/fhir/r4/references.html#Reference){:target="_blank"} ([Condition](https://hl7.org/fhir/r4/condition-definitions.html){:target="_blank"}) | ||
* [Note](http://hl7.org/fhir/r4/goal-definitions.html#Goal.note){:target="_blank"} | ||
* [Author Reference](http://hl7.org/fhir/r4/goal-definitions.html#Goal.note){:target="_blank"} | ||
* [Text](http://hl7.org/fhir/r4/datatypes-definitions.html#Annotation.text){:target="_blank"} | ||
* [Time](http://hl7.org/fhir/r4/datatypes-definitions.html#Annotation.time){:target="_blank"} | ||
* [Reference](https://hl7.org/fhir/r4/references.html#Reference){:target="_blank"} ([Condition](https://hl7.org/fhir/r4/condition-definitions.html){:target="_blank"}) | ||
* [Note](https://hl7.org/fhir/r4/goal-definitions.html#Goal.note){:target="_blank"} | ||
* [Author Reference](https://hl7.org/fhir/r4/goal-definitions.html#Goal.note){:target="_blank"} | ||
* [Text](https://hl7.org/fhir/r4/datatypes-definitions.html#Annotation.text){:target="_blank"} | ||
* [Time](https://hl7.org/fhir/r4/datatypes-definitions.html#Annotation.time){:target="_blank"} | ||
|
||
<%= disclaimer %> | ||
|
||
### Errors | ||
|
||
The common [errors] and [OperationOutcomes] may be returned. | ||
|
||
## Terminology Bindings | ||
|
||
<%= terminology_table(:goal, :r4) %> | ||
|
||
## Search | ||
|
||
Search for Goals that meet supplied query parameters: | ||
Search for goals that meet supplied query parameters. | ||
|
||
GET /Goal?:parameters | ||
|
||
|
@@ -53,43 +59,38 @@ Search for Goals that meet supplied query parameters: | |
|
||
Name | Required? | Type | Description | ||
-------------------|----------------------------|---------------|--------------------------------------------------------------------------------------------------------------- | ||
`_id` | This, or patient. | [`token`] | The logical resource id associated with the Goal. Example: `_id=7891` | ||
`patient` | This, or _id. | [`reference`] | The patient who has the goal. Example: `patient=12345` | ||
`target-date` | N | [`date`] | A date or date range from which to find Goals. Example: `target-date=ge2016-10-01&target-date=le2016-12-01` | ||
`_id` | Conditionally | [`token`] | The logical resource ID associated with the goal. This parameter is required if `patient` is not used. Example: `_id=7891` | ||
`patient` | Conditionally | [`reference`] | The patient who has the goal. This parameter is required if `_id` is not used. Example: `patient=12345` | ||
`target-date` | No | [`date`] | A date or date range from which to find goals. Example: `target-date=ge2016-10-01&target-date=le2016-12-01` | ||
`_revinclude` | No | [`token`] | Provenance resource entries to be returned as part of the bundle. Example:_revinclude=Provenance:target | ||
|
||
Notes: | ||
|
||
- The `_id` parameter may not be provided at the same time as the `patient` or `target-date` | ||
|
||
- The `target-date` parameter may be provided once with a prefix to imply a date range or without a prefix to search for goals at a specific date. Alternately it may be provided twice with `le`, `lt`, `ge`, or `gt` prefixes to search for goals within specific range. The date and prefix pairs must create a closed range. | ||
|
||
- The `_revinclude` parameter may be provided once with the value `Provenance:target`. Example: `_revinclude=Provenance:target` | ||
|
||
- The `_revinclude` parameter may be provided with the `_id/patient` parameter. Example: `_id=178866310&_revinclude=Provenance:target` | ||
|
||
- When `_revinclude` is provided in a request to the closed endpoint, the OAuth2 token must include the scope corresponding to the Authorization Type, such as `user/Provenance.read`, `patient/Provenance.read` or `system/Provenance.read`. | ||
* The `target-date` parameter: | ||
* May be provided once with a prefix to imply a date range or without a prefix to search for goals at a specific date. | ||
* Alternatively, it may be provided twice with `le`, `lt`, `ge`, or `gt` prefixes to search for goals within a specific range. The date and prefix pairs must create a closed range. | ||
* The `_revinclude` parameter: | ||
* May be provided once with the `Provenance:target` value. Example: `_revinclude=Provenance:target` | ||
* May be provided with the `_id` parameter. Example: `_id=178866310&_revinclude=Provenance:target` | ||
* May be provided with the `patient` parameter. Example `patient=1234&__revinclude=Provenance:target` | ||
* If provided in a request to the closed endpoint, the OAuth2 token must include the `user/Provenance.read` scope. Currently, `patient/Provenance.read` is not supported; hence, `_revinclude` cannot be used for patient persona. | ||
|
||
|
||
### Headers | ||
|
||
<%= headers %> | ||
|
||
### Example with RevInclude | ||
|
||
### Authorization Types | ||
|
||
<%= authorization_types(provider: true, system: true) %> | ||
### Example Search by ID | ||
|
||
#### Request | ||
|
||
GET https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Goal?_id=498290085&_revinclude=Provenance:target | ||
GET https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Goal?_id=187042107 | ||
|
||
#### Response | ||
|
||
<%= headers status: 200 %> | ||
<%= json(:r4_goal_revinclude_bundle) %> | ||
<%= disclaimer %> | ||
<%= json(:r4_goal_bundle_by_id) %> | ||
|
||
|
||
### Example Search by Patient | ||
|
||
|
@@ -102,55 +103,46 @@ Notes: | |
<%= headers status: 200 %> | ||
<%= json(:r4_goal_bundle) %> | ||
|
||
<%= disclaimer %> | ||
|
||
|
||
### Example Search by Id | ||
### Example Search by Patient and Target Date | ||
|
||
#### Request | ||
|
||
GET https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Goal?_id=187042107 | ||
GET https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Goal?patient=12724069&target-date=gt2021-01-12 | ||
|
||
#### Response | ||
|
||
<%= headers status: 200 %> | ||
<%= json(:r4_goal_bundle_by_id) %> | ||
<%= json(:r4_goal_bundle_by_date) %> | ||
|
||
<%= disclaimer %> | ||
### Example with RevInclude | ||
|
||
### Example Search by Patient and Target Date | ||
### Authorization Types | ||
|
||
<%= authorization_types(provider: true, system: true) %> | ||
|
||
#### Request | ||
|
||
GET https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Goal?patient=12724069&target-date=gt2021-01-12 | ||
GET https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Goal?_id=498290085&_revinclude=Provenance:target | ||
|
||
#### Response | ||
|
||
<%= headers status: 200 %> | ||
<%= json(:r4_goal_bundle_by_date) %> | ||
|
||
<%= disclaimer %> | ||
<%= json(:r4_goal_revinclude_bundle) %> | ||
|
||
#### Patient Authorization Request | ||
|
||
GET https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Goal?patient=12724066 | ||
GET https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Goal?patient=12724066 | ||
|
||
#### Response | ||
|
||
<%= headers status: 200 %> | ||
<%= json(:r4_goal_patient_bundle) %> | ||
|
||
<%= disclaimer %> | ||
|
||
### Errors | ||
|
||
The common [errors] and [OperationOutcomes] may be returned. | ||
|
||
## Retrieve by id | ||
## Retrieve by ID | ||
|
||
List an individual Goal by its id: | ||
List an individual goal by its ID. | ||
|
||
GET /Goal/:id | ||
GET /Goal/:ID | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is fine to be lowercase since it references the field value |
||
|
||
### Authorization Types | ||
|
||
|
@@ -171,36 +163,17 @@ List an individual Goal by its id: | |
<%= headers status: 200 %> | ||
<%= json(:r4_goal) %> | ||
|
||
<%= disclaimer %> | ||
|
||
#### Patient Authorization Request | ||
|
||
GET https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Goal/187042107 | ||
|
||
#### Response | ||
|
||
<%= headers status: 200 %> | ||
<%= json(:r4_goal) %> | ||
|
||
<%= disclaimer %> | ||
|
||
#### Patient Authorization Request For Entered in Error Status | ||
|
||
GET https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Goal/187042111 | ||
GET https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Goal/187042111 | ||
|
||
#### Response | ||
|
||
<%= headers status: 200 %> | ||
<%= json(:r4_goal_entered_in_error_status) %> | ||
|
||
<%= disclaimer %> | ||
|
||
### Errors | ||
|
||
The common [errors] and [OperationOutcomes] may be returned. | ||
|
||
[`date`]: http://hl7.org/fhir/r4/search.html#date | ||
[`reference`]: http://hl7.org/fhir/r4/search.html#reference | ||
[`token`]: http://hl7.org/fhir/r4/search.html#token | ||
[`date`]: https://hl7.org/fhir/r4/search.html#date | ||
[`reference`]: https://hl7.org/fhir/r4/search.html#reference | ||
[`token`]: https://hl7.org/fhir/r4/search.html#token | ||
[errors]: ../../../#client-errors | ||
[OperationOutcomes]: ../../../#operation-outcomes |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https-ify, please - check field links + trailing file links in both files.