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

Diagnostic Report Create for Cardiology and Anatomic pathology #1002

Merged
merged 4 commits into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 104 additions & 2 deletions content/millennium/r4/clinical/diagnostics/diagnostic-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,108 @@ Retrieve an individual DiagnosticReport by its ID:

<%= disclaimer %>

## Create

Create a new diagnostic report.

POST /DiagnosticReport

_Implementation Notes_

* DiagnosticReports of type Cardiology and Anatomic Pathology are supported for the create operation.
* Only the body fields mentioned below are supported. Unsupported fields will be ignored.
* All provided dates must have a time component.
* Supported MIME Types: application/pdf, text/plain, text/richtext, text/rtf, text/html, application/xml, and application/xhtml+xml
* Diagnostic Report Cardiology Create API requires
* A default user to be setup in the domain to chart a document
* If not default user is defined in the domain, a results_interpreter attribute is mandatory to chart a cardiology document.

### Authorization Types

<%= authorization_types(provider: true, system: true) %>

### Headers

<%= headers head: {Authorization: '&lt;OAuth2 Bearer Token>', 'Content-Type': 'application/fhir+json'} %>

### Body Fields

<%= definition_table(:diagnostic_report_create, :create, :r4) %>

### Example for Cardiology Concept Create

#### Request

POST https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/DiagnosticReport

### Body

<%= json(:R4_DIAGNOSTIC_REPORT_POST_CARDIOLOGY) %>

#### Response

<%= headers status: 201 %>
<pre class="terminal">
Date: Mon, 09 Oct 2023 17:29:02 GMT
Content-Type: text/html
Connection: keep-alive
Cache-Control: no-cache
Etag: W/"1"
Last-Modified: Mon, 09 Oct 2023 17:29:02 GMT
Location: https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/DiagnosticReport/197466617
Referrer-Policy: strict-origin-when-cross-origin
Server-Response-Time: 1288.314512
Strict-Transport-Security: max-age=631152000
Vary: Origin
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-Request-Id: 7ce8599d-6fd7-9c53-3ca2-c08c708aecc0+Kccx_BLlz
X-Runtime: 1.288262
X-Xss-Protection: 1; mode=block
Transfer-Encoding: chunked
</pre>

<%= disclaimer %>

### Example for Anatomic Pathology Concept Create

#### Request

POST https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/DiagnosticReport

### Body

<%= json(:R4_DIAGNOSTIC_REPORT_POST_PATHOLOGY) %>

#### Response

<%= headers status: 201 %>
<pre class="terminal">
Date: Mon, 09 Oct 2023 17:29:02 GMT
Content-Type: text/html
Connection: keep-alive
Cache-Control: no-cache
Etag: W/"1"
Last-Modified: Mon, 09 Oct 2023 17:29:02 GMT
Location: https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/DiagnosticReport/197466627
Referrer-Policy: strict-origin-when-cross-origin
Server-Response-Time: 4626.253472
Strict-Transport-Security: max-age=631152000
Vary: Origin
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-Request-Id: a72ca419-4773-9e2d-a9dd-e9a56b6693ab+BExf_xcbw
X-Runtime: 4.626156
X-Xss-Protection: 1; mode=block
Transfer-Encoding: chunked
</pre>

<%= disclaimer %>

### Errors

The common [errors] and [OperationOutcomes] may be returned.
Expand All @@ -181,6 +283,6 @@ The common [errors] and [OperationOutcomes] may be returned.
[`reference`]: https://hl7.org/fhir/R4/search.html#reference
[`date`]: https://hl7.org/fhir/R4/search.html#date
[`number`]: https://hl7.org/fhir/R4/search.html#number
[errors]: ../../#client-errors
[OperationOutcomes]: ../../#operation-outcomes
[errors]: ../../../#client-errors
[OperationOutcomes]: ../../../#operation-outcomes
[Update documentation]: https://www.hl7.org/fhir/r4/http.html#update
137 changes: 137 additions & 0 deletions lib/resources/example_json/r4_examples_diagnostic_report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -553,5 +553,142 @@ module Resources
}
]
}.freeze

R4_DIAGNOSTIC_REPORT_POST_CARDIOLOGY ||= {
"resourceType": 'DiagnosticReport',
"status": 'amended',
"identifier": [
{
"use": 'usual',
"type": {
"coding": [
{
"code": 'Coding',
"system": 'http://snomed.info/sct',
"version": '4.0.1',
"display": 'test',
"userSelected": true
}
]
},
"system": 'http://hl7.org/fhir/sid/us-ssn',
"value": '11182457'
}
],
"category": [
{
"coding": [
{
"code": 'LP29708-2',
"display": 'Cardiology',
"isUserSelected": false,
"system": 'http://loinc.org'
}
],
"text": 'string'
}
],
"code": {
"coding": [
{
"system": 'http://loinc.org',
"code": '8328-7'
}
],
"text": 'string'
},
"subject": {
"reference": 'Patient/12804513'
},
"encounter": {
"reference": 'Encounter/98041577'
},
"performer": [
{
"reference": 'Practitioner/11786042',
"display": 'Practitioner name string'
}
],
"resultsInterpreter": [
{
"reference": 'Practitioner/11786042',
"display": 'Practitioner name string'
}
],
"effectivePeriod": {
"start": '2020-09-14T09:05:12.000Z',
"end": '2020-09-14T09:05:12.000Z'
},
"issued": '2020-12-29T09:12:28Z',
"presentedForm": [
{
"contentType": 'application/pdf;charset=utf-8',
"url": 'http://snomed.info/sct',
"data": 'JVBERi0xLjQKJcfsj6IKNSAwIG9iago8PC9MZW5ndGggNiAwIF',
"title": 'CT image',
"creation": '2020-12-29T09:12:28Z'
}
],
"conclusion": 'conclusion string'
}.freeze

R4_DIAGNOSTIC_REPORT_POST_PATHOLOGY ||= {
"resourceType": 'DiagnosticReport',
"status": 'amended',
"identifier": [
{
"system": 'https://fhir.cerner.com/ceuuid',
"value": 'CEfda49233-ccfa-4ed4-afbc-9f5082c2bf0c-34824240-2022051205454801'
}
],
"basedOn": [
{
"reference": 'ServiceRequest/99928073'
}
],
"category": [
{
"coding": [
{
"code": 'LP7839-6',
"display": 'Pathology study',
"isUserSelected": false,
"system": 'http://loinc.org'
}
],
"text": 'string'
}
],
"code": {
"coding": [
{
"code": '4187236',
"system": 'https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/codeSet/72',
"isUserSelected": true,
"display": 'Anatomic Pathology'
}
],
"text": 'string'
},
"subject": {
"reference": 'Patient/12804513'
},
"encounter": {
"reference": 'Encounter/98041577'
},
"performer": [
{
"reference": 'Practitioner/11786042'
}
],
"effectiveDateTime": '2020-12-27T09:12:28Z',
"issued": '2020-12-29T09:12:28Z',
"presentedForm": [
{
"contentType": 'application/pdf;charset=utf-8',
'data': 'PGh08L3RpdGxlPgoKRG9jdW1lbnQgY29udGVudCEKCjwvaHRtbD4='
}
]
}.freeze
end
end
Loading