Bulk claim generation in OpenEMR for hospital and facility billing

A planning guide for teams that need to create claims for many patients at once in OpenEMR when encounters are not documented in the chart, with the setup and controls that keep bulk billing accurate.

On this page

When bulk claim generation in OpenEMR fits a facility's billing workflow

A facility billing team that holds charges or service dates never documented as encounters in the chart, and that must produce claims for many patients in one pass, is the reader this section is for. The Generate Hospital Claims module is OpenEMR's option for that batch situation. Its intent is to build claims from billing data for a set of patients at once, rather than having a clinician or biller open each encounter and submit a claim individually. Before committing to it, confirm the module's exact inputs, selection criteria and output behavior against the OpenEMR release you run, because the supplied sources do not document its internals. Release notes are the first place to check, starting with the OpenEMR releases page.

Per-encounter submission assumes each claim traces back to a documented visit, with diagnoses and procedures recorded in the chart. Bulk generation shifts that dependence toward the billing data itself, so the risk moves from missed encounters to charges that have no clinical record behind them. Teams usually consider the module when a facility has recurring batches of services, such as periodic or episodic charges, that the clinical workflow does not document one visit at a time. Ask whether your payer and clearinghouse requirements allow claims without a matching chart encounter, and whether your compliance team has approved that model for your service lines.

Decide early which claims are eligible for a batch and who approves each run. Write down the selection rule (date range, service type, payer, location), the reviewer who signs off before submission, and how a batch is reversed or corrected if a rule is wrong. Test the module on a copy of production data and reconcile the generated claims against source charges before any live run. Your own environment and the institutional billing rules for your facility type will decide whether this approach is appropriate, so treat the module as a tool to be configured and verified rather than a default for all facility claims.

What the Generate Hospital Claims module does in OpenEMR

The Generate Hospital Claims module moves a batch from a selected patient population to claims ready for a clearinghouse. Each capability below is a point where bulk billing can go right or wrong, so the team should verify each one in its own build before any production batch runs.

Selecting the patient population

The batch starts with a selection of patients and dates. Confirm in the module's own documentation which criteria it accepts, such as facility, date range, payer or encounter status, and whether it can exclude patients already billed. A selection that is too broad is the most common way a bulk run produces claims nobody intended to send. Test the selection against a known list of patients before generating anything.

Generating claims from billable data

The module builds claims from billable data in the system, so the charges, codes and payer data it draws on determine the output. Because encounters are not documented in the chart, confirm which charge sources the module reads and how it handles missing diagnoses, procedure codes or insurance records. Review how it maps the fee sheet and coding data before relying on the totals it produces.

Reviewing output before release

Generated claims should be reviewed before anything leaves the system. Check whether the module offers a preview, a list of claims with totals, or an exception report for incomplete records. Ask your billing lead to sample claims against source documentation, and record who approved the batch. Confirm whether a batch can be reversed or regenerated without creating duplicate claims.

Sending through the clearinghouse path

Claims in a batch reach the payer only through the clearinghouse configuration you set up. Confirm which claim form type the module produces, whether it matches the institutional or professional format your payers expect, and how transmission failures are reported back. Test a small batch end to end in a non-production environment and confirm acknowledgments are matched to the right batch.

Reprocessing and duplicate control

Bulk runs are often repeated after corrections, so the team needs a clear rule for reprocessing. Confirm in a test environment whether rerunning a selection skips patients already claimed, and what happens to claims that were rejected or partly paid. Document the reprocessing steps in the runbook so that a second run cannot send the same charges twice.

How a bulk run moves from population to submitted claims

This planning view starts with defining the patient and date population and ends with a logged submission to the clearinghouse. The critical hand-off is between the review step and the correction loop: exceptions and unexpected totals send the run back to fix source data, not forward to submission. Confirm fee setup and billable data before the first generation, and keep a record of each run's inputs, totals and approver so the submitted batch can be traced back to its population.

Planning view of bulk run phases, not the module's code path.

Configuration decisions before the first bulk run

This table compares the six decisions a team must record before generating hospital claims in bulk, with the options for each, when each fits, and the risk of leaving it at default. Read it as a sign-off checklist: every row should have a named owner and a written answer before the first run.

