From da8bbd99fc1a2b6ddc6c3043fb9d533c6c680879 Mon Sep 17 00:00:00 2001 From: Someshwara N <35108040+Someshnsn@users.noreply.github.com> Date: Thu, 15 Feb 2024 17:38:58 +0530 Subject: [PATCH] [R4][AllergyIntolerance][Immunization] Support search by _lastUpdated (#1037) --- content/millennium/r4/clinical/medications/immunization.md | 5 +++++ .../millennium/r4/clinical/summary/allergy-intolerance.md | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/content/millennium/r4/clinical/medications/immunization.md b/content/millennium/r4/clinical/medications/immunization.md index 5e281511e..4e78638f4 100644 --- a/content/millennium/r4/clinical/medications/immunization.md +++ b/content/millennium/r4/clinical/medications/immunization.md @@ -77,6 +77,7 @@ Search for immunizations that meet supplied query parameters: `_id` | Conditionally | [`token`] | The logical resource ID associated with the resource. This parameter is required if the `patient` parameter is not used. Example: `M12345` `patient` | Conditionally | [`reference`] | The patient for the vaccination record. This parameter is required if the `_id` parameter is not used. Example: `12345` `date` | No | [`date`] | The date range for the immunization administration or administrations. Example: `date=ge2020-01-01T08:00:00.000Z&date=le2020-01-31T17:00:00.000Z` + `_lastUpdated` | No | [`date`] | Date on which the immunization was last updated. Example: `_lastUpdated=gt2014-09-24` or `_lastUpdated=gt2014-09-24T12:00:00.000Z` `target-disease` | No | [`token`] | The target disease that the dose is being administered against. Example: `http://hl7.org/fhir/sid/cvx|213` `_revinclude` | No | [`token`] | The Provenance resource entries that are returned as part of the bundle. @@ -94,6 +95,10 @@ _Implementation Notes_ - For two `date` occurrences: - It must be provided with `le` and `ge` prefixes to search for vaccination records within a specific range. - The time component is optional, but must be consistent. If one date has a time component, so must the other. +- When searching with `_lastUpdated` parameter: + - It can be provided with only a single reference, and must use the `gt` prefix + - The time component is optional. + - The `date` and `_lastUpdated` parameters may not be provided together. - When searching with the `target-disease` parameter: - Searching by Cerner Millennium proprietary codes is not supported. - When searching with the `_revinclude` parameter: diff --git a/content/millennium/r4/clinical/summary/allergy-intolerance.md b/content/millennium/r4/clinical/summary/allergy-intolerance.md index ec71434f0..eb769a57b 100644 --- a/content/millennium/r4/clinical/summary/allergy-intolerance.md +++ b/content/millennium/r4/clinical/summary/allergy-intolerance.md @@ -84,6 +84,7 @@ Search for AllergyIntolerances that meet supplied query parameters: `patient` | This or `_id` | [`reference`] | Who the sensitivity is for. Example: `patient=12345` `clinical-status` | No | [`token`] | The clinical status of the allergy or intolerance. Example: `active`, `inactive`, `resolved` `_revinclude` | No | [`token`] | Provenance resource entries to be returned as part of the bundle. Example: `_revinclude=Provenance:target` + `_lastUpdated` | No | [`date`] | Date range in which the allergy or intolerance was last updated. Either 1 or 2 date/times can be given. Example: `_lastUpdated=gt2014-09-24` or `_lastUpdated=lt2015-09-24T12:00:00.000Z` Notes: @@ -97,6 +98,8 @@ Notes: - 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 `_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 <%= headers fhir_json: true %> @@ -308,6 +311,7 @@ The common [errors] and [OperationOutcomes] may be returned. [`reference`]: https://hl7.org/fhir/r4/search.html#reference [`token`]: https://hl7.org/fhir/R4/search.html#token +[`date`]: http://hl7.org/fhir/R4/search.html#date [errors]: ../../../#client-errors [OperationOutcomes]: ../../../#operation-outcomes [Precision Extension]: https://fhir-ehr.cerner.com/r4/StructureDefinition/precision?_format=json