Ingesting 277CA acknowledgments and 835 remittances into Medplum

Closing the claims loop in Medplum means receiving 277CA and 835 reports, storing them as DocumentReferences, matching payments to claims and routing denials. This page covers the setup, mapping, security and failure points.

On this page

How 277CA and 835 ingestion closes the claims loop in Medplum

Without ingestion, a billing team that has sent claims learns what happened only by logging into payer portals and checking each claim by hand. Ingesting 277CA acknowledgments and 835 remittances closes that loop by writing payer responses back into Medplum, so every claim has a recorded status from submission through payment. A 277CA claim acknowledgment reports whether the payer's front end accepted the claim for adjudication. An 835 electronic remittance advice (ERA) reports what the payer paid, the allowed amounts and the adjustment reason codes for each service line. Stedi delivers these reports to your environment either by webhook, which pushes each file when it is ready, or by a poller, which your system calls on a schedule to fetch new files.

The supported build path runs on Medplum's side through its FHIR R4 API, with Bots or Subscriptions reacting to each incoming report. The receiving component should store the raw 277CA or 835 as a DocumentReference so the original payer file is retained for audit, then create or update the related Claim, ClaimResponse and payment records. Before writing any code, confirm in Stedi's documentation which delivery mode fits your account, how webhook signatures are verified, how retries and duplicate deliveries behave, and which file formats and transaction identifiers are included. Those details belong to Stedi and should be checked against its current documentation rather than assumed from this page.

Plan the reconciliation logic and the denial routing as part of the same build. Match each remittance to a claim using the payer claim control number and the patient account identifier, and decide in advance how partial payments, duplicate 835 files and remittances with no matching claim will be handled. Route denied or partially paid lines to a named work queue with the adjustment reason and remark codes attached, and set an owner for each queue. Your team should also decide how long the raw files are retained, who can read them, and how access is logged, since remittance files contain protected health information. Test the full path with a payer or test setup that Stedi provides before relying on it for production cash posting.

What you need before the first remittance file lands

Five things must be in place before a 277CA or 835 file can be received, stored and reconciled. Each card names the party who owns it, so gaps surface during planning rather than on the first live file.

Medplum project and client credentials

Your team owns a Medplum project, either on Medplum Cloud or self-hosted in your infrastructure, with a server-to-server client that uses client credentials. The ingestion Bot or poller authenticates as this client, not as a person, so its access can be scoped to DocumentReference and Task writes and revoked without affecting staff accounts. Confirm the client's access policy before the first file, because an overly broad policy exposes every remittance to any service that holds the secret.

Medplum auth docs

Stedi delivery method confirmed

Your revenue cycle or billing lead owns the Stedi account and must confirm, in writing with Stedi, how 277CA acknowledgments and 835 ERA files will be delivered: webhook push or polling of available files. Confirm which payers and trading partners are enabled for each file type, since a payer that is not enrolled for ERA will send nothing. The delivery choice decides the network design in the last card, so settle it first.

Business associate agreement with Stedi

Your compliance or legal owner must hold a signed business associate agreement with Stedi covering the electronic protected health information in these files. An 835 contains patient names, member identifiers, dates of service and claim detail, and a 277CA references claims by patient and payer. The agreement should require Stedi to comply with the Security Rule, flow the same terms to subcontractors, and report security incidents to you, as 45 CFR 164.314 describes. Ask for the agreement before any test file is sent.

Medplum version and upgrade path

Your platform engineering lead owns the Medplum version your deployment runs and the plan to keep it supported. Medplum's versioning policy sets a support window for each major version and a patch cadence, so pin a version that is still within support on the day you go live. For self-hosted deployments, record the upgrade sequence in advance, because the upgrading guide warns that skipping minor versions causes startup failures and that post-deploy migrations can run for hours or days on large datasets.

Upgrade guide

Network path for webhooks or polling

Your infrastructure or security team owns the network path that receives Stedi webhooks or lets the poller reach Stedi's API. A webhook needs a publicly reachable HTTPS endpoint with a stable hostname, a firewall rule for Stedi's sending addresses if you restrict inbound traffic, and a way to verify the sender. A poller needs only outbound HTTPS and a schedule, but must handle missed windows and duplicate files. Document which path you chose, who can change it, and how a failed delivery is detected.

How reports flow from Stedi to Medplum work queues

