Whenever I add a fhir dependency in my pom.xml, my UI fails and returns to the default “OpenMRS Platform Running!” screen, the screen shown whenever there is no legacy ui installed like the photo below (not mine).
I have tried using jar files and setting it in the classpath, but it shows me ClassNotFoundException when the fhir code is ran. I’m still trying to figure that one out too.
Does anyone have any idea why this is happening? The logs don’t show any clue toward the problem.
I’m sorry for replying late as I focused on working on something else in the past few months. But sir @dkayiwa, I have a UI module, and what I use is the code from the legacyui module to create my own module with customized interface. The login page shows correctly, until I put the fhir maven dependencies. I need the hapi-fhir maven dependency in order to get and post patients to a fhir server.
Sir @dkayiwa I have asked permission to my superiors if I may share the code here, but they still have not replied. I tested it on the original legacy-ui code, and I have replicated it there. Without the dependencies the UI works, but upon injecting the dependencies, the UI is gone. You can try it locally using the Legacy-UI module.
Sadly, I have not resolved this sir. I tried excluding some similar compile dependencies of openmrs with fhir, thinking that it might have been clashing with each other, but it didn’t work. And that prompted me to ask for help here.