Skip to content

Configure a workqueue to be filtered based on jurisdiction #9577

@jpye-finch

Description

@jpye-finch

Description

Adds configured jurisdictions as a filter variable option:

eg. Ready for review

  • status=Declared
  • createdAtLocation=:my-administrative-area

eg. Notified from health

  • status=Declared
  • createdAtLocation=:my-administrative-area
  • updatedUserRole=HealthcareWorker

Tech Tasks

  • on workqueue configuration, allow specifying user('administrativeAreaId) as a search parameter. This should be similarly serialized as user('primaryOfficeId')
  • Implement support in search for expanding jurisdiction terms into arrays of location ids.
    • user('administrativeAreaId) -> ['a81bc81b-dead-4e5d-abff-90865d1e13b1', '4e5d-a81bc81b-dead-abff-90865d1e13b1'] is expanded on client.
    • If a jurisdiction translated to ['state-a', 'state-b'] for instance, then the query should be an OR query like state-a is in createdAtLocation OR state-b is in createdAtLocation

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

In Code Review

Relationships

None yet

Development

No branches or pull requests

Issue actions