Skip to main content
POST
Create a patient

Authorizations

Authorization
string
header
required

Your API key, created in RxNote under Settings → API: Authorization: Bearer rxn_live_….

Body

application/json
name
string
required
Required string length: 1 - 255
Example:

"Test Patient"

age
integer
Required range: 0 <= x <= 130
Example:

42

sex
enum<string>
Available options:
male,
female,
other
date_of_birth
string

YYYY-MM-DD

Pattern: ^\d{4}-\d{2}-\d{2}$
Example:

"1984-03-02"

phone
string
Maximum string length: 30
Example:

"+919800000000"

email
string<email>
Maximum string length: 255
medical_record_number
string

Your MRN / UHID, searchable later.

Maximum string length: 100
Example:

"MRN-1001"

external_id
string

Your system's id for this patient. Creating a patient with an external_id that already exists returns that patient instead of a duplicate.

Required string length: 1 - 255
Example:

"P-1001"

clinician_email
string<email>

Required with an organization key: the RxNote member acting. With a personal key, omit it or send the owner's own email.

Maximum string length: 255
Example:

"doctor@clinic.example"

Response

The patient that already had this external_id.

id
integer
required
Example:

4821

name
string
required
age
integer | null
required
sex
string | null
required
date_of_birth
string | null
required
phone
string | null
required
email
string | null
required
medical_record_number
string | null
required
external_id
string | null
required
created_at
string<date-time>
required