Skip to content

Latest commit

 

History

History
90 lines (73 loc) · 3.81 KB

UC16.md

File metadata and controls

90 lines (73 loc) · 3.81 KB

API Documentation for UC16 Personal Representetives

Summary Table

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

API Documentation Details

Authentication

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." }
    • Status: 401 Unauthorized
      • Content: { "error": "User not authenticated." }