The flow starts at the clearinghouse. Stedi produces the 277CA acknowledgment and the 835 remittance advice after it processes a submitted claim, and your integration either receives each report by webhook or fetches it with a poller. Whichever delivery method you choose, the first write in Medplum should be the untouched report file, stored as a DocumentReference tied to the originating claim or batch. Confirm with Stedi which identifiers each report carries, because those identifiers decide how the file is matched back to the right Claim later in the sequence.

Only after the raw file is saved should the parse step run. It reads the report and updates Claim status and payment records, such as the ClaimResponse and PaymentNotice or PaymentReconciliation resources your build uses. The stored raw file is the audit copy, and the parsed resources are working data that staff can correct, reprocess or rebuild from the original. Keep those roles separate in your design so that a bad parse never overwrites or replaces the evidence you may need for a payer dispute or an audit.

The parse step needs its own error path, because a file can arrive intact and still fail to map cleanly. Route unmatched remittance lines, claims that cannot be correlated and denied or partially paid items into a defined work queue with an owner, a reason code and a due date set by your revenue cycle team. Test this path with malformed and out-of-sequence reports before go-live, and confirm with your team how many days a queued item may sit before escalation. A parse failure should leave the raw file in place and the claim visibly open, so nothing is silently marked as paid.

Where 277CA and 835 reports enter Medplum, and where each outcome goes

The flow starts at Stedi, which sends 277CA acknowledgments and 835 remittances either by webhook to an ingress inside your network or through a poller job that your Medplum deployment runs outbound. Both paths land on a Bot that stores the raw report as a DocumentReference before any parsing, so the original file is kept. A parse and match step then links each line to its Claim, and the result routes to queues for accepted claims, paid items, partial payments and denials. Check that the ingress is the only inbound path crossing the trust boundary, and that the poller holds the only outbound credential.

Webhook and poller paths converge on one stored report and fan out by outcome.

Configuring Stedi delivery and Medplum storage in order

This sequence connects Stedi's 277CA and 835 report delivery to a Medplum ingestion identity, stores each report as a reviewable record, and routes results to work queues. Each step ends with a check you can confirm before moving on.

  1. Confirm report types and delivery method with Stedi

    Your billing lead and integration engineer confirm with Stedi which report types your account will receive, namely 277CA claim acknowledgments and 835 electronic remittance advice, and whether delivery will be by webhook push or by polling an API. Ask Stedi to confirm the payload format, the authentication method for the delivery, and how failed deliveries are retried. The step is done when you have a written note listing each report type, its delivery method, and a sample payload from Stedi's sandbox that your team has saved for testing.

  2. Create the Medplum client and access policy

    A Medplum administrator creates a dedicated client application for the ingestion process, using client credentials for server-to-server access rather than a person's login. Attach an access policy that allows writing DocumentReference and Binary resources and reading the Claim resources it must match, and deny everything else. Check that the client can create a test DocumentReference and is refused when it tries to read an unrelated resource type. Confirm in the audit log that the client's actions are recorded under its own identity.

  3. Build the receiving endpoint or poller

    Your integration engineer builds either a webhook endpoint that accepts Stedi's push delivery or a scheduled poller that fetches new reports, depending on the method confirmed in the first step. The receiver should verify the sender's authentication, reject unauthenticated requests, and record each report's Stedi identifier so duplicate deliveries can be ignored. Send a sample report through the receiver and confirm it is accepted once and rejected when sent with invalid credentials. Keep the receiver's logs free of patient identifiers.

  4. Store a test 277CA as a DocumentReference

    Store the raw 277CA file as a Binary in Medplum, then create a DocumentReference that points to it and carries the claim reference, report type, and receipt date. Retrieve the DocumentReference and its Binary through the API to confirm the original content is intact and matches the sample file byte for byte. Open the audit event for the write and confirm it names the ingestion client as the actor. This step is complete when the stored report can be fetched and its audit entry shows what wrote it.

  5. Parse the 277CA into status records

    Build the parser that reads the stored 277CA and produces structured status entries, such as accepted, rejected, or pending with a status category and code, tied to the original claim. Decide whether these entries live as separate resources or as fields on the stored document, and document that decision for your team. Run the parser against the sample file and compare its output with the status codes printed in the source report. The check is that every status in the file appears once in the output and that a rejected claim is flagged for follow-up.

  6. Repeat the process for an 835 sample

    Send an 835 electronic remittance sample through the same receiver, store it as a Binary and DocumentReference, and parse its payment, adjustment, and claim-level lines into structured records. Confirm that payment totals in the parsed output equal the total in the source file, and that adjustment reason codes are preserved exactly as received. Verify in the audit log that this write is attributed to the same ingestion client. The step is done when a known 835 can be retrieved in full and its payment figures reconcile with the source.

  7. Wire the match step and queue routing

    Connect each parsed record to its originating Claim using the claim identifiers and correlation values returned by Stedi, and flag records that do not match any claim for manual review. Route denied claims, partial payments, and unmatched remittances into separate work queues that your billing staff monitor. Test each route with one sample of each type and confirm the item appears in the correct queue with its source document linked. Your sign-off is the first full run in which every test record is matched, routed, and traceable to its stored report.

