Skip to content

Make an editable model for the Specimen Reference Sets pages #376

@nutjob4life

Description

@nutjob4life

🤔 Tell Us About the Feature

The current reference set pages, such as for the lung reference sets, are extremely difficult to manage.

The page essentially consists of a large "typed table" block with 16 columns. Table editing in Wagtail is not the greatest:

  • Wagtail's editing column is narrow. This is fine for a table with three to five columns, but untenable for 16
    columns
  • The table also has 10 rows, requiring more scrolling
  • Many of the columns are blank; combined with the many rows, this means that when updating or adding new cells, it's difficult to tell which value goes in which columns (the column headings are hidden way off the scrolled page at the top—and combined with the narrow editing column, it's easy to get lost)
  • Many of the columns are blank—however blank cells are not allowed in a typed table! This means having to look up a special Unicode character "U+2060", also known as "WORD JOINER", and pasting that into cells that should be blank. Only one person in on the team knows how to even produce such a character!

Jackie Dahlgren and others at the DMCC have tried to update the page themselves and give up because of these challenges.

🎇 What Solution You'd Like

The reference sets should instead of a specific page model with fill-in-the-blank forms that can be edited by anyone—include the DMCC!

The model would consist of

  • Optional organ name: plain text
  • Optional protocol ID: a pick-list from existing protocols
  • Reference set title: optional hyperlink to an existing page or document
  • Cases, Controls, Total participants: three optional integer fields
  • Participant groups: optional plain text
  • Specimen type: a pick list to types of specimens
  • Number of specimens: optional integer field, formatted with commas for convenient display since the numbers can get large
  • Volume range: optional plain text
  • Radio buttons: specimens at NCI-F, discovery set, follow-up data, pathology, image files incident cancer

The radio buttons would be:

  • Yes
  • No
  • Unknown
  • TBD

This way, updating a single reference set or adding a new one would be as easy as filling out a form.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions