Summary

This command returns the provided string in all upper case.


Note: Scripts cannot be used to upper case Partial Dates. 


Attributes

  • none

Parameters

  • one string command

Example

<script scriptId="DOB_to_upper">
    <body>
        <s:if>
            <s:isSet/>
            <s:assign>
                <s:question path="/v01/demog.dmdobdt"/>
                
                <s:upper>
                    <s:stringPath path=":value"/>
                </s:upper>
                
            </s:assign>
        </s:if>
    </body>
    <target typeId="dmdobdt" when='preprocess' shouldReconcile='true'/>
</script>

Advanced Example

This example allows you to specify multiple targets if you want to apply upper casing to many different fields. Using the “.” in the question path within the assignment command specifies that it should assign the value back to the target.

<script scriptId="Str_to_upper">
    <body>
        <s:if>
            <s:isSet/>
            <s:assign>
                <s:question path="."/>

                <s:upper>
                    <s:stringPath path=":value"/>
                </s:upper>

            </s:assign>
        </s:if>
    </body>
  <target typeId="patnum" when='preprocess' shouldReconcile='true'/>
  <target typeId="patinit" when='preprocess' shouldReconcile='true'/>
  <target typeId="raceoth" when='preprocess' shouldReconcile='true'/>
  <target typeId="aemt" when='preprocess' shouldReconcile='true'/>
  <target typeId="aepatsp" when='preprocess' shouldReconcile='true'/>
  <target typeId="aeoutsp" when='preprocess' shouldReconcile='true'/>
  <target typeId="usreason" when='preprocess' shouldReconcile='true'/>
</script>



Need more help?

Please visit the Fountayn Contact Information page.