How remittance and acknowledgment data maps to Medplum resources

This table compares each element in a 277CA acknowledgment or 835 remittance with the Medplum resource or field where it should land and the reason for that choice. Read it as a starting design for your billing team to confirm, not a fixed specification. The main takeaway is that the raw files should be kept as documents, while claim status and payment facts need structured records that can be reconciled and routed.

Source elementMedplum resource or fieldReason
Raw 277CA or 835 fileDocumentReference with the original X12 content attachedKeeps the exact payer-sent file for audit, replay and dispute review without altering it
277CA claim acknowledgment statusClaim status update or a linked status record, decided by the teamShows whether the payer accepted the claim for processing so work queues can react
277CA rejection reasons and status codesStructured note or extension on the status record, with the codes kept verbatimLets staff see why a claim was rejected without decoding the raw file
835 paid amount per claim linePaymentNotice or ExplanationOfBenefit-type record, if your model uses itSeparates the money received from the claim itself and supports posting and reconciliation
835 adjustment group and reason codesAdjustment detail on the ExplanationOfBenefit-type record, kept as code valuesPreserves payer reasons so denials and write-offs can be routed by reason
835 check or EFT trace numberIdentifier on the payment record, with the payer referenceAllows deposits to be matched against bank statements during reconciliation
Payer claim number and correlation identifiersIdentifier written back to the Claim resourceTies each acknowledgment and remittance back to the originating claim during later lookups

How payments are matched to claims without double posting

Payment posting is where a claims loop either closes cleanly or quietly drifts, so the matching key and the posting rule must be fixed before the first 835 is ingested. Match each remittance line first on the payer claim control number from the 835 (the claim-level identifier the payer assigns), then confirm it against the submitted claim identifier your Medplum Claim resource carries, which was written back when the claim was sent. Use the submitted identifier as the primary join and treat the payer number as the cross-check, so a payer that renumbers a claim does not orphan a payment. Where a file cannot be matched on either key, route it to the unmatched queue rather than guessing on patient name or amount.

Partial payments and split remittances need explicit rules. One 835 can pay several claims for the same patient, and one claim can be paid across several remittance lines, sometimes with adjustments and patient responsibility on separate lines. Decide how each adjustment reason code maps to a write-off, a contractual adjustment or a patient balance, and write that mapping down before go-live. Posting should be idempotent: store a fingerprint of each transaction (for example, the trace number plus the claim identifier and paid amount) and refuse to post a fingerprint that already exists, so a webhook or poller that redelivers the same file leaves balances unchanged. Confirm with your integration partner how Stedi re-delivery behaves for your account and test a deliberate replay in a non-production project.

The billing lead should run a daily reconciliation report that compares the sum of posted remittance amounts, by check or EFT trace number, against the bank deposit for the same day, and lists every difference by item. Each unmatched item needs a named owner and an age limit set by your revenue cycle team, with the front-end billing specialist owning eligibility and demographic mismatches, the coding or claims team owning claim-level mismatches, and the lead owning anything that does not clear before a deposit is closed. Keep the report and its sign-off as evidence, because a deposit that cannot be traced to posted lines is the first thing an auditor or payer dispute will test.

Webhook or poller: choosing how reports arrive

A webhook pushes each report to an HTTPS endpoint you expose as soon as the clearinghouse has it. Your side must accept inbound requests from the clearinghouse, so the endpoint needs a public or allow-listed address, a valid TLS certificate and a route into your Medplum deployment or an intermediary service that forwards the payload. Medplum-side, the receiver usually runs as a Bot or a custom operation that validates the payload, stores the report as a DocumentReference and queues reconciliation work.

  • Network requirements: Inbound HTTPS from the clearinghouse must reach the receiver, and firewall, load balancer and WAF rules must allow it without blocking the source.
  • Authentication: Verify the sender with whatever shared secret or signature scheme the clearinghouse supports, and reject unsigned requests.
  • Retries: Confirm with Stedi how many times failed deliveries are retried, the retry interval and whether ordering is guaranteed.
  • Missed reports: Webhooks alone cannot prove completeness, so track expected report counts per submitted batch and alert when a reply does not arrive.
  • Endpoint ownership: Usually the platform or integration team owns the endpoint, with the revenue cycle team owning the downstream queues.

