Thank you for your response! I'm working on a project with my team, and we're exploring whether the Medplum dashboard (medplum-app) can connect directly to a public HAPI FHIR server (e.g.,
https://hapi.fhir.org/baseR4) to display resources like patients (we are using the HAPI FHIR public server for initital testing). The reason for initially avoiding the medplum-server is that my team wants to prevent data duplication and prefers to use our existing server infrastructure for FHIR data storage.
I tried running the medplum-app Docker container standalone to connect to the public HAPI FHIR API, but I encountered the following error:
GET
http://localhost:8103/auth/me net::ERR_CONNECTION_REFUSED
client.ts:3348
GET
http://localhost:8103/auth/me net::ERR_CONNECTION_REFUSED
client.ts:902 TypeError: Failed to fetch
at OA.fetchWithRetry (client.ts:3348:38)
at async OA.request (client.ts:3261:22)
This suggests the medplum-app is trying to connect to a local medplum-server for authentication, which isn't running in my setup. Is it possible to configure the medplum-app to work standalone and authenticate directly with a public FHIR API? If so, what environment variables or settings (e.g., for authentication or FHIR base URL) are needed?
If the standalone approach isnβt feasible, and if itβs possible to achieve my goal of displaying all patients data from the public HAPI FHIR server (e.g.,
https://hapi.fhir.org/baseR4) in the Medplum dashboard by running the medplum-server, could you please explain how to set this up? Specifically, what configurations or environment variables would be required to connect the medplum-server to the HAPI FHIR server and ensure the dashboard displays the patient resources, if this is supported? Thank you for your guidance!