diff --git a/api/device_login.sh b/api/device_login.sh new file mode 100644 index 0000000..baca9ea --- /dev/null +++ b/api/device_login.sh @@ -0,0 +1,13 @@ +curl --location 'https://datacollection.micropcr.com/api/deviceService/device/login' \ +--header 'Content-Type: application/json' \ +--data '{ + "lab": "", + "latitude": "", + "location": "", + "longitude": "", + "mode": "", + "password": "8525333faa47", + "serialNumber": "HPP1-0111-0001", + "username": "HPP1-0111-0001", + "version": "2.1.76" +}' diff --git a/api/device_provision.sh b/api/device_provision.sh new file mode 100644 index 0000000..c5bf1a8 --- /dev/null +++ b/api/device_provision.sh @@ -0,0 +1,10 @@ +curl --location 'https://datacollection.micropcr.com/api/deviceManagement/device/provision' \ +--header 'Content-Type: application/json' \ +--data-raw '{ + "serialNumber": "HPP1-0111-0001", + "deviceTypeName": "HPOS", + "uid": "HPP1-0111-0001", + "email": "HPOS_provisioner@bigtec.co.in", + "password": "f2ab0e7f9d69" +}' + diff --git a/api/result_upload.sh b/api/result_upload.sh new file mode 100644 index 0000000..981d058 --- /dev/null +++ b/api/result_upload.sh @@ -0,0 +1,181 @@ +curl --location --request PUT 'https://datacollection.micropcr.com/api/deviceService/results/HPOS' \ +--header 'Content-Type: application/json' \ +--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjksImRldmljZUlkIjoxMCwidXNlcm5hbWUiOiJIQ1YtMDAwLTMwMDEiLCJpYXQiOjE3MDQ3MTg4MDgsImV4cCI6MTcwNDgwNTIwOH0.APWW4heEfqInezLg4U5aCeBh44qN0LYg0EeqV76_W5Y' \ +--data '{ + "results": [ + { + "analysisId": "1", + "analysisType": "HPOS", + "analysisDate": "2023-12-14 14:35:00", + "analysisStatus": "NORMAL", + "deviceName": "HPOS", + "thresholds": "23", + "coefficients": [ + 22, + 22 + ], + "curveFitting": "linear", + "interpretation": "LOW", + "analysisTypeMethod": "MANUAL", + "recommendation": "NA", + "testId": "211", + "testTime": "2023-12-14 14:35:00", + "testType": "HPOS", + "testResult": "NORMAL", + "rawData": { + "_id": "1704263023SMIBLR", + "abhaId": "12434949797979", + "abs1": 0.3896290704962385, + "abs2": 0.2257971130502937, + "abs3": 0.0814682360961598, + "abs4": 0.3371514919464704, + "appVersion": "2.1.56", + "batteryCapacity": "147483648", + "batteryLevel": "100.0", + "batteryMaxCapacity": "100.0", + "batteryTemperature": "42.4", + "batteryVoltage": "0.0", + "birthYear": "2000", + "bloodGroup": "A+", + "calculatedRatio": 0.36855313233502013, + "classificationResult": "Inconclusive. Repeat with test with lower volume of blood", + "coefficients": "1.0, 0.0", + "deviceId": "HCV-000-3001", + "deviceRatio": 0.36855313233502013, + "deviceSerialNumber": "HCV-000-3001", + "deviceType": "HEMOCUBE", + "errorMessages": "", + "gender": "Male", + "incubationTime": "2024-01-03 11:54:45", + "kitSerial": "SMI/SC/091/93/939", + "led1Average": 0.9745842121068078, + "led1Buffer": 23777.0, + "led1Sample": 2521.0, + "led2Average": 1.394444481640434, + "led2Buffer": 24130.0, + "led2Sample": 973.0, + "led3Average": 0.35918606409622167, + "led3Buffer": 23442.0, + "led3Sample": 10252.0, + "led4Average": 0.3371514919464704, + "led4Buffer": 23945.0, + "led4Sample": 11017.0, + "localFlag": true, + "molbioFlag": false, + "name": "Mohamed Kaif", + "prdClassification": "Sickle Cell Trait", + "predictedDenovixRatio": 0.20909178052962119, + "reportUploadTime": "2024-01-03 11:54:45", + "resultData": "SNS HCV-000-3001", + "state": "Karnataka", + "testStatus": true, + "testTime": "2024-01-03 11:54:45", + "testType": "HEMOCUBE", + "userImageURL": "https://hpos-prod.web.app/logo.png" + }, + "testStatus": "DONE", + "sampleId": "1632637372", + "sampleType": "", + "collectionTime": "2023-12-14 14:35:00", + "collectionLocation": [], + "collector": "", + "volume": 12, + "expiryTime": "2023-12-14 14:35:00", + "patientId": 21, + "age": 35, + "gender": "", + "pregnancy": false, + "underMedication": false, + "sickleCellHistory": false, + "bloodGroup": "", + "operator": "" + }, + { + "analysisId": "1", + "analysisType": "HPOS", + "analysisDate": "2023-12-14 14:35:00", + "analysisStatus": "NORMAL", + "deviceName": "HPOS", + "thresholds": "23", + "coefficients": [ + 22, + 22 + ], + "curveFitting": "polynomial", + "interpretation": "LOW", + "analysisTypeMethod": "MANUAL", + "recommendation": "NA", + "testId": "211", + "testTime": "2023-12-14 14:35:00", + "testType": "HPOS", + "testResult": "NORMAL", + "rawData": { + "_id": "1704263023SMIBLR", + "abhaId": "12434949797979v", + "abs1": 0.3896290704962385, + "abs2": 0.2257971130502937, + "abs3": 0.0814682360961598, + "abs4": 0.3371514919464704, + "appVersion": "2.1.56", + "batteryCapacity": "-2147483648", + "batteryLevel": "100.0", + "batteryMaxCapacity": "100.0", + "batteryTemperature": "42.4", + "batteryVoltage": "0.0", + "birthYear": "2000", + "bloodGroup": "", + "calculatedRatio": 0.36855313233502013, + "classificationResult": "Inconclusive. Repeat with test with lower volume of blood", + "coefficients": "1.0, 0.0", + "deviceId": "HCV-000-3001", + "deviceRatio": 0.36855313233502013, + "deviceSerialNumber": "HCV-000-3001", + "deviceType": "HEMOCUBE", + "errorMessages": "", + "gender": "Male", + "incubationTime": "2024-01-03 11:54:45", + "kitSerial": "SMI/SC/091/93/939", + "led1Average": 0.9745842121068078, + "led1Buffer": 23777.0, + "led1Sample": 2521.0, + "led2Average": 1.394444481640434, + "led2Buffer": 24130.0, + "led2Sample": 973.0, + "led3Average": 0.35918606409622167, + "led3Buffer": 23442.0, + "led3Sample": 10252.0, + "led4Average": 0.3371514919464704, + "led4Buffer": 23945.0, + "led4Sample": 11017.0, + "localFlag": true, + "molbioFlag": false, + "name": "Mohamed Kaif", + "prdClassification": "Sickle Cell Trait ", + "predictedDenovixRatio": 0.20909178052962119, + "reportUploadTime": "2024-01-03 11:54:45", + "resultData": "SNS HCV-000-3001", + "state": "Karnataka", + "testStatus": true, + "testTime": "2024-01-03 11:54:45", + "testType": "HEMOCUBE", + "userImageURL": "https://hpos-prod.web.app/logo.png" + }, + "testStatus": "", + "sampleId": "126363773", + "sampleType": "", + "collectionTime": "2023-12-14 14:35:00", + "collectionLocation": [], + "collector": "", + "volume": 12, + "expiryTime": "2023-12-14 14:35:00", + "patientId": 11, + "age": 35, + "gender": "", + "pregnancy": false, + "underMedication": false, + "sickleCellHistory": false, + "bloodGroup": "AB+", + "operator": "" + } + ] +}' \ No newline at end of file