Skip to main content

Doctors

Retrieve a list of doctors in your organisation and view their prescription statistics over a given time period.

List Doctors

integer
default:"0"
Page number (0-indexed)
integer
default:"50"
Number of doctors per page
Required permission: doctor:read

Example Request

Response

Get Doctor Statistics

Retrieve prescription statistics for a specific doctor over a time period.
string
required
The doctor UID
integer
required
Start of time period (Unix timestamp in seconds)
integer
required
End of time period (Unix timestamp in seconds)
Required permission: doctor_statistics:read

Example Request

Response

Response Fields

Error Responses

Doctor SKU Blacklist

A doctor can be blocked from prescribing individual SKUs. A blacklisted SKU is excluded from that doctor’s prescribing options; every other doctor in the organisation is unaffected. All three endpoints resolve the doctor within the organisation that owns the API key. A doctor UID from another organisation is treated as not found.

List Blacklisted SKUs

Returns a paginated list of the SKUs this doctor may not prescribe. Required permission: doctor_blacklist:read
string
required
The doctor UID
integer
default:"0"
Page number (0-indexed)
integer
default:"50"
Number of SKUs per page. Capped at 200.
Case-insensitive substring filter. Matches the SKU display name, the product display name, or the PZN.

Example Request

Response

This endpoint returns its rows under blacklisted_skus, not under data like the other paginated endpoints. totalRegistries and totalPages behave as described in Pagination.

Response Fields

Error Responses

Blacklist a SKU

Blocks one SKU for this doctor. Required permission: doctor_blacklist:write
string
required
The doctor UID
string
required
UID of the SKU to blacklist. The SKU must belong to the same organisation.

Example Request

Response (201)

Error Responses

The 409 body names both UIDs:

Remove a SKU from the Blacklist

Allows this doctor to prescribe the SKU again. Required permission: doctor_blacklist:write
string
required
The doctor UID
string
required
UID of the SKU to remove from the blacklist

Example Request

Response

204 No Content with an empty body.

Error Responses