Summary

This command returns the number associated with the record ID as a String data type.


Attributes

  • none

Parameters

  • none

Example

The record ID value is used here as a unique and non-alterable record identifier to build the name of a per record local variable. This implementation is extremely useful when the subject/patient’s identifier on the eCRF may change during the trial (transition from a screening number based to a randomization number based identifier).

<script scriptId="setAEseq">
    <body>
        <s:if>
            <s:not>
                <s:isSet>
                    <s:question>
                        <s:question path=".AENO" />
                    </s:question>
                </s:isSet>
            </s:not>
            <s:list>
                <s:incrementProperty>
                    <s:name>
                        <s:concat>
                            <s:string value="AEseq_"/>

                            <s:recordID/>

                        </s:concat>
                    </s:name>
                    <s:step>
                        <s:number value="1"/>
                    </s:step>
                    <s:default>
                        <s:number value="0"/>
                    </s:default>
                </s:incrementProperty>
                <s:if>
                    <s:lt>
                        <s:toNumber>
                            <s:local>
                                <s:concat>
                                    <s:string value="AEseq_"/>
                                    <s:recordID/>
                                </s:concat>
                            </s:local>
                        </s:toNumber>
                        <s:number value="10"/>
                    </s:lt>
                    <s:assign>
                        <s:question path=".AENO"/>
                        <s:concat>
                            <s:string value="00"/>
                            <s:local>
                                <s:concat>
                                    <s:string value="AEseq_"/>
                                    <s:recordID/>
                                </s:concat>
                            </s:local>
                        </s:concat>
                    </s:assign>
                </s:if>
                <s:if>
                    <s:and>
                        <s:lt>
                            <s:toNumber>
                                <s:local>
                                    <s:concat>
                                        <s:string value="AEseq_"/>
                                        <s:recordID/>
                                    </s:concat>
                                </s:local>
                            </s:toNumber>
                            <s:number value="100"/>
                        </s:lt>
                        <s:gte>
                            <s:toNumber>
                                <s:local>
                                    <s:concat>
                                        <s:string value="AEseq_"/>
                                        <s:recordID/>
                                    </s:concat>
                                </s:local>
                            </s:toNumber>
                            <s:number value="10"/>
                        </s:gte>
                    </s:and>
                    <s:assign>
                        <s:question path=".AENO"/>
                        <s:concat>
                            <s:string value="0"/>
                            <s:local>
                                <s:concat>
                                    <s:string value="AEseq_"/>
                                    <s:recordID/>
                                </s:concat>
                            </s:local>
                        </s:concat>
                    </s:assign>
                </s:if>
                <s:if>
                    <s:and>
                        <s:lt>
                            <s:toNumber>
                                <s:local>
                                    <s:concat>
                                        <s:string value="AEseq_"/>
                                        <s:recordID/>
                                    </s:concat>
                                </s:local>
                            </s:toNumber>
                            <s:number value="999"/>
                        </s:lt>
                        <s:gte>
                            <s:toNumber>
                                <s:local>
                                    <s:concat>
                                        <s:string value="AEseq_"/>
                                        <s:recordID/>
                                    </s:concat>
                                </s:local>
                            </s:toNumber>
                            <s:number value="100"/>
                        </s:gte>
                    </s:and>
                    <s:assign>
                        <s:question path=".AENO"/>
                        <s:local>
                            <s:concat>
                                <s:string value="AEseq_"/>
                                <s:recordID/>
                            </s:concat>
                        </s:local>
                    </s:assign>
                </s:if>
            </s:list>
        </s:if>
    </body>
    <target typeId="AECD" when="after"/>
</script>



Need more help?

Please visit the Fountayn Contact Information page.