Events
Triggering Webhook Types
The following event types are associated with the Lab Results event payload from Butterfly Labs.Butterfly Labs Lab Order Results Update
Copy
Ask AI
{
"order_definition_code": "BFLY-21H1XI",
"order_id": "ord_dV7RMiCP1Paz0NyxHFWrpF",
"patient_id": "pt_G2d42kA1JrNppciYEE",
"report_generated_date": "2023-06-09T14:08:00+00:00",
"results": [
{
"lab_comments": "Prediabetes: 5.7 - 6.4\nDiabetes: >6.4",
"name": "AST (SGOT)",
"range": null,
"reference_range_high": null,
"reference_range_low": null,
"result_interpretation": "High",
"unit": "IU/L",
"value": null
}
]
}
Copy
Ask AI
{
"order_definition_code": "Code identifying the type of lab order",
"order_id": "ID of the order these results belong to",
"patient_id": "ID of the patient these results are for",
"report_generated_date": "When these lab results were generated",
"results": {
"lab_comments": "Additional comments from the lab about this result",
"name": "Name of the test result",
"range": "The range of the test result (in the given units)",
"reference_range_high": "High end of the reference range for this test (in the given units)",
"reference_range_low": "Low end of the reference range for this test (in the given units)",
"result_interpretation": "Interpretation of the result (e.g., High, Low, Ok)",
"unit": "Unit of measurement for the result",
"value": "The value of the test result (in the given units)"
}
}
Payload Field Details
Hide fields
Hide fields
ID of the order these results belong to
CEL
Copy
Ask AI
order_id
Example
Copy
Ask AI
"ord_dV7RMiCP1Paz0NyxHFWrpF"
ID of the patient these results are for
CEL
Copy
Ask AI
patient_id
Example
Copy
Ask AI
"pt_G2d42kA1JrNppciYEE"
Code identifying the type of lab order
CEL
Copy
Ask AI
order_definition_code
Example
Copy
Ask AI
"BFLY-21H1XI"
When these lab results were generated
CEL
Copy
Ask AI
report_generated_date
Example
Copy
Ask AI
"2023-06-09T14:08:00+00:00"
Description coming soon
CEL
Copy
Ask AI
results
Example
Copy
Ask AI
[
{
"lab_comments": "Prediabetes: 5.7 - 6.4\nDiabetes: >6.4",
"name": "AST (SGOT)",
"range": null,
"reference_range_high": null,
"reference_range_low": null,
"result_interpretation": "High",
"unit": "IU/L",
"value": null
}
]
Mapped array of: Name of the test result
CEL
Copy
Ask AI
results.map(x, x.name)
Example
Copy
Ask AI
[
"AST (SGOT)"
]
Mapped array of: The range of the test result (in the given units)
CEL
Copy
Ask AI
results.map(x, x.range)
Example
Copy
Ask AI
[
null
]
Mapped array of: The value of the test result (in the given units)
CEL
Copy
Ask AI
results.map(x, x.value)
Example
Copy
Ask AI
[
null
]
Mapped array of: Unit of measurement for the result
CEL
Copy
Ask AI
results.map(x, x.unit)
Example
Copy
Ask AI
[
"IU/L"
]
Mapped array of: Additional comments from the lab about this result
CEL
Copy
Ask AI
results.map(x, x.lab_comments)
Example
Copy
Ask AI
[
"Prediabetes: 5.7 - 6.4\nDiabetes: >6.4"
]
Mapped array of: Interpretation of the result (e.g., High, Low, Ok)
CEL
Copy
Ask AI
results.map(x, x.result_interpretation)
Example
Copy
Ask AI
[
"High"
]
Mapped array of: Low end of the reference range for this test (in the given units)
CEL
Copy
Ask AI
results.map(x, x.reference_range_low)
Example
Copy
Ask AI
[
null
]
Mapped array of: High end of the reference range for this test (in the given units)
CEL
Copy
Ask AI
results.map(x, x.reference_range_high)
Example
Copy
Ask AI
[
null
]
