Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
Encounter support for _lastupdated and NutritionOrder support for _re…
Browse files Browse the repository at this point in the history
…vinclude (#1046)
  • Loading branch information
Someshnsn authored Apr 4, 2024
1 parent c4a2df0 commit fc93318
Show file tree
Hide file tree
Showing 3 changed files with 723 additions and 0 deletions.
2 changes: 2 additions & 0 deletions content/millennium/r4/base/management/encounter.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ Name | Required | Type | Description
[`_count`] | No | [`number`] | The maximum number of results to return.
`status` | No | [`token`] | The status of the Encounter. Example: `planned`
`_revinclude` | No | [`token`] | Provenance resource entries to be returned as part of the bundle. Example: `_revinclude=Provenance:target`
`_lastUpdated`| No | [`dateTime`] | Datetime on which the Encounter was last updated. Example: `_lastUpdated=gt2014-09-24` or `_lastUpdated=gt2014-09-24T12:00:00.000Z`

Notes:

Expand All @@ -134,6 +135,7 @@ Notes:
* Code details are required. System is optional. If a system is not provided, search is performed across all systems supported by the
Encounter resource.
* When a valid system is provided, search is performed against the specific system.
* The `_lastUpdated` parameters may be provided up to two times, and must use the `eq`, `ge`, `gt`, `le`, or `lt` prefixes. When a value is provided without a prefix, an implied `eq` prefix is used. When provided twice, the lower value must have a `ge` or `gt` prefix and the higher value must have an `le` or `lt` prefix.

### Headers

Expand Down
26 changes: 26 additions & 0 deletions content/millennium/r4/clinical/care-provision/nutrition-order.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,19 @@ Search for nutrition orders that meet the supplied query parameters.
`status` | No | [`token`] | The status of the nutrition order. Example: `active`
`_lastUpdated` | No | [`date`] | An explicit or implied date and time range during which the most recent clinically relevant update was made to the nutrition order. Must include a time, and must be prefixed by ‘ge’ or ‘le’. Example: `ge2014-05-19T20:54:02.000Z`
[`_count`] | No | [`number`] | The maximum number of nutrition orders to include on a page.
`_revinclude` | No | [`token`] | Provenance resource entries to be returned as part of the bundle. Example: `_revinclude=Provenance:target`

Notes:

* If `_id` is provided, no other parameters are required.
* The `_lastUpdated` parameter may be provided in the following formats:
* Once with a prefix of ‘ge’ or ‘le’ representing the earliest date or latest date (for example, `date=ge2015-01-01` or `date=le2016-01-01`).
* Twice with the prefixes of ‘ge’ and ‘le’ to indicate a specific range (for example, `date=ge2015-01-01&date=le2016-01-01`).
* When searching with the `_revinclude` parameter
* It may be provided once with the value `Provenance:target`. Example: `_revinclude=Provenance:target`
* It may be provided with the `_id` or `patient` parameters. Example: `_id=214938095&_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`.

### Headers

Expand Down Expand Up @@ -96,6 +102,26 @@ Notes:

<%= disclaimer %>

### Example Search by _id with RevInclude


### Authorization Types

<%= authorization_types(provider: true, patient: true, system: true) %>


### Headers

<%= headers %>
#### Request

GET https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/NutritionOrder?_id=328575687,328575703&_revinclude=Provenance:target

#### Response

<%= headers status: 200 %>
<%= json(:R4_NUTRITION_ORDER_SEARCH_BY_REVINCLUDE) %>
<%= disclaimer %>

### Errors

Expand Down
Loading

0 comments on commit fc93318

Please sign in to comment.