Your Organization: Medic + I-TECH + Lighthouse Trust
Organization Type: NGO
What Other Organizations Would Benefit From This Feature: MoH
Describe the Feature: As a healthcare worker I want to search for clients in the CHT using barcodes so that I can correctly identify clients.
What “Pain Point” Does The Proposed Feature Address: [Is there an unmet need impacting patients, providers, managers, developers, etc?]
Searching for clients on the peoples tab using names is not preferred because some clients have the same the first name and surname. The other search approach available is by using national IDs which requires manual entry of a 16 digit alphanumeric code, a process that is prone to data entry errors.
Proposed Solution: [How you would like to solve the “pain point”? This is a starting point for conversation, and can be high-leveled / general.] Scan a barcode label to retrieve the national ID in order to search for clients in the app.
Do you have funding to cover external developers? No
Do You Have Resources (Designers, Developers, PMs) Available: Yes
Links To Supporting Information / Uploads: [feature specs or designs, examples of similar features etc]
Hi @michael , I tested the PR but for me the barcode feature did not show up. The “About” page shows a message saying “For a better app experience, please contact your administrator or supervisor. Let them know to update cht-android”
Here’s what I did to launch the app on my phone, taking into account the dependencies for deploying CHT v4.4.1:
Checked out the latest branch from cht-android to build the apk.
Added CAN_USE_BARCODE_SCANNER permission in the manifest file.
Ensured the chrome version I am using is 90+, webview version is 90+.
I have checked with the team. The v1.1.1 is a mistake and we are in the process of removing the tag to avoid future confusion. The correct official release is v1.1.0-1 and can be found in the home page of the GitHub repository. Apologies for the confusion it caused.
This isn’t an Android manifest permission but a CHT permission. The can_use_barcode_scanner permission should be added in the project’s ‘app_settings.json’ file under permissions section, then assign the user roles. For example:
After the user logins, the user should sync to get the latest configuration for the app.
If barcode icon still doesn’t display next to the search icon, please check the feedback docs in CouchDB, there should be errors related to the barcode.
I used the version you recommended and also added the barcode scanner permission in the app_settings but I am still seeing this error when I open the “About” page:
If that still doesn’t fix it, do you have access to the feedback docs of your instance? You can look for something similar to Barcode Detector API... or Supported barcode formats... and that can give more information about the problem.
I tried to reproduce your experience, and so far the feature is working for me. I made a video that hopefully will bring some ideas about your setup.
In this video, I have created an instance and upgraded to the feature release 4.4.1-FR-barcode-beta.1. I also use an Android 14 phone, while testing I observed that the About page doesn’t display any warning.
One thing different is that I used the newest CHT Android that was released last week, this version includes support for Android 14. I would also suggest to not use an Admin user, try first with an offline user.
If this continues to fail, we need to get the logs. For that, please sync the application to upload feedback docs into the server, then check the medic-user-{username}-meta or medic-users-meta databases to find the feedback docs.
Another alternative is debugging the feature by connecting your phone to the computer while using the application, then the logs should print in Chrome’s console. You can find more information in our documentation and also in the official Chrome documentation.
@Jennifer_Quesada, thanks for posting the video. It is now working for me. I realized that I used “chv” instead of “chw” in the app_settings.
Is it possible to utilize this feature within a form as an alternative to the search bar? Our specific scenario involves reading a QR code within the form and then capturing it in an input field located within that same form.
@iesmail at the moment this feature is only available in the Contact’s search bar (FYI @michael)
The closest we have available is the android-app-launcher that can connect with a third party app to read barcodes, I suggest finding an open source app (ref. previous conversation).