DecisionOptions and when each fitsRisk if left at default
Patient and date populationSelect by facility, date of service range, payer or a saved patient list. A narrow range fits a first test run; a facility-wide range fits a closed-period catch-up.The run may pull in patients with open encounters, duplicate visits or dates outside the billing period, producing claims that are hard to reverse.
Source of billable chargesUse documented encounters where they exist, or a reviewed charge list (for example, a facility-supplied census or procedure log) where they do not. Document which source applies to each date range.Charges with no chart support can become claims that an auditor cannot trace to a clinical event, which is a compliance exposure under the HIPAA documentation expectations.
Code sets and fee schedulesConfirm which CPT, HCPCS, ICD-10 and revenue codes are loaded, and which fee schedule applies to each payer. Check this against the fee sheet setup before the run.Missing or outdated codes and prices can flow straight into claims, creating underpayments, denials or overbilling across the whole batch.
Professional or institutional claim typeInstitutional claims on UB-04 fit facility billing for inpatient and outpatient hospital services. Professional claims fit individual clinician services. Confirm the payer's requirement for each service line (see the UB-04 billing topic).Generating professional claims for facility services, or the reverse, will be rejected by payers or paid incorrectly, and the error repeats across every claim in the batch.
Run approvalName one billing owner to approve the population and a second reviewer to check a sample of claims before release. A separate approver fits organizations with segregated billing duties.Without a named approver, a single user can release a large batch with no independent check, and errors surface only after payers reject or pay the claims.
Test clearinghouse submissionSend the first generated batch to a test or non-production clearinghouse endpoint to confirm formatting and payer edits. Move to production only after the test results are reviewed and recorded. Confirm test options with your clearinghouse.Sending the first batch straight to production means formatting or identifier errors reach payers, which can delay payment and require corrected resubmissions.

Controls that keep bulk billing accurate

Why does a bulk claim run need a written population definition before it starts?

A written population definition states exactly which patients, dates of service, facility and payer combinations the run may include, and it is the only basis for accepting or rejecting the output. When claims are generated without a documented encounter in the chart, nothing in the record confirms that a service happened, so the selection rule becomes the evidence. Write the inclusion and exclusion criteria, the date range, the place of service and the source report that feeds the list, then have billing and clinical operations sign it. Confirm with your compliance lead which source system is authoritative for the list and whether your facility policy allows claims without chart documentation at all.

What should a pre-run snapshot or backup of billing tables protect against?

A snapshot gives you a known-good state to return to if a run creates the wrong claims, duplicates existing ones or posts unexpected charges. Bulk generation writes to several billing tables at once, so a partial failure can leave claim headers without lines or lines without a parent, and recovering that by hand is slow and error prone. Take a consistent backup of the billing-related tables immediately before the run, record its identifier and time, and test that you can restore it in a non-production copy. Confirm the backup method, retention period and restore owner with your database administrator, since the built-in backup tooling in your OpenEMR version may not be the one your team relies on.

How does a dry run in a copy of the database reduce billing errors?

A dry run executes the full selection and claim-building logic against a copy of production data, so the team can inspect what would be created before any real claim exists. Review the candidate claim count, the charge totals, duplicate detection results and the rejected population, and compare a sample of generated claims with source records. Any defect found here costs a rerun in a copy, while the same defect found after submission can require voids, corrected claims and payer correspondence. Confirm that the copy is refreshed from production close to the run date, that it uses the same OpenEMR version and fee schedules, and that clearinghouse connections are disabled in the copy so no test claims leave your network.

How do you reconcile claim counts and charge totals against a source list?

Reconciliation means comparing the number of claims and the sum of charges produced by the run against an independent count and total from the source list, and resolving every difference before submission. Because there is no encounter note to check each claim against, the source list is the control that proves the population is complete and correct. Agree on the reconciliation fields in advance, such as patient count, claim count, line count and total charge by facility, and require that any variance is explained with a documented reason. Ask your billing lead who owns the source list, how it is produced and whether finance can independently confirm the totals.

Who should approve a bulk claim run, and what should that approval record?