Confirm retry, deduplication and ordering behavior in Stedi's documentation before you rely on any of them.

Protecting ePHI in remittance files and the audit trail

277CA and 835 files carry protected health information about patients, claims and payments, so the safeguards around them are part of the integration, not an afterthought. The cards below cover the contract, identity, session, encryption and access controls that a HIPAA Security Rule review of this pipeline will ask about.

Business associate terms with Stedi

Stedi handles remittance and acknowledgment data on your behalf, so your agreement with it has to meet the business associate contract requirements in 45 CFR 164.314. Confirm that Stedi must comply with the Security Rule, that it flows the same terms to any subcontractor touching ePHI, and that it reports security incidents to you. Check these terms before the first live file, not after the first audit request.

Section 164.314 text

Unique identity for every actor

Each person and each service that reads, writes or replays remittance files needs its own identity, including the poller, the webhook receiver and any Bot. Shared credentials make the audit trail unable to show who opened a 835 file. Map each identity to a Medplum project member or client application and record the owner of each one.

Automatic logoff for interactive sessions

Staff who open remittance DocumentReferences in the Medplum web app should be logged out after a set idle period, because a left-open browser on a billing desk exposes payment detail. Automatic logoff is an addressable implementation specification under the technical safeguards in 45 CFR 164.312, so document whether you enable it and what idle period you chose. Confirm the session lifetime settings your Medplum version exposes.

Encryption of stored and transmitted reports

Encrypt 277CA and 835 files at rest in object storage and in transit between Stedi, your webhook endpoint and the Medplum server. Encryption is also an addressable specification under 45 CFR 164.312, which means you must either implement it or document why an equivalent measure fits your environment. Record the key management approach and who can rotate keys.

Access policies for raw remittance files

Raw 835 content lists patient names, claim numbers and payment amounts, so most staff need the reconciled view, not the file itself. Use Medplum access policies to restrict read access to the binary and DocumentReference resources to the billing team, and log every read. Test the policy with a non-billing account before go-live.

Medplum compliance docs

Where remittance ingestion breaks and how to fix it

This table lists the failures teams most often hit when receiving 277CA and 835 reports in Medplum, with the likely cause and fix for each. Read each row as a checklist item for your own pipeline, and confirm every fix against sample reports from your Stedi account before relying on it in production.

SymptomLikely causeFix
Same payment posted twice after a redeliveryThe webhook or poller handler is not idempotent, so a retried delivery creates a second payment record for the same 835 transaction.Key each stored report and payment on the transaction or trace identifier from the file, check for an existing record before writing, and return success for duplicates.
Reports missing from Medplum after a busy periodThe webhook endpoint takes too long to respond, so the sender times out and the report is not recorded as received.Acknowledge the request quickly, store the raw report first, and move parsing to a background Bot or queue. Use the poller as a backstop to fetch anything the webhook did not record.
Parser fails on one payer's fileThe 277CA or 835 contains a segment, loop or qualifier your parser does not expect, so the whole file is rejected.Log the raw file as a DocumentReference, quarantine it for review, and extend the parser for the new segment. Test against that payer's sample before reprocessing.
Payments never match a claimThe payer control or claim identifiers were not written back to the Claim resource after submission, so the 835 has nothing to match against.Write the correlation identifiers returned at submission to the Claim, then match payments on those identifiers and patient account number. Confirm the matching keys against your Stedi samples.
Denied claim sits in the paid or pending queueThe reason codes in the remittance are not mapped to a work queue, or the routing rule checks only the payment amount and not the adjustment codes.Route any claim with denial or adjustment reason codes to a denials queue. Review the mapping table with your billing team and confirm each code against the payer's remittance documentation.
Parsing stops working after a Medplum upgradeA resource field or search parameter the parser reads has been renamed, moved or changed in the new Medplum version.Run the parser against stored sample reports in a staging environment before upgrading production. Pin field access in one module so future changes touch a single place, and confirm the upgrade notes for each version passed.

How much effort does 835 ingestion take and what does the work need from us?

How much does 835 ingestion cost and what drives the price up?

The cost depends on the written scope, not on a standard rate, and DeployOpen does not publish prices. The main drivers are the number of payers sending remittances, the volume of 277CA and 835 reports per month, how many posting rules the team needs, how complex denial routing is, and which practice management system receives the payment postings. Each added payer format, posting rule or work queue adds build and test time. Ask for a quote that separates one-time build work from any recurring retainer for upgrades and monitoring.

