scupperscupper / open-ehr-gen-framework

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

Bind DV_BOOLEAN to html checkbox object #142

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I don't know if that is already done, but I haven't achieved to do that.

I the case of ORDINAL, the archetype "openEHR-EHR-EVALUATION.triage_trauma.v2" 
of example is called from the template EHRGen-EHR-triage.v1 

There, the path to ORDINAL object is defined and the elements contained are 
forced to be managed as a group of radiobuttons (insteasd of selectors). 

> I've found that binding between templates and GUI in your examples, but there 
are more possibilities? Where can I search the commands to apply them to my own 
templates?

> I think that the best representation of DV_BOOLEAN objects could be by means 
of CHECKBOXes. Moreover, these DV_BOOLEAN object could be grouped to build more 
complex archetype structures.

Original issue reported on code.google.com by aeguzkiza on 28 Nov 2013 at 4:42

Attachments:

GoogleCodeExporter commented 8 years ago
Hola Aitor, puedes preguntar en español :)

There are some fields that admit some options on the control to display. There 
isn't a formal spec since we didn't implement much options. To add options the 
GUI Generator should be modified to accept new options for the control type.

Look at the code here, line 62: 
https://code.google.com/p/open-ehr-gen-framework/source/browse/trunk/ehrgen/grai
ls-app/views/guiGen/create/_cDvOrdinal.gsp

About booleans, in healthcare booleans have 3 different values: true, false, 
empty/null/not present.

Original comment by pablo.swp@gmail.com on 28 Nov 2013 at 9:50