A bulk run should not proceed until a named individual, separate from the person who built the population, approves it in writing against the population definition, dry run results and reconciliation. The approval record should name the approver, the date and time, the snapshot identifier, the claim and charge totals approved, and any conditions attached. Named ownership matters because a generic approval from a shared team mailbox cannot show who accepted responsibility for claims that lack chart support. Decide with your compliance and revenue cycle leaders who may approve, how far that authority extends by facility and dollar value, and where the approval record is kept.

Why separate the roles for generating claims and submitting them?

Separating the generate and submit roles means one person cannot both create a large batch of claims and send it to the payer without an independent check. Without that split, a single error or misused account can move unsupported claims directly to the clearinghouse, which is harder to reverse than an internal mistake. Map which OpenEMR access groups can open the Generate Hospital Claims module, which can run submission, and which can change fee schedules or patient insurance data, then remove overlap for this workflow. Confirm the role configuration in your own installation, because the permissions available depend on your OpenEMR version and any custom groups you have created.

What should an audit trail review after submission check?

A post-submission audit trail review checks who generated and submitted each batch, when it ran, which records changed, and whether the claims sent match the approved totals. The review matters most for claims with no chart encounter behind them, because the audit log and the approval record are the main evidence that the activity was authorized and accurate. Compare the submitted batch with the approved snapshot, look for changes made after approval, and confirm that access and logs were retained as your policy requires. Confirm with your security team whether OpenEMR audit logging is enabled and configured for these billing actions, and how long logs are kept and where they are stored.

How to roll out bulk claim generation step by step

This sequence moves bulk hospital claim generation from a patched, tested copy of OpenEMR to a limited, reconciled batch submission and a runbook the billing team can operate without the project team in the room.

  1. Confirm the OpenEMR version and patch level

    Record the exact OpenEMR version, PHP version and database version in use, then compare them with the current release list. The 8.3.0 and 8.4.0 releases both fixed security vulnerabilities in billing and the fee sheet, so a site still on an older build should plan to move to a patched release before any bulk billing work begins. Recent releases require PHP 8.3 or later and a MySQL or MariaDB compatible database, so confirm those requirements too. Done means a signed-off version record and a list of any gaps that must be closed before step two.

  2. Build a non-production copy

    Create a staging copy of the production database and configuration on infrastructure separate from live patient data, and confirm that outbound clearinghouse connections are disabled or pointed at a test endpoint. Test runs must never send claims to a payer by accident. Restrict who can log in to the copy and document which accounts were created for testing. Done means the copy is confirmed to match production in version and configuration, and the team has verified that no submission path reaches a live clearinghouse.

  3. Load and verify fee and code data

    Load the CPT, HCPCS, ICD-10 and revenue code data, fee schedules and payer-specific pricing that the facility will bill against, then check a sample of codes against the source tables your coding team uses. Check modifiers, units and diagnosis linkage for common service lines. Done means a written reconciliation shows every code and price in the test population matches the approved source, with exceptions listed and resolved.

  4. Define and test the patient population

    Write the selection rules for which patients, dates of service, payers and locations go into a batch, and document each rule in plain language. Because the encounters are not documented in the chart, the rules must state exactly what evidence qualifies a service for billing. Run the selection against the copy and review the results with the revenue cycle and compliance leads. Done means the population query returns the expected records, excluded records are explained, and the rules are approved in writing.

  5. Run a dry run with reconciliation

    Generate claims for the test population without submitting them, then reconcile counts, charge totals and payer totals against the source population. Review a sample of generated claims line by line against the approved rules and fee data. Record every defect, fix it, and repeat the run until the reconciliation balances. Done means a dated reconciliation report shows matching totals, a defect log with closures, and sign-off from the billing lead.

  6. Approve and submit a limited live batch

    Start with a deliberately small production batch, approved by a named billing owner and a compliance reviewer, and submit it through the clearinghouse connection that your team has tested. Reconcile the submitted claims against the approved list and watch clearinghouse acknowledgments and rejections before expanding the population. Done means the limited batch is accepted or each rejection is resolved, the outcome is recorded, and the team has agreed on the criteria for a larger batch.

  7. Document the runbook and hand over

    Write a runbook covering the selection rules, approval steps, reconciliation procedure, submission and rejection handling, access controls, audit log review and rollback steps. Assign owners for each task and store the runbook where operations staff can find it. Confirm the handover with the people who will run future batches. Done means the runbook is approved, each owner has acknowledged their tasks, and a test of the handover procedure has been completed.

