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

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.

Miminum set to create a new patient in RED
<Bundle xmlns="">
    <id value="10000"/>
        <versionId value="1"/>
        <lastUpdated value="2022-06-17T12:52:00+00:00"/>
        <profile value="|1.2.0"/>
    <type value="history"/>
        <fullUrl value="http://ife.local/fhir/Patient/A123123123"/>
                <id value="A123123123"/>
                    <versionId value="1"/>
                    <lastUpdated value="2022-06-17T13:23:00+00:00"/>
                    <profile value="|1.2.0"/>
                            <system value=""/>
                            <code value="GKV"/>
                    <system value=""/>
                    <value value="A123123123"/>
                    <use value="official"/>
                    <text value="Vorname Nachname"/>
                    <family value="Nachname" />
                    <given value="Vorname"/>
                    <system value="phone"/>
                    <value value="017670834813"/>
                    <system value="email"/>
                    <value value=""/>
                <gender value="male"/>
                <birthDate value="1990-08-18"/>
                    <type value="both"/>
                    <line value="Straße 1">
                        <extension url="">
                            <valueString value="Straße"/>
                        <extension url="">
                            <valueString value="1"/>
                    <city value="Kiel"/>
                    <postalCode value="99997"/>
                    <country value="D"/>


  • No labels