Common Lab Module Rest API
- 1 Overview
- 2 Resources
- 3 Void Data
- 3.1 Void data
Overview
This is the technical documentation for REST component of Common Lab Module. General information and user documentation for the module can be found here.
Resources
Create Lab Test Order
Lab Test contains a mandatory Order object, which is abstract OpenMRS object used for Lab Test and Drug orders. Therefore, order object will also be created. Whereas, Orderer property hold uuid for Provider object.
POST Lab Test
POST ws/rest/v1/commonlab/labtestorder
Body Content:
{
"labReferenceNumber": "ESR - 2019-01-21 12:23:14",
"labTestType": "4f4c97c8-61c3-4c4e-82bc-ef3e8abe8ffa",
"order": {
"action": "NEW",
"patient": "e0c73f96-eab9-4cd0-95b5-c656ca9920b6",
"concept": "dcd97733-4262-4947-ac69-fd2d00880803",
"encounter": "9e10fab4-a69d-4726-8f14-531f0b9ee0fc",
"careSetting": "6f0c9a92-6f24-11e3-af88-005056821db0",
"type": "testorder",
"orderer": "0e5ac8a2-cb48-40ff-a9bd-b0e09afa7860"
}
}
Create Lab Test Sample
For creating Lab Test Sample, Lab Test uuid is attached in json as it contains a reference to Lab Test entity. Collector property holds Provider uuid.