Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
OK
curl --request POST \
--url https://app-api.spikeapi.com/v3/lab_reports \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"body": "<string>",
"filename": "<string>",
"mime_type": "<string>",
"wait_on_process": true
}'
{
"lab_report": {
"collection_date": "<string>",
"lab_information": {
"address": "<string>",
"email_address": "<string>",
"name": "<string>",
"notes": "<string>",
"phone_number": "<string>"
},
"modified_at": "2023-11-07T05:31:56Z",
"notes": "<string>",
"original_record_id": "<string>",
"parsing_error": "<string>",
"patient_information": {
"address": "<string>",
"age": 1,
"date_of_birth": "<string>",
"email_address": "<string>",
"gender": "<string>",
"name": "<string>",
"notes": "<string>",
"patient_id": "<string>",
"phone_number": "<string>"
},
"record_id": "2d281236-a4b5-4d7b-846c-b88b48cfaf4b",
"result_date": "<string>",
"sections": [
{
"loinc_code": "<string>",
"loinc_common_name": "<string>",
"original_section_name": "<string>",
"results": [
{
"loinc_code": "<string>",
"loinc_common_name": "<string>",
"normal_max": 123,
"normal_min": 123,
"notes": "<string>",
"original_test_name": "<string>",
"original_unit_name": "<string>",
"require_human_review": true,
"standard_test_name": "<string>",
"standard_unit_name": "<string>",
"tested_positive": true,
"value": 123,
"value_text": "<string>",
"within_normal_range": true
}
],
"section_notes": "<string>",
"standard_section_name": "<string>"
}
],
"status": "pending",
"uploaded_at": "2023-11-07T05:31:56Z"
}
}
Upload and save a base64 encoded document.
curl --request POST \
--url https://app-api.spikeapi.com/v3/lab_reports \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"body": "<string>",
"filename": "<string>",
"mime_type": "<string>",
"wait_on_process": true
}'
{
"lab_report": {
"collection_date": "<string>",
"lab_information": {
"address": "<string>",
"email_address": "<string>",
"name": "<string>",
"notes": "<string>",
"phone_number": "<string>"
},
"modified_at": "2023-11-07T05:31:56Z",
"notes": "<string>",
"original_record_id": "<string>",
"parsing_error": "<string>",
"patient_information": {
"address": "<string>",
"age": 1,
"date_of_birth": "<string>",
"email_address": "<string>",
"gender": "<string>",
"name": "<string>",
"notes": "<string>",
"patient_id": "<string>",
"phone_number": "<string>"
},
"record_id": "2d281236-a4b5-4d7b-846c-b88b48cfaf4b",
"result_date": "<string>",
"sections": [
{
"loinc_code": "<string>",
"loinc_common_name": "<string>",
"original_section_name": "<string>",
"results": [
{
"loinc_code": "<string>",
"loinc_common_name": "<string>",
"normal_max": 123,
"normal_min": 123,
"notes": "<string>",
"original_test_name": "<string>",
"original_unit_name": "<string>",
"require_human_review": true,
"standard_test_name": "<string>",
"standard_unit_name": "<string>",
"tested_positive": true,
"value": 123,
"value_text": "<string>",
"within_normal_range": true
}
],
"section_notes": "<string>",
"standard_section_name": "<string>"
}
],
"status": "pending",
"uploaded_at": "2023-11-07T05:31:56Z"
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
OK
Show child attributes