tracits / rodant

New repository for the new data collection tool
MIT License
0 stars 2 forks source link

When editing an existing record with missing data, this is not saved #70

Closed tracits closed 4 years ago

tracits commented 4 years ago

Since there are variables that have been added to the codebook along the way of data collection (Receiving emergency department, internal referral status, emergency department disposition), when importing a dataset, several records will not have this data. When opening the record and these variables are added, nothing happens. When trying to navigate from the page, you get the error "Can not save a record that is not complete, cancel or discard?". It does not seem to matter if the record is marked as complete or not when trying to do this. Note, that when we are deploying, we will have complete records that with current logic needs to be updated. (Other variables are changeable then as well)

To recreate:

Import a dataset from site 4178 Try to edit record with patient ID 99 Set Receiving emergency department, internal referral status, emergency department disposition to 999.

kebabskal commented 4 years ago

You should now be able to save it using the save and exit button added via #68.