Skip to main content
POST
/
v1
/
fhir
/
$submit
Submit a FHIR bundle for ingestion
curl --request POST \
  --url 'https://cds.marmar.life/v1/fhir/$submit' \
  --header 'Content-Type: application/fhir+json' \
  --header 'X-API-Key: <api-key>' \
  --header 'X-Tenant-Code: <api-key>' \
  --data '
{
  "resourceType": "Bundle",
  "type": "collection",
  "entry": [
    {
      "resource": {
        "resourceType": "Patient",
        "id": "<string>",
        "identifier": [
          {
            "value": "<string>",
            "system": "<string>"
          }
        ],
        "name": [
          {
            "family": "<string>",
            "given": [
              "<string>"
            ],
            "text": "<string>"
          }
        ],
        "gender": "<string>",
        "birthDate": "<string>"
      }
    }
  ]
}
'
{
  "outcome": {
    "resourceType": "OperationOutcome",
    "issue": [
      {
        "severity": "fatal",
        "code": "<string>",
        "diagnostics": "<string>",
        "expression": [
          "<string>"
        ]
      }
    ]
  },
  "summary": {
    "patients": 1,
    "medicationStatements": 1,
    "medicationRequests": 1,
    "conditions": 1,
    "allergies": 1,
    "observations": 1,
    "encounters": 1,
    "errors": 1,
    "warnings": 1,
    "ignored": 1
  }
}

Authorizations

X-Tenant-Code
string
header
required

Tenant slug returned during registration.

X-API-Key
string
header
required

Tenant API key. The server also accepts the lowercase x-api-key header for convenience.

Body

resourceType
enum<string>
required
Available options:
Bundle
type
enum<string>
required
Available options:
collection,
batch,
transaction
entry
object[]

Response

Bundle processed successfully

outcome
object
required
summary
object
required