Mediloop
CONNECTOR SDK

Explore examples

Browse ready-to-use examples to implement common integration scenarios with the Mediloop Connector SDK.

Examples are available in multiple languages. Each example includes setup instructions and source code.
Patient data
Sync and manage patient records
Appointments
Create, update and sync appointments
Lab results
Ingest and query lab results
Prescriptions
Create and retrieve prescriptions
Device data
Stream and store observations
Marketplace
Sync products, orders and inventory
Search examples...
ExampleDescriptionLanguageUse caseComplexityUpdated
Patient Data SynchronizationSync patient demographics and identifiersTypeScriptPatient dataIntermediateMay 12, 2024
Appointment SchedulingCreate, update and cancel appointmentsPythonAppointmentsBeginnerApr 28, 2024
Lab Results IngestionIngest HL7/FHIR lab resultsTypeScriptLab resultsAdvancedMay 03, 2024
Prescription ManagementCreate prescriptions and retrieve statusJavaPrescriptionsIntermediateApr 15, 2024
Device Data StreamingSend device observations in real timePythonDevice dataAdvancedMay 18, 2024
Marketplace Order SyncSync orders and inventoryNode.jsMarketplaceIntermediateApr 10, 2024

Patient Data Synchronization

TypeScript
OverviewCodeSetupRunOutput
typescriptCopy
import { MediloopClient } from '@mediloop/connector-sdk';

const client = new MediloopClient({
  baseUrl: process.env.MEDILOOP_BASE_URL!,
  apiKey: process.env.MEDILOOP_API_KEY!,
  timeout: 30000,
});

async function upsertPatient() {
  const patient = await client.patients.upsert({
    externalId: 'ext-12345',
    firstName: 'John',
    lastName: 'Doe',
    birthDate: '1980-01-01',
    gender: 'male',
  });
  console.log('Patient synchronized:', patient.id);
}
upsertPatient();