> ## Documentation Index
> Fetch the complete documentation index at: https://docs.morf.health/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Visit

> Event payload details and trigger documentation for Visit data from Axle Health

<img src="https://mintcdn.com/morfhealth/EU2WCxuXGIUQcziR/images/axle_health.svg?fit=max&auto=format&n=EU2WCxuXGIUQcziR&q=85&s=96cdb854e9d03c30297bf8a5bcc8c0bf" alt="images/axle_health.svg" width="40" height="40" data-path="images/axle_health.svg" />

# Events

## Triggering Webhook Types

The following event types are associated with the Visit event payload from Axle Health.

* `Axle Health Lab Order Status Update`

<RequestExample>
  ```json Example theme={null}
  {
    "id": "38902dfa-63d4-4454-afd4-1280b94f94d6",
    "patient_id": "e0786666-66d2-4a24-a24c-dafa2622332b",
    "service_ids": [
      "d17d2538-501f-4915-a801-32e8c418ae14"
    ],
    "status": "not_started",
    "visit_datetime": "2023-05-23T07:30:00-07:00",
    "visit_type": "visit"
  }
  ```
</RequestExample>

<ResponseExample>
  ```json Description theme={null}
  {
    "id": "Unique identifier for the visit",
    "patient_id": "Unique identifier for the patient",
    "service_ids": "List of service IDs associated with this visit",
    "status": "Current status of the visit",
    "visit_datetime": "Scheduled date and time of the visit",
    "visit_type": "Type of the record, always 'visit' for Visit messages"
  }
  ```
</ResponseExample>

### Payload Field Details

<ResponseField name="Visit" type="Event Payload">
  <Expandable title="fields" defaultOpen="true">
    <ResponseField name="visit_type" type="string" required>
      Type of the record, always 'visit' for Visit messages

      ```json CEL theme={null}
      visit_type
      ```

      ```json Example theme={null}
      "visit"
      ```
    </ResponseField>

    <ResponseField name="id" type="string" required>
      Unique identifier for the visit

      ```json CEL theme={null}
      id
      ```

      ```json Example theme={null}
      "38902dfa-63d4-4454-afd4-1280b94f94d6"
      ```
    </ResponseField>

    <ResponseField name="service_ids" type="[]string" required>
      List of service IDs associated with this visit

      ```json CEL theme={null}
      service_ids
      ```

      ```json Example theme={null}
      [
      "d17d2538-501f-4915-a801-32e8c418ae14"
      ]
      ```
    </ResponseField>

    <ResponseField name="patient_id" type="string" required>
      Unique identifier for the patient

      ```json CEL theme={null}
      patient_id
      ```

      ```json Example theme={null}
      "e0786666-66d2-4a24-a24c-dafa2622332b"
      ```
    </ResponseField>

    <ResponseField name="status" type="string">
      Current status of the visit

      ```json CEL theme={null}
      status
      ```

      ```json Example theme={null}
      "not_started"
      ```
    </ResponseField>

    <ResponseField name="visit_datetime" type="timing.v1.Timestamp">
      Scheduled date and time of the visit

      ```json CEL theme={null}
      visit_datetime
      ```

      ```json Example theme={null}
      "2023-05-23T07:30:00-07:00"
      ```
    </ResponseField>
  </Expandable>
</ResponseField>
