# AUTO-INS-011 Determine Claim Intake Priority Examples

These examples demonstrate the current DecisioQ flow for `AUTO-INS-011`:

1. Request `jwtToken` from `https://identity.vinquery.com/connect/token`.
2. Load `AUTO-INS-011` metadata from `https://dks.vinquery.com/decisioncatalog/decisions/AUTO-INS-011`.
3. Validate the selected `profileId` and `scenarioId`.
4. Read `constraints` from the decision detail response. If the array is missing or empty, all validated candidates proceed to criteria-based ranking.
5. Execute a catalog-shaped request at `https://dde.vinquery.com/api/v1/execute-catalog`.
6. Inspect `constraintSummary` and `decisionResult.excludedOptions` in the response. Excluded candidates do not participate in ranking.

Set these environment variables before running:

```text
DECISIOQ_CLIENT_ID
DECISIOQ_CLIENT_SECRET
```

Optional overrides:

```text
DECISIOQ_AUDIENCE=vinquery:api:decisioq
DECISIOQ_IDENTITY_URL=https://identity.vinquery.com/connect/token
DECISIOQ_DKS_URL=https://dks.vinquery.com
DECISIOQ_DDE_URL=https://dde.vinquery.com
```

Available examples:

- `auto-ins-011-execute.json`
- `curl/run-auto-ins-011.sh`
- `csharp/Program.cs.txt`
- `javascript/auto-ins-011.mjs`
- `typescript/auto-ins-011.ts`
- `python/auto_ins_011.py`
- `php/auto-ins-011.php`
- `go/auto-ins-011.go`
- `java/AutoIns011Example.java`
- `csharp-complete/`
- `decisioq-auto-ins-011-complete-example.zip`

All sample claim identifiers are fictional. Do not send real policyholder names, policy numbers, addresses, phone numbers, medical information, payment data, or unrestricted claim notes to DecisioQ.

## Constraint handling

This decision currently has no catalog-defined hard constraints. All validated candidates proceed to criteria-based ranking.

Client examples should still keep this pattern:

```text
constraints = decisionDetail.constraints || []
if constraints is empty:
  submit all validated candidates for ranking
else:
  show eligible and excluded candidates from constraintSummary and decisionResult.excludedOptions
```

For this example, the expected response has `constraintSummary.definedConstraintCount = 0`, `constraintSummary.excludedOptionCount = 0`, and an empty `decisionResult.excludedOptions` array.