Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor clinical attributes from JS to CSS
- Add clean function with rules for cleaning up clinical attribute data on front-end. Currently only some rounding is performed on surivial days and null values are removed. Removal of null values might no longer be necessary if this is added to the data importer instead. - Add derived clinical attribute function. There are some implied clinical attributes such as DERIVED_NORMALIZED_CASE_TYPE and DERIVED_SAMPLE_LOCATION which are basically clinical attributes derived from other ones. It might make sense to make these real clinical attributes in the database at some point. The DERIVED_NORMALIZED_CASE_TYPE now has 4 types: {primary, metastasis, recurrence, progressed}. Only the DERIVED_NORMALIZED_CASE_TYPE is shown on the page. - Move JS styling of clinical attributes to CSS, which is much easier to understand, plus it allows other instances of the portal to just change a css file. It works by making a span for each clincial attribute with the key/value info attached as attributes. The short study name is also included as an attribute such that study specific styling becomes possible. - Ordering of clinical attributes is done by setting an order attribute and using the inline-flex display. One peculiarity is that one can't use :first in the CSS rules when using flex, so an extra class attribute had to be added to allow not showing a comma for the first clinical attribute. - Update docs on custom patient view styling - GLEASON_SCORE_1 and GLEASON_SCORE_2 were never displayed in the first place, so that styling has been removed. - Update screenshot, minor pixel changes in text and size Signed-off-by: Ino de Bruijn <[email protected]>
- Loading branch information