What drives the effort and cost of bulk claim setup

This table lists the factors that raise or lower the work of setting up bulk hospital and facility claims in OpenEMR, with the quote item to request for each. Read it before scoping, because most overruns trace back to source data quality and reconciliation rather than to the module itself. Pricing and durations are not estimated here, so every line points to what the written scope must state.

DriverHow it changes the workWhat to ask for in a written quote
Quality of source charge dataCharges captured outside the chart often lack encounter dates, rendering providers or diagnosis links. Each gap adds manual research before a claim can be built.A field-level data review of the charge extract, with a list of records that will be excluded or corrected and who signs off on them.
Number and variety of payersEach payer can require its own payer ID, claim frequency, timely filing rules and attachment handling. More payers mean more mapping and more test claims.A payer list with the payer IDs, the clearinghouse route for each and the number of test claims planned per payer.
Institutional and professional claimsFacility billing usually needs UB-04 claims, while some services still go out as professional claims. Running both adds a routing rule set and a second round of validation.Confirmation of which claim types each service line produces and the routing rules the setup will implement.
Fee schedule and code set stateMissing or outdated CPT, HCPCS, ICD-10 or revenue codes and prices stop claims before submission. Correcting them is usually the largest unplanned task.A code and price audit scope, the source of the fee schedules and who approves their load into OpenEMR.
Number of facilities or sitesEach facility can have its own billing identifiers, addresses, tax IDs and provider numbers, which multiply configuration and test cases.A per-facility configuration checklist and the identifiers each site must supply before build starts.
Clearinghouse testing requirementsThe clearinghouse may require test submissions and acknowledgment checks before production. Timing depends on its response and on rejected test files.The clearinghouse testing steps, the file types to be tested and who owns retesting after a rejection.
Size of the first batchA large first run raises the chance of systemic errors, and errors in a batch cost more to find and reverse than in a small pilot batch.A pilot batch definition, with the record count and acceptance criteria agreed before the full run.
Reconciliation requiredEach claim must tie back to its source charge, and totals must match before release. Reconciliation effort rises with the number of charges and manual corrections.A reconciliation method that shows charge-to-claim matching, exception handling and a sign-off step before submission.

How bulk claims connect to the rest of the OpenEMR billing stack

Bulk claims sit in the middle of the billing cycle. What goes in depends on the fee sheet and coding, and what comes back depends on eligibility, remittance posting, status tracking and receivables reporting. Each connection below needs a confirmed data path in your version before bulk output is trusted.

Fee sheet and coding setup

Bulk generation prices and codes each claim from the fee sheet configuration, so CPT, HCPCS, ICD-10 codes, fee schedules and modifiers must be loaded correctly before the first run. Confirm which codes and charges the module reads when no encounter form exists, and whether the fee sheet security fixes in 8.3.0 and 8.4.0 changed any behavior you rely on. Test a small batch against known charges before scaling up.

OpenEMR releases

UB-04 institutional form output

Facility claims need the institutional form, not the professional claim format, so bulk output must be checked against your UB-04 setup. Confirm that revenue codes, facility identifiers, admission and discharge data and the claim type carried into each generated claim match what your clearinghouse expects. Run test submissions through the clearinghouse before any bulk batch goes live.

Eligibility checks before services

Bulk claims built for patients who were never verified tend to deny at the payer. Eligibility responses should be checked against the patient and insurance records used for claim generation, so the coverage dates and payer IDs on each claim are current. Ask whether eligibility results can be attached to or referenced from a batch, and document how stale results are handled.

ERA 835 posting for bulk payments

Remittance files for a large batch can match many claims at once, so posting must find the right claim and charge for each line. Check that claim identifiers written at generation can be matched back on the remittance, and that adjustments and denials post to the correct accounts. Reconcile posted totals against the batch total before closing the period.

