ppazos / cabolabs-ehrserver

Open platform to manage and share standardized clinical data, designed by @ppazos at CaboLabs Health Informatics.
https://cabolabs.com
Apache License 2.0
179 stars 110 forks source link

Do not allow to deactivate an OPT if there are COMPOS pending to be indexed using that OPT #944

Closed ppazos closed 5 years ago

ppazos commented 6 years ago

Committing COMPOS using an existing OPT (commit accepted) Then before data indexing, inactivate the OPT. Will lead to the warning "AII do not exists for path xxxx" because deactivating an OPT deletes all it's AIIs.

This generates an inconsistent state, because some data might be indexed and some not, and the compo index gets marked as indexed. Maybe the whole data index should fail if an AII doesn't exists at the moment of indexing.