Hi
@rahul1 thanks a lot for getting back to me.
So we’re trying to build a FHIR facade that will act as a translation layer to go against a proprietary database. Since the self-hosted AWS CDK (
https://www.medplum.com/docs/self-hosting/install-on-aws#cdk-deploy) deploys everything in AWS automatically, it essentially leaves the questions of: where exactly do we go to augment the code or reroute it to implement our own logic? Furthermore, is it something we can write in, say, Express.js?
After some discussion with my team, my use of the word “override” may have been excessive, but is accurate to the sense that rather than implementing from an internal Medplum data structure, we want to reroute it for our own translation, all while still maintaining FHIR semantics.
Additionally, I only brought up the Patient GET route as a very simple example where we could first test it working at all, where we will then look into expanding our translation layer to the rest of the API.
If what I described is not possible, that is fine, but it would be great to know. And if you would like some more details or context, please let me know. Thanks again!