Skip to main content

EMR Integration Overview

Vigil integrates with EMR systems to synchronize patient data and clinical documentation.

Data Flows

Inbound (EMR → Vigil)

Data TypeMethodTrigger
Patient censusHL7 ADTAdmit/discharge/transfer
Observation levelsFHIR OrderPhysician order change

ADT Messages:

  • A01 (Admit) - Creates patient in Vigil
  • A02 (Transfer) - Updates patient location
  • A03 (Discharge) - Marks patient as discharged

Outbound (Vigil → EMR)

Data TypeMethodFrequency
ObservationsFHIR ObservationReal-time
Vital signsFHIR ObservationReal-time
AssessmentsFHIR ObservationReal-time

Data syncs within minutes of documentation in Vigil.

Configuration

Configure EMR integration at Settings > Integrations > Config tab.

Required Settings

SettingDescription
EMR TypeEpic, Cerner, MEDITECH, or Custom
FHIR Base URLEMR's FHIR R4 endpoint
Auth URLOAuth2 token endpoint
Client IDOAuth2 client identifier
Client SecretOAuth2 client secret

Optional Settings

SettingDescription
ScopesRequired OAuth2 scopes
HL7 Version2.4, 2.5, or 2.5.1
FHIR VersionR4 or STU3
SMART Launch URLFor patient context launch

Patient Matching

Vigil matches patients between systems using:

MethodFields
MRN onlyMedical Record Number
MRN + DOBMRN and Date of Birth
SSN + DOBLast 4 SSN and Date of Birth

Configure matching method based on your facility's policies.

Data Flow Toggles

Enable or disable specific data flows:

FlowDirectionDefault
Patient CensusInboundEnabled
ObservationsOutboundEnabled
VitalsOutboundEnabled
AssessmentsOutboundEnabled

Testing the Connection

  1. Navigate to Settings > Integrations
  2. On the Status tab, tap Test Connection
  3. Vigil attempts to:
    • Authenticate with your EMR
    • Verify FHIR endpoint accessibility
    • Check required permissions
  4. Results show:
    • FHIR version
    • Available resources
    • Permission status

Monitoring

Status Tab

View real-time connection status:

  • Connected - Integration working normally
  • Degraded - Some sync failures occurring
  • Not Connected - Integration not configured
  • Token Expired - Re-authentication needed

Sync Statistics

Track sync health:

  • Total syncs
  • Successful syncs
  • Failed syncs
  • Pending syncs

Sync Log

View individual sync events:

  1. Navigate to Sync Log tab
  2. Filter by:
    • All / Failed Only
    • Date range
  3. See sync details:
    • Timestamp
    • Data type
    • Status
    • Error message (if failed)

Retrying Failed Syncs

Failed syncs retry automatically. To manually retry:

  1. Find the failed sync in the log
  2. Tap Retry
  3. Monitor for success

ADT Log

View incoming ADT messages:

  1. Navigate to ADT Log tab
  2. See received messages:
    • Timestamp
    • Message type (A01, A02, A03)
    • Patient identifier
    • Processing status

Security

EMR credentials are:

  • Encrypted at rest
  • Never logged or displayed
  • Transmitted only over HTTPS
  • Stored in Vigil's secure credential vault

See Security for details.