POST /examination/register HTTP/1.1
Content-Type: application/json
Authorization: Basic base64(user:password)
{
"date": "2020-12-31", // yyyy-MM-dd
"time": "23:59:59", // HH:mm:ss
"externalInfo": {
"num": ""
},
"historyNumber": "",
"patient": {
"id": 0, // integer // patient id
"externalInfo": {
"id": ""
},
"personalNumber": "",
"firstname": "",
"lastname": "",
"name": "", // lastname firstname fathername
"dateOfBirth": "2000-12-31", // yyyy-MM-dd
"sex": "male", // (male | female)
"note": null, // string
"weight": null, // float
"pregnancyWeek": null, // integer
},
"urgently": false,
"canceled": false,
"analyzesCodes": [ // array of strings // analyze codes
""
],
"analyzesData": [ // analyze data
{
"researchCode": 0.0, // float
"researchKod": "",
"analyzeCodes": "", // analyze codes for researchKod
"assignedBy": { // doctor who assigned the test
"code": 0, // integer // doctor id
"firstname": "", // doctor firstname
"lastname": "" // doctor lastname
},
"insurances": [
{
"code": 0, // integer // organization id
"name": "", // organization name
"componentCode": null, // integer // component id
"componentName": "" // component name
}
]
}
],
"hospital": { // insurance organization
"id": 0, // integer // organization id
"externalInfo": {
"id": 0 // integer
}, //
"name": "",
"note": null // string
},
"doctor": {
"id": 0, // integer // doctor id
"externalInfo": {
"id": 0 // integer
},
"name": "",
"note": null // string
},
}
response
{
"id": 0, // integer 64 bit
"num": "",
"date": "2020-12-31", // yyyy-MM-dd
"time": "23:59:59", // HH:mm:ss
"status": "",
"externalInfo": {
"num": ""
},
"patient": {
"id": 0, // integer // patient id
"externalInfo": {
"id": ""
},
"personalNumber": "",
"firstname": "",
"lastname": "",
"name": "", // lastname firstname fathername
"dateOfBirth": "2000-12-31", // yyyy-MM-dd
"sex": "male", // string // male | female
"note": null, // string
"weight": null, // float
"pregnancyWeek": null, // integer
},
"urgently": false,
"canceled": false,
"resultsPDFCode": "", // string // code for getting pdf
"commitNumber": null, // integer // commit number
"analyzesCodes": [ // array of strings // analyze codes
""
],
"stickers": [ // stickers for tubes
{
"BarCode": "",
"TubeType": ""
}
],
"error": {
"code": 0, // integer // error code // 0 for success
"message": null // string // error description
}
}
POST /examination/get?ExaminationId={ExaminationId}&ExternalExaminationNum={ExternalExaminationNum} HTTP/1.1
Authorization: Basic base64(user:password)
response
{
"id": 0, // integer 64 bit
"num": "",
"date": "2020-12-31", // yyyy-MM-dd
"time": "23:59:59", // HH:mm:ss
"status": "",
"externalInfo": {
"num": "",
},
"patient": {
"id": 0, // integer // patient id
"externalInfo": {
"id": ""
},
"personalNumber": "",
"firstname": "",
"lastname": "",
"name": "", // lastname firstname fathername
"dateOfBirth": "2000-12-31", // yyyy-MM-dd
"sex": "male", // string // male | female
"note": null, // string
"weight": null, // float
"pregnancyWeek": null, // integer
},
"urgently": false,
"canceled": false,
"resultsPDFCode": "", // string // code for getting pdf
"commitNumber": null, // integer // commit number
"analyzesCodes": [ // array of strings // analyze codes
""
],
"stickers": [ // stickers for tubes
{
"BarCode": "",
"TubeType": ""
}
],
"error": {
"code": 0, // integer // error code // 0 for success
"message": null // string // error description
}
}
POST /examination/getResultsPDF?ExaminationResultsPDFCode={ExaminationResultsPDFCode} HTTP/1.1
Authorization: Basic base64(user:password)
response is pdf binary data
POST /examination/getresultspdf?ExaminationResultsPDFCode={ExaminationResultsPDFCode} HTTP/1.1
Authorization: Basic base64(user:password)
response
{
"results": [
{
"Name": "",
"Url": "",
"error": {
"code": 0, // integer // error code // 0 for success
"message": null // string // error description
}
}
]
}
POST /examination/getresults?ExaminationId={ExaminationId}&ExternalExaminationNum={ExternalExaminationNum} HTTP/1.1
Authorization: Basic base64(user:password)
response
{
"error": {
"code": 0, // integer // error code // 0 for success
"message": null // string // error description
},
"results": [ // list of result components
{
"researchKod": "",
"researchCode": "0.0",
"AnalyzeCode": "", // analyze codes for researchKod
"Id": "",
"Name": "", // string // component name
"Normative": "", // string // normative
"Unit": "", // string // unit
"Result": "",
"TextResult": "",
"Comment": "",
"CompleteDatetime": "yyyy-MM-ddTHH:mm:ssZ", // string // complete datetime
"State": "done" // string // status // done | research
}
]
}