# Find Most Recent Unalerted Order

> Perform Find Most Recent Unalerted Order through ClaimSoft.

Source: [https://genhealth.ai/docs/workflows/integrations/claim-soft/claimsoft_find_most_recent_unalerted_order](https://genhealth.ai/docs/workflows/integrations/claim-soft/claimsoft_find_most_recent_unalerted_order)

Integration: [ClaimSoft](https://genhealth.ai/docs/workflows/integrations/claim-soft.md)

- Handler: `claimsoft_find_most_recent_unalerted_order`

- Connection type: `claimsoft`

## Inputs

- `patient_id` — Patient Id (expression, required)
  Required literal value or workflow expression.
- `status_filter` — Status Filter (json)
  Optional JSON value.
  Options: 1 ("1"), 2 ("2"), 3 ("3"), 4 ("4"), 5 ("5"), 7 ("7"), 8 ("8")

## Outputs

- `found` — Found
- `order_id` — Order Id
- `order_number` — Order Number
- `url` — Url
- `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": [
    "patient_id"
  ],
  "properties": {
    "patient_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "status_filter": {
      "enum": [
        "1",
        "2",
        "3",
        "4",
        "5",
        "7",
        "8"
      ],
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "url": {},
    "error": {},
    "found": {},
    "order_id": {},
    "order_number": {}
  },
  "additionalProperties": true
}
```
