Summary
This script is written to get partial information from a field, column 12, in an import file. The visit code, as recorded by the lab in this case, is a decimal number (ie. 1.2 or 4.3). For the purposes of this trial, we only need to know about the main visit number which is the integer portion of the input. To achieve this, we run the floor command on the input from column 12 in the import file, in this case a delimited text file. This removes the decimal portion of the number so we can determine which visit the data belongs to. We then convert the input back to a string, which is what the casebook is expecting.
Script
<script scriptId="getVisitCode"> <body> <s:toString> <s:floor> <s:toNumber> <s:import inputPath="12"/> </s:toNumber> </s:floor> </s:toString> </body> </script>
Need more help?
Please visit the Fountayn Contact Information page.