Summary

This command returns true if the specified question is set. 


A question being set means that it contains data within that question. The question doesn’t have to be saved to be considered set (e.g. BMI Calculation). If no question is specified, the target question is used.

Attributes

  • none

Parameters

  • question

Example

<script scriptId="medHistdobConsentCk">
    <body>
        <s:alert>
            <s:expression>
                <s:or>
                    <s:not>
                        <s:isSet/>
                    </s:not>
                    <s:not>
                        
                            <s:isSet>
                            <s:question>
                                <s:question path="/screening/dm.dob_"/>
                            </s:question>
                            </s:isSet>
                            
                    </s:not>
                    <s:not>
                        
                            <s:isSet>
                            <s:question>
                                <s:question path="/screening/ds.consdt_"/>
                            </s:question>
                            </s:isSet>
                            
                    </s:not>
                    <s:between>
                        <s:datePath path=":value"/>
                        <s:datePath path="/screening/dm.dob_:value"/>
                        <s:datePath path="/screening/ds.consdt_:value"/>
                    </s:between>
                </s:or>
            </s:expression>
            <s:correction>
                <s:string value="optional"/>
            </s:correction>
            <s:text>
                <s:string value="Medical history Date of First Diagnosis does not fall 
                between the Date of Birth and Date of Consent. Please clarify."/>
            </s:text>
        </s:alert>
    </body>
    <target typeId="strtdt_" when="preprocess" shouldReconcile='true' />
    <dependent path="/screening/dm.dob_"/>
    <dependent path="/screening/ds.consdt_"/>
</script>

The expressions below returns true if the previousValue was not set and should be used always with stringPath without any regards to the data type of the question that is checked. 


<s:lt>
    <s:length>
        <s:value>
            <s:stringPath path=".someQuestion:previousValue"/>
        </s:value>
    </s:length>
    <s:number value="1" />
</s:lt>



Need more help?

Please visit the Fountayn Contact Information page.