Locus Determine From Scores
locus_determine_from_scoresCompute a LOCUS Level of Care from dimension ratings you already have. Deterministic — no LLM, instant: composite + Determination Grid + the inviolable override floors (e.g. Risk-of-Harm=4 → minimum Level 5), applied in code. Provide EITHER the seven flat D* ratings (1-5 each; Dimension IV splits into IV-A Stress / IV-B Support) OR a per-reviewer agent_scores map. Sending both is refused (422) rather than scored: agent_scores would win and your flat ratings would be discarded, override floors included. Requires authentication.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| D4A_Stress | No | Recovery Environment — Stress (1-5). | |
| D4B_Support | No | Recovery Environment — Support (1-5). | |
| agent_scores | No | Per-reviewer scores keyed by reviewer name, aggregated by median. Shape: {"<reviewer>": {"D1_RiskOfHarm": 4, ...}}. Mutually exclusive with the flat D* fields — sending both is refused (422), not merged. An empty map {} counts as not supplied. | |
| D1_RiskOfHarm | No | Risk of Harm (1-5). | |
| D6_Engagement | No | Engagement & Recovery Status (1-5). | |
| D3_CoMorbidity | No | Medical/Addictive/Psychiatric Co-Morbidity (1-5). Capital M in CoMorbidity. | |
| D2_FunctionalStatus | No | Functional Status (1-5). | |
| D5_TreatmentHistory | No | Treatment & Recovery History (1-5). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes |