On this page

Planning this workflow?

The [RCM & Billing Decision Guide](/content/docs/decision-guides/rcm-billing/index.html) walks through requirements questions and FHIR modeling decisions for billing — use it alongside these docs.

The FHIR spec supports [many resources](/content/products/billing#fhir-resources/index.html) related to billing and payments. These resources can be created programmatically to support billing and payments. Commonly as part of a billing implementation, FHIR resources are created by applications and synchronized to clearinghouses or billing providers using [subscriptions](/content/docs/subscriptions/index.html) and [bots](/content/docs/bots/index.html).

For example, after a lab test is completed, a [DiagnosticReport](/content/docs/api/fhir/resources/diagnosticreport/index.html) is created, and it and related resources are automatically sent to a billing system after the report is finalized.

For billing insurance, the [Coverage](/content/docs/api/fhir/resources/diagnosticreport/index.html) resource is critical for representing a patient's insurance. Refer to our [Patient Insurance](/content/docs/billing/patient-insurance/index.html) guide for more information on properly storing patient insurance information.

## Coding [​](/content/docs/billing#coding "Direct link to Coding"/index.html)

For resources to be billed appropriately, they often need to be tagged with CPT Codes, LOINC or SNOMED ontologies. To accomplish this, resources are often tagged with a [Codeable Concept](/content/docs/fhir-basics#standardizing-data-codeable-concepts/index.html). Coding will be determined by the service provided.

Through automation and integration, more complex scenarios like determining authorization or checking whether insurance is active can be automated via bots.

## Sample Integrations [​](/content/docs/billing#sample-integrations "Direct link to Sample Integrations"/index.html)

The [medplum-demo-bots](https://github.com/medplum/medplum-demo-bots) Github repository has sample billing integrations that demonstrate how to maintain and synchronize billing data.

- [Stripe](https://github.com/medplum/medplum/tree/main/examples/medplum-demo-bots/src/stripe-bots) integration shows how to keep invoices and payments synchronized between Medplum and Stripe.
- [Candid Health](https://github.com/medplum/medplum/tree/main/examples/medplum-demo-bots/src/candid-health) integration shows how to prepare an Encounter resource and associated metadata for submission.

- [Coding](/content/docs/billing#coding/index.html)
- [Sample Integrations](/content/docs/billing#sample-integrations/index.html)
