Skip to content

Comments

RA-2025: Update the demo patient generator to include deceased patients#21

Open
Piumal1999 wants to merge 1 commit intoopenmrs:2.xfrom
Piumal1999:RA-2025
Open

RA-2025: Update the demo patient generator to include deceased patients#21
Piumal1999 wants to merge 1 commit intoopenmrs:2.xfrom
Piumal1999:RA-2025

Conversation

@Piumal1999
Copy link

Overview

Updated the demo patient generator to include deceased patients.

Used the existing randomBetween function to establish a 10% probability for a person being deceased. The death date will be a random date between the current day and the date of birth.

Jira Ticket

https://openmrs.atlassian.net/browse/RA-2025

@Piumal1999 Piumal1999 changed the title RA-2025: Generate deceased patients with demo data RA-2025: Update the demo patient generator to include deceased patients May 5, 2024
Copy link
Member

@Ruhanga Ruhanga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @Piumal1999. One observation. It is possible that there are several visits following the death date. Those visits wouldn't provide meaningful data. I'd rather have the death date anywhere between during the last visit. This is because in real-life such information is usually recorded during a patient's last visit. Best too if it could be as a result to a certain condition or diagnosis.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants