RED interchange API allows to send FHIR bundles to RED in order to create new data using a POST request.

POST request to create new data

Example: this POST requests creates data in RED if a FHIR bundle is attached

See RED Interchange API - Postman Collection

  • 0220 - Patient and DocumentReference 2. This request creates one encounter and two document references for an existing patient with provenances for user group assigment
  • 0221 - Patient and DocumentReference Full: This request creates a patient, an encounter and document reference with provenance and practitioner/organization set

The request header should set the content-type to "Content-Type": "application/fhir+xml; charset=UTF-8"

The request body must include a valid FHIR bundle with the items to create. 

  • patients are identified by their patient ID ( If patients are created by interface RED will use the from the Patient bundle for patient identification, and patient references of incoming data must always refer to this ID. That allows external systems to create patients in RED using their identifiers and to use the same ID in both systems.
  • all bundle items will be referenced by their IDs, their data in RED can be updated by sending a bundle with the same ID.

Example: RED receives a PDF document and creates a new person record entry for person

A patient record for a document entry always requires an additional encounter, because only encounters may refer to persons. The PDF document is converted to a base64-String and handed over in

New document for patient 4723
<Bundle xmlns="">
    <id value="10000"/>
        <versionId value="1"/>
        <lastUpdated value="2021-08-11T12:52:00+00:00"/>
        <profile value="|1.2.0"/>
    <type value="history"/>
                <id value="self_diagnosis-DKDEEDU1-TphQKgN4rdZsD5pu3767kMNprPqwkLGy-1631794662713-1631794665397"/>
                            <system value=""/>
                            <code value="Bezeichnung"/>
                <status value="current"/>
                        <system value=""/>
                        <code value="Sonstige"/>
                <created value="2021-11-16T12:17:45Z"/>
                <description value="self_diagnosis"/>
                        <contentType value="application/pdf"/>
                        <url value="self_diagnosis-DKDEEDU1-TphQKgN4rdZsD5pu3767kMNprPqwkLGy-1631794662713-1631794665396.pdf"/>
                        <data value="JVBERi0xLjMKJf////8KOSAwIG9iago8PAovVHlwZSAvRXh0R1N0YXRlCi9jYSAxCi9DQSAxCj.....MTczNAolJUVPRgo="/>
                        <title value="self_diagnosis"/>
                        <creation value="2021-11-16T12:17:45Z"/>
                        <reference value="Encounter/DKDEEDU1-TphQKgN4rdZsD5pu3767kMNprPqwkLGy-1631794662713"/>
        <fullUrl value="/Encounter/DKDEEDU1-TphQKgN4rdZsD5pu3767kMNprPqwkLGy-1631794662713"/>
                <id value="DKDEEDU1-TphQKgN4rdZsD5pu3767kMNprPqwkLGy-1631794662713"/>
                    <lastUpdated value="2021-11-16"/>
                    <profile value="|1.2.0"/>
                <status value="arrived"/>
                <extension url="">
                    <extension url="typ">
                            <text value="DOKTORDE"/>
                    <system value=""/>
                    <code value="AMB"/>
                    <reference value="Patient/4723"/>
                        <reference value="PractitionerRole/MsEruEL8DtGI6JYfJpi86Mb0mMIrQkBw"/>
                    <reference value="Organization/kDp86kMB1KU7a25JYBJlYundTTlJsJOh"/>
                    <start value="2021-11-16T12:17:45Z"/>
                    <end value="2021-11-16T13:17:45Z"/>


  • No labels