Claim status tracking after submission

Once a bulk batch is submitted, the team needs to know which claims were accepted, rejected or pended. Status data should reference the same claim identifiers created during generation, so rejected claims can be corrected and resubmitted without duplicates. Confirm how your installed tooling reports status, and who owns follow-up on each rejected claim.

Identity and role controls

Bulk generation can create many claims in one action, so the users who can run it should be limited by role and logged. Review who can access billing functions, whether MFA and strong password rules from the security guidance are enforced for them, and whether audit records show who ran each batch. Tie these roles to your identity provider so offboarding removes billing access.

Securing OpenEMR guide

Why claims without chart encounters carry audit and privacy exposure

Claims generated in bulk from the Generate Hospital Claims module carry protected health information, so the HIPAA Security Rule (45 CFR Part 164 Subpart C) applies to them. The rule covers covered entities, meaning health plans, health care clearinghouses and covered health care providers, and their business associates, for all electronic protected health information they create, receive, maintain or transmit. A facility that builds claims from billing data without a matching encounter in the chart is still creating and transmitting ePHI, so the same safeguards apply to that workflow as to chart-based billing. Confirm with counsel and your compliance team which of your entities and vendors fall under the rule and how your business associate agreements describe the OpenEMR work.

A claim without a documented encounter has to be defensible on its own. When an auditor or payer asks what service a line item represents, the answer should come from a record you can produce: the source data used to select patients, the date range, the charge codes, the user who ran the batch, and who approved it before submission. Keep those records alongside the batch itself so the claim can be traced back to its inputs. Limit the roles that can generate and submit hospital claims to named staff, and make sure OpenEMR's audit logging captures generation and submission events, which you should verify in your own installation rather than assume from the default configuration.

There is no HIPAA certification. HHS states that no Security Rule standard requires an entity to certify compliance, and a private certification does not prevent HHS from later finding a violation. Compliance is shown through a documented risk analysis, the safeguards you chose, and the records that prove they operate, and the HHS Office for Civil Rights reviews those records through complaints, compliance reviews and audits. For bulk billing, that means your risk analysis should name the batch workflow, the access it grants, and the logs that show it was used as intended. Ask your compliance team to confirm the specific documentation and retention expectations before the first production batch.

Questions facility billing teams ask before implementing bulk claims

What does a bulk claim run cost, and what should the quote cover?

The cost comes from the people doing the work, not from the software, because OpenEMR is free and open-source under the GNU GPL v3.0 and has no paid edition. Costs fall into a few groups: mapping your source data to the module's inputs, configuring fee codes and payer routing, building validation checks, running test batches, clearinghouse setup, staff time for review and sign-off, and training. Mapping and validation are mostly one-time costs. Batch review, clearinghouse fees, hosting and upgrade testing recur. A DeployOpen quote follows a written scope, so ask for line items: discovery, data mapping, test plan, cutover, and post-go-live support. Confirm which items are fixed-scope and which fall under a retainer, and whether clearinghouse subscriptions are excluded.

How long does setup take, and what makes it take longer?

Setup length depends on the work around the module more than on the module itself. The main drivers are the number of facilities, payers and service lines, how cleanly encounter-like data can be pulled from your scheduling or ADT system, and how complete your charge codes are across CPT, HCPCS, ICD-10 and institutional revenue codes. Institutional claims that need UB-04 output add mapping and testing work. Approval workflows, clearinghouse testing and the number of validation rounds also set the pace. Ask the community or the vendor which inputs the Generate Hospital Claims module requires and how it handles encounters that are not documented in the chart, then size the plan from those answers.

Can our billing team run bulk claims in OpenEMR without an outside partner?

Yes, if your team has OpenEMR administration experience, enough database and reporting skill to check batches against source data, and people who understand facility billing rules. OpenEMR is supported by a community of volunteers and professionals, and the project keeps a list of professional support vendors on its wiki. The harder parts are usually not the clicks in the module. They are designing validation checks, keeping configuration intact through upgrades, and running a controlled test before the first live batch. Teams that lack one of these skills often bring in a partner for the design and test stages only, then run routine batches in-house. Decide which stages you need help with before you request a quote.

