Skip to main content
POST
Submit a reported medicine

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

A reported medicine, submitted for a clinician to confirm. It does not enter the chart until then and it prescribes nothing. A medicine may be reported more than once. medication.code is optional: send {system: rxnorm, code} only for a real RxNorm code (it is checked against the platform's drug data and an unrecognised one is refused), or {system: local, code} for your own code. client_reference (your own id, up to 200 characters) makes a second submission of the same record with different content a client_reference_conflict.

patient_id
string<uuid>
required
medication
object
required
dosage
object
status
enum<string>
default:active
Available options:
active,
completed,
stopped,
on_hold,
not_taken
effective_start
string<date>
effective_end
string<date>

Not before effective_start.

reason
string
Required string length: 1 - 500
note
string
Required string length: 1 - 2000
client_reference
string
Maximum string length: 200
origin_assistant_name
string
Maximum string length: 200

Response

Accepted - waiting for a clinician. If the clinic has chosen to accept this kind of item from your key or connection without review, the body already shows review_status: confirmed and accepted_automatically: true; read review_status, not the status code.

data
object
required

What the clinic's review queue holds for something this key sent: one outside record waiting for, or already past, a clinician's decision.

idempotent_replay
boolean

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