# Read Encounter

> Perform Read Encounter through eClinicalWorks.

Source: [https://genhealth.ai/docs/workflows/integrations/eclinicalworks/ecw_read_encounter](https://genhealth.ai/docs/workflows/integrations/eclinicalworks/ecw_read_encounter)

Integration: [eClinicalWorks](https://genhealth.ai/docs/workflows/integrations/eclinicalworks.md)

- Handler: `ecw_read_encounter`

- Connection type: `eclinicalworks`

## Use in a workflow

Copy this discovered node config, fill params from the input contract, and validate the complete graph. Integration results are available as {{node_id.default.field}}. Check business success before dependent writes; completion alone does not prove business success.

```json

{
  "_group": "eClinicalWorks",
  "params": {
    "include_prior_encounter_diagnoses": false
  },
  "handler": "ecw_read_encounter"
}

```

[Action contracts](https://genhealth.ai/docs/workflows/action-contracts.md) · [Run recovery](https://genhealth.ai/docs/workflows/operations.md)

## Inputs

- `encounter_id` — Encounter Id (text, required)
  Required text value.
- `visit_type_allowlist` — Visit Type Allowlist (multi_select)
  Optional list of selected values.
- `include_prior_encounter_diagnoses` — Include Prior Encounter Diagnoses (boolean)
  Optional true-or-false value.
  Default: `false`
- `no_dx_required_visit_types` — No Dx Required Visit Types (multi_select)
  Optional list of selected values.
- `testing_visit_types` — Testing Visit Types (multi_select)
  Optional list of selected values.
- `insurance_name_prefixes` — Insurance Name Prefixes (multi_select)
  Optional list of selected values.

## Outputs

- `success` — Success
- `patient_id` — Patient Id
- `encounter_id` — Encounter Id
- `member_id` — Member Id
- `patient_first_name` — Patient First Name
- `patient_last_name` — Patient Last Name
- `patient_dob` — Patient Dob
- `visit_type` — Visit Type
- `visit_date` — Visit Date
- `diagnosis_codes` — Diagnosis Codes
- `assessment_plan` — Assessment Plan
- `progress_note_comment` — Progress Note Comment
- `reason` — Reason
- `supervising_provider_name` — Supervising Provider Name
- `appointment_provider_name` — Appointment Provider Name
- `supervising_provider_last_name` — Supervising Provider Last Name
- `referring_provider_name` — Referring Provider Name
- `patient_address` — Patient Address
- `patient_city` — Patient City
- `patient_zip` — Patient Zip
- `diagnosis_source` — Diagnosis Source
- `diagnosis_source_encounter_id` — Diagnosis Source Encounter Id
- `prior_encounter_id` — Prior Encounter Id
- `prior_encounter_date` — Prior Encounter Date
- `prior_encounter_diagnosis_codes` — Prior Encounter Diagnosis Codes
- `prior_encounter_assessment_plan` — Prior Encounter Assessment Plan
- `failure_category` — Failure Category
- `error` — Error

Output schema completeness: `best_effort_declared`

## Safety

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

## Schemas

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

### Input schema

```json
{
  "type": "object",
  "required": [
    "encounter_id"
  ],
  "properties": {
    "encounter_id": {
      "type": "string",
      "description": "Required text value.",
      "x-workflow-field-type": "text"
    },
    "testing_visit_types": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Optional list of selected values.",
      "x-workflow-field-type": "multi_select"
    },
    "visit_type_allowlist": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Optional list of selected values.",
      "x-workflow-field-type": "multi_select"
    },
    "insurance_name_prefixes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Optional list of selected values.",
      "x-workflow-field-type": "multi_select"
    },
    "no_dx_required_visit_types": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Optional list of selected values.",
      "x-workflow-field-type": "multi_select"
    },
    "include_prior_encounter_diagnoses": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "reason": {},
    "success": {},
    "member_id": {},
    "patient_id": {},
    "visit_date": {},
    "visit_type": {},
    "patient_dob": {},
    "patient_zip": {},
    "encounter_id": {},
    "patient_city": {},
    "assessment_plan": {},
    "diagnosis_codes": {},
    "patient_address": {},
    "diagnosis_source": {},
    "failure_category": {},
    "patient_last_name": {},
    "patient_first_name": {},
    "prior_encounter_id": {},
    "prior_encounter_date": {},
    "progress_note_comment": {},
    "referring_provider_name": {},
    "appointment_provider_name": {},
    "supervising_provider_name": {},
    "diagnosis_source_encounter_id": {},
    "supervising_provider_last_name": {},
    "prior_encounter_assessment_plan": {},
    "prior_encounter_diagnosis_codes": {}
  },
  "additionalProperties": true
}
```
