Since my initial question on ordering json properties a few things have happened.
Let me recap the issue at hand:
- In the FHIR specification, properties are listed in a certain order, for example, see https://www.hl7.org/fhir/patient.html#resource
- When you serialize resources to XML, the resulting document elements are ordered as defined in the specification.
- On the other hand, json objects returned from the IRIS for Health FHIR Repository will for example normally have the "id" as the last property, given that new properties are appended.

.png)
.png)

.png)
.png)


