Northstar Payer Operations Skill
Complete structured prior authorization, appeal, payment integrity, and finance-margin tasks against the Northstar Health Plan shared payer operations environment. For every task, follow the workflow below; return JSON only (no markdown, prose, or commentary outside the JSON object).
1. Read the Inputs
Read all three task inputs before touching the environment:
| Input |
Location |
Purpose |
| Prompt |
prompt.txt |
Business problem, target ID, role, reporting date, deliverables |
| Task context |
payloads/task_context.json |
Structured metadata: case/claim/queue IDs, dates, domain, review scope |
| Answer template |
payloads/answer_template.json |
Required JSON shape — top-level keys, field types, enums, ordering rules, optional fields flag |
From the prompt and task context, extract:
- Target business ID (case_id, claim_id, appeal_id, or queue)
- Requester role (UM nurse, pharmacy appeals coordinator, payment integrity analyst, P2P coordinator, UM-finance analyst)
- Reporting date or reporting period
- Service domain (physical_therapy, pharmacy, cardiac_imaging)
- Work type (determination, appeal disposition, claim repricing, P2P summary, margin queue)
2. Access the Environment
Base URL and Credentials
Resolve <TASK_ENV_BASE_URL> from the task prompt or task context. The SQL endpoint uses bearer authentication:
POST {base_url}/sql/query
Authorization: Bearer pa-review-token-014
Content-Type: application/json
Body: {"query": "<SQL statement>"}
Business REST Endpoints (GET only)
| Endpoint |
Use |
GET / |
Environment root / health |
GET /portal |
Plan portal landing data |
GET /api/tables |
List available data tables |
GET /api/cases |
List all cases |
GET /api/cases/{case_id} |
Case detail, status, lines, member and plan context |
GET /api/policies |
List all policies |
GET /api/policies/{policy_id} |
Policy criteria, indications, coverage rules |
GET /api/documents/{document_id} |
Clinical documents, prior auth letters, denial notices |
GET /api/rate-schedules |
Rate/benchmark schedules for repricing |
GET /api/appeals |
Appeal records, routing, deadlines, outcomes |
SQL Query Patterns
Use POST /sql/query for records not surfaced by the REST endpoints. Common query patterns observed across tasks:
- Case lines / request items: Query for service lines, CPT codes, units, modifiers attached to a case
- Member / plan context: Query for member eligibility, plan type, benefit year
- Clinical evidence documents: Query documents by case, type, date
- Prior medication / drug trial records: Query fill history, trial attempts, outcomes
- Policy criteria details: Query criteria codes, requirements, thresholds
- Rate / benchmark data: Query rates by CPT, modifier, effective date range
- Claim lines and payments: Query claim lines, paid amounts, authorization references
- P2P events: Query peer-to-peer discussion records, outcomes
- Appeal records: Query by case, appeal ID, filing date, status
- Service margin rows: Query by month, payer segment, CPT, cost and revenue fields
Always prefer the REST endpoints first; fall back to SQL only when the needed data is not available through REST.
3. Collect and Cross-Reference Evidence
For every task type, collect these categories of evidence and cross-reference them:
3a. Identify the Controlling Evidence Sources
| Task type |
Primary sources |
| UM prior authorization |
Case record, clinical documents (eval, POC), authorizations, policy criteria |
| Pharmacy appeal |
Appeal record, case, drug trial evidence, denial notice, policy criteria |
| Payment integrity / repricing |
Claim record, claim lines, rate/benchmark schedules (current vs. stale), authorization |
| Peer-to-peer |
Case record, P2P event, clinical documents, policy criteria |
| Finance margin queue |
Service margin rows by payer segment, CPT, cost, revenue |
3b. Evaluate Against Criteria or Requirements
- Map each applicable policy criterion ID to its result:
met, not_met, unclear, not_applicable (or partial for drug criteria).
- For each criterion, cite the specific environment record(s) that support the result.
- Flag unresolved criteria explicitly — list their IDs.
- Identify stale, excluded, or missing records and document why they were excluded.
3c. Determine the Source Precedence Rule
Select exactly one from the six known precedence rules based on task type:
| Precedence rule |
Applies when |
current_clinical_records_over_stale_export |
UM clinical determination — current eval/POC documents override stale exports |
payer_appeal_before_manufacturer_assistance |
Pharmacy appeal — appeal evidence takes priority over manufacturer assistance screening |
effective_benchmark_by_plan_modifier_and_date |
Payment integrity — current rate schedule by plan, modifier, and effective date overrides stale benchmarks |
new_patient_specific_p2p_information |
Peer-to-peer — new clinical information from the P2P discussion controls the final determination |
margin_threshold_then_charge_sensitivity |
Finance margin queue — classify below-threshold rows first, then flag charge-sensitive rows |
appeal_deadline_then_clinical_then_payment_integrity |
Cross-domain appeals — deadline urgency controls, then clinical merit, then payment integrity concerns |
4. Construct the Answer JSON
4a. Follow the Template Exactly
- Include every
required_top_level_field.
- Match enum values precisely (case-sensitive).
- Order list items as specified by each field's ordering rule.
- Apply numeric precision rules: currency to 2 decimal places, ratios to 4 decimal places.
- Use
null for absent modifiers (never empty string).
- Dates in
YYYY-MM-DD format.
- CPT codes in ascending order.
4b. Build the basis_audit Object
Every answer must include:
"basis_audit": {
"source_precedence": "<one of the six rules>",
"controlling_record_ids": ["<records that directly control the result>"],
"exception_record_ids": ["<gaps, exclusions, stale records, missing information>"],
"precedence_record_order": ["<controlling and exception records in priority order>"]
}
controlling_record_ids ordering rule: Use the operational evidence order — records that directly determine the outcome appear first.
exception_record_ids ordering rule: Criteria or route gaps before stale or excluded records when both appear.
precedence_record_order ordering rule: List the union of controlling and exception records in source-precedence order, highest priority first. A record may appear in both controlling_record_ids and exception_record_ids if it controls one part of the result but is also gapped for another.
4c. Validate Before Returning
- Does the JSON parse?
- Are all required top-level keys present?
- Do all enum values match the template's allowed choices?
- Are lists ordered per the template's ordering rules?
- Are currency values rounded to cents?
- Is
basis_audit complete with all required keys?
- Are all record IDs legitimate environment record identifiers (not invented)?
5. Return the Answer
Return only the JSON object. No markdown fences, no prose, no commentary. The answer must be a single valid JSON object.
1---2name: fewshot-attempt-03-383description: Northstar Payer Operations Skill4---5# Northstar Payer Operations Skill67Complete structured prior authorization, appeal, payment integrity, and finance-margin tasks against the Northstar Health Plan shared payer operations environment. For every task, follow the workflow below; return JSON only (no markdown, prose, or commentary outside the JSON object).89---1011## 1. Read the Inputs1213Read all three task inputs before touching the environment:1415| Input | Location | Purpose |16|-------|----------|---------|17| Prompt | `prompt.txt` | Business problem, target ID, role, reporting date, deliverables |18| Task context | `payloads/task_context.json` | Structured metadata: case/claim/queue IDs, dates, domain, review scope |19| Answer template | `payloads/answer_template.json` | Required JSON shape — top-level keys, field types, enums, ordering rules, optional fields flag |2021From the prompt and task context, extract:22- **Target business ID** (case_id, claim_id, appeal_id, or queue)23- **Requester role** (UM nurse, pharmacy appeals coordinator, payment integrity analyst, P2P coordinator, UM-finance analyst)24- **Reporting date** or **reporting period**25- **Service domain** (physical_therapy, pharmacy, cardiac_imaging)26- **Work type** (determination, appeal disposition, claim repricing, P2P summary, margin queue)2728---2930## 2. Access the Environment3132### Base URL and Credentials3334Resolve `<TASK_ENV_BASE_URL>` from the task prompt or task context. The SQL endpoint uses bearer authentication:3536```37POST {base_url}/sql/query38Authorization: Bearer pa-review-token-01439Content-Type: application/json40Body: {"query": "<SQL statement>"}41```4243### Business REST Endpoints (GET only)4445| Endpoint | Use |46|----------|-----|47| `GET /` | Environment root / health |48| `GET /portal` | Plan portal landing data |49| `GET /api/tables` | List available data tables |50| `GET /api/cases` | List all cases |51| `GET /api/cases/{case_id}` | Case detail, status, lines, member and plan context |52| `GET /api/policies` | List all policies |53| `GET /api/policies/{policy_id}` | Policy criteria, indications, coverage rules |54| `GET /api/documents/{document_id}` | Clinical documents, prior auth letters, denial notices |55| `GET /api/rate-schedules` | Rate/benchmark schedules for repricing |56| `GET /api/appeals` | Appeal records, routing, deadlines, outcomes |5758### SQL Query Patterns5960Use POST `/sql/query` for records not surfaced by the REST endpoints. Common query patterns observed across tasks:6162- **Case lines / request items**: Query for service lines, CPT codes, units, modifiers attached to a case63- **Member / plan context**: Query for member eligibility, plan type, benefit year64- **Clinical evidence documents**: Query documents by case, type, date65- **Prior medication / drug trial records**: Query fill history, trial attempts, outcomes66- **Policy criteria details**: Query criteria codes, requirements, thresholds67- **Rate / benchmark data**: Query rates by CPT, modifier, effective date range68- **Claim lines and payments**: Query claim lines, paid amounts, authorization references69- **P2P events**: Query peer-to-peer discussion records, outcomes70- **Appeal records**: Query by case, appeal ID, filing date, status71- **Service margin rows**: Query by month, payer segment, CPT, cost and revenue fields7273Always prefer the REST endpoints first; fall back to SQL only when the needed data is not available through REST.7475---7677## 3. Collect and Cross-Reference Evidence7879For every task type, collect these categories of evidence and cross-reference them:8081### 3a. Identify the Controlling Evidence Sources8283| Task type | Primary sources |84|-----------|----------------|85| UM prior authorization | Case record, clinical documents (eval, POC), authorizations, policy criteria |86| Pharmacy appeal | Appeal record, case, drug trial evidence, denial notice, policy criteria |87| Payment integrity / repricing | Claim record, claim lines, rate/benchmark schedules (current vs. stale), authorization |88| Peer-to-peer | Case record, P2P event, clinical documents, policy criteria |89| Finance margin queue | Service margin rows by payer segment, CPT, cost, revenue |9091### 3b. Evaluate Against Criteria or Requirements9293- Map each applicable policy criterion ID to its result: `met`, `not_met`, `unclear`, `not_applicable` (or `partial` for drug criteria).94- For each criterion, cite the specific environment record(s) that support the result.95- Flag unresolved criteria explicitly — list their IDs.96- Identify stale, excluded, or missing records and document why they were excluded.9798### 3c. Determine the Source Precedence Rule99100Select exactly one from the six known precedence rules based on task type:101102| Precedence rule | Applies when |103|-----------------|--------------|104| `current_clinical_records_over_stale_export` | UM clinical determination — current eval/POC documents override stale exports |105| `payer_appeal_before_manufacturer_assistance` | Pharmacy appeal — appeal evidence takes priority over manufacturer assistance screening |106| `effective_benchmark_by_plan_modifier_and_date` | Payment integrity — current rate schedule by plan, modifier, and effective date overrides stale benchmarks |107| `new_patient_specific_p2p_information` | Peer-to-peer — new clinical information from the P2P discussion controls the final determination |108| `margin_threshold_then_charge_sensitivity` | Finance margin queue — classify below-threshold rows first, then flag charge-sensitive rows |109| `appeal_deadline_then_clinical_then_payment_integrity` | Cross-domain appeals — deadline urgency controls, then clinical merit, then payment integrity concerns |110111---112113## 4. Construct the Answer JSON114115### 4a. Follow the Template Exactly116117- Include every `required_top_level_field`.118- Match enum values precisely (case-sensitive).119- Order list items as specified by each field's ordering rule.120- Apply numeric precision rules: currency to 2 decimal places, ratios to 4 decimal places.121- Use `null` for absent modifiers (never empty string).122- Dates in `YYYY-MM-DD` format.123- CPT codes in ascending order.124125### 4b. Build the basis_audit Object126127Every answer must include:128129```json130"basis_audit": {131 "source_precedence": "<one of the six rules>",132 "controlling_record_ids": ["<records that directly control the result>"],133 "exception_record_ids": ["<gaps, exclusions, stale records, missing information>"],134 "precedence_record_order": ["<controlling and exception records in priority order>"]135}136```137138**controlling_record_ids** ordering rule: Use the operational evidence order — records that directly determine the outcome appear first.139140**exception_record_ids** ordering rule: Criteria or route gaps before stale or excluded records when both appear.141142**precedence_record_order** ordering rule: List the union of controlling and exception records in source-precedence order, highest priority first. A record may appear in both controlling_record_ids and exception_record_ids if it controls one part of the result but is also gapped for another.143144### 4c. Validate Before Returning145146- Does the JSON parse?147- Are all required top-level keys present?148- Do all enum values match the template's allowed choices?149- Are lists ordered per the template's ordering rules?150- Are currency values rounded to cents?151- Is `basis_audit` complete with all required keys?152- Are all record IDs legitimate environment record identifiers (not invented)?153154---155156## 5. Return the Answer157158Return only the JSON object. No markdown fences, no prose, no commentary. The answer must be a single valid JSON object.