All EHR integrations
Native FHIR + write-back

eClinicalWorks integration

MedScrub connects to eClinicalWorks using SMART on FHIR Backend Services, pulling the complete USCDI v3 patient record — problems, medications, observations, referrals, immunizations, family history, social determinants, and coverage — into the MedScrub clinical data repository. Clinical skills run against the full longitudinal record, and the patient context flows into the self-hosted proxy for PHI de-identification before any data reaches a large language model.

eCW developer program
eClinicalWorks App Orchard

Integration model

How eCW and MedScrub connect

OAuth 2.0 client_credentials with an RS384-signed JWT assertion or client_secret Basic Auth, registered in the eClinicalWorks App Orchard. The FHIR base URL is practice-code-specific (fhir4.eclinicalworks.com/fhir/r4/{practice_code}); customers configure the full URL including their practice code. Rate limiting is 250 requests per minute per practice code. PHI flows from eClinicalWorks into the customer-hosted proxy; de-identification happens before any request reaches a large language model. Write-back (DocumentReference, Observation vitals, ServiceRequest referrals) requires a separate commercial agreement with eClinicalWorks.

Capabilities

What MedScrub does with eCW

Pre-visit planning

MedScrub pulls the patient record from the EHR before the appointment and surfaces care gaps, screening recommendations, and overdue chronic-disease milestones for the loaded patient.

SOAP note generation with write-back

Drafts a structured SOAP note from the patient chart, with ICD-10 coding and E/M level analysis. After physician review and sign-off, the note writes back to the EHR as a FHIR DocumentReference.

Population screening gap analysis

Runs HEDIS / USPSTF / MIPS quality-measure gap analysis across patient panels — breast, cervical, colorectal, diabetes, blood pressure, and depression screening.

Daily Briefing across the schedule

Batch pre-visit intelligence for the full clinic day, run overnight against the CDR, with delivery to mobile.

HEDIS season medical-record review

Automates payer chart-request response by searching the longitudinal record for measure-specific evidence.

Prior authorization drafting and appeals

Drafts prior-auth requests and denial appeals grounded in the patient chart, including evidence pulled from prior diagnostic reports and procedures.

CCM documentation

Monthly chronic care management documentation for CPT 99490 / 99491 billing, generated from the longitudinal record.

Coding optimization

2021-AMA MDM framework analysis flags under-coding opportunities with revenue-at-risk surfaced in the UI.

Data scope

FHIR R4 resources retrieved (USCDI v3)

  • Patient
  • Condition
  • MedicationRequest
  • Observation
  • AllergyIntolerance
  • Procedure
  • DiagnosticReport
  • DocumentReference
  • Encounter
  • Immunization
  • CarePlan
  • FamilyMemberHistory
  • MedicationAdministration
  • MedicationDispense
  • ServiceRequest
  • QuestionnaireResponse
  • Coverage
  • ChargeItem

Setup

How a eCW customer onboards

01

App registration on App Orchard

Register MedScrub at fhir.eclinicalworks.com/ecwopendev/ as a provider-centric Backend Services app. Select the USCDI v3 read scopes required for the deployment.

02

Environment configuration

Customer IT provides the practice-specific FHIR base URL (including practice code) and the OAuth token URL discovered from the SMART configuration endpoint. Configure the EHR_ECW_* environment variables on the MedScrub proxy.

03

Scope approval and sandbox testing

Required USCDI v3 read scopes are approved in the App Orchard sandbox (staging-fhir.ecwcloud.com) before connecting to the production practice. Write-back scopes (DocumentReference, Observation, ServiceRequest) require a separate commercial agreement via interop@eclinicalworks.com.

Tier limitations

What requires the native FHIR tier

The embedded sidebar integration is the EHR vendor’s third-party app pattern. Some MedScrub workflows require deeper FHIR connectivity that this tier does not provide.

  • Write-back (SOAP note to chart, vitals create, referral orders) requires a commercial agreement with eClinicalWorks via interop@eclinicalworks.com — not available on the standard App Orchard registration.

Ready to connect eCW?

MedScrub onboards eCW customers sales-led, with deployment engineering, EHR registration, and compliance review running in parallel. Most deployments are live in four to eight weeks.