Skip to main content
POST
Create a patient
Creates a patient under your account and returns the created record.

Required fields

Omitting any of them returns 400 listing exactly which are missing. Everything else in the schema is optional. These are also the fields the eligibility check needs, so a patient created this way can order immediately. patientGender is sex assigned at birth — Female or Male, and nothing else. Laboratory reference ranges depend on it. patientDateOfBirth must be a real date in YYYY-MM-DD format. Invalid dates and other formats return 400.
Duplicates are detected on first name + last name + date of birth + gender within your clinic. A duplicate is rejected with 400 carrying the existing patientId — reconcile with that id rather than retrying. The key is patientId, the same name the create response uses.

Authorizations

Authorization
string
header
required

OAuth2 client credentials. Generate a client ID and client secret in the Portal, exchange them for an access token, then send Authorization: Bearer <access_token>. Request the result and report scopes to read results.

Body

application/json
patientFirstName
string
required
Example:

"Jane"

patientLastName
string
required
Example:

"Doe"

patientGender
enum<string>
required

Sex assigned at birth — Female or Male. Laboratory reference ranges depend on it, so this is not a gender-identity field and no other value is accepted.

Available options:
Female,
Male
Example:

"Female"

patientDateOfBirth
string<date>
required

Date of birth, YYYY-MM-DD.

Example:

"1990-05-21"

patientEmail
string<email>
required
Example:

"jane.doe@example.com"

patientPhoneNumber
string
required
Example:

"4085550100"

address
object
required
patientMiddleName
string
guardianEmail
string<email>
patientHeight
string

Height, in inches.

Example:

"65"

patientWeight
string
Example:

"150"

Response

Patient created.

patientId
integer
Example:

750123

patientFirstName
string
Example:

"Jane"

patientMiddleName
string | null
patientLastName
string
Example:

"Doe"

patientGender
enum<string>

Sex assigned at birth.

Available options:
Female,
Male
patientDateOfBirth
string<date>
Example:

"1990-05-21"

patientEmail
string
Example:

"jane.doe@example.com"

patientPhoneNumber
string
Example:

"4085550100"

guardianEmail
string | null
patientHeight
string
Example:

"65"

patientWeight
string
Example:

"150"

address
object