Skip to main content
GET
/
v1
/
fhir
/
{resourceType}
Search FHIR resources
curl --request GET \
  --url https://cds.marmar.life/v1/fhir/{resourceType} \
  --header 'X-API-Key: <api-key>' \
  --header 'X-Tenant-Code: <api-key>'
{
  "resourceType": "Bundle",
  "type": "searchset",
  "total": 1,
  "entry": [
    {
      "resource": {
        "resourceType": "Patient",
        "id": "<string>",
        "identifier": [
          {
            "value": "<string>",
            "system": "<string>"
          }
        ],
        "name": [
          {
            "family": "<string>",
            "given": [
              "<string>"
            ],
            "text": "<string>"
          }
        ],
        "gender": "<string>",
        "birthDate": "<string>"
      }
    }
  ]
}

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.

Path Parameters

resourceType
enum<string>
required

FHIR resource type.

Available options:
Patient,
MedicationStatement,
MedicationRequest,
Condition,
AllergyIntolerance,
Observation,
Encounter

Query Parameters

patient
string

Filter results by patient identifier.

identifier
string

Filter patient resources by external identifier.

status
string

Filter resources by clinical status (where applicable).

category
string

Filter Observation resources by category code.

code
string

Filter Observation resources by observation code.

Response

Search bundle

resourceType
enum<string>
required
Available options:
Bundle
type
enum<string>
required
Available options:
searchset
total
integer
required
Required range: x >= 0
entry
object[]