Calling Terminology Browser from other Apps

Aus Termserver-CTS2
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
(Parameters)
(Parameters)
Zeile 27: Zeile 27:
 
     <td>0, 1</td>
 
     <td>0, 1</td>
 
     <td>Hides the statusbar in the bottom</td>
 
     <td>Hides the statusbar in the bottom</td>
 +
  </tr>
 +
  <tr>
 +
    <td>sendBack</td>
 +
    <td>false, true</td>
 +
    <td>Shows the button "assume concept" and sends the concept information back to the calling app</td>
 +
  </tr>
 +
  <tr>
 +
    <td>loadName</td>
 +
    <td>String</td>
 +
    <td>The name of a codesystem to show. The current version will be shown. (either loadId, loadName or loadOID is required)</td>
 +
  </tr>
 +
  <tr>
 +
    <td>loadId</td>
 +
    <td>Number</td>
 +
    <td>The codesystem version id from the Terminology Server. (either loadId, loadName or loadOID is required)</td>
 +
  </tr>
 +
  <tr>
 +
    <td>loadOID</td>
 +
    <td>String</td>
 +
    <td>The OID of the codesystem version. (either loadId, loadName or loadOID is required)</td>
 +
  </tr>
 +
  <tr>
 +
    <td></td>
 +
    <td></td>
 +
    <td></td>
 
   </tr>
 
   </tr>
 
</table>
 
</table>

Version vom 18. Dezember 2014, 12:29 Uhr

This site shows you how to call the Terminology Browser from another ZK application. It is possible to call it from any javascript app, therefore you have to change the code.

Inhaltsverzeichnis

Parameters

You can add the following parameters when you open the Browser.

Parameter Possible values Description
loadType "CodeSystem", "CS", "ValueSet", "VS" Specifies whether to open a code system or a value set
hideSelection 0, 1 Hides the code system selection on the left side
hideMenu 0, 1 Hides the menu on the top
hideStatusbar 0, 1 Hides the statusbar in the bottom
sendBack false, true Shows the button "assume concept" and sends the concept information back to the calling app
loadName String The name of a codesystem to show. The current version will be shown. (either loadId, loadName or loadOID is required)
loadId Number The codesystem version id from the Terminology Server. (either loadId, loadName or loadOID is required)
loadOID String The OID of the codesystem version. (either loadId, loadName or loadOID is required)

Call Terminology Browser from a ZK app

This example requires a zul file and java file behind.

Window (ZUL)

Insert the following code into your zul file inside the window tag.

<script type="text/javascript">
  function receiveMessage(event)
  {               
    var widgetMainWindow = zk.Widget.$('$mainWindow');
    var e = new zk.Event(widgetMainWindow, "onSendBack", event.data);                                
    zAu.send(e);                          
  }      
  window.addEventListener("message", receiveMessage, false);
</script>

Code (java)

Insert this code into your java file to receive the answer message and to call the Browser in a modal window.

 
Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
Werkzeuge