Skip to main content
POST
Add an outside care provider

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Idempotency-Key
string
required

A unique value you choose for this request, such as a UUID. Sending the same key again returns the first answer instead of doing the work twice, so a timed-out request is safe to retry. Reusing a key for a different request is refused with 409 idempotency_key_conflict, and retrying while the first request is still running with 409 idempotency_key_reused. See Retries and idempotency.

Minimum string length: 1

Path Parameters

clinic_id
string<uuid>
required

Body

application/json

An outside care provider to add to a patient. Saved straight away. If is_primary is true, the patient's other contacts of the same type stop being primary. npi is ten digits (its shape is checked, not its check digit). The clinic's notes on a contact cannot be sent. The Idempotency-Key header is REQUIRED.

patient_id
string<uuid>
required
name
string
required
Required string length: 1 - 200
type
enum<string>
required
Available options:
pcp,
referring,
specialist,
other
practice_name
string
Maximum string length: 200
specialty
string
Maximum string length: 100
npi
string
Pattern: ^[0-9]{10}$
phone
string
Maximum string length: 40
fax
string
Maximum string length: 40
address
string
Maximum string length: 500
is_primary
boolean
origin_assistant_name
string
Maximum string length: 200

Response

Created.

data
object
required

An outside clinician a patient names (their own doctor, a referring doctor, a specialist) — the exposed-field allow-list, field by field. source is clinic for a contact the clinic recorded (including one taken from an intake form) and api for one an app added. editable is true only when this key's app added the contact, so it may change or remove it; every other contact is read only to apps. The clinic's own notes on a contact are never exposed.

idempotent_replay
boolean

Present and true when this Idempotency-Key was already used and the original contact is returned.