# Get FHIR r4 person history by ID

Endpoint: GET /site/{siteId}/fhir/person/{id}/history
Version: 1.0
Security: bearer

## Security:

  - `bearer` (unknown)
    http bearer JWT

## Path parameters:

  - `siteId` (string, required)
    Site identifier

  - `id` (string, required)
    ID of the Person

## Response 200 fields (application/json):

  - `resourceType` (string, required)
    This is a Bundle resource
    Enum: "Bundle"

  - `type` (string, required)
    Indicates that this is a history bundle.
    Enum: "history"

  - `entry` (array, required)
    A list of entries representing historical versions of the resource.

  - `entry.fullUrl` (string, required)
    Example: https://api.heydonto.com/person/6eca4369-7183-446e-bab7-addc609972d3

  - `entry.request` (object, required)

  - `entry.request.method` (string)
    Enum: "PUT", "POST"

  - `entry.request.url` (string)
    Example: https://api.heydonto.com/person/6eca4369-7183-446e-bab7-addc609972d3

  - `entry.resource` (object, required)
    Example: {"resourceType":"Resource","id":"example"}

  - `entry.response` (object, required)

  - `entry.response.lastModified` (string)
    Example: 2024-10-29T01:05:22.739517+00:00

  - `entry.response.location` (string)
    Example: https://api.heydonto.com/person/6eca4369-7183-446e-bab7-addc609972d3/_history/MTczMDE2MzkyMjczOTUxNzAwMA

  - `entry.response.status` (string)
    Example: 200 OK

  - `total` (integer, required)
    Example: 2

## Response 400:

  - `400` (unknown)
    Bad request

## Response 401:

  - `401` (unknown)
    Unauthorized: Invalid or missing token.

## Response 401 fields (application/json):

  - `message` (string, required)
    Error message indicating unauthorized access.
    Example: Unauthorized

  - `statusCode` (number, required)
    HTTP status code for unauthorized access.
    Example: 401

## Response 403:

  - `403` (unknown)
    Forbidden: Access denied due to unaccepted Terms or insufficient permissions.

## Response 403 fields (application/json):

  - `statusCode` (number, required)
    HTTP status code indicating forbidden access due to unaccepted Terms of Service.
    Example: 403

  - `message` (string, required)
    Human-readable explanation of the error.
    Example: User must accept Terms of Service before continuing

  - `reason` (string, required)
    Machine-readable reason code for the error.
    Example: tos_required

  - `termsOfServicesLink` (string, required)
    URL to the Terms of Service the user must accept.
    Example: https://heydonto.com/terms-of-use/

  - `timestamp` (string, required)
    Timestamp when the error occurred (ISO 8601).
    Example: 2025-01-01T00:00:00.000Z

  - `statusCode` (number, required)
    HTTP status code indicating forbidden access.
    Example: 403

## Response 404:

  - `404` (unknown)
    Item not found

