generation
Conversation-driven specification and execution of healthcare data generation at scale. Use when building profiles, generating cohorts, creating journeys, batch generation, specifying distributions, or any at-scale data generation task.
- License 许可
- Apache-2.0
- 最近更新
- 2026-07-12
- Stars
- ★ 82
- Forks
- 18
01 前言 Front Matter
- name
- generation
- description
- Conversation-driven specification and execution of healthcare data generation at scale. Use when building profiles, generating cohorts, creating journeys, batch generation, specifying distributions, or any at-scale data generation task.
02 资源文件 46
- 参考文档builders/journey-builder.md11.4 KB
- 参考文档builders/profile-builder.md9.6 KB
- 参考文档builders/quick-generate.md5.9 KB
- 参考文档builders/README.md2.5 KB
- 参考文档distributions/age-distributions.md5.4 KB
- 参考文档distributions/cost-distributions.md7.9 KB
- 参考文档distributions/distribution-types.md6.2 KB
- 参考文档distributions/README.md2.3 KB
- 参考文档executors/cross-domain-sync.md9.9 KB
- 参考文档executors/journey-executor.md9.2 KB
- 参考文档executors/profile-executor.md10.2 KB
- 参考文档executors/README.md4.1 KB
- 参考文档journeys/journey-patterns.md12.0 KB
- 参考文档journeys/README.md2.7 KB
- 参考文档README.md7.7 KB
- 参考文档templates/journeys/annual-enrollment.md3.5 KB
- 参考文档templates/journeys/bariatric-episode.md3.2 KB
- 参考文档templates/journeys/cardiac-surgery-episode.md3.3 KB
- 参考文档templates/journeys/care-transition.md4.9 KB
- 参考文档templates/journeys/chf-first-year.md5.6 KB
- 参考文档templates/journeys/diabetic-annual.md3.8 KB
- 参考文档templates/journeys/diabetic-first-year.md9.1 KB
- 参考文档templates/journeys/disenrollment.md3.5 KB
- 参考文档templates/journeys/hf-exacerbation.md14.1 KB
- 参考文档templates/journeys/new-member-onboarding.md13.0 KB
- 参考文档templates/journeys/oncology-treatment-cycle.md12.9 KB
- 参考文档templates/journeys/outpatient-procedure.md3.2 KB
- 参考文档templates/journeys/pregnancy-journey.md3.5 KB
- 参考文档templates/journeys/README.md2.2 KB
- 参考文档templates/journeys/surgical-episode.md11.1 KB
- 参考文档templates/profiles/chip-only.md2.0 KB
- 参考文档templates/profiles/commercial-diabetic.md2.6 KB
- 参考文档templates/profiles/commercial-family.md2.6 KB
- 参考文档templates/profiles/commercial-healthy.md5.7 KB
- 参考文档templates/profiles/commercial-high-cost.md2.5 KB
- 参考文档templates/profiles/commercial-maternity.md8.7 KB
- 参考文档templates/profiles/commercial-pediatric.md2.5 KB
- 参考文档templates/profiles/medicaid-adult.md2.7 KB
- 参考文档templates/profiles/medicaid-diabetic.md2.2 KB
- 参考文档templates/profiles/medicaid-pediatric.md7.1 KB
- 参考文档templates/profiles/medicare-advantage-complex.md8.7 KB
- 参考文档templates/profiles/medicare-chf.md2.7 KB
- 参考文档templates/profiles/medicare-diabetic.md5.4 KB
- 参考文档templates/profiles/pediatric-newborn.md2.7 KB
- 参考文档templates/profiles/README.md1.9 KB
- 参考文档templates/README.md2.8 KB
03 SKILL.md 正文
Generative Framework Skills
Use these skills when building specifications for data generation or executing batch generation.
Quick Reference
| Skill | Use When | Location |
|---|---|---|
| Profile Builder | Defining population characteristics for batch generation | builders/profile-builder.md |
| Journey Builder | Defining temporal event sequences | builders/journey-builder.md |
| Quick Generate | Simple single-entity generation | builders/quick-generate.md |
| Profile Executor | Executing a profile specification | executors/profile-executor.md |
| Journey Executor | Executing a journey specification | executors/journey-executor.md |
| Cross-Domain Sync | Coordinating cross-product generation | executors/cross-domain-sync.md |
Trigger Phrases
Building Specifications
- "Build a profile for 100 Medicare members"
- "Create a journey for diabetic patients"
- "Specify a commercial cohort with CHF"
- "Define a surgical episode journey"
Executing Specifications
- "Generate patients from this profile"
- "Execute the diabetic journey for 50 patients"
- "Run batch generation for this cohort"
Using Templates
- "Use the Medicare diabetic template"
- "Start with the surgical episode journey"
- "Generate using the commercial healthy profile"
Workflow Overview
1. Build a Profile (Optional)
{
"profile": {
"generation": { "count": 200, "products": ["patientsim", "membersim"] },
"demographics": {
"age": { "type": "normal", "mean": 74, "std": 6, "min": 65, "max": 85 },
"gender": { "type": "categorical", "weights": { "M": 0.48, "F": 0.52 } },
"geography": { "county_fips": "06073" }
},
"clinical": {
"primary_condition": { "code": "E11.9", "prevalence": 0.40 },
"comorbidities": [{ "code": "I50.9", "prevalence": 0.30 }]
}
}
}
2. Build a Journey (Optional)
Create a first-year diabetic journey:
- Initial diagnosis visit with labs
- Metformin prescription
- Quarterly follow-ups with A1c
- Possible titration to second agent
3. Execute Generation
Generate the cohort using this profile and journey
Save as cohort "ma-diabetic-cohort-2025"
Distribution Types
| Type | Use Case | Example |
|---|---|---|
categorical |
Discrete choices | Gender: M/F/Other |
normal |
Bell curve | Age centered at 72 |
log_normal |
Skewed positive | Healthcare costs |
uniform |
Equal probability | Random day in range |
explicit |
Specific values | Exactly these NDCs |
See distributions/distribution-types.md for details.
Statistical Fidelity — Matching Real Populations
Generated cohorts should use statistical distributions that match real-world population characteristics. The goal is realistic synthetic data, not random noise.
How to match a target population:
- Identify the source benchmark. For Medicare Advantage, use CMS enrollment statistics (mean age ~72, 55% female, regional mix). For Commercial, use employer-census norms. For Medicaid, use state-level demographics.
- Select distribution types that fit the data shape. Age in MA populations follows a roughly normal distribution centered near 72-74 with standard deviation ~7. Cost distributions are log-normal (many low-cost, few high-cost). Chronic condition prevalence uses categorical distributions with rates from CDC PLACES or CMS Chronic Conditions data.
- Parameterize from published statistics. Do not guess distribution parameters. Use published prevalence rates (e.g., 27% diabetes in Medicare, 14% heart failure) and demographic breakdowns. PopulationSim data (
skills/populationsim/) provides county- and tract-level benchmarks for prevalence and social determinants. - Validate output against inputs. After generation, confirm the cohort's statistical profile (mean, median, standard deviation, category proportions) matches the specification within an acceptable tolerance. Flag drift greater than 5% from target parameters.
Journey Patterns
| Pattern | Use Case | Example |
|---|---|---|
linear |
Simple sequence | Office visit → Lab → Follow-up |
branching |
Decision points | ER → Admit OR Discharge |
protocol |
Trial schedules | Cycle 1 Day 1, Day 8, Day 15 |
lifecycle |
Long-term patterns | New member first year |
See the journeys/ folder for pattern details.
Integration with Products
The Generative Framework orchestrates all HealthSim products:
| When Generating | Products Involved | Cross-Domain Triggers |
|---|---|---|
| Patient cohort | PatientSim, NetworkSim | Provider assignment |
| Member claims | MemberSim, PatientSim, NetworkSim | Encounter → Claim |
| Pharmacy fills | RxMemberSim, PatientSim, NetworkSim | Rx → Fill, DUR check |
| Trial subjects | TrialSim, PatientSim, NetworkSim | Subject ↔ Patient linking |
Templates
Pre-built profiles and journeys for common use cases:
Profile Templates
- medicare-diabetic.md - Medicare T2DM cohort
- commercial-healthy.md - Commercial healthy adults
- medicaid-pediatric.md - Medicaid children
Journey Templates
- diabetic-first-year.md - New T2DM diagnosis year 1
- surgical-episode.md - Elective surgery episode
- new-member-onboarding.md - New member first 90 days
Safety Guardrails
All generated data is synthetic and fictional. HealthSim produces simulated test data only. Never present generated records as real patient data.
- No clinical advice. Generated data must not be used to make prescribing decisions, diagnoses, or treatment recommendations. If asked, remind the user this is synthetic test data, not real clinical information.
- Real codes, synthetic entities. Use real, valid medical code systems for realism (see below), but all patients, members, encounters, and claims are generated/fictional.
- No real PHI. Never pull from or reference real patient databases. All person-level data is simulated.
Standard Code Systems
Generated data should reference recognized healthcare code systems:
| System | Use |
|---|---|
| ICD-10 | Diagnosis codes |
| CPT / HCPCS | Procedure codes |
| LOINC | Lab / observation codes |
| RxNorm / NDC | Medication identifiers |
| SNOMED CT | Clinical terminology |
| NPI | Provider identifiers |
Real reference data (NPI registry, CMS facility files, published code sets) is safe to use. Synthetic data is generated for all patient/member-level entities.
Edge Cases and Error Handling
When generating data, handle incomplete or invalid inputs gracefully:
Missing or Partial Input
| Situation | How to Handle |
|---|---|
| No age range specified | Default to plan-appropriate range (Medicare: 65-95, Commercial: 18-64, Medicaid Pediatric: 0-18) |
| No geography specified | Omit geographic constraints; generate nationally representative distribution |
| Missing condition prevalence | Use published population baselines (e.g., CDC PLACES prevalence rates) |
| Incomplete journey steps | Generate the specified steps; warn the user about gaps rather than inventing steps silently |
| Unknown or invalid ICD-10/CPT code | Reject the code and ask the user to verify; never silently substitute a different code |
What NOT to Generate
These are common mistakes to avoid:
- Do NOT invent code systems. Use only recognized systems (ICD-10, CPT, HCPCS, LOINC, RxNorm, NDC, SNOMED CT, NPI). Never fabricate codes that look plausible but do not exist in the standard.
- Do NOT generate clinically impossible combinations. Example: a 5-year-old with Medicare Fee-for-Service, or a pregnancy diagnosis on a male patient. Cross-check age, sex, and plan type against clinical plausibility.
- Do NOT silently drop requested attributes. If the user asks for 10 fields and only 8 can be generated, surface the gap explicitly rather than returning incomplete records without explanation.
- Do NOT extrapolate beyond the specification. If the user asks for "50 patients with diabetes," generate exactly 50 with diabetes -- do not add additional unrequested conditions for "realism" unless the user has opted into realistic comorbidity modeling.
- Do NOT generate duplicate identifiers. Every patient ID, member ID, encounter ID, and claim ID must be unique within a cohort.
Validation Checklist
Before returning generated data, verify:
- All code values exist in their respective standard (ICD-10, CPT, LOINC, etc.)
- Date sequences are chronologically consistent (admission before discharge, prescription before fill)
- Demographic fields are internally consistent (age matches date of birth, plan type matches age eligibility)
- Requested counts match output counts (if 200 members requested, 200 are returned)
- No duplicate identifiers exist across the generated dataset
Related Skills
- State Management - Save/load generated cohorts
- Identity Correlation - Cross-product entity linking
- PopulationSim - Real-world demographic data
- NetworkSim - Real provider assignments
Implementation Status: Foundation phase. See GENERATIVE-FRAMEWORK-PROGRESS.md for details.
04 同仓库更多 Skills
로인장 (Roinjiang)
Activates when the user needs legal advice, contract review, insurance law consultation, startup legal support, or any legal/regulatory matter. She is a top-tier in-house lawyer with absolute loyalty to the CEO, specializing in insurance law, financial consumer protection, privacy, contracts, labor law, family law, civil and criminal matters.
zocdoc-doctor-finder
Use when a user needs to find a doctor, dentist, specialist, therapist, or healthcare provider — especially when they mention insurance, in-network, availability, location, appointments, or booking. Also use for browsing provider reviews, comparing doctors by specialty, or checking if a provider takes their insurance.
zenmux-context
Answers any question about ZenMux by reading the latest official documentation. Use this skill whenever the user asks about ZenMux product features, API usage, configuration, integration, pricing, models, providers, routing, fallback, streaming, multimodal, structured output, tool calling, reasoning, prompt caching, image generation, video generation, web search, long context, observability, logs, cost tracking, usage analytics, insurance, subscription, pay-as-you-go, invoices, best practices for tools like Claude Code, Cursor, Cline, CodeX, Gemini CLI, opencode, Cherry Studio, Obsidian, Sider, Open-WebUI, Dify, Neovate, GitHub Copilot, OpenClaw, CC-Switch, Immersive Translate, Studio Chat, architecture, benchmarks, FAQ, contact, privacy, terms of service, compliance, or any other ZenMux-related topic. Also trigger when the user writes in Chinese about ZenMux: 文档, 使用指南, 快速开始, API 参考, 最佳实践, 模型路由, 供应商路由, 订阅, 按量计费, 可观测性, 帮助, 常见问题, 接入指南, 配置. Trigger on phrases like "how to use ZenMux", "ZenMux docs", "ZenMux API", "ZenMux integration", "ZenMux 怎么用", "ZenMux 接入", "ZenMux 配置". Even if the user doesn't say "ZenMux" explicitly but asks about LLM API aggregation, model routing, provider fallback in a context where ZenMux is the project being worked on, this skill should activate.
workers-comp-guide
Guide workers compensation compliance and claims management. TRIGGERS - Use when user needs help with workers-comp-guide related tasks.
weekly-kpi-report
Generate McKinsey-style board presentation PPTs from weekly auto insurance data. Automatically calculates 16+ KPIs, creates executive-level slides with actionable insights, and supports week-over-week comparisons. Use when user uploads insurance cost data (Excel/CSV) and requests board report, weekly presentation, executive briefing, or mentions keywords like 董事会汇报, 周报PPT, 经营分析演示, McKinsey-style reports.
wealth-advisory
Wealth management and financial planning for HNW and UHNW clients. Activate when the user mentions wealth management, financial planning, retirement, estate planning, tax planning, GRAT, IDGT, trust, asset allocation, withdrawal rate, Monte Carlo simulation, goals-based investing, tax-loss harvesting, Roth conversion, insurance, annuity, mortgage strategy, concentrated stock, family office, direct indexing, 529 plan, charitable giving, donor-advised fund, private foundation, or asks about personal finance strategy, inheritance, long-term financial planning, or UHNW advisory.