HealthKareAI
Clinic-App
prescriptions
Getprescriptionslist

Get Prescription API Endpoint

POST /prescriptions/get

This endpoint retrieves prescription records for a given family.

Authorization

This endpoint requires user authentication. Ensure the request includes the necessary authentication headers to verify the user.

Request Body

FieldTypeDescription
familyIDStringThe unique identifier for the family

Responses

200 OK

Successfully retrieved the prescription data.

Response Body:

{
  "data": "Prescription data"
}

401 Unauthorized

The request lacks valid authentication credentials.

Response Body:

{
  "error": "Unauthorized"
}

405 Method Not Allowed

Required fields are missing in the request body.

Response Body:

{
  "error": "Fields missing!"
}

500 Internal Server Error

An unexpected error occurred.

Response Body:

{
  "error": "Error message"
}