medplum #dev
Channels
# dev
brandonin
08/03/2023, 2:25 PM
Do we use graphql for all of our searches, or do we only use graphql for certain searches? As I am trying to understand the payloads I noticed that we have https://api.medplum.com/fhir/R4 and https://api.medplum.com/fhir/R4/$graphql. when attempting to fetch patient data on the
details
page of a particular patient it does a batch call and I see two network requests. One with a traditional rest looking endpoint and a graphql request that seems to be looking for the FHIR resources. Is it a valid assumption to say we use graphql for FHIR resources and then traditional REST for retrieving the actual resourceType information?
- 2
- 2
brandonin
08/04/2023, 6:05 PM
Wanted to throw this idea. I don't think it makes sense to show a navbar unless there are menu props passed in. Here is the code that I wanted to change. I would include the
&& props.menus
How will I go about proposing this?
Copy code
// packages/react/src/AppShell/Appshell.tsx:63
navbar={
profile && navbarOpen && props.menus ? (
<Navbar
pathname={props.pathname}
searchParams={props.searchParams}
menus={props.menus}
closeNavbar={closeNavbar}
displayAddBookmark={props.displayAddBookmark}
/>
) : undefined
}
- 2
- 1
brandonin
08/04/2023, 6:06 PM
It doesn't make much sense to show a navbar that doesn't contain any properties.
brandonin
08/04/2023, 6:09 PM
Ultimately, I may just want to create a separate navbar/sidebar for more flexibility outside of the current abstraction that allows to accept an entire custom navbar or alternatively two sections: https://ui.mantine.dev/category/navbars.
brandonin
08/06/2023, 4:40 PM
I started to look into questionnaires more. I noticed in the Bot example for patient registration demo that values are referenced based on their position inside of the
items
array. Is there a way to retrieve the values in constant time? I would assume that attempting to parse information for a patient resource would be difficult by array index in the case you change questionnaire. I.e. adding given or legal names into the questionnaire which would cause all of the indexes to change. I know I can probably do an O(n) find based on the item's
linkId
but was seeing if there was a built-in alternative. It would also just be simpler to associate a name to like
items.givenName.answer[0].valueString
EDIT: This might answer my question. https://github.com/medplum/medplum-demo-bots/blob/main/src/patient-intake.ts
Copy code
const items = resource.item;
const [patientOutcome, patient] = await repo.createResource({
resourceType: 'Patient',
name: [\
{\
given: [items[0].answer[0].valueString],\
family: items[1].answer[0].valueString,\
},\
],
telecom: [\
{\
system: 'email',\
value: items[2].answer[0].valueString,\
},\
{\
system: 'phone',\
value: items[3].answer[0].valueString,\
}\
]
});
assertOk(patientOutcome, patient);
console.log('Created patient', patient.id);
const [serviceRequestOutcome, serviceRequest] = await repo.createResource({
resourceType: 'ServiceRequest',
status: 'active',
subject: createReference(patient),
requester: resource.meta.author,
reasonCode: [\
{\
text: items[4].answer[0].valueString,\
}\
]
});
- 2
- 3
brandonin
08/07/2023, 2:02 PM
Are we able to utilize wizards with questionnaires from the Medplum UI or would a good approach be to create questionnaires inside of medplum and then create a custom UI for the questionnaire? Currently, a patient intake form would be a single page of questions and it would be nice to break them down into separate pages for demographics, clinical history, family history, insurance, etc. And do the bots specifically work as a subscriber to the QuestionnaireResponse table? I'll go check the documentation to see if I can understand when the events take place with bots. But, it would be nice to know the control flow in the case i have to create custom UI for my patient intake.
- 2
- 4
l
ljnic
08/08/2023, 1:00 PM
Is it possible that fetching resource pages could be volatile?
- 2
- 8
codey1416
08/15/2023, 3:21 PM
What needs to happen to get cron functionality to show for bots?
joshua_kelly
08/17/2023, 10:20 AM
There's probably a better way to do this, but just sharing this example of injecting
dd-trace
(DataDog's tracing library) into the Medplum server via Dockerfile and an... interesting... custom entrypoint:
Copy code
FROM medplum/medplum-server:latest
RUN npm install --save dd-trace
RUN echo "const tracer = require('dd-trace').init();\
const medplum = require(\"./packages/server/dist/index.js\");\
medplum.main(process.argv.length === 3 ? process.argv[2] : 'file:medplum.config.json').catch(console.log)" > entrypoint.js
ENTRYPOINT [ "node", "entrypoint.js" ]
- 2
- 7
brandonin
08/18/2023, 9:08 PM
Are there recommended ways of associating patients to a Slot that is created for scheduling within the medplum ecosystem? https://build.fhir.org/slot.html I see that there is
comment
, but that doesn't bode well for an association. EDIT: I think I figured it out. Can just create an
Appointment
and potentially associate that to the Slot.
- 2
- 1
tzmartin
08/21/2023, 9:32 PM
hi there, just slid into this server this evening.. wanted to say thank you for building Medplum.
tzmartin
08/21/2023, 9:32 PM
Been testing medplum locally as i prepare for a few pilot projects.
tzmartin
08/21/2023, 9:33 PM
I'm manually deploying into GCP, which seems to be fairly undocumented but perhaps may be interesting to some other devs here.
- 2
- 3
tzmartin
08/21/2023, 9:33 PM
any insights from others as I begin this journey?
v
vijay.hambar
08/29/2023, 8:55 AM
Hi, I have deployed medplum app on local machine and able to use the same for super admin login. I want to test the foomedical patient app for patient registration and login. Right now its pointing to api.medplum.com but, I want to point it to meplum app which is running locally. Can anyone please help me to resolve this issue? Thanks.
- 2
- 2
y
yale_77214
08/29/2023, 9:55 AM
In the main.js file, where it instantiates the Medplum client, you can pass in a different
baseUrl
. If you're running medplum locally with the default ports, you can pass in
baseUrl: "http://localhost:8103"
y
yale_77214
08/29/2023, 9:56 AM
You may also be able to pass in
MEDPLUM_BASE_URL=...
as a config variable in the config.ts file ( https://github.com/medplum/foomedical/blob/main/src/config.ts) but I'm less certain about that one
v
vijay.hambar
08/29/2023, 11:33 AM
That did work, thank you very much.
l
ljnic
08/29/2023, 12:59 PM
Has there been any progress on bots working in a non-AWS environment?
reshma
08/30/2023, 12:51 PM
We have made some progress here - will make an announcement when it is ready
v
vijay.hambar
08/31/2023, 1:39 AM
Hello, I have another question Can we give or remove the admin privilege to any patient dynamically? I want to add dual-role functionality to users where patients can also be admins. Please let us know if this is possible, if so how to do that. Thanks.
- 2
- 2
Logger
joshua_kelly
08/31/2023, 12:40 PM
As a follow up to this thread: https://discord.com/channels/905144809105260605/1113936455954346005/1141738248805298218
Would Medplum consider using a logging library again? Or exposing an option to provide a custom logger? Or some 3rd thing I'm not thinking of (other than a fork)?
We're trying to do distributed tracing through our API to Medplum (with Datadog's dd-trace). The stack traces work perfectly, it's super cool.
But one feature we are missing is connecting logs to traces. We need to be able to emit a trace id in log messages in each service. dd-trace automatically patches winston, pino, et al - but console.log requires manually writing the trace id.
So far we've come up with this truly awful Dockerfile option where we patch console.log:
Copy code
FROM medplum/medplum-server:latest as medplum
RUN npm install --save dd-trace
RUN echo "const tracer=require('dd-trace'),formats=require('dd-trace/ext/formats'),originalConsoleLog=console.log;console.log=(...args)=>{const span=tracer.scope().active(),record={};if(span){tracer.inject(span.context(),formats.LOG,record);}if(args.length===1){try{let parsedArg=JSON.parse(args[0]);if(typeof parsedArg==='object'&&parsedArg!==null){args[0]=JSON.stringify({...parsedArg,...record});}}catch(e){}}originalConsoleLog(...args);};tracer.init();" > tracer.js
ENTRYPOINT [ "node", "--require", "./tracer.js", "packages/server/dist/index.js", "env:" ]
- 2
- 4
nikulkhatik
08/31/2023, 2:40 PM
Hello, I'm encountering a CORS error when calling the Medplum API from my localhost. To provide some context, my Medplum server is hosted on AWS, and I've included "*" in the allowedOrigins configuration as well.
- 2
- 2
cody
09/05/2023, 6:30 PM
Hello all. We just posted a new Github Discussion on the Medplum server upgrade process: https://github.com/medplum/medplum/discussions/2778
We have some exciting features on the horizon, but some of those features will require additional maintenance. We want Medplum server administration to be as simple as possible, so we're proposing some updates to the CLI to automate this work.
If you have any thoughts, any feedback, or any suggestions, please let us know. If there is another self-hosted service that you really love, and you think does a great job of this, please share!
l
ljnic
09/08/2023, 1:05 PM
Why does Medplum resolve references with
urn:uuid
when it doesn't store the resource?
- 2
- 9
Charlie from Imagine
09/13/2023, 3:46 PM
Hey there 👋
I have a question about BullMQ usage for FHIR Subscriptions.
The FHIR subscription construct appears to use a library called BullMQ. Super cool library, with a lot of support and adoption, that enables an async queueing implementation on top of Redis. However, I am concerned about how this is hosted in Prod. When looking at the Cloudformation stack provided for self hosting - it uses AWS ElastiCache for Redis as a shared resource for BullMQ and the caching layer for FHIR resource fetching. ElastiCache does not guarantee disc persistence, so when a hardware fault occurs, you can and will lose everything. For the cache that's totally fine, but for subscription queues, I think thats a much bigger deal... What would happen if we lost all queued bot executions?
Does production use something different than the CDK package that is provided for self hosting?
Here are my sources: > [https://www.medplum.com/docs/api/fhir/resources/subscription](/content/docs/api/fhir/resources/subscription ""/index.html) - Medplum Subscription Docs
> https://github.com/medplum/medplum/blob/main/packages/server/src/fhir/repo.ts#L856 - Where FHIR updates trigger subscriptions.
> https://github.com/medplum/medplum/blob/08d11217b7b399c6232432f04389d4c66ce85f18/packages/server/src/workers/subscription.ts#L65 - Where the subscription workers are initialized and run.
> https://github.com/medplum/medplum/blob/08d11217b7b399c6232432f04389d4c66ce85f18/packages/cdk/src/backend.ts#L134-L148 - Where the self hosted Redis resources are defined.
> https://aws.amazon.com/elasticache/faqs/ - FAQ for ElastiCache, contains question about Redis AOF support for persistence.
- 2
- 3
Charlie from Imagine
09/15/2023, 4:57 PM
Does the mock client not support access policy searching?
I am getting:
Copy code
Cannot read properties of undefined (reading 'searchParams')
When calling
searchOne('AccessPolicy', 'name=Foo')
- 2
- 7
gwapokoohyeah
09/17/2023, 12:32 PM
Hello guys thanks building this wonderfull oss, I just want to have question, there is a medplum docker and its undocumented and how to add env configuration for it. Its better if it is added in docker-compose.yaml too. I check it only has posgres and redis on it. This way we could spin up the project and evaluate it.
Just like supabase setup
gwapokoohyeah
09/17/2023, 12:32 PM
Charlie from Imagine
09/18/2023, 9:50 AM
What are the ordering guarantees of bots triggered by subscriptions? Are they unordered? FIFO?
j
jay_stark
09/20/2023, 12:37 AM
Greetings everyone,
I'm currently engaged in working on a Diagnostic Catalog, and I've come across a fantastic guide on the Medplum website, which you can access here: Medplum Diagnostic Catalog Guide.
However, I have a rather specific requirement that I've been struggling to address using the information provided in this guide.
In my services, I have specific selected Biomarkers that need to be included in the report. However, on the laboratory side, I need to conduct the complete panel.
My question is, what is the most effective way to directly link Observation Definitions to Plan Definitions? In other words, what is the correct approach for handling orderable Observations within a specific Plan?
To illustrate this scenario further, let's consider an example:
Our laboratory offers two services: Wellness and Wellness Plus. Both tests are conducted using the same panels. However, Wellness requires 3 Observation Definitions to be included in the Result Report, while Wellness Plus requires 6. Despite this, at the lab level, both services follow the same procedure. But at the patient result report level, the Observations should not be the same.
Could you please advise on how I should manage such scenarios within the FHIR Medplum framework?
mikee6290
09/20/2023, 10:54 AM
Hey guys, I'm currently encountering a slight bug, if anybody can share a solution or an idea to fix it that would be great. I want to act on the onUnauthenticated functionality with in the Medplum Client by making the redirect url be to the home page when a user tries to navigate to a page that only logged in users can access, but it only works for some pages and not all. At the moment the application is ia NextJS application so i have my components within the app directory but some components needed to be client components so I separated them and built them within an external components folder and imported them into the necessary files within the app directory, and those are the files/components that shouldnt render when a user isnt logged in however they are being displayed. Any help in the right direction would be great.
gwapokoohyeah
09/20/2023, 1:13 PM
Which is much safer
Copy code
const medplum = new MedplumClient({ baseUrl: "http://localhost:8103" });
await medplum.startClientLogin(
process.env.SUPERADMIN_CLIENT_ID as string,
process.env.SUPERADMIN_CLIENT_SECRET as string
);
await medplum.startClientLogin(
process.env.PROJECT_CLIENT_ID as string,
process.env.PROJECT_CLIENT_SECRET as string
);
OR SHOULD I CREATE A NEW MedplumClient
Copy code
const medplum = new MedplumClient({ baseUrl: "http://localhost:8103" });
const projectClient = new MedplumClient({ baseUrl: "http://localhost:8103" });
gwapokoohyeah
09/20/2023, 2:28 PM
Medplum uses AWS CloudFront Presigned URLs for binary content such as file uploads. Error: Region is missing
Copy code
"dependencies": {
"@medplum/cdk": "^2.1.1",
"@medplum/cli": "^2.1.1",
"aws-cdk-lib": "^2.96.2",
"cdk": "^2.96.2",
"constructs": "^10.2.70"
}
v
vijay.hambar
09/21/2023, 8:44 AM
Hello dev team, we are unable to create a new patient with newly checked-out code. Please take a look at it. https://discord.com/channels/905144809105260605/1154397041951252550
p
pawat.sir
09/23/2023, 1:17 PM
Hi, i'm not sure this is the right channel to ask this question. I would like to know the system performance to self-host Medplum. If there is anything like LinuxForHealth FHIR document https://linuxforhealth.github.io/FHIR/guides/FHIRPerformanceGuide#2-system-sizing, it could be easy to plan the system or select technology. By the way, the Medplum platform is amazing.
codey1416
09/25/2023, 9:22 PM
Is there a way to readResource with specific references in a single call?
navemics
10/05/2023, 3:56 AM
Hi guys, this might be a dumb generic question but, I’m wondering what would be the approx AWS cloud charges for hosting medplum and using all the services invloved? In dev environment and in production environment? Maybe a rough number would help me understand with the planning. Thanks for taking the time to read this. Appreciate it
I am curious about any ETL tools that
s
scottypate
10/05/2023, 10:55 AM
I am curious about any ETL tools that can integrate with Medplum to do an extraction of data to a data warehouse. We use an ETL tool called Hevo (think the same type of tool as Stitch or Fivetran). It doesn't support parsing the bulk export endpoint responses. Are people mostly writing custom API jobs to land data in analytics databases?
j
jocelyn_76984
10/06/2023, 2:13 PM
Has anybody here set up an AWS Site-to-Site VPN for HL7 integration that I could ask some questions? I was hoping to do g10 but this EHR does not support FHIR APIs for what we need to do 🫠
p
pankaj_81531
10/07/2023, 9:36 PM
Hi @reshma and Medplum Folks - Thanks for building an amazing FHIR Dev Experience. I am running into an issue with adding Location. I am trying to add a Location for an Organization. However, while adding Location I am seeing Managing Organization field with no control next to it. How do I add an Organization Reference to a Location using Medplum App?
p
pankaj_81531
10/09/2023, 6:03 PM
I had a question about [https://www.medplum.com/docs/api/scim/users](/content/docs/api/scim/users ""/index.html) and [https://www.medplum.com/docs/api/project-admin/client](/content/docs/api/project-admin/client ""/index.html). Are these end points supported through Medplum TypeScript SDK?
If not, do we obtain a token via this method [https://www.medplum.com/docs/sdk/classes/MedplumClient#getaccesstoken](/content/docs/sdk/classes/MedplumClient#getaccesstoken ""/index.html) and then call these end points using the token? Just trying to understand how these end points are supposed to be called. Thanks for your help!
dvidsilva
10/10/2023, 11:47 AM
hi! Do any tools exist for quality reporting? Ie, I want to generate CPT billing codes for hypertensive patients based off their systolic and diastolic blood pressure values.
Karen Lin
10/11/2023, 4:09 PM
Hellos! Haven’t gotten into the weeds yet, but wanted to ask if medplum supports setting security headers? Specifically “Cross-Origin-Embedder-Policy" and “Cross-Origin-Opener-Policy"?
p
pankaj_81531
10/11/2023, 11:57 PM
Hello - One question about the core library here - https://github.com/medplum/medplum/tree/207c2e81f60490ffc792bb798bd684189e861447/packages/core. Is the core library designed to be used in the browser or can we also use it server side (for developing some server side services for ex)?
joshua_kelly
10/13/2023, 10:41 AM
Doe @medplum/server support Express request logs? I've got the AuditEvent logs, but maybe I'm doing something wrong and not seeing Express request logs?
- 2
- 1
ravindratc
10/13/2023, 2:29 PM
Hello! We've installed a fresh self-hosted Medplum system. But getting the below error while trying to use any component provided by '@medplum/react'
TypeError: a.data.StructureDefinitionList is not iterable at client.ts:1508:57
- 2
- 5
h
hnoj.
10/13/2023, 4:30 PM
Hi I'm not sure if this is more of a general fhir quesiton or one specific to medplum -- I'm curious how folks are validating snomed, loincs, and other terminologies when they come in as part of a resource?
j
julien_acn.
10/17/2023, 4:04 PM
Hi! Just a quick question regarding the lastest app package (v2.1.5). We updated our self-hosted environment, and noticed that the latest app package (@medplum/app@2.1.5) does not seem to contain the placeholder values (e.g. __MEDPLUM_BASE_URL__) for the CLI update process to substitute proper values. Was this an intentional change? Package v2.1.4 still has them. We ended up having to update the app by rebuilding from the repo.
- 2
- 4
o
oruchovets
10/18/2023, 6:20 AM
Hi. amazing stuff you are doing guys... I got that many UI component are patient oriented. in my case I would like to have a part of practitioners / doctors onboarding. may you suggest what is the best way implement
- registration
- collecting certifications / diplomas / courses certificates from the potential practitioner on the platform
Thanks.
In case it is a wrong forum branch please suggest where should I post the question?
- 2
- 2
p
pankaj_81531
10/19/2023, 9:13 PM
Hi there, We had a query while using MedplumProvider from @medplum/react library. In foomedical, the provider is passed a client like below. We are wondering how does this client know which project to use? The sign in form has the project id but the provider does not. Is that correct? And if so, how is the provider getting the Project Id. If there is any documentation of react MedplumProvider, that would be great too.
const medplum = new MedplumClient({ onUnauthenticated: () => (window.location.href = '/'), });
- 2
- 2
d
denniscod
10/24/2023, 11:31 AM
Hello guys, will there be support for different storage buckets than AWS in the future? We are not able to move the application to AWS, so it would be nice to be able to store files in non AWS Buckets.
m
mik401
10/24/2023, 11:33 AM
This. I'll need to connect to other datastores as well, such as one that can run on a private cloud.
m
mik401
10/24/2023, 11:40 AM
Could we just point it at a S3 compatible object store we run ourselves or get from another provider?
m
mik401
10/24/2023, 11:41 AM
Like MinIO etc?
rahul1
10/24/2023, 12:09 PM
@denniscod sorry for the delay, I just responded to your support post here: https://discord.com/channels/905144809105260605/1166053808300892300
rahul1
10/24/2023, 12:12 PM
@mik401 - This is not something we've tested, but if you're willing to run an experiment, we'd love to understand how well it worked / didn't work for you
m
mik401
10/24/2023, 12:22 PM
Interested in trying it. It should be possible without a lot of pain. I don't mind the S3 limitation as long as I can run it in my stack, if desired
m
mik401
10/24/2023, 12:26 PM
Should be an analog for the bots.
m
mik401
10/24/2023, 12:26 PM
Architecture is good, just need deployment options.
m
mik401
10/24/2023, 12:28 PM
https://aws.amazon.com/marketplace/pp/prodview-b2f55xsehvkbw#
m
mik401
10/24/2023, 2:13 PM
Are there any further breadcrumbs on the medplum agent for Linux? Install to start... Also any tips on what to reference in existing code or docs on building get/set/run-task calls to the agent? My use case is having a new medplum app access legacy services and old data on a previous emr.
- 2
- 3
m
mik401
10/24/2023, 2:14 PM
What would be a good "hello world" bot to use, in exploring what is needed to be done with medplum to call bots off bot libra and the like rather than aws itself. Up for giving it a go.
- 2
- 1
quadman.
10/25/2023, 3:56 AM
Hi everyone. My customer is running medplum on AWS and have asked me to get a bit acquainted with it. Is there a helm chart or other way of running medplum on kubernetes?
- 2
- 1
p
pankaj_81531
10/26/2023, 2:36 PM
Hey Medplum folks - We tried configuring a language for the patient. And we were able to save Patient FHIR JSON, however the UI does not quiet work properly for languages. Here is what I see when I saved Spanish as the preferred language for the patient.
- 2
- 1
sinewolf
10/28/2023, 5:16 AM
Hey guys, I have been trying to setup medplum open patient registration and subscribe to patient creation event to trigger some business logic workflows via a bot. The problem is when I execute bot related code it throws “no credentials found by any provider” and I am unable to get logs for the same
- 2
- 3
sinewolf
10/28/2023, 5:17 AM
For now I am only running the hello-patient example code
i
iyanu
10/30/2023, 7:16 AM
I'm new to programming and I'm attempting to configure Medplum.
i
iyanu
10/30/2023, 7:28 AM
Could someone kindly steer me in the correct direction? I'm feeling overwhelmed by the documentation.
m
mik401
10/30/2023, 9:47 AM
@iyanu are you trying to install the servers locally or use the medplum hosting platform?
aj__6570
11/06/2023, 9:54 PM
👋 hi team - does anyone know if the provider portal for foo medical shown here [https://www.medplum.com/docs/charting](/content/docs/charting ""/index.html) is available on github?
- 2
- 1
c
carlseverson
11/06/2023, 10:06 PM
My understanding is that that charting diagram is a mock up and doesn’t live in silico anywhere.
reshma
11/07/2023, 2:17 PM
We need to update the docs, but it is here: https://github.com/medplum/medplum-chart-demo
aj__6570
11/08/2023, 12:57 AM
With hosted medplum on the developer plan - how do I access Open Registration URL? [https://www.medplum.com/docs/auth/open-patient-registration](/content/docs/auth/open-patient-registration ""/index.html)
taylorqj
11/08/2023, 3:46 PM
Any idea on when @medplum/expo-pollyfills package will be released?
rahul1
11/08/2023, 7:12 PM
Coming in the next version! https://github.com/medplum/medplum/pull/3273
taylorqj
11/08/2023, 8:51 PM
Great! Thank you
aj__6570
11/08/2023, 9:13 PM
- 2
- 1
aj__6570
11/08/2023, 9:14 PM
what's the best way to debug
await
statements like these with the medplum client?
node
11/09/2023, 12:32 PM
In the medplum-demo-bots repo, for the eligibility-check-optkit example, would it be (more) appropriate to have email sending as a side-effect/subscription on the
CoverageEligibilityResponse
resource? This way email sending can be executed independently and retried if necessary
- 1
- 1
Chartdemo loading center panel stuck
r
roypeoplescience_53286
11/09/2023, 1:53 PM
Just ran Medplum-chart demo as is and imported the two patients (1 and 2) from the sample data ( [https://www.medplum.com/docs/tutorials/importing-sample-data](/content/docs/tutorials/importing-sample-data ""/index.html)). the left panel shows the history but the center panel gets stuck on loading. No errors are thrown. Anyone else have this issue?
- 2
- 2
node
11/09/2023, 5:02 PM
Does Medplums
fhir-router
have atomic guarantees with the
transaction
Bundle type? From the source, it seems like
batch
and
transaction
are handled the same but I might be missing something. https://github.com/medplum/medplum/blob/95c1d7c52de9b8eb1befb26c3336e6ddd5115ca9/packages/fhir-router/src/batch.ts#L30-L35
FHIR doc differentiates batch and transaction but I am curious if this is expected behavior and if it is defined somewhere. https://www.hl7.org/fhir/http.html#transaction > The batch and transaction interactions submit a set of actions to perform on a server in a single HTTP request/response. The actions may be performed independently as a "batch", or as a single atomic "transaction" where the entire set of changes succeed or fail as a single entity.
- 1
- 1
bubbly_puppy_96894
11/10/2023, 5:00 PM
Hi everyone. Is there any documentation on syncing the schedule resource with cal.com? [https://www.medplum.com/docs/api/fhir/resources/schedule](/content/docs/api/fhir/resources/schedule ""/index.html)
- 2
- 4
sajid_medrecord
11/15/2023, 12:01 PM
Need help in installing medplum on azure
sajid_medrecord
11/15/2023, 12:01 PM
or K8s
reshma
11/15/2023, 4:17 PM
No official support for Azure at this point, but Install on Ubuntu guide may be a starting point for the server? [https://www.medplum.com/docs/self-hosting/install-on-ubuntu](/content/docs/self-hosting/install-on-ubuntu ""/index.html)
sajid_medrecord
11/16/2023, 6:34 AM
I treid that but that's not a way to reach to production level setup
sajid_medrecord
11/16/2023, 6:34 AM
as It is sort of an local developement setup
y
ysu2023
11/16/2023, 1:06 PM
@rahul1 i really liked how you presented the data modeling during our conversation. what tool did you use? mermaid? or something else. Trynig to figure out how we keep track of our data modeling efforts
- 2
- 12
rahul1
11/16/2023, 1:34 PM
Yep! Mermaid
m
mik401
11/17/2023, 11:19 AM
It is just a vite/etc application - just build a container just like any application you might similarly write.
taylorqj
11/22/2023, 6:09 PM
Hey, working with programmatically inviting existing Practitioners to our project so they can login and noticed the de-dupe functionality doesn't seem to be working for User. The check to see if a user already exists looks for users that are not a part of the project, however, the invite route (and UI) always associates a user to a project.. so I'm getting duplicate users each time. Looks like the profile de-dupe is fine though.
- 2
- 4
Adriano Freitas
11/27/2023, 12:00 PM
Hello guys, I have a problem here in Docker, I wanted to know if anyone has faced it. I'm trying to upload Medplum via Docker, but in the npm run build command it gives an error.
The following error is generated:
8,505 @medplum/core:build: (node:204) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time 8,505 @medplum/core:build: (Use
node --trace-warnings ...
to show where the warning was created) 8,524 @medplum/core:build: fatal: not a git repository (or any of the parent directories): .git 8,528 @medplum/core:build: node:internal/errors:932 8,528 @medplum/core:build: const err = new Error(message); 8,528 @medplum/core:build: ^ 8,528 @medplum/core:build: 8,528 @medplum/core:build: Error: Command failed: git rev-parse --short HEAD 8,528 @medplum/core:build: fatal: not a git repository (or any of the parent directories): .git
I'm creating a container for Postgres, for Redis, one for the App and another for the server, and I'm uploading it via Docker with the following dockerfile:
FROM node:21-slim RUN apt-get update && apt-get install -y git COPY . /usr/src/medplum WORKDIR /usr/src/medplum RUN npm ci RUN npm run build RUN chmod -R 777 /usr/src/medplum/packages/app/docker-entrypoint.sh RUN chmod -R 777 /usr/src/medplum/packages/server/docker-entrypoint.sh CMD["bash"]
- 2
- 2
ravindratc
11/28/2023, 1:34 AM
Hello @rahul1 @codey1416 , I have a question regarding the server upgrade process. In the event of encountering an error after a successful upgrade, is there a mechanism or process in place to roll back the upgrade?
s
sybl_vi
11/28/2023, 8:30 AM
Hi I really like this framework but I have a question
Why does medplum.requestSchema("Patient").then(console.log) return undefined? even if it is hardcoded It shall work(using for debug)
- 2
- 2
node
11/28/2023, 10:07 AM
How would y'all recommend streaming an S3
GetObjectCommandOutput
to Medplum's
createBinary
on the server? The
GetObjectCommandOutput.Body
is typed as
StreamingBlobPayloadOutputTypes
which has the method
transformToWebStream: () => ReadableStream;
, however, the
medplum.createBinary
call doesn't support this.
- 1
- 1
dvidsilva
11/29/2023, 11:31 AM
Hi! posting 2 questions. Non blockers. We're releasing to prod soon with a self hosted instance in AWS, is been a fun process we'll share more about. Thank Github Copilot for saving you from many of my questions.
We're releasing a simple form signatures, turn to pdf and store product, loving it, the server runs, installed packages/app independently to use as a dashboard, we manage to send emails thru SES and reset password works. I still don't undertstand the whole Project and super admin part, so we're disabling register and leaving it at that.
1 - Would love to create an access_token I can return to a third party so that they have a shorter URL, the patient uses that with an id they know, the token only allows one user to edit itself and I expire it after the first edit. This to prevent a token leaking. Currently solving with an amount of custom code, but was hoping I could programatically log a Patient in and create one and then log them off from the server side and ClientApplications for each patient basically.
2 - Would love to see the super admin part, I deployed the dashboard and register and then disabled register to prevent me creating junk data, and so I'm limited to a Provider only view and not sure where or how to activate the super admin, I don't have any live data, so I could recreate the environment if needed, except after we launch hopefully soon.
- 2
- 2
u
_rdrdrdrd
12/04/2023, 5:45 PM
Hello all, I'm new here 🙂 I'm trying to test deploy to AWS and I'm struggling with the following issue:
12:28:40 AM | CREATE_FAILED | AWS::CloudFront::Distribution | StorageStorageDistributionAF8103AC Resource handler returned message: "Invalid request provided: AWS::CloudFront::Distribution: The specified SSL certificate doesn't exist, isn't in us-east-1 region, isn't valid, or doesn't include a valid certificate chain. (Service: CloudFront, Status Code: 400, Request ID:
u
_rdrdrdrd
12/04/2023, 5:46 PM
did someone had similar issue? thanks.
s
sanket_89360
12/05/2023, 2:01 AM
Hello all, I'm new here 🙂 I'm trying to deploy medplum on AWS and I'm struggling with the following issue while executing the synth step : [Error at /MedplumStaging/BackEnd] Found zones: [] for dns:mindbowser.com, privateZone:undefined, vpcId:undefined, but wanted exactly 1 zone
tzmartin
12/08/2023, 10:29 AM
Does anyone have a good OpenAPI 3 viewer (or validator) ? I'm finding it hard to inspect the medplum openapi schema.. v3 has limited support from existing providers. (reference: https://api.medplum.com/openapi.json)
jackwxyz
12/12/2023, 5:42 AM
Has anyone managed to create a "narrative charting" Canvas-style UI on top of Medplum?
bnapora
12/15/2023, 11:35 AM
Hi all. I'm working to build a worklist for launching DICOM images. Is anyone willing to share a GraphQL query that links ServiceRequest, DiagnosticReport, ImagingStudy & Patient?
- 2
- 2
s
slosarek
01/03/2024, 11:50 AM
Does anyone know if there is a way for force validation on the API side of medplum. For example, I want to require some fields for patients on entry and if it fails that validation, want an error to be thrown and not create the patient
- 2
- 5
a
alan
01/04/2024, 11:48 AM
node
01/11/2024, 1:46 PM
Are we able to get a v3 beta release tag cut from the v3 branch https://github.com/medplum/medplum/tree/v3 ? I know this was mentioned in the v3 cutover plan https://github.com/medplum/medplum/issues/3124 but curious if the beta is still planned
- 2
- 1
o
oruchovets
01/14/2024, 5:43 PM
hello, I have a local setup on my laptop and I can connect hello world app to my local setup. however connecting foomedical app I can't connect. Using existing user admin@example.com doesn't work and register user is failed. I am assuming the problem is on configuration of environment variables.
I made couple of attempts changing config.ts but it doesn't work:
(// Replace these values with your own values for production export const MEDPLUM_PROJECT_ID = '9602358d-eeb0-4de8-bccf-e2438b5c9162'; //export const MEDPLUM_GOOGLE_CLIENT_ID = '679052511930-8dqur4mmg8egbttgos5pmr4ljtf3etbb.apps.googleusercontent.com'; //export const MEDPLUM_RECAPTCHA_SITE_KEY = '6LfFd_8gAAAAAOCVrZQ_aF2CN5b7s91NEYIu5GxL';
// for localhost taken from hello world app export const MEDPLUM_GOOGLE_CLIENT_ID ='397236612778-c0b5tnjv98frbo1tfuuha5vkme3cmq4s.apps.googleusercontent.com' export const MEDPLUM_RECAPTCHA_SITE_KEY='6LfHdsYdAAAAAC0uLnnRrDrhcXnziiUwKd8VtLNq'
Can you please pointing me what I need to do to fix the issue and run foomedical connecting to the local medplum.
Thanks
- 2
- 2
h
hirru_52823
01/15/2024, 3:50 AM
Hi, I am trying to use medplum client in my nodejs app. While trying to login using email and password using startlLogin method i am getting this error
Copy code
Error fetching Medplum resource: ReferenceError: sessionStorage is not defined
at Ir.startPkce (/Users/hirdeshkumar/MB-HealthConnect/server/node_modules/@medplum/core/src/client.ts:3006:5)
at Ir.ensureCodeChallenge (/Users/hirdeshkumar/MB-HealthConnect/server/node_modules/@medplum/core/src/client.ts:1087:46)
at Ir.startLogin (/Users/hirdeshkumar/MB-HealthConnect/server/node_modules/@medplum/core/src/client.ts:1041:24)
at login (/Users/hirdeshkumar/MB-HealthConnect/server/src/auth/login.ts:85:43)
at Layer.handle [as handle_request] (/Users/hirdeshkumar/MB-HealthConnect/server/node_modules/express/lib/router/layer.js:95:5)
at next (/Users/hirdeshkumar/MB-HealthConnect/server/node_modules/express/lib/router/route.js:144:13)
at Route.dispatch (/Users/hirdeshkumar/MB-HealthConnect/server/node_modules/express/lib/router/route.js:114:3)
at Layer.handle [as handle_request] (/Users/hirdeshkumar/MB-HealthConnect/server/node_modules/express/lib/router/layer.js:95:5)
at /Users/hirdeshkumar/MB-HealthConnect/server/node_modules/express/lib/router/index.js:284:15
at Function.process_params (/Users/hirdeshkumar/MB-HealthConnect/server/node_modules/express/lib/router/index.js:346:12)
this is what i am doing const medplumClient = new MedplumClient({ baseUrl:
http://localhost:8103/
, });
const userLogin = await medplumClient.startLogin({ email, password, remember });
v
vladyslav3394
01/19/2024, 11:10 AM
Hey guys, need help
I created access policies using "Parameterized Policies (Beta)"
Here is my policy:
Copy code
{
"resourceType": "AccessPolicy",
"name": "admin_patient_access_policy",
"id": "ca8a5fb7-54e3-4abd-8677-556dae4bac8e",
"compartment": {
"reference": "%patient"
},
"resource": [\
{\
"resourceType": "Organization",\
"criteria": "Organization?_id=%provider_organization",\
"readonly": false\
}\
]
}
I also added "access" to membership of the user
Copy code
"access": [\
{\
"policy": {\
"reference": "AccessPolicy/ca8a5fb7-54e3-4abd-8677-556dae4bac8e"\
},\
"parameter": [\
{\
"name": "provider_organization",\
"valueReference": {\
"reference": "Organization/c2c24e98-6df0-469c-961b-e352913aea2f"\
}\
}\
]\
}\
]
It's working perfectly for GET operation, but for PUT it gives 403 forbidden error (Im using low level api)
( Readonly is false by default, also I tried with "readonly":false )
UPDATE Type of the parameter is valueReference in "access". It should have been replaced with string. It resolved issues👍
Copy code
"access": [\
{\
"policy": {\
"reference": "AccessPolicy/ca8a5fb7-54e3-4abd-8677-556dae4bac8e"\
},\
"parameter": [\
{\
"name": "provider_organization",\
"valueString": "c2c24e98-6df0-469c-961b-e352913aea2f"\
}\
]\
}\
]
brian0098
01/25/2024, 12:27 PM
Hello All. Complete newbie here. Spent some time browsing the code. Nice work! I was wondering if there is a section in the documentation about how to add new resources. For my use cases they would be ResearchStudy, ResearchSubject and DocumentReference
- 4
- 10
t
theurbanerrorist
01/26/2024, 7:14 AM
Hey guys, need some help. Could be a simple solution but I could not find it in the documentation Does anyone know, how can I delete the files created with core.medplumclient.createattachment method?
Thanks so much
- 2
- 1
brian0098
01/26/2024, 8:53 AM
Any update on R5 support? [https://www.medplum.com/blog/fhir-r5](/content/blog/fhir-r5 ""/index.html)
- 2
- 2
brian0098
01/26/2024, 9:04 AM
I noticed that the details of content.attachment are obscured in the UI. Is there a way to expose them? Use case: As a data submitter, in order to verify submitted files, I'd like to see attachment details, size, mime type, url, md5 hash (we maintain md5 in an extension)
- 2
- 2
v
v_fir
01/27/2024, 4:29 PM
i was trying to delete the current project and create a new project. And it has made our medplum account inaccessible ... Can someone look into it what went wrong?
v
v_fir
01/27/2024, 4:33 PM
(this is not blocking me, as i created an account from new email to proceed with trying the platform...)
- 2
- 3
joshua_kelly
02/01/2024, 2:39 PM
Does Medplum implement Update with No Changes?
It's an interesting feature of Smile CDR: https://smilecdr.com/docs/fhir_standard/fhir_crud_operations.html#no-op
- 3
- 10
brandonin
02/01/2024, 6:18 PM
Does medplum support a state where patients can create their own records not associated with a specific doctor or practice? I know there is foomedical, but it seems to also be associated to a practicioner.
brandonin
02/01/2024, 6:19 PM
Or maybe foo medical is an example of patient registration and automatically associates it to a test practice.
brandonin
02/01/2024, 7:57 PM
I think I have my answer! I can use the Person FHIR resource.
a
Ankit Yadav
02/04/2024, 2:05 PM
@rahul1 I shared this query earlier in DM, but sharing it here as well for quick response. We are trying to create a Client in Medplum for wearable devices such as Fitbit, Google Fit, etc. The patients can connect and authenticate wearable devices like Google Fit and retrieve their vitals & store data from these devices in medium observation resources.
So my query is where we can store the wearable devices access token for the patients. We were thinking of using the link [extension] parameter in the patient resource [https://www.medplum.com/docs/api/fhir/datatypes/extension](/content/docs/api/fhir/datatypes/extension ""/index.html) for storing the Fitbit access token of the patient user. So I wanted to confirm if this is the right approach.
- 3
- 2
node
02/12/2024, 11:13 AM
Anyone else experiencing this issue signing into app.medplum.com? Clicking
Next
in the sign in form appears as a no-op in the UI with this error in the console. Seeing this in both Arc & Chrome browser.
- 2
- 3
p
Pravin
02/12/2024, 11:53 PM
Hi All, We want to understand azure support for medplum, like AWS CDK is there any better approach to deploy on Azure than setting up everything from scratch? Compliance is important so wanted to know if anyone here has done this already.
rahul1
02/13/2024, 2:26 PM
@here We wanted to give this community this upcoming PR from @nm185 ( https://github.com/medplum/medplum/pull/3919).
This only affects workflows that use the
Bot/:id/$execute
endpoint, and affects how Bots maintain access controls. We haven’t merged the PR yet, but are planning on doing so by end of week.
*Before: * Bot/:id/$execute would run with the permissions of the endpoint caller AccessPolicy on the Bot’s ProjectMembership were ignored.
*After: * The access of the bot when calling Bot/:id/$execute depends on whether the Bot.runAsUser flag is set: Bot.runAsUser===true: The bot runs with the access level of the calling user Bot.runAsUser===false or Bot.runAsUser===undefined: The bot runs according to it’s given AccessPolicy, if any
*Migration: * The simplest thing to do is to set the Bot.runAsUser flag on your existing Bots, to ensure the same behavior.
*Impact: * We did an analysis over the last 2 months, and didn’t see any such calls to your production project, but there were a few to your Development Project
Let me know if you’ve got any questions! And thank you to @nm185 for the contribution!
a
Ankit Yadav
02/14/2024, 2:20 AM
@rahul1 As per the documentation here [https://www.medplum.com/docs/api/oauth/token](/content/docs/api/oauth/token ""/index.html) we are not able to get the refresh token on login.
“The refresh token - The token endpoint returns refresh_token only when the grant_type is authorization_code.”
POST https://api.medplum.com/oauth2/token& Content-Type='application/x-www-form-urlencoded'& Authorization=Basic aSdxd892iujendek328uedj
grant_type=authorization_code& client_id=492e4ec3-fb66-4b45-b529-599c708ec530&& code=AUTHORIZATION_CODE& redirect_uri= https://myclient/redirect
HTTP/1.1 200 OK
Content-Type: application/json
{ "access_token":"eyJz9sdfsdfsdfsd", "id_token":"dmcxd329ujdmkemkd349r", "token_type":"Bearer", "expires_in":3600 }
So can you please help us understand how to get the refresh token from the token endpoint?
- 2
- 2
d
davidfza92
02/14/2024, 4:24 PM
Hello everyone, have any of you done a project with nextJs using the medplum react sdk? I am including these two hooks in the layout.tsx for using the component signInForm.
Copy code
const medplum = useMedplum();
const profile = useMedplumProfile();
but I get the following error:
node_modules/@medplum/react/dist/esm/index.mjs (1:14253) @ eval ⨯ TypeError: (0 , react__WEBPACK_IMPORTED_MODULE_0__.createContext) is not a function at eval (webpack-internal:////(rsc)/./node_modules/@medplum/react/dist/esm/index.mjs:665:75) at (rsc)/./node_modules/@medplum/react/dist/esm/index.mjs (/home/davidzul/Documents/practitioner-portal/.next/server/vendor-chunks/@medplum.js:30:1)
Has this happened to anyone?
a
- 3
- 5
v
vinny1575
02/15/2024, 10:35 AM
Curious if there was ever any discussion on using "jsonb" instead of "text" to take advantage of postgres' advanced json features?
t
tinho_14
02/15/2024, 10:36 AM
HI, I'm having an issue related to the recaptcha configuration. When I try to reset my user's password I receive this error. I've added these two properties in systems manager, however the error continues. Any advice or clue to fix it? thanks! 🙏
luis901101
02/15/2024, 1:15 PM
Hi, I'm having issues when using general parameters from FHIR, like
_format
, if anyone has any idea please give me some feedback here: https://discord.com/channels/905144809105260605/1207431915343315055
m
marco_26577
02/15/2024, 2:25 PM
Hi - where in the code/packages does medplum figure out/generate the subscription notifications on a crud resource change, e.g. a new Patient is saved to the DB and a bot is subscribed to the Patient Resource?
- 2
- 2
t
tinho_14
02/19/2024, 8:13 AM
I redeployed the app with the environment variables correctly configured and it worked. My mistake was modifying these properties from systems manager. thank you anyway!
- 2
- 1
t
tinho_14
02/19/2024, 8:16 AM
I need some advice: I need the medications to be visible as a global resource across all projects. Do you recommend any particular approach? thanks
j
jonahkaye_23743
02/22/2024, 1:15 AM
Does Medplum have benchmarks comparing speed on FHIR inserts/upserts between Medplum FHIR server and HAPI FHIR server?
- 2
- 1
m
marco_26577
02/23/2024, 11:08 AM
Hi - is there an efficient way to query a patient record by (external) Identifiers, the json schema has an identifier array, how does that get represented in the DB and queried if a patient needs to be synced by one of their external IDs? Thank you!
m
marco_26577
02/23/2024, 12:09 PM
looks like something like ?patient:identifier=externalsystem|12345 - how performant is that lookup?
s
suryanandx_54382
02/25/2024, 9:30 PM
I'm currently developing a healthcare application using Medplum as the backend service. For enhancing security and user experience, I am interested in implementing a phone-based One Time Password (OTP) authentication system. The goal is to allow users to log in using their phone number and an OTP sent via SMS, leveraging Medplum's authentication services for session management.
I understand that Medplum offers robust authentication mechanisms, but it does not directly support sending or verifying OTPs sent to phone numbers. Therefore, I plan to integrate an external SMS gateway (such as Twilio or Nexmo) for the OTP functionality. However, I'm seeking guidance on the best practices for implementing this securely and efficiently, especially in a way that is compliant with healthcare regulations like HIPAA.
Here are my specific questions:
1. Has anyone successfully integrated OTP-based authentication with Medplum? If so, could you share your approach or any sample code snippets? 2. For those who have implemented similar systems, which SMS gateway did you use, and why?
c
chanay.n
02/25/2024, 10:24 PM
Hi after cloning and all the setup, i have run npm run dev in packages/app folder. it was rendered in localhost but not redirected to login page. it was something likePatient?_count=20&_fields=id,_lastUpdated,name,birthDate,gender&_offset=0&_sort=-_lastUpdated
djheru
02/26/2024, 12:41 PM
Hi folks, I'm having a problem installing @medplum/cdk and @medplum/cli in turbo monorepo with pnpm.
I have an existing monorepo that contains our CDK applications for other components. I created a new package for medplum, but the CDK and CLI packages won't install, I'm getting the error:
EISDIR EISDIR: illegal operation on a directory, read
I've tried with npm and pnpm installs outside of the monorepo, and it looks like it has something to do with pnpm, because the npm install was successful. However, it's not an option for me to use npm instead of pnpm in our monorepo due to its integration in the rest of the packages.
Have you come across this issue before?
- 1
- 2
joshua_kelly
02/27/2024, 10:35 AM
Here's a fun one...
Not all fields named
reference
are actually References in FHIR
Sometimes they are typed as
Identifier
- like the case of
ExplanationOfBenefit.related.reference
This ends up breaking this type guard: https://github.com/medplum/medplum/blob/main/packages/core/src/types.ts#L415-L417
joshua_kelly
02/27/2024, 10:50 AM
Here's a PR... https://github.com/medplum/medplum/pull/4046
rahul1
02/27/2024, 11:42 AM
Whoa, that is a deep cut. Thanks @joshua_kelly !
t
tinho_14
02/29/2024, 8:13 AM
Hi. I'm trying to define a parameterized access policy to give a practitioner access only to some users. My access policy looks like this:
Copy code
"resourceType": "AccessPolicy",
"name": "Parameterized Patient Access Policy ",
"resource": [\
{\
"resourceType": "Patient",\
"criteria": "Patient?_id=%user_id"\
}\
```\
\
I've also modified the project membership:\
\
Copy code\
\
```\
"access": [\
{\
"policy": {\
"reference": "AccessPolicy/d777cbc1-5994-42da-a2f4-09f5e763497f"\
},\
"parameter": [\
{\
"name": "user_id",\
"valueReference": {\
"reference": "3e58c06e-c2da-447c-a6b7-f42014b339f3"\
}\
}\
]\
}\
]\
```\
\
However, with that practitioner I can list other patients and resources. Is there something wrong with my access policy? Am I missing any other steps?\
\
m\
\
mats\_92511\
\
03/04/2024, 3:02 AM\
\
Hi. I think I've found a bug, and a fix, but don't know how I can create a PR. Should I create a bug instead?\
\
The bug is that QuestionnaireChoiceSetInput() in packages/react/src/QuestionnaireForm/QuestionnaireFormItem/QuestionnaireFormItem.tsx do not check if it's 'choice' or 'openChoice' and the 'createable' prop on is not set, so "creatable" is always "true" even though "openChoice" is not the type.\
\
\
\
- 2\
- 4\
\
\
\
deeheber\
\
03/07/2024, 11:43 AM\
\
Hey everyone. I just wanted clarification if Medplum uses R4 or R5 types?\
\
The docs say R4 ( [https://www.medplum.com/docs/api/fhir](/content/docs/api/fhir ""/index.html)). But when I click on R4 types link in the npm package docs ( [https://www.npmjs.com/package/@medplum/fhirtypes](https://www.npmjs.com/package/@medplum/fhirtypes "")) it brings me to the R5 docs.\
\
Thanks for any insight on this.\
\
\
\
- 2\
- 2\
\
d\
\
Deleted User\
\
03/07/2024, 8:08 PM\
\
Hello folks! I'm having the following error, have any of you experienced something similar?\
\
\
\
\
\
\
\
p\
\
Pravin\
\
03/08/2024, 12:27 PM\
\
@here Anyone deployed Medplum just liks CDK on Azure or GCP?\
\
\
\
bubbly\_puppy\_96894\
\
03/09/2024, 12:37 AM\
\
Hey all, when I query for\
\
```\
RelatedPerson\
```\
\
, I'm able to get\
\
```\
Patient\
```\
\
&\
\
```\
RelatedPerson\
```\
\
details except for\
\
```\
relationship {}\
```\
\
which is returning\
\
```\
null\
```\
\
.\
\
What is the correct way to query\
\
```\
relationship\
```\
\
on\
\
```\
RelatedPerson\
```\
\
?\
\
Copy code\
\
```\
{\
PatientList(name: "P") {\
id\
...\
\
RelatedPersonList(_reference:patient) {\
id\
...\
relationship {\
text\
coding {\
version\
system\
}\
}\
}\
}\
}\
```\
\
```\
relationship\
```\
\
data exists in the resource [http://localhost:3000/RelatedPerson/UUID-HERE](http://localhost:3000/RelatedPerson/UUID-HERE "")\
\
Copy code\
\
```\
{\
"id": UUID-HERE,\
"resourceType": "RelatedPerson",\
...\
"relationship": [\
{\
"coding": [\
{\
"system": "http://terminology.hl7.org/CodeSystem/v2-0131",\
"code": "N",\
"display": "Next-of-Kin"\
}\
]\
}\
]\
}\
```\
\
\
\
- 2\
- 3\
\
s\
\
Spencer Smith\
\
03/09/2024, 2:52 PM\
\
Hey all, not sure if this is the right spot for it, but I was looking in the documentation related to LIMS and noticed that kit.com now redirects here: [https://domains.snagged.com/domain/kit.com](https://domains.snagged.com/domain/kit.com ""). Unsure if their domain expired or if it's just not around anymore.\
\
\
\
- 2\
- 1\
\
t\
\
thomabig\
\
03/17/2024, 9:58 PM\
\
Hello,\
\
I have a quick question, does Medplum handle Adaptative Forms ? [https://build.fhir.org/ig/HL7/sdc/adaptive.html](https://build.fhir.org/ig/HL7/sdc/adaptive.html "")\
I am building a flutter application for which I would need to add some logic in order to know what questions to display, but I didn't see anything linked to adaptative questionnaires !\
\
Thanks\
\
a\
\
alexwmarsden\
\
03/19/2024, 10:38 AM\
\
I can't get past this step in the docs: [https://www.medplum.com/docs/contributing/run-the-stack#start-the-servers](/content/docs/contributing/run-the-stack#start-the-servers ""/index.html)\
\
When I run\
\
```\
npm run dev\
```\
\
I get this error:\
\
Copy code\
\
```\
Error: Cannot find module 'C:\Users\alexw\source\repos\medplum\node_modules\@medplum\fhir-router\dist\cjs\index.cjs'\
at createEsmNotFoundErr (node:internal/modules/cjs/loader:1181:15)\
at finalizeEsmResolution (node:internal/modules/cjs/loader:1169:15)\
at resolveExports (node:internal/modules/cjs/loader:591:14)\
at Function.Module._findPath (node:internal/modules/cjs/loader:668:31)\
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1130:27)\
at Function.Module._load (node:internal/modules/cjs/loader:985:27)\
at Module.require (node:internal/modules/cjs/loader:1235:19)\
at require (node:internal/modules/helpers:176:18)\
at Object.<anonymous> (C:\Users\alexw\source\repos\medplum\packages\server\src\fhir\repo.ts:39:1)\
at Module._compile (node:internal/modules/cjs/loader:1376:14)\
```\
\
The\
\
```\
npm run build:fast\
```\
\
command succeeds but logs a bunch of errors (attached).\
\
[log](https://d2mu86a8belxbg.cloudfront.net/attachments/7fa41b63-27aa-4190-a335-a56edf9e9383/86595158-0687-4466-8da7-1a8c9ccd8767/a027bbf5-a81a-4a07-93b6-b0b2722373e0log.txt)\
\
a\
\
alexwmarsden\
\
03/19/2024, 12:55 PM\
\
Fixed by running build command in bash instead of cmd\
\
\
\
rahul1\
\
03/19/2024, 2:15 PM\
\
Great to hear **@alexwmarsden** . In the future, you can use our **#1094022380659155005** forum for these kinds of questions\
\
r\
\
ravikafle5695\
\
03/22/2024, 3:25 AM\
\
Hello all, I have set up a self hosted medplum instance in AWS ec2. Was looking for the documentation related with the FHIR api. Would appreciate if anybody could share the link for API documentation for self hosted instances. Thanks!\
\
\
\
- 2\
- 2\
\
\
\
khonlieu\
\
04/02/2024, 10:18 AM\
\
Does anyone know what the safe and correct way to use the MedplumClient on the frontend? It looks like we need to use the medplum client id in order for us to use MedplumClient, but I assume medplum client id is a secret key that should be kept secure. I looked in the medplum\
\
```\
app\
```\
\
project and see that they have an\
\
```\
.env\
```\
\
file with\
\
```\
MEDPLUM_CLIENT_ID=...\
```\
\
, and later they import it with\
\
```\
{clientId: import.meta.env?.MEDPLUM_CLIENT_ID}\
```\
\
. Does anyone know if this is safe? I've never used\
\
```\
import.meta.env?.\
```\
\
before. We don't want any risk of secret keys getting exposed on the forntend react app\
\
\
\
- 2\
- 2\
\
o\
\
oruchovets\
\
04/02/2024, 10:19 AM\
\
Hello team.\
I am testing Scheduler component - [https://storybook.medplum.com/?path=/story/medplum-scheduler--basic](https://storybook.medplum.com/?path=/story/medplum-scheduler--basic "").\
my goal is to let patient select the time slot and schedule the appointment.\
Schedule component is rendered correct with the time slots available .\
\
What I really don't understand now to get the selected time slots values and questions answered.\
Schedule component expecting properties to be passed , but I can't find any option to get the value selected by user from outside of the component.\
this is a code from Schedule component but it is just a placeholder. Actually there is no communication with the server, it is just a message , right?\
[https://github.com/medplum/medplum/blob/e9eae8d537d49488bc5f9b6c9eef60de9323a8d5/packages/react/src/Scheduler/Scheduler.tsx#L91C9-L96C11](https://github.com/medplum/medplum/blob/e9eae8d537d49488bc5f9b6c9eef60de9323a8d5/packages/react/src/Scheduler/Scheduler.tsx#L91C9-L96C11 "")\
\
{date && slot && response && (\
You're all set!Check your email for a calendar invite.\
)}\
\
I checked also foomedical but it is the same sutuation.\
\
Question: can you please share how to get values (time slot and questions answered) selected by user. Actually how to use properly the component to schedule the meeting on the server?\
\
here is my code, my Idea was to grab the values selected and pass it to the bot -> bot will update the server.\
[https://gist.github.com/olegruchovets/ab7d094240dd746b272a334991bf32f0](https://gist.github.com/olegruchovets/ab7d094240dd746b272a334991bf32f0 "")\
\
If it is a wrong forum please let me know.\
Thanks\
Oleg.\
\
\
\
khonlieu\
\
04/02/2024, 11:52 AM\
\
What is stopping someone from inspecting the application source file and copying the medplum client id and using it in their own app to create new users or using token exchange to get access to the medplum app\
\
\
\
dvidsilva\
\
04/03/2024, 3:30 PM\
\
not having access to the secrets. or you mean, like if someone makes a fake client for your app? you can add additional heuristics to determine the legitimacy of a client, but attackers don't usually do that unless they're trying to side step your rate limits.\
\
d\
\
dejimarquis\
\
04/11/2024, 5:34 PM\
\
Does anyone know how to delete a test medplum project? or who to email?\
\
\
\
deeheber\
\
04/11/2024, 7:22 PM\
\
Hey Medplum team, I was curious to know how updating the docs site is timed with releases?\
\
A coworker of mine was getting an error that [https://www.medplum.com/docs/sdk/core.medplumclient.upsertresource](/content/docs/sdk/core.medplumclient.upsertresource ""/index.html) doesn't exist on the medlpum client...but reverse engineering your open source code suggests to me that this wasn't included in the latest release.\
\
To me it feels like if it's up on the docs site, it should be in the latest release. Anyway just some feedback, thanks for the great product!\
\
\
\
\
\
- 3\
- 2\
\
\
\
madneutrino\
\
04/12/2024, 5:38 AM\
\
Hello! I am trying to see If I can use Medplum as the basis for a analytics focussed EMR. Are there existing ways to do group-by / uniq queries via the API? for example, let's say i have 100k observations for a single patient and the data is fed in from a wide variety of sources. How do I find out what observation codes are available for a given patient?\
\
\
\
madneutrino\
\
04/12/2024, 5:41 AM\
\
(And thanks for doing such great work! I have been working in the EMR space for > 10 years, and I think Medplum is a big step forward in organizing the data scattered across clinics)\
\
d\
\
dejimarquis\
\
04/12/2024, 2:51 PM\
\
Are there any examples of connecting medplum with PACS/DICOM servers and how viewing the images would look like in medplum?\
\
\
\
- 2\
- 3\
\
h\
\
hamza0101s\
\
04/17/2024, 1:38 PM\
\
Hey guys, can i create patient registration form with Questionnaire component? I have tried an example and getting unauthorised error\
\
\
\
- 2\
- 1\
\
\
\
dvidsilva\
\
04/20/2024, 12:02 PM\
\
If I wanna create some custom fields for the forms. That can be shared. Is there an existing plugin to extend questionnaires? I have a feature in my private copy that I was drafting and want to eventually merge upstream.\
\
We support a couple of custom Item type for display, markdown, and signature using canvas\
\
I have a feeling I’m not doing it the best way possible and i would like to stay closer to the standard. Any hints appreciated\
\
Custom search parameter\
\
\
\
pavlushkin\_alex\
\
04/23/2024, 8:35 AM\
\
Hello,\
\
I want to create a custom search parameter.\
I created SearchParameter resource.\
When I call\
\
```\
https://app.medplum.com/fhir/R4/Schedule?priority-type=regular\
```\
\
I get Unknown search parameter error.\
Could you help how to fix that?\
\
- 1\
- 2\
\
\
\
ysael\
\
04/24/2024, 8:42 AM\
\
👋 Is it feasible to do this in a bundle transaction ->\
\
Copy code\
\
```\
{\
"resourceType": "Bundle",\
"type": "transaction",\
"entry": [\
{\
"request": {\
"method": "PATCH",\
"url": "PractitionerRole?identifier=http://hl7.org/fhir/sid/us-npi|123"\
},\
"resource": {\
"resourceType": "Binary",\
"contentType": "application/json-patch+json",\
"data": "W3sib3AiOiJhZGQiLCJwYXRoIjoiL2lkZW50aWZpZXIiLCJ2YWx1ZSI6eyJzeXN0ZW0iOiJwYXBhU3lzdGVtIiwidmFsdWUiOiI3NzcifX1d"\
}\
}\
]\
}\
```\
\
The goal would be to patch conditionally if a ressource if found via an identifier.\
\
If not we could want to create it while validating via ifNoneExist like this ->\
\
Copy code\
\
```\
request: {\
method: "POST",\
url: "PractitionerRole",\
ifNoneExist:identifier=http://hl7.org/fhir/sid/us-npi|123,\
},\
```\
\
thanks in advance\
\
\
\
ysael\
\
04/24/2024, 8:43 AM\
\
when I tried it I always get ->\
\
Copy code\
\
```\
{\
"resourceType": "Bundle",\
"type": "transaction-response",\
"entry": [\
{\
"response": {\
"outcome": {\
"resourceType": "OperationOutcome",\
"id": "not-found",\
"issue": [\
{\
"severity": "error",\
"code": "not-found",\
"details": {\
"text": "Not found"\
}\
}\
]\
},\
"status": "404"\
}\
}\
]\
}\
```\
\
which makes me think ->\
\
url": "PractitionerRole?identifier= [http://hl7.org/fhir/sid/us](http://hl7.org/fhir/sid/us "")-npi\|123"\
\
is probably not supported in medplum\
\
I found and example of this syntax here -> [https://smilecdr.com/docs/fhir\_standard/transactions.html#example-conditional-create-patch-on-same-resource](https://smilecdr.com/docs/fhir_standard/transactions.html#example-conditional-create-patch-on-same-resource "")\
\
I am aware that this might be specific to this fhir implementation but was wonderning if we could achieve the same goal in some ways in medplum\
\
f\
\
fhirman\
\
04/28/2024, 3:36 PM\
\
Hi! Where could I find references on how to implement/execute Measures and MeasuresReport against Patient Data/CarePlan?\
\
\
\
asclepiadae\
\
05/01/2024, 6:01 PM\
\
Some questions here for the dev team, in particular as it relates to the (recommended) implementation of Medplum on AWS.\
\
There was an article posted on \[Ars Technica yesterday\]( [https://arstechnica.com/information-technology/2024/04/aws-s3-storage-bucket-with-unlucky-name-nearly-cost-developer-1300/](https://arstechnica.com/information-technology/2024/04/aws-s3-storage-bucket-with-unlucky-name-nearly-cost-developer-1300/ "")) that talked about how the creation of a bucket with a "default" (placeholder-in-code) name led to a large number of (failed) PUT requests an extremely large bill in a short period of time.\
\
Wondering a few things here stemming from my own attempts at making a deployment (student in biomedical technology):\
\
1) Are the bucket names truly fully randomized on creation in a manner that prevents any "Distributed Denial of Funding" attacks (as they seem to be being called in the comments)?\
\
2) Are there any plans to develop a section of the "Deploy on AWS" pages that talk about techniques for cost management (in three days on AWS I managed to get a $50 bill of which more than $35 was just ElastiCache).\
\
3) What are the plans for better documentation regarding true self-hosted deployments? Coming from a background with webdev experience in the mid 2010s and more recent programming all being microprocessor C, the world of Node is unfamiliar and right now the documentation basically says "follow AWS but change some stuff" which doesn't quite work. It's also sufficiently tailored to AWS that it's not easy for someone like myself to approach deployment on Azure (where I get free services as a student).\
\
I realise I'm not exactly the primary market target here as I clearly don't have the abilities and team to even consider looking at real patient data, but I think at least the first couple questions are relevant to anyone else proceeding with their own deployment.\
\
Thanks!\
\
\
\
a\
\
- 3\
- 2\
\
\
\
Andrew\
\
05/02/2024, 3:19 PM\
\
I am just starting out and I have a silly question in terms of getting my application running locally to integrate with medplum. Is it recommended that I run medplum locally by cloning the repo and hooking up with my local application? Or are there other better options?\
\
\
\
- 2\
- 2\
\
\
\
geoheil\
\
05/02/2024, 5:04 PM\
\
I read it too. 1) do not make the bucket public 2) using tools like pulumi the name indeed is random 3) if you indeed intend to make the bucket public you can use the requestor pays mode [https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html](https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html "")\
\
\
\
geoheil\
\
05/02/2024, 5:22 PM\
\
take a look at my PR: [https://github.com/medplum/medplum/pull/4502](https://github.com/medplum/medplum/pull/4502 "")\
\
Row Level Security\
\
\
\
joshua\_kelly\
\
05/03/2024, 12:39 PM\
\
Thinking about sketching out how Row Level Security could be used so that PG database Roles could only see resources from certain Projects\
\
Use case here is that we have some data that our customers have given us permission to review for analytics / debugging purposes, but it's entirely opt-in. For other customers, we've made warrants that we will not access data whatsoever.\
\
Right now, we do queries by wrapping the SQL in some Project ID rules (ie we always inject a\
\
```\
WHERE projectId is in (...)\
```\
\
clause. RLS could really make this stronger though, and would let us use other tooling.\
\
We need to do this work at the DB level because the queries are pretty analytical, they can't be mapped to the FHIR API and otherwise doing the processing on individual resources would take ~2 orders of magnitude longer. We could also start transporting data somewhere else, but less is more IMO.\
\
Is there any existing effort to look at how RLS might be used?\
\
\
\
- 2\
- 2\
\
\
\
khonlieu\
\
05/03/2024, 1:52 PM\
\
Hi Medplum team, I noticed in the main\
\
```\
medplum\
```\
\
project, there's a package called\
\
```\
definitions\
```\
\
, in it, you guys have a various json files under\
\
```\
dist/fhir/r4/\
```\
\
. It looks like these files are used to build the graph. Do you guys have a seperate project that generates these json files? For example, I noticed you guys have a custom medplum file called\
\
```\
profiles-medplum.json\
```\
\
where you define types specific to medplum. Are these json files defined manually? Or is there a separate project we can access with some sort of UI that auto generate these json files?\
\
\
\
\
\
- 3\
- 4\
\
m\
\
molecularlife\
\
05/05/2024, 6:27 PM\
\
Does anyone know if medplum supports any graphql directives? I tried a few and those didn't seem to work and it seems like supporting directives is optional [https://hl7.org/fhir/R4/graphql.html#flattening](https://hl7.org/fhir/R4/graphql.html#flattening "")\
\
\
\
- 2\
- 2\
\
g\
\
Guoyi Z (Empallo)\
\
05/06/2024, 6:17 PM\
\
Hi Medplum team, I was deploying the Medplum to the AWS and encountered a problem, when I ran the script 'npx cdk bootstrap -c config=medplum.demo.config.json', It needed to delete the CDKToolkit on the AWS, but it cannot be deleted and showed that some of the resources are Deleted Failed, Do you know how to resolve it?\
\
g\
\
Guoyi Z (Empallo)\
\
05/07/2024, 2:57 PM\
\
Oh, I got it, it is the permission problem.\
\
\
\
pedrotabio\
\
05/08/2024, 12:46 PM\
\
hi all! just getting started with checking out the provider sample apps. Which one I should be looking at:\
\
```\
medplum-chart-demo\
```\
\
or\
\
```\
medplum-provider\
```\
\
?\
\
\
\
- 2\
- 2\
\
p\
\
penguin629\
\
05/14/2024, 4:58 PM\
\
Hi, I'm looking for a graphql implementation of FHIR. Anyone know how much it costs for enterprise hosting. I am interested in doing the free solution and migration to Enterprise when we reach scale.\
\
\
\
- 2\
- 1\
\
\
\
kev062169\
\
05/15/2024, 3:32 PM\
\
Having some trouble running bots locally\
\
I have Medplum set up\
\- to read from ENV vars so I have MEDPLUM\_VM\_CONTEXT\_BOTS\_ENBALED=true\
\- navigated to projects and added feature "Bots"\
\- I've created a Bot and set the runtime to "vmcontext"\
\
and am still unfortunately seeing "Bots not enabled" error messages. Have I missed something here?\
\
\
\
- 2\
- 16\
\
\
\
funkymonkey\_99823\
\
05/15/2024, 5:11 PM\
\
Hey Folks! We've completed our Bot integration, but want to test it end to end. How do we get bots enabled on our cloud account?\
\
\
\
\
\
- 3\
- 13\
\
\
\
funkymonkey\_99823\
\
05/16/2024, 4:21 PM\
\
Hey **@reshma** **@rahul1** , as part of our lab ordering API's we expose the ability to generate specimen labels for in clinic collection. Whats the best way of exposing the ability to generate these labels from within Medplum?\
\
\
\
- 2\
- 5\
\
\
\
funkymonkey\_99823\
\
05/16/2024, 4:41 PM\
\
Separate question **@reshma** looking a this video\
\
https://www.youtube.com/watch?v=m0AWpEOh1es&themeRefresh=1▾\
\
, it seems like Questionnaire is preconfigured? Is there a way we can dynamically generate these forms based on an api response? As in right now customers can create lab sets with our APIs, how do we then surface these lab sets in a Questiionare for ordering? Each lab test panel has a series of AOEs associated with the panel how do we surface these questions too?\
\
\
\
- 2\
- 11\
\
\
\
ysael\
\
05/22/2024, 4:06 PM\
\
👋\
\
Hi! I was wondering if it's possible to customize the MePlum App header to display information about the current environment.\
\
Since we now have multiple self-hosted apps, this feature would be quite useful.\
\
The only way I see to do this currently is by manually editing the code and deploying it using the\
\
```\
deploy-app.sh\
```\
\
script.\
\
Thanks! 🙏\
\
\
\
m\
\
molecularlife\
\
05/23/2024, 7:36 AM\
\
Hey all! I ran into an interesting situation where my KMS key was revoked and my Aurora database went into an inaccessible state, so I had to restore it from a snapshot. Wondering how do I connect my medplum cloudformation to this new RDS instance now?\
\
- 1\
- 1\
\
g\
\
Guoyi Z (Empallo)\
\
05/29/2024, 12:26 PM\
\
Hello, **@reshma** **@rahul1** , I am currently working on the provider portal and self-hosting the front-end, while the backend is hosted by Medplum. When I try to register a new user, I keep getting an error that says "invalid recaptchaSiteKey." You can find more details in this post: ( [https://discord.com/channels/905144809105260605/1245100043309158512](https://discord.com/channels/905144809105260605/1245100043309158512 "")), Thank you for your help.\
\
\
\
- 2\
- 3\
\
g\
\
Guoyi Z (Empallo)\
\
05/29/2024, 3:53 PM\
\
Hi **@reshma** **@rahul1** , I am wondering about MFA support in the medplum hosting version, how do we make it work? Does "sign in with google" support MFA? Thank you! I navigate to this link to enroll MFA, however the code does not load. [https://app.medplum.com/mfa](https://app.medplum.com/mfa "")\
\
\
\
t\
\
tranquil\_mango\_72316\
\
06/04/2024, 12:30 AM\
\
Hello community,\
I'm developing a mobile application that needs to extract data from Google Health Connect and Apple Health to send it to the backend. Ideally, I want to transmit the data in FHIR format and store it in an appropriate data store. I was considering using AWS HealthLake and AWS TimeStream (for step counts and other time-based biomarkers that I need to track) as the storage solutions.\
While researching, I found Open mHealth, which has a component called Shimmer ( [https://github.com/openmhealth/shimmer](https://github.com/openmhealth/shimmer "")) that collects data from Google and Apple, but it seems to be outdated. Now, I've also discovered Medplum.\
I would like to ask for your advice and have a few questions:\
\
Can Medplum serve as a replacement for Shimmer, or what would you recommend as an alternative?\
Can Medplum be used in conjunction with AWS HealthLake?\
What would you advise for what I'm looking to achieve? I'm highly tied to AWS, but I'm seeking a flexible and cost-effective solution if possible.\
\
Thank you very much to anyone who can take a minute to answer any of these questions.\
\
g\
\
Guoyi Z (Empallo)\
\
06/04/2024, 9:17 PM\
\
Hi **@reshma** **@rahul1** ,I working with the calendar page on the Medplum provider portal and am currently implementing the subscription function where providers can subscribe to other users’ calendars. I am exploring the possibility of integrating this feature with the Medplum backend to store subscription information, Is it possible to interact with the Medplum backend for storing and managing subscription data? If so, could you provide some guidance or point me to the relevant documentation or APIs? Thank you! I am really appreciated!\
\
v\
\
vkdi5cord\
\
06/10/2024, 4:53 PM\
\
I recently came across [https://cloud.google.com/healthcare-api](https://cloud.google.com/healthcare-api ""), by GCP. We're wondering how it compares to Medplum at a high-level - what are the advantages / disadvantages of using one or the other?\
\
\
\
- 2\
- 1\
\
\
\
buddhiraz\
\
07/02/2024, 2:09 PM\
\
Hey **@reshma** I am just working on to Grab files from a EHR , and push it to medplum storage for a patient which will be accessible to him/her.\
\
So the patient gives access from another EHR to his/her file , now i have gone though the API Doc and being confused about how to push his/her doc to cloud storage (aws hosting medplum) , so that only he/she can access his info ??\
\
Plz share some info about how to proceed ? lemme know if my question is not clear !!\
\
\
\
luis901101\
\
07/02/2024, 2:47 PM\
\
Hi @here I'm experiencing slowness with medplum responses, avg 4 seconds, any problem?\
\
\
\
joshua\_kelly\
\
07/02/2024, 2:58 PM\
\
Is there any tooling in the CLI to automatically load structure definitions from an IG?\
\
\
\
buddhiraz\
\
07/08/2024, 5:03 PM\
\
Hi **@reshma** , **@rahul1** ,\
\
Any help regarding pushing larges file to medplum via Batch\
\
because for the second patient json (downloaded from sample data in - [https://www.medplum.com/docs/tutorials/importing-sample-data](/content/docs/tutorials/importing-sample-data ""/index.html) ), I tried to push via API , and it gave the error :\
\
Copy code\
\
```\
json\
{\
"resourceType": "OperationOutcome",\
"issue": [\
{\
"severity": "error",\
"code": "invalid",\
"details": {\
"text": "File too large"\
}\
}\
],\
"extension": [\
{\
"url": "https://medplum.com/fhir/StructureDefinition/tracing",\
"extension": [\
{\
"url": "requestId",\
"valueId": "4411ce36-89ec-4ac7-94e1-a40d82fc3f08"\
},\
{\
"url": "traceId",\
"valueId": "6e9b7f07-a06d-455a-a584-516c09ff30f0"\
}\
]\
}\
]\
}\
```\
\
So I pushed the patient, and other related info one-by-one ...so any help on this ?\
I can go this way , but pushing large data (that json was having more then 30k rows) will be helful , less clunky.\
\
\
\
- 2\
- 4\
\
b\
\
benny\_09402\_38101\
\
07/11/2024, 5:29 AM\
\
Hi, I have a question with regards to authorization. We have a Medplum project that contains CarePlan data. There are also FHIR resources such as Tasks and Observations that are related to those CarePlans. And we also have Patients of course. Organizations have access through ClientApplications. In our remote patient monitoring system authorization is managed based on CarePlans. Authorization for an Organization, a RelatedPerson and a Practitioner are CarePlan-based.\
We use Medplum to exchange data only for Organizations for now.\
We have tried to find a solution in Medplum based on AccessPolicies and its criteria and the based-on property of CarePlan, Observation and Task, but it does not feel right. Can someone help with the right approach?\
\
b\
\
benny\_09402\_38101\
\
07/11/2024, 5:33 AM\
\
\
\
\
\
- 2\
- 2\
\
\
\
ariakerstein\
\
07/11/2024, 1:45 PM\
\
Hey community,\
I had posted in support, but thinking maybe I should have posted here instead? [https://discord.com/channels/905144809105260605/1260653678185021610](https://discord.com/channels/905144809105260605/1260653678185021610 "")\
Any help would be most welcome!\
\
\
\
liam\_collins\_\_\
\
07/15/2024, 1:43 PM\
\
Hey all,\
I am implementing a multi-tenant site where each clinic is a separate project. During the auth process I need to pass in a client\_application\_secret and id. This is specific to the project, so any time I onboard a new clinic it looks like I will have to add a new .env variable corresponding to the client\_application\_secret and id for that project.\
\
This seems like a non-scalable process and would love to know if there is a workaround for this.\
\
Thanks in advance!\
\
\
\
- 2\
- 2\
\
s\
\
sitara\_62423\
\
07/17/2024, 9:48 AM\
\
Hello everyone. I am new to the community. I have set up the medplum projecr locally. I want to enable the bot feature. I follow the documentation regarding enabling vmcontext on local. But still it looks like the bot feature is not enabled. When i try to test the bot, it throws "bots are not enabled" error.\
Can someone please guide me on this.\
Thankyou.\
\
j\
\
jonahkaye\_23743\
\
07/22/2024, 10:55 AM\
\
Hi all. Whats the status of the medplum fhir terminology server? Presently interested in just lookups.\
\
\
\
m\
\
- 3\
- 3\
\
v\
\
vlad\_62823\_77854\
\
07/23/2024, 10:01 AM\
\
Hey everyone!\
I'm integrating patient chart demo project into the web app (backend is self-hosted while we're exploring Medplum).\
Facing this error when trying to add a medication or an allergy by code. Is there anything i should additionally configure to make it work?\
\
\
\
d\
\
dchu17\
\
07/23/2024, 1:57 PM\
\
Hello everyone,\
I am building a startup and trying to learn how companies that are currently creating siloed instances per client are managing them. It seems like this is unscalable to manage but would love to chat with anyone doing this right now to hear how it is being handled 🙂\
\
\
\
khonlieu\
\
07/23/2024, 6:01 PM\
\
Medplum Graphql question: Does anyone know how to query for an encounter so that it also includes the full patient information. I believe in the encounter, the patient is called the "subject", but I can't figure out how to structure the graphql query so that I can include all the fields from the\
\
```\
Patient\
```\
\
resource. If I query\
\
```\
subject\
```\
\
and ask for\
\
```\
reference\
```\
\
and\
\
```\
display\
```\
\
it works, but I need other values that are only in the\
\
```\
Patient\
```\
\
resource, for example,\
\
```\
birthdate\
```\
\
. Here's a query I have now,\
\
Copy code\
\
```\
query getEncounters {\
EncounterList(service_provider:"Organization/xxxxxxx") {\
id\
participant {\
individual {\
reference\
display\
}\
}\
status\
subject {\
reference\
display\
}\
period {\
start\
end\
}\
}\
}\
```\
\
\
\
medplummatt\
\
07/24/2024, 12:59 PM\
\
Hi **@khonlieu** — you should be able to use the\
\
```\
subject.resource\
```\
\
field to get the full Patient information, as shown here: [https://www.medplum.com/docs/graphql/basic-queries#resolving-nested-resources-with-the-resource-element](/content/docs/graphql/basic-queries#resolving-nested-resources-with-the-resource-element ""/index.html)\
\
\
\
khonlieu\
\
07/24/2024, 1:00 PM\
\
thanks **@medplummatt** ! Let me try it out!\
\
o\
\
oruchovets\
\
07/26/2024, 5:08 AM\
\
Hello , **@rahul1** recommended me to ask you guys in **#1113936455954346005** forum.\
I have succeeded to run on AWS medplum distribution , but I would like to have a cloud native approach via kubernetes. Is there any documents ,git repository or other information how to enable medplum via kubernetes.\
\
thanks\
\
m\
\
molecularlife\
\
07/29/2024, 1:28 AM\
\
For GraphQL, you have to specify the fields that you want explicitly. If you haven't tried already, ChatGPT Is pretty helpful with structuring these queries for what you want\
\
m\
\
molecularlife\
\
07/29/2024, 1:29 AM\
\
We use separate projects as is suggested in the Docs\
\
v\
\
veronique\_82422\
\
07/31/2024, 1:11 PM\
\
Hi, **@rahul1** **@reshma** I have a question in this post: [https://discord.com/channels/905144809105260605/1266039174226776145](https://discord.com/channels/905144809105260605/1266039174226776145 "") Could you help me? Thank you in advance!\
\
s\
\
stephen\_39383\_38478\
\
08/01/2024, 3:26 PM\
\
Hi all. I'm new to the community and currently evaluating the possibility of integrating medplum with our existing platform.\
\
I see that your platform has essentially wrapped a typical FHIR system with a User Authentication and Project based functionality by implementing the additional User, Project and ProjectMembership resources. Would there be any issues with using the FHIR API service/persistence functionality without having to define Users for all ( other than any System Admins )?. For example, I'm still interested in defining projects (like in a multi-tenant scenario ) with FHIR practitioners and patients, but want to manage the User auth on our platform. Any guidance is appreciated.\
\
\
\
- 2\
- 7\
\
How to store lookup data in Medplum/FHIR\
\
\
\
yhabotensomata\
\
08/01/2024, 4:46 PM\
\
Hello. I am mapping data from Electronic Clinical Works (eCW) to Medplum server. in eCW there are data structures that are collections of .\
Some of those collections have more than 100K entries.\
A consuming web application need to fetch an object by id. What is the best way to store such a massive amount of data in Medplum. What FHIR resources should be used for this task?\
\
\
\
- 2\
- 2\
\
z\
\
zuchka\_\
\
08/02/2024, 2:46 PM\
\
hey all, wanted to start a thread about the\
\
```\
\examples\
```\
\
. I'm encountering a lot of weirdness re missing packages. pretty sure it has to do with the monorepo setup because every example works fine if I move it outside the root dir and run npm i from there. here is a related issue: [https://github.com/medplum/medplum-chart-demo/issues/5](https://github.com/medplum/medplum-chart-demo/issues/5 "")\
\
also another aside: the way that this chart repo is a mirror of the same dir in the monorepo really threw me off. it also doesn't work because it is missing the packages from the monorepo\
\
\
\
- 2\
- 15\
\
z\
\
zuchka\_\
\
08/02/2024, 5:49 PM\
\
stale PR for the medplum nextJS demo but still looks pretty solid. Checked out the branch and it totally still works as intended. just need to bump some of the packages since its now 13 months old 😎 . [https://github.com/medplum/medplum-nextjs-demo/pull/3/files](https://github.com/medplum/medplum-nextjs-demo/pull/3/files "")\
\
- 1\
- 3\
\
z\
\
zuchka\_\
\
08/02/2024, 7:00 PM\
\
one rather annoying thing about the developer loops while working on these examples, and maybe I just picked the wrong part of the codebase to fiddle on...\
\
I can't get these examples working from inside the monorepo. But that shouldn't matter anyway, because you tell people to "fork and clone" their chosen example repo from the solo-repo version. ok, already a bit confusing but cool. So I work off of that repo, but then I need to submit the actual PR to the...monorepo...which often has upstream code changes and package bumps and all other kinds of drift. And then I'm trying to reconcile the two and test on the right one and move back and forth and it gets really tedious. _All I want to do is create a clean PR for this 13 month old Next example PR, and it's so annoyingly hard._ I'm looking at a repo that was forked as a template that is now somehow a downstream mirror of a canonical example inside the \`./examples\`dir of another repo. all while the example application behaves differently when I clone it directly vs when I work from inside the monorepo. woof.\
\
\
\
- 2\
- 9\
\
z\
\
zuchka\_\
\
08/02/2024, 7:05 PM\
\
feels like the desire here to have one monorepo with downstream 'examples' has some flaws. the split-brain thing here is super unfriendly to contributions\
\
z\
\
zuchka\_\
\
08/03/2024, 1:19 PM\
\
sorry, don't mean to spam this channel, but another qq:\
are the medplum docs open source / is there a workflow for submitting typos / errors / patches? Finding some very small copy-editing nits as I read through the tutorials--would want to record them somewhere\
\
\
\
- 2\
- 2\
\
\
\
sdhrt45\
\
08/05/2024, 1:58 AM\
\
hi everyone, I am starting a new project and will use medplum as our backend service. We are already hosting medplum server and app on our own server. My work primarily revolves around FHIR resources for now.\
I can see that the base url for fhir resources are [https://api.medplum.com/fhir/R4](https://api.medplum.com/fhir/R4 ""). However, this url gives me a message i.e. unauthorized. I tried it in my own hosted server too. I cannot seem to authorize myself even though I have tried /oauth2/authorize and tried to authorize myself through it. I cannot seem to wrap my head around the authorization process that will give me access to the FHIR resources. I am trying to utilize the rest api instead of typescript sdk for this project. Any tutorials, examples, on how to deal with it on a self hosted server.\
\
p\
\
Pravin\
\
08/05/2024, 2:27 AM\
\
How are you authenticating? Can you post some details around your curl/postman request?\
\
\
\
sdhrt45\
\
08/05/2024, 2:40 AM\
\
First I make a request to /oauth2/authorize which includes response\_type, client\_id, response\_uri, state, scope. This will redirect me to medplum app from redirect uri and prompt me to login. After logging in, it will provide me with a code. I can then use this code for /oauth2/token in which I pass a new header Authorization: Basic and then it will return 200 OK. Now, do I pass this header when accessing /fhir/R4, which will also give the same error.\
\
p\
\
Pravin\
\
08/05/2024, 2:42 AM\
\
what you are passing in /fhir/R4 under authorisation header?\
\
\
\
sdhrt45\
\
08/05/2024, 2:49 AM\
\
I am not passing anything/\
GET /redirect\_uri?error=unsupported\_response\_type&state=STATE HTTP/1.1\
The /oauth2/token says unsupported response type\
\
\
\
sdhrt45\
\
08/05/2024, 2:50 AM\
\
I believe I should pass the token but is it the code I got from oauth2/authorize ?\
\
p\
\
Pravin\
\
08/05/2024, 2:51 AM\
\
you have to follow oauth flow documentation, [https://www.medplum.com/docs/api](/content/docs/api ""/index.html)\
\
\
\
rahul1\
\
08/05/2024, 1:11 PM\
\
**@sdhrt45** would you mind opening up a thread in **#1094022380659155005** ? I can help you there\
\
\
\
rahul1\
\
08/05/2024, 1:11 PM\
\
Thank you **@Pravin**\
\
g\
\
Guoyi Z (Empallo)\
\
08/13/2024, 12:28 PM\
\
Hi medplum team! I encountered an auth issue: [https://discord.com/channels/905144809105260605/1272563774657658911](https://discord.com/channels/905144809105260605/1272563774657658911 "") Thank you in advance!\
\
\
\
dkozlovskyi\
\
08/18/2024, 3:41 AM\
\
I need your advice on creating Patient resources in the Cerner sandbox\
\
Using Cerner sandbox URL [https://fhir-ehr-code.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d](https://fhir-ehr-code.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d "") I'm creating Patient resource with the payload from FHIR and Cerner examples. However, in the end, I always get 400 HTTP status codes. **Please, find the patient resource payload.txt attached.** _\*The response error is not descriptive \*_ 🤷🏼♂️\
"{"response":{"status":400,"data":{"resourceType":"OperationOutcome","issue":\[{"severity":"error","code":"invalid","details":{"text":"Invalid request"}}\]}},"config": {"method":"POST","url":"https://fhir-ehr-code.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Patient","headers":{}}}"\
\
_\*Question: \*_\
How should I debug such a situation? If this is not the right channel for asking such questions - please let me know.\
\
[payload](https://d2mu86a8belxbg.cloudfront.net/attachments/7fa41b63-27aa-4190-a335-a56edf9e9383/86595158-0687-4466-8da7-1a8c9ccd8767/4869c414-e1eb-4099-9ec2-d3227754d9dapayload.txt)\
\
\
\
\
\
- 3\
- 3\
\
\
\
khonlieu\
\
08/19/2024, 4:14 PM\
\
Hi Medplum team,\
\
Is there a way to call the graphql UPDATE mutations without needing to send both\
\
```\
id: ID!\
```\
\
and\
\
```\
id: String!\
```\
\
? For example currently to get the update call to work, we have pass both type of ids when we make an update. Here's an example mutation call.\
\
Copy code\
\
```\
mutation updateObservation(\
$id: ID!\
$stringID: String\
$patientId: String\
$encounterId: String\
$value: String\
$type: String\
$date: String\
) {\
ObservationUpdate(\
id: $id\
res: {\
id: $stringIDk\
resourceType: "Observation"\
code: { text: $type }\
valueString: $value\
effectiveDateTime: $date\
status: "final"\
subject: { reference: $patientId }\
encounter: { reference: $encounterId }\
category: { text: "Vital Signs" }\
}\
) {\
id\
code {\
text\
}\
valueString\
effectiveDateTime\
method {\
text\
}\
}\
}\
\
{\
"id": "fff601cd-068f-4bbf-cccc-7cc60dca1815",\
"stringID": "fff601cd-068f-4bbf-cccc-7cc60dca1815",\
"date": "2024-08-19T17:50:03.337Z",\
"encounterId": "Encounter/87237e5d-a72c-49fe-a0ed-00a528ceb2a5",\
"patientId": "Patient/878db98e-39b1-4664-ffff-ac756415fc09",\
"type": "Wt",\
"value": "100"\
}\
```\
\
You'll notice that the values for the keys\
\
```\
id\
```\
\
and\
\
```\
stringID\
```\
\
have identical values, but atm, we have to do that inorder to not get an error response from the graphql API, which says this\
\
Copy code\
\
```\
{\
"resourceType": "OperationOutcome",\
"issue": [\
{\
"severity": "error",\
"code": "invalid",\
"details": {\
"text": "Variable \"$id\" of type \"ID!\" used in position expecting type \"String\"."\
}\
}\
],\
}\
```\
\
Looking at Graphiql, it says the string version of the id under\
\
```\
res\
```\
\
is not required, but in fact the implementation of the update repo service needs it. It's used here:\
\
Copy code\
\
```\
if (resourceId !== resourceArgs.id) {\
return [badRequest('Incorrect ID')];\
}\
```\
\
cc **@rahul1**\
\
\
\
mitch\_83302\
\
08/20/2024, 6:38 PM\
\
Hi - Is there an example of how to write a REST client without using Vite or React? I would like to try to write a pure typescript client for what will be a backend process for us, but I am not able to get it to build.\
\
\
\
\
\
- 3\
- 9\
\
p\
\
penguin629\
\
08/21/2024, 12:58 PM\
\
Anyone here have a monthly cost estimate for running a small production medplum based on the aws cdk install instructions?\
\
t\
\
thomabig\
\
08/27/2024, 7:27 AM\
\
Hello everyone,\
I was wondering if there is a simple way to get the created date of a Resource ? Maybe using the Medplum SDK ? Thanks **@reshma** **@rahul1** ?\
\
\
\
buddhiraz\
\
08/29/2024, 2:38 PM\
\
Hey **@reshma** , **@rahul1**\
\
Can i Access all of my resources from ainsgle query using the $everything approach from medplum ...I tried but found only patient profile infor\
\
\
\
- 2\
- 1\
\
\
\
khonlieu\
\
08/29/2024, 6:30 PM\
\
Hey **@reshma** **@rahul1** , is there a way to recrete this REST query to the graphql equivalent?\
\
```\
{REST API}/Basic?code=icd-code&identifier:contains=bloo\
```\
\
? I want to find all Basic resources where the code = icd-code and who has an identifier where the\
\
```\
value\
```\
\
key contains 'bloo'\
\
\
\
- 2\
- 3\
\
u\
\
usama\_007\
\
09/11/2024, 4:18 PM\
\
Hi team,\
\
I have a couple of questions regarding Medplum:\
\
Is there anyone who can guide us on how to create custom tables in Medplum? We're using the Medplum Client SDK, but some of our use cases are not fully covered by the default schema. We'd like to know if it's possible to write our own tables and how to integrate them.\
\
Could someone explain how FHIR resource storage works if we're using our own local PostgreSQL database? We're planning to go with self-hosting at an enterprise level, and we'd like to get a rough estimate of any potential costs associated with FHIR resource storage in this setup.\
Thanks\
cc: **@rahul1** **@reshma**\
\
p\
\
Pravin\
\
09/12/2024, 2:40 AM\
\
Would love to know more about use case and where you see restrictions? Also have you checked FHIR extensions [https://www.medplum.com/docs/api/fhir/datatypes/extension](/content/docs/api/fhir/datatypes/extension ""/index.html)?\
\
u\
\
usama\_007\
\
09/12/2024, 2:40 PM\
\
How can I add a new table to the existing database in Medplum, and how can I use that custom table with the Medplum SDK?\
I’ve looked into the extension feature, which allows adding new attributes to existing tables. However, we want to create a completely new table and use it with or without the Medplum Client SDK. Is this possible?\
Another thing if you would love to tell me about estimated pricing with self hosting at enterprise level then if it be highly appreciated\
\
l\
\
lane\
\
09/13/2024, 4:15 PM\
\
Hi, all. First time caller, here 🙂 I'm able to import a test FHIR patient record into my dev environment using the web interface. However when I attempt to import the same file using the\
\
```\
medplum\
```\
\
cli (e.g.\
\
Copy code\
\
```\
medplum bulk import -v --add-extensions-for-missing-values test3.json\
```\
\
the status is 400 with error\
\
Copy code\
\
```\
{\
"severity": "error",\
"code": "invalid",\
"details": {\
"text": "Conditional reference 'Practitioner?identifier=http://hl7.org/fhir/sid/us-npi|9999940609' did not match any resources"\
},\
"expression": [\
"Bundle.entry.resource.participant.individual"\
]\
}\
```\
\
\- so my question is "How do I reproduce the behavior of the web interface using the\
\
```\
medplum\
```\
\
cli to import records?" Thanks, in advance\
\
r\
\
robertburdick\_77829\
\
09/15/2024, 10:20 AM\
\
Where is the best tutorial on how to run the examples/medplum-hello-world example? I get many errors when following the steps in the README and am wondering if I don't have the right node, etc. versions or other dependencies.\
\
\
\
Atul\
\
09/15/2024, 10:07 PM\
\
Hi,\
I am looking for a usecase to push FHIR Objects to Medplum FHIR Server from a python django based healthcare app.\
\
Any recommendation for a good python library that can:\
1\. Convert Python Objects to FHIR Objects\
2\. Can do CRUD operations on Medplum FHIR server\
\
\
\
Atul\
\
09/16/2024, 9:29 AM\
\
Or is there a Medplum core util that can do the above - ie, covert json objects to FHIR objects?\
\
\
\
Atul\
\
09/16/2024, 12:24 PM\
\
looks like you have to import the bundle with Practitioners first and then Patients.\
\
a\
\
arsenal1021\
\
09/17/2024, 5:35 PM\
\
Hey there, is there a way to use the Medplum React components without needing to authenticate?\
\
\
\
- 2\
- 1\
\
d\
\
denystymoshenko.\
\
09/19/2024, 3:16 AM\
\
Hi guys! I am on importing EHR data as file to medplum database now. But I can't find any endpoints on medplum backend server so I'd appreciate it if you let me know about it. thanks\
\
\
\
- 2\
- 3\
\
d\
\
denystymoshenko.\
\
09/19/2024, 3:20 AM\
\
I'm looking forward to hearing from you soon.\
\
s\
\
swamy\_63747\
\
09/23/2024, 9:17 AM\
\
Hi guys, I am building own docker images to deploy that on my eks, the commands include same things as of Run stack in local, when i run it in eks as a docker image but its running lots of sockets and i am not able to connect to application even from localhost, below i am sharing few details, any help will be highly appreciated\
\
**Dockerfile**\
\
FROM node:20-slim\
\
WORKDIR /usr/src/medplum\
\
copy . .\
\
RUN npm install && \\
npm run build:fast\
\
EXPOSE 3000\
\
CMD \["sh", "-c", "cd packages/server && npm start"\]\
\
**build command**\
\
docker build --platform linux/amd64 -t medplum-server-backend .\
\
**lsof output from pod**\
\
grep 3000\
node 20 root 18u IPv6 53048 0t0 TCP \*:3000 (LISTEN)\
node 20 root 20u IPv6 68126 0t0 TCP localhost:3000->localhost:54654 (ESTABLISHED)\
\
and lot more like this\
\
**and pod logs**\
\
@medplum/server@3.2.13 start\
node --require ./dist/otel/instrumentation.js dist/index.js\
\
{"level":"INFO","timestamp":"2024-09-23T12:38:25.817Z","msg":"Starting Medplum Server...","configName":"file:medplum.config.json"}\
{"level":"INFO","timestamp":"2024-09-23T12:38:35.287Z","msg":"Already seeded"}\
{"level":"INFO","timestamp":"2024-09-23T12:38:35.386Z","msg":"Loaded 1 key(s) from the database"}\
{"level":"INFO","timestamp":"2024-09-23T12:38:35.407Z","msg":"Server started","port":3000}\
\
and i am getting 504 getway timeout when i run loclhost:3000/healcheck inside the pod\
\
\
\
Atul\
\
09/30/2024, 7:34 PM\
\
Is it feasible to deploy the Medplum bot service in an isolated way in the edge for some device data ETL integrations usecases?\
\
\
\
- 2\
- 1\
\
\
\
dvidsilva\
\
10/06/2024, 10:18 PM\
\
Hi!\
\
Any preferred way to connect to our production RDS to run queries? Like some BI tool I can deploy to AWS using terraform would be the easiest\
\
Secondly, after connecting to the database or using the tool is it easy to run queries, or is the data encryption or model something I need to consider?\
\
l\
\
lane\
\
10/07/2024, 8:40 AM\
\
Hello, again. I've setup a self-hosted sandbox for Medplum, and have enabled patient registration and default patient AccessPolicy. Now I'm attempting to import an external health record and have it associated with the registered patient, but this last part does not work. I can register as a patient and I can import an external health record, but the imported record maintains it's distinct identity - even when I replace the Patient/ with that of the target patient. Obviously I am going about this incorrectly. Is there any reference material on this subject? Thanks, in advance, for your attention.\
\
k\
\
kristen9866\
\
10/07/2024, 10:00 AM\
\
_\\* Access Token Allows Creating Observations for Other Patients?\*_\
\
Hi Medplum Team,\
\
I hope you doing well! I’m having an issue with my setup and could use your help.\
\
I am using self-hosted Medplum for testing.\
\
I’ve set up an Access Policy to restrict users to their own patient compartments.\
{\
"resourceType": "AccessPolicy",\
"name": "AccessPolicy",\
"id": "1f7e7685-960e-48d2-8dcb-2bb097f258fe",\
"compartment": {\
"reference": "%patient"\
},\
"resource": \[\
{\
"resourceType": "Patient",\
"criteria": "Patient?\_compartment=%patient"\
},\
{\
"resourceType": "Observation",\
"criteria": "Observation?\_compartment=%patient"\
},\
.....\
\
\
I obtain Exchanging Token for Medplum Token:\
\
jwt\_token = generate\_jwt\_token({"email": email})\
\
# Exchange the JWT token for a Medplum access token\
token\_url = f"{MEDPLUM\_URL}/oauth2/token"\
client\_id = MEDPLUM\_CLIENT\_ID\
client\_secret = MEDPLUM\_CLIENT\_SECRET\
\
exchange\_data = {\
"grant\_type": "urn:ietf:params:oauth:grant-type:token-exchange",\
"subject\_token\_type": "urn:ietf:params:oauth:token-type:access\_token",\
"subject\_token": jwt\_token,\
"client\_id": client\_id,\
"client\_secret": client\_secret,\
"redirect\_uri": REDIRECT\_URI,\
"scope": "openid offline patient/\*.read patient/\*.write",\
\
}\
\
The Access Tokens has patient/Patient.read and patient/Patient.write scopes for each user.\
\
**However, I’ve noticed that I’m still able to create Observation resources for different patients, not just the one the token is supposed to be limited to.**\
\
e.g. on payload to /fhir/R4/Observation, I can change Subject reference to other Patient ID (author meta has patient id)\
\
u\
\
usama\_007\
\
10/09/2024, 6:55 PM\
\
Hi Team,\
I am facing an issue. I have created an organisation and I was reading medplum documentation and it is mentioned that organisation is referenced by practitioner and want to associate practitioner with particuler organization. How I can do that?\
There is body which I am using\
\
{\
"resourceType": "Practitioner",\
"name": \[\
{\
"use": "official",\
"family": "Smith",\
"given": \["Alice"\]\
}\
\],\
"gender": "female",\
"birthDate": "1985-05-01",\
"active": true,\
"managingOrganization": {\
"reference": "Organization/4430d30f-d029-4679-9627-b494b290c99d"\
}\
}\
\
And I am getting this error\
\
{\
"resourceType": "OperationOutcome",\
"issue": \[\
{\
"severity": "error",\
"code": "structure",\
"details": {\
"text": "Invalid additional property \\"managingOrganization\\""\
},\
"expression": \[\
"Practitioner.managingOrganization"\
\]\
}\
\],\
\
Your help will be appreciated.\
Thanks\
**@rahul\_25388** **@reshma**\
\
\
\
- 2\
- 3\
\
\
\
amal\_paul\
\
10/10/2024, 6:11 AM\
\
Hi, could anyone please help me with this issue.\
\
I am running medplum app and server on a ubuntu server with no modifications.\
\
I am getting the error shown in the image when I type text to Search Resource Types.\
I researched about [https://www.medplum.com/docs/api/fhir/operations/valueset-expand](/content/docs/api/fhir/operations/valueset-expand ""/index.html). But couldn't figure out why and from where this url is being taken.\
\
But found no way to change the url. Not sure why its fetching data from url: [https://medplum.com/fhir/ValueSet/resource-types](/content/fhir/ValueSet/resource-types ""/index.html)\
filter: a\
\
\
\
\
\
\
\
amal\_paul\
\
10/10/2024, 10:04 AM\
\
Never mind, it started working again. Was some issue with medplum server I guess not sure. I changed nothing.\
\
s\
\
scottypate\
\
10/10/2024, 10:41 AM\
\
👋 We are using a database tool called DuckDB to query the FHIR API. It sends both a GET and HEAD request to the Medplum API but it seems Medplum doesn't recognize the HEAD method and returns a 404. Is that expected?\
\
i\
\
ivant.\_68122\
\
10/17/2024, 2:15 PM\
\
Hello folks!\
\
Could you help me to understand the source of the issue. So basically I'm running the medplum app with no critical modifications and locally everything works fine - both apps (server and app) running in Docker with postgres and Redis instances.\
\
But after deploy I see that some FHIR definitions isn't present in. the project.\
\
So this graphql request:\
\
```\
http://localhost:8103/fhir/R4/$graphql\
```\
\
\
\
locally return me full definition list data like that:\
\
Copy code\
\
```\
{\
"data": {\
"StructureDefinitionList": [\
{\
"resourceType": "StructureDefinition",\
"name": "Patient",\
"kind": "resource",\
"description": "Demographics and other administrative information about an individual or animal receiving care or other health-related services.",\
"type": "Patient",\
"url": "http://hl7.org/fhir/StructureDefinition/Patient",\
"snapshot": {\
"element": [\
{\
"id": "Patient",\
"path": "Patient",\
"definition": "Demographics and other administrative information about an individual or animal receiving care or other health-related services.",\
"min": 0,\
"max": "*",\
"base": {\
"path": "Patient",\
"min": 0,\
"max": "*"\
},\
"contentReference": null,\
"type": null,\
"binding": null\
},\
{\
"id": "Patient.id",\
"path": "Patient.id"\
...\
```\
\
And that good. And works fine\
\
i\
\
ivant.\_68122\
\
10/17/2024, 2:15 PM\
\
But after deployment (everything works fine, no errors in server or redis or postgress). Exactly this request (graphql) return me empty fields, like that:\
\
```\
{"data":{"StructureDefinitionList":[],"SearchParameterList":[]}}\
```\
\
And the main question - I can't understand where all this definitions are stored, how and when they are pulled and why the object is empty. I'm trying to log everything, but the structure is huge and looks like i've missed something.\
\
So deployed server sonfig looks like that:\
\
Copy code\
\
```\
const baseURL = "https://test-server.health.com/"\
\
const defaultConfig = {\
port: 8103,\
baseUrl,\
issuer: baseUrl,\
audience: baseUrl,\
jwksUrl: `${baseUrl}.well-known/jwks.json`,\
authorizeUrl: `${baseUrl}oauth2/authorize`,\
tokenUrl: `${baseUrl}oauth2/token`,\
userInfoUrl: `${baseUrl}oauth2/userinfo`,\
appBaseUrl,\
binaryStorage: 'file:./binary/',\
storageBaseUrl: `${baseUrl}storage/`,\
defaultProjectFeatures: [],\
supportEmail: '"Medplum" <support@medplum.com>',\
googleClientId: '397236612778-c0b5tnjv98frbo1tfuuha5vkme3cmq4s.apps.googleusercontent.com',\
googleClientSecret: '',\
recaptchaSiteKey: '6LfHdsYdAAAAAC0uLnnRrDrhcXnziiUwKd8VtLNq',\
recaptchaSecretKey: '6LfHdsYdAAAAAH9dN154jbJ3zpQife3xaiTvPChL',\
adminClientId: '2a4b77f2-4d4e-43c6-9b01-330eb5ca772f',\
maxJsonSize: '5mb',\
botLambdaRoleArn: '',\
botLambdaLayerName: 'medplum-bot-layer',\
vmContextBotsEnabled: true,\
defaultBotRuntimeVersion: 'vmcontext',\
allowedOrigins: '*',\
introspectionEnabled: true,\
database: db.config,\
redis: redis.config,\
bullmq: {\
removeOnFail: { count: 1 },\
removeOnComplete: { count: 1 },\
},\
shutdownTimeoutMilliseconds: 30000,\
chainedSearchWithReferenceTables: true,\
};\
```\
\
i\
\
ivant.\_68122\
\
10/17/2024, 2:16 PM\
\
What else should I check to understand the root of the issue?\
\
m\
\
mahannya\
\
10/21/2024, 6:40 AM\
\
Hi All !\
I have a doubt regarding creating FHIR resources with Medplum . I am aware that with client application credentials of super admin via Typescript SDK you can create new Projects and invite users to that project as the docs suggest. To create organizations, patients , observations within my new project, what should be the expected flow via the Typescript SDK. I couldnt find anything in the docs that points to this. Any help would be appreciated. **@rahul1**\
Thanks!\
\
m\
\
mahannya\
\
10/22/2024, 3:22 AM\
\
Any help here **@rahul1** **@reshma** **@medplummatt** . Would really appreciate the appropriate solution.\
\
u\
\
usama\_007\
\
10/22/2024, 5:18 PM\
\
Hi Team,\
I have a use case and I am stuck in Medplum your suggestion will be appreciated\
1\. Practitioners are using to create resources in medium i.e. Patients, Encounters...\
a. I know we can associate Practitioners with Organization\
2\. Users are using to log in to the system/site\
a. User has roles like admin = True / False\
b. But Users are not associating with an organization\
3\. If a practitioner wants to log into the site as a part of an organization. How we can do that?\
a. Do we need to associate the User with the Practitioner?\
b. But there is no direct relation of the Practitioner with the User?\
I am attaching screen shots for further clarification\
cc: **@rahul1** **@reshma** **@medplummatt**\
\
\
\
\
\
\
\
- 2\
- 1\
\
u\
\
usama\_007\
\
10/22/2024, 5:19 PM\
\
\
\
\
\
maajidz\
\
10/26/2024, 11:29 AM\
\
Hi Team,\
\
Im trying to login with the demo default creds but im seeing this.\
\
admin@example.com\
medplum\_admin\
\
PS: Initially i wasnt able to access the demo through WAN, as I set it up on our cloud server. So I had to change the env file API address to our WAN IP and have started the front end app with npm run dev -- --host.\
\
\
\
m\
\
mahannya\
\
10/28/2024, 4:32 AM\
\
Any help please . I am kind of stuck here **@reshma** **@rahul1** **@medplummatt**\
\
p\
\
Pravin\
\
10/28/2024, 4:51 AM\
\
**@mahannya** check this if helpful [https://github.com/medplum/medplum/issues/3363](https://github.com/medplum/medplum/issues/3363 "")\
\
\
\
maajidz\
\
10/30/2024, 2:18 AM\
\
THank you **@Pravin**\
\
\
\
henriquecgarcez\
\
11/07/2024, 7:57 AM\
\
Hey **@reshma** **@rahul1**\
\
Quick sending some general questions here for guidance:\
1\. Is there an easy way for us to load a set of vaccines, medications and allergies into our environment using the e-prescription integration? This could involve connecting to a sandbox environment to retrieve this information.\
2\. Could we do the same for lab tests and imaging options?\
3\. Do you currently have a native integration to support the submission of Communications as text messages?\
\
\
\
maajidz\
\
11/13/2024, 1:38 AM\
\
the env is already bootstrapped and when deployed it throws this error, i have re-bootstrapped multiple times even initialised the aws cdk but same results, Sometimes even times out\
\
Anyone else here faced this issue?\
\
\
\
\
\
s\
\
sara\_31357\
\
11/13/2024, 6:21 AM\
\
Hi All !\
I have a doubt regarding creation of the custom resource types in Medplum.\
\
s\
\
sara\_31357\
\
11/13/2024, 6:22 AM\
\
Is there any way to create the custom ones?\
\
s\
\
sara\_31357\
\
11/13/2024, 6:23 AM\
\
Please help me on this. Thanks in advance.\
\
a\
\
andrei\_60331\
\
11/14/2024, 6:13 PM\
\
Hi **@sara\_31357** , this can be a good start [https://www.medplum.com/docs/api/fhir/resources/basic?section=schema](/content/docs/api/fhir/resources/basic?section=schema ""/index.html)\
\
d\
\
d.tective\
\
11/19/2024, 2:13 AM\
\
hi, I was going through the medplum-provider app in examples section, its running fine. But the default credentials given in the doc for super admin admin@example.com, medplum\_admin is not working. Should i create new user or something.\
thanks in advance\
\
\
\
- 2\
- 1\
\
t\
\
thomabig\
\
11/20/2024, 9:30 AM\
\
Hello everyone,\
\
Has anyone an idea on how to increase the session lifetime ?\
My use case is that we do a mobile application where the user needs to do a night recording. Once the night is finished, the patient needs to do some api calls to the medplum platform.\
But at this point, the user is logged out everytime !\
\
\
\
\
\
- 3\
- 5\
\
t\
\
thomabig\
\
11/20/2024, 9:30 AM\
\
I'm wondering if there is any way to handle our use case !\
\
c\
\
camilo\_alternova\_36796\
\
11/20/2024, 3:21 PM\
\
Hello everyone, I hope you're doing well.\
\
Does anyone know if SMART apps integration embeds them instead of redirecting? I have a use case where I create a client and define a URL for a SMART app in the Launch Uri section, but instead of embedding it, it redirects.\
\
I want to create a SMART app based on React, but I’m wondering if it’s possible to embed it instead of redirecting. The React components support documentation doesn’t specifically address cases where it’s not just a component but a full SPA.\
\
Thanks for your help!\
\
s\
\
sara\_31357\
\
11/21/2024, 5:11 AM\
\
Hi **@andrei\_60331** , Is there any possibility to create role-based logins in Medplum?\
I tried the approaches:\
1\. To create AccessPolicies for different roles to link with PractitionerRole, but this case has not reached the expectation.\
2\. To create new User and then add the Access policies - this one is also not worked out.\
3\. To create InviteUser and then add the policies - for this, I received the resetpassword link to email after successfully setting up the new password, but now I can not login with that password.\
\
a\
\
andrei\_60331\
\
11/21/2024, 4:29 PM\
\
Hi **@sara\_31357** , following this documentation page [https://www.medplum.com/docs/access/access-policies](/content/docs/access/access-policies ""/index.html) it seems to me you are on the right path. You could think of AccessPolicy resource as a specific security role. I wonder what did not reach your expectations with AccessPolicies? Also I am sure **@rahul1** has more insights\
\
m\
\
moiz\_80309\
\
12/02/2024, 6:00 AM\
\
Hey Guys,\
\
Hope you're doing well. I am currently working on creating patient encounters where media files need to be attached to each encounter. I wanted to confirm if there is a way to implement the following workflow:\
\- The media files attached to an encounter are uploaded and stored in my AWS S3 bucket.\
\- The URL of the stored media is then saved in the corresponding media form within the application.\
\
Could you please let me know if this is feasible, and if so, the best approach to achieve it?\
cc **@reshma** **@rahul1** **@medplummatt**\
\
\
\
medplummatt\
\
12/02/2024, 12:28 PM\
\
This documentation on storing binary data should be helpful: [https://www.medplum.com/docs/fhir-datastore/binary-data](/content/docs/fhir-datastore/binary-data ""/index.html)\
\
\
\
m\
\
- 3\
- 4\
\
s\
\
shirlay\_2\
\
12/10/2024, 8:21 AM\
\
Hi Medplum team,\
\
Hope you're well. We were wondering if you guys had an estimated time for when the fix for #5499 ( [https://github.com/medplum/medplum/issues/5499](https://github.com/medplum/medplum/issues/5499 "")) may be available in production?\
\
Thanks so much!\
Shirley\
\
\
\
- 2\
- 1\
\
\
\
ruben\_cid\
\
12/13/2024, 9:35 AM\
\
Hi all. I have a question. Is it possible to run medplum on supabase instead of postgres?\
\
\
\
vegascrypto61\
\
12/13/2024, 3:58 PM\
\
I'm trying to create/read payloads via the Medplum Client (node.js SDK). I don't see a function for this.\
\
Separate question--I see a function for creating a comment (I think this is what the dashboard calls this a "note"), but not for reading a comment. Is there one?\
\
\
\
reshma\
\
12/16/2024, 1:23 PM\
\
unfortunately no\
\
\
\
reshma\
\
12/16/2024, 1:25 PM\
\
comments are Communications - you can see a seach for them in ther Medplum app as follows: [https://app.medplum.com/Communication?\_count=20&\_fields=id,\_lastUpdated&\_sort=-\_lastUpdated](https://app.medplum.com/Communication?_count=20&_fields=id,_lastUpdated&_sort=-_lastUpdated "")\
\
s\
\
semi\_ns\
\
12/18/2024, 11:29 PM\
\
Hi all, I am facing an issue with the Bots after we migrated bots from another project. So, as you can see on the screenshot, Editor doesnt allow to edit or even see the code. Also, Save and Deploy commands work but Execute doesnt. Did you face such issue before ? Would appreciate if someone can help.\
Thanks !\
\
\
\
\
\
- 2\
- 4\
\
p\
\
Pravin\
\
12/20/2024, 10:03 AM\
\
Hi **@rahul1**,\
\
I noticed that Medplum now supports self-hosting on GCP as per this documentation - [https://www.medplum.com/docs/self-hosting/install-on-gcp](/content/docs/self-hosting/install-on-gcp ""/index.html). Could you share if there’s been any progress on this?\
\
I’m curious to know if the GCP setup is as robust as the AWS-hosted SaaS version, particularly from a support perspective. Since Medplum SaaS is primarily hosted on AWS, are there any potential breaking changes we should anticipate for GCP in future releases?\
\
Additionally, could you provide some clarity on how GCP supports bot functionalities? It would be great to understand if there are specific considerations or integrations needed.\
\
Thanks in advance for your insights!\
\
\
\
reshma\
\
12/21/2024, 1:12 PM\
\
Hi **@Pravin** \- it's still early for Medplum on GCP, would love to chat about your interest and perspective. Feel free to book community office hours if that is of interest! [https://cal.com/medplum/office-hours](https://cal.com/medplum/office-hours "")\
\
p\
\
Pravin\
\
12/21/2024, 11:47 PM\
\
Thanks Reshma. One of the customer I am talking wanted to host on GCP due to their partnership with them, so was checking best option we have, AWS we used multiple times so I know its battle tested. Was wondering how much support one can get for the same. Also, calendar link not showing any availability, may need to be updated for 2025.\
\
g\
\
giri0321\
\
12/23/2024, 12:45 PM\
\
Thanks for the detailed instructions to install on AWS. I followed the doc and got the app up and running. However, the setup does not allow projects to be created. The "Register" option is missing from the app login page. Navigating to app.domain/register says "New projects are disabled on this server.". I added the 'registerEnabled' parameter and restarted the server. Still no luck.\
\
g\
\
giri0321\
\
12/23/2024, 12:59 PM\
\
\
\
\
\
reshma\
\
12/23/2024, 7:14 PM\
\
HI Giri - you'll need to enable registration in the configs [https://www.medplum.com/docs/self-hosting/config-settings#registerenabled](/content/docs/self-hosting/config-settings#registerenabled ""/index.html)\
\
\
\
rahul1\
\
12/24/2024, 5:30 PM\
\
**@giri0321** you will also need to redploy the Medplum App after making the config change in your local server json file\
\
t\
\
thomabig\
\
12/28/2024, 8:09 AM\
\
Hi **@rahul1**\
I was actually wondering the same question, if I want to change something in my server configuration.\
What are exactly the steps to follow ?\
It is unclear in the docs.\
\
I've tried to change the json and then run\
\
Copy code\
\
```\
npx medplum aws update-config [env name]\
```\
\
But this doesn't take into account the entry I've added (for example maxJsonSize)\
\
For the moment the only way I managed to modify the server config is :\
\
1\. Modify my parameter store in AWS\
2\. Run a new deploy npx cdk deploy -c config=medplum.unveil.config.json --all\
\
t\
\
thomabig\
\
01/08/2025, 3:18 AM\
\
Hello **@rahul1** just to verify with you what is the correct way to update configuration ?\
Thank you 🙂\
\
p\
\
Pravin\
\
01/09/2025, 6:12 AM\
\
**@sanket\_89360** You faced same issue in past, you might help **@thomabig** here\
\
s\
\
sanket\_89360\
\
01/09/2025, 7:46 AM\
\
Hi **@thomabig** ,\
\
I also encountered the same issue. However, I followed these steps to resolve it:\
\
1) First, modify the AWS Parameter Store (add or delete the configuration setting parameter).\
2)After that, update the medplum.\[env name\].config.json file (add or delete the same configuration setting parameter that was modified in the AWS Parameter Store).\
3)Upgrade the AWS infrastructure. ---> npx cdk deploy -c config=medplum.\[env name\].config.json\
4)Finally, upgrade the app. ---> npx medplum aws update-app \[env name\]\
\
I hope this helps!\
\
**@rahul1** can you just verify these steps?\
\
\
\
aezxyz\
\
01/11/2025, 10:38 AM\
\
Hey there everyone, hope y’all are doing well,\
\
I wanted to ask about the integration of medplum Auth, with reactjs, can anyone help me with that?\
\
s\
\
Spencer Smith\
\
01/13/2025, 12:28 PM\
\
Thanks for writing these out. I ran through them and still didn't see the updates come through until I killed the backend fargate task and let another one come online.\
\
s\
\
Spencer Smith\
\
01/20/2025, 11:02 PM\
\
Hey all. I'm trying to deploy a new stack on AWS to a subdomain (test.pelairo.app). I have the main domain in one AWS account with the subdomain as a separate hosted zone in another account. When running the cdk synth command, I'm getting the following error:\
\
Copy code\
\
```\
[Error at /MedplumTest/BackEnd] Found zones: [] for dns:pelairo.app, privateZone:undefined, vpcId:undefined, but wanted exactly 1 zone\
[Error at /MedplumTest/FrontEnd] Found zones: [] for dns:pelairo.app, privateZone:undefined, vpcId:undefined, but wanted exactly 1 zone\
[Error at /MedplumTest/Storage] Found zones: [] for dns:pelairo.app, privateZone:undefined, vpcId:undefined, but wanted exactly 1 zone\
Found errors\
```\
\
It's almost like it's doing a substring of the domain I've given it. Has anyone run into this before, or maybe point me toward where this code lives? I'm new to CDK but have a background in infra. Thanks!\
\
\
\
sniper.live\
\
01/22/2025, 6:33 AM\
\
Mobile developer with over 5 years of experience in🔰Flutter and 🔰SwiftUI, as well as expertise in blockchain.\
My strong skills in Flutter allow me to build robust and scalable cross-platform solutions that perform well on various devices.\
I have experience in real-time data synchronization,🪙 blockchain integration, and advanced security protocols for user data protection. I design intuitive user interfaces and have developed apps that make everyday tasks easier, incorporating features like personalized notifications and secure storage.\
I am committed to improving my applications based on user feedback and leveraging my full-stack knowledge to enhance functionality. I am passionate about using technology to solve complex problems and create seamless mobile experiences. I strive to develop apps that meet user needs and business goals.\
If you need a mobile developer with experience in blockchain and full-stack development, please contact me.\
\
\
\
cody\
\
01/26/2025, 9:14 PM\
\
Hi **@spencersmith5762** \- apologies for the slow reply.\
\
You're right, by default Medplum will use the root TLD ("pelairo.app" in your case) when looking for the AWS Route 53 Hosted Zone.\
\
You can override that behavior by adding a config setting called\
\
```\
hostedZoneName\
```\
\
in your JSON config with the "test.pelairo.app" value).\
\
If you are interested in exploring this more, here is an example of how the Medplum CDK code grabs the Hosted Zone: [https://github.com/medplum/medplum/blob/main/packages/cdk/src/backend.ts#L604](https://github.com/medplum/medplum/blob/main/packages/cdk/src/backend.ts#L604 "")\
\
\
\
joshua\_kelly\
\
01/27/2025, 4:20 PM\
\
Any effort to implement Questionnaire response extract operation yet **@cody** ?\
\
Will submit a toy implementation if not\
\
\
\
- 2\
- 4\
\
m\
\
molecularlife\
\
01/27/2025, 6:44 PM\
\
Hi all - is rendering-xhtml for Questionnaire resources supported? [https://build.fhir.org/ig/HL7/sdc/rendering.html](https://build.fhir.org/ig/HL7/sdc/rendering.html "") it's referenced in the docs but I think it might not be implemented based on my own trial and error: [https://github.com/medplum/medplum/blob/2fe8e57df75dd14743296f9a4475369a0e8f2f46/packages/docs/docs/questionnaires/index.md?plain=1#L61](https://github.com/medplum/medplum/blob/2fe8e57df75dd14743296f9a4475369a0e8f2f46/packages/docs/docs/questionnaires/index.md?plain=1#L61 "")\
\
\
\
- 2\
- 1\
\
m\
\
minik9231\
\
02/01/2025, 12:41 PM\
\
Hi all, just getting started with medplum. I registered for an account and have a medplum server running now which I can access when I log in.\
\
Where can I get the endpoint for this server so I can post data using postman?\
\
\
\
btisback\
\
02/03/2025, 5:53 PM\
\
hello I am trying to understand few basics things here if someone can help pls:\
\
\- If Medplum is built over FHIR data, then can someone directly use FHIR API to get access to all data and don't need Medplum APIs? What's the benefit of Medplum that I am sure I am missing in understanding the nuance.\
\
\- Does these APIs give access to one's (patient's) data across multiple hospital system? Can that be pulled directly or would need some sort of approval from hospital system? For example can I search my records (using my name, SSN etc) via these APIs for last 4-7 years or so across hospital systems I have been part of? If yes, is there a guide to point to that to see what is covered?\
\
m\
\
molecularlife\
\
02/04/2025, 7:28 PM\
\
Does anyone know what the "Missing code" error refers to when trying to deploy Bot code from the medplum app (v3.2.27)? Interstingly it seems not to come up with the medplum app (v3.1.5)\
\
m\
\
matts\_43877\
\
02/11/2025, 5:31 PM\
\
Hi all, I have a question about mapping from Pharmacies to a FHIR concept.\
Our closest mapping is to a combination of Organization and CareTeam.\
Is this a reasonable way to consider the design?\
Thank you\
\
\
\
- 2\
- 2\
\
a\
\
ajayvasisht\_26977\
\
02/16/2025, 3:16 PM\
\
Small fix to hello world - was getting an error without this package installed.\
\
[https://github.com/medplum/medplum-hello-world/pull/70](https://github.com/medplum/medplum-hello-world/pull/70 "")\
\
\
\
- 2\
- 3\
\
Hi team, When I am trying to use auth/\
\
\
\
reshma\
\
02/20/2025, 10:01 AM\
\
Have you tried setting PKCE to optional? Does that work?\
\
\
\
s\
\
- 2\
- 4\
\
\
\
kerry\
\
02/20/2025, 6:05 PM\
\
Hi Medplum team! I have a question for you 🙂 I've been extending our lang2FHIR API (takes unstructured text as an input and produces valid FHIR output) to support pdfs as an input. I'm planning to make and record a demo over the next week to share this and my initial thinking was to build a simple frontend application and have it invoke a Medplum bot that fires off an API call to lang2FHIR with the pdf.\
\
however, as you can see in the recording in the thread, it seems to me that this could be a pretty nifty use case for uploading questionnaires to Medplum particularly if someone is migrating from a legacy system with a bunch of pdfs. if this could be generally useful, would it make sense for me to fork one of the Medplum sample apps so folks could try it out more easily or would just building a sample bot be sufficient? would love your thoughts!\
\
\
\
- 2\
- 7\
\
a\
\
ajayvasisht\_26977\
\
02/23/2025, 11:45 PM\
\
Has anyone built an analytics stack with Tuva where they use Medplum for their FHIR server? Would love to understand how you set it up / any resources you referenced.\
\
\
\
- 2\
- 1\
\
a\
\
ajayvasisht\_26977\
\
02/23/2025, 11:47 PM\
\
Also, it was unclear how to use className component prop to override styles on the Medplum react components. I was trying to do hover, border, and text, and nothing was being overridden. I tried this on multiple components in the Hello World tutorial. How can I do this?\
\
a\
\
ajayvasisht\_26977\
\
02/25/2025, 4:18 PM\
\
One thing I noticed when trying to use Flexpa with Medplum is the\
\
```\
types/fhir\
```\
\
package conflicts with\
\
```\
medplum/fhirtypes\
```\
\
package.\
\
I was following the Flexpa x Medplum guide: [https://www.flexpa.com/docs/guides/medplum](https://www.flexpa.com/docs/guides/medplum "")\
\
Here's a gist with my stack trace and how I resolved it: [https://gist.github.com/avasisht23/9cf75c3518df081d34173d8a192813b8](https://gist.github.com/avasisht23/9cf75c3518df081d34173d8a192813b8 "")\
\
Curious if anyone has seen this before / recommends another solution. I'm unblocked, just sharing in case the team has more context.\
\
a\
\
ajayvasisht\_26977\
\
03/03/2025, 2:21 PM\
\
Hi **@reshma** I want to clear the test data via app.medplum.com, but I get\
\
```\
Missing bundle entries\
```\
\
toasts. Is there a way to address this?\
\
\
\
\
\
- 2\
- 5\
\
\
\
joshua\_kelly\
\
03/03/2025, 5:19 PM\
\
I think the answer is no, but does the repo contain an implementation of FHIRPath Patch?\
\
\
\
joshua\_kelly\
\
03/03/2025, 5:25 PM\
\
Seems like no per **@cody** comment here: [https://github.com/medplum/medplum/issues/3084#issuecomment-1773498036](https://github.com/medplum/medplum/issues/3084#issuecomment-1773498036 "")\
\
\
\
cody\
\
03/03/2025, 5:33 PM\
\
Not really. I think you found the Patch + Parameters support: [https://github.com/medplum/medplum/pull/5317/files](https://github.com/medplum/medplum/pull/5317/files "")\
\
But that's only syntactic sugar around a Patch operation (the alternative is to Base64 encode the JSONPatch JSON)\
\
Our Patch operation is currently a very thin wrapper around the\
\
```\
rfc6902\
```\
\
library ( [https://www.npmjs.com/package/rfc6902](https://www.npmjs.com/package/rfc6902 "")). Full FHIRPath Patch has quite a bit more complexity, and would be non-trivial lift 😢\
\
\
\
joshua\_kelly\
\
03/03/2025, 5:37 PM\
\
Yeah, I'm seeing that. At the lowest levle, I guess you'd use the AST from the eval to edit the resource, or something like that. First, eval the path against the object. Then, copy it. Then, use AST to correctly traverse to edit?\
\
\
\
cody\
\
03/03/2025, 5:39 PM\
\
Yes, I think that plan should work (?) Devil is in the details.\
\
We have a low-priority long term goal to convert the FHIRPath implementation to use RFC6901 JSON Pointers, so in addition to getting the value, you would also get the pointer/handle, which would allow for efficient manipulation.\
\
That's pie in the sky future work though.\
\
a\
\
ajayvasisht\_26977\
\
03/04/2025, 11:25 AM\
\
Hi! I'm getting a weird loading state on app.medplum.com. Is there a reason this is happening?\
\
I saw the network tab and there was a 4xx error on the /me endpoint? Should I clear my cookies / local storage?\
\
Cc: **@cody** maybe can help?\
\
\
\
\
\
- 2\
- 5\
\
t\
\
tohid\_77128\
\
03/05/2025, 5:09 PM\
\
Hi all,\
\
I am trying to build a medplum instance on aws. When I run "npx cdk deploy --all -c config=medplum.demo.config.json" I get the below error. Would anyone advice? I appreciate it.\
\
MedplumMed: SSM parameter /cdk-bootstrap/hnb659fds/version not found. Has the environment been bootstrapped? Please run 'cdk bootstrap' (see [https://docs.aws.amazon.com/cdk/latest/guide/bootstrapping.html](https://docs.aws.amazon.com/cdk/latest/guide/bootstrapping.html ""))\
\
\
\
- 2\
- 2\
\
t\
\
tohid\_77128\
\
03/05/2025, 5:11 PM\
\
\
\
c\
\
cecchim\
\
03/06/2025, 7:25 PM\
\
Hi - I'm evaluating using Medplum for a new project. I'll be importing FHIR data from other platforms that do not all use R4. Does Medplum support importing DSTU2, STU3, and R4 formats? One of the main benefits for me would be if I could use Medplum as a normalization service so I only have to write code to handle R4 resources.\
\
\
\
joshua\_kelly\
\
03/07/2025, 4:07 PM\
\
I have a bad implementation of this now\
\
\
\
suryansh\_yc\
\
03/11/2025, 3:33 AM\
\
Hey Everyone\
How did you guys generate fhir types in your repository?\
[https://github.com/medplum/medplum/tree/main/packages/fhirtypes](https://github.com/medplum/medplum/tree/main/packages/fhirtypes "")\
\
\
\
cody\
\
03/13/2025, 6:35 PM\
\
There is a FHIR type generator in the sibling\
\
```\
generator\
```\
\
package: [https://github.com/medplum/medplum/tree/main/packages/generator](https://github.com/medplum/medplum/tree/main/packages/generator "")\
\
\
\
zainaltaf\
\
03/14/2025, 7:37 AM\
\
hey everyone, I'm having a slight authentication issue. I wanted to enable open patient registration and started following this: [https://www.medplum.com/docs/auth/open-patient-registration](/content/docs/auth/open-patient-registration ""/index.html). This led to me copying a default access policy for patients from here: [https://www.medplum.com/docs/access/access-policies#patient-access](/content/docs/access/access-policies#patient-access ""/index.html). I then set the default access policy for the medplum project to be this access policy. When I register a user up, it successfully does so. But when I log out and try to sign in with this same user, it gives me an error saying "user not found". Just for reference, I am using the RegisterForm and SignInForm from medplum/react when I try to do the following. I'm not sure where I am going wrong. If need be, I can try to fork my current project for more details\
\
\
\
cody\
\
03/14/2025, 2:51 PM\
\
\> But when I log out and try to sign in with this same user, it gives me an error saying "user not found"\
1\. are you using Medplum's hosted environment (api.medplum.com), or a different environment?\
2\. Does your\
\
```\
<SignInForm>\
```\
\
include a\
\
```\
projectId\
```\
\
prop?\
\
\
\
zainaltaf\
\
03/15/2025, 3:58 AM\
\
Forgot to reply to this sorry! I think your 2nd point nailed it! I had forgotten to include the projectId in the sign in\
\
I'm running into another issue. At the\
\
\
\
zainaltaf\
\
03/15/2025, 3:57 PM\
\
However, even after I did that, it seems that I still can't save the condition resource\
\
\
\
- 2\
- 5\
\
n\
\
noclip\
\
03/20/2025, 1:10 PM\
\
hey has anyone had luck importing the openapi spec into something like postman or bruno?\
\
n\
\
noclip\
\
03/22/2025, 8:00 PM\
\
hey is there any reason why building the value sets is so slow? how many are there\
\
\
\
billbluey174\
\
03/24/2025, 12:22 PM\
\
Hello everyone, I have a question regarding type validation fhir objects. When I make a call to get a resource, like a patient, what’s the best way to 1) check that the type is what’s expected and 2) cast it to a typescript type.\
\
\
\
kyl.e.\
\
03/24/2025, 12:55 PM\
\
You can use the\
\
```\
fhirTypes\
```\
\
package included in Medplum:\
[https://github.com/medplum/medplum/blob/main/packages/examples/src/search/basic-search.ts#L2](https://github.com/medplum/medplum/blob/main/packages/examples/src/search/basic-search.ts#L2 "")\
\
n\
\
noclip\
\
03/24/2025, 1:15 PM\
\
hi, i just signed a user in using /google/auth but I don't see that the user is associated with the project. they are neither an admin, practioner, or patient\
\
n\
\
noclip\
\
03/24/2025, 1:15 PM\
\
any ideas?\
\
\
\
kyl.e.\
\
03/24/2025, 1:20 PM\
\
What do you mean by "signed a user in". Did you sign into the medplum app with one of the provided example users or is this a user you created?\
\
n\
\
noclip\
\
03/24/2025, 1:22 PM\
\
So I created a new project "Dummy medical" and i configured the google oauth credentials and the site. then i created a front-end and logged in to the app using the google flow targeting that project\
\
[https://www.medplum.com/docs/auth/methods/google-auth](/content/docs/auth/methods/google-auth ""/index.html)\
\
n\
\
noclip\
\
03/24/2025, 1:22 PM\
\
however when i look at the Users under the project, I only see the admin that was used to create the project, not my new user\
\
n\
\
noclip\
\
03/24/2025, 1:24 PM\
\
this is what I see when im logged into medplum using the admin of the project\
\
\
\
n\
\
noclip\
\
03/24/2025, 1:25 PM\
\
do i need to explicitly invite them as a patient / practicioner?\
\
n\
\
noclip\
\
03/24/2025, 1:25 PM\
\
like /projects/..../invite?\
\
\
\
kyl.e.\
\
03/24/2025, 3:07 PM\
\
Patients are different than users. You will only see patient data if you write to the store with a\
\
```\
POST /Patient\
```\
\
or something like that.\
\
\
\
kyl.e.\
\
03/24/2025, 3:09 PM\
\
You could make a patient in the UI then fetch it or\
\
```\
POST\
```\
\
a patient and then look at it in the UI or any combination.\
\
A Users purpose is to authenticate and authorize access. You use that users permissions to access data.\
\
n\
\
noclip\
\
03/24/2025, 3:19 PM\
\
I thought a user can be either a patient, practicioner, or admin?\
\
n\
\
noclip\
\
03/24/2025, 3:42 PM\
\
i see. so if i run /auth/newpatient that adds a new patient, but doesn't add a user\
\
n\
\
noclip\
\
03/24/2025, 3:42 PM\
\
so it would seem you first have to add them as a user, and then as a patient\
\
\
\
kyl.e.\
\
03/24/2025, 11:49 PM\
\
They only have to be a user if they are going to login into medplum. If you are wanting to store their patient FHIR resource then you can add them as a patient. Perhaps it would be easier to understnad what you are trying to accomplish?\
\
n\
\
noclip\
\
03/25/2025, 8:15 AM\
\
**@kyl.e.** i want patients to login with google\
\
n\
\
noclip\
\
03/25/2025, 8:15 AM\
\
i'm making a patient portal\
\
n\
\
noclip\
\
03/25/2025, 8:18 AM\
\
i seem to have it working after authenticating the patient, then inviting them to the project via /auth/newpatient\
\
n\
\
noclip\
\
03/25/2025, 12:39 PM\
\
question - is it possible to do anonymous requests? for example, I want to fetch the questionnaires for a project without having the user be authenticated\
\
\
\
dvidsilva\
\
03/26/2025, 10:30 AM\
\
You should be able to create an auth token with those permisions and use it\
\
the way I was doing it, you can also have a proxy server that makes an authorized server side request, and then returns the JSON to the unauthenticated browser - to prevent leaking the token\
\
\
\
dvidsilva\
\
03/26/2025, 6:10 PM\
\
had to make a small change to deploy in digital ocean, it was failing to read the env variables for the database ssl\
\
has anyone run into a problem like that? not sure if my solution was correct, but i posted it on a PR [https://github.com/medplum/medplum/pull/6244/files](https://github.com/medplum/medplum/pull/6244/files "")\
\
a\
\
arasan\_66501\
\
03/28/2025, 8:38 AM\
\
Hello everyone! I had a question regarding using Supabase auth with Medplum. Supabase does not seem to be a true IDP such as Auth0, but can trigger an oauth flow to Google. Curious if I can still use it in the \[following manner\]( [https://www.medplum.com/docs/auth/methods/external-identity-providers](/content/docs/auth/methods/external-identity-providers ""/index.html)) to sign a user into medplum but keeping users in the supabase system. I have pulled the Medplum repo down locally and modifying the packages/app/src/SignInPage.tsx to see if it is possible, but running into the following issue: "Unsupported provider: Provider could not be found".\
\
a\
\
arasan\_66501\
\
03/28/2025, 10:32 PM\
\
I was able to solve this using the \[token exchange\]( [https://www.medplum.com/docs/auth/methods/token-exchange](/content/docs/auth/methods/token-exchange ""/index.html)) method and passing in the provider token in after a successful google login!\
\
n\
\
noclip\
\
03/29/2025, 8:35 AM\
\
bit confused on setting on websockets - what port does the server expose them on?\
\
n\
\
noclip\
\
03/29/2025, 5:13 PM\
\
hey guys - how do i fetch project secrets that I set on the project level?\
\
n\
\
noclip\
\
03/29/2025, 5:13 PM\
\
when I use the repository it seems to omit this field, however i see the items in the database\
\
\
\
rahul1\
\
04/01/2025, 8:09 PM\
\
hi **@noclip** , we'd be happy to help you wht some of these questions in the **#1094022380659155005** channel\
\
d\
\
deepanshu5938\
\
04/02/2025, 4:49 AM\
\
Hi everyone i am beginner and working on medplum project and got some error while creating labs can anyone help me out ,I am attaching ss for your reference\
\
Please anyone help me to resolve this error asap.\
\
\
\
d\
\
deepanshu5938\
\
04/02/2025, 6:40 AM\
\
Can anyone help me out please?\
\
\
\
cody\
\
04/02/2025, 6:15 PM\
\
Interesting. There was a change to\
\
```\
medplum-provider\
```\
\
which started adding the profile "http://medplum.com/StructureDefinition/medplum-provider-lab-procedure-servicerequest" to\
\
```\
ServiceRequest.meta.profile\
```\
\
in some cases. However, Medplum server silently ignores profiles when the profile URL is not found. Are you running against\
\
```\
api.medplum.com\
```\
\
or your own dev server?\
\
d\
\
deepanshu5938\
\
04/03/2025, 12:35 AM\
\
No i am running on api.medplum.com\
\
g\
\
Guoyi Z (Empallo)\
\
04/04/2025, 2:01 PM\
\
Hi everyone. I have a question regarding IDP integration with Medplum.\
Is redirect-based flow (e.g., OAuth2 authorization code flow) mandatory for integrating an external identity provider (IDP)?\
Or is there a way to complete the IDP integration fully within the same domain, without needing a redirect? Would appreciate any guidance or best practices. Thank you!\
\
\
\
- 2\
- 1\
\
m\
\
monicasriramreddy\
\
04/05/2025, 11:21 PM\
\
Hi, I was trying to resolve this issue: Potential issue with AWS Textract integration not retrieving full content #5879.\
\
I couldn’t reproduce the issue, because it says AWS textract not enabled, can someone guide me on this ?\
Thank you!\
\
\
\
\
\
- 2\
- 2\
\
Issues with Self Hosting on AWS\
\
\
\
ute0\
\
04/14/2025, 12:00 PM\
\
Hi all, I'm working on self hosting with AWS using this guide: [https://www.medplum.com/docs/self-hosting/install-on-aws](/content/docs/self-hosting/install-on-aws ""/index.html). I'm pretty experienced with AWS and infrastructure, but I am used to terraform and have little experience with cloudformation. That said, I've been following the guide and have run into a few issues that I have not been able to work through.\
\
The first issue that there may not be a workaround for is that I was initially trying to deploy medplum to an existing VPC. The primary issue that I ran into is that the cdk pulls in all of our subnets and does not seem to respect the 1 subnet per AZ that the cdk code is supposed to. This seems to be a known issue for the cdk ( [https://github.com/aws/aws-cdk/issues/3126](https://github.com/aws/aws-cdk/issues/3126 "")) and throws "A load balancer cannot be attached to multiple subnets in the same Availability Zone (Service: AmazonElasticLoadBalancingV2; Status Code: 400; Error Code: InvalidConfigurationRequest;". I'm not optimistic about a resolution for this, but if anyone has a workaround, I would love to try it.\
\
So after more or less giving up on deploying to the existing VPC, I decided to try deploying to a new VPC. I know that medplum recommends using Route53 for DNS, but we are already using cloudflare and moving to Route53 feels like something that we don't want to take on right now. That said, I created certificates for the subdomains that we want to use for medplum in AWS ACM and provided those in the config, but I keep getting errors like this:\
11:22:12 AM \| CREATE\_FAILED \| AWS::ElasticLoadBalancingV2::Listener \| BackEndLoadBalancerHttpsListener54B76346\
Resource handler returned message: "Certificate ARN 'arn:aws:acm:us-east-1:{...}:certificate/{...}' is not valid (Serv\
ice: ElasticLoadBalancingV2, Status Code: 400, Request ID: ...) (SDK Attempt Count: 1)" (RequestToken: ..., HandlerErrorCode: InvalidRequest)\
The certs are in us-east-1, are in an issued state, and by all accounts appear to be valid.\
\
\
\
- 2\
- 15\
\
The website doesnt have a typical "\
\
o\
\
oscadev\
\
04/15/2025, 2:12 PM\
\
The website doesnt have a typical "contact us". I have questions about medplum "can it do xyz?". Is this where I can ask my questions?\
\
\
\
- 2\
- 1\
\
Issue running docker-compose.full-stack.yml\
\
\
\
mornjohgan\
\
04/18/2025, 3:18 PM\
\
When using the docker-compose.full-stack.yml, I am seeing an issue with the app failing. It looks like a configuration issue. The app does not load, and the console shows the error\
Error: Base URL must start with http or https\
at new rP (client.ts:856:15)\
at aX (index.tsx:31:19)\
at index.tsx:80:11\
I've tried adding MEDPLUM\_BASE\_URL environment variable (per docker-entrypoint.sh) and verified that it is correct in the container. The default in that file also appears to be using [http://localhost:8103](http://localhost:8103/ "") per the .env.\
Looking at the source, I can only guess that the variable is not being set prior to the check, so this may be a defect. As I am new to medplum I thought I'd check here before filing a bug. Thanks!\
\
\
\
- 2\
- 18\
\
d\
\
Doug DeBold\
\
04/21/2025, 2:59 PM\
\
I'm currently working on integrating medplum into our existing multi-tenant system as our clinical data store, and have 2 questions:\
\
1\. A feature of our system is that our super admins (internal) don't have to have joined a project to be able to see and operate in it. I would like to implement a similar setup for how we work with medplum. Is this possible?\
2\. Are there more documentations/examples on best practices for using access policies? I have read the documentation on the website but just wondering if there are any deeper discussions\
\
\
\
ute0\
\
04/22/2025, 11:01 AM\
\
I've been working on creating bots for my self-hosted Medplum backned, and I would like to be able to access some of my non-Medplum resources. Is there a programmatic way to add say "s3:GetObject" permissions for my Medplum bots? I can do this manually in the AWS console, but that will become cumbersome to manage.\
\
o\
\
orestis\_55600\
\
04/29/2025, 7:04 AM\
\
Hi all! We currently have our own custom tables in a self-hosted AWS postgresql. For reference we're building a home exercise platform (where a lot of the tables don't fit in any FHIR schemas). We'd love to move to medplum and have that be our source of truth DB, which our frontend will query from. For that, we'd need to create some custom tables in addition to the template ones, and also need to extend some fields on the template tables.\
\
Any advice on doing any of the above?\
\
Am I trying to use medplum for something it wasn't intended for? If so, what would be the ideal setup?\
\
Thank you tons!!\
\
i\
\
Ian Plunkett\
\
04/29/2025, 12:21 PM\
\
Hi Orestis, we would generally recommend that you keep Medplum as a source of truth for your FHIR data. If you have data that truly can't be modeled as FHIR, we would recommend you keep that data in a separate store. If you heavily modify the data store backing your Medplum instance, you might have a hard time upgrading (for bug fixes, vulnerabilities, enhancements) in the future.\
\
o\
\
orestis\_55600\
\
04/29/2025, 1:12 PM\
\
Gotcha. Could I double click on this for a sec:\
\
We have:\
**Table A** with columns:\
\- patient id\
\- email\
\- favorite ice cream flavor foreign key\
**Table B** with columns:\
\- ice cream flavor id\
\- flavor name\
\
How would you suggest I proceed?\
Three options for you (feel free to suggest a 4th!):\
\
**1\. all in medplum**\
Table A: FHIR Patient (extended) template in Medplum\
Table B: brand new schema (non-standard) in Medplum\
Query "what's patient's 1 favorite ice cream flavor name?": I just query Medplum\
\
**2\. one in Medplum other in RDS-AWS**\
Table A: FHIR Patient (extended) template in Medplum\
Table B: RDS-AWS\
Query "what's patient's 1 favorite ice cream flavor name?": I query both AWS-RDS and Medplum and then join\
\
**3\. source of truth in RDS-AWS with synced sub-duplicate in Medplum**\
Table A: FHIR Patient (extended) template in Medplum; same in RDS-AWS\
Table B: RDS-AWS\
Query "what's patient's 1 favorite ice cream flavor name?": I just query RDS-AWS\
\
**@Ian Plunkett** what's your suggestion here?\
\
@Orestis you could actually model that\
\
i\
\
Ian Plunkett\
\
04/29/2025, 2:29 PM\
\
**@orestis\_55600** you could actually model that in FHIR as an Questionnaire/QuestionnaireResponse/Observation\
\
o\
\
- 2\
- 5\
\
i\
\
Ian Plunkett\
\
04/29/2025, 2:30 PM\
\
Copy code\
\
```\
{\
"resourceType": "Observation",\
"status": "final",\
"category": [\
{\
"coding": [\
{\
"system": "http://terminology.hl7.org/CodeSystem/observation-category",\
"code": "social-history",\
"display": "Social History"\
}\
],\
"text": "Social History"\
}\
],\
"code": {\
"coding": [\
{\
"system": "http://example.org/local-codes",\
"code": "ice-cream-preference",\
"display": "Favorite Ice Cream Flavor"\
}\
],\
"text": "Favorite Ice Cream Flavor"\
},\
"subject": {\
"reference": "Patient/123",\
"display": "Patient 1"\
},\
"effectiveDateTime": "2025-04-29T10:30:00Z",\
"valueString": "Chocolate Chip Cookie Dough"\
}\
```\
\
i\
\
Ian Plunkett\
\
04/29/2025, 2:30 PM\
\
Something like the above for the Observation resource\
\
Medplum IG Support / OperationDefinitions / Search Parameters\
\
\
\
joshua\_kelly\
\
05/06/2025, 11:37 AM\
\
I'm revisiting my open PR here [https://github.com/medplum/medplum/pull/5903](https://github.com/medplum/medplum/pull/5903 "")\
\
And just realized that the Bulk FHIR IG OperationDefinitions aren't loaded by the definitions module in server/src/fhir/operations/definitions - which totally makes sense, it only loads the base R4 profiles\
\
_But_ that means I can't use the\
\
```\
parseInputParameters\
```\
\
util\
\
Not really a big deal, since the existing $export handlers all manually handle the input parameters today anyways, I'll just do the same thing - but it leave me wondering about a world where Medplum supports OperationDefinitions from IGs. This seems like it would be easier than supporting SearchParameters from IGs, but it's a similar topic: Medplum's overall support for IGs.\
\
I'm wondering if there's any other thinking here\
\
- 1\
- 1\
\
Issue Configuring MEDPLUM\_BASE\_URL for medplum/medplum-app:latest on Cloud Run (Client-Side Error)\
\
l\
\
loesche\
\
05/06/2025, 7:13 PM\
\
I'm deploying the medplum/medplum-app:latest Docker image to Google Cloud Run and trying to configure the backend API URL using the MEDPLUM\_BASE\_URL environment variable. The image includes the standard docker-entrypoint.sh that uses sed to replace placeholders like \_\_MEDPLUM\_BASE\_URL\_\_ in the static assets.\
\
I've set MEDPLUM\_BASE\_URL= [https://fhir.precisionlongevity.io/](https://fhir.precisionlongevity.io/ "") in my Cloud Run service configuration. I've even added debug echo statements to a custom version of the entrypoint script (based on the public one), and my Cloud Run container logs confirm:\
\
MY\_DEBUG\_ENTRYPOINT: Initial MEDPLUM\_BASE\_URL from environment is \[ [https://fhir.precisionlongevity.io/](https://fhir.precisionlongevity.io/ "")\]\
\
MY\_DEBUG\_ENTRYPOINT: MEDPLUM\_BASE\_URL after default assignment is \[ [https://fhir.precisionlongevity.io/](https://fhir.precisionlongevity.io/ "")\]\
\
The entrypoint script appears to complete, and echo "Environment variable replacement complete." is logged before Nginx starts.\
\
Despite this, when I access the deployed medplum-app UI in my browser (after IAP authentication), the browser console shows the error: Error: Base URL must start with http or https.\
\
Even when I remove MEDPLUM\_BASE\_URL from my Cloud Run environment variables (which should cause the entrypoint script's default of [http://localhost:8103/](http://localhost:8103/ "") to be used for the sed replacement), I still get the exact same "Base URL must start with http or https" error.\
\
This leads me to believe that the \_\_MEDPLUM\_BASE\_URL\_\_ placeholder (and possibly others) might be missing from the static JavaScript assets within the current medplum/medplum-app:latest image, or there's another issue preventing the sed replacement from taking effect on the client-side bundle.\
\
Could you confirm if the \_\_MEDPLUM\_BASE\_URL\_\_ placeholder is expected to be in the JS assets of medplum/medplum-app:latest for the entrypoint script's sed replacement to work? Is there an alternative or recommended way to provide this runtime configuration for the Docker image on platforms like Cloud Run?\
\
Thanks for any insights!\
\
\
\
- 2\
- 15\
\
n\
\
noclip\
\
05/11/2025, 5:22 PM\
\
hi there is a way to prevent deletion of resources using the writeConstraint in an access policy?\
\
Hi there!\
\
a\
\
Ali\
\
05/13/2025, 2:23 PM\
\
Hi there!\
\
I'm new to Medplum and currently working on a use case where, as a super admin, I need to create multiple projects and switch between them. While I'm able to create multiple projects, I'm currently unable to switch between them.\
\
I also want to use the same email address across these different projects. Could you guide me on how to achieve this?\
\
Thanks!\
\
\
\
- 2\
- 1\
\
\
\
reshma\
\
06/08/2025, 12:51 PM\
\
Hello **@oscadev** \- possible to post this in **#1094022380659155005** ? Appreciate it!\
\
Hello. Apologies in advance if this is\
\
l\
\
lane\
\
06/23/2025, 7:55 AM\
\
Hello. Apologies in advance if this is just noise. I'm trying to delete an attachment with\
\
```\
medplum.delete(attachment.url)\
```\
\
but I repeatedly get 404 error - Not found. However, I can download the attachment just fine using the same url. The attachment is created in a self-hosted environment with the code below. As mentioned, I can download it but cannot delete it.\
\
\
Copy code\
\
```\
const options: CreateBinaryOptions = {\
contentType: 'application/json',\
filename: 'manifest.json',\
data: JSON.stringify(manifest, null, 0),\
};\
\
const attachment = await medplum.createAttachment(options);\
```\
\
\
\
- 2\
- 1\
\
Hello!\
\
e\
\
ElNiño121\
\
06/26/2025, 10:06 PM\
\
Hello!\
Medplum seems awesome. I work w Rhapsody/Mirth and looked at Medplum as a potential replacement. However, the more I look into this engine the more I see how limited it is compared to Mirth/Rhapsody. I'd mostly work with HL7v2(not FHIR) and I would need complex parsing, nested logic, DB Queries, routing, etc.\
Can someone correct me, are there those limitations or does Medplum have all those capabilities as well?\
\
\
\
- 2\
- 1\
\
Hello everyone, is there a way to change\
\
j\
\
Joss\
\
07/04/2025, 1:37 PM\
\
Hello everyone, is there a way to change a users email whilst using medplum authentication?\
\
\
\
- 2\
- 1\
\
\
\
Kai\
\
07/05/2025, 12:38 PM\
\
I'm part of the Sapientia Health team working on a self-hosted Medplum and Foomedical setup for a diagnosis and metadata platform called > (whitepaper: [https://tinyurl.com/cusp-whitepaper](https://tinyurl.com/cusp-whitepaper "")). Running local PostgreSQL and Redis on Linux. Looking to connect with anyone building similar tools or thinking about diagnostic reasoning systems. Feel free to DM.\
\
\
\
joshua\_kelly\
\
07/08/2025, 10:19 AM\
\
I am **so, so, so** happy to see custom FHIR Operations launch - will be doing some experimental feature dev immediately\
\
[https://www.medplum.com/docs/bots/custom-fhir-operations](/content/docs/bots/custom-fhir-operations ""/index.html)\
\
\
\
reshma\
\
07/08/2025, 10:38 AM\
\
Good eyes **@joshua\_kelly** \- we didn’t even put up the blog post yet!\
\
\
\
joshua\_kelly\
\
07/08/2025, 10:38 AM\
\
I review all of the commits whenever I do an upgrade 🙂\
\
j\
\
jasonmalobicky\
\
07/09/2025, 8:12 PM\
\
Throwing this into dev since the PR I am testing against has not been merged ( [https://github.com/medplum/medplum/pull/6943](https://github.com/medplum/medplum/pull/6943 ""))\
\
I have been trying to test deployment of a local Medplum (server and app) in kubernetes (using microk8s). I have been using MetalLB to provide a LoadBalancer type. I have set the following vars such as those in this PR ( [https://github.com/medplum/medplum/blob/ianplunkett/local-k8s/charts/values-local.yaml](https://github.com/medplum/medplum/blob/ianplunkett/local-k8s/charts/values-local.yaml ""))\
\
Copy code\
\
```\
- name: MEDPLUM_PORT\
value: "8103"\
- name: MEDPLUM_BASE_URL\
value: http://localhost:8103/\
- name: MEDPLUM_APP_BASE_URL\
value: http://localhost:3000/\
- name: MEDPLUM_STORAGE_BASE_URL\
value: http://localhost:8103/storage/\
```\
\
The healthcheck functions as expected\
\
```\
{"ok":true,"version":"4.3.3-de44a5d93","platform":"linux","runtime":"v20.19.3","postgres":true,"redis":true}\
```\
\
when hitting from the local kubernetes host\
\
```\
curl -vv http://10.103.173.160:8103/healthcheck\
```\
\
or my laptop\
\
```\
curl -v http://10.103.173.160:8103/healthcheck\
```\
\
I also deployed the medplum-app setting the env\
\
Copy code\
\
```\
- name: MEDPLUM_BASE_URL\
value: http://localhost:8103/\
```\
\
I can get the UI to load from my laptop, but trying to login as the\
\
```\
admin@example.com\
```\
\
or trying to register a new project, gives an error\
\
```\
Cannot read properties of undefined (reading 'digest')\
```\
\
. There are no browser console errors, or errors in either the server or app containers.\
\
If i change the vars from\
\
```\
localhost\
```\
\
to use the IP that is servicing the IP related to the LoadBalancer\
\
```\
10.103.173.160\
```\
\
\- I get the same error\
\
```\
Cannot read properties of undefined (reading 'digest')\
```\
\
for either registering a new project or attempting to login with the default Super Admin account\
\
g\
\
Gonzalo\
\
07/15/2025, 5:35 AM\
\
Hello everyone\
Are there any plans to support custom search parameters in Medplum?\
For example, searching by a named extension in a base resource and by defining a\
\
```\
SearchParameter\
```\
\
on it and, presumably, by triggering some re-indexing process? This would be very useful for some edge-cases in an appointment/schedulling application we are building for a hospital, and in general of course. Thanks!\
\
\
\
vertex\
\
07/15/2025, 10:34 AM\
\
Can I sign up patients to a medplum app?\
\
i\
\
Ian Plunkett\
\
07/16/2025, 1:15 PM\
\
Hi **@jasonmalobicky** I'm going to try to get that PR ready within the next couple days. There are a few issues with it at the moment.\
\
Awesome, I will keep an eye out. I\
\
j\
\
jasonmalobicky\
\
07/16/2025, 1:19 PM\
\
Awesome, I will keep an eye out. I havent been back to testing it yet this week. Trying to decide if I even want to attach the app to the api\
\
i\
\
- 2\
- 2\
\
Hey @Medplum team: having a few glitches\
\
\
\
Kai\
\
07/21/2025, 3:05 PM\
\
Hey @Medplum team: having a few glitches running a local mailserver (Mailhog) over here at sapientiahealth.org. I noticed the medplum server uses Nodemailer 7.x while the TypeScript defs are for 6.x. Are you planning to pin Nodemailer back to 6.x or migrate the medplum server to ESM? Apologies if this is already documented somewhere I missed.\
\
\
\
- 2\
- 1\
\
j\
\
jasonmalobicky\
\
07/21/2025, 4:50 PM\
\
I did manage to get this all functioning on the private microk8s implementation with an internal CA. I ended up switching the k8s ingress controller to manage the termination and all the necessary CORS configuration for the app. Happy to share my notes if other are interested. (I have not yet implemented the fission component though)\
\
a\
\
AlecMcDivitt\
\
07/22/2025, 2:20 PM\
\
Hey Everyone!\
\
I’ve been exploring Enterprise FHIR Server Solutions and saw mention of a DB Sharding POC in the roadmap (I believe there is an active development branch for it). Does anyone have an ETA or ball park idea on when that functionality would be feature complete?\
\
i\
\
Ian Plunkett\
\
07/22/2025, 2:29 PM\
\
No ETA at the moment. It is a very high priority for the team though\
\
a\
\
AlecMcDivitt\
\
07/24/2025, 12:03 PM\
\
One more quick question. I have a local setup of Medplum, pulling the latest image in docker. I see in the GitHub repo info on the MCP routes (e.g. [http://localhost:8103/mcp/stream](http://localhost:8103/mcp/stream "")) , but in my local testing, and through the MCP Inspector, the medplum fhir API is returning 404s. Is this functionality available yet for self-hosted environments, or are there special config changes I need to make ?\
[https://cdn.discordapp.com/attachments/1113936455954346005/1397972466491719740/image.png?ex=6883aad1&is=68825951&hm=9934d92c5745bbe53c0ce7114f9d76e0fc81c1018763f87976bd9cb3aea7c997&](https://cdn.discordapp.com/attachments/1113936455954346005/1397972466491719740/image.png?ex=6883aad1&is=68825951&hm=9934d92c5745bbe53c0ce7114f9d76e0fc81c1018763f87976bd9cb3aea7c997& "")\
\
Anyone working on an implementation of\
\
\
\
joshua\_kelly\
\
07/28/2025, 3:31 PM\
\
Anyone working on an implementation of the $health-card-issue operation in SMART Health Cards & Links IG?\
\
I've got it implemented in a facade, and looking at making it a Custom FHIR Operation but it would be a little bit easier if it was officially supported due to necessary interaction with the JWKS (need to use ES256 key to sign), and given bigger picture direction I suspect it will become a (g)(10) requirement soon anyways (+ the IG just went STU1). Is there any work on this already? I couldn't find any on GH, but wanted to check. It's not particularly complicated\
\
\
\
\
\
- 3\
- 9\
\
a\
\
albert\_wong\
\
08/18/2025, 7:27 PM\
\
I'm under the impression that MCP is currently in beta and not yet available for self-hosting -- at leeast as of 7/10/25 -- but if you really need this you could also check out : [https://github.com/rkirkendall/medplum-mcp](https://github.com/rkirkendall/medplum-mcp "") or (if you haven't already) here: [https://github.com/medplum/medplum-mcp-server](https://github.com/medplum/medplum-mcp-server "")\
\
\
\
shooks\
\
08/20/2025, 12:54 PM\
\
Hi all, I'm investigating the use of an ambient scribe to capture consultation notes. has anyone had particular success with any particular vendor? Seems like many of the major players in the space don't have APIs available for easy integration with medplum.\
\
p\
\
Pravin\
\
08/21/2025, 4:00 AM\
\
AWS also added HealthScribe recently, so worth checking.\
\
k\
\
Kah\
\
08/21/2025, 3:20 PM\
\
Hey all, I'm setting up a dev instance of Medplum for my company on AWS. I'm using a fresh account and I've got the infra rolled out via the CDK as per the doc at [https://www.medplum.com/docs/self-hosting/install-on-aws](/content/docs/self-hosting/install-on-aws ""/index.html) and video at\
\
https://www.youtube.com/watch?v=\_YCYbgb63Y0&t=182s▾\
\
. However, the last step of npx _medplum aws deploy-app \[env name\]_ fails with "Stack not found". I normally deploy all our infrastructure with Terraform. I'm hoping someone can help point me in the right direction to get unblocked.\
\
Ultimately, getting something like foomedical loaded to run against this is the goal.\
\
t\
\
thomabig\
\
09/05/2025, 11:39 AM\
\
Hi everyone,\
I'm wondering what would be considered the best practice here :\
\
I want to set up integration tests on an api that we are building that helps us handle some specific use cases that could not be handled directly with a FRONT <> Medplum Relation.\
So it goes like FRONT <> API <> Medplum.\
\
Some use cases imply the medplumClient to use a superAdmin Client (for example modifying information in the User or modify info from server scoped pratitioner).\
\
What would you recommend :\
\- Use MedplumMock() in our tests ?\
\- Setup a real instance of Medplum using docker compose before running the tests and run the tests against a real environnement ?\
\
I'd love to hear what you think about this **@User** **@User** !\
Thanks\
\
a\
\
akshay\
\
09/06/2025, 11:16 AM\
\
when i am sigining in with uer email and password and sending request to cognito and i am getting access token id token etc and also when iam passing the access token to this medplum method MedplumClient.exchangeExternalAccessToken() const medplum = new MedplumClient({\
baseUrl: MEDPLUM\_BASE\_URL,\
clientId: MEDPLUM\_CLIENT\_ID,\
});\
\
// Exchange external token\
await medplum.exchangeExternalAccessToken(EXTERNAL\_ACCESS\_TOKEN);\
\
getting this error {\
"error": "invalid\_request",\
"error\_description": "Failed to verify code - check your identity provider configuration"\
} what could be solution of this ?\
\
\
\
donatobhr\
\
09/07/2025, 3:46 PM\
\
are you able to log the response you're getting from cognito?\
\
\
\
Atul\
\
09/07/2025, 5:48 PM\
\
[https://graphiql.medplum.com/](https://graphiql.medplum.com/ "")\
Hi, Anyone knows the login creds for this site?\
\
\
\
reshma\
\
09/07/2025, 5:57 PM\
\
Same account management system as Medplum app\
\
\
\
reshma\
\
09/07/2025, 5:58 PM\
\
You can use the same credentials\
\
\
\
Atul\
\
09/07/2025, 5:59 PM\
\
No luck -\
[https://cdn.discordapp.com/attachments/1113936455954346005/1414369630989975676/image.png?ex=69427f1d&is=69412d9d&hm=eb83b594c9a1dc46e8b24c010d739ca13af4a0d48ce1b0ab31c6755d385a3d4b&](https://cdn.discordapp.com/attachments/1113936455954346005/1414369630989975676/image.png?ex=69427f1d&is=69412d9d&hm=eb83b594c9a1dc46e8b24c010d739ca13af4a0d48ce1b0ab31c6755d385a3d4b& "")\
\
\
\
reshma\
\
09/13/2025, 5:55 PM\
\
sorry on hosted, this will be the same account that you use to sign into [https://app.medplum.com](https://app.medplum.com/ "") \- hopefully this is helpful, if you have more issues mention them in **#1094022380659155005** ! 🙏\
\
a\
\
AlecMcDivitt\
\
09/26/2025, 2:44 PM\
\
Hi everyone, I'm facing this very \*strange \* issue with subscriptions firing twice. I haven't seen any open issues or documentation on subscriptions firing twice, but essentially the flow goes like this:\
\
I have 1 Subscription with the Criteria **Patient**.\
This Subscription has a Rest-Hook to my Medplum Bot which will forward the FHIR resource.\
If I edit the Test Patient, and update any of the Demographics, I see a Subscription Event fires appropriately and triggers the Bot's Execution. Then a minute later another Subscription is triggered for that \*\*Patient \*\*Resource, once again Triggering the Bot Execution, causing a Duplicate Instance of the **Patient** Resource to be Forwarded.\
\
Has anyone faced a similar issue for their workflows, or is there something I'm missing? My Bot's programmatic logic is in no-way altering the FHIR resources, it is a simple Resource Forwarder.\
\
\
\
Flávio\
\
09/29/2025, 2:12 PM\
\
Hi folks, I've implemented a SMART Health Links generation and resolution open-source demo using Medplum as a backend (no need for another DB): [https://medplum-shl.vercel.app/](https://medplum-shl.vercel.app/ "") (open registration, register to test it)\
\
Code here: [https://github.com/vintasoftware/kill-the-clipboard/tree/main/demo/medplum-shl#readme](https://github.com/vintasoftware/kill-the-clipboard/tree/main/demo/medplum-shl#readme "")\
\
a\
\
AlecMcDivitt\
\
10/06/2025, 4:05 PM\
\
It looks like it was some corruption in the BullMQ / Redis Cache. I deleted the Queue Records, and implemented an eviction policy on the AMR instance. This seems to have remedied the issue.\
\
HI all - I am getting started building a\
\
m\
\
masrur88\
\
10/14/2025, 4:13 PM\
\
HI all - I am getting started building a patient app - so likely a noob question. We'll use the Medplum sample provider app as-is. While building out the scheduling flow on the patient app locally, i went to the local instance of the provider app to add some availability for a provider, I am getting a 400 from this endpoint\
http://localhost:8103/fhir/R4/Bot/$execute?identifier=http%3A%2F%2Fexample.com%7Cset-availability\
\
thoughts?\
\
\
\
\
\
\
\
- 4\
- 17\
\
m\
\
masrur88\
\
10/14/2025, 4:14 PM\
\
Copy code\
\
```\
{\
"resourceType": "OperationOutcome",\
"issue": [\
{\
"severity": "error",\
"code": "invalid",\
"details": {\
"text": "Must specify bot ID or identifier."\
}\
}\
],\
"extension": [\
{\
"url": "https://medplum.com/fhir/StructureDefinition/tracing",\
"extension": [\
{\
"url": "requestId",\
"valueId": "68b502bc-6b38-4ffc-9442-24b28b632c00"\
},\
{\
"url": "traceId",\
"valueId": "aa268392-1da6-4500-812c-163310da9fd6"\
}\
]\
}\
]\
}\
```\
\
\
\
Stephen Henderson\
\
10/16/2025, 2:16 PM\
\
Hi all, how do I access the super admin settings when running locally to enable bots?\
\
Also, any reason why setting up a\
\
\
\
Stephen Henderson\
\
10/16/2025, 4:41 PM\
\
Also, any reason why setting up a subscription on Medplum local to some localhost server wouldn't be working? Want to test e2e locally\
\
\
\
- 2\
- 3\
\
d\
\
DebajitBiswas\
\
10/27/2025, 7:58 AM\
\
Hi Guys, do you have a dedicated API documentation?\
\
\
\
reshma\
\
10/27/2025, 11:29 AM\
\
Like this: [https://www.medplum.com/docs](/content/docs ""/index.html) or this maybe? [https://www.medplum.com/docs/api/fhir](/content/docs/api/fhir ""/index.html)\
\
d\
\
DebajitBiswas\
\
10/27/2025, 11:59 AM\
\
Hi **@reshma** thanks for your quick reply.\
[https://www.medplum.com/docs/api/project-admin/client](/content/docs/api/project-admin/client ""/index.html)\
\
I am looking for this kind of page for all the end points.\
\
I know for fhir resources you have standard R4 endpoints.\
But i am looking for documentation on all available medplum specific resources (e.g - bot, clientApplication, subscription, project)\
Right now I am trying to fetch client Applications for a specific project. Can't find any documentation for that.\
\
Best Practices: Data Management\
\
\
\
Ni\
\
10/27/2025, 1:06 PM\
\
I'm considering building out our new version of provider & patient-facing app with Medplum. Curious about the best practice here -- does your app store all data in Medplum's datastore, or store PHI data in Medplum's datastore and non-PHI data (e.g., things unique to your own app) in a separate relational database? Thanks!\
\
\
\
d\
\
- 3\
- 8\
\
d\
\
DebajitBiswas\
\
10/30/2025, 9:45 AM\
\
Can I have a response please?\
\
Anyone exploring how RAG + Medplum MCP could support FHIR reasoning?\
\
d\
\
Daniel\
\
10/30/2025, 12:47 PM\
\
We are exploring a PoC where an AI assistant uses RAG to pull and reason over FHIR data in Medplum before generating responses.\
\
Curious if anyone has:\
1) Played with RAG on top of Medplum?\
2) Tried Medplum’s MCP (beta) and fit into this kind of workflow?\
3) Seen existing products or demos doing something similar?\
\
Thanks!\
\
\
\
\
\
- 3\
- 4\
\
i\
\
Ian Plunkett\
\
10/31/2025, 12:15 PM\
\
**@DebajitBiswas** , you should be able to use the R4 urls for the medplum specific resources as well\
\
Something like\
\
Copy code\
\
```\
curl 'https://api.medplum.com/fhir/R4/ClientApplication' -H "Content-Type: application/fhir+json" -H "Authorization: Bearer $TOKEN"\
```\
\
r\
\
RINKI\
\
11/04/2025, 3:37 AM\
\
Medplum SCIM User Creation Issue\
**Problem Statement:**\
When attempting to create a Practitioner user through the Medplum SCIM API, the following error occurs:\
\
{\
"schemas": \["urn:ietf:params:scim:api:messages:2.0:Error"\],\
"status": "400",\
"detail": "Missing defaultPatientAccessPolicy"\
}\
**Request Used:**\
curl --location 'https://api.medplum.com/scim/v2/Users' \\
--header 'Content-Type: application/json' \\
--header 'Authorization: ••••••' \\
--data-raw '{\
"schemas": \[\
"urn:ietf:params:scim:schemas:core:2.0:User",\
"urn:medplum:schemas:scim:2.0:User"\
\],\
"userType": "Practitioner",\
"name": {\
"givenName": "Alice",\
"familyName": "Smith"\
},\
"emails": \[\
{ "value": "alice.smith.test@example.com" }\
\],\
"urn:medplum:schemas:scim:2.0:User": {\
"accessPolicy": { "reference": "AccessPolicy/e5187428-2089-4089-9800-482000000000" },\
"defaultPatientAccessPolicy": { "reference": "AccessPolicy/DEFAULT-PATIENT" }\
}\
}'\
**Error Message:**\
Missing defaultPatientAccessPolicy\
**Suggested Fix for Discovery Post:**\
I’m trying to add a new Practitioner user via the Medplum SCIM API, but I’m consistently getting the error ‘Missing defaultPatientAccessPolicy’. Below is the exact request and response. Can someone please confirm if the defaultPatientAccessPolicy must be manually created in the Medplum portal, or if there is a default value available for testing environments?\
\
Also, please let me know the correct way to reference the AccessPolicy/DEFAULT-PATIENT resource while creating users through SCIM.\
\
d\
\
DebajitBiswas\
\
11/06/2025, 4:12 AM\
\
Hi **@Ian Plunkett** **@reshma**\
\
I got what I needed, all I had to do is add query string "\_compaetment="\
\
d\
\
DebajitBiswas\
\
11/06/2025, 4:14 AM\
\
I have another question, can we create subscription in default super admin project and make it work for resource changes in another project?\
\
(FYI,can I create a subscription in one project and it can execute bot from the default Super Admin project)\
\
s\
\
Spencer Smith\
\
11/06/2025, 11:16 AM\
\
Hey all! At Plumcon I think there was mention of potentially switching to terraform for AWS. Did that end up taking off, or is the current plan still to use CDK?\
\
i\
\
Ian Plunkett\
\
11/06/2025, 1:23 PM\
\
**@Spencer Smith** CDK is still the way to go on AWS. If you go down the terraform route and care to share, community input is definitely welcome!\
\
s\
\
Spencer Smith\
\
11/06/2025, 1:24 PM\
\
Thanks **@Ian Plunkett**. Getting ready for a prod release soon, so I think I'll stick with the CDK for now 🤣\
\
hello. i'm junior developer using\
\
\
\
CH3WA\
\
11/12/2025, 11:12 AM\
\
hello. i'm junior developer using medplum headlessly and I ran into some issues with configuring Agents today. I’d love to get your help understanding what’s going wrong. I'm trying to configure an Agent + Endpoint pair to receive HL7v2 MLLP messages and then forward them via HTTP to my backend (or a test webhook).\
-medplum api runs on docker\
-agent runs on windows\
-my backend runs on windows\
-endpoint is configured as hl7v2-mllp with address mllp://localhost:56000\
-agent is connected to endpoint, and the problem here is **targetUrl** (my backend: [http://localhost:3003](http://localhost:3003/ "")...) which doesn't seem to work (or i do not understand it properly)\
\
when I send an HL7 message from HAPI TestPanel, the Agent receives it correctly\
\
```\
[HL7:test channel] [Received -- ID: 1]: MSH|^~\&|...\
```\
\
but immediately after that I get:\
\
```\
{"level":"ERROR","msg":"Invalid reference"}\
```\
\
and the message is never forwarded to the targetUrl.\
\
can you please clarify:\
what is the correct way to configure an Agent to forward HL7v2 messages over HTTP instead of sending it to bot?\
thanks in advance!\
[https://cdn.discordapp.com/attachments/1113936455954346005/1438199779984281731/image.png?ex=697c2fac&is=697ade2c&hm=b00b317948526b5f9ad4a266d3058236c39e7aef412dc6382d86c1f1a7375786&](https://cdn.discordapp.com/attachments/1113936455954346005/1438199779984281731/image.png?ex=697c2fac&is=697ade2c&hm=b00b317948526b5f9ad4a266d3058236c39e7aef412dc6382d86c1f1a7375786& "")\
\
\
\
- 2\
- 4\
\
Hi there! we just signed up for a\
\
\
\
lazybaer\
\
11/14/2025, 12:03 PM\
\
Hi there! we just signed up for a production account and I was wonder if there was a best practice for a development flow. Ideally we'd like to go from a dev instances of medplum that's tied to our dev code environments to production. Just wondering what other folks are doing and what the suggested best practices were\
\
\
\
- 2\
- 2\
\
s\
\
SG\
\
11/20/2025, 12:11 PM\
\
\# Auth Issues - Need Help 🐛\
\
**Environment:** Next.js 15 + Custom Medplum server\
\
\## 1\. Password Reset - No Email Sent ❌\
\
Copy code\
\
```\
typescript\
POST /auth/resetpassword\
{ "email": "user@example.com", "projectId": "..." }\
→ Returns 200 OK but email never arrives\
```\
\
\- Registration emails work fine ✅\
\- User exists, checked spam\
\- Should 200 OK guarantee delivery?\
\
\## 2\. Google OAuth Fails ❌\
\
Copy code\
\
```\
typescript\
medplum.startGoogleLogin({\
googleClientId,\
googleCredential: response.credential,\
createUser: true,\
resourceType: 'Practitioner'\
});\
```\
\
\- Getting CORS errors/silent failures\
\- Google Client ID configured, redirects set\
\- Browser-side or server-side approach?\
\
**Working:** Registration ✅, Email verify ✅, PKCE login ✅\
\
Any tips? Thanks! 🙏\
\
i\
\
Ian Plunkett\
\
11/20/2025, 3:56 PM\
\
hi **@SG** , for your first question, the 200 OK does not guarantee delivery. Just to be sure are you passing in the\
\
```\
sendEmail: true,\
```\
\
field?\
\
For the second one, did you go through all the steps listed here? [https://www.medplum.com/docs/auth/google-auth](/content/docs/auth/google-auth ""/index.html) Are you using our react component library?\
\
🚨 Urgent Medplum Performance Help\
\
m\
\
mikeheme\
\
11/21/2025, 8:36 AM\
\
🚨 Urgent Medplum Performance Help\
\
We are running into significant performance degradation due to high-volume\
\
```\
_count\
```\
\
requests hitting our write cluster. We need a short-term fix to stabilize performance while we work on a long-term architecture change.\
\
**The Problem**\
\
Our application relies on inbox counts for\
\
```\
ServiceRequest\
```\
\
resources (a ServiceRequest can belong to multiple inboxes). We are polling periodically for these counts.\
\
\\* Impact: CPU spikes to 100% on the cluster, and all requests (not just counts) slow down/fail (Memory/IO are low/fine)\
\\* Load: We're generating Users X Inboxes X Polling Rate = hundreds of simultaneous\
\
```\
_count\
```\
\
requests\
\
**Technical Details & Questions**\
\
1\. Read Replica Utilization: Our cluster has one write and one underutilized read replica. All these\
\
```\
_count\
```\
\
requests are hitting the write replica\
\\* Q1: Is there a standard way to force these specific read-only requests (\
\
```\
_count\
```\
\
) to the read replica? Or read-request round-robin?\
\
2\. Medplum Version: We are on v2.1.4 (yes, we know 😬)\
\\* Q2: Can we expect a performance by prioritizing an upgrade?\
\
3\. Accuracy vs. Performance\
\\*\
\
```\
_total=accurate\
```\
\
is the culprit\
\\*\
\
```\
_total=estimate\
```\
\
is too inaccurate\
\\* Q3: Will the\
\
```\
accurateCountThreshold\
```\
\
setting help balance speed and accuracy for our specific issue?\
\
4\. GraphQL Aggregation:\
\\* Q4: Can we use a single GraphQL query to perform these count aggregations in one call, reducing the N-query problem to a 1-query problem?\
\
\> Count Request Example:\
\>\
\
```\
/fhir/R4/ServiceRequest?_count=0&_filter=authored%20pr%20false&_tag:not=archived,needs-review&_total=accurate&identifier=titan-intake::InboxStatus|registration\
```\
\
We appreciate any help!\
\
\
\
- 2\
- 4\
\
\
\
alexkg\
\
11/21/2025, 10:42 AM\
\
Hi, we're testing out using Canadian SNOMED on Medplum and we have a lot of "refsets" which are implicit valuesets ( [https://build.fhir.org/valueset.html#implicit](https://build.fhir.org/valueset.html#implicit ""))\
\
An implicit valueset looks like this: [https://simplifier.net/PS-CA-R1/SS-MedicationReasonCode-1-0-0/~json](https://simplifier.net/PS-CA-R1/SS-MedicationReasonCode-1-0-0/~json "")\
\
And needs to be expanded in order to get all the codes it contains with the $expand operation.\
\
For reference [https://browser.ihtsdotools.org/?perspective=full&conceptId1=92991000087108&edition=MAIN/SNOMEDCT-CA/2025-08-31&release=&languages=en,fr](https://browser.ihtsdotools.org/?perspective=full&conceptId1=92991000087108&edition=MAIN/SNOMEDCT-CA/2025-08-31&release=&languages=en,fr "") here's a refset which has a number of "members" (click on Members)\
\
I was trying to figure out if Medplum supports this kind of refset expansion. It seems to have valueset expansion, but was unclear about doing this implicit expansion which is only defined by the CodeSystem is-a relationship. Does Medplum support this?\
\
\
\
lazybaer\
\
11/21/2025, 1:06 PM\
\
hey there! I was wondering if some one could give me some advice. I'm new to medplum and have some limited knowledge of FHIR but we're looking to developer a patient "profile" that expands with fields/attributes that are beyond the US Core Patient profile. Should I be following this guide to implement those? [https://www.medplum.com/docs/fhir-datastore/profiles](/content/docs/fhir-datastore/profiles ""/index.html)\
I can layer my own set of fields on top of US Core Patient, right?\
sorry if this is a super n00b question!\
\
\
\
lazybaer\
\
11/24/2025, 1:16 PM\
\
Hi again. 🙂\
I'm trying to stand up the Medplum example Provider app with Clerk as my IdP. I'm assuming I have to do this [https://www.medplum.com/docs/auth/external-identity-providers](/content/docs/auth/external-identity-providers ""/index.html) in order to have the app flow through my IdP (clerk.com) as an OAuth client?\
\
d\
\
DebajitBiswas\
\
11/27/2025, 2:32 AM\
\
I need urgent help,we are using 4.3.11\
Everything works fine in DEV\
\
when we moved to a higher environment, we were seeing no event when we created new resources.\
The bot, subscription everything was identical in both environments.\
\
We checked the bot from ui, and it executed fine once we clocked the execute button.\
\
After investigation, we found out the async jobs were not completed. The first job was in "accepted" status.\
\
When checking the container app logs, we see error saying "Failed to acquire migration lock at runMigratiobs\
at process.processTicksAndRejections"\
\
We tried in another instance where there was no data as well. (Fresh) . And it was same.\
\
The azure managed redis cache is configured with EnterpriseCluster and we have the RedisJson module.(Adding this information if its related)\
\
Can you please guide us here? **@reshma**\
\
Terminologies and Coded Values \| Medplum\
\
m\
\
Marco A. Da Silva A.\
\
11/27/2025, 6:27 AM\
\
hi everybody!\
I have been reviewing the documentation regarding CodeSystem. In my case, I am implementing the FULL version of SNOMED CT. What would be the correct approach for the implementation?\
1 - Should I perform a bulk load of the codes into Medplum via the CodeSystem/$import operation? If so, is there a guide regarding the correct order and the specific fields that must be considered?\
2 - Should I federate another FHIR server, such as Snowstorm? The idea is that when a CodeSystem/$lookup query is executed in Medplum for certain pre-defined systems (like SNOMED CT), it would proxy the request to the Snowstorm server. With this option, the codes would not be stored in Medplum. (My understanding is that the $lookup operation currently queries the internal Medplum database).\
\
[https://www.medplum.com/docs/terminology](/content/docs/terminology ""/index.html) [https://www.medplum.com/docs/terminology/medplum-terminology-services](/content/docs/terminology/medplum-terminology-services ""/index.html) [https://www.medplum.com/docs/contributing/terminology-architecture](/content/docs/contributing/terminology-architecture ""/index.html)\
\
\
\
- 2\
- 1\
\
m\
\
Mirza\
\
12/02/2025, 6:43 AM\
\
Hi,\
\
We're developing a custom operation using a bot and have some questions you hopefully can help answer.\
\
1\. Does the operation definition validate parameters sent to an operation? E.g. our operation definition contains a parameter entry:\
\
Copy code\
\
```\
json\
"parameter": [\
{\
"use": "in",\
"name": "start",\
"min": 1,\
"max": "1",\
"type": "dateTime"\
}\
]\
```\
\
But we can pass anything when calling the operation and the bot will receive it. Is this intended behaviour?\
\
2\. If the bot throws an error (\
\
```\
throw new Error()\
```\
\
) when calling the operation, we receive an internal server error as response.\
\
Copy code\
\
```\
POST /Resource/$my-operation\
```\
\
Returns:\
\
Copy code\
\
```\
HTTP/1.1 500 Internal Server Error\
```\
\
With body:\
\
Copy code\
\
```\
{\
"msg": "Internal Server Error"\
}\
```\
\
Should we not expect to receive an\
\
```\
OperationOutcome\
```\
\
instead?\
\
Hi @Mirza , I am getting the same\
\
i\
\
Ian Plunkett\
\
12/09/2025, 7:01 PM\
\
Hi **@Mirza** , I am getting the same results myself. I've flagged this for the engineering team for review.\
\
- 1\
- 1\
\
Has anyone ever ran into an issue when\
\
\
\
nate06613\
\
12/09/2025, 10:48 PM\
\
Has anyone ever ran into an issue when inviting users, they finish the password set form it goes through fine, the user is in the system with a project membership and password hash but when they try to sign in you get an error "user not found" i have been beating my head against a wall trying to figure out why.\
\
\
\
- 2\
- 2\
\
\
\
dotslashsuperstar\
\
12/11/2025, 10:05 AM\
\
I just got medplum up and running and it looks pretty cool. if anyone is interested I made a docker file so foomedical can run as a doctor container that points to my self-hosted medplum server. if there's any interest I could write up how I did it or submit a pull request or something.\
\
p\
\
Paulius\
\
01/06/2026, 4:18 PM\
\
hey all, silly question: was trying to user existing UI in medplum to make an encounter but running into some error and don't understand why [https://provider.medplum.com/Patient/5ab3f80a-639b-4b46-ba03-87dec7592327/Encounter/new](https://provider.medplum.com/Patient/5ab3f80a-639b-4b46-ba03-87dec7592327/Encounter/new "") [https://cdn.discordapp.com/attachments/1113936455954346005/1458208033611186422/CleanShot\_2026-01-06\_at\_16.16.04.png?ex=697c774f&is=697b25cf&hm=50e317e2898893ba3e48e8a03a882ed177be2acde761239422b8551510fb4e13&](https://cdn.discordapp.com/attachments/1113936455954346005/1458208033611186422/CleanShot_2026-01-06_at_16.16.04.png?ex=697c774f&is=697b25cf&hm=50e317e2898893ba3e48e8a03a882ed177be2acde761239422b8551510fb4e13& "")\
\
n\
\
Neel Patel\
\
01/07/2026, 3:33 AM\
\
Hey all does anyone knows that medplum supports SAML authentication. There is nothing about it on their docs\
\
\
\
Wcombs\
\
01/07/2026, 12:13 PM\
\
Is it expecting you to select care template?\
[https://cdn.discordapp.com/attachments/1113936455954346005/1458508906971267166/image.png?ex=697c3e05&is=697aec85&hm=5e278c40b44962dc664158dfc850d61dfc513be1d1112793e0a8069f44e1dc1d&](https://cdn.discordapp.com/attachments/1113936455954346005/1458508906971267166/image.png?ex=697c3e05&is=697aec85&hm=5e278c40b44962dc664158dfc850d61dfc513be1d1112793e0a8069f44e1dc1d& "")\
\
\
\
reshma\
\
01/07/2026, 3:51 PM\
\
Possible to post in **#1094022380659155005** ? 🙏\
\
hey everyone. We're building some bots\
\
\
\
lazybaer\
\
01/08/2026, 10:53 AM\
\
hey everyone. We're building some bots for certain tasks in medplum and I was wondering what the best/current practice is for managing that code. I'd love to keep our bot code in our git repos and then deploy via our CICD if that was at all possible. What's everyone else doing?\
\
\
\
k\
\
- 3\
- 6\
\
Similar-ish question to this one^ We'd\
\
j\
\
John@UnifyMentalHealth\
\
01/08/2026, 12:34 PM\
\
Similar-ish question to this one^ We'd like to to have a monorepo for our medplum backend and our custom frontend while being able to customize the backend code but still recieve updates as medplum puts them out. Any ideas?\
\
\
\
- 2\
- 1\
\
Hi all, As far as I can tell Medplum\
\
j\
\
Justin Ellis\
\
01/15/2026, 12:01 PM\
\
Hi all, As far as I can tell Medplum does not implement a $lastn operator on Observations. We have a lot of observations with very different measurement frequencies and are looking for a way to essentially just return the "lastest" observations for all codes but that can be near impossible to do with a single query using sort. At the moment I've beed doing a batch query with something like Observation?\_count=1,\_code=\_sort=\_lastUpdated which works but seems inefficient.\
\
I was just wondering if anyone had a decent solution to this problem\
\
\
\
- 2\
- 1\
\
Hi team, our health care org are trying\
\
d\
\
Div\
\
01/21/2026, 11:57 PM\
\
Hi team, our health care org are trying to evaluate medplum vendor for our case of booking/fetching appointments for about ~500 of our physical therapists(PTs). We are currently using "Healthie" for our usecase, and we are looking at migrating to new vendor.\
I was taking a look at your doc, and noticed that scheduling is not supported OOB, and we would need to integrate some sort of connector using this: [https://github.com/medplum/medplum-scheduling-demo/tree/main](https://github.com/medplum/medplum-scheduling-demo/tree/main ""). Few questions that I have\
\
1\. Is there a way to register common appointment types(say 15 min follow-up, 30 min evaluation etc), that can be used across our PTs(providers)\
2\. On our mobile app, we want to basically fetch all available slots for a particular appointment across our registered providers, is there a way to do that? Is there doc on API support to do the same?\
3\. How do we integrate scheduling to our medplum project, in the sense, be able to schedule slots from the main medplum project?\
4\. Right now, I was trying to setup medplum scheduling demo app locally from [https://github.com/medplum/medplum-scheduling-demo/tree/main](https://github.com/medplum/medplum-scheduling-demo/tree/main "") , and I keep seeing this error "Bots not enabled". I have already done "Upload Core ValueSets", but "Upload Example Bots" is disabled, and "Upload Example Data" throws same error of "Bots not enabled"\
\
**@reshma** can u help here?\
[https://cdn.discordapp.com/attachments/1113936455954346005/1463759331353956393/image.png?ex=6972ff9b&is=6971ae1b&hm=2bb07b85713c258de254ad7ec9e4391d7a667e88ffb9785b303f040add5d116d&](https://cdn.discordapp.com/attachments/1113936455954346005/1463759331353956393/image.png?ex=6972ff9b&is=6971ae1b&hm=2bb07b85713c258de254ad7ec9e4391d7a667e88ffb9785b303f040add5d116d& "") [https://cdn.discordapp.com/attachments/1113936455954346005/1463759331739701358/image.png?ex=6972ff9c&is=6971ae1c&hm=7e604e57f8c8b3c1dddadf771f0ed5c828f24d1f4450d0e552a3cf00af06cca0&](https://cdn.discordapp.com/attachments/1113936455954346005/1463759331739701358/image.png?ex=6972ff9c&is=6971ae1c&hm=7e604e57f8c8b3c1dddadf771f0ed5c828f24d1f4450d0e552a3cf00af06cca0& "") [https://cdn.discordapp.com/attachments/1113936455954346005/1463759332159262740/image.png?ex=6972ff9c&is=6971ae1c&hm=122466a05964215b306cc4aa162c1516b01edff37bbc3a98e5c76edf402bc81f&](https://cdn.discordapp.com/attachments/1113936455954346005/1463759332159262740/image.png?ex=6972ff9c&is=6971ae1c&hm=122466a05964215b306cc4aa162c1516b01edff37bbc3a98e5c76edf402bc81f& "") [https://cdn.discordapp.com/attachments/1113936455954346005/1463759332507254998/image.png?ex=6972ff9c&is=6971ae1c&hm=e82d4e184f553302eda4b8d202bccdfba2642ad26e50f96715be0e0f32bd73fd&](https://cdn.discordapp.com/attachments/1113936455954346005/1463759332507254998/image.png?ex=6972ff9c&is=6971ae1c&hm=e82d4e184f553302eda4b8d202bccdfba2642ad26e50f96715be0e0f32bd73fd& "")\
\
\
\
- 2\
- 5\
\
Is there a benefit to switching from MUI\
\
j\
\
John@UnifyMentalHealth\
\
01/23/2026, 5:38 PM\
\
Is there a benefit to switching from MUI/Minimals to the MedPlum react component library? I'm sure it has its benefits, I'm just trying to sus out what they are\
\
\
\
- 2\
- 5\
\
\
\
!Perfect\
\
02/02/2026, 4:31 PM\
\
Hi everyone!\
Who have rich experience in After effects?\
If you are fit for it, I need your help.\
Please DM me.\
Thank you.\
\
\
\
!Perfect\
\
02/11/2026, 4:17 PM\
\
👋 Hi!\
\
I’m Brandon B., a Full Stack Software Engineer with 8+ years of experience building AI, Web, Mobile, and Blockchain applications. I’ve successfully delivered end-to-end projects for startups and enterprises — focusing on performance, scalability, and clean user experience.\
\
🚀 I’m now open to collaborating on innovative projects where I can contribute my expertise to help your business grow.\
\
🎯 Portfolio: [https://portfolio-ai-gz0r.onrender.com](https://portfolio-ai-gz0r.onrender.com/ "")\
📄 Resume: Available on the portfolio site\
\
📞 WhatsApp: +1 (713) 551-3423\
💬 Telegram: @brandonbaker0111\
📧 Email: brandonleebaker0122@gmail.com\
\
I’d love to discuss how I can support your next project. Feel free to reach out — I’ll respond quickly.\
\
Best regards,\
Brandon B.\
\
h\
\
Habbar MD, INTERN. MED, MPH\
\
02/15/2026, 4:55 PM\
\
@everyone\
[https://cdn.discordapp.com/attachments/1113936455954346005/1472713013160317089/4c93a637.jpg?ex=69939260&is=699240e0&hm=ae85d7b4f1e025cadb2d8bb80c507a76b2c609a579a02569ba0d51d48ba03053&](https://cdn.discordapp.com/attachments/1113936455954346005/1472713013160317089/4c93a637.jpg?ex=69939260&is=699240e0&hm=ae85d7b4f1e025cadb2d8bb80c507a76b2c609a579a02569ba0d51d48ba03053& "") [https://cdn.discordapp.com/attachments/1113936455954346005/1472713013806104771/10c7546c.jpg?ex=69939260&is=699240e0&hm=a63d60d2c3ec97c6748d9ba8c1bc1d82bd4e5fc597d3e1b6aff791f63005be5b&](https://cdn.discordapp.com/attachments/1113936455954346005/1472713013806104771/10c7546c.jpg?ex=69939260&is=699240e0&hm=a63d60d2c3ec97c6748d9ba8c1bc1d82bd4e5fc597d3e1b6aff791f63005be5b& "") [https://cdn.discordapp.com/attachments/1113936455954346005/1472713014535782603/c81353e1.jpg?ex=69939260&is=699240e0&hm=79a53892c7e8c8b058efa6c01c460919a77cd7be85f362cceefc7d254ba33e24&](https://cdn.discordapp.com/attachments/1113936455954346005/1472713014535782603/c81353e1.jpg?ex=69939260&is=699240e0&hm=79a53892c7e8c8b058efa6c01c460919a77cd7be85f362cceefc7d254ba33e24& "") [https://cdn.discordapp.com/attachments/1113936455954346005/1472713014816804926/81599116.jpg?ex=69939260&is=699240e0&hm=39c475657775510f9c63f47f771761c03d1787395c90e9b4a1d8eea62c1498fe&](https://cdn.discordapp.com/attachments/1113936455954346005/1472713014816804926/81599116.jpg?ex=69939260&is=699240e0&hm=39c475657775510f9c63f47f771761c03d1787395c90e9b4a1d8eea62c1498fe& "")\
\
s\
\
Spencer Smith\
\
02/20/2026, 6:51 PM\
\
We have three envs in Medplum and I'm always double checking myself when testing something to make sure I'm not in a higher env. To make it easier on myself, I made a script for Tampermonkey to display a banner at the top based on which account I'm in.\
\
I uploaded it to a gist in case anyone else might find it helpful. [https://gist.github.com/spencersmith/693a60aa80d339d3cb79918c07a6e390](https://gist.github.com/spencersmith/693a60aa80d339d3cb79918c07a6e390 "") Just update the name of your Medplum account and change the text/colors to whatever you want.\
\
WARNING: I have very little knowledge around scripting for tampermonkey, and this was made with Claude. Use at your own risk.\
[https://cdn.discordapp.com/attachments/1113936455954346005/1474553974169407639/Screenshot\_2026-02-20\_at\_18.41.33.png?ex=699a44e7&is=6998f367&hm=fb65f4d679a286e3a737e3a1900f7ee354e0311591204d2472bd3c3f481501a3&](https://cdn.discordapp.com/attachments/1113936455954346005/1474553974169407639/Screenshot_2026-02-20_at_18.41.33.png?ex=699a44e7&is=6998f367&hm=fb65f4d679a286e3a737e3a1900f7ee354e0311591204d2472bd3c3f481501a3& "") [https://cdn.discordapp.com/attachments/1113936455954346005/1474553974509277497/Screenshot\_2026-02-20\_at\_18.41.44.png?ex=699a44e7&is=6998f367&hm=f5d8b3cf96c10648ce6eb62e06f76a7cec8611a927e60eb5bd451cc5a6f0a59c&](https://cdn.discordapp.com/attachments/1113936455954346005/1474553974509277497/Screenshot_2026-02-20_at_18.41.44.png?ex=699a44e7&is=6998f367&hm=f5d8b3cf96c10648ce6eb62e06f76a7cec8611a927e60eb5bd451cc5a6f0a59c& "") [https://cdn.discordapp.com/attachments/1113936455954346005/1474553974941024376/Screenshot\_2026-02-20\_at\_18.41.54.png?ex=699a44e7&is=6998f367&hm=c15ad1462cba33a46c9c207208ea96eab179244bbae6f3279db4b19f65e58e4c&](https://cdn.discordapp.com/attachments/1113936455954346005/1474553974941024376/Screenshot_2026-02-20_at_18.41.54.png?ex=699a44e7&is=6998f367&hm=c15ad1462cba33a46c9c207208ea96eab179244bbae6f3279db4b19f65e58e4c& "")\
\
d\
\
Dean Milanov\
\
03/06/2026, 8:41 AM\
\
Hello all,\
I'm hoping someone can help me with this.\
I've cloned the MedPlum provider ( [https://github.com/medplum/medplum-provider](https://github.com/medplum/medplum-provider "")) repo on my machine and when I do "npm install" I get the following error:\
\*npm warn Could not resolve dependency:\
npm warn peer @medplum/dosespot-core@"5.1.1" from @medplum/dosespot-react@5.1.1\
npm warn node\_modules/@medplum/dosespot-react\
npm warn dev @medplum/dosespot-react@"5.1.1" from the root project\
npm error code E404\
npm error 404 Not Found - GET [https://registry.npmjs.org/@medplum%2fdosespot-core](https://registry.npmjs.org/@medplum%2fdosespot-core "") \- Not found\
npm error 404\
npm error 404 The requested resource '@medplum/dosespot-core@5.1.1' could not be found or you do not have permission to access it.\
npm error 404\
npm error 404 Note that you can also install from a\
npm error 404 tarball, folder, http url, or git url.\*\
\
d\
\
Dean Milanov\
\
03/06/2026, 8:46 AM\
\
I read in the documentation ( [https://www.medplum.com/docs/integration/dosespot](/content/docs/integration/dosespot ""/index.html) ) that "Approval from DoseSpot is required for access.", but I don't plan on using that functionality. I just want to get it to run locally.\
I tried installing the package locally from a tarball, but that didn't work. Neither did just unzipping the tarball in my node\_modules.\
\
\
\
Fingoltin\
\
03/06/2026, 10:21 AM\
\
looks like the newer version is private\
\
\
\
Fingoltin\
\
03/06/2026, 10:26 AM\
\
a bit unfortunate, I guess you could try the 4.x version or strip all the dosespot stuff out of the provider, probably only takes a few minutes\
\
\
\
Fingoltin\
\
03/06/2026, 10:27 AM\
\
fwiw it also looks like they update the examples in the main repo more frequently than the individual repositories\
\
\
\
nathan-watkins-unityai\
\
03/06/2026, 10:49 AM\
\
[https://github.com/medplum/medplum/pull/8578](https://github.com/medplum/medplum/pull/8578 "")\
Looks like\
\
```\
@medplum/dosespot-core\
```\
\
was added to the publish script a few days ago, there just hasn't been a release since.\
cc: **@Fingoltin**\
\
\
\
Fingoltin\
\
03/06/2026, 11:49 AM\
\
there ya go\
\
d\
\
DB1000\
\
03/30/2026, 12:00 PM\
\
hey i had a question\
\
d\
\
DB1000\
\
03/30/2026, 12:01 PM\
\
Is there anyway to integrate twilio sms and calls and/or five9\
\
\
\
reshma\
\
03/30/2026, 12:05 PM\
\
Take a look at examples/medplum-demo-bots/src/twilio/\
\
\
\
reshma\
\
03/30/2026, 12:06 PM\
\
[https://github.com/medplum/medplum/tree/main/examples/medplum-demo-bots/src/twilio](https://github.com/medplum/medplum/tree/main/examples/medplum-demo-bots/src/twilio "") sorry did not paste the full URL\
\
\
\
Fingoltin\
\
04/03/2026, 10:05 AM\
\
is there a way to do a custom element input in a resource form? or what would be the recommendation for that\
\
d\
\
DB1000\
\
04/06/2026, 7:43 AM\
\
has anyone integrated five9 or dailpad with medplum\
\
\
\
Ni\
\
04/22/2026, 7:21 PM\
\
Hi all! I'm Ni, co-founder of Origin Therapy. We're hiring engineers in SF, and we use Medplum. If you're interested, here is the JD: [https://originspeech.notion.site/founding-engineer](https://originspeech.notion.site/founding-engineer ""). Thanks!\
\
n\
\
NickCat\
\
04/27/2026, 11:26 AM\
\
Hey everyone! I wanted to share a project I’m working on: **pymedplum**, an unofficial Python SDK for Medplum.\
\
GitHub: [https://github.com/kinsteadhealth/pymedplum](https://github.com/kinsteadhealth/pymedplum "")\
\
I built this while working on a production fastapi/django system using Medplum, mostly to make the Python experience feel more natural and safer while still giving full access to the FHIR API, including all the Medplum extras like bots as projects.\
\
A few highlights:\
• **Full async and sync python** support. FastAPI/TaskIQ/Django/Celery/Lambda/etc all work out of the box without messing with asyncio.\
• **Typed Medplum FHIR models (Pydantic v2)** derived from Medplum’s published TypeScript FHIR types\
• Full **IDE autocomplete, type-check-time validation, and runtime validation** against the same schemas\
• **Auth + refresh handling** with sane retry behavior\
• **Real-world search support** (\_include, \_revinclude, chaining, paging)\
• **PHI-access audit hook** designed for HIPAA audit logging workflows\
• Optional **MCP server** for AI/agent workflows with local runtime schema discovery\
\
Also, this is a big hiring moment for us at Kinstead. We’re actively building in the Medplum / FHIR / Python space and hiring engineers in NYC to work on real clinical workflows and infrastructure.\
\
If you’re interested in working on real clinical workflows and infrastructure, here are the roles:\
[https://jobs.ashbyhq.com/kinsteadhealth?departmentId=7c11ac7b-f24f-4c71-80d1-c7a32ffca706](https://jobs.ashbyhq.com/kinsteadhealth?departmentId=7c11ac7b-f24f-4c71-80d1-c7a32ffca706 "")\
\
The library is Apache-2.0 licensed and feedback is very welcome. And thanks to the Medplum team for having such a great project to build on top of.\
\
\
\
Jeffry Looijestijn\
\
05/05/2026, 7:51 AM\
\
Are there any dev's from the Netherlands working in or with MedPlum? With a little help from 'ahum' some coding tool I managed to get the nl-core profiles loaded in MedPlum and connected to the Terminologie Server (NTS). I work in mental health care, where most of the EHR-systems are fundamentally different from hospitals. Despite the fact that they of course should communicate etc. Just curious, and I really appreciate the effort you put in MedPlum. Keep up the good work!\
\
I am new to using medplum. We are self\
\
z\
\
Zeeshan\
\
05/06/2026, 12:30 PM\
\
I am new to using medplum. We are self hosting it but while trying to insert a lot of records at once, i am running into too many 409 serialization failures. Did anyone else run into this? Is there a way to soften the postgres transaction\_isolation\_level as it appears it's been forced through the app in the code.\
\
\
\
- 2\
- 2\
\
j\
\
John@UnifyMentalHealth\
\
05/14/2026, 12:13 PM\
\
Does anyone know of any AI-ingestable Medplum documentation that you're using alongside development? My team has been sending models links to their website, but the models seem to constantly overlook important resources.\
\
n\
\
NickCat\
\
05/18/2026, 4:55 PM\
\
Clone the open source medplum repo and just tell your model to search through that repo when it needs a reference. All of the docs are in the repo as markdown, as are the provider app and main react apps. Also, if you're confused as to how something works, your LLM can scrub through the core app and see how the requests are mutating in app code and what's going to/from postgres on Medplum's side.\
\
The only thing that isn't open source is the source code to some of the integration bots. In those cases you need to point your LLM at the markdown docs for the bots.\
\
Hey everyone! We're actively\
\
\
\
WonderPandaDev\
\
05/21/2026, 12:22 PM\
\
Hey everyone! We're actively investigating Medplum right now and I'm struggling a bit with trying to understand throughput for bulk insertion. I've got a synthetic dataset of full patient histories for ~4000 patients with ~1000 observations across multiple encoutners per patient.\
\
I'm trying everything I can to make importing this fast. Following along with [https://www.medplum.com/docs/fhir-datastore/fhir-batch-requests](/content/docs/fhir-datastore/fhir-batch-requests ""/index.html) I'm using batch mode as opposed to transaction mode and audit logs and audit events are turned off.\
\
Despite that its looking like its going to take around 70-90 minutes to insert this dataset on my very beefy dev machine. Is this a realistic expectation or is there anything I can do to improve this?\
\
\
\
- 2\
- 2\
\
\
\
WonderPandaDev\
\
06/01/2026, 6:06 PM\
\
Apologies if this isn't the right place to ask but we're hoping to get this merged for better audit tracking for agent based workflows [https://github.com/medplum/medplum/pull/9337](https://github.com/medplum/medplum/pull/9337 "")\
\
\
\
snar\
\
07/10/2026, 1:38 PM\
\
heyall threw together a quick skills for your AI agent swarms. [https://github.com/snarflakes/medplumskills](https://github.com/snarflakes/medplumskills "")\
\
p\
\
Paul Simpson\
\
07/17/2026, 4:33 PM\
\
Hello! I was wondering if I could connect with a Medplum FDE who has experience with care management workflows? Getting close to finalizing a contract for Medplum hosted and I would like to better understand our options.\
\
(I wasn't sure where to post this so I'll post to the support channel as well in case this one isn't monitored as closely.)