Getting error while saving Organization resource

14 views
Skip to first unread message

Abhijit Mazumder

unread,
Jun 17, 2024, 8:39:27 AM6/17/24
to GCP Healthcare Discuss
Hi,
  I am using https://hl7.org/fhir/R4/organization.html and here is the part of the json that is failing while executing the attached bundle. The only reason I see why this might fail is that this particular is not referenced inside the bundle. Two questions:
  1. Is that the right interpretation?
  2. How do we avoid these errors?
The error
{\n' +
    '  "issue": [\n' +
    '    {\n' +
    '      "code": "value",\n' +
    '      "details": {\n' +
    '        "text": "invalid_references"\n' +
    '      },\n' +
    '      "diagnostics": "resolving references: invalid reference to a Organization resource, want Endpoint",\n' +
    '      "severity": "error"\n' +
    '    }\n' +
    '  ],\n' +
    '  "resourceType": "OperationOutcome"\n' +
    '}

{
"resource": {
"identifier": [
{
"system": "lifedot",
"value": "lifedot-speciality-clinics"
}
],
"address": [
{
"use": "work",
"text": "WHITEFIELD KADUGODI | SIDDAPURA | MALLESWARAM | DOMMASANDRA",
"type": "both"
}
],
"name": "SPECIALITY CLINICS",
"resourceType": "Organization"
},
"fullUrl": "urn:uuid:886d056c-6669-4116-a83b-3206f1d64333",
"request": {
"method": "POST",
"url": "Organization",
"ifNoneExist": "identifier=lifedot|lifedot-speciality-clinics"
}
}
soumitra-error.json

Paul Church

unread,
Jun 17, 2024, 8:44:58 AM6/17/24
to Abhijit Mazumder, GCP Healthcare Discuss
The first Organization in the bundle has a reference in the "endpoint" field to urn:uuid:886d056c-6669-4116-a83b-3206f1d64333 which is another Organization in the bundle. The endpoint field must refer to an Endpoint resource, not an Organization resource.

--
You received this message because you are subscribed to the Google Groups "GCP Healthcare Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gcp-healthcare-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gcp-healthcare-discuss/4bdf6383-e8ed-40bc-9791-fd70f74694d5n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages