Hello,
I am wondering what is your recommendation to handle synchronous business logic scripts.
I know we can do a lot with medplum bots but here are some use case where I would need to have a synchronous answer to my api call :
- Mobile application needs to upload a file to S3 server and requests a SignedUrl to the API
- Mobile application sends a file to the API and API need to verify that the file has the expected format before creating the Observation and returning the ObservationId to the mobile application.
In such cases what would be your recommendation ?
What I have in mind at the moment is :
- Create an API that when requested, starts by checking the medplum token, and then applies the wanted business logic.
Let me know if you have other solutions in mind.
Thank you.