Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <table style="border-spacing: 10px; border-collapse: separate;" xmlns="http://www.w3.org/1999/xhtml">
- <tr>
- <th>Domain</th>
- <th>URNO</th>
- <th>Full Name</th>
- <th>Sex</th>
- <th>Date Of Birth</th>
- <th></th>
- </tr>
- <xf:repeat id="search-list" ref="instance('search-results')/results">
- <tr>
- <td>
- <xf:output ref="xxf:split(masterPatientIdentifier, ':')[1]" />
- </td>
- <td>
- <xf:output ref="xxf:split(masterPatientIdentifier, ':')[2]" />
- </td>
- <td>
- <xf:output ref="concat(firstName, ', ', lastName)" />
- </td>
- <td>
- <xf:output ref="sex" />
- </td>
- <td>
- <xf:output ref="dob" />
- </td>
- <td>
- <xf:trigger appearance="minimal">
- <xf:label ref="'Select'"/>
- <xf:action event="DOMActivate">
- <!-- Delete the value in the current patient binding -->
- <xf:delete ref="xxf:binding('workflow-rest-search')/*"/>
- <!-- Save the position we are in the list +1 as when finding the position it starts from 1 -->
- <xf:var name="index" value="count(preceding-sibling::*[name() = name(current())]) + 1"/>
- <!-- Insert the Context from the instance back into the binding of the form -->
- <xf:insert context="xxf:binding('workflow-rest-search')" origin="instance('search-results')/results[$index]/*"/>
- <!-- Hide the dialogue after selection -->
- <xxf:hide dialog="my-dialog-id"/>
- </xf:action>
- </xf:trigger>
- </td>
- </tr>
- </xf:repeat>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement