diff --git a/content/millennium/r4/clinical/diagnostics/observation.md b/content/millennium/r4/clinical/diagnostics/observation.md index 20e57f3d0..25dd01dda 100644 --- a/content/millennium/r4/clinical/diagnostics/observation.md +++ b/content/millennium/r4/clinical/diagnostics/observation.md @@ -10,13 +10,30 @@ title: Observation | R4 API ## Overview The Observation resource provides measurements or simple assertions about a patient that are useful for establishing baselines or trends, monitoring a patient's progress, and establishing diagnoses. Most observations are simple name/value pair assertions but some observations, such as blood pressure, group other observations together logically. Examples of common observations are: Laboratory results (blood sugar, hemoglobin), Vital signs (temperature, blood pressure), Personal characteristics (height, weight), and Social history (tobacco/alcohol use, employment status). Pathology reports, radiology reports, and other textual reports should be represented by the DiagnosticReport resource. +The following [HL7® FHIR® US Core Implementation Guide STU 4.0.0](https://hl7.org/fhir/us/core/STU4/){:target="_blank"} Profiles are supported by this resource: + +* [US Core Smoking Status Observation Profile](https://www.hl7.org/fhir/us/core/STU4/StructureDefinition-us-core-smokingstatus.html){:target="_blank"} +* [US Core Laboratory Result Observation Profile](https://www.hl7.org/fhir/us/core/STU4/StructureDefinition-us-core-observation-lab.html){:target="_blank"} +* [US Core Vital Signs Profile](https://www.hl7.org/fhir/us/core/STU4/StructureDefinition-us-core-vital-signs.html){:target="_blank"} +* [US Core Blood Pressure Profile](https://www.hl7.org/fhir/us/core/STU4/StructureDefinition-us-core-blood-pressure.html){:target="_blank"} +* [US Core BMI Profile](https://www.hl7.org/fhir/us/core/STU4/StructureDefinition-us-core-bmi.html){:target="_blank"} +* [US Core Head Circumference Profile](https://www.hl7.org/fhir/us/core/STU4/StructureDefinition-us-core-head-circumference.html){:target="_blank"} +* [US Core Body Height Profile](https://www.hl7.org/fhir/us/core/STU4/StructureDefinition-us-core-body-height.html){:target="_blank"} +* [US Core Body Weight Profile](https://www.hl7.org/fhir/us/core/STU4/StructureDefinition-us-core-body-weight.html){:target="_blank"} +* [US Core Body Temperature Profile](https://www.hl7.org/fhir/us/core/STU4/StructureDefinition-us-core-body-temperature.html){:target="_blank"} +* [US Core Heart Rate Profile](https://www.hl7.org/fhir/us/core/STU4/StructureDefinition-us-core-heart-rate.html){:target="_blank"} +* [US Core Pediatric BMI for Age Observation Profile](https://www.hl7.org/fhir/us/core/STU4/StructureDefinition-pediatric-bmi-for-age.html){:target="_blank"} +* [US Core Pediatric Head Occipital-frontal Circumference Percentile Profile](https://www.hl7.org/fhir/us/core/STU4/StructureDefinition-head-occipital-frontal-circumference-percentile.html){:target="_blank"} +* [US Core Pediatric Weight for Height Observation Profile](https://www.hl7.org/fhir/us/core/STU4/StructureDefinition-pediatric-weight-for-height.html){:target="_blank"} +* [US Core Pulse Oximetry Profile](https://www.hl7.org/fhir/us/core/STU4/StructureDefinition-us-core-pulse-oximetry.html){:target="_blank"} +* [US Core Respiratory Rate Profile](https://www.hl7.org/fhir/us/core/STU4/StructureDefinition-us-core-respiratory-rate.html){:target="_blank"} + The following fields are returned if valued: * [Id](https://hl7.org/fhir/R4/resource-definitions.html#Resource.id){:target="_blank"} * [Identifier](https://hl7.org/fhir/R4/observation-definitions.html#Observation.identifier){:target="_blank"} -* [BasedOn](https://hl7.org/fhir/R4/observation-definitions.html#Observation.basedOn){:target="_blank"} * [Status](https://hl7.org/fhir/R4/observation-definitions.html#Observation.status){:target="_blank"} -* [Category (laboratory, social history)](https://hl7.org/fhir/R4/observation-definitions.html#Observation.category){:target="_blank"} +* [Category (laboratory, social history, vital-signs)](https://hl7.org/fhir/R4/observation-definitions.html#Observation.category){:target="_blank"} * [Code (Observation name or text)](https://hl7.org/fhir/R4/observation-definitions.html#Observation.code){:target="_blank"} * [Subject (Patient)](https://hl7.org/fhir/R4/observation-definitions.html#Observation.subject){:target="_blank"} * [Encounter](https://hl7.org/fhir/R4/observation-definitions.html#Observation.encounter){:target="_blank"} @@ -29,7 +46,7 @@ The following fields are returned if valued: * [Quantity comparator (<, <=, >, >=)](https://hl7.org/fhir/R4/datatypes-definitions.html#Quantity.comparator){:target="_blank"} * [Quantity units](https://hl7.org/fhir/R4/datatypes-definitions.html#Quantity.unit){:target="_blank"} * For Observations with `valueCodeableConcept` - * [Codeable concept](https://hl7.org/fhir/R4/datatypes-definitions.html#CodeableConcept){:target="_blank"} + * [Codeable concept](https://hl7.org/fhir/R4/datatypes-definitions.html#CodeableConcept){:target="_blank"} * [Data absent reason](https://hl7.org/fhir/R4/observation-definitions.html#Observation.dataAbsentReason){:target="_blank"} * [Interpretation (abnormal flagging)](https://hl7.org/fhir/R4/observation-definitions.html#Observation.interpretation){:target="_blank"} * [Note (comments)](https://hl7.org/fhir/R4/observation-definitions.html#Observation.note){:target="_blank"} @@ -66,9 +83,13 @@ _Implementation Notes_ * The `comments` field may have RTF or other formatted data rather than simple text. This is an issue that will be resolved in a future correction. We are investigating alternative solutions to fix this. +* Social History results won't be affected by date and _lastUpdated parameters, results may contain social history records out of the given timeframe. + +* Searching records with vital-signs category by code with proprietary system will result in empty response. + * When multiple pages of Observation results are returned for a single query: * All Social history Observations (if any qualify for the query) will be returned on the first page of results. This means that the next bullet does not apply to Social history Observations. - * Results are sorted by effective date/time in descending order by page. That is, all Observations on any given page of results are newer than all Observations on the next page of results. Sort order within pages is not guaranteed. + * Results are sorted by effective date/time in descending order. That is, all Observations on any given page of results are newer than all Observations on the next page of results. * If the query uses the `_lastUpdated` query parameter, results are sorted by last updated date/time in descending order by page, not by effective date/time. ### Parameters @@ -93,9 +114,9 @@ Notes: * It is recommended to search by either `code` or `date` (or both). * The `code` parameter: - * May be a list of comma separated values. A system must be provided for each code. + * May be a list of comma separated values. + * Searches only `Observation.code`. For example when fetching blood pressures the resource will be only be returned when the search is based on `85354-9(Systolic and Diastolic BP)`. Using the component codes `8480-6(Systolic BP)` or `8462-4 (Diastolic BP)` will not return the resource. - * Searching with proprietary codes or systems is not supported. * The `date` and `_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. @@ -103,11 +124,15 @@ Notes: * The `_lastUpdated` query will only qualify clinically significant updates. For example, changes to the value or code, and other significant fields. Minor updates, like some non-clinically relevant note updates, will not qualify. +* When `_count` parameter is provided, + * it won’t affect the first page, because all social history data will appear in the first page regardless of requested count. + * Second page onward, returned item count may be less than requested. + * The `_revinclude` parameter may be provided once with the value `Provenance:target`. Example: `_revinclude=Provenance:target` * The `_revinclude` parameter may be provided with the `patient/subject` parameter. Example: `patient=12457977&category=vital-signs&_revinclude=Provenance:target` -* When `_revinclude` is 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 and hence `_revinclude` cannot be utilised for patient persona. +* When `_revinclude` is provided in a request to the closed endpoint, the OAuth2 token must include the `user/Provenance.read` scope. ### Headers @@ -130,7 +155,7 @@ Notes: ### Authorization Types -<%= authorization_types(provider: true, system: true) %> +<%= authorization_types(provider: true, patient: true, system: true) %> #### Request @@ -186,7 +211,7 @@ _Implementation Notes_ #### Request - GET https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Observation/M-197292857 + GET https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Observation/VS-197292857 #### Response @@ -218,7 +243,7 @@ _Implementation Notes_
-_Note_: +_Note_: * Vital Sign creates via a Provider persona requires an active relationship between the Provider and the Patient. @@ -253,7 +278,7 @@ Content-Length: 0 Content-Type: text/html Date: Mon, 16 Nov 2020 22:05:40 GMT Etag: W/"1" -Location: https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Observation/M-197392513 +Location: https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Observation/L-197392513 Last-Modified: Mon, 16 Nov 2020 22:05:40 GMT Vary: Origin X-Request-Id: 30a3177d-0987-460d-bb27-a5bb6303f03e @@ -300,7 +325,7 @@ _Note_: #### Request - PUT https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Observation/M-196186655 + PUT https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Observation/L-196186655 #### Labs Body Example diff --git a/lib/resources/example_json/r4_examples_observation.rb b/lib/resources/example_json/r4_examples_observation.rb index 3e14c6c24..33cbd9dd1 100644 --- a/lib/resources/example_json/r4_examples_observation.rb +++ b/lib/resources/example_json/r4_examples_observation.rb @@ -3,10 +3,10 @@ module Cerner module Resources R4_OBSERVATION_ENTRY ||= { - 'fullUrl': 'https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Observation/M-197292857', + 'fullUrl': 'https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Observation/VS-197292857', 'resource': { 'resourceType': 'Observation', - 'id': 'M-197292857', + 'id': 'VS-197292857', 'meta': { 'versionId': '1', 'lastUpdated': '2020-07-06T21:13:24.000Z' @@ -26,11 +26,6 @@ module Resources 'value': 'CE87caf4b7-9397-4667-9897-702218017c9e-197292857-2020070621132500' } ], - 'basedOn': [ - { - 'reference': 'ServiceRequest/313764715' - } - ], 'status': 'final', 'category': [ { @@ -228,7 +223,16 @@ module Resources 'subject': { 'reference': 'Patient/12724066' }, + 'encounter': { + 'reference': 'Encounter/18565902' + }, + 'effectiveDateTime': '2022-06-01T10:39:02Z', 'issued': '2020-06-11T04:05:33.000Z', + 'performer': [ + { + 'reference': 'Practitioner/15441459' + } + ], 'hasMember': [ { 'reference': 'Observation/SH-73080191-q4625817' @@ -281,7 +285,16 @@ module Resources 'subject': { 'reference': 'Patient/12724066' }, + 'encounter': { + 'reference': 'Encounter/18565902' + }, + 'effectiveDateTime': '2022-06-01T10:39:02Z', 'issued': '2020-06-11T04:05:33.000Z', + 'performer': [ + { + 'reference': 'Practitioner/15441459' + } + ], 'valueCodeableConcept': { 'coding': [ { @@ -337,7 +350,16 @@ module Resources 'subject': { 'reference': 'Patient/12724066' }, + 'encounter': { + 'reference': 'Encounter/18565902' + }, + 'effectiveDateTime': '2022-06-01T10:39:02Z', 'issued': '2020-06-11T04:05:33.000Z', + 'performer': [ + { + 'reference': 'Practitioner/15441459' + } + ], 'valueCodeableConcept': { 'coding': [ { @@ -350,6 +372,124 @@ module Resources } } }, + { + 'fullUrl': 'https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Observation/VS-CV-55046871-SECT-8098', + 'resource': { + 'resourceType': 'Observation', + 'id': 'VS-CV-55046871-SECT-8098', + 'meta': { + 'versionId': '0', + 'lastUpdated': '2022-06-17T10:41:35Z' + }, + 'text': { + 'status': 'generated', + 'div': 'Observation
'\ + 'Patient Id: 15116458
Status: Final
Categories'\ + ': Vital Signs
Code: SpO2
Result: 95 %
Effective Date'\ + ': Jun 5, 2022 3:00 A.M. CDT
Observation
'\ 'Patient Id: 12742400
Status: Preliminary
'\ - 'Code: Masked
Code: Hgb Bld-mCnc
' }, 'status': 'preliminary', 'category': [ { - 'extension': [ + 'coding': [ { - 'valueCode': 'unknown', - 'url': 'http://hl7.org/fhir/StructureDefinition/data-absent-reason' + 'system': 'http://terminology.hl7.org/CodeSystem/observation-category', + 'code': 'laboratory', + 'display': 'Laboratory' } - ] + ], + 'text': 'Laboratory' } ], 'code': { 'coding': [ { - 'system': 'http://terminology.hl7.org/CodeSystem/data-absent-reason', - 'code': 'masked', - 'display': 'Masked' + 'system': 'https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/codeSet/72', + 'code': '703535', + 'display': 'Hgb Bld-mCnc', + 'userSelected': true + }, + { + 'system': 'http://loinc.org', + 'code': '718-7', + 'display': 'Hgb Bld-mCnc' } ], - 'text': 'Masked' + 'text': 'Hgb Bld-mCnc' }, 'subject': { 'reference': 'Patient/12742400' }, - '_effectiveDateTime': { - 'extension': [ - { - 'valueCode': 'unknown', - 'url': 'http://hl7.org/fhir/StructureDefinition/data-absent-reason' - } - ] - }, + 'effectiveDateTime': '2022-06-01T10:39:02Z', 'dataAbsentReason': { 'coding': [ { @@ -493,10 +638,10 @@ module Resources ], 'entry': [ { - 'fullUrl': 'https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Observation/M-197412603', + 'fullUrl': 'https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Observation/L-197412603', 'resource': { 'resourceType': 'Observation', - 'id': 'M-197412603', + 'id': 'L-197412603', 'text': { 'status': 'generated', 'div': 'Observation
'\ @@ -506,35 +651,36 @@ module Resources 'status': 'entered-in-error ', 'category': [ { - 'extension': [ + 'coding': [ { - 'valueCode': 'error', - 'url': 'http://hl7.org/fhir/StructureDefinition/data-absent-reason' + 'system': 'http://terminology.hl7.org/CodeSystem/observation-category', + 'code': 'laboratory', + 'display': 'Laboratory' } - ] + ], + 'text': 'Laboratory' } ], 'code': { 'coding': [ { - 'system': 'http://terminology.hl7.org/CodeSystem/data-absent-reason', - 'code': 'error', - 'display': 'Error' + 'system': 'https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/codeSet/72', + 'code': '703535', + 'display': 'Hgb Bld-mCnc', + 'userSelected': true + }, + { + 'system': 'http://loinc.org', + 'code': '718-7', + 'display': 'Hgb Bld-mCnc' } ], - 'text': 'Error' + 'text': 'Hgb Bld-mCnc' }, 'subject': { 'reference': 'Patient/12742401' }, - '_effectiveDateTime': { - 'extension': [ - { - 'valueCode': 'error', - 'url': 'http://hl7.org/fhir/StructureDefinition/data-absent-reason' - } - ] - }, + 'effectiveDateTime': '2022-06-01T10:38:02Z', 'dataAbsentReason': { 'coding': [ { @@ -741,7 +887,7 @@ module Resources R4_OBSERVATION_LABS_UPDATE ||= { "resourceType": 'Observation', - "id": 'M-196186655', + "id": 'L-196186655', "status": 'corrected', "meta": { "source": '43ba6d6a-1006-4546-bf28-48d84a98dbb1' @@ -829,7 +975,7 @@ module Resources R4_OBSERVATION_VITALS_UPDATE ||= { "resourceType": 'Observation', - "id": 'M-197356031', + "id": 'VS-197356031', "identifier": [ { "system": 'https://fhir.cerner.com/ceuuid', @@ -908,10 +1054,10 @@ module Resources ], 'entry': [ { - 'fullUrl': 'https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Observation/M-196190669', + 'fullUrl': 'https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Observation/VS-196190669', 'resource': { 'resourceType': 'Observation', - 'id': 'M-196190669', + 'id': 'VS-196190669', 'meta': { 'versionId': '2', 'lastUpdated': '2017-02-25T02:41:03.000Z' @@ -1077,13 +1223,13 @@ module Resources 'text': { 'status': 'generated', 'div': 'Provenance
Target:
'\ - 'Recorded: Oct 25, 2019 9:57 A.M.'\ + '
Recorded: Oct 25, 2019 9:57 A.M.'\ ' CDT
Agents:
Entity Source: DocumentReference/S-100