Summary
This article covers a script example of checking duplicate entry.
Table of Contents
Description
This script takes a question value as input and checks every other instance of that question on a set of dynamic forms to determine if that specific lesion already exists for that patient. This is a basic edit check.
Script
<script scriptId="checkDuplicateLesion">
<body>
<s:alert>
<s:expression>
<s:not>
<s:isDuplicate>
<s:question path="/diseaseEvalSum/tumorMeas[n].tumCode"/>
</s:isDuplicate>
</s:not>
</s:expression>
<s:correction>
<s:string value="optional"/>
</s:correction>
<s:text>
<s:string value="This 'Lesion code' has already been used for this subject for a new measurable disease evaluation. Please verify."/>
</s:text>
</s:alert>
</body>
<target typeId="tumCode" when="preprocess" shouldReconcile='true' />
</script>Need more help?
Please visit the Fountayn Contact Information page.