MemberSim generates realistic synthetic claims and payer data for testing claims processing systems, payment integrity, and benefits administration.
Use this skill when the user requests healthcare claims, payer data, or benefits administration cohorts. This is the primary skill for generating realistic synthetic claims and member data.
When to apply this skill:
Key capabilities:
For specific claims cohorts, load the appropriate cohort skill from the table below.
MemberSim generates synthetic claims and payer data for testing claims processing, payment integrity, and benefits administration:
Request: "Generate a professional claim for an office visit"
{
"claim": {
"claim_id": "CLM20250115000001",
"claim_type": "PROFESSIONAL",
"member_id": "MEM001234",
"provider_npi": "1234567890",
"service_date": "2025-01-15",
"place_of_service": "11",
"principal_diagnosis": "I10",
"claim_lines": [
{
"line_number": 1,
"procedure_code": "99214",
"charge_amount": 175.00,
"units": 1
}
]
},
"adjudication": {
"status": "paid",
"allowed_amount": 125.00,
"paid_amount": 100.00,
"copay": 25.00
}
}
Request: "Generate an inpatient claim for heart failure admission"
Claude loads facility-claims.md and produces a complete 837I-style claim:
{
"claim": {
"claim_type": "INSTITUTIONAL",
"principal_diagnosis": "I50.9",
"drg": { "ms_drg": "291", "description": "Heart failure & shock w/o CC/MCC" },
"admit_date": "2025-01-10",
"discharge_date": "2025-01-13",
"claim_lines": [
{ "revenue_code": "0120", "description": "Room and board - semi-private", "per_diem": 1800.00, "units": 3 },
{ "revenue_code": "0250", "description": "Pharmacy", "charge_amount": 950.00 },
{ "revenue_code": "0300", "description": "Laboratory", "charge_amount": 1200.00 }
]
}
}
Load the appropriate cohort based on user request:
| Cohort | Trigger Phrases | File |
|---|---|---|
| Plan & Benefits | plan, benefit plan, HMO, PPO, HDHP, copay, deductible structure | plan-benefits.md |
| Enrollment & Eligibility | enrollment, eligibility, 834, 270, 271, coverage | enrollment-eligibility.md |
| Professional Claims | office visit, 837P, physician claim, E&M | professional-claims.md |
| Facility Claims | hospital, inpatient, 837I, DRG, UB-04 | facility-claims.md |
| Prior Authorization | prior auth, pre-cert, authorization, PA | prior-authorization.md |
| Accumulator Tracking | deductible, OOP, accumulator, cost sharing | accumulator-tracking.md |
| Value-Based Care | quality measures, VBC, HEDIS, risk adjustment, HCC, care gaps | value-based-care.md |
| Behavioral Health | mental health, psychiatry, psychotherapy, substance abuse, SUD | behavioral-health.md |
| Parameter | Type | Default | Description |
|---|---|---|---|
| claim_type | string | PROFESSIONAL | PROFESSIONAL, INSTITUTIONAL, DENTAL |
| claim_status | string | paid | paid, denied, pending, partial |
| network_status | string | in-network | in-network, out-of-network |
| member_age | int or range | 18-65 | Member age |
| plan_type | string | PPO | HMO, PPO, EPO, POS, HDHP |
| Entity | Key Fields |
|---|---|
| Member | member_id, subscriber_id, group_id, plan_code, coverage_start/end, PCP (HMO) |
| Claim | claim_id, claim_type, member_id, provider_npi, service dates, diagnosis codes, claim_lines[] |
| ClaimLine | procedure_code (CPT/HCPCS), modifiers, units, charge_amount, revenue_code (institutional) |
| Adjudication | status (paid/denied/pending), allowed_amount, paid_amount, deductible, copay, coinsurance, adjustment_reason_codes |
| Plan | plan_type (HMO/PPO/etc.), deductibles, OOP maximums, copays, coinsurance rates, network requirements |
| Accumulator | deductible_accumulated vs remaining, OOP/MOOP accumulated vs remaining, family vs individual tracking |
See ../../references/data-models.md for complete schemas.
1. Verify eligibility (coverage active on service date)
2. Check network status (in-network vs OON)
3. Determine allowed amount (fee schedule or % of charges)
4. Apply cost sharing:
a. Deductible (if not met)
b. Copay (fixed amount)
c. Coinsurance (% of allowed after deductible)
5. Calculate paid amount = allowed - member responsibility
6. Update accumulators (deductible accumulated/remaining, OOP/MOOP accumulated/remaining)
| Code | Description | Cohort |
|---|---|---|
| CO-4 | Procedure code inconsistent with modifier | Invalid modifier |
| CO-45 | Charge exceeds fee schedule | UCR violation |
| CO-50 | Non-covered services | Benefit exclusion |
| CO-96 | Non-covered charge(s) | Out of network, no OON benefit |
| CO-97 | Benefit included in another service | Bundling |
| PR-1 | Deductible amount | Member responsibility |
| PR-2 | Coinsurance amount | Member responsibility |
| PR-3 | Copay amount | Member responsibility |
| Format | Request | Use Case |
|---|---|---|
| JSON | default | API testing |
| X12 834 | "as 834", "X12 enrollment" | Enrollment file |
| X12 270 | "as 270", "eligibility inquiry" | Eligibility request |
| X12 271 | "as 271", "eligibility response" | Eligibility response |
| X12 837P | "as 837P", "X12 professional" | Claims submission |
| X12 837I | "as 837I", "X12 institutional" | Facility claims |
| X12 835 | "as 835", "remittance" | Payment posting |
| CSV | "as CSV" | Analytics |
| SQL | "as SQL" | Database loading |
See ../../formats/ for transformation skills.
Request: "Generate a paid claim for a 99214 office visit for hypertension"
{
"member": {
"member_id": "MEM001234",
"name": { "given_name": "Sarah", "family_name": "Johnson" },
"birth_date": "1978-06-15",
"gender": "F",
"plan_code": "PPO-GOLD",
"coverage_start": "2024-01-01"
},
"claim": {
"claim_id": "CLM20250115000001",
"claim_type": "PROFESSIONAL",
"member_id": "MEM001234",
"provider_npi": "1234567890",
"service_date": "2025-01-15",
"place_of_service": "11",
"principal_diagnosis": "I10",
"claim_lines": [
{
"line_number": 1,
"procedure_code": "99214",
"charge_amount": 175.00,
"units": 1,
"diagnosis_pointers": [1]
}
]
},
"adjudication": {
"status": "paid",
"allowed_amount": 125.00,
"deductible": 0.00,
"copay": 25.00,
"coinsurance": 0.00,
"paid_amount": 100.00,
"patient_responsibility": 25.00
}
}
Request: "Generate a denied claim for MRI without prior authorization"
{
"claim": {
"claim_id": "CLM20250115000002",
"claim_type": "PROFESSIONAL",
"service_date": "2025-01-15",
"place_of_service": "22",
"principal_diagnosis": "M54.5",
"claim_lines": [
{
"line_number": 1,
"procedure_code": "72148",
"charge_amount": 1500.00,
"units": 1
}
]
},
"adjudication": {
"status": "denied",
"denial_reason": "CO-15",
"denial_message": "Prior authorization required",
"allowed_amount": 0.00,
"paid_amount": 0.00
}
}
See claim-examples.md for additional examples: partial payment with deductible application, oncology infusion claims, OON emergency, and telehealth visits.
MemberSim claims correspond to PatientSim clinical encounters:
| MemberSim Skill | PatientSim Cohorts | Integration |
|---|---|---|
| professional-claims.md | Office visits, consults | Match E&M codes to encounter complexity |
| facility-claims.md | Inpatient, ED, surgery | Match DRG to admission diagnoses |
| prior-authorization.md | Elective procedures | PA approved → procedure scheduled |
| behavioral-health.md | Psychiatric care | Match visit types and diagnoses |
PatientSim Cohort Links:
Integration Pattern: Generate clinical encounter in PatientSim first, then use MemberSim to create corresponding claims with matching service dates, diagnosis codes, and procedures.
Medical and pharmacy benefits are often coordinated:
| MemberSim Skill | RxMemberSim Skill | Integration |
|---|---|---|
| plan-benefits.md | formulary-management.md | Coordinated benefit design |
| accumulator-tracking.md | rx-accumulator.md | Combined deductible/OOP |
| prior-authorization.md | rx-prior-auth.md | Medical vs. pharmacy PA |
| enrollment-eligibility.md | rx-enrollment.md | Synchronized coverage |
Integration Pattern: For integrated medical+Rx benefits, ensure accumulators are synchronized and coverage dates match. Some specialty drugs are covered under medical benefit (infused) vs. pharmacy benefit (oral).
PopulationSim provides real-world reference data (CDC PLACES, SVI, ADI) for actuarially realistic member generation. When geography is specified, look up actual prevalence rates and demographics to ground synthetic member panels.
Pattern: (1) Look up county/tract data by FIPS code, (2) apply prevalence rates to member generation, (3) include data provenance in output.
| Source | Table | Use in MemberSim |
|---|---|---|
| CDC PLACES County | population.places_county (via healthsim_query_reference) |
Utilization rates, risk adjustment |
| SVI County | population.svi_county (via healthsim_query_reference) |
SDOH factors, plan selection |
| ADI Block Group | population.adi_blockgroup (via healthsim_query_reference) |
Deprivation-based adherence |
| PopulationSim Skill | MemberSim Application |
|---|---|
| data-lookup.md | Prevalence rates for risk adjustment |
| county-profile.md | Service area demographics |
| svi-analysis.md | Social vulnerability → plan tier, adherence |
| adi-analysis.md | Area deprivation → utilization patterns |
Key Principle: When geography is specified, always ground member generation in real PopulationSim data for actuarially realistic synthetic panels.
NetworkSim provides network context for claims processing:
| MemberSim Need | NetworkSim Skill | Integration |
|---|---|---|
| Provider network status | network-for-member.md | In-network vs OON determination |
| Benefit cost sharing | benefit-for-claim.md | Copay, coinsurance, deductible |
| Network configuration | synthetic-network.md | HMO/PPO/tiered structure |
Integration Pattern: Use NetworkSim to determine network status before adjudicating claims. Network type (HMO/PPO) affects whether out-of-network claims are covered and at what cost share.
Members may participate in clinical trials with claims integration:
| MemberSim Context | TrialSim Integration | Claims Impact |
|---|---|---|
| Specialty drug coverage | Trial drug provided free | Reduced Rx claims during trial |
| Standard of care | SOC claims continue | Normal claim adjudication |
| Trial-related AEs | May generate medical claims | AE → ED/inpatient claims |
Integration Pattern: When a member enrolls in a trial, standard of care claims continue through MemberSim while trial-specific treatments are tracked in TrialSim. Trial-related adverse events may generate claims.
MemberSim integrates with the Generative Framework for specification-driven generation at scale.
Use profile specifications to generate member populations:
"Use the commercial healthy profile to generate 500 members"
The Profile Executor will:
Attach journey specifications to create claims over time:
"Add the new member onboarding journey to each member"
The Journey Executor will:
When generating across products, MemberSim entities are automatically linked:
| MemberSim Entity | Links To |
|---|---|
| Member | PatientSim Patient (via SSN) |
| Claim | PatientSim Encounter |
| Authorization | PatientSim Referral |
| Rx Claim | RxMemberSim Fill |