Workflow or API calls:
Reminder: If this is referring to a client domain or EHR activity—not the public sandbox—do not include API request data or live patient data.
Background Information:
I recently attempted to create a DiagnosticReport resource using the R4 FHIR-open API in the public sandbox, including all required fields as specified in the documentation. However, I received a 422 error. I have double-checked all the fields and verified that each related field exists and is valid. Could you please help me identify the correct request body for creating this resource, in case I am missing any necessary fields? I have tried with multiple payload
Payload-1(Outcome-422 Unprocessable entity)
{
"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"
}
Payload-2 (Outcome -bad request)
{
"resourceType": "DiagnosticReport",
"status": "final",
"identifier": [
{
"use": "official",
"system": "http://acme.org/reports/id",
"value": "123456"
}
],
"category": [
{
"coding": \[
{
"system": "http://loinc.org",
"code": "LP7839-6",
"display": "Anatomic-Pathology"
}
\]
}
],
"code": {
"coding": \[
{
"system": "http://loinc.org",
"code": "60569-8",
"display": "Pathology report of colon"
}
\]
},
"subject": {
"reference": "Patient/14851806"
},
"encounter": {
"reference": "Encounter/97939518"
},
"effectivePeriod": {
"start": "2024-09-11T12:00:00Z",
"end": "2024-09-11T12:05:00Z"
},
"issued": "2024-09-11T13:00:00Z",
"performer": [
{
"reference": "Practitioner/14903378",
"display": "abhay"
}
],
"resultsInterpreter": [
{
"reference": "Practitioner/14903378",
"display": "kumar"
}
],
"presentedForm": [
{
"contentType": "application/pdf;charset=utf-8",
"data": "JVBERi0xLjQKJcOJx7zajK3/CiUgZW9mCiVQUk92aWRlcgoyCjIgMCBvYmoKPDwvVHlwZS9DYXRhbG9nL1BhZ2VzIDMgMCBSCi9PcGVuQWN0aW9uIFsvWFlaIG51bGwgbnVsbCAzMF0KPj4KZW5kb2JqCgozIDAgYXRzCjw8L1R5cGUvUGFnZXMgL0tpZHMgWzQgMCBSXQo+PgplbmRvYmpjbg=="
}
]
}
Expected Result:
201
Actual Result:422
opc-request-id: /97F20A402E5E9ADFA81BC60BE8E3FB4F/CF43201E51B4BD446AA8F09D6B0BB73C
X-Request-Id: /97F20A402E5E9ADFA81BC60BE8E3FB4F+kDfW_r71N
