FHIR Chat · JSON · implementers

Stream: implementers

Topic: JSON


view this post on Zulip Jasneet Kaur (Mar 26 2020 at 00:17):

Hi All
I am trying to post a bundle with patch request in json as follows:
{
"resourceType": "Bundle",
"type": "transaction",
"entry": [
{
"resource":
{
"resourceType": "Patient"
},
"request": {
"method": "PATCH",
"url": "Patient/302",
"op": "test",
"path": "/birthDate",
"value": "1974-12-25"
}
}
]
}
I get error : Unable to determine PATCH body from request.
What am I missing? Thanks in advance

view this post on Zulip Grahame Grieve (Mar 26 2020 at 00:41):

which server is this?

view this post on Zulip Jasneet Kaur (Mar 26 2020 at 01:26):

@Grahame Grieve
Hapi fhir

view this post on Zulip James Agnew (Mar 26 2020 at 01:38):

HAPI FHIR only supports JSON Patch and XML Patch currently. FHIR Patch is on the roadmap but isn't yet there.

view this post on Zulip Jasneet Kaur (Mar 26 2020 at 01:42):

Thanks @James Agnew
Am I correct to assume that JSON PATCH -> PATCH request on resource level(for example -patient) {"op": "replace", "path": "/birthDate", "value": "1978-12-28"} and FHIR PATCH -> above example?
If not, then could you please explain what is the difference between JSON Patch and FHIR Patch .
Thank you so much.

view this post on Zulip Steven Wang (Jun 08 2020 at 23:47):

Hi All, does anyone used for work with transform internal JSON to FHIR JSON, such as from internal Patient JSON to FHIR patient JSON? What's the best way to do it?

view this post on Zulip Michele Mottini (Jun 09 2020 at 03:01):

'Internal JSON' is ...? Some non-standard internal format? If that's the case you'll need some custom conversion code - done with the help of a FHIR library probably (depending on the language you use)

view this post on Zulip Steven Wang (Jun 09 2020 at 03:23):

Yes, our scenario we have a backend legacy System, and our FHIR Server will call the backend system, and get a internal JSON, and inside FHIR we do transform, to transform to FHIR JSON. we are using HAPI FHIR - JAVA.


Last updated: Apr 12 2022 at 19:14 UTC