LibreHealthIO / lh-ehr

LibreHealth EHR - Free Open Source Electronic Health Records
Other
235 stars 261 forks source link

Calendar opens on medication outcome select (Resolved) #1246

Open muarachmann opened 6 years ago

muarachmann commented 6 years ago

What issue is all about: The calender gets open when the medication field outcome - resolved is selected from the dropdown which is undesirable

Steps leading to issue: Select a patient > Go to medication > Add new > Click on the dropdown for outcome > select resolved

Screenshots screenshot from 2018-09-27 21-26-01

Errors from log files or console if any None

Would you like to solve this issue No, any first time contributor can be assigned to this

muarachmann commented 6 years ago

@aethelwulffe , @Trodrige can any of you add labels to this thanks. I would have but i aint got sufficient permissions for that

aethelwulffe commented 6 years ago

@muarachmann Gotcha.

besong23 commented 6 years ago

Hello guys, I will like to work on this issue

muarachmann commented 6 years ago

@besong23 go ahead

besong23 commented 6 years ago

Okay so after looking through the code the function outcomeClicked() turns to set the End Date value to current date so I have two ways of going about this, I can remove the function call as well as the function definition since it looks like the function is being called just ones OR I can remove just the function call and leave the function definition since I don't know if it might be needed later on. Which way should I go about this?

muarachmann commented 6 years ago

We dont want to define functions id they arent being use. There is no point to that. Do what you have to do to fix the issue and make a PR. From there we will review your code and tell you what you ought to do and not. As for finding a suitable method thats up to you 😃

muarachmann commented 6 years ago

Oh @aethelwulffe , @besong23 my bad. I didn't think this twice. When an issue is marked resolved, it should be ended and that is why it auto fills the form with the end date marking this stuff over. The issue to resolve here is preventing the opening of the calendar but that field (end date) should be filled with the current date of filling the issue. @besong23 hope you get it now. Let me give you a tip 😺 a focused field will draw attention to itself in all the form.

besong23 commented 6 years ago

So that means it isn't at issue after all right?

muarachmann commented 6 years ago

You should learn to read @besong23 I said we want the field filled but the calendar is not to popup

besong23 commented 6 years ago

Ah okay. Sorry about that :-)

muarachmann commented 6 years ago

And i gave you a tip. Its a one line issue stuff "a focused field will draw attention to itself in all the form."

besong23 commented 6 years ago

@muarachmann I have opened a pull request for the issue

aethelwulffe commented 6 years ago

Referencing local PR #1252 Functional test needs to verify operation of all related forms. -Good job @besong23, and welcome to our team!

aethelwulffe commented 6 years ago

@muarachmann None of that "you should learn to read" stuff unless you want to hear "Mua, buddy, you should learn to write!" 😈 We have LOTS of non-native speakers, and not a lot of professional technical writers here! We will not tolerate intolerance 😜 Ndip is now your mentee @muarachmann for getting up to speed with the project. @besong23 ask any of us for help, but I think you should lean on Mua when you need something, because you two just did such a great job on this bug! 😃

aethelwulffe commented 6 years ago

[SERIOUS MODE ON] -I will get this test done this afternoon. Sorry for a delay.

muarachmann commented 6 years ago

You are right @aethelwulffe had a tough day but cool. roger that

aethelwulffe commented 6 years ago

@muarachmann Remember you can always download your troubles on us in the chat room! We will listen!