Summary

This script is written to determine if the import should import the data into the unscheduled visit. The visit code, as recorded by the lab in this case, is a decimal number (ie. 1.2 or 4.3). Therefore, the script first uses a regular expression check on the format of the code and if it is a decimal it imports column 12 from the import file into the unscheduled visit. 


Script

<script scriptId="setUnscheduledVisitCode">
    <body>
        <s:if>
            <s:regex pattern="d+[.]d*">
                <s:import inputPath="12"/>
            </s:regex>
            <s:import inputPath="12"/>
            <s:string value=""/>
        </s:if>
    </body>
</script>



Need more help?

Please visit the Fountayn Contact Information page.