Upload Lab Report
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"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

raw body

body
string
required

raw body in base64

filename
string
required

filename of the document

mime_type
string
required

mime type of the document

wait_on_process
boolean

wait for the process to complete

Response

OK

lab_report
object
required