Insurance coverage summary

From FDU-INS/Insurance-Skills · View interactive version

Insurance coverage summary is an AI agent skill from the GitHub repository FDU-INS/Insurance-Skills. Retrieves and analyzes FHIR Coverage and Organization resources to produce a structured insurance summary with coordination of benefits analysis. Use when user asks to "check insurance", "coverage details", "verify coverage", "insurance summary", "what plan is the patient on", "primary vs secondary

How to use this skill

Skill file

Insurance Coverage Summary

Overview

Pull Coverage and Organization resources to produce a consolidated insurance summary. Identify primary and secondary coverage, extract plan details, policy and group numbers, coverage periods, and payor organizations. Flag expired coverage, missing authorization data, coverage gaps, and coordination of benefits issues. Output a structured summary suitable for front-desk verification, prior authorization workflows, or care coordination.

FHIR Resources Used

| Resource | Purpose | Search Parameters |

|----------|---------|-------------------|

| Coverage | Insurance plan details | patient, status |

| Organization | Payor/insurer details | Direct read by reference |

| Patient | Subscriber info, managing org | Direct read by ID |

| RelatedPerson | Subscriber if not self | Direct read by reference |

Instructions

Step 1: Pull All Coverage Resources

Tool: fhir_search
resourceType: "Coverage"
queryParams: "patient=[patient-id]"

Retrieve all Coverage resources regardless of status to capture full history. For each entry extract:

Step 2: Resolve Payor Organizations

For each Coverage resource, resolve the payor reference:

Tool: fhir_read
resourceType: "Organization"
id: "[payor-reference-id]"

Extract from the Organization:

Step 3: Determine Coverage Hierarchy

Establish primary vs secondary coverage:

  1. Use Coverage.order field if populated (1 = primary, 2 = secondary)
  2. If order is absent, apply coordination of benefits rules:

Step 4: Validate Coverage Status

For each Coverage resource, check:

Active Coverage Validation:

Flag: Expired Coverage

Flag: Missing Subscriber ID

Flag: Missing Group Number

Flag: No Primary Coverage

Flag: Dual Coverage Without Coordination

Step 5: Extract Benefit Details (If Available)

Check for cost-to-beneficiary information:

Note: Most FHIR servers do not populate costToBeneficiary in Coverage resources. If absent, note: "Benefit details not available in FHIR record. Verify with payor or eligibility check system."

Step 6: Check for Related Authorization References

Tool: fhir_search
resourceType: "Claim"
queryParams: "patient=[patient-id]&status=active&_count=5&_sort=-created"

If Claim resources are available, check for:

If no Claim resources, skip this step.

Step 7: Format Output

INSURANCE COVERAGE SUMMARY
============================
Patient: [name] ([patient-id])
Reviewed: [timestamp]
Total Coverage Records: [count] ([active count] active)

PRIMARY COVERAGE
================
Plan: [plan name from class]
Insurer: [Organization name]
Insurer Phone: [telecom]
Member ID: [subscriberId]
Group: [group class value] / [group class name]
Subscriber: [subscriber relationship] - [subscriber name if not self]
Network: [network]
Effective: [period.start] - [period.end or "Ongoing"]
Status: Active

Benefit Details (if available):
  Copay: $[amount] per [visit type]
  Coinsurance: [percentage]%
  Deductible: $[amount] (Individual) / $[amount] (Family)
  Out-of-Pocket Max: $[amount]

SECONDARY COVERAGE
==================
Plan: [plan name]
Insurer: [Organization name]
Member ID: [subscriberId]
Group: [group class value]
Effective: [period.start] - [period.end or "Ongoing"]
Status: Active

EXPIRED / INACTIVE COVERAGE
============================
1. [Plan name] - Expired: [period.end] - Status: [status]
   (Retained for historical reference)

FLAGS
=====
[!] [Any flagged issues from Step 4]

COORDINATION OF BENEFITS
=========================
Primary: [plan name] (Order: 1)
Secondary: [plan name] (Order: 2)
Determination method: [Coverage.order field / Birthday Rule / Medicare rules]

Examples

Example 1: Dual Coverage With Clear Hierarchy

User says: "What insurance does patient 22334 have?"

