FreeHealth / freehealth

Free and open source Electronic Health Record
https://freehealth.io
Other
44 stars 16 forks source link

After complete form switch, PMH items are not classified according to categories #107

Open jeromecc opened 6 years ago

jeromecc commented 6 years ago

The uuid of a given PMHx category (personal, or medical, surgical etc) is different for each complete form. That was not a good idea: if a user wants to use another complete form, the PMH items don't show up inside their category anymore, they are listed at the root of PMH tree. I will open another issue to create a tool that will detect and fix this if the user decides to change the complete form.

The ICD index has to be updated inside the databse episodes / table master.

Upon first opening of PMHx, if items are not properly categorized (if uuid inside pmh / master used does not match the uuid of the currently selected complete form inside episodes / table form_files) admin user will be asked if the update should be performed. Normal user will be notified that the admin could fix the mess.