I am developing a middleware system that will connect different EMR/EHR systems. The systems on “either end” do not necessarily implement FHIR interfaces, or even RESTful APIs. We are using FHIR strictly as an internal data format. One system “publishes” FHIR-compliant JSON, and another system “consumes” it.
Clearly, a Bundle is the right structure to represent a set of data. For example, consider the following set of resources that represent a patient record:
- Coverage for primary insurance
- RelatedPerson to represent insured party
- RelatedPerson to represent emergency contact
- Organization to represent insurance company
Is a Message or Transaction is the best type of bundle for this purpose?