Actions:

  1. fhir_search Coverage?patient=22334 -- returns 2 active Coverage resources
  2. fhir_read Organization/[payor-id-1] -- Blue Cross Blue Shield
  3. fhir_read Organization/[payor-id-2] -- Medicare

Result:

INSURANCE COVERAGE SUMMARY
============================
Patient: Margaret Thompson (22334)
Reviewed: 2026-02-07T09:00:00Z
Total Coverage Records: 2 (2 active)

PRIMARY COVERAGE
================
Plan: Blue Cross Blue Shield PPO
Insurer: Blue Cross Blue Shield of Texas
Insurer Phone: (800) 521-2227
Member ID: XYZ123456789
Group: GRP-88901 / Acme Corporation Employee Plan
Subscriber: Self
Network: PPO National
Effective: 2025-01-01 - 2025-12-31
Status: Active

SECONDARY COVERAGE
==================
Plan: Medicare Part B
Insurer: Centers for Medicare & Medicaid Services
Member ID: 1EG4-TE5-MK72
Group: N/A
Subscriber: Self
Effective: 2023-08-01 - Ongoing
Status: Active

COORDINATION OF BENEFITS
=========================
Primary: Blue Cross Blue Shield PPO (Order: 1)
  Reason: Patient has active employer group health plan (EGHP).
  Medicare is secondary when EGHP coverage exists.
Secondary: Medicare Part B (Order: 2)

Example 2: Coverage Issues Detected

User says: "Check insurance for patient 55667"

Actions:

  1. fhir_search Coverage?patient=55667 -- returns 3 Coverage resources (1 active, 1 expired still marked active, 1 cancelled)
  2. fhir_read Organization/[payor-id] -- Aetna

Result:

INSURANCE COVERAGE SUMMARY
============================
Patient: Kevin Nguyen (55667)
Reviewed: 2026-02-07T09:15:00Z
Total Coverage Records: 3 (1 truly active)

PRIMARY COVERAGE
================
Plan: Aetna HMO
Insurer: Aetna Inc.
Insurer Phone: (800) 872-3862
Member ID: W123456789
Group: 0012345 / State University Health Plan
Subscriber: Self
Network: HMO Open Access
Effective: 2025-09-01 - 2026-08-31
Status: Active

EXPIRED / INACTIVE COVERAGE
============================
1. United Healthcare PPO - Status shows "active" but period ended 2025-08-31
   -> DATA QUALITY ISSUE: Status not updated to reflect termination
2. Medicaid - Status: Cancelled - Ended: 2025-08-31

FLAGS
=====
[!] EXPIRED COVERAGE NOT UPDATED: United Healthcare PPO (Coverage/cov-002) has
    period.end = 2025-08-31 but status remains "active". Update to "cancelled".
[!] SINGLE COVERAGE ONLY: No secondary insurance identified.
[!] MISSING BENEFIT DETAILS: No copay, coinsurance, or deductible data in
    FHIR record. Contact Aetna for benefit verification.

RECOMMENDATION
==============
Update Coverage/cov-002 status to reflect expiration:
  Tool: fhir_update
  resourceType: "Coverage"
  id: "cov-002"
  resource: { "status": "cancelled", ... }

Example 3: No Coverage Found

User says: "Does patient 99888 have insurance?"

Actions:

  1. fhir_search Coverage?patient=99888 -- returns 0 entries

Result:

INSURANCE COVERAGE SUMMARY
============================
Patient: Carlos Mendez (99888)
Reviewed: 2026-02-07T09:30:00Z
Total Coverage Records: 0

FLAGS
=====
[!] NO INSURANCE COVERAGE ON FILE
    No Coverage resources found for this patient. This may indicate:
    - Self-pay / uninsured patient
    - Coverage data not yet entered
    - Coverage stored in a different system not connected to this FHIR server

RECOMMENDATION
==============
1. Verify insurance status with patient
2. Check if coverage is documented in the practice management system
3. Screen for Medicaid/marketplace eligibility if uninsured
4. Document self-pay status if confirmed uninsured

Troubleshooting

Coverage Resources Lack Class Details (No Plan Name, No Group Number)

Multiple Coverage Resources With Same Payor

Coverage.order Not Populated

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.