---
title: "Create Lab Interaction"
method: POST
path: "/provider/patients/{patient_id}/interactions/lab"
tags: ["LabInteraction"]
---

# Create Lab Interaction

`POST /provider/patients/{patient_id}/interactions/lab`

## Request

- Base URL: `https://api.sandbox.hint.com/api`
- URL: `https://api.sandbox.hint.com/api/provider/patients/{patient_id}/interactions/lab`
- Auth: API key in header `AUTHORIZATION`

Creates a lab for the patient. To prevent a duplicate lab, send
`integration_record_id`. If a lab with that value already exists, Hint
responds 409 with the location of that lab. A create never changes an
existing lab. See [Lab Interactions](doc:lab-interactions).

## Path parameters

- `patient_id` string, required

## Request body

- InteractionLabSanitizer
  - `status` 'sent' | 'fulfilled': The status of the interaction. Defaults to "sent" on create
  - `vendor_order_id` string: Your order number. An update that sends `order`, `report`, or `results` removes it.
  - `event_timestamp` string, date-time: Defaults to current time
  - `order` InteractionLabSanitizerOrderSanitizer: Lab order details
    - `lab_reference_id` string, required: External reference ID for the lab order
    - `ordered_from` string, required: Lab provider name (e.g., "LabCorp")
    - `authored_on` string, date-time, required: When the order was authored
    - `collected_at` string, date-time: When the specimen was collected
    - `author` string: Name or ID of the ordering provider
    - `author_reference` string: Reference identifier for the author
    - `actions` InteractionLabSanitizerActionSanitizer[]: Ordered tests/panels
      - `reference` string, required: Reference code for the test
      - `display` string, required: Human-readable test name
    - `intent` string: Order intent
    - `subject` InteractionLabSanitizerSubjectSanitizer: Subject of the lab order
      - `reference` string: Subject reference ID
      - `display` string: Subject display name
    - `lab_account_id` string: Lab account identifier
  - `report` InteractionLabSanitizerReportSanitizer: Diagnostic report details
    - `issued` string, date-time, required: When the report was issued
    - `status` string, required: Report status (e.g., "final", "preliminary")
    - `lab_reference_id` string: External lab reference ID
    - `order_reference` string: Reference to the originating order
  - `results` InteractionLabSanitizerResultSanitizer[]: Lab result observations
    - `id` string, required: Unique result identifier
    - `code` InteractionLabSanitizerResultCodeSanitizer[], required: At least one coding entry (min 1)
      - `code` string, required: LOINC code value (only LOINC is supported)
      - `display` string, required: Human-readable name
    - `code_text` string, required: Human-readable name for the result
    - `issued` string, date-time, required: When the result was issued
    - `value_quantity` InteractionLabSanitizerResultQuantitySanitizer: Numeric result value with unit
      - `value` number, float, required: The measured value
      - `unit` string, required: Unit of measure (e.g., "mg/dL")
    - `value_string` string: String result value
    - `text` string: Additional narrative text
    - `interpretation` string[]: Interpretation codes (e.g., ["normal"])
    - `ranges` InteractionLabSanitizerResultRangeSanitizer[]: Reference ranges
      - `low` InteractionLabSanitizerResultQuantitySanitizer: Lower bound of range
        - `value` number, float, required: The measured value
        - `unit` string, required: Unit of measure (e.g., "mg/dL")
      - `high` InteractionLabSanitizerResultQuantitySanitizer: Upper bound of range
        - `value` number, float, required: The measured value
        - `unit` string, required: Unit of measure (e.g., "mg/dL")
      - `text` string: Textual range description
    - `subject` string: Subject reference
  - `files` InteractionFileSanitizer[]: The files to attach. They will be downloaded as part of the request. A bare URL string is also accepted in place of an object. When `filename` is omitted Hint infers one and rejects the request with a 422 if it cannot.
    - `url` string, required: An https URL to download, or a `data:` URI carrying the file inline.
    - `filename` string: The name to store the file under. When omitted it is taken from the response's Content-Disposition, then the URL's path, and any missing extension is derived from the file's contents. A file that cannot be named is rejected with a 422.
  - `requisition_files` InteractionFileSanitizer[]: The documents that ordered the lab, attached the same way as `files`.
    - `url` string, required: An https URL to download, or a `data:` URI carrying the file inline.
    - `filename` string: The name to store the file under. When omitted it is taken from the response's Content-Disposition, then the URL's path, and any missing extension is derived from the file's contents. A file that cannot be named is rejected with a 422.
  - `result_files` InteractionFileSanitizer[]: The documents reporting the lab results, attached the same way as `files`.
    - `url` string, required: An https URL to download, or a `data:` URI carrying the file inline.
    - `filename` string: The name to store the file under. When omitted it is taken from the response's Content-Disposition, then the URL's path, and any missing extension is derived from the file's contents. A file that cannot be named is rejected with a 422.
  - `integration_record_id` string
  - `integration_error_message` string
  - `integration_web_link` string
  - `partner_product_id` string: The installed product to attribute this lab to. Defaults to the product whose surface the call came from, then to the practice's only installed product of yours.

