Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Lab - In the Request Lab routine make the visit field required #2551

Closed
SamuelQZQ opened this issue Jan 19, 2021 · 5 comments 路 Fixed by #2552
Closed

Lab - In the Request Lab routine make the visit field required #2551

SamuelQZQ opened this issue Jan 19, 2021 · 5 comments 路 Fixed by #2552
Assignees
Labels
馃悰bug issue/pull request that documents/fixes a bug in progress indicates that issue/pull request is currently being worked on labs issue/pull request that interacts with labs module LOE - small indicates that the level of effort to complete issue is small (i.e changing the color of a button)
Projects
Milestone

Comments

@SamuelQZQ
Copy link
Contributor

SamuelQZQ commented Jan 19, 2021

馃悰 Bug Report

When Request Lab for a patient without any visit, it will crash.

To Reproduce

Steps to reproduce the behavior:

  1. Create an patient without adding a visit
  2. Click Request Lab, input the patient field, leave the visit field blank since it is not required.
  3. Notice the crash/error (see screenshot in comments)

Expected behavior

Request Lab should behave similar to New Imaging Request i.e. make the visit field required

Technical Details

Make the visit field required (as in Imaging Request)

Your Environment

  • node version: 12
  • os: Windows
@SamuelQZQ
Copy link
Contributor Author

I'd like to fix this bug.

@SamuelQZQ SamuelQZQ changed the title When request lab for a patient without any visit, it will crash Lab - When request lab for a patient without any visit, it will crash Jan 19, 2021
@blestab
Copy link
Contributor

blestab commented Jan 19, 2021

Steps to reproduce the behavior:

  1. Create an empty patient

May you elaborate how you achieved this or what you mean by 'empty patient',

in staging, i created a patient with the minimum required/allowed i.e Just a name, no visit was added.

image

I then requested a lab for this patient and did not manage to reproduce the crash you mention

image

@blestab blestab added labs issue/pull request that interacts with labs module needs requirements indicates that an issue needs more requirements in order to be worked on 馃悰bug issue/pull request that documents/fixes a bug labels Jan 19, 2021
@SamuelQZQ
Copy link
Contributor Author

@blestab Interesting.
Also in staging. I just create a patient, only with a given name.
image

Then I click the "Request Lab" from the left navigation menu. And input the patient's name. And click the auto-suggested patient. Then, crash.
image

And get the error message below:
image

I can reproduce this in Edge or Chrome.

@blestab
Copy link
Contributor

blestab commented Jan 19, 2021

Yeah, interesting thing is the version of staging i was looking at did not have a Visit selection field.

image

I have opened a new session in another chrome instance and I can see the visit option, which is not required, which i guess if why this bug occurs. So if you make the visit required then the issue should be resolved.

image

Thanks for picking this up

@blestab blestab changed the title Lab - When request lab for a patient without any visit, it will crash Lab - In the Request Lab routine make visit field required Jan 19, 2021
@blestab blestab changed the title Lab - In the Request Lab routine make visit field required Lab - In the Request Lab routine make the visit field required Jan 19, 2021
@blestab blestab added LOE - small indicates that the level of effort to complete issue is small (i.e changing the color of a button) and removed needs requirements indicates that an issue needs more requirements in order to be worked on labels Jan 19, 2021
@blestab blestab added this to To do in Version 2.0 via automation Jan 19, 2021
@blestab blestab added this to the v2.0 milestone Jan 19, 2021
@blestab blestab added the in progress indicates that issue/pull request is currently being worked on label Jan 19, 2021
@blestab
Copy link
Contributor

blestab commented Jan 19, 2021

All yours @SamuelQZQ , thanks again for this

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
馃悰bug issue/pull request that documents/fixes a bug in progress indicates that issue/pull request is currently being worked on labs issue/pull request that interacts with labs module LOE - small indicates that the level of effort to complete issue is small (i.e changing the color of a button)
Projects
Version 2.0
  
Done
Development

Successfully merging a pull request may close this issue.

2 participants