lucasmirandadourado / open-ehr-gen-framework

Automatically exported from code.google.com/p/open-ehr-gen-framework
0 stars 0 forks source link

Add checks for existing data on bootstrap #150

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In prod, a lot of data like Authorizations are created duplicated because the 
DB gets updated without checking for existing data.

Original issue reported on code.google.com by pablo.swp@gmail.com on 27 Jul 2015 at 6:46

GoogleCodeExporter commented 8 years ago
Things like this will happen: 

Error 500: Executing action [show] of controller [RecordsController] caused 
exception: Runtime error executing action
Servlet: grails
URI: /ehrgen-1.4-0.8b3/grails/records/show.dispatch
Exception Message: Se encuentran: 2 pacientes a partir del ID: UIDBasedID-> 
2.16.840.1.113883.4.330.666::2178309 
Caused by: Se encuentran: 2 pacientes a partir del ID: UIDBasedID-> 
2.16.840.1.113883.4.330.666::2178309 
Class: RecordsController 

Original comment by pablo.swp@gmail.com on 27 Jul 2015 at 8:36

GoogleCodeExporter commented 8 years ago
done.

Original comment by pablo.swp@gmail.com on 28 Jul 2015 at 3:11