How long does 835 ingestion take to build and validate?

The duration is set by the number of payers, the posting and denial rules, and how many systems must receive the output. A written scope should state the phases, the deliverables for each, and the dates agreed before work starts. Validation with real remittance samples is usually a separate phase, because it depends on getting de-identified or test ERA files from billing and on reviewing how each payer formats adjustment codes. Ask the partner to show how long validation will run, what sample volume it will cover, and who signs off on posted payments.

Can an internal team build 835 ingestion without outside help?

A team with engineers who know FHIR, webhooks or pollers, and X12 remittance structure can build it alone, but the work is more than parsing a file. The team must handle report storage, idempotent reprocessing, payment reconciliation against claims, and denial routing, and each of those needs business rules from billing. Teams without prior X12 experience usually spend most of their time learning the format and testing edge cases. Weigh your engineers' capacity and the cost of a delayed cash cycle against a partner's fixed-scope delivery, and compare both options against the same written requirements.

What does 835 ingestion need from billing, compliance and engineering?

The work needs three inputs from different owners:

  • Billing: posting rules, adjustment and denial reason mappings, the work queue structure, and the list of payers and their remittance behavior.
  • Compliance: approval of where remittance files are stored, who can view them, retention periods, and how the audit trail is kept. Remittances contain protected health information, so access and logging decisions belong here.
  • Engineering: a hosting environment, credentials for the clearinghouse, an endpoint for webhooks or a polling schedule, and an owner for the Medplum Bots and deployment changes.

Name a single decision-maker for each area before the scope is signed.

What should a quote for 835 ingestion include?

A quote should follow from a written scope and list what is included and excluded. Ask for the payers and report types covered, the storage design for 277CA and 835 files as DocumentReferences, the reconciliation logic, the denial routing rules, and the validation plan with sample volumes. Also ask who provides test data, how changes to payer formats are handled after go-live, whether the work includes documentation and handover, and the support terms offered after launch. Any assumption that moves cost, such as a new practice management system, should be written down.

How does the team keep 835 ingestion current after go-live?

Payer remittance formats, clearinghouse fields and Medplum releases change over time, so the work needs an ongoing owner after launch. Medplum publishes a versioning policy with patch releases on a weekly cadence and a major release each year, and self-hosted deployments must apply minor upgrades in sequence. Ask the partner what monitoring covers failed ingestion, how payer changes are tested, and whether a retainer covers upgrades, security patches and retesting. Confirm the response expectations for each category in writing rather than assuming them.

What should we confirm about the Medplum version before scoping?

Confirm the Medplum version and deployment model first, because the ingestion design depends on which Bots, Subscriptions and storage options your deployment supports. Medplum's versioning policy sets the support window for each major version, and its upgrading guide warns that skipping minor versions can cause startup failures. Check whether you run the Medplum server on AWS, Kubernetes or another option, and confirm your database and cache setup. A scope written against an unsupported version will need rework, so verify these details with your engineers before a quote is requested.

How DeployOpen scopes, builds and supports remittance ingestion

DeployOpen treats 277CA and 835 ingestion as a fixed-scope piece of work on your own Medplum deployment, starting with the clearinghouse, the report flow and the work queues your billing staff will use. The written scope settles who owns each step, what gets tested and what your team receives at the end.

How we scope

  • Confirm which clearinghouse sends 277CA and 835 files and whether delivery is by webhook or polling.
  • Agree the storage pattern for raw reports as DocumentReference resources and the retention rules that apply.
  • Define which denial categories route to which work queues and who owns each queue after go-live.

How we build

  • Build the receiver, file parsing and idempotent storage so a re-delivered report does not create duplicate records.
  • Write the payment reconciliation logic against your Claim and payment data, with exceptions listed for manual review.
  • Test with sample and sandbox reports, including rejected claims, partial payments and denials, before any production traffic.

How we hand over

  • Deliver the source code, configuration and Bot or Subscription definitions in your own repository, with setup notes.
  • Document the report flow, reconciliation rules, queue routing and failure handling so your billing team can review them.
  • Run a walkthrough with billing and engineering staff and confirm the runbook for failed or missing reports.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after handover, if your team wants it.
  • Plan retesting when the clearinghouse changes its report format or when your Medplum version is upgraded.
  • Ask any partner or support provider for written response expectations and confirm them in the contract before work starts.

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.