BMMRO-tech / BMMRO

MIT License
3 stars 5 forks source link

Biopsy form: specimen section mvp #306

Open njktw opened 2 years ago

njktw commented 2 years ago

Background BMMRO need to be able to add specimen records to a biopsy record within the biopsy form. When a biopsy is taken, the material could make up skin or skin and blubber. The individual specimens are sectioned off and stored separately. BMMRO must ensure their specimen samples are stored appropriately and corresponding records are kept.

Screenshot 2022-07-12 at 15 51 44

Acceptance Criteria AC1: section header & button given I am logged in to the BMMRO app when I am viewing a biopsy record in the biopsy form then I need to see a Specimen section with a button - "add specimen record"

AC2: add specimen row on button press given I am logged in to the BMMRO app when I am viewing a biopsy record in the biopsy form and I click the add new specimen button (AC1) then a specimen record row is added to the specimen section above any previously added records (the most recent should be at the top). Each row should have a Specimen #, Tissue type, and tissue storage field

the tissue type drop down should have the options

Screenshot 2022-06-29 at 13 17 15

and it should default to -- in the same way as other dropdowns on other forms

the tissue store drop down should have the options

Screenshot 2022-06-29 at 13 17 23

and it should default to -- in the same way as other dropdowns on other forms

AC3: save button & commit to firebase given I am logged in to the BMMRO app when I am viewing a biopsy record in the biopsy form and I can click a save button on the biopsy form then firebase is updated and I taken back to the Habitat Use screen

Screenshot 2022-07-12 at 16 31 50

AC4: create specimens csv given I am logged in to the BMMRO app when I am exporting data from the app for import to MS Access then I can see details of the specimens taken in a csv with the below fields populated:

This AC is dependent on later tickets (ie where the field is not yet in the biopsy form). The expectation is this story should create the specimen csv with all available fields, namely:

then from the biopsy form:

Mapping below

image

AC5: add Sample # field to Biopsy Details section given I am logged into the BMMRO app when I am in the biopsy form then I can see a field called "Sample #" within the Biopsy Details section and I can no longer see a field called "Total Specimens" in the Biopsy Details section.

Specimen # should take the place of the "Total Specimens" field

Out of scope

Assumptions To be clarified with Charlotte:

CFRs

njktw commented 2 years ago

UAT QA complete