icgc-argo / platform-ui

Home of Argo Platform UI + @icgc-argo/uikit
http://platform.icgc-argo.org/
GNU Affero General Public License v3.0
7 stars 7 forks source link

Donor entity: Rules for blank values #2111

Open kcullion opened 2 years ago

kcullion commented 2 years ago

This may need to be revisited based to make these rules consistent with what's decided for clinical exceptions (eg. using "Unknown" vs. "Not Available").

General Approach for blank fields and hidden fields

(from slack convo March 16)

Not Applicable fields

Show N/A for the following cases:

Not Available fields

Note for reviewing hidden fields:

Just for reference

Melanie sent this resource for the meaning behind missing values. Putting here for adding onto this spec https://ena-docs.readthedocs.io/en/latest/submit/samples/missing-values.html

kcullion commented 2 years ago

We may need a backend ticket for returning these values just to be consumed by the front end? Also these can the -- and N/A values be generalized in one ticket - they will be displayed in multiple contexts like on the donor entity page, and the file entity page. @blabadi @demariadaniel please advise.

blabadi commented 2 years ago

@kcullion @joneubank adding Jon here since he is working on the clinical API and indexing So Jon, the thing here is we need the UI to be able to distinguish between N/A or empty values, and we need this consistent across the platform so my suggestion is to make sure the clinical API enforce these rules above in the ticket and include the right response so the index or anything that queries the API get N/A where applicable.

not sure if you are still in the middle of this or need a new ticket or have something else in mind to avoid encoding business rules in the FE