Assessment
API URL | {{url}}/spice-service/assessment/create |
Method | POST |
Description | Patient Assessment Creation |
Input:
Field Name | Type | Mandatory | Example |
Authorization(Header) | String | Yes | Bearer eyJlbmMiOiJBMTI4R0NNIiwiYWxnIjoiUlNBLU9BRVAtMjU2In0.MCm0mJDfpfjlr10Uok79-kTF7fv9Tn7cI5m2WsRDGUd9VS7iRmfbszjuc1-w5D-PYt9CdVxRMGBQlzYauhnI |
Input:
Field Name | Type | Mandatory | Example |
Symptoms | String | No | Shortness of breath with usual activities |
Compliances | String | No | Did not take any medication |
Height | Double-precision | Yes | 182 |
Weight | Double-precision | Yes | 65 |
Temperature | Double-precision | No | 96 |
Systolic | Integer | Yes | 103 |
Diastolic | Integer | Yes | 102 |
Pulse | Integer | No | 34 |
glucoseUnit | String | Yes | mmol/L |
glucose | Integer | No | 20 |
glucoseDateTime | Timestamp | Yes | 2023-05-26T17:01:13+05:30 |
hba1cUnit | String | No | mmol/L |
glucoseType | String | Yes | rbs |
glucoseValue | Double-precision | No | 20 |
hba1c | Double-precision | No | 22 |
lastMealTime | Timestamp | Yes | 2023-05-26T09:30:00+05:30 |
Mental Health Questions(PHQ9) | Integer | Yes | 3 |
Sample Input:
{ "lastName": "A", "gender": "Female", "isRegularSmoker": true, "cvdRiskScore": 3, "bpLog": { "avgSystolic": 88, "weight": 77, "avgDiastolic": 88, "avgBloodPressure": "88/88", "height": 188, "bpLogDetails": [ { "diastolic": 88, "pulse": 88, "systolic": 88 }, { "diastolic": 88, "pulse": 88, "systolic": 88 }, { "diastolic": 88, "pulse": 88, "systolic": 88 } ], "bmi": 21.79 }, "phq4": { "phq4Score": 6, "phq4MentalHealth": [ { "answerId": 67, "score": 3, "questionId": 6, "displayOrder": 4 }, { "answerId": 55, "score": 0, "questionId": 13, "displayOrder": 1 }, { "answerId": -1, "score": 2, "questionId": 9, "displayOrder": 3 }, { "answerId": 49, "score": 1, "questionId": 17, "displayOrder": 2 } ], "phq4RiskLevel": "Moderate" }, "compliances": [ { "isChildExist": true, "complianceId": 1, "name": "Did not take any medication" }, { "complianceId": 2, "name": "Could not afford/pay for medication" } ], "symptoms": [ { "name": "Shortness of breath with usual activities", "symptomId": 2, "type": "Hypertension" }, { "name": "Unplanned weight loss", "symptomId": 1, "type": "Diabetes" } ], "firstName": "AKSHATA", "cvdRiskLevel": "Low risk", "nationalId": "AKSH123", "unitMeasurement": "metric", "tenantId": 4, "cvdRiskScoreDisplay": "3% - Low risk", "siteId": 1, "provisionalDiagnosis": [ "DM" ], "patientTrackId": 25, "glucoseLog": { "glucoseUnit": "mmol/L", "glucose": 22, "glucoseDateTime": "2023-05-26T17:07:24+05:30", "hba1cUnit": "mmol/L", "glucoseType": "rbs", "glucoseValue": 22, "hba1c": 22, "lastMealTime": "2023-05-26T09:30:00+05:30" }, "age": 26 }
Output:
Field Name | Type | Comments |
| Integer | Patient Table ID |
| String | National ID |
| String | Patient FirstName |
| String | Patient LastName |
| String | Patient Gender |
| BigInt | Patient Age |
| Integer | Program ID |
| Integer | Patient EMR Number |
| String | Patient Status |
| String | SiteName |
| String | Type of Glucose |
| Number | Glucose Value |
| String | Glucose unit |
| Integer | Average Systolic |
| Integer | Average Diastolic |
| Double-precision | Patient BMI |
| String | CVD Risk Level |
| Integer | CVD Risk Score |
| String | Phq4 Risk Level |
| Integer | Phq4 Risk Score |
| Integer | Patient Symptom Table ID |
| Integer | Symptoms ID |
| String | Symptoms Name |
| String | Symptoms Type |
| String | Is patient suffering from any other symptoms |
| Integer | Patient Compliance Table ID |
| String | MedicalCompliance Name |
| Integer | MedicalCompliance ID |
| String | Is patient having any other medical compliance |
| String | Risk level |
| String | Risk Message |
Sample Output:
Last updated