Download OpenAPI specification:
Lab Order Management System API Documentation. This API provides endpoints to manage laboratory orders and their results.
GET /labs/{labId}/lab-orders/updates?since={timestamp}GET /labs/{labId}/lab-orders?reservationCodes=code1,code2In Progress of an order using PUT /labs/{labId}/lab-orders/{reservationCode}/statusGET /labs/{labId}/lab-orders/{reservationCode}/documents/upload-sample-results-url)POST /labs/{labId}/lab-orders/{reservationCode}/documents/upload-sample-results-url)POST /v1/labs/{labId}/lab-orders/{reservationCode}/samples/resultsRetrieves a list of lab orders by reservation codes
| labId required | string Your lab organization id |
| reservationCode required | Array of strings Filter orders by reservation code(s). Can be a single code or comma-separated list |
curl --request GET \ --url 'https://loms-api.erblue.com/v1/labs/%7BlabId%7D/lab-orders?reservationCode=SOME_ARRAY_VALUE' \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
[- {
- "billing_id": "string",
- "lab_location_id": "string",
- "billing_to_id": "string",
- "reservation_code": "string",
- "status": "Submitted",
- "project_name": "string",
- "lab_order_id": "string",
- "inspector_name": "string",
- "inspector_email": "string",
- "po_number": "string",
- "project_id": "string",
- "special_instructions": "string",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "state_province": "string",
- "zip_postal": "string",
- "country": "string",
- "submitted_at": "2019-08-24T14:15:22Z",
- "samples": [
- {
- "test_methods": [
- {
- "test_method": "string",
- "turnaround_time": "string"
}
], - "matrix": "string",
- "customer_sample_id": "string",
- "ha_number": "string",
- "location_description": "string",
- "description": "string",
- "material_location": "string",
- "material": "string",
- "cassette_type": "string",
- "sample_type": "string",
- "sample_amount": 0,
- "units": "string",
- "filter_pore_size": "string",
- "temperature": 0,
- "temperature_units": "string",
- "datetime_collected": "2019-08-24T14:15:22Z",
- "end_datetime_collected": "2019-08-24T14:15:22Z",
- "notes": "string",
- "bottle_type": "string",
- "water_source": "string",
- "field_ph": 0,
- "porous": "string",
- "sample_collection_depth": 0,
- "composite_sample": "string",
- "container_size": "string",
- "supply_type": "string",
- "preservative": "string",
- "sample_classification": "string",
- "paint_condition": "string",
- "color": "string",
- "substrate": "string",
- "component": "string",
- "floor_level": "string",
- "lot_number": "string",
- "width": 0,
- "length": 0,
- "sample_area": "string",
- "average_flow_rate": 0,
- "post_flow_rate": 0,
- "pre_flow_rate": 0,
- "elapsed_time": "2019-08-24T14:15:22Z",
- "activity_phase": "string",
- "volume": "string"
}
], - "results": [
- {
- "lab_sample_id": "string",
- "result_status": "Analyzed",
- "lab_test_method": "string",
- "aliquot_id": "string",
- "result_qualifier": "<",
- "result_value": 0,
- "result_type": "string",
- "unit": "string",
- "mrl_value": 0,
- "identifier": "string",
- "analysis_date": "2019-08-24T14:15:22Z",
- "comment": "string",
- "customer_sample_id": "string",
- "detected": true
}
]
}
]Retrieves a lab order by reservation code
| labId required | string Your lab organization id |
| reservationCode required | string Reservation code for the lab order |
curl --request GET \ --url https://loms-api.erblue.com/v1/labs/%7BlabId%7D/lab-orders/%7BreservationCode%7D \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
{- "billing_id": "string",
- "lab_location_id": "string",
- "billing_to_id": "string",
- "reservation_code": "string",
- "status": "Submitted",
- "project_name": "string",
- "lab_order_id": "string",
- "inspector_name": "string",
- "inspector_email": "string",
- "po_number": "string",
- "project_id": "string",
- "special_instructions": "string",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "state_province": "string",
- "zip_postal": "string",
- "country": "string",
- "submitted_at": "2019-08-24T14:15:22Z",
- "samples": [
- {
- "test_methods": [
- {
- "test_method": "string",
- "turnaround_time": "string"
}
], - "matrix": "string",
- "customer_sample_id": "string",
- "ha_number": "string",
- "location_description": "string",
- "description": "string",
- "material_location": "string",
- "material": "string",
- "cassette_type": "string",
- "sample_type": "string",
- "sample_amount": 0,
- "units": "string",
- "filter_pore_size": "string",
- "temperature": 0,
- "temperature_units": "string",
- "datetime_collected": "2019-08-24T14:15:22Z",
- "end_datetime_collected": "2019-08-24T14:15:22Z",
- "notes": "string",
- "bottle_type": "string",
- "water_source": "string",
- "field_ph": 0,
- "porous": "string",
- "sample_collection_depth": 0,
- "composite_sample": "string",
- "container_size": "string",
- "supply_type": "string",
- "preservative": "string",
- "sample_classification": "string",
- "paint_condition": "string",
- "color": "string",
- "substrate": "string",
- "component": "string",
- "floor_level": "string",
- "lot_number": "string",
- "width": 0,
- "length": 0,
- "sample_area": "string",
- "average_flow_rate": 0,
- "post_flow_rate": 0,
- "pre_flow_rate": 0,
- "elapsed_time": "2019-08-24T14:15:22Z",
- "activity_phase": "string",
- "volume": "string"
}
], - "results": [
- {
- "lab_sample_id": "string",
- "result_status": "Analyzed",
- "lab_test_method": "string",
- "aliquot_id": "string",
- "result_qualifier": "<",
- "result_value": 0,
- "result_type": "string",
- "unit": "string",
- "mrl_value": 0,
- "identifier": "string",
- "analysis_date": "2019-08-24T14:15:22Z",
- "comment": "string",
- "customer_sample_id": "string",
- "detected": true
}
]
}Updates a lab order status by reservation code
| labId required | string Your lab organization id |
| reservationCode required | string Reservation code for the lab order |
| status required | string Enum: "Submitted" "In Progress" "Completed" "Cancelled" The current status of the order |
{- "status": "Submitted"
}Retrieves a list of lab orders updates since timestamp
| labId required | string Your lab organization id |
| since required | string <date-time> Filter orders updated after this timestamp (ISO 8601 format) |
| locationId | string Filter orders updates by location id |
curl --request GET \ --url 'https://loms-api.erblue.com/v1/labs/%7BlabId%7D/lab-orders/updates?since=SOME_STRING_VALUE&locationId=SOME_STRING_VALUE' \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
[- {
- "reservation_code": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
]Retrieves a lab order coc download url by reservation code
| labId required | string Your lab organization id |
| reservationCode required | string Reservation code for the lab order |
curl --request GET \ --url https://loms-api.erblue.com/v1/labs/%7BlabId%7D/lab-orders/%7BreservationCode%7D/documents/download-coc-url \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
{- "url": "string"
}Retrieves a lab order sample results upload url by reservation code
| labId required | string Your lab organization id |
| reservationCode required | string Reservation code for the lab order |
curl --request GET \ --url https://loms-api.erblue.com/v1/labs/%7BlabId%7D/lab-orders/%7BreservationCode%7D/documents/upload-sample-results-url \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
{- "url": "string",
- "identifier": "string"
}Completes a lab order sample results upload by reservation code
| labId required | string Your lab organization id |
| reservationCode required | string Reservation code for the lab order |
| identifier required | string Lab order sample results upload identifier |
{- "identifier": "string"
}Retrieves a lab order samples results by reservation code
| labId required | string Your lab organization id |
| reservationCode required | string Reservation code for the lab order |
curl --request GET \ --url https://loms-api.erblue.com/v1/labs/%7BlabId%7D/lab-orders/%7BreservationCode%7D/samples/results \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
[- {
- "lab_sample_id": "string",
- "result_status": "Analyzed",
- "lab_test_method": "string",
- "aliquot_id": "string",
- "result_qualifier": "<",
- "result_value": 0,
- "result_type": "string",
- "unit": "string",
- "mrl_value": 0,
- "identifier": "string",
- "analysis_date": "2019-08-24T14:15:22Z",
- "comment": "string",
- "customer_sample_id": "string",
- "detected": true
}
]Updates a lab order samples results for a given reservation code
| labId required | string Your lab organization id |
| reservationCode required | string Reservation code for the lab order |
| lab_sample_id required | string A unique identifier assigned to the sample by the laboratory. |
| lab_test_method required | string The specific laboratory method or protocol used to analyze the sample. |
| aliquot_id required | string A unique identifier for an aliquot of the sample. |
| result_qualifier | string Enum: "<" ">" Indicates additional information or qualifiers about the result value. |
| result_value required | number The numerical result of the analysis. |
| result_type required | string Classification of the type of result being reported. |
| unit required | string The unit of measurement for the result value. |
| mrl_value required | number The minimum reporting limit (MRL) for the analysis. |
| identifier required | string A unique identifier representing the type of analysis or target. |
| analysis_date required | string <date-time> The date and time when the analysis was completed. |
| comment | string Any additional notes or observations about the result or analysis. |
| result_status required | string Enum: "Analyzed" "Not Analyzed" The current sample result status of the sample. |
| customer_sample_id required | string The unique identifier for the sample as provided by the customer. |
[- {
- "lab_sample_id": "string",
- "lab_test_method": "string",
- "aliquot_id": "string",
- "result_qualifier": "<",
- "result_value": 0,
- "result_type": "string",
- "unit": "string",
- "mrl_value": 0,
- "identifier": "string",
- "analysis_date": "2019-08-24T14:15:22Z",
- "comment": "string",
- "result_status": "Analyzed",
- "customer_sample_id": "string"
}
][- {
- "lab_sample_id": "string",
- "result_status": "Analyzed",
- "lab_test_method": "string",
- "aliquot_id": "string",
- "result_qualifier": "<",
- "result_value": 0,
- "result_type": "string",
- "unit": "string",
- "mrl_value": 0,
- "identifier": "string",
- "analysis_date": "2019-08-24T14:15:22Z",
- "comment": "string",
- "customer_sample_id": "string",
- "detected": true
}
]