# AnalyzeIdentityDocumentResponse

Model ID: `AnalyzeIdentityDocumentResponse`

OCR-only response — the authenticated identity-document route no longer
mirrors the image anywhere. Persistence happens via the optional
``drivers_license`` block on POST /auth/register or via
PUT /patients/drivers-license.

Type: `object`

## Fields

| Field | Type | Required | Format | Allowed values | Default | Nullable | Description |
|---|---|---:|---|---|---|---:|---|
| `date_of_birth` | `string|null` | Yes |  |  |  | Yes | Extracted date of birth as printed, when Textract detected it. |
| `demographics_match` | [`DemographicsMatch`](./DemographicsMatch.md) | No |  |  |  | Yes | Comparison against the patient record, present only when verification against demographics was requested. |
| `document_number` | `string|null` | Yes |  |  |  | Yes | Extracted document/licence number, when Textract detected it. |
| `document_type` | `string|null` | Yes |  |  |  | Yes | Extracted document type (e.g. driver's licence, passport), when Textract detected it. |
| `expiry_date` | `string|null` | Yes |  |  |  | Yes | Extracted expiry date as printed, when Textract detected it. |
| `first_name` | `string|null` | Yes |  |  |  | Yes | Extracted first name, when Textract detected it. |
| `issuing_country` | `string|null` | Yes |  |  |  | Yes | Extracted issuing country, when Textract detected it. |
| `last_name` | `string|null` | Yes |  |  |  | Yes | Extracted last name, when Textract detected it. |
| `raw_fields` | `object` | Yes |  |  |  | No | All Textract-extracted field values, keyed by Textract field name. |
| `verified` | `boolean` | Yes |  |  |  | No | Whether the document is considered verified: full name+DOB match when compared against demographics, otherwise whether a document number was read. |

## Example

None declared in canonical OpenAPI.
