dngferreira / open-ehr-gen-framework

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

No permitir arquetipos con CDvQuantity sin especificación de propiedad física para las unidades #101

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Sino se especifica la propiedad física de los nodos DvQuantity de un 
arquetipo, en la generación de GUI se debería genera un select con todas las 
unidades posibles, cosa que es difícil de usar.

Por lo menos si se sabe la propiedad física y no se tienen restricciones de 
unidades específicas, se puede mostrar una lista reducida de posibilidades 
para esa propiedad física.

Original issue reported on code.google.com by pablo.swp@gmail.com on 25 Dec 2012 at 6:31

GoogleCodeExporter commented 9 years ago
Cuando subo arquetipos sin restriccion para unidad en CDvQuantity al guardar da 
error. No permitir subir arquetipos que no cumplan con las reglas.

Error 500: Executing action [save] of controller [hce.GuiGenController] caused 
exception: Runtime error executing action
Servlet: grails
URI: /ehrgen-1.4/grails/guiGen/save.dispatch
Exception Message: No se definio la unidad de CDvQuantity 
/data[at0001]/events[at0002]/data[at0003]/items[at0005]/value en arquetipo: 
openEHR-EHR-OBSERVATION.dfghdfghd.v1 
Caused by: No se definio la unidad de CDvQuantity 
/data[at0001]/events[at0002]/data[at0003]/items[at0005]/value en arquetipo: 
openEHR-EHR-OBSERVATION.dfghdfghd.v1 
Class: DevModeSanityFilter 
At Line: [44] 

java.lang.Exception: No se definio la unidad de CDvQuantity 
/data[at0001]/events[at0002]/data[at0003]/items[at0005]/value en arquetipo: 
openEHR-EHR-OBSERVATION.dfghdfghd.v1

    at binding.BindingAOMRM.bindCDvQuantity(BindingAOMRM.groovy:1824)

    at binding.BindingAOMRM.bindCObject(BindingAOMRM.groovy:556)

    at binding.BindingAOMRM$_bindAttribute_closure12.doCall(BindingAOMRM.groovy:1025)

    at binding.BindingAOMRM.bindAttribute(BindingAOMRM.groovy:1018)

    at binding.BindingAOMRM$bindAttribute.callCurrent(Unknown Source)

    at binding.BindingAOMRM.bindELEMENT(BindingAOMRM.groovy:2338)

    at binding.BindingAOMRM$bindELEMENT.callCurrent(Unknown Source)

    at binding.BindingAOMRM.bindCComplexObject(BindingAOMRM.groovy:718)

    at binding.BindingAOMRM.bindCObject(BindingAOMRM.groovy:556)

    at binding.BindingAOMRM$_bindAttribute_closure12.doCall(BindingAOMRM.groovy:1025)

    at binding.BindingAOMRM.bindAttribute(BindingAOMRM.groovy:1018)

    at binding.BindingAOMRM$_bindCComplexObject_closure9.doCall(BindingAOMRM.groovy:792)

    at binding.BindingAOMRM.bindCComplexObject(BindingAOMRM.groovy:768)

    at binding.BindingAOMRM.bindCObject(BindingAOMRM.groovy:556)

    at binding.BindingAOMRM$_bindAttribute_closure12.doCall(BindingAOMRM.groovy:1025)

    at binding.BindingAOMRM.bindAttribute(BindingAOMRM.groovy:1018)

    at binding.BindingAOMRM$_bindCComplexObject_closure9.doCall(BindingAOMRM.groovy:792)

    at binding.BindingAOMRM.bindCComplexObject(BindingAOMRM.groovy:768)

    at binding.BindingAOMRM.bindCObject(BindingAOMRM.groovy:556)

    at binding.BindingAOMRM$_bindAttribute_closure12.doCall(BindingAOMRM.groovy:1025)

    at binding.BindingAOMRM.bindAttribute(BindingAOMRM.groovy:1018)

    at binding.BindingAOMRM$_bindCComplexObject_closure9.doCall(BindingAOMRM.groovy:792)

    at binding.BindingAOMRM.bindCComplexObject(BindingAOMRM.groovy:768)

    at binding.BindingAOMRM.bindCObject(BindingAOMRM.groovy:556)

    at binding.BindingAOMRM$_bindAttribute_closure12.doCall(BindingAOMRM.groovy:1025)

    at binding.BindingAOMRM.bindAttribute(BindingAOMRM.groovy:1018)

    at binding.BindingAOMRM$_bindCComplexObject_closure9.doCall(BindingAOMRM.groovy:792)

    at binding.BindingAOMRM.bindCComplexObject(BindingAOMRM.groovy:768)

    at binding.BindingAOMRM$bindCComplexObject.callCurrent(Unknown Source)

    at binding.BindingAOMRM.bindArquetipo(BindingAOMRM.groovy:506)

    at binding.BindingAOMRM$_bind_closure4.doCall(BindingAOMRM.groovy:340)

    at binding.BindingAOMRM.bind(BindingAOMRM.groovy:316)

    at binding.BindingAOMRM$bind.call(Unknown Source)

    at hce.GuiGenController$_closure4.doCall(GuiGenController.groovy:817)

    at hce.GuiGenController$_closure4.doCall(GuiGenController.groovy)

    at org.grails.plugin.resource.DevModeSanityFilter.doFilter(DevModeSanityFilter.groovy:44)

    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)

    at java.lang.Thread.run(Thread.java:662)

Original comment by pablo.swp@gmail.com on 21 Nov 2013 at 8:29