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

Commit

Permalink
added new search parameter for R4 condition and procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
“Surya authored and “Surya committed Feb 10, 2024
1 parent e0a7da1 commit 6482c61
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion content/millennium/r4/clinical/summary/condition.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ _Implementation Notes_
`category` | No | [`token`] | The category of the condition. Categories problem-list-item, encounter-diagnosis and health-concern are supported as of now. Example: `problem-list-item`, `encounter-diagnosis`, `health-concern`
`_revinclude` | No | [`token`] | Provenance resource entries to be returned as part of the bundle. Example:`_revinclude=Provenance:target`
`encounter` | No | [`reference`] | The encounter ID/s for the patient. Encounter-diagnosis conditions that match the encounter ID/s and all problem-list-item conditions of the patient are returned. Example: `encounter=97733489`

`_lastUpdated` | No | [`date`] | Date range in which the conditions was last updated. Example: `_lastUpdated=gt2014-09-24` or `_lastUpdated=lt2015-09-24T12:00:00.000Z`

Notes:

* If `_id` is provided, no other parameters may be provided.
Expand All @@ -80,6 +81,7 @@ Notes:
* be provided with the `_id/patient` parameter. Example: `_id=82c1c95c-83bb-47d2-86d7-7961aa996082&_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`.
* When `encounter` is provided, encounter-diagnosis for the matched encounter/s and all problem-list-item conditions of the patient will be returned. No HealthConcerns are returned.
* 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 Expand Up @@ -312,6 +314,7 @@ The `ETag` response header indicates the current `If-Match` version to use on su

The common [errors] and [OperationOutcomes] may be returned.

[`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
Expand Down
6 changes: 5 additions & 1 deletion content/millennium/r4/clinical/summary/procedure.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ Search for procedures that meet supplied query parameters.
`subject` | Conditionally | [`reference`] | Who the procedure is for. This parameter is required if `_id` or `patient` is not used. Example: `Patient/12345`
`date` | No | [`dateTime`] | The date range that the procedure's `performedPeriod` or `performedDateTime` falls within. Example: `date=gt2015-09-24T12:00:00.000Z&date=le2020-07-15T16:00:00.000Z`
`_revinclude` | No | [`token`] | The Provenance resource entries to be returned as part of the bundle. Example:_revinclude=Provenance:target

`_lastUpdated` | No | [`date`] | Date range in which the procedures was last updated. Example: `_lastUpdated=gt2014-09-24` or `_lastUpdated=lt2015-09-24T12:00:00.000Z`

Notes:

* The `date` parameter:
Expand All @@ -76,6 +77,8 @@ Notes:
* May be provided in combination with the `_id` or `patient` parameter. Example: `_id=570007845&_revinclude=Provenance:target` or `patient=12345&_revinclude=Provenance:target`.
* When provided in a request to a closed endpoint, the OAuth2 token must include the `user/Provenance.read` scope.
* Currently, the `patient/Provenance.read` scope is not supported; hence, `_revinclude` cannot be used for patient persona.
* 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.
* The `date` and `_lastUpdated` parameters may not be provided together.

### Headers

Expand Down Expand Up @@ -209,6 +212,7 @@ X-Request-Id: 2e11665d-618d-4017-9a90-c3c1afeeac00

The `ETag` response header indicates the current `If-Match` version to use on a subsequent update.

[`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
[`dateTime`]: https://hl7.org/fhir/r4/datatypes.html#dateTime
Expand Down

0 comments on commit 6482c61

Please sign in to comment.