The Typical Picture Editor Widget requires XML data that conforms to the typical picture editor schema. This schema is defined in the typical-picture-editor.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:
<TYPICAL_PICTURE SHOW_MIN_MAX="true"> <QUESTION QUESTION_ID="Q1" LABEL="What treatment is prescribed?" TYPE="NORMAL" SUB_TYPE="SOME_CODE_TABLE_DOMAIN" VALUE="CT3"/> <QUESTION QUESTION_ID="Q2" LABEL="Another Question?" TYPE="CODETABLE" SUB_TYPE="CodeTableBame" VALUE="PT3"/> <QUESTION QUESTION_ID="Q3" LABEL="Does the claimant smoke smoke?" TYPE="NORMAL" SUB_TYPE="BOOLEAN_TYPE" VALUE="true"/> <QUESTION QUESTION_ID="Q4" LABEL="How many cigarettes smoked per day?" TYPE="NORMAL" SUB_TYPE="NUMERIC_DOMAIN" VALUE="15" MIN="5" MAX="20"/> </TYPICAL_PICTURE>
Attribute | Description |
---|---|
SHOW_MAX_MIN | Flag to indicate whether the maximum and minimum values will be shown. |
QUESTION_ID | Unique identifier for this element. |
LABEL | Label for the questionnaire |
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. |
VALUE | The answer value to the question. |
MIN | The minimum answer value to the question. |
MAX | The maximum answer value to the question. |
When the page is submitted the widget will populate the target field with different XML, for example:
<TYPICAL_PICTURE_XML> <QUESTION QUESTION_ID="Q1" VALUE="CT1"/> <QUESTION QUESTION_ID="Q2" VALUE="PT2"/> <QUESTION QUESTION_ID="Q3" VALUE="false"/> <QUESTION QUESTION_ID="Q4" VALUE="10" MIN="9" MAX="50"/> </TYPICAL_PICTURE_XML>