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
Date of Birth field accepting Future Dates #338
Comments
I'll work on this! |
Done. have a bit of fun... |
@tmccormi Some help needed ! EDIT : After filling all the red marked fields , new patient was still not getting created. I think I'll re-setup the project . I just saw a requirement for php.ini file. EDIT 2: Even after filling all the fields , that button doesn't work. |
Name , sex and DOB should be all that is needed to create a new patient |
@teryhill was there a datepicker like that of an insurance before ,,in dob fields? |
@teryhill okay , i was on a old version , its getting created now! Sorry for the confusion |
What about future dates in appointments and flow board?
…Sent from my iPhone
On Mar 3, 2017, at 1:21 PM, Nilesh Prasad ***@***.***> wrote:
@teryhill @tmccormi Have a look at this.
I modified Jquery file of calender and now it cannot accept any future date .
I guess this solves multiple issues 😉
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
oops 🙈 I'll correct that. |
If you could give a option to allow future date on demand that would work.
…Sent from my iPhone
On Mar 3, 2017, at 1:32 PM, Nilesh Prasad ***@***.***> wrote:
oops 🙈 I'll correct that.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@teryhill Or maybe a different jquery calender file for appointments and flowboard though it'll be a bit repetitive. ? |
@teryhill I am a bit stuck up here. Have a look at file https://github.com/LibreHealthIO/LibreEHR/blob/master/interface/new/new.php See the code from line 231 to 239 I tried to add a line Please have a look , and correct me, if I am wrong. |
@nileshprasad137 you are correct that code block has no bearing on the DOB . You need to look at options.inc in the \library directory. I have a change to that program that has not been committed to the code base yet so look at PR 467 . The code you are looking for is from line 364-387 |
@nileshprasad137 ?PR# |
ok , sending! |
Fixes LibreHealthIO#338 Fix DOB to not accept any future Date
@nileshprasad137 Nice clean fix. It also takes care for deceased date. |
yes , but unfortunately i did'nt create a new Pull request! I merged that with Master so its coming in that pull request #448 . 😔 I'll not do that mistake again. |
@tmccormi can you fix this? |
@teryhill seems this is the issue i have raised in my current PR, they didnt add server side validation on datepicker |
When entering a future date, it should prevent that by alerting the user with an error message, however it doesn't and instead it displays the age in negative. Which is meaningless.
The text was updated successfully, but these errors were encountered: