Hi team.
We start to develop a Spring Cloud based project which will implement HIS for one of our clients. So now we are trying to use HAPI FHIR for domain model, servlet and persistence layers.
My idea is to produce some microservices which will be common for whole microservice infrastructure. For example patients did not have any relation to other structures so it could be developed as a single microservice.
This requires the persistence layer to be more granular and should have a separate DAO for each FHIR resourceType. So my question is, how we can persist the Patient class directly without using some intermediate infrastructure.
Is there some kind of utilities classes that produces a POJO which can be persisted directly no mater the persistence layer technology which is used (for example SQL or NoSQL).
Thanks in advance.
Dimitar