Adapter: Medplum CDR
Read and write FHIR resources to the local Medplum Clinical Data Repository.
Purpose
Search, read, create and update resources on a Medplum FHIR server, by default the one in the engine's Compose stack.
Auth
- Medplum client credentials (
clientIdandclientSecret).
Settings
Auth is no selector; the secret settings below are the credentials. Dotted names are fields inside an object setting. Secret settings are encrypted at rest, never returned by a read, and shown masked in the console and in exports; their defaults are not shown.
| Setting | Type | Required | Default | Secret | Description |
|---|---|---|---|---|---|
baseUrl | url | No | http://medplum-server:8103 | No | Medplum server base URL. |
clientId | string | Yes | No | Medplum OAuth2 client ID. | |
clientSecret | string | Yes | Yes | Medplum OAuth2 client secret. |
Actions
A trailing ? marks an optional step parameter. A message can supply only the keys in the last column; everything else comes from the step.
| Action | What it does | Step parameters | Keys a message may supply |
|---|---|---|---|
search | Search FHIR resources with query parameters. | resourceType, queryParams? | id, resourceId, resourceType, patient, patientId, fhirId, identifier, name, family, given, birthdate, birthDate, date, category, status, practitioner, appointmentId, encounterId, documentId, queryParams |
read | Read a FHIR resource by type and ID. | resourceType, resourceId | id, resourceId, resourceType, patient, patientId, fhirId, identifier, name, family, given, birthdate, birthDate, date, category, status, practitioner, appointmentId, encounterId, documentId, queryParams |
create | Create a new FHIR resource. | resource | resource, bundle, observation, episodeOfCare, patientId, encounterId, documentId, noteContent, noteTitle, authorName, documentType |
update | Update an existing FHIR resource. | resource | resource, bundle, observation, episodeOfCare, patientId, encounterId, documentId, noteContent, noteTitle, authorName, documentType |
import-bundle | Import a FHIR Bundle (transaction or batch). | bundle | resource, bundle, observation, episodeOfCare, patientId, encounterId, documentId, noteContent, noteTitle, authorName, documentType |
patient-everything | Get all data for a patient ($everything operation). | patientId | id, resourceId, resourceType, patient, patientId, fhirId, identifier, name, family, given, birthdate, birthDate, date, category, status, practitioner, appointmentId, encounterId, documentId, queryParams |
Minimal example
The smallest profile the engine accepts: the required settings only, with synthetic values. Create it with POST /api/adapter-profiles, then test it with POST /api/adapter-profiles/{id}/test.
{
"name": "Medplum CDR (example)",
"adapterType": "medplum",
"config": {
"clientId": "example-clientId",
"clientSecret": "synthetic-secret"
}
}Limits
- A Medplum server outside the stack is reached with the system CA store only: this adapter does not take the client certificate, private CA or proxy connection options.
import-bundlesends a transaction Bundle;patient-everythingrunsPatient/$everything.