Patient Management Endpoints
Get patient prescriptions
Get prescriptions for a specific patient
GET
cURL
Pagination
Query Parameters
limit(optional, integer): Maximum number of prescriptions to return per page (default: 20, max: 50).lastKey(optional, string): Opaque cursor for fetching the next page. Use thepagination.lastKeyvalue from the previous response.
Error Status
When a prescription has encountered an error during processing, thestatus field will be "Error" and an error object will be included with a description:
error field will be null.
Response
If pagination is used, the response will include apagination object:
count: Number of prescriptions returned in this page.hasNext: Whether more prescriptions are available on subsequent pages.limit: Maximum number of prescriptions per page (as requested).offset: Starting position of the current page (zero-based).lastKey: The string to use as thelastKeyquery parameter for the next request. Ifnull, there are no more results.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Organization secret for authentication - provided by Parchment
Path Parameters
Organization ID
User ID
Patient ID
Response
Successfully retrieved prescriptions
Indicates if the request was successful
Example:
true
HTTP status code
Example:
200
Human-readable success message
Example:
"Prescriptions retrieved successfully"
Patient prescription data
ISO 8601 timestamp of the response
Example:
"2024-01-15T10:30:00.000Z"
Unique identifier for request tracing
Example:
"req_1705312200000_abc123"
Pagination information for list operations
cURL

