TheJacksonLaboratory / PhenopacketLab

An Angular/Springboot web application for the loading, editing, saving of data that follows the Phenopacket Schema
BSD 3-Clause "New" or "Revised" License
8 stars 2 forks source link

Bug: Several problems with step 1: Individual information #191

Closed BethSundberg closed 1 year ago

BethSundberg commented 1 year ago

When entering individual information in create a phenopacket step1, the following bugs/issues/suggestions were found. See the list in the attached word document.

Phenopacket new issue suggestions June 2023.docx

belkassaby commented 1 year ago

List of Bug/enhancement found

ielis commented 1 year ago

Re: age range bug 2 - Yes, I totally agree. The start must not be after the end, and I would argue that not even at the end (use Age instead). However, the implementation must take into account several issues. Suppose an element from the set {'P29D', 'P30D', 'P31D'} and P1M. Which one is greater? It depends how many days there are in a month. We may need to agree upon some heuristics.

Re: max survival time - the number of days can be complicated. The users may not have the right number all the time, e.g. for survival of 5 years 3 months and 2 days. The issue is similar to the one above - how many days are there in a month? The survival time in days can be calculated using a difference of two local dates with the first being the date of diagnosis and the second the time of death. You would need to add a small widget that has two tiny calendars, where the user selects the local dates in a similar way we search for flights (see below). Otherwise, I do not see how this can be done.. image

pnrobinson commented 1 year ago

One thing is that if somebody needs to use AgeRange it is because they need to preserve privacy. Therefore, they will not be using a Web-based app. Given the amount of other things we need to do, I think we should remove the AgeRange option from the App for now because I do not think anybody will use it in this setting!