CharmHealth serves many ambulatory practices, specialty clinics and telehealth groups, so digital health teams often meet it as the second or third EHR they need to support after the large hospital vendors. Its developer documentation describes a FHIR API with standard OAuth flows, which makes the integration path familiar, but there are decisions about API versions, authentication types and practice-level enablement that are worth settling before writing code.
This guide walks developers through integrating with CharmHealth: the API generations, how authentication works for user-facing apps and backend services, what data and export options exist, how to test, and what to plan before production. Confirm current terms, access steps and any fees directly with CharmHealth before you build.
What does CharmHealth EHR integration for developers involve?
Adding CharmHealth to your integrations?
Agnotic builds EHR integrations across vendors, including FHIR apps and backend services for ambulatory EHRs.
CharmHealth EHR integration for developers means registering with CharmHealth's developer program, choosing the right OAuth flow for your app type, building against its FHIR API to read the patient data you need, testing in the sandbox, and having each practice enable your app. The documented API follows FHIR conventions, so teams with FHIR experience will recognize most of it.
As with any EHR, the differences are in the details: which resources are available, which actions are allowed, how scopes are named and how practices grant access. Read those details before designing features around them.
Which CharmHealth API version should you use?
CharmHealth documents two generations of its API. Its current documentation describes a FHIR API, version 2, using OAuth 2.0, while an older version 1 API uses a different domain and access process.
- New integrations: Build against the current FHIR API documentation unless CharmHealth advises otherwise.
- Existing v1 integrations: Plan a move to the current API, since access methods and scopes differ.
- Version in configuration: Keep base URLs and API version in configuration so changes do not need code edits.
- Confirm with CharmHealth: Ask which version new partners should use and whether v1 has a retirement plan.
How does authentication work for CharmHealth apps?
According to CharmHealth's documentation, developers first register a developer account and then choose an OAuth 2.0 option suited to their application. Confidential clients use the standard authorization code flow, and public clients, such as mobile or browser apps that cannot keep a secret, add PKCE.
- Provider-facing apps: Clinicians sign in and authorize your app to act within their access.
- Patient-facing apps: Patients sign in with their patient credentials and authorize sharing.
- Public clients: Use PKCE and never ship a client secret in a mobile or browser app.
- Token handling: Store refresh tokens securely and handle expiry, refresh and revocation.
How do backend services connect?
For system-to-system integrations without a user present, CharmHealth's documentation describes SMART Backend Services authentication, where your service proves its identity with a key pair and receives pre-authorized scopes. The documentation notes that system scopes support read access only.
- Key management: Publish your public key as a JWK set and protect the private key.
- Scope planning: Request only the system scopes your service reads.
- Read-only design: Plan any write-back through user-facing flows or other agreed methods, since system scopes are read-only.
- Scheduling: Run backend syncs on a schedule that respects rate limits and practice expectations.
The read-only limit shapes architecture. If your product needs to write results back to the chart, design that step around a user-authorized flow from the start. Retrofitting write-back after launch usually means changing screens, consent steps and support processes at the same time.
What data can you access and export?
The FHIR API exposes patient data as standard resources with scopes per resource type. For whole-record exports, CharmHealth's documentation for its EHI export says practices can export patient data in FHIR version 4.0.1, HL7 C-CDA and CSV formats.
- 1. List your data needs: Every data element each feature uses.
- 2. Map to resources: Find the FHIR resource and scope for each element in the documentation.
- 3. Check search parameters: Confirm the searches your screens rely on are supported.
- 4. Note gaps: Mark data your product needs that the API does not provide.
- 5. Choose bulk paths carefully: Use exports for migrations and analytics, APIs for live features.
How should you test a CharmHealth integration?
Test in the sandbox CharmHealth provides through its developer program, then with a pilot practice's real configuration before wider rollout.
- Auth flows: Every client type you support, including token refresh and revocation.
- Data shape: Resources with missing fields, multiple values and unusual codes.
- Errors: Expired tokens, denied scopes, rate limits and service interruptions.
- Pilot practice: Real workflows with real users before inviting more practices.
What should you plan before production?
Before production, settle the agreements, enablement process, support model and monitoring. These take longer than the code for most integrations.
- Agreements: Developer program terms, business associate agreements and any fees, confirmed with CharmHealth.
- Practice enablement: How each practice grants access, and the help you give them to do it.
- Support: Who practices contact when the integration misbehaves, and your response times.
- Monitoring: Alerts on authentication failures, sync gaps and error rates per practice.
- Security review: Architecture, hosting and data handling documented for practices that ask.
How should you design for many practices?
Most products that integrate with CharmHealth connect to many independent practices, not one health system. Each practice grants access separately, uses its own configuration and has its own staff to support, so the integration has to treat every practice as a separate connection.
- Connection records: Store tokens, scopes, enablement date and status for each practice separately.
- Configuration per practice: Keep code mappings, appointment types and provider lists in data, not code.
- Onboarding checklist: Give each practice a short, written set of steps to enable your app.
- Health checks: Run a daily check per connection so a revoked token is noticed before users complain.
- Offboarding: Revoke tokens and delete or return data when a practice stops using your product.
A small onboarding tool for your support team pays off quickly. It shows each practice's connection state, last successful sync and recent errors on one screen, so support can answer a practice's question without reading logs.
Where does CharmHealth fit in a multi-EHR architecture?
CharmHealth works best as one adapter behind an internal interface that your product already uses for other EHRs. The product asks for a patient, an appointment or a medication list, and the adapter turns that request into the right CharmHealth calls.
- 1. Define internal models: Patient, encounter, medication and other objects your product uses, independent of any vendor.
- 2. Build the adapter: Map CharmHealth FHIR resources to and from those models.
- 3. Isolate authentication: Keep CharmHealth OAuth handling inside the adapter.
- 4. Record capabilities: Note per vendor which reads and writes are supported, so features can check before acting.
- 5. Test with fixtures: Keep sample CharmHealth responses in your test suite to catch mapping regressions.
The capability record matters for CharmHealth in particular. Because backend system scopes are read-only, a feature that writes to the chart should check the capability record and fall back to a user-authorized flow or a manual task when write access is not available.
What are the common CharmHealth integration mistakes?
The common mistakes are the same ones that affect any EHR integration, made sharper by assuming one vendor behaves like another.
- Assuming write access: Designing backend write-back when system scopes are read-only.
- Secrets in public clients: Shipping client secrets in mobile or browser apps instead of using PKCE.
- Version confusion: Mixing v1 and v2 documentation in one integration.
- Skipping a pilot practice: Rolling out widely before testing with real configuration.
- No per-practice monitoring: Failures in one practice hidden in aggregate metrics.
What are best practices for CharmHealth EHR integration?
The practices that hold up are the same disciplined steps used for any EHR, applied to CharmHealth's documented specifics.
- Use the current API: Build on the documented FHIR API version.
- Match auth to client type: Confidential flow, PKCE for public clients, backend services for systems.
- Map data first: Resources, scopes and searches confirmed before design.
- Pilot with one practice: Real configuration before scale.
- Monitor per practice: Auth, sync and error alerts for each connection.
How Agnotic can help
Agnotic Technologies builds multi-EHR integrations for digital health products, including FHIR apps and backend services for ambulatory EHRs such as CharmHealth. We map your data needs to each vendor's documented APIs, implement the right authentication flows, build per-practice configuration and monitoring, and support pilot and rollout.
If you already integrate with larger EHRs, we can add CharmHealth behind the same internal interface so your product treats every EHR the same way.
Add CharmHealth without a new architecture
Plan a CharmHealth integration with our engineers, or read more EHR integration articles in the hub.
Related reading on Agnotic
See how SMART on FHIR scopes work, how other EHR vendors' APIs compare, and how to plan integrations across several EHRs.


