Patient Practitioner
Patient Practitioner API
The following endpoints should be made available, in order to enable the possibility to manage the relationship between a patient and it's main practitioner.
GET /patients/{id}/practitioner
Response:
Code 200
{
"id": "8a7c3e1f-449b-4aa7-b2e3-6d987d0b52f1",
"name": "Dr. John Smith",
"specialty": "Cardiology",
"email": "john.smith@example.com",
"phone": "+1 123-456-7890",
"working_hours": "Mon-Fri: 9 AM - 5 PM",
"location": "Building A, 3rd Floor, Room 301",
"is_available": true
}
POST /patients/{id}/practitioner/change_request
Response:
Code 200
{
"id": "8a7c3e1f-449b-4aa7-b2e3-6d987d0b52f1",
"reason_id": "564b885a-c9df-4b55-af9c-68949338e7ed"
}
GET/practitioner/change_request/reasons
Response:
Code 200
{
[
{
"id": "564b885a-c9df-4b55-af9c-68949338e7ed",
"status": "reason 1"
},
{
"id": "cd0afdbe-9983-4135-8d38-9c4cf4030eab",
"status": "reason 2"
},
]
}
GET /patients/{id}/practitioner/change_request
Response:
Code 200
{
"id": "8a7c3e1f-449b-4aa7-b2e3-6d987d0b52f1",
"status": "in_progress"
}