What data, code sets and approvals must our team provide?

Before work starts, gather these items so the scope can be written accurately:

  • Patient demographics and insurance records, with a plan for stale or missing coverage
  • Service dates, rendering and billing provider lists, and facility identifiers
  • Fee schedules and charge codes already loaded in the fee sheet
  • Payer list with claim routing, clearinghouse identifiers and any payer-specific rules
  • Named approvers for each batch, with a written sign-off step
  • Sample expected outputs from manually billed encounters for comparison

If an outside partner will access electronic protected health information, the HIPAA Security Rule requires a business associate contract that obligates the partner to comply with the Security Rule and report security incidents. Review the requirements in 45 CFR 164.314 with your legal and privacy teams.

How do we test bulk claims without sending anything to payers?

Test in a non-production copy of your OpenEMR environment, on the same version you run in production, and confirm with the vendor or community whether the module can generate output without transmitting it. If your clearinghouse offers a test or sandbox mode, use it for file format checks. Then compare a sample of batch claims against manually billed encounters, checking dates of service, codes, modifiers, provider identifiers, payer routing and totals. Review every rejected or flagged line and record the fix. Because the test copy holds ePHI, control access to it just as you would production, or use de-identified data where the test allows it. Keep the signed test results as evidence for your change record.

What happens if a bulk batch is wrong after it is submitted?

A claim already accepted by a payer or clearinghouse cannot simply be deleted from OpenEMR, so the recovery path depends on the payer's correction and void rules, which you should confirm in writing before go-live. A typical response has these steps: stop further batch runs, use the batch log to identify every affected claim, void or replace claims according to each payer's process, correct the source data or configuration that caused the error, and document the incident with its timeline and approvals. Notify your compliance lead when the error involves patient data or wrong billing to federal programs. Prevention matters more than recovery, so set up pre-submission approval gates and sample-based checks before the first live run.

Which access and audit controls keep bulk billing accurate and defensible?

Start with access. Limit who can generate batches and who can submit them, and separate those duties so one person cannot do both. The Securing OpenEMR guide recommends multi-factor authentication and strong password policies, so apply both to billing accounts. Keep audit logging on and retain batch logs, approvals and configuration changes. Under the HIPAA Security Rule, these records support technical safeguards such as unique user identification and audit controls. The HHS Office for Civil Rights enforces the rule through complaints, compliance reviews and audits, and HHS states there is no HIPAA certification. DeployOpen can prepare the controls and evidence, but independent auditors and certification bodies issue any formal assessment or attestation.

How DeployOpen works on this

DeployOpen plans, implements, customizes, hardens, documents and supports self-hosted OpenEMR inside your own infrastructure, including bulk claim generation for hospital and facility billing. The work starts with a written scope that defines which encounters, payers and claim rules the bulk run must cover before any build begins.

How we scope

  • Agree in writing which facility, payer and encounter populations the bulk claim run will cover
  • Map which charges, codes and fee schedules must be correct before any claim is generated
  • Define the reconciliation, review and approval steps that sit between generation and submission
  • Confirm the UB-04 and professional claim boundaries and how each batch will be tested

How we build

  • Configure OpenEMR billing, fee sheet and facility settings in a test environment you control
  • Build and test batch selection rules that exclude encounters with missing or unverified documentation
  • Run test batches against sample patient populations and compare results to expected claim totals
  • Set access controls and audit logging so each generation run can be traced to a named user

How we hand over

  • Deliver written runbooks covering batch selection, review steps, exception handling and rollback
  • Document configuration settings, role assignments and the reconciliation checks your team should repeat
  • Walk your billing and compliance staff through a supervised first production batch
  • Provide a findings list with fixes and a retest record before the scope closes

How we support

  • Offer ongoing support, OpenEMR upgrades and continuous testing as a retainer after handover
  • Re-test bulk generation logic after OpenEMR security releases that touch billing or the fee sheet
  • Review batch outcomes and rejection patterns with your team on an agreed schedule
  • Confirm the support model, response expectations and retainer terms in the written quote

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.