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
Whale ID [free text]
Sex [Male / Female / Unknown]
Age [calf / juvenile / subadult / adult / unknown]
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:
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)
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
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:
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)