# Check Patient Exists

> Perform Check Patient Exists through NikoHealth.

Source: [https://genhealth.ai/docs/workflows/integrations/nikohealth/nikohealth_check_patient_exists](https://genhealth.ai/docs/workflows/integrations/nikohealth/nikohealth_check_patient_exists)

Integration: [NikoHealth](https://genhealth.ai/docs/workflows/integrations/nikohealth.md)

- Handler: `nikohealth_check_patient_exists`

- Connection type: `nikohealth`

## Inputs

- `document_id` — Document Id (expression, required)
  Required literal value or workflow expression.
- `duplicate_match_mode` — Duplicate Match Mode (select)
  Optional selected identifier or value.
  Default: `"strict"`
  Options: Strict ("strict"), Exact First Name, Last Name, and DOB ("exact_identity"), Review Near Matches ("review_near_matches"), Match on Available Identifiers (name-only when no DOB) ("available_identifiers")

## Outputs

- `success` — Success
- `patient_exists` — Patient Exists
- `niko_patient_id` — Niko Patient Id
- `doc_id` — Doc Id
- `patient_check_status` — Patient Check Status
- `ambiguous_patient_match` — Ambiguous Patient Match
- `ambiguous_patient_match_tag_id` — Ambiguous Patient Match Tag Id
- `error` — Error

Output schema completeness: `best_effort_declared`

## Safety

- External effect: `write`
- Confirmation recommended: no
- Retry safe: no
- Dry run supported: no

## Schemas

These schemas are first-pass authoring guidance. Runtime validation remains authoritative.

### Input schema

```json
{
  "type": "object",
  "required": [
    "document_id"
  ],
  "properties": {
    "document_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "duplicate_match_mode": {
      "enum": [
        "strict",
        "exact_identity",
        "review_near_matches",
        "available_identifiers"
      ],
      "type": "string",
      "default": "strict",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "doc_id": {},
    "success": {},
    "patient_exists": {},
    "niko_patient_id": {},
    "patient_check_status": {},
    "ambiguous_patient_match": {},
    "ambiguous_patient_match_tag_id": {}
  },
  "additionalProperties": true
}
```
