BMMRO-tech / BMMRO

MIT License
3 stars 5 forks source link

Biopsy form: whale details #299

Open njktw opened 2 years ago

njktw commented 2 years ago

Background As part of recording a biopsy record BMMRO need to record details of the whale being biopsied

Acceptance criteria AC1: add fields (create) given I am logged into the BMMRO app and within the context of an encounter when I click the "Add" button to create a new biopsy record then I can see a section called "whale details" with the following fields displayed beneath

image

AC2: submit to firebase on save given I click submit on a new biopsy record then the details from the whale details section are submitted to firebase

AC3: on edit: check the updated values are in firebase given I open an existing, un-exported, biopsy record when I change values in the whale details section and click save then the values are updated in firebase and the export script

AC4: open biopsy form in view mode for exported records given I have already exported a biopsy record when I open a biopsy record which has previously been exported then the biopsy form & the whale details section cannot be edited and exported records are not in the exported data

AC5: MS Access database (Biopsy csv) given I run the export script then the animal reaction fields are visible in the Biopsy csv exported data, with the below mapping:

image

AC6: update specimen export csv given I run the export script then I can see Whale ID, Sex and Age in the Specimen csv export (mapping below)

image

njktw commented 2 years ago

UAT QA complete