The Evidence Comparison Widget requires XML data that conforms to the evidence comparison schema. This schema is defined in the evidence-comparison.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 Comparison<EVIDENCE_COMPARISON DETERMINATION_DELIVERY_ID="45556363"
BASELINE1_LABEL="label 1" BASELINE2_LABEL="label 2">
<QUESTIONNAIRE QUESTIONNAIRE_ID="QE1"
LABEL="Questionnaire 1">
<QUESTION QUESTION_ID="Q1" HIGHLIGHT="false"
TYPE="NORMAL" SUB_TYPE="INT32"
LABEL="What is your gender?">
<BASELINE1 ANSWER="Male" SHOW_LINK="false"
DISPLAY_TEXT="Question Not Asked"/>
<BASELINE2 ANSWER="Male" SHOW_LINK="false"/>
</QUESTION>
<QUESTION QUESTION_ID="Q2" LABEL="What is your age?"
HIGHLIGHT="false" TYPE="NORMAL" SUB_TYPE="INT32">
<BASELINE1 ANSWER="35" SHOW_LINK="false"/>
<BASELINE2 ANSWER="35" SHOW_LINK="false"
DISPLAY_TEXT="Question Unanswered"/>
</QUESTION>
<QUESTION QUESTION_ID="Q3" TYPE="NORMAL"
SUB_TYPE="COMMENTS" HIGHLIGHT="true"
LABEL="What country do you live in?">
<BASELINE1 ANSWER="Question not asked"
SHOW_LINK="false"/>
<BASELINE2 ANSWER="Kildare" SHOW_LINK="false"/>
</QUESTION>
<QUESTION QUESTION_ID="Q4"
LABEL="Do you have trouble breathing when you walk?"
HIGHLIGHT="false" TYPE="NORMAL" SUB_TYPE="COMMENTS">
<BASELINE1 ANSWER="yes" SHOW_LINK="true"/>
<BASELINE2 ANSWER="yes" SHOW_LINK="false"/>
</QUESTION>
</QUESTIONNAIRE>
<QUESTIONNAIRE QUESTIONNAIRE_ID="QE2"
LABEL="Questionnaire 2">
<QUESTION QUESTION_ID="Q8" LABEL="Question 8?"
HIGHLIGHT="false" TYPE="NORMAL" SUB_TYPE="INT32">
<BASELINE1 ANSWER="answer" SHOW_LINK="false"/>
<BASELINE2 ANSWER="answer" SHOW_LINK="false"/>
</QUESTION>
<QUESTION QUESTION_ID="Q9" LABEL="Question 9?"
HIGHLIGHT="true" TYPE="NORMAL" SUB_TYPE="INT32">
<BASELINE1 ANSWER="answer" SHOW_LINK="false"/>
<BASELINE2 ANSWER="different answer"
SHOW_LINK="false"/>
</QUESTION>
<QUESTION QUESTION_ID="Q10" LABEL="Question 9?"
HIGHLIGHT="false" TYPE="NORMAL" SUB_TYPE="INT32">
<BASELINE1 ANSWER="answer" SHOW_LINK="false"/>
<BASELINE2 ANSWER="answer" SHOW_LINK="false"/>
</QUESTION>
</QUESTIONNAIRE>
</EVIDENCE_COMPARISON>
Table 1. Attributes of Evidence Comparison ElementAttribute |
Description |
DETERMINATION_DELIVERY_ID |
Unique identifier for this element, supplied as a
parameter to the row hyperlink. |
BASELINE1_LABEL |
Label for the first set of answers. |
BASELINE2_LABEL |
Label for the second set of answers |
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. |
HIGHLIGHT |
Flag to highlight the row. |
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 Baseline ElementsAttribute |
Description |
ANSWER |
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. |