# Read Patient Document Groups — Secondary Account

> Perform Read Patient Document Groups — Secondary Account through Brightree.

Source: [https://genhealth.ai/docs/workflows/integrations/brightree/brightree_read_patient_document_groups_secondary](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_read_patient_document_groups_secondary)

Integration: [Brightree](https://genhealth.ai/docs/workflows/integrations/brightree.md)

- Handler: `brightree_read_patient_document_groups_secondary`

## 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": "Brightree",
  "params": {
    "account_profile": "secondary"
  },
  "handler": "brightree_read_patient_document_groups_secondary"
}

```

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

## Inputs

- `patient_key` — Patient Key (expression, required)
  Required literal value or workflow expression.
- `document_type` — Document Type (expression, required)
  Required literal value or workflow expression.
- `account_profile` — Account Profile (select)
  Optional selected identifier or value.
  Default: `"secondary"`
  Options: Secondary ("secondary")

## Outputs

- `success` — Success
- `patient_key` — Patient Key
- `document_type` — Document Type
- `groups` — Groups
- `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": [
    "patient_key",
    "document_type"
  ],
  "properties": {
    "patient_key": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "document_type": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "account_profile": {
      "enum": [
        "secondary"
      ],
      "type": "string",
      "default": "secondary",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "groups": {},
    "success": {},
    "patient_key": {},
    "document_type": {}
  },
  "additionalProperties": true
}
```
