Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Sep 2016 HL7 Connectathon: Patch Track

Jenni Syed
September 29, 2016
20

Sep 2016 HL7 Connectathon: Patch Track

Track Conclusion slides from the Sep 2016 WGM Connectathon

Jenni Syed

September 29, 2016
Tweet

Transcript

  1. Update PUT https://.../MedicationStatement/123123123 Content-Type: application/fhir+json Body: { "resourceType": “MedicationStatement”, “id”:

    “123123123” “meta”: {…} "patient": { "reference": "Patient/3404017" }, "status": “completed", … }
  2. Patch • RFCs: • HTTP PATCH method: https://tools.ietf.org/html/ rfc5789 •

    JSON Patch: https://tools.ietf.org/html/rfc6902 • XML Patch: https://tools.ietf.org/html/rfc5261
  3. Issues • Narrative: If you update a field in the

    narrative, do you need to replace the narrative as well? Should servers attempt to do this for them OR fail if they detect this? • XML Client: Couldn’t find an open source library (java) to generate the patch between two XML Documents • Conformance: How should a server specify it supports XML vs JSON patch? • Conformance: How should a server specify it supports conditional Patch? • Similar to PUT: Prefer header to indicate preference on if the resource should be returned in the response • XML Namespaces are hard