- Getting Started
- Flow Between Lab and API
- Initial Biomarkers and Biomarker Groups Setup
- Optional: Using LOINC IDs from LOINC.org
- Limitations
- Patient
- Visit
- Lab Test
- Biomarker Group
- Biomarker
- Webhooks
Create a lab test
POST
/test-results
Lab Test
Last modified:2025-03-04 07:42:09
Maintainer:fr44lancer
Request
Body Params application/json
patient_id
string
required
visit_id
string
required
Example:
Visit ID
biomarker_group_id
string
required
Example:
Visit ID
biomarkers
array[object (Marker) {5}]
required
Example:
Markers
biomarker_id
string
required
value
string
required
lower_referent_value
string
required
upper_referent_value
string
required
clinical_flag
enum<string>
required
Allowed values:
normalabnormalhighlowundefined
Example
{
"patient_id": "15026",
"visit_id": "2542",
"biomarker_group_id": "58410-2",
"loincs": [
{
"marker_id": "6690-2",
"value": "16",
"lower_referent_value": "14",
"upper_referent_value": "17",
"clinical_flag": "normal"
},
{
"marker_id": "718-7",
"value": "13.7",
"lower_referent_value": "4.1",
"upper_referent_value": "12.2",
"clinical_flag": "high"
}
]
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/test-results' \
--header 'Content-Type: application/json' \
--data-raw '{
"patient_id": "15026",
"visit_id": "2542",
"biomarker_group_id": "58410-2",
"loincs": [
{
"marker_id": "6690-2",
"value": "16",
"lower_referent_value": "14",
"upper_referent_value": "17",
"clinical_flag": "normal"
},
{
"marker_id": "718-7",
"value": "13.7",
"lower_referent_value": "4.1",
"upper_referent_value": "12.2",
"clinical_flag": "high"
}
]
}'
Responses
🟢201Created
This response does not have a body.
Modified at 2025-03-04 07:42:09