From c4f773a886c0cf923aecf15cdfe1b3e2e8e39ce7 Mon Sep 17 00:00:00 2001 From: Sangeetha M Date: Mon, 12 Feb 2024 16:27:13 +0530 Subject: [PATCH] DocumentReference_Nil_status_examples_added --- .../documents/document-reference.md | 18 +++ .../r4_examples_document_reference.rb | 136 ++++++++++++++++++ 2 files changed, 154 insertions(+) diff --git a/content/millennium/r4/foundation/documents/document-reference.md b/content/millennium/r4/foundation/documents/document-reference.md index d13d8495a..b78f7ff9c 100644 --- a/content/millennium/r4/foundation/documents/document-reference.md +++ b/content/millennium/r4/foundation/documents/document-reference.md @@ -126,6 +126,15 @@ _Implementation Notes_ <%= headers status: 200 %> <%= json(:R4_DOCUMENT_REFERENCE_BUNDLE) %> +### Example with Nil Status Request + + GET https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/DocumentReference?patient=12769853 + +#### Response + +<%= headers status: 200 %> +<%= json(:R4_DOCUMENT_REFERENCE_NIL_STATUS_BUNDLE) %> + ### Example with RevInclude ### Authorization Types @@ -192,6 +201,15 @@ _Implementation Notes_ <%= headers status: 200 %> <%= json(:R4_DOCUMENT_REFERENCE) %> +### Example with Nil Status Request + + GET https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/DocumentReference/206098371 + +#### Response + +<%= headers status: 200 %> +<%= json(:R4_DOCUMENT_REFERENCE_NIL_STATUS) %> + #### Patient Authorization Request GET https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/DocumentReference/198381924 diff --git a/lib/resources/example_json/r4_examples_document_reference.rb b/lib/resources/example_json/r4_examples_document_reference.rb index c90eb9dae..082c07c56 100644 --- a/lib/resources/example_json/r4_examples_document_reference.rb +++ b/lib/resources/example_json/r4_examples_document_reference.rb @@ -98,6 +98,19 @@ module Resources } }.freeze + R4_DOCUMENT_REFERENCE_NIL_STATUS ||= { + "resourceType": 'OperationOutcome', + "issue": [ + { + "severity": 'error', + "code": 'not-found', + "details": { + "text": 'Resource not found' + } + } + ] + }.freeze + R4_DOCUMENT_REFERENCE_SEARCH_BY_ENCOUNTER_FILTER_PATIENT_DOCUMENTS ||= { "resourceType": 'DocumentReference', "id": '198381924', @@ -510,6 +523,129 @@ module Resources ] }.freeze + R4_DOCUMENT_REFERENCE_NIL_STATUS_BUNDLE ||= { + 'resourceType': 'Bundle', + 'id': '271fc608-6a12-48f3-a9f8-2d1bfe395328', + 'type': 'searchset', + 'link': [ + { + 'relation': 'self', + 'url': 'https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/DocumentReference?patient=12769853' + } + ], + 'entry': [ + { + 'fullUrl': 'https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/DocumentReference/198381924', + 'resource': R4_DOCUMENT_REFERENCE + }, + { + 'fullUrl': 'https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/DocumentReference/198381926', + 'resource': { + "resourceType": 'DocumentReference', + "id": '198381926', + "meta": { + "versionId": '1', + "lastUpdated": '2022-07-07T09:43:56.000Z' + }, + "text": { + "status": 'generated', + "div": '

Document Reference

'\ + '

Patient Name: '\ + 'GETEST, PatientOneHundredSixtySix

Document Type: '\ + 'Waveform Strip

Document Category: '\ + 'Unknown

Document Title: test1

Service Start Date: '\ + 'Jul 7, 2022 9:43 A.M. UTC

Service End Date: '\ + 'Jul 7, 2022 9:43 A.M. UTC

Document Status: Final

' + }, + "identifier": [ + { + "system": 'https://fhir.cerner.com/ceuuid', + "value": 'CE87caf4b7-9397-4667-9897-702218017c9e-198381926-2022070709435600' + } + ], + "status": 'current', + "docStatus": 'final', + "type": { + "coding": [ + { + "system": 'https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/codeSet/72', + "code": '2574499721', + "display": 'Waveform Strip', + "userSelected": true + }, + { + "system": 'http://terminology.hl7.org/CodeSystem/v3-NullFlavor', + "code": 'UNK', + "display": 'unknown' + } + ], + "text": 'Waveform Strip' + }, + "category": [ + { + "coding": [ + { + "system": 'http://terminology.hl7.org/CodeSystem/data-absent-reason', + "code": 'unknown', + "display": 'Unknown' + } + ], + "text": 'Unknown' + } + ], + "subject": { + "reference": 'Patient/12769853', + "display": 'GETEST, PatientOneHundredSixtySix' + }, + "date": '2022-07-07T09:43:56Z', + "content": [ + { + "attachment": { + "contentType": 'application/pdf', + "url": 'https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Binary/XR-198381926', + "title": 'test1', + "creation": '2022-07-07T09:43:56.000Z' + }, + "format": { + "system": 'http://terminology.hl7.org/CodeSystem/data-absent-reason', + "code": 'unknown', + "display": 'Unknown' + } + } + ], + "context": { + "encounter": [ + { + "reference": 'Encounter/97966172' + } + ], + "period": { + "start": '2022-07-07T09:43:56.000Z', + "end": '2022-07-07T09:43:56.000Z' + } + } + } + }, + { + "fullUrl": 'urn:uuid:98ae7843-46b7-4792-8613-a0b9cf196b27', + "resource": { + "resourceType": 'OperationOutcome', + "issue": [ + { + "severity": 'warning', + "code": 'suppressed', + "diagnostics": 'Other search results were found but could not be compliantly expressed and hence have'\ + ' been suppressed' + } + ] + }, + "search": { + "mode": 'outcome' + } + } + ] + }.freeze + R4_DOCUMENT_REFERENCE_PATIENT_ACCESS_BUNDLE ||= { 'resourceType': 'Bundle', 'id': '74e2c51e-96af-4f95-abd1-bbbe566e386b',