<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE FreeMedForms>

<FreeMedForms>

  <formdescription>
    <!-- Non translatable values -->
    <authors>Eric Maeker, MD</authors>
    <version>0.9.0</version>
    <fmfv>0.7.0</fmfv>
    <cdate>2011-12-21</cdate>
    <lmdate>2011-12-21</lmdate>
    <icon>geriatrics.png</icon>
    <weblink></weblink>
    <bibliography pmid=""></bibliography>

    <!-- Translatable values -->
    <license>GPLv3</license>
    <description lang="xx">Test script: onValueChanged</description>
    <category lang="xx">Test</category>
    <category lang="fr">Test</category>
    <specialties lang="fr">Test</specialties>
    <specialties lang="xx">Test</specialties>

  </formdescription>

 <file type="script" name="onload">./scripts/xx/frenchscript.js</file>

 <MedForm name="Test::Script::OnValueChanged">
   <label lang="xx">Test Scripting engine (interactions between items)</label>
   <column>1</column>
   <options>DontPrintEmptyValues;UseFormNameAsNameSpace</options>

   <Item name="FirstGroup" type="group">
     <column>1</column>
     <Item name="FirstGroup::TestingCombo" type="combo">
       <label lang="xx">Test me</label>
       <options>notprintable;vertical;labelontop;DontPrintEmptyValues</options>
       <value>
         <uuid id="0">P0</uuid>
         <uuid id="1">P1</uuid>
         <uuid id="2">P2</uuid>
         <uuid id="3">P3</uuid>

         <possible id="0" lang="xx">Show: gla-gla</possible>
         <possible id="1" lang="xx">Show: bli-bli</possible>
         <possible id="2" lang="xx">Show: Wahouh</possible>
         <possible id="3" lang="xx">Show: glou-glou</possible>

         <numerical id="0">1</numerical>
         <numerical id="1">1</numerical>
         <numerical id="2">1</numerical>
         <numerical id="3">0</numerical>

       </value>

       <script>
         <onvaluechanged>onFirstGroupComboValueChanged();</onvaluechanged>
       </script>
     </Item>

     <Item name="FirstGroup::Result" type="shorttext">
       <label lang="xx">Result</label>
       <options>vertical;labelontop;DontPrintEmptyValues</options>
     </Item>

   </Item>

   <Item name="SecondGroup" type="group">
     <column>1</column>
     <Item name="SecondGroup::TestingCombo" type="combo">
       <label lang="xx">Test me in html</label>
       <options>notprintable;vertical;labelontop;DontPrintEmptyValues</options>
       <value>
         <uuid id="0">P0</uuid>
         <uuid id="1">P1</uuid>
         <uuid id="2">P2</uuid>
         <uuid id="3">P3</uuid>

         <possible id="0" lang="xx">Show: gla-gla</possible>
         <possible id="1" lang="xx">Show: bli-bli</possible>
         <possible id="2" lang="xx">Show: Wahouh</possible>
         <possible id="3" lang="xx">Show: glou-glou</possible>

         <numerical id="0">1</numerical>
         <numerical id="1">1</numerical>
         <numerical id="2">1</numerical>
         <numerical id="3">0</numerical>

       </value>

       <script>
         <onvaluechanged>onSecondGroupComboValueChanged();</onvaluechanged>
       </script>
     </Item>

     <Item name="SecondGroup::Result" type="texteditor">
       <label lang="xx">Result</label>
       <options>vertical;labelontop;DontPrintEmptyValues;fulleditor</options>
     </Item>

   </Item>

 </MedForm>

</FreeMedForms>
