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.
Popular use cases
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...
| Example | Description | Language | Use case | Complexity | Updated |
|---|---|---|---|---|---|
| Patient Data Synchronization | Sync patient demographics and identifiers | TypeScript | Patient data | Intermediate | May 12, 2024 |
| Appointment Scheduling | Create, update and cancel appointments | Python | Appointments | Beginner | Apr 28, 2024 |
| Lab Results Ingestion | Ingest HL7/FHIR lab results | TypeScript | Lab results | Advanced | May 03, 2024 |
| Prescription Management | Create prescriptions and retrieve status | Java | Prescriptions | Intermediate | Apr 15, 2024 |
| Device Data Streaming | Send device observations in real time | Python | Device data | Advanced | May 18, 2024 |
| Marketplace Order Sync | Sync orders and inventory | Node.js | Marketplace | Intermediate | Apr 10, 2024 |
Patient Data Synchronization
TypeScriptOverviewCodeSetupRunOutput
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();