Skip to main content

AI-Health Card Parser in Power Automate

AI-Health Card Parser is a Power Automate action by PDF4me that reads a health insurance card with AI and returns member ID, group number, plan type, coverage dates, and prescription benefit data as structured JSON. Use it to automate patient registration, insurance verification, or pharmacy benefit checks without manual data entry.

What this action does

PDF4me AI-Health Card Parser reads a health insurance card (PDF, PNG, JPG, or JPEG) and returns memberId, groupNumber, planType, insuranceProvider, memberName, coverage dates, and prescription benefit fields inside a healthData object, along with per-field confidence scores. Optionally set Body/customFieldKeys to pull additional fields beyond the standard set.

Related Blog Posts(1)

How Do I Authenticate My Power Automate Flow?​

Every PDF4me action in Power Automate requires a valid connection. Create or select one that holds your PDF4me API key so the flow can authenticate AI health card processing requests securely.

Important Facts You Should Not Miss​

Only two fields are always required
Health Card File Content (the document bytes) and Health Card Name (the filename with extension). Body/customFieldKeys lives under Advanced parameters and is optional.
Output nests under healthData
Member, plan, and prescription fields all sit inside processedData.healthData. Reference the nested path when mapping fields into later flow actions.
Check confidence scores before trusting the output
The confidence object scores key fields from 0 to 1. Route low-confidence extractions to manual review in insurance verification or billing flows.
Power Automate AI - Health Card Parser action configured with File Content and Body/Document/Name fields

Map File Content and Body/Document/Name, then expand Advanced parameters for Body/customFieldKeys.

Parameters​

Required: Health Card File Content and Health Card Name must always be provided. Body/customFieldKeys is an optional Advanced parameter.

ParameterRequiredWhat it doesExample
File ContentOptionalContent of the health card file to process. Map it from the file content returned by a previous action, such as SharePoint or OneDrive Get file content.@{body('Get_file_content')?['$content']}
File NameOptionalName of the health card file, including its extension (for example `healthcard.jpg`). Map it from the file name returned by a previous action.healthcard.jpg
customFieldKeysOptionalOptional list of custom field keys to extract.your value
Customisation NoteOptionalOptional customisation note for the extraction.your value

Output Fields​

FieldTypeWhat it contains
Member ID NoTextMember ID No as read from the health card.
Group NumberTextGroup Number as read from the health card.
Plan TypeTextPlan Type as read from the health card.
Insurance Provider NameTextInsurance Provider Name as read from the health card.
Member NameTextMember Name as read from the health card.
Date Of BirthTextDate of birth as string
Effective DateTextEffective date as string
RxBinTextRxBin as read from the health card.
RxPcnTextRxPcn as read from the health card.
RxGroupTextRxGroup as read from the health card.
Copay InfoArrayCopay Info found in the health card, as a list of text values.
CustomFieldsDataArrayCustom fields returned for the health card, as key and value pairs.
CustomFieldsData[].keyTextKey of the custom field.
CustomFieldsData[].valueTextValue of the custom field.
{
"success": true,
"message": "Health card processed successfully using AI",
"processedData": {
"healthData": {
"memberId": "M123456789",
"groupNumber": "GRP001234",
"planType": "PPO",
"insuranceProvider": "Blue Cross Blue Shield",
"memberName": "John Michael Smith",
"dateOfBirthStr": "1985-03-15",
"effectiveDateStr": "2024-01-01",
"rxBin": "123456",
"rxPcn": "ABC123",
"rxGroup": "RXGRP001",
"copayInfo": [
{ "service": "Primary Care", "copay": "$25" },
{ "service": "Specialist", "copay": "$50" },
{ "service": "Emergency Room", "copay": "$200" }
],
"confidence": {
"memberId": 0.95,
"memberName": 0.98,
"insuranceProvider": 0.92
}
},
"status": "Success",
"errors": [],
"jobId": "11111111-2222-3333-4444-555555555555"
},
"processingTimestamp": "2024-01-15T10:30:45.123Z"
}

