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