## Response `200`

Successful response

- PublicInteractionLabBlueprintOne
  - `id` string
  - `created_at` string, date-time
  - `event_timestamp` string, date-time
  - `patient_access` boolean
  - `patient_id` string
  - `status` string
  - `type` string
  - `updated_at` string, date-time
  - `vendor_order_id` string
  - `files` PublicInteractionFileBlueprintLeaf[]
    - `id` string
    - `filename` string
    - `type` string
  - `order` PublicInteractionLabOrderBlueprintLeaf
    - `lab_reference_id` string
    - `ordered_from` string
    - `authored_on` string
    - `collected_at` string
    - `author` string
    - `author_reference` string
    - `intent` string
    - `lab_account_id` string
    - `actions` PublicInteractionLabOrderActionBlueprintLeaf[]
      - `reference` string
      - `display` string
    - `subject` PublicInteractionLabOrderSubjectBlueprintLeaf
      - `reference` string
      - `display` string
  - `report` PublicInteractionLabReportBlueprintLeaf
    - `issued` string
    - `status` string
    - `lab_reference_id` string
    - `order_reference` string
  - `results` PublicInteractionLabResultBlueprintLeaf[]
    - `id` string
    - `code_text` string
    - `issued` string
    - `value_string` string
    - `text` string
    - `interpretation` string[]
    - `subject` string
    - `code` PublicInteractionLabResultCodeBlueprintLeaf[]
      - `code` string
      - `display` string
    - `value_quantity` PublicInteractionLabResultQuantityBlueprintLeaf
      - `value` union
        - number, float
        - string
      - `unit` string
    - `ranges` PublicInteractionLabResultRangeBlueprintLeaf[]
      - `text` string
      - `low` PublicInteractionLabResultQuantityBlueprintLeaf
        - `value` union
          - number, float
          - string
        - `unit` string
      - `high` PublicInteractionLabResultQuantityBlueprintLeaf
        - `value` union
          - number, float
          - string
        - `unit` string

## Changes

- **2026-11-03** `c9bda0d2dd87`: 6 breaking, 12 warning, 11 info
  - the request property `order/authored_on` became required
  - the request property `order/lab_reference_id` became required
  - the request property `order/ordered_from` became required
  - the `order/authored_on` request property format changed from no format to `date-time`
  - …25 more

[Operation history](https://skmtc.dev/hint/apis/partner-endpoints/changes/provider/patients/:patient_id/interactions/lab/post.md)

---

[API](https://skmtc.dev/hint/apis/partner-endpoints.md) - [All operations](https://skmtc.dev/hint/apis/partner-endpoints/llms.txt) - [OpenAPI document](https://skmtc.dev/hint/apis/partner-endpoints/revisions/c9bda0d2dd87?raw)
