The CHT Core Framework makes it faster to build responsive, offline-first digital health apps that equip health workers to provide better care in their communities. It is a central resource of the Community Health Toolkit.
Currently, the share-libs/validations code is directly querying the medic-client/reports_by_freetext view index. This index is going away eventually.
Describe the improvement you'd like
We should update this logic to just use the new cht-datasource api being added in https://github.com/medic/cht-core/issues/9586. Then, the future "under-the-hood" changes to the freetext indexes will be abstracted away from the shared-libs/validations code.
Describe the issue
Currently, the
share-libs/validations
code is directly querying themedic-client/reports_by_freetext
view index. This index is going away eventually.Describe the improvement you'd like
We should update this logic to just use the new cht-datasource api being added in https://github.com/medic/cht-core/issues/9586. Then, the future "under-the-hood" changes to the freetext indexes will be abstracted away from the
shared-libs/validations
code.