android-fhir icon indicating copy to clipboard operation
android-fhir copied to clipboard

FhirEngine instance creation should be decoupled from Database instance

Open MJ1998 opened this issue 11 months ago • 1 comments

Describe the Issue I think there is a possibility of someone wanting to re-initialize FhirEngine instance while still maintaining the same database. Few reasons:-

  1. library enforced API changes in FhirEngineConfiguration. Application is forced to re-initialize the FhirEngine.
  2. Application wants to sync to a different server. Application wants to re-initialize here.

But above or any changes in the FhirEngineConfiguration API will most likely lead to backward incompatibility. We would need to do versioning to solve for this.

So that this does not become a breaking change in future, when FhirEngineConfiguration API is modified, we should decouple database instance from the FhirEngine instance creation.

Would you like to work on the issue?

MJ1998 avatar Mar 02 '24 20:03 MJ1998

@aditya-07 Discussion with @jingtang10 lead me to modify the issue. I think this is more urgent. PTAL.

MJ1998 avatar Mar 05 '24 11:03 MJ1998