Releasesv0.1.0
Api referenceEndpointsFhir

The user as a FHIR R4 Patient

GET
/v1/users/{id}/fhir/Patient/{patient_id}

The user as a Patient: id is the user id, active is true, and identifier is the tenant's external_ref when it set one. No name or birth date (not stored). A patient_id other than the user's id, or a user of another tenant, is a 404.

Authorization

tenantKey
headerAuthorizationBearer <token>

Tenant API key, ohs_sk_ + 43 base62 characters.

Path Parameters

id*string
Formatuuid
patient_id*string

The Patient id, which is the user id; any other value is a 404.

Header Parameters

Authorization*string

The tenant API key, as a bearer secret.

Response Body

The Patient.

application/fhir+json
  1. response

The user as a FHIR R4 Patient (docs/fhir.md).

resourceType*string
id*string
Formatuuid
identifier?array<>

The tenant's external_ref, when it set one.

active*boolean
curl -X GET 'http://localhost:8080/v1/users/497f6eca-6276-4993-bfeb-53cbbbba6f08/fhir/Patient/string' \  -H 'Authorization: Bearer ohs_sk_...'
{  "resourceType": "Patient",  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "identifier": [    {      "system": "http://example.com",      "value": "string"    }  ],  "active": true}
Edit on GitHub