How Do I Set Up AI-Health Card Parser in Power Automate?​

  1. Add PDF4me → AI-Health Card Parser to your Power Automate flow.
  2. Map Health Card File Content from a previous action (SharePoint, OneDrive, Dropbox, or an email attachment).
  3. Set Health Card Name with the file's extension (.pdf, .png, .jpg, or .jpeg).
  4. Optionally expand Advanced parameters and set Body/customFieldKeys for any fields beyond the standard set.
  5. Run the flow. The parsed result returns as a healthData object nested inside processedData, with member, plan, coverage, and prescription fields plus confidence scores.

Typical Setups​

Workflow ExamplesCommon Power Automate flow patterns using AI-Health Card Parser.
Patient registration intake
  1. A flow triggers when a patient uploads a health card image through a portal or email.
  2. AI-Health Card Parser extracts memberId, memberName, dateOfBirthStr, and insuranceProvider.
  3. The extracted fields are written to a SharePoint list or patient management system.
  4. A Condition checks the confidence object and routes low-confidence rows to manual review.
Insurance verification
  1. A flow triggers when a health card is received via email or SharePoint upload.
  2. AI-Health Card Parser extracts groupNumber, planType, and effectiveDateStr.
  3. A verification record is created and linked to the patient's insurance profile.
Pharmacy benefit lookup
  1. A patient uploads a health card to a pharmacy intake flow.
  2. AI-Health Card Parser extracts rxBin, rxPcn, and rxGroup.
  3. The prescription identifiers feed a pharmacy benefit verification step, and copayInfo drives the patient copay estimate.

Practical Tips​

Reference the nested healthData path
Extracted fields live under processedData.healthData, not at the top level of the response. Map the full path in downstream actions.
Always branch on success and confidence
Check success before writing extracted data downstream, and inspect the confidence object for any fields scored below your review threshold.
Custom fields extend, they do not replace
Body/customFieldKeys adds extra entries alongside the standard healthData fields, it does not narrow or filter the standard set.
copayInfo is an array, not a flat field
Loop over copayInfo with Apply to each when writing copay amounts to a table, since a card can list several services.
Match the file extension to the real format
Health Card Name must carry the true extension (.pdf, .png, .jpg, .jpeg) of the mapped File Content, a mismatched extension can affect processing.

Cheat Sheet​

FieldValue
ActionAI-Health Card Parser
Required fieldsHealth Card File Content, Health Card Name
Optional advanced fieldBody/customFieldKeys
Supported file types.pdf, .png, .jpg, .jpeg
Output rootprocessedData.healthData
Key output fieldsmemberId, groupNumber, planType, insuranceProvider, memberName, dateOfBirthStr, effectiveDateStr, rxBin, rxPcn, rxGroup, copayInfo, confidence

Common Questions​

What data can the AI-Health Card Parser extract from a health insurance card?+
Member ID, group number, plan type, insurance provider, member name, date of birth, effective date, Rx BIN, Rx PCN, Rx group, and a copayInfo array listing copay amounts by service type.
Does the action tell me how confident it is in the extracted fields?+
Yes. The confidence object returns a 0-1 score for key fields such as memberId, memberName, and insuranceProvider, so flows can route low-confidence extractions to manual review before the data reaches a patient or billing system.
Can I extract fields beyond the standard health card data set?+
Yes. Set Body/customFieldKeys to an array of additional field names. Each key you list is extracted alongside the standard healthData fields, in addition to the built-in set.
What file formats does the AI-Health Card Parser accept?+
PDF, PNG, JPG, and JPEG. Health Card Name must include the matching file extension for correct format detection and processing.
How do I use the extracted Rx BIN and PCN in a pharmacy workflow?+
The rxBin, rxPcn, and rxGroup output fields map directly to the identifiers pharmacy systems use for prescription benefit verification and claims submission. See <a href="https://learn.microsoft.com/en-us/azure/ai-services/document-intelligence/prebuilt/health-insurance-card?view=doc-intel-4.0.0" target="_blank" rel="noopener noreferrer">Microsoft's health insurance card data extraction reference</a> for the kind of structured fields these cards typically expose.

Industry Use Cases & Applications​

  • Patient Registration: Automate patient registration with health card data extraction
  • Insurance Verification: Verify patient insurance coverage automatically
  • Benefits Verification: Check patient benefits and coverage eligibility
  • Appointment Scheduling: Link insurance information to appointment records

Same Task on Other Platforms​

Get Help​