The Evidence Tab Container Widget requires XML data that conforms to the evidence tab container schema. This schema is defined in the evidence-tab-container.xsd file located in the lib/curam/xml/schema folder of your CDEJ installation folder. Below is an example of the kind of XML necessary:
Figure 1. Evidence Tab Container<EVIDENCE_TAB_CONTAINER DETERMINATION_DELIVERY_ID="12345">
<QUESTIONNAIRE QUESTIONNAIRE_ID="QE1" LABEL="Questionnaire 1">
<QUESTION TYPE="NORMAL" SUB_TYPE="INT32" QUESTION_ID="Q1"
LABEL="What is your gender?">
<ANSWER DISPLAY_TEXT="Question Not Asked" VALUE="1000"
SHOW_LINK="true"/>
</QUESTION>
<QUESTION TYPE="NORMAL" SUB_TYPE="COMMENTS" QUESTION_ID="Q2"
LABEL="Do you have trouble breathing when you walk?">
<ANSWER VALUE="yes" SHOW_LINK="false"/>
</QUESTION>
</QUESTIONNAIRE>
<QUESTIONNAIRE QUESTIONNAIRE_ID="QE2" LABEL="Questionnaire 2"
SELECTED="true">
<QUESTION TYPE="NORMAL" SUB_TYPE="INT32" QUESTION_ID="Q3"
LABEL="Question 8?">
<ANSWER VALUE="100000" SHOW_LINK="false"/>
</QUESTION>
<QUESTION TYPE="NORMAL" SUB_TYPE="CAR_CODE" QUESTION_ID="Q4"
LABEL="What car do you drive?">
<ANSWER VALUE="CR1" SHOW_LINK="false"/>
</QUESTION>
<QUESTION TYPE="CODETABLE" SUB_TYPE="Cars" QUESTION_ID="Q5"
LABEL="First car you drove?">
<ANSWER VALUE="CR2" SHOW_LINK="true"/>
</QUESTION>
<QUESTION TYPE="NORMAL" SUB_TYPE="BOOLEAN_TYPE"
QUESTION_ID="Q6" LABEL="Are you a citizen?">
<ANSWER VALUE="true" SHOW_LINK="false"/>
</QUESTION>
</QUESTIONNAIRE>
</EVIDENCE_TAB_CONTAINER>
Table 1. Attributes of Evidence Tab Comparison ElementAttribute |
Description |
DETERMINATION_DELIVERY_ID |
Unique identifier for this element, supplied as a
parameter to the row hyperlink. |
Table 2. Attributes of Questionnaire ElementAttribute |
Description |
QUESTIONNAIRE_ID |
Unique identifier for this element, supplied as a
parameter to the row hyperlink. |
LABEL |
Label for the questionnaire or question. |
Table 3. Attributes of Question ElementAttribute |
Description |
QUESTION_ID |
Unique identifier for this element, supplied as a
parameter to the row hyperlink. |
SELECTED |
Which tab is in view when loaded. |
TYPE |
The type is either
NORMAL
or
CODETABLE. |
SUB_TYPE |
The
behavior of the
SUB_TYPE
attribute value depends on the value of the
TYPE
attribute. In case
where the
TYPE
attribute is
specified as
NORMAL,
the
SUB_TYPE
refers to the
actual data type to used value; where
TYPE
value is specified as
CODETABLE,
the SUB_TYPE
value would be the name
of the codetable to use. |
Table 4. Attributes of Answer ElementAttribute |
Description |
VALUE |
The answer text to the question. |
SHOW_LINK |
Flag to create a link from existing answer to
another. |
DISPLAY_TEXT |
This text takes precedence over answer value. |