Advertisement
Itssuman1808

hospital-care-api-documentation

Jan 19th, 2022
729
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. HOSPITAL CARE API DOCUMENTATION
  2.  
  3. 1. initiate intervew id                 #This endpoint is for generating interview id by taking users age and sex
  4. api = https://api.hospitalcare.co.in/initial
  5. sample payload = {
  6.     "age":"25",
  7.     "age_unit":"year",
  8.     "sex":"male"
  9.     }
  10.  
  11. 2. diagnosis_start                     #This will start the diagnosis by taking a message from the user about their initial symptoms
  12. api = https://api.hospitalcare.co.in/diagnosis_start
  13. sample payload =  {
  14.     "message":"i am feeling vomit",
  15.     "extras":""
  16.     }
  17.  
  18. 3. interview                         #After gathering enough evidence this endpoint will be hit, which will start 1-1 interview.
  19. api = https://api.hospitalcare.co.in/interview
  20. sample payload=
  21.  {
  22.     "id": "s_112",
  23.     "choice_id": "absent",
  24.     "source":""
  25.  }                                  #this will return conditions probablity
  26.  
  27. 4. triage                          #for consultation level
  28. api = https://api.hospitalcare.co.in/triage
  29. sample payload = no body
  30.  
  31. 5. specialist_recommender         #for specialist doctor recommendation
  32. api = https://api.hospitalcare.co.in/specialist_recommender
  33.  
  34.  
  35.  
  36. Important points:
  37.  
  38. * The "/diagnosis_start" endpoint will return a list of 4 suggested symptoms, from which the user has to choose 1 symptom for now.
  39.  In the future, we will develop it to accept multiple suggested symptoms at a time.
  40.  
  41. * The "/interview" endpoint's payload has a "source" attribute. Selected "suggested symptom" from the previous endpoint has to be defined its source as "suggest". After hitting the API with the payload it will return the diagnosis question in its response.
  42. After the first hit, it will also return two attributes {"should_stop":bool} and {conditions: }. The interview will keep running until the "should_stop" is not returning "true". when the "should_stop" attribute will return true Interview will end. The condition probabilities will be stored in the variable for the final report generation.
  43.  
  44. * The "/triage" endpoint can categorize provided patient cases based on the seriousness of reported observations and the severity of likely conditions. This endpoint will be hit without any payload by the "POST" method.
  45.  
  46. * The "/specialist_recommender" endpoint extends the /triage recommendation by providing the most appropriate specialist by taking into account not only the severity of the most likely conditions but also the presence of alarming symptoms. This endpoint will be hit without any payload by the "POST" method.
  47.  
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement