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: 4821

The Medos patient id, from GET /v1/patients.

Headers

x-api-keystringrequiredExample: mk_…

Your Developer API key. Server-side only.

X-Acting-User-IdstringExample: MDU_A1B2C3D4E5F6

The 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.

FieldTypeNotes
idintegerThe Medos patient id.
mrnstring | nullThe MRN this clinic assigned. A patient registered at two clinics has a different MRN at each, and each key sees its own.
firstName, middleName, lastNamestring | null
genderstring | null
dobstring | nullYYYY-MM-DD.
ageinteger | null
bloodGroupstring | null
countryCode, phoneNumberstring | nullThe split pair, as Medos stores it.
phoneNumberE164string | nullThe same number joined, e.g. +919811100001. null unless the pair makes a valid E.164 number.
emailstring | null
addressobjectline1, line2, city, state, zipcode, country. All nullable.
customFieldsobjectThe clinic's own patient-form values, keyed by field id. Keys vary by clinic; values are strings, numbers, booleans or null.
archivedboolean
createdAt, updatedAtstring | nullISO-8601 with offset. Use updatedAt as your next updatedSince.
Test request