A MuleSoft IDP prompt that reads a scanned insurance card and classifies the payer, plan type, and member/group IDs into a structured record, disambiguating similarly-named ID fields.
IDP Prompt — Insurance Card Extraction
Objective: Insurance cards pack payer name, plan type, and several visually similar ID numbers onto a small, inconsistently laid-out card. Manually keying these into an eligibility check or intake record is a common source of typos. This prompt extracts and classifies the card's fields into a structured record.
Prerequisites
- MuleSoft IDP (Einstein) enabled; a
GENERIC document action created in Anypoint IDP, scoped to the insurance-card page (pair with a page-classification prompt if the card arrives inside a larger packet).
- IDP Connector wired into the calling Mule app.
- Document-action prompt configured with
source: "llm".
The prompt
Extract health insurance information from the document.
IMPORTANT: You MUST respond with ONLY a valid JSON object. No markdown, no explanation, no code fences. Use null for any field not found in the document.
Output format (JSON object):
{"Payer Name": "string|null", "Member ID": "string|null", "Group Number": "string|null", "Plan Type": "string|null (Medicaid|Commercial|Medicare|Other)", "Insurance Card Number": "string|null", "ID Number": "string|null"}
Sample payload — extraction output
{
"Payer Name": "Anthem Blue Cross",
"Member ID": "ZLB123456789",
"Group Number": "0098234",
"Plan Type": "Commercial",
"Insurance Card Number": "ZLB123456789",
"ID Number": null
}
Testing and validation
- Happy path: a standard commercial card returns Payer Name, Member ID, Group Number, and Plan Type populated correctly.
- Edge case: a Medicare card with both a Medicare Beneficiary Identifier and a supplemental plan's own member ID printed — verify the model doesn't conflate the two into a single
Member ID value.
- Confirm
Plan Type always lands in the fixed enum (Medicaid|Commercial|Medicare|Other) even when the card's own wording differs (e.g. "PPO" should map to Commercial, not be passed through verbatim).
Deliverable: A structured insurance record ready to drive an eligibility check or populate a patient's coverage fields without manual card re-keying.