patientinfo.xrw 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  3. <xhtml:head>
  4. <xhtml:title>환자정보 저장</xhtml:title>
  5. <model id="model1">
  6. <instance id="instance1">
  7. <root xmlns="">
  8. <example>Sample</example>
  9. <source>
  10. <a>1</a>
  11. </source>
  12. </root>
  13. </instance>
  14. </model>
  15. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  16. </xhtml:head>
  17. <xhtml:body>
  18. <button id="button1" style="left:300px; top:40px; width:100px; height:20px; ">
  19. <caption>setPatientInfo</caption>
  20. <script type="javascript" ev:event="DOMActivate">
  21. <![CDATA[
  22. alert( setPatientInfo("pid", "12345678"));
  23. // setPatientInfo("pname", "12345678|향단이");
  24. // setPatientInfo("age", "12345678|54/M");
  25. // setPatientInfo("addr", "12345678|서울시 반포구 반포12동");
  26. // setPatientInfo("insukind", "12345678|건강보험");
  27. // setPatientInfo("ininfo", "12345678|74병동 0725호 입원일 2006-01-10 HD[10]");
  28. // setPatientInfo("body", "12345678|Ht165cm 67k이g");
  29. // setPatientInfo("btype", "12345678|A+");
  30. // setPatientInfo("orddept", "12345678|(심장내과)내과");
  31. // setPatientInfo("apntdr", "12345678|성춘향");
  32. // setPatientInfo("attndr", "12345678|홍길동");
  33. // setPatientInfo("diagnosis", "12345678|확정(주)진단 정보........................................................");
  34. // setPatientInfo("operation", "12345678|수술1\n수술2");
  35. // setPatientInfo("allergy", "12345678|알러지정보");
  36. // setPatientInfo("infection", "12345678|감염정보");
  37. // setPatientInfo("intncare", "12345678|Y");
  38. // setPatientInfo("cp", "12345678|Y");
  39. ]]>
  40. </script>
  41. </button>
  42. <button id="button2" style="left:300px; top:75px; width:100px; height:20px; ">
  43. <caption>setPatientInfos</caption>
  44. <script type="javascript" ev:event="DOMActivate">
  45. <![CDATA[
  46. setPatientInfos("12345678|향단이|54/M|서울시 반포구 반포12동|건강보험|74병동 0725호 입원일 2006-01-10 HD[10]|Ht165cm 67kg|A+|(심장내과)내과|성춘향|홍길동|확정(주)진단 정보........................................................|수술1\r\n수술2|알러지정보|감염정보|Y|Y");
  47. ]]>
  48. </script>
  49. </button>
  50. <button id="button3" style="left:455px; top:40px; width:100px; height:20px; ">
  51. <caption>getPatientInfo</caption>
  52. <script type="javascript" ev:event="DOMActivate">
  53. <![CDATA[
  54. alert(getPatientInfo("pid"));
  55. // alert(getPatientInfo("pname"));
  56. // alert(getPatientInfo("age"));
  57. // alert(getPatientInfo("addr"));
  58. // alert(getPatientInfo("insukind"));
  59. // alert(getPatientInfo("ininfo"));
  60. // alert(getPatientInfo("body"));
  61. // alert(getPatientInfo("btype"));
  62. // alert(getPatientInfo("orddept"));
  63. // alert(getPatientInfo("apntdr"));
  64. // alert(getPatientInfo("attndr"));
  65. // alert(getPatientInfo("diagnosis"));
  66. // alert(getPatientInfo("operation"));
  67. // alert(getPatientInfo("allergy"));
  68. // alert(getPatientInfo("infection"));
  69. // alert(getPatientInfo("intncare"));
  70. // alert(getPatientInfo("cp"));
  71. ]]>
  72. </script>
  73. </button>
  74. <button id="button4" style="left:455px; top:75px; width:100px; height:20px; ">
  75. <caption>getPatientInfos</caption>
  76. <script type="javascript" ev:event="DOMActivate">
  77. <![CDATA[
  78. alert(getPatientInfos());
  79. ]]>
  80. </script>
  81. </button>
  82. <button id="button5" style="left:455px; top:115px; width:100px; height:20px; ">
  83. <caption>getPatientId</caption>
  84. <script type="javascript" ev:event="DOMActivate">
  85. <![CDATA[
  86. alert(getPatientId())
  87. ]]>
  88. </script>
  89. </button>
  90. <button id="button6" style="left:455px; top:150px; width:115px; height:20px; ">
  91. <caption>getPatientName</caption>
  92. <script type="javascript" ev:event="DOMActivate">
  93. <![CDATA[
  94. alert(getPatientName());
  95. ]]>
  96. </script>
  97. </button>
  98. <button id="button7" style="left:635px; top:40px; width:133px; height:20px; ">
  99. <caption>navigateMain</caption>
  100. <script type="javascript" ev:event="DOMActivate">
  101. <![CDATA[
  102. var main = getMainViewer();
  103. if (main != null){
  104. var nodeObj = instance1.selectSingleNode("/root/source").cloneNode(true);
  105. main.model.makeNode("/root/source");
  106. main.model.copyNode("/root/source", nodeObj);
  107. alert(main.instance1.xml);
  108. main.javascript.navigate("SMTMP01100", "", "", "", "", "/root/source", "/root/target");
  109. }
  110. ]]>
  111. </script>
  112. </button>
  113. <button id="button8" style="left:635px; top:80px; width:125px; height:20px; ">
  114. <caption>setGlobalVariable</caption>
  115. <script type="javascript" ev:event="DOMActivate">
  116. <![CDATA[
  117. setGlobalVariable("consult", model.getValue("/root/example")) ;
  118. ]]>
  119. </script>
  120. </button>
  121. <button id="button9" style="left:635px; top:120px; width:125px; height:20px; ">
  122. <caption>getGlobalVariable</caption>
  123. <script type="javascript" ev:event="DOMActivate">
  124. <![CDATA[
  125. alert(getGlobalVariable("consult"));
  126. ]]>
  127. </script>
  128. </button>
  129. <button id="button10" style="left:635px; top:150px; width:125px; height:20px; ">
  130. <caption>setGlobalVariable</caption>
  131. <script type="javascript" ev:event="DOMActivate">
  132. <![CDATA[
  133. setGlobalVariable("consult", model.getValue("/root/source/a"), "p") ;
  134. ]]>
  135. </script>
  136. </button>
  137. <button id="button11" style="left:635px; top:190px; width:125px; height:20px; ">
  138. <caption>getGlobalVariable</caption>
  139. <script type="javascript" ev:event="DOMActivate">
  140. <![CDATA[
  141. alert(getGlobalVariable("consult", "p"));
  142. ]]>
  143. </script>
  144. </button>
  145. </xhtml:body>
  146. </xhtml:html>