opensrp / fhircore

FHIR Core / OpenSRP 2 is a Kotlin application for delivering offline-capable, mobile-first healthcare project implementations from local community to national and international scale using FHIR and WHO Smart Guidelines on Android.
https://smartregister.org
Apache License 2.0
54 stars 41 forks source link

Refactor app configurations sync to use download managers #3126

Open ndegwamartin opened 7 months ago

ndegwamartin commented 7 months ago

Describe the feature request. We need to refactor the current configuration sync to move from custom server side calls to using the FHIR SDK DownloadManagers to fetch configurations. The current approach requires a custom engine library implementation that duplicates this existing functionality.

Additional context If available add any other context or screenshots about the feature here.

Acceptance criteria Configuration sync should function correctly. This can be tested by entering the app id and logging in to the app with the ability to use config resources e.g. Launching Questionnaires and performing a success saving (confirms data extraction works correctly since StructureMaps were successfully synced)

Area path A list of ordered steps in the app on usage of the feature to support anyone testing it e.g. Code reviewer, QA e.g.

  1. Launch the app
  2. Enter APP ID (should proceed to Login Page)
  3. Enter Credentials and login
  4. Wait for sync to complete
  5. Add a client e.g. Patient or Household. Form save should complete successfully

Implementation plan (For Engineers) The plan for implementing the solution e.g. via a description or a check list for the various ordered tasks that will need to be completed. i.e. Describe how you intend to solve the problem

f-odhiambo commented 3 months ago

Update July 1st

  1. Still WIP and check out https://github.com/opensrp/fhircore/pull/3249 cc @ndegwamartin @ellykits
f-odhiambo commented 3 months ago

Update July 1st 2024

  1. Still marked as a TODO
f-odhiambo commented 1 month ago

This is to resume on the week of Aug 5th cc @ellykits @dubdabasoduba

ndegwamartin commented 1 month ago

This is currently blocked by this FHIR SDK Discussion here - https://github.com/google/android-fhir/discussions/2625

ageryck commented 1 month ago

to be added back to the current sprint when work resumes on this ticket