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

fix(patient): error in age calculation #421

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

YamirHaidar
Copy link
Contributor

The age of a patient was being bad calculated: between April 1st of different years, will be only years of difference, however, it is not working like that.

Captura desde 2024-04-01 17-36-35
See that from April 1st of 2019 to now, April 1st of 2024 there are just 5 years of difference.

Now, using moment library, that is already installed, the age is being well calculated.

Captura desde 2024-04-01 17-37-17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants