Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add functions to fetch Assignment data using Rules on the Configs #2900

Closed
10 tasks done
dubdabasoduba opened this issue Dec 1, 2023 · 1 comment · Fixed by #2903
Closed
10 tasks done

Add functions to fetch Assignment data using Rules on the Configs #2900

dubdabasoduba opened this issue Dec 1, 2023 · 1 comment · Fixed by #2903
Assignees
Labels

Comments

@dubdabasoduba
Copy link
Member

dubdabasoduba commented Dec 1, 2023

Describe the feature request.

  • The OpenSRP app stores assignment data in the secure shared preferences. We would like to write some methods on the RulesFactory to allow the fetching of this assignment data via rules on the configs
  • Each assignment data point should be fetched separately

Acceptance criteria

  • Define methods that allow the fetching of the following assignment data
    • Practitioner Id
    • Practitioner Assigned CareTeam(s)
    • Practitioner Assigned Organization(s)
    • Practitioner Assigned Location(s)

Implementation plan (For Engineers)

  • Add service methods in the RulesEngineService to fetch the listed assignment data.

  • Check the writePractitionerDetailsToShredPref method for the keys used to save the data

    • Practitioner Id
    • Practitioner Assigned CareTeam(s)
    • Practitioner Assigned Organization(s)
    • Practitioner Assigned Location(s)
  • Add documentation

@ellykits
Copy link
Collaborator

ellykits commented Dec 1, 2023

@Raynafs You can access the SharedPreference instance from the injected ConfigurationRegistry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants