# Test mode

Source: https://www.flexpa.com/docs/test-mode
Description: Test mode lets you build and validate your Flexpa integration against representative API response shapes, without using real patient data.

Test mode lets you build and validate your Flexpa integration against representative API response shapes, without using real patient data.

To trigger test mode, use your [test mode API keys](https://www.flexpa.com/docs/guides/quickstart#set-api-keys) for the Flexpa Consent authentication flow.

## What test mode is for

- Wiring up an end-to-end Flexpa Consent session against test API keys.
- Inspecting the **structure** of FHIR responses your application will receive — resource types, field names, value sets, and references between resources.
- Writing and exercising your client code, error handling, and rendering logic against synthetic but representative data.

## What test mode is not for

Test mode is **not** a behavioral replica of live mode. It will not predict:

- The completeness or quality of data your real users' payers, EHRs, and TEFCA responders return. Real responses vary by payer, plan type, geography, network, and the individual user's history — and that variability only appears in [live mode](https://www.flexpa.com/docs/guides/getting-started).
- Imperfect or noisy entries — repeated providers in an EOB Care Team, partial or stale addresses, missing claims, sparse clinical data. These are characteristics of real-world data sources and synthetic fixtures will not reproduce them.
- Latency or reliability characteristics of live payer, provider, or TEFCA endpoints.

If you are trying to validate how your application handles imperfect or unexpected production data, you need [live mode](https://www.flexpa.com/docs/guides/getting-started).

Flexpa provides test mode support for all three data sources in our [3-in-1 network](https://www.flexpa.com/docs/network): health insurers (claims data), medical record systems (provider/EHR data), and nationwide exchange (TEFCA). Each source has specific test credentials and synthetic data to help you build and validate your integration before going live.

## Health insurers

**Warning:**
In test mode, search for **"FooMedical"** or **"Acme Health Plan"** in Flexpa Consent - these are Flexpa's test payers. (**"YourChart"** is a test _provider/EHR_, not a payer — see [Medical record systems](#medical-record-systems).) Do not select real payers like Humana or Kaiser, as they will redirect you to the payer's own sandbox with different credentials. To test the credentials-based portal pathway instead of SMART on FHIR, see [Patient portals](#patient-portals).

Select **FooMedical** or **Acme Health Plan** in Flexpa Consent. For **Acme Health Plan**, no credentials are needed — simply select a patient. For **FooMedical**, use the credentials below to login.

| Username             | Password       | Payer                | Plan Type          | State | Description                                                              |
| -------------------  | -------------- | -------------------- | ------------------ | ----- | ------------------------------------------------------------------------ |
| patient1@flexpa.com  | examplepatient | UnitedHealthcare     | Medicare Advantage | MN    | Coverage, pharmacy and medical EOBs, and clinical data including Condition, MedicationRequest, and Encounter                                           |
| patient2@flexpa.com  | examplepatient | Aetna                | Medicare Advantage | NY    | Coverage, EOBs, and rich clinical data including Encounter, DiagnosticReport, MedicationDispense, and CarePlan |
| patient3@flexpa.com  | examplepatient | Humana               | Medicare Advantage | NY    | Coverage, EOBs, and clinical data including CarePlan, CareTeam, Goal, and MedicationRequest |
| patient5@flexpa.com  | examplepatient | Empire Blue (Anthem) | Medicaid           | CA    | Coverage, EOBs, MedicationDispense, Condition, and Practitioner |
| patient10@flexpa.com | examplepatient | Anthem               | Commercial         | NY    | Coverage and a multi-year medical EOB history including an inpatient stay. No recent pharmacy claims |
| patient12@flexpa.com | examplepatient | UnitedHealthcare     | Medicare Advantage | PA    | CLEAR test patient (Barbara Testa). Coverage, EOBs, and clinical data including Encounter, MedicationDispense, Immunization, and DocumentReference |
| patient18@flexpa.com | examplepatient | Medicare.gov         | Medicare           | MA    | CLEAR test patient (Tracy CraneTest). Coverage and EOBs       |
| patient30@flexpa.com | examplepatient | Aetna                | Medicare Advantage | KY    | Payer view of test patient Raymond Whitaker. Coverage, medical and pharmacy EOBs with real cost sharing, and rich clinical data including Encounter, DiagnosticReport, Specimen, Immunization, and CarePlan. Same member as patient31 |
| patient31@flexpa.com | examplepatient | Medicare.gov         | Medicare Advantage | KY    | CMS Blue Button view of the same member as patient30. Coverage for all four Medicare parts with CMS enrollment extensions, plus Part D EOBs only, since an MA member's medical claims stay with their plan. Also generates an [InsurancePlan](https://www.flexpa.com/docs/fhir/insurance-plan) |
| patient32@flexpa.com | examplepatient | Anthem Elevance      | Employer           | NY    | Subscriber on a family plan with dependents patient33, patient34 and patient35. Coverage, EOBs, and clinical data including Encounter, Condition, MedicationDispense, Immunization, and Procedure |
| patient33@flexpa.com | examplepatient | Anthem Elevance      | Employer           | NY    | Dependent of patient32. Coverage, EOBs, and clinical data including Encounter, Condition, MedicationDispense, Immunization, and Procedure |
| patient34@flexpa.com | examplepatient | Anthem Elevance      | Employer           | NY    | Dependent of patient32. Coverage, EOBs, and clinical data including Encounter, Condition, Immunization, Procedure, and AllergyIntolerance |
| patient35@flexpa.com | examplepatient | Anthem Elevance      | Employer           | NY    | Dependent of patient32. Coverage, EOBs, and clinical data including Encounter, Condition, MedicationDispense, Immunization, and AllergyIntolerance |
| patient36@flexpa.com | examplepatient | Anthem Elevance      | Employer           | NY    | Dependent on a different subscriber's plan from patient32. Coverage, EOBs, and clinical data including Encounter, Condition, MedicationDispense, and Immunization |

FooMedical is powered by [Medplum](https://www.medplum.com), an open-source, headless EHR and FHIR server.
We have populated it with synthetic patient data that is representative of the structure seen in live mode for major payers.
We will continue to add new synthetic data for the payers and plan types customers need, so let us know at [support@flexpa.com](mailto:support@flexpa.com)

**Note:**
**Test data stays current.** These accounts are refreshed every quarter and their dates move with the calendar, so they never age out of a trailing window the way fixed test data does. Each account keeps its own shape: `patient30` is the fullest, with both medical and pharmacy claims inside the last few months, while `patient10` has a long medical history but no pharmacy fills in the last six months, and `patient31` carries Part D pharmacy claims only. Check the table above for what a given account holds before relying on it. Dates shift at each refresh, so do not assert on a specific service date in your tests.

**Acme Health Plan** is powered by [mock.health](https://mock.health), a FHIR R4 sandbox with thousands of synthetic patients built on Synthea. Select any patient from the portal — no credentials required. The table below highlights a representative sample organized by body system. Use the portal's search to find patients by name or condition.

### Pediatric

| Patient | Age | Sex | Conditions | Key conditions |
| ------- | --- | --- | ---------- | -------------- |
| Almeta Marketta Patch | 5y | F | 2 | Fall, Syncope |
| Alberto Noto | 9y | M | 2 | Fever, Motor vehicle accident |
| Amado Yearwood | 10y | M | 1 | Dizziness |
| Alanna Judkins | 11y | F | 1 | Immunodeficiency disorder |
| Aisha Lakeshia Dunbar | 12y | F | 3 | Motor vehicle accident, Neck pain, Shortness of breath |
| Agueda Kathie Denson | 16y | F | 3 | Back pain, Fever, Headache |
| Alethea Anastasia Zumwalt | 16y | F | 1 | Asthma |

### Endocrine / metabolic

| Patient | Age | Sex | Conditions | Key conditions |
| ------- | --- | --- | ---------- | -------------- |
| Allyn Kirtley | 19y | F | 5 | **Type 2 diabetes mellitus**, Skin rash, Viral URI |
| Alex Jesus Couto | 37y | M | 11 | Back pain, **Hypertensive disorder**, Chronic pain, Fracture |
| Adrian Huong Deem | 55y | F | 9 | **Hyperlipidemia**, Autoimmune disease, Chronic pain, Smoker |

### Cardiovascular

| Patient | Age | Sex | Conditions | Key conditions |
| ------- | --- | --- | ---------- | -------------- |
| Alfredia Twyla Snyder | 40y | F | 7 | Asthma, Chest tightness, **Palpitations** |
| Allene Bilbrey | 60y | F | 20 | Chest pain, **Atrial fibrillation**, Autoimmune disease |
| Alberto Matson | 71y | M | 19 | **Atrial fibrillation**, Anxiety, Chest tightness |
| Adalberto Kanter | 83y | M | 22 | **Atrial fibrillation**, Asthma, Anxiety disorder |

### Respiratory

| Patient | Age | Sex | Conditions | Key conditions |
| ------- | --- | --- | ---------- | -------------- |
| Alex Alderson | 27y | F | 2 | Anxiety disorder, **Asthma** |
| Adelia Tibbs | 55y | F | 16 | Shortness of breath, **Asthma**, Cellulitis |
| Abigail Ida Fillmore | 63y | F | 16 | **COPD**, Chest pain, Chronic pain, Current smoker |

### Neurological / psychiatric

| Patient | Age | Sex | Conditions | Key conditions |
| ------- | --- | --- | ---------- | -------------- |
| Ali Dana Roddy | 25y | M | 8 | **Depressive disorder**, Sore throat, Abdominal pain, Fracture |
| Abigaíl Rosalia Ortega | 41y | F | 8 | Anxiety, Chronic pain, **Depressive disorder** |
| Alyce Naumann | 42y | F | 9 | **Dementia**, Depressive disorder, Anxiety disorder |

### Cerebrovascular

| Patient | Age | Sex | Conditions | Key conditions |
| ------- | --- | --- | ---------- | -------------- |
| Alexis Toland | 59y | M | 15 | **Cerebrovascular accident**, CKD, Shortness of breath |
| Alec Curtis Osburn | 66y | M | 20 | **Cerebrovascular accident**, Chest pain, Hematuria |
| Adelina Matilde Rauda | 77y | F | 21 | **Cerebrovascular accident**, Chronic kidney disease |

### Renal

| Patient | Age | Sex | Conditions | Key conditions |
| ------- | --- | --- | ---------- | -------------- |
| Aldo Jamey Ratcliff | 53y | M | 23 | **Chronic kidney disease**, Chronic pain, Cellulitis |
| Amanda Rosalia Palomera | 66y | F | 18 | **Chronic kidney disease**, Chronic liver disease, Asthma |
| Adelina Matilde Rauda | 77y | F | 21 | **Chronic kidney disease**, Cerebrovascular accident |

### Hepatic / GI

| Patient | Age | Sex | Conditions | Key conditions |
| ------- | --- | --- | ---------- | -------------- |
| Albert Joleen Xie | 35y | F | 10 | **Chronic liver disease**, Chest pain, Dysuria |
| Amanda Rosalia Palomera | 66y | F | 18 | **Chronic liver disease**, CKD, Asthma |

### Autoimmune / immunological

| Patient | Age | Sex | Conditions | Key conditions |
| ------- | --- | --- | ---------- | -------------- |
| Alvina Xuan Sandberg | 25y | F | 8 | **Autoimmune disease**, Abdominal pain, Fracture |
| Adrian Huong Deem | 55y | F | 9 | **Autoimmune disease**, Hyperlipidemia, Chronic pain |
| Albert Raul Ratcliff | 67y | M | 16 | **Autoimmune disease**, Asthma, Anxiety disorder |

### Multi-morbid (highest condition counts)

| Patient | Age | Sex | Conditions | Key conditions |
| ------- | --- | --- | ---------- | -------------- |
| Aldo Jamey Ratcliff | 53y | M | 23 | **CKD**, Anxiety disorder, Cellulitis, Chronic pain |
| Adalberto Kanter | 83y | M | 22 | **Atrial fibrillation**, Asthma, Anxiety disorder |
| Adelina Matilde Rauda | 77y | F | 21 | **CKD**, Cerebrovascular accident, Abdominal pain |
| Alonso Derek Tilson | 69y | M | 21 | **CKD**, Cerebrovascular accident, Anxiety disorder |

## Patient portals

Employer-sponsored and off-exchange commercial plans are not required to offer a federally mandated Patient Access API, so Flexpa reaches them through [proprietary patient portal integrations](https://www.flexpa.com/docs/network#patient-portals-pathway) rather than SMART on FHIR. The member signs in with their portal credentials instead of being redirected to an OAuth server.

**Warning:**
In test mode, pick **"Cigna"** or **"Aetna"** from the popular list in Flexpa Consent, or search for **"UnitedHealthcare"**, then choose **"Through an employer"** on the plan type screen. Any other plan type sends you to that payer's own SMART sandbox, which takes the credentials under [Health insurers](#health-insurers) instead.

UnitedHealthcare also asks for a state, and answering **CA, FL, GA, IL, NY, OH or TX** routes to its SMART sandbox rather than the portal. Any other state reaches the sign-in. Cigna and Aetna do not ask.

### Signing in

The test-mode portal accepts **any password**. The username is what selects the scenario, so one account drives the happy path and every failure branch. The sign-in screen says as much in test mode, so the common case needs no lookup; the table below is for reaching a specific failure.

| Username | What happens |
|---|---|
| Anything else | Sign-in succeeds, then MFA method selection, then MFA code entry |
| `skip_mfa` | Authorizes immediately, with no MFA step |
| `skip_mfa_select` | Skips the method picker and goes straight to MFA code entry |
| `error_invalid_credentials` | Fails with an incorrect username or password message. Recoverable — retype and continue in the same session |
| `error` | Fails with an unrecoverable error |
| `error_terms_of_use_not_accepted` | Fails asking the member to accept updated terms in their portal |

When MFA is requested, two methods are offered: email (`j...e@example.com`) and SMS (`+1 XXX-XXX-5555`). Any code is accepted, and these values trigger specific failures:

| MFA code | What happens |
|---|---|
| Anything else | Authorizes |
| `error_invalid_mfa_code` | Invalid code. Three attempts are allowed before the authorization fails |
| `mfa_submit_failed` | Treated as an invalid code |
| `error` | Fails with an unrecoverable error |
| `error_terms_of_use_not_accepted` | Fails asking the member to accept updated terms in their portal |

### What each portal returns

Each test-mode portal signs in as the subscriber of a family on one employer plan, and every member of the family has their own Patient. As in live mode, a portal returns coverage and claims, not clinical records. Portal claims rarely carry diagnosis codes, so expect few or no Condition resources. See [patient portal data limitations](https://www.flexpa.com/docs/network#patient-portal-data-limitations). Claim dates move each January 1 with the plan year, so do not assert on a specific service date in your tests.

| Payer            | Plan Type      | Family                                  | Description                                                                                                                                                                 |
| ---------------- | -------------- | --------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Aetna            | Employer-based | Subscriber, spouse, and three children  | Coverage, including last year's cancelled Coverage, EOBs including a denied claim, and Encounter (one an emergency visit), Procedure, and MedicationRequest generated from claims |
| Cigna            | Employer-based | Subscriber and spouse                   | Coverage, EOBs, and Encounter, Procedure, and MedicationRequest generated from claims. The spouse has Coverage only                                                          |
| UnitedHealthcare | Employer-based | Subscriber and spouse                   | Coverage, EOBs, and Encounter, Procedure, and MedicationRequest generated from claims                                                                                       |

## Nationwide exchange

The below test accounts support the full IAL2 verification flow with complete demographic data. When the QHIN test sandbox returns no documents for a test identity, Flexpa automatically injects fixture documents to ensure consistent test data.

|               | **Name** | **Email** | **Password** | **Phone Number** | **MFA Code** |
|---------------|-----------|-----------|--------------|------------------|--------------|
| **ID.me** | Allison Hackett | ahackett@gmail.com | IDme2026!! | N/A | N/A |
| **ID.me** | Damon Mychart | dmychart@me.com | IDme2026!! | N/A | N/A |
| **ID.me** | Dog Beaker | dogbeaker@aol.com | IDme2026!! | N/A | N/A |
| **ID.me** | Tracy CraneTest | tcranetest@gmail.com | IDme2026!! | N/A | N/A |
| **ID.me** | Barbara Testa | btesta@hotmail.com | IDme2026!! | N/A | N/A |
| **ID.me** | Camila Maria Lopez | knixontestemail@epic.com | IDme2026!! | N/A | N/A |
| **ID.me** | Derrick Lin | knixontestemail2@epic.com | IDme2026!! | N/A | N/A |
| **ID.me** | Homer J Simpson | hsimpson@gmail.com | IDme2026!! | N/A | N/A |
| **CLEAR** | Allison Hackett | N/A | N/A | 608-555-1243 | 123456 |
| **CLEAR** | Damon Mychart | N/A | N/A | 608-211-3314 | 123456 |
| **CLEAR** | Dog Beaker | N/A | N/A | 410-707-2690 | 123456 |
| **CLEAR** | Tracy CraneTest | N/A | N/A | 222-360-1564 | 123456 |
| **CLEAR** | Barbara Testa | N/A | N/A | 831-600-3769 | 123456 |
| **CLEAR** | Camila Maria Lopez | N/A | N/A | 469-469-4321 | 123456 |
| **CLEAR** | Derrick Lin | N/A | N/A | 785-785-4321 | 123456 |
| **CLEAR** | Homer J Simpson | N/A | N/A | 217-123-3608 | 123456 |

**Warning:** The ID.me test accounts are currently broken in test mode. We recommend using CLEAR for testing until this issue is resolved.

#### Test documents

When a test mode TEFCA connection returns no documents from the QHIN sandbox, Flexpa automatically injects three fixture documents so you always have data to develop against:

| Document ID | Description |
|---|---|
| `FLEXPA-TEST-001` — Continuity of Care Document | Jane Doe at Flexpa Test Medical Center. Contains narrative sections for allergies (Penicillin), medications (Lisinopril 10mg), and problem list (Hypertension). Sections are human-readable narrative only — no structured FHIR clinical resources are derived from this document. |
| `FLEXPA-TEST-002` — Hospital Discharge Summary | Jane Doe at Flexpa Test Medical Center. Contains narrative history of present illness, hospital course, and discharge diagnosis (non-cardiac chest pain). Narrative only — no structured FHIR clinical resources are derived. |
| `FLEXPA-TEST-003` — Continuity of Care Document | De-identified encounter summary from a real-world C-CDA. Contains structured FHIR resources including `Condition`, `MedicationRequest`, `Observation`, `AllergyIntolerance`, `Procedure`, `Encounter`, and `Immunization`. |

**Note:**
Fixture documents contain their own embedded patient demographics in the C-CDA `recordTarget` element. In test mode, these demographics (Jane Doe for `FLEXPA-TEST-001`/`FLEXPA-TEST-002`, and a de-identified patient for `FLEXPA-TEST-003`) will appear as additional `Patient` resources in the FHIR response alongside the verified test identity. This is expected behavior in test mode.

View the fixture files on GitHub: [FLEXPA-TEST-001](https://gist.github.com/jdjkelly/e40fb207c3a807792c97e1bfa73abb1b#file-ccd-example-xml), [FLEXPA-TEST-002](https://gist.github.com/jdjkelly/e40fb207c3a807792c97e1bfa73abb1b#file-discharge-summary-xml).

## Medical record systems

Test mode provides access to EHR vendor sandbox environments for development and testing with provider data.

**Warning:**
In test mode, search for **"Epic"**, **"Cerner"**, or **"Athena"** in Flexpa Consent to connect to each EHR's sandbox environment. Select the EHR you want to test, then use the credentials below to login.

| EHR System | Username | Password |
|------------|----------|----------|
| Epic | fhirelijah | epicepic1 |
| Cerner | wilmasmart | Cerner01 |
| Athena | phrtest_preview@mailinator.com | Password1 |

**Note:**
Test mode sandboxes return synthetic patient data from each EHR vendor's test environment. Sandbox data may differ from production implementations in terms of resource completeness and data quality.

Flexpa also provides **YourChart**, an Epic-style SMART/FHIR provider facility for testing provider/EHR connections. Search for **"YourChart"** in Flexpa Consent — no credentials are needed, simply select a patient. Its synthetic patient data is powered by [mock.health](https://mock.health), the same FHIR R4 sandbox that backs **Acme Health Plan** under [Health insurers](#health-insurers).
