# Assign Mask to Patient

> Perform Assign Mask to Patient through MaskFit.

Source: [https://genhealth.ai/docs/workflows/integrations/mask-fit/maskfit_assign_mask](https://genhealth.ai/docs/workflows/integrations/mask-fit/maskfit_assign_mask)

Integration: [MaskFit](https://genhealth.ai/docs/workflows/integrations/mask-fit.md)

- Handler: `maskfit_assign_mask`

- Connection type: `maskfit`

## 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": "MaskFit",
  "params": {},
  "handler": "maskfit_assign_mask"
}

```

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

## Inputs

- `mask_id` — Mask Id (expression, required)
  Required literal value or workflow expression.
- `patient_id` — Patient Id (expression)
  Optional literal value or workflow expression.
- `external_id` — External Id (expression)
  Optional literal value or workflow expression.
- `institution_id` — Institution Id (expression)
  Optional literal value or workflow expression.
- `authorized_user_email` — Authorized User Email (expression)
  Optional literal value or workflow expression.

## Outputs

- `assigned` — Assigned
- `mask_id` — Mask Id
- `message` — Message
- `success` — Success
- `error` — Error
- `failure_category` — Failure Category
- `error_code` — Error Code
- `status_code` — Status Code
- `maskfit_message` — Maskfit Message
- `retryable` — Retryable

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": [
    "mask_id"
  ],
  "properties": {
    "mask_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "patient_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "external_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "institution_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "authorized_user_email": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "mask_id": {},
    "message": {},
    "success": {},
    "assigned": {},
    "retryable": {},
    "error_code": {},
    "status_code": {},
    "maskfit_message": {},
    "failure_category": {}
  },
  "additionalProperties": true
}
```
