Function | Endpoint | Method | Request Payload | Success Response | Error Responses |
---|---|---|---|---|---|
Assign PR | /api/personal_representetives/assign/{assingeePatientMID} |
POST |
assigneePatientMID (String) |
200 OK - Success Message |
400 Bad Request - Missing or incorrect information |
View PR Lists | /api/personal_representetives/view |
GET |
200 OK - Patients list |
404 Not Found - PR list not found |
|
Release PR | /api/personal_representetives/release/{assigneePatientMID} |
POST |
assigneePatientMID (String) |
200 OK - Patients Date list |
404 Not Found - PR not found |
View PR Relationship (HCP) | /api/personal_representattives/view/{PatientMID} |
GET |
PatientMID (String) |
200 OK - Success Message |
400 Bad Request - Missing or incorrect information |
Assign PR Relationship (HCP) | /api/personal_representattives/assign/{assignorPatientMID}/{assigneePatientMID} |
POST |
assignorPatientMID (String), assigneePatientMID (String) |
200 OK - Success Message |
400 Bad Request - Missing or incorrect information |
Before making any requests, users (Patients, HCPs, Lab Techs, Personal Repㅎesentatives, or Administrators) need to authenticate themselves in iTrust2.
- Error Responses:
- Status: 404 Not Found
- Content:
{ "error": "No laboratory test results found for the specified patient." }
- Content:
- Status: 401 Unauthorized
- Content:
{ "error": "User not authenticated." }
- Content:
- Status: 404 Not Found