You can read data from databases and transform it using this open-source tool, built with Apache Spark. It's called the toFHIR and also offers a user-friendly GUI like Apache NIFI if needed. You can find more details on the website. If you have a specific transformation in mind, I’d be happy to show you how to achieve it using the toFHIR.
Disclaimer: I am the lead developer of this tool.