Connect data / Integrations
eClinicalWorks
Connect an eClinicalWorks practice to report on clinical data. Resplendent reads eClinicalWorks through its FHIR R4 Bulk Data export, using Resplendent’s own published eClinicalWorks app. There’s no user sign-in, and Resplendent never creates, changes or deletes records in eClinicalWorks.
Before you start
Section titled “Before you start”The practice’s eClinicalWorks administrator needs to:
- Activate the practice’s eClinicalWorks FHIR APIs.
- Create a FHIR Group for the patients to export, in the practice’s EMR Registry.
- Enable that Group for Resplendent’s app. In eClinicalWorks, go to Admin > Product Activation > FHIR APIs > Bulk/Backend Apps > Manage Groups and move the Group into Enabled Groups.
Then collect:
- The practice’s FHIR base URL: its FHIR R4 issuer, including the tenant ID, such as
https://staging-fhir.ecwcloud.com/fhir/r4/FFBJCDfor the eClinicalWorks sandbox. - The Group ID of the enabled Group.
Connect eClinicalWorks
Section titled “Connect eClinicalWorks”- Open Settings → Integrations.
- Find eClinicalWorks and click Connect.
- Enter the FHIR base URL and the Group ID.
- Enter a Connection Title and click Save & Test.
- When the test passes, click Sync Dataset and choose the Datasets and columns to sync.
The test starts a small patient export for your Group and cancels it straight away. It proves that eClinicalWorks accepts Resplendent’s app, your Group and the export, without downloading any patient data.
Datasets
Section titled “Datasets”Each Dataset holds one FHIR resource type. All of them sync incrementally, every 60 minutes by default and at most every 15 minutes.
| Dataset | FHIR resource |
|---|---|
| Patients | Patient |
| Encounters | Encounter |
| Observations | Observation |
| Conditions | Condition |
| Procedures | Procedure |
| Medication Requests | MedicationRequest |
| Allergy Intolerances | AllergyIntolerance |
| Immunizations | Immunization |
| Diagnostic Reports | DiagnosticReport |
| Coverages | Coverage |
| Care Plans | CarePlan |
| Care Teams | CareTeam |
| Goals | Goal |
| Devices | Device |
| Practitioners | Practitioner |
| Practitioner Roles | PractitionerRole |
| Organizations | Organization |
| Locations | Location |
Nested FHIR elements are stored as JSON text. Every row has the resource’s id and lastUpdated.
How syncing works
Section titled “How syncing works”- First load. Each Dataset asks eClinicalWorks for an export of its resource type, then loads it 1,000 rows at a time. Later syncs keep reading the same export until it’s all in. A large export, such as Observations, can take many syncs.
- Waiting on eClinicalWorks. eClinicalWorks builds the export before Resplendent can read it, and runs one export per Group at a time. While an export is still building or another one is running, the sync waits and tries again on its next run. Nothing is lost.
- Changes. After the first load, each sync exports only resources updated since the last one.
- Deletions. A nightly resync rebuilds each Dataset, so records removed in eClinicalWorks disappear. Exports of changes alone don’t report deletions.
Troubleshooting
Section titled “Troubleshooting”| Problem | What to check |
|---|---|
| The export is refused | The Group isn’t enabled for Resplendent’s app. Move it into Enabled Groups under Manage Groups. |
| The token request fails | Check that the FHIR base URL is the practice’s issuer, including its tenant ID. If it is, contact support. |
| “Bulk export is already in progress” or “still running” | eClinicalWorks is still building an export for the Group. The next sync picks it up. |
| Deleted records still appear | Wait for the nightly resync, or resync the Dataset. |