BMLab API V0.2
BMLab API V0.2
Endpoints
POST /analysisRequest
Create a new analysis request described in a JSON parameter
POST /analysisRequest/{analysisRequestId}/actions/edit
Edit an existing analysis request that has the ID {analysisRequestId} with new values described in JSON
parameter
DELETE /analysisrequest/{analysisRequestId}
Delete an existing analysis request that has the ID {analysisRequestId}
GET /analysisRequest/{analysisRequestId}/actions/preview
Preview an existing analysis request that has the ID {analysisRequestId}, this will return JSON that
contains base64 PDF
GET /analysisRequest/{analysisRequestId}/actions/state
Get the state existing analysis request that has the ID {analysisRequestId}
POST /Patient/{patientId}/actions/edit
Edit an existing patient that has the ID {patientId} with new values described in JSON parameter
GET /AnalysisRequest/{analysisRequestId}/ResultServer
get user and password to access result server
Parameters
Analysis Request JSON body:
{
Id : String //system source ID
RequestedDate: String //with format “yyyy-MM-ddTHH:mm:SS”
Remarks: String
AnalysisTypes: Array<String> //array of strings that represent
the codes of requested Analysis Types
Patient : Patient //described in json below
MoreInfo: Dictionary<string, string> // pass other information as
dictionary
}
Patient JSON body:
{
Id: string //system source ID
FirstName: string
LastName: String
BirthDate: string // “yyyy-MM-ddTHH:mm:SS”
Sexe : string // “M” or “F”
PhoneNumber: String
MoreInfo: Dictionary<string, string> // pass other information as
dictionary for example {"PatientEmail":"[email protected]"}
With headers:
Content-Type: application/x-www-form-urlencoded
And body request
System: BMlabAPI
body(x-www-form-urlencoded):
grant_type: password
username: /*your username*/
password: /*your password*/