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

Searching by policy number in Lookup patient seems to be not working #2749

Closed
diegoevangelisti opened this issue Apr 22, 2020 · 5 comments
Closed
Assignees
Labels
Bug: development Bug was found and believed to only be in development branches Docs: not needed Priority: high

Comments

@diegoevangelisti
Copy link
Contributor

Describe the bug

In Dispensary module, new policies can be added for internal/external patients, and then can be found through Lookup patient -> Filling in Personal policy number or/and Family policy number inputs. I couldn't find a new policy that I just created, when entering its information, nothing is retrieved. See example below:

Policy previously created:

Screen Shot 2020-04-22 at 4 46 10 PM

  • Searching by Personal policy number:

searchPolicy1

  • Searching by Personal policy number and Family policy number.
    NOTE: @wlthomson, this doesn't allow me to search, it automatically disables the button. Is it a normal behaviour when trying to search using both numbers? Otherwise I will create a separate issue.

SEARCHPatient2

To reproduce

Steps to reproduce the behavior:

  1. Go to 'Dispensary'
  2. Create a new policy to an internal or external patient.
  3. Go back to Dispensary and click on Lookup patient
  4. Enter the policy number/s.
  5. See error (No results).

Expected behaviour

All patients, with the same previously entered policy numbers, should appear on the list.

Proposed Solution

N/A.

Version and device info

  • App version: v5.0.0.rc-1
  • Tablet model: AVD
  • OS version: Android 9.0 API 28

Additional context

While testing #2678

@wlthomson
Copy link
Contributor

Both of these are bugs!

Good chance that this bug will be solved by a fix for #2713. Not sure whats going on with the search button in the second bug! If you could create a second issue for that it would be appreciated!

@diegoevangelisti
Copy link
Contributor Author

diegoevangelisti commented Apr 23, 2020

Not sure whats going on with the search button in the second bug! If you could create a second issue for that it would be appreciated!

Sure, count with that. I'll create a separate one for that specific issue!

@wlthomson
UPDATED: Issue #2769

@wlthomson wlthomson self-assigned this Apr 26, 2020
wlthomson added a commit that referenced this issue Apr 27, 2020
@wlthomson
Copy link
Contributor

Fixed by #2778.

@ArpitaSussol
Copy link

ArpitaSussol commented Apr 29, 2020

Tested in v5.0.0 rc2

Testing

  • Looking up patients by policy number returns all patients with personal policy numbers containing the search string. - PASS
  • Looking up patients by policy number returns all patients with family policy numbers containing the search string. - PASS
  • Looking up patients by policy number returns all patients with full policy numbers containing the search string (e.g. 12-3 matches a patient with personal policy number 12 and family policy number 345). - PASS

@wlthomson but clicking on searched result will redirect to the patient list page rather than specific patient detail page.
https://recordit.co/GOwnI6kwxw
is this an issue ?

@wlthomson
Copy link
Contributor

Thanks @ArpitaSussol!

@wlthomson but clicking on searched result will redirect to the patient list page rather than specific patient detail page.

No worries, that's the current intended behaviour.

Moving to done 🎉.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug: development Bug was found and believed to only be in development branches Docs: not needed Priority: high
Projects
None yet
Development

No branches or pull requests

3 participants