Server-side APIEndpointsPatients
Read a patient
One patient record by Medos patient id, with the MRN your clinic knows them by.
The record behind a patientId you got from a lookup, the roster, an
appointment, or an earlier upsert.
API-key only, gated on devapi_patients_get. Responses carry
Cache-Control: no-store.
Parameters
Path parameters
patientIdintegerrequiredExample: 4821The Medos patient id, from GET /v1/patients.
Headers
x-api-keystringrequiredExample: mk_…Your Developer API key. Server-side only.
X-Acting-User-IdstringExample: MDU_A1B2C3D4E5F6The staff member the call is attributed to, as an MDU_… id. Omit it to attribute the call to the workspace admin.
This route takes no query parameters; any you send are a 400 UNKNOWN_FIELD.
Responses
The patient object
The same object is returned by the roster
and the upsert. Every field is always
present; a value Medos does not hold is null, never omitted.
| Field | Type | Notes |
|---|---|---|
id | integer | The Medos patient id. |
mrn | string | null | The MRN this clinic assigned. A patient registered at two clinics has a different MRN at each, and each key sees its own. |
firstName, middleName, lastName | string | null | |
gender | string | null | |
dob | string | null | YYYY-MM-DD. |
age | integer | null | |
bloodGroup | string | null | |
countryCode, phoneNumber | string | null | The split pair, as Medos stores it. |
phoneNumberE164 | string | null | The same number joined, e.g. +919811100001. null unless the pair makes a valid E.164 number. |
email | string | null | |
address | object | line1, line2, city, state, zipcode, country. All nullable. |
customFields | object | The clinic's own patient-form values, keyed by field id. Keys vary by clinic; values are strings, numbers, booleans or null. |
archived | boolean | |
createdAt, updatedAt | string | null | ISO-8601 with offset. Use updatedAt as your next updatedSince. |