1---2name: northstar-payer-ops-83description: Assemble Northstar payer-operations JSON packets for prior authorization, appeal intake, peer-to-peer closure, claim repricing, and margin-queue analysis. Use when a task provides a Northstar task context and answer template and asks for a structured JSON-only disposition from case, claim, policy, document, rate, or finance records.4---56# Northstar Payer Ops78## Workflow9101. Read the task prompt, `task_context.json`, and `answer_template.json` first.112. Identify the target object, reporting date or period, and the exact output schema.123. Pull only the records needed for that target from the shared payer-operations environment.134. Derive values from returned facts and tables, not from memory.145. Build the output with the exact keys, enums, ordering, rounding, and null-handling the template requires.1516## General Rules1718- Return JSON only.19- Use exact field names from the template; do not add extras.20- Follow list ordering rules exactly.21- Use ISO dates and round monetary values to cents.22- Use `null` for absent modifiers or other nullable fields only when the schema allows it.23- Keep controlling records in `basis_audit.controlling_record_ids` and stale, excluded, or gap records in `basis_audit.exception_record_ids`.24- Order `basis_audit.precedence_record_order` from highest-priority controlling record to lower-priority exceptions.25- Use the schema's `source_precedence` rule to resolve conflicts between current, stale, and incomplete records.2627## Packet Families2829### Prior authorization / nurse review3031- Review case, member, plan, request lines, clinical documents, policy criteria, and any authorization record.32- Map each required criterion to the schema's result enum.33- Include current evidence documents and excluded stale documents.34- Set recommendation, route, final status, letter type, next action, and authorization terms from the controlling records.3536### Appeal / assistance intake3738- Review the appeal packet, medication failure evidence, drug trials or fills, and any assistance screen facts.39- Separate documented failures from undocumented or insufficient ones.40- Reflect required packet items, missing packet items, assistance status, and missing assistance fields exactly.41- Route standard, expedited, or assistance-only gaps to the next operational action.4243### Claim repricing / payment integrity4445- Use the current benchmark schedule that matches payer, plan type, service domain, CPT, modifier, and effective date.46- Reject stale exports when a current schedule applies.47- For each line, compute correct allowed amount, line recovery amount, and total recovery in claim-line order.48- Use the current schedule source and version in the top-level packet.4950### Peer-to-peer closure5152- Use the completed P2P event plus current clinical evidence and policy criteria.53- Decide whether the P2P changed the review.54- If adverse, supply the appeal deadline from the task rule and list unsupported PET factors or unresolved criteria.55- Set the recommended alternative modality only when the packet asks for one and the policy supports it.5657### Margin queue5859- For each listed queue row, compute `total_cost = variable_cost + fixed_cost_allocated`.60- Compute `margin = revenue - total_cost`.61- Compute `revenue_to_cost_ratio = revenue / total_cost`.62- Mark rows below the threshold and rows flagged as charge sensitive separately.63- Identify the top below-threshold issue and the dollar gap to 120% of cost.6465## Final Check6667- Verify the JSON parses.68- Verify enums, booleans, list order, and numeric precision against the template.69- Return only the JSON object.