Mediloop
OPERATIONS CONNECTORS

Integration Patterns & Architecture

3 of 7

Choose flexible, secure and scalable patterns for connecting ERP, procurement, inventory, workforce, facilities, payer and other operational systems to Mediloop.

Architecture OverviewIntegration PatternsEvent-Driven ArchitectureData Mapping & TransformationReliability & Error HandlingDeployment Options
Architecture Overview
1
Operational Systems
ERP, procurement, WMS, HR, facilities, payer and partner systems
2
Integration Layer
APIs, adapters, protocol handlers, gateways and authentication
3
Validation & Mapping
Schema validation, transformation, canonical model, deduplication
4
Operational Canonical Model
Suppliers, stock, orders, invoices, staff, assets and reference data
5
Event & Workflow Layer
Events, workflow triggers, audit, monitoring and retries
6
Mediloop Services
Operational services and explicit links into clinical workflows
Bidirectional synchronization is used only when the source-of-truth and business process require it.
Integration Patterns
REST APIs

Real-time request/response; transactional integrations

GraphQL

Flexible queries where supported by the source

SOAP / OData

Enterprise and legacy vendor interfaces

EDI

Structured business documents such as orders/invoices

SFTP / File

Batch data exchange and legacy integration

Message Queue

High-volume asynchronous processing

Webhooks

Real-time notifications and domain events

Batch Synchronization

Periodic import/export or reconciliation

Event-Driven Architecture
Publish domain events only after successful state change
Use stable event IDs and idempotent consumers
Preserve ordering where the business process depends on it
Retry transient failures with backoff and dead-letter handling
Include correlation IDs for end-to-end traceability
jsonCopy
{
  "event": "purchase_order.confirmed",
  "eventId": "evt_01J...",
  "occurredAt": "2026-09-06T12:15:00Z",
  "correlationId": "corr_123",
  "data": { "orderId": "po_45872", "status": "confirmed" }
}
// Illustrative event contract until the domain event schema is version-frozen.
Data Mapping & Transformation
Validate source schema and business-required fields
Map to the operational canonical model — not to FHIR unless the data is genuinely clinical
Preserve original identifiers and source values
Version field mappings and reference-data translations
Keep transformations reversible or traceable whenever practical
Use MSIS only for clinical terminology/semantic normalization at cross-domain boundaries
Reliability & Error Handling
ConcernRecommended patternOperational outcome
DuplicatesIdempotency key + source transaction IDSafe retries
Transient errorsExponential backoff + jitterAutomatic recovery
Permanent errorsDead-letter / exception queueControlled manual resolution
Partial batch failurePer-record result + resumable processingNo all-or-nothing data loss
DriftScheduled reconciliationSource/target consistency
ObservabilityCorrelation IDs, logs, metrics, tracesFast diagnosis and audit
Deployment Options
Cloud Connector

Managed integration when external systems expose secure internet/private endpoints

On-Premise Gateway

Local adapter for legacy systems, private networks and local files/protocols

Hybrid Deployment

Cloud orchestration with controlled local connectivity

Partner-Managed Adapter

Certified partner connector where vendor/customer operations require it

Security Considerations
OAuth/OIDC where appropriate; mTLS/service credentials for system-to-system traffic
Private connectivity/VPN where enterprise policy requires it
IP allowlisting, rate limits and tenant-scoped authorization
Encryption in transit and at rest
Audit configuration and data-access events
Never put operational integration credentials in browser/client code
Developer Integration Surface
SurfaceOperation / resourceUseStatus
REST/GraphQL/OData/SOAPVendor endpoints and Mediloop domain APIsSynchronous integrationsAPI surface
EDIEDIFACT/X12 messages + acknowledgementsB2B transactionsProtocol surface
SFTP/filesCSV/XML/JSON + manifest/checksumBatch/legacyProtocol surface
Webhooks/queuesEvents + delivery guaranteesAsynchronous automationSchema by domain
Gateway/SDKAdapter lifecycle, auth, mapping and retriesCustom/legacy modernizationPlanned/evolving
Next Steps
Continue to Data Mapping & Transformation once the transport and deployment pattern is selected.