if (not(version:isPE()) or empty($remote-servers)) then process:runProcessByName('oxf.fr.home.process', 'load-local') else if ($has-remote) then process:runProcess('oxf.fr.home.process', 'load-remote') else process:runProcessByName('oxf.fr.home.process', 'ask-credentials') true false false true process:runProcessByName('oxf.fr.home.process', substring-before(substring-after(event('xxf:observerid'), 'fr-'), '-button')) for $form-maybe-upgraded in if ($upgrade) then xxf:call-xpl( 'oxf:/forms/orbeon/builder/form/add-template-bindings.xpl', ( 'data', 'bindings' ), ( xxf:call-xpl( 'oxf:/forms/orbeon/builder/form/deannotate.xpl', 'data', xxf:call-xpl( 'oxf:/forms/orbeon/builder/form/annotate.xpl', ( 'data', 'bindings' ), ( instance('fr-form'), xxf:element('components') ), 'data' ), 'data' ), instance('fr-components') ), 'data' ) else instance('fr-form') return frf:publish( $form-maybe-upgraded, if ($local-write) then '' else instance()/remote-server/url, $app, $form, if (not($local-write)) then instance()/remote-server/username else (), if (not($local-write)) then instance()/remote-server/password else (), $force-attachments ) process:runProcess('oxf.fr.home.process', 'error-message("database-error")') 20 1 0 0 Name Age Date of Birth Patient Lookup

- ​
- ​
- ​
- ​

Forms Started/Completed process:runProcessByName('oxf.fr.home.process', 'confirmation-cancel') process:runProcessByName('oxf.fr.home.process', 'confirmation-ok') process:runProcessByName('oxf.fr.home.process', if (event('fr-connect')) then 'credentials-ok' else 'credentials-cancel')