SMMNF00300_가정간호간호정보조사.xrw 79 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>가정간호간호정보조사</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <wardrecinfo>
  11. <bfrecddtm/>
  12. <bfrecdd/>
  13. <bfrecuser/>
  14. <bfrectm/>
  15. <recdd/>
  16. <rectm/>
  17. <recuser/>
  18. <infooffer/>
  19. <patinfo/>
  20. <infooffer/>
  21. <signno/>
  22. <room/>
  23. <patnm/>
  24. <sex/>
  25. <age/>
  26. <pid/>
  27. </wardrecinfo>
  28. </main>
  29. <send>
  30. <req/>
  31. <patgnrlinfo/>
  32. <wardrecinfo/>
  33. <bodyases/>
  34. </send>
  35. <init>
  36. <mlist>
  37. <M0068>
  38. <cdid/>
  39. <cdnm/>
  40. </M0068>
  41. <M0069>
  42. <cdid/>
  43. <cdnm/>
  44. </M0069>
  45. <M0070>
  46. <cdid/>
  47. <cdnm/>
  48. </M0070>
  49. <M0071>
  50. <cdid/>
  51. <cdnm/>
  52. </M0071>
  53. <M0072>
  54. <cdid/>
  55. <cdnm/>
  56. </M0072>
  57. <M0073>
  58. <cdid/>
  59. <cdnm/>
  60. </M0073>
  61. <M0074>
  62. <cdid/>
  63. <cdnm/>
  64. </M0074>
  65. </mlist>
  66. </init>
  67. <hidden>
  68. <paminfo/>
  69. <histinfo/>
  70. <wardrecinfo/>
  71. <bodyases>
  72. <mfmdstatinfo/>
  73. <shpaininfo/>
  74. <resorgninfo/>
  75. <digorgninfo/>
  76. <nvesysinfo/>
  77. <skinsectinfo/>
  78. </bodyases>
  79. </hidden>
  80. <temp>
  81. <cond>
  82. <list>
  83. <roomcd/>
  84. <hngnm/>
  85. <sex/>
  86. <age/>
  87. <pid/>
  88. <indd/>
  89. <instcd/>
  90. <orddeptcd/>
  91. <reqdd/>
  92. </list>
  93. </cond>
  94. </temp>
  95. <signinfo>
  96. <signno/>
  97. </signinfo>
  98. <codeinfo/>
  99. </root>
  100. </instance>
  101. <script type="javascript" ev:event="xforms-ready">
  102. <![CDATA[
  103. fGetCmbList();
  104. fInit();
  105. fGetInitRecInfo();
  106. fInitEvent();
  107. model.refresh();
  108. ]]>
  109. </script>
  110. <script type="javascript">
  111. <![CDATA[
  112. var allgInsYN = "Y";
  113. function fGetCmbList() {
  114. model.removeNodeset("/root/init/mlist");
  115. model.makeNode("/root/init/mlist");
  116. fGetNursHardCdInfo("'077','172','177','W25'", getCurrentDate()); //CareCom.js
  117. zbcfGetCodeList( new Array ( "M0068" //직업
  118. ,"M0069" //교육정도
  119. ,"M0070" //종교
  120. ,"M0071" //결혼상태
  121. ,"M0151" //결혼상태
  122. ,"M0072" //관계
  123. ,"M0073" //부위
  124. ,"M0376" //혈액형
  125. ,"M0075" //의식상태
  126. ,"M0088" //생존여부
  127. ,"M0090" //알러지
  128. ,"M0098" //알러지
  129. ,"M0100" //지남력
  130. ,"M0102" //요흔
  131. ,"M0103" //부착기구
  132. ,"M0104" //소변색깔
  133. ,"M0105" //소변증상
  134. ,"M0106" //대변색깔
  135. ,"M0107" //대변종류
  136. ,"M0109" //동공빛반사여부
  137. ,"M0110" //동공수치
  138. ,"M0411" //영적요구
  139. ,"M0375" //체온부위
  140. ,"M0368" //가족병력내역
  141. ,"P0008" //보험유형
  142. ,"M0532" //과거병력내역_20090406_SMY추가
  143. )
  144. , new Array ( "/root/init/mlist" //직업
  145. ,"/root/init/mlist" //교육정도
  146. ,"/root/init/mlist" //종교
  147. ,"/root/init/mlist" //결혼상태
  148. ,"/root/init/mlist" //결혼상태
  149. ,"/root/init/mlist" //관계
  150. ,"/root/init/mlist" //부위
  151. ,"/root/init/mlist" //혈액형
  152. ,"/root/init/mlist" //의식상태
  153. ,"/root/init/mlist" //생존여부
  154. ,"/root/init/mlist" //알러지
  155. ,"/root/init/mlist" //동반자
  156. ,"/root/init/mlist" //지남력
  157. ,"/root/init/mlist" //요흔
  158. ,"/root/init/mlist" //부착기구
  159. ,"/root/init/mlist" //소변색깔
  160. ,"/root/init/mlist" //소변증상
  161. ,"/root/init/mlist" //대변색깔
  162. ,"/root/init/mlist" //대변종류
  163. ,"/root/init/mlist" //동공빛반사여부
  164. ,"/root/init/mlist" //동공수치
  165. ,"/root/init/mlist" //영적요구
  166. ,"/root/init/mlist" //체온부위
  167. ,"/root/init/mlist" //가족병력내역
  168. ,"/root/init/mlist" //보험유형
  169. ,"/root/init/mlist" //과거병력내역
  170. )
  171. );
  172. model.refresh();
  173. }
  174. function fInitEvent() {
  175. fInitEventBdAses();
  176. fInitEventHomeCareInfo();
  177. }
  178. //화면 로딩시
  179. function fInit(){
  180. model.removeNodeset("/root/main/wardrecinfo/dschmediinfo/dschmedi/dschdrugfactinfo");
  181. model.makeNode("/root/temp/cond");
  182. model.copyNode("/root/hidden/wardrecinfo", "/root/main/wardrecinfo");
  183. model.copyNode("/root/hidden/histinfo", "/root/main/histinfo");
  184. model.makeValue("/root/hidden/histinfo/pasthistinfo/pasthist/pasthistinclyn", "1");
  185. model.makeValue("/root/hidden/histinfo/famyhistinfo/famyhist/famyhistinclyn", "1");
  186. model.makeValue("/root/hidden/histinfo/inhistinfo/inhist/inhistinclyn", "1");
  187. model.makeValue("/root/hidden/histinfo/ophistinfo/ophist/ophistinclyn", "1");
  188. model.makeValue("/root/hidden/wardrecinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn", "1");
  189. model.makeValue("/root/hidden/histinfo/allghistinfo/allghist/allghistinclyn", "1");
  190. model.makeValue("/root/hidden/histinfo/vacnhistinfo/vacnhist/vacnhistinfoinclyn", "1");
  191. model.makeValue("/root/hidden/histinfo/smokinfo/smok/smokinclyn", "1");
  192. model.makeValue("/root/hidden/histinfo/drunkinfo/drunk/drunkinclyn", "1");
  193. model.makeValue("/root/hidden/histinfo/gustofoodinfo/gustofood/gustofoodinclyn", "1");
  194. model.makeValue("/root/hidden/histinfo/tnsseffcinfo/tnsseffc/tnsseffcinclyn", "1");
  195. model.copyNode("/root/hidden/bodyases/shpaininfo", "/root/main/wardrecinfo/shpaininfo");
  196. model.makeValue("/root/hidden/bodyases/shpaininfo/shpain/shpaininfoinclyn", "1");
  197. model.copyNode("/root/hidden/bodyases/nvesysinfo", "/root/main/wardrecinfo/nvesysinfo");
  198. model.makeValue("/root/hidden/bodyases/nvesysinfo/nvesys/nvesysinfoinclyn", "1");
  199. //각 화면 상단에 선택된 환자 정보 display 필요함. (병실-성명-S/A-등록번호)
  200. var pid;
  201. var room;
  202. var patnm;
  203. var sex;
  204. var age;
  205. var instcd;
  206. var orddeptcd;
  207. var indd;
  208. var cretno;
  209. //가정간호 화면에서 파라미터 넘겨줌(의뢰일 별로 1장씩 작성함 : indd인스턴스에 의뢰일자를 넘겨줌)
  210. room = model.getValue("/root/temp/cond/list/roomcd");
  211. patnm = model.getValue("/root/temp/cond/list/hngnm");
  212. sex = model.getValue("/root/temp/cond/list/sex");
  213. age = model.getValue("/root/temp/cond/list/age");
  214. pid = model.getValue("/root/temp/cond/list/pid");
  215. indd = model.getValue("/root/temp/cond/list/indd");
  216. instcd = model.getValue("/root/temp/cond/list/instcd");
  217. orddeptcd = model.getValue("/root/temp/cond/list/orddeptcd");
  218. cretno = model.getValue("/root/temp/cond/list/cretno");
  219. ioflag = model.getValue("/root/temp/cond/list/ioflag");
  220. model.makeValue("/root/main/wardrecinfo/room", room);
  221. model.makeValue("/root/main/wardrecinfo/patnm", patnm);
  222. model.makeValue("/root/main/wardrecinfo/sex", sex);
  223. model.makeValue("/root/main/wardrecinfo/age", age);
  224. model.makeValue("/root/main/wardrecinfo/pid", pid);
  225. var scrnid =getScreenID();
  226. var param = "pid▦orddd▦cretno▦ordtype▦scrnid"
  227. +"▩" + pid+"▦" +indd+"▦"+cretno+"▦"+ioflag+"▦"+scrnid+"▩";
  228. fEnrCareComRecInfo_SPMNZ002(param, "/root/main/enrcarecomrecinfo"); //타 간호정보조사지기록 유무확인 model.refresh();
  229. model.refresh();
  230. }
  231. function fGetInitRecInfo() {
  232. var pid = model.getValue("/root/temp/cond/list/pid");
  233. var indd = model.getValue("/root/temp/cond/list/indd");
  234. var instcd = model.getValue("/root/temp/cond/list/instcd");
  235. var orddeptcd = model.getValue("/root/temp/cond/list/orddeptcd");
  236. // var cretno = '1';//가정간호는 default로 1을 넘긴다
  237. var cretno = model.getValue("/root/temp/cond/list/cretno"); // 컨설트의 cretno가 파라메터로 넘어가도록 셋팅(2010.02.22 hhm)
  238. //var instUseYN = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='172']/cdid");//교육요구도 추가 20091216 김홍점
  239. var instUseYN ="";//20100510 외래 공통 교육요구도 개발에 의한 SPMRJ00300_교육요구도사정 사용안함.소경화itc요청
  240. //웹용 인자값 셋팅
  241. model.makeValue("/root/send/req/pid", pid);
  242. model.makeValue("/root/send/req/indd", indd);
  243. model.makeValue("/root/send/req/cretno", cretno); // 추가 (2010.02.22 hhm)
  244. model.makeValue("/root/send/req/instcd", instcd);
  245. model.makeValue("/root/send/req/recflag", "09");
  246. model.makeValue("/root/send/req/docucode", "0000002493");
  247. model.makeValue("/root/send/req/deptcd", orddeptcd);
  248. if(pid == "") {
  249. messageBox("환자를 선택하지 ", "E007");
  250. window.close();
  251. } else {
  252. if(instUseYN == "Y"){
  253. btn_edurec.visible = true;
  254. grp_patinfo.attribute("style")="left:310px; top:50px; width:640px; height:20px;" ;
  255. setParameter("SPMRJ00300_pid", pid);
  256. setParameter("SPMRJ00300_orddd", indd);
  257. setParameter("SPMRJ00300_cretno", cretno);
  258. ivw_edurec.src = "../../../emr/jcimngtweb/xrw/SPMRJ00300_교육요구도사정.xrw";
  259. ivw_edurec.group2.visible = false;
  260. }else{
  261. grp_patinfo.attribute("style")="left:210px; top:50px; width:640px; height:20px;" ;
  262. btn_edurec.visible = false;
  263. }
  264. submit("TRMNF00301", "false");//저장후 삭제(K), 신규(I), 수정(U)
  265. var exeflag = model.getValue("/root/hidden/paminfo/paminfo/exeflag");
  266. if(exeflag == 'U') {
  267. submit("TRMNF00302", "false");
  268. //인증번호set_20090722_SMY
  269. model.setValue("/root/signinfo/signno", model.getValue("/root/main/wardrecinfo/signno"));
  270. var existfamyinfo = model.getValue("/root/main/wardrecinfo/existfamyinfo");
  271. setParameter("SPMMR04711_shape", fGetXmlToStr("/root/main/wardrecinfo/genogrmnm/XMD"));
  272. //마지막 기록일시 셋팅
  273. model.setValue("/root/main/wardrecinfo/bfrecddtm", model.getValue("/root/hidden/paminfo/recinfo[recflag = '09' and indd = '" + indd + "']/recpkspec"));
  274. model.setValue("/root/main/wardrecinfo/bfrecuser", model.getValue("/root/hidden/paminfo/recinfo[recflag = '09' and indd = '" + indd + "']/bfrecuser"));
  275. } else {
  276. //이전 기록이 있을 경우 가장 최근의 정보 자동 셋팅
  277. if(model.getValue("/root/hidden/paminfo/recinfo/recpkspec") != ""){
  278. model.setValue("/root/main/wardrecinfo/bfrecddtm", model.getValue("/root/hidden/paminfo/recinfo/recpkspec"));
  279. fChgRecHistInfo();
  280. }else{
  281. submit("TRMNF00304", "false");
  282. var exist = model.getValue("/root/hidden/cominfo/histinfo/existyn");
  283. var existfamyinfo = model.getValue("/root/hidden/cominfo/famyinfo/existfamyinfo");
  284. setParameter("SPMMR04711_shape", fGetXmlToStr("/root/hidden/cominfo/famyinfo/genogrmnm/XMD"));
  285. //가족사항 연동부분
  286. model.removeNodeset("/root/main/famyfact");
  287. if(getNodesetCount("/root/hidden/cominfo/famyfact") > 0){
  288. for(var i=1; i <= getNodesetCount("/root/hidden/cominfo/famyfact"); i++) {
  289. if(model.getValue("/root/hidden/cominfo/famyfact["+ i +"]/rela") != ""){
  290. model.duplicate("/root/main", "/root/hidden/cominfo/famyfact["+ i +"]");
  291. }
  292. }
  293. }
  294. if(exist == "N") {
  295. model.copyNode("/root/main/histinfo", "/root/hidden/histinfo");
  296. model.setValue("/root/main/histinfo/pasthistinfo/pasthist/pasthistinclyn", "");
  297. model.setValue("/root/main/histinfo/famyhistinfo/famyhist/famyhistinclyn", "");
  298. model.setValue("/root/main/histinfo/inhistinfo/inhist/inhistinclyn", "");
  299. model.setValue("/root/main/histinfo/ophistinfo/ophist/ophistinclyn", "");
  300. model.setValue("/root/main/wardrecinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn", "");
  301. model.setValue("/root/main/histinfo/allghistinfo/allghist/allghistinclyn", "");
  302. model.setValue("/root/main/histinfo/vacnhistinfo/vacnhist/vacnhistinfoinclyn", "");
  303. model.setValue("/root/main/histinfo/smokinfo/smok/smokinclyn", "");
  304. model.setValue("/root/main/histinfo/drunkinfo/drunk/drunkinclyn", "");
  305. model.setValue("/root/main/histinfo/gustofoodinfo/gustofood/gustofoodinclyn", "");
  306. model.setValue("/root/main/histinfo/tnsseffcinfo/tnsseffc/tnsseffcinclyn", "");
  307. } else {
  308. model.copyNode("/root/main/histinfo", "/root/hidden/cominfo/histinfo");
  309. }
  310. model.setValue("/root/main/wardrecinfo/religncd", model.getValue("/root/hidden/paminfo/paminfo/religncd"));
  311. model.setValue("/root/main/wardrecinfo/baptnm", model.getValue("/root/hidden/paminfo/paminfo/baptnm"));
  312. model.setValue("/root/main/wardrecinfo/tel", model.getValue("/root/temp/cond/list/tel"));
  313. model.setValue("/root/main/wardrecinfo/mphone", model.getValue("/root/temp/cond/list/mphone"));
  314. model.setValue("/root/main/wardrecinfo/etcphone1", model.getValue("/root/temp/cond/list/etcphone1"));
  315. model.setValue("/root/main/wardrecinfo/etcphone2", model.getValue("/root/temp/cond/list/etcphone2"));
  316. //model.setValue("/root/main/wardrecinfo/diagnm", model.getValue("/root/temp/cond/list/diagnm"));
  317. //model.setValue("/root/main/wardrecinfo/atdoctcd", model.getValue("/root/temp/cond/list/orddrnm"));
  318. //model.setValue("/root/main/wardrecinfo/reqdd", model.getValue("/root/temp/cond/list/reqdd"));
  319. //기록일시 정보를 쿼리에서 가져옴
  320. model.setValue("/root/main/wardrecinfo/recdd", model.getValue("/root/hidden/paminfo/paminfo/recdd"));
  321. model.setValue("/root/main/wardrecinfo/rectm", model.getValue("/root/hidden/paminfo/paminfo/rectm"));
  322. model.setValue("/root/main/wardrecinfo/recuser", model.getValue("/root/hidden/paminfo/paminfo/recuser"));
  323. }
  324. }
  325. //XML 타입에 노드가 추가됨에 따라 존재하지 않는 노드들 추가 김홍점
  326. var bdwtchngtermflag= instance1.selectSingleNode("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/bdwtchngtermflag");
  327. if ( bdwtchngtermflag == null ) {
  328. model.makeValue("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/bdwtchngtermflag","");
  329. }
  330. var constipt= instance1.selectSingleNode("/root/main/wardrecinfo/stoolinfo/stool/stoolconstipation");
  331. if ( constipt == null ) {
  332. model.makeValue("/root/main/wardrecinfo/stoolinfo/stool/stoolconstipation","");
  333. }
  334. var endmensage= instance1.selectSingleNode("/root/main/wardrecinfo/femaleinfo/female/female/endmensage");
  335. if ( endmensage == null ) {
  336. model.makeValue("/root/main/wardrecinfo/femaleinfo/female/female/endmensage","");
  337. }
  338. //가계도 연동부분.
  339. if(existfamyinfo == "Y") {
  340. model.setValue("/root/main/wardrecinfo/famytree/existyn", "Y");
  341. opt_existyn.refresh();
  342. }
  343. }
  344. status = "select";
  345. if(grd_allghist.rows > 1) {
  346. for(var i = 0; i < grd_allghist.cols; i++) {
  347. if(grd_allghist.valueMatrix(1, i) != "") {
  348. allgInsYN = "N";
  349. }
  350. }
  351. }
  352. model.refresh();
  353. }
  354. function fGetXmlToStr(xPath) {
  355. var str = instance1.selectNodesXml(xPath);
  356. return str;
  357. }
  358. function fChkInclYN() {
  359. //신체사정XML
  360. var shpaininfoyn = model.getValue("/root/main/wardrecinfo/shpaininfo/shpain/shpaininfoinclyn");
  361. var nvesysinfoyn = model.getValue("/root/main/wardrecinfo/nvesysinfo/nvesys/nvesysinfoinclyn");
  362. //병력 XML
  363. var pasthistyn = model.getValue("/root/main/histinfo/pasthistinfo/pasthist/pasthistinclyn");
  364. var famyhistyn = model.getValue("/root/main/histinfo/famyhistinfo/famyhist/famyhistinclyn");
  365. var inhistyn = model.getValue("/root/main/histinfo/inhistinfo/inhist/inhistinclyn");
  366. var ophistyn = model.getValue("/root/main/histinfo/ophistinfo/ophist/ophistinclyn");
  367. var rectmedistatyn = model.getValue("/root/main/wardrecinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn");
  368. var allhistinclyn = model.getValue("/root/main/histinfo/allghistinfo/allghist/allghistinclyn");
  369. //신체사정
  370. if(shpaininfoyn == "1") {//통증 : 무(default)/유 선택20100122 김홍점
  371. model.makeValue("/root/send/wardrecinfo/shpaininfo", fGetXmlToStr("/root/hidden/bodyases/shpaininfo/shpain"));
  372. }else {
  373. model.makeValue("/root/send/wardrecinfo/shpaininfo", fGetXmlToStr("/root/main/wardrecinfo/shpaininfo/shpain"));
  374. }
  375. //신경계
  376. if(nvesysinfoyn == "1") {
  377. model.makeValue("/root/send/wardrecinfo/nvesysinfo", fGetXmlToStr("/root/hidden/bodyases/nvesysinfo/nvesys"));
  378. } else {
  379. model.makeValue("/root/send/wardrecinfo/nvesysinfo", fGetXmlToStr("/root/main/wardrecinfo/nvesysinfo/nvesys"));
  380. }
  381. //병력
  382. if(pasthistyn == "1") {
  383. model.makeValue("/root/send/wardrecinfo/pasthistinfo", fGetXmlToStr("/root/hidden/histinfo/pasthistinfo/pasthist"));
  384. } else {
  385. model.makeValue("/root/send/wardrecinfo/pasthistinfo", fGetXmlToStr("/root/main/histinfo/pasthistinfo/pasthist"));
  386. }
  387. if(famyhistyn == "1") {
  388. model.makeValue("/root/send/wardrecinfo/famyhistinfo", fGetXmlToStr("/root/hidden/histinfo/famyhistinfo/famyhist"));
  389. } else {
  390. model.makeValue("/root/send/wardrecinfo/famyhistinfo", fGetXmlToStr("/root/main/histinfo/famyhistinfo/famyhist"));
  391. }
  392. if(inhistyn == "1") {
  393. model.makeValue("/root/send/wardrecinfo/inhistinfo", fGetXmlToStr("/root/hidden/histinfo/inhistinfo/inhist"));
  394. } else {
  395. model.makeValue("/root/send/wardrecinfo/inhistinfo", fGetXmlToStr("/root/main/histinfo/inhistinfo/inhist"));
  396. }
  397. if(ophistyn == "1") {
  398. model.makeValue("/root/send/wardrecinfo/ophistinfo", fGetXmlToStr("/root/hidden/histinfo/ophistinfo/ophist"));
  399. } else {
  400. model.makeValue("/root/send/wardrecinfo/ophistinfo", fGetXmlToStr("/root/main/histinfo/ophistinfo/ophist"));
  401. }
  402. if(rectmedistatyn == "1") {
  403. model.makeValue("/root/send/wardrecinfo/rectmedistatinfo", fGetXmlToStr("/root/hidden/wardrecinfo/rectmedistatinfo/rectmedistat"));
  404. } else {
  405. model.makeValue("/root/send/wardrecinfo/rectmedistatinfo", fGetXmlToStr("/root/main/wardrecinfo/rectmedistatinfo/rectmedistat"));
  406. }
  407. if(allhistinclyn == "1") {
  408. model.makeValue("/root/send/wardrecinfo/allghistinfo", fGetXmlToStr("/root/hidden/histinfo/allghistinfo/allghist"));
  409. } else {
  410. model.makeValue("/root/send/wardrecinfo/allghistinfo", fGetXmlToStr("/root/main/histinfo/allghistinfo/allghist"));
  411. }
  412. //model.makeValue("/root/send/wardrecinfo/vacnhistinfo", fGetXmlToStr("/root/hidden/histinfo/vacnhistinfo/vacnhist"));
  413. //model.makeValue("/root/send/wardrecinfo/smokinfo", fGetXmlToStr("/root/hidden/histinfo/smokinfo/smok"));
  414. //model.makeValue("/root/send/wardrecinfo/drunkinfo", fGetXmlToStr("/root/hidden/histinfo/drunkinfo/drunk"));
  415. //model.makeValue("/root/send/wardrecinfo/gustofoodinfo", fGetXmlToStr("/root/hidden/histinfo/gustofoodinfo/gustofood"));
  416. //model.makeValue("/root/send/wardrecinfo/tnsseffcinfo", fGetXmlToStr("/root/hidden/histinfo/tnsseffcinfo/tnsseffc"));
  417. //다른 기록지에서 저장한 이력을 조회하여 저장한다.
  418. model.makeValue("/root/send/wardrecinfo/vacnhistinfo", fGetXmlToStr("/root/main/histinfo/vacnhistinfo/vacnhist"));
  419. model.makeValue("/root/send/wardrecinfo/smokinfo", fGetXmlToStr("/root/main/histinfo/smokinfo/smok"));
  420. model.makeValue("/root/send/wardrecinfo/drunkinfo", fGetXmlToStr("/root/main/histinfo/drunkinfo/drunk"));
  421. model.makeValue("/root/send/wardrecinfo/gustofoodinfo", fGetXmlToStr("/root/main/histinfo/gustofoodinfo/gustofood"));
  422. model.makeValue("/root/send/wardrecinfo/tnsseffcinfo", fGetXmlToStr("/root/main/histinfo/tnsseffcinfo/tnsseffc"));
  423. }
  424. function fPatgnrlInfo(certFlag) {
  425. var userid = getUserId();
  426. model.removeNodeset("/root/send/wardinfo");
  427. //환자기본정보
  428. model.makeValue("/root/send/wardrecinfo/privacy", model.getValue("/root/main/wardrecinfo/privacy"));
  429. model.makeValue("/root/send/wardrecinfo/jobcd", model.getValue("/root/main/wardrecinfo/jobcd"));
  430. model.makeValue("/root/send/wardrecinfo/jobnm", model.getValue("/root/main/wardrecinfo/jobnm"));
  431. model.makeValue("/root/send/wardrecinfo/educgrdecd", model.getValue("/root/main/wardrecinfo/educgrdecd"));
  432. model.makeValue("/root/send/wardrecinfo/educgrdenm", model.getValue("/root/main/wardrecinfo/educgrdenm"));
  433. model.makeValue("/root/send/wardrecinfo/religncd", model.getValue("/root/main/wardrecinfo/religncd"));
  434. model.makeValue("/root/send/wardrecinfo/relignnm", model.getValue("/root/main/wardrecinfo/relignnm"));
  435. model.makeValue("/root/send/wardrecinfo/relignreq", model.getValue("/root/main/wardrecinfo/relignreq"));
  436. model.makeValue("/root/send/wardrecinfo/marystatcd", model.getValue("/root/main/wardrecinfo/marystatcd"));
  437. model.makeValue("/root/send/wardrecinfo/marystatnm", model.getValue("/root/main/wardrecinfo/marystatnm"));
  438. model.makeValue("/root/send/wardrecinfo/baptnm", model.getValue("/root/main/wardrecinfo/baptnm"));
  439. model.makeValue("/root/send/wardrecinfo/spo", model.getValue("/root/main/wardrecinfo/spo2"));
  440. model.makeValue("/root/send/wardrecinfo/tel", model.getValue("/root/main/wardrecinfo/tel"));
  441. model.makeValue("/root/send/wardrecinfo/mphone", model.getValue("/root/main/wardrecinfo/mphone"));
  442. model.makeValue("/root/send/wardrecinfo/etcphone1", model.getValue("/root/main/wardrecinfo/etcphone1"));
  443. model.makeValue("/root/send/wardrecinfo/etcphone2", model.getValue("/root/main/wardrecinfo/etcphone2"));
  444. //가계도
  445. model.makeValue("/root/send/wardrecinfo/famytree", fGetXmlToStr("/root/main/wardrecinfo/famytree/existyn"));
  446. //일반정보
  447. model.makeValue("/root/send/wardrecinfo/basebdinfoinclyn", model.getValue("/root/main/wardrecinfo/basebdinfoinclyn"));
  448. model.makeValue("/root/send/wardrecinfo/lowbp", model.getValue("/root/main/wardrecinfo/lowbp"));
  449. model.makeValue("/root/send/wardrecinfo/highbp", model.getValue("/root/main/wardrecinfo/highbp"));
  450. model.makeValue("/root/send/wardrecinfo/pulse", model.getValue("/root/main/wardrecinfo/pulse"));
  451. model.makeValue("/root/send/wardrecinfo/breth", model.getValue("/root/main/wardrecinfo/breth"));
  452. model.makeValue("/root/send/wardrecinfo/bdtp", model.getValue("/root/main/wardrecinfo/bdtp"));
  453. model.makeValue("/root/send/wardrecinfo/bdtppartcd", model.getValue("/root/main/wardrecinfo/bdtppartcd"));
  454. model.makeValue("/root/send/wardrecinfo/bdht", model.getValue("/root/main/wardrecinfo/bdht"));
  455. model.makeValue("/root/send/wardrecinfo/bdwt", model.getValue("/root/main/wardrecinfo/bdwt"));
  456. model.makeValue("/root/send/wardrecinfo/bdbtype", model.getValue("/root/main/wardrecinfo/bdbtype"));
  457. model.makeValue("/root/send/wardrecinfo/bdbtyperh", model.getValue("/root/main/wardrecinfo/bdbtyperh"));
  458. model.makeValue("/root/send/wardrecinfo/gustoinfo", fGetXmlToStr("/root/main/wardrecinfo/gustoinfo/gusto"));
  459. model.makeValue("/root/send/wardrecinfo/femaleinfo", fGetXmlToStr("/root/main/wardrecinfo/femaleinfo/female"));
  460. model.makeValue("/root/send/wardrecinfo/spcffact", fGetXmlToStr("/root/main/wardrecinfo/spcffact/spcf"));
  461. //가정간호정보
  462. model.makeValue("/root/send/wardrecinfo/rgstrinfoinclyn", model.getValue("/root/main/wardrecinfo/rgstrinfoinclyn"));
  463. model.makeValue("/root/send/wardrecinfo/diagnm", model.getValue("/root/main/wardrecinfo/diagnm"));
  464. model.makeValue("/root/send/wardrecinfo/reqdd", model.getValue("/root/main/wardrecinfo/reqdd"));
  465. model.makeValue("/root/send/wardrecinfo/atdoctcd", model.getValue("/root/main/wardrecinfo/atdoctcd"));
  466. model.makeValue("/root/send/wardrecinfo/reqmotvinfo", model.getValue("/root/main/wardrecinfo/reqmotvinfo"));
  467. model.makeValue("/root/send/wardrecinfo/illcog", model.getValue("/root/main/wardrecinfo/illcog"));
  468. model.makeValue("/root/send/wardrecinfo/rgststat", model.getValue("/root/main/wardrecinfo/rgststat"));
  469. model.makeValue("/root/send/wardrecinfo/dschinfoinclyn", model.getValue("/root/main/wardrecinfo/dschinfoinclyn"));
  470. model.makeValue("/root/send/wardrecinfo/dschdd", model.getValue("/root/main/wardrecinfo/dschdd"));
  471. model.makeValue("/root/send/wardrecinfo/dschmedi", fGetXmlToStr("/root/main/wardrecinfo/dschmediinfo/dschmedi"));
  472. model.makeValue("/root/send/wardrecinfo/homecareinfoinclyn", model.getValue("/root/main/wardrecinfo/homecareinfoinclyn"));
  473. model.makeValue("/root/send/wardrecinfo/carednor", model.getValue("/root/main/wardrecinfo/carednor"));
  474. model.makeValue("/root/send/wardrecinfo/carednornm", model.getValue("/root/main/wardrecinfo/carednornm"));
  475. model.makeValue("/root/send/wardrecinfo/healcaregrnt", model.getValue("/root/main/wardrecinfo/healcaregrnt"));
  476. model.makeValue("/root/send/wardrecinfo/healcaregrntnm", model.getValue("/root/main/wardrecinfo/healcaregrntnm"));
  477. model.makeValue("/root/send/wardrecinfo/healcntrprofit", model.getValue("/root/main/wardrecinfo/healcntrprofit"));
  478. model.makeValue("/root/send/wardrecinfo/economystat", model.getValue("/root/main/wardrecinfo/economystat"));
  479. model.makeValue("/root/send/wardrecinfo/sanitstat", model.getValue("/root/main/wardrecinfo/sanitstat"));
  480. model.makeValue("/root/send/wardrecinfo/safestat", model.getValue("/root/main/wardrecinfo/safestat"));
  481. model.makeValue("/root/send/wardrecinfo/residtype", model.getValue("/root/main/wardrecinfo/residtype"));
  482. model.makeValue("/root/send/wardrecinfo/residtypenm", model.getValue("/root/main/wardrecinfo/residtypednm"));
  483. //가족사항(가족연락처table)
  484. var updtdata = getGridUpdateData(grd_famyfact);
  485. model.makeValue("/root/send/wardrecinfo/famyfact", updtdata);
  486. //병력
  487. fChkInclYN();
  488. //신체사정
  489. model.makeValue("/root/send/wardrecinfo/actinfo", fGetXmlToStr("/root/main/wardrecinfo/actinfo/act"));
  490. model.makeValue("/root/send/wardrecinfo/apttbdwtchnginfo", fGetXmlToStr("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng"));
  491. model.makeValue("/root/send/wardrecinfo/slepstatinfo", fGetXmlToStr("/root/main/wardrecinfo/slepstatinfo/slepstat"));
  492. model.makeValue("/root/send/wardrecinfo/cscsstatinfo", fGetXmlToStr("/root/main/wardrecinfo/cscsstatinfo/cscsstat"));
  493. model.makeValue("/root/send/wardrecinfo/cirorgninfo", fGetXmlToStr("/root/main/wardrecinfo/cirorgninfo/cirorgn"));
  494. model.makeValue("/root/send/wardrecinfo/resorgninfo", fGetXmlToStr("/root/main/wardrecinfo/resorgninfo/resorgn"));
  495. model.makeValue("/root/send/wardrecinfo/digorgninfo", fGetXmlToStr("/root/main/wardrecinfo/digorgninfo/digorgn"));
  496. model.makeValue("/root/send/wardrecinfo/uriorgninfo", fGetXmlToStr("/root/main/wardrecinfo/uriorgninfo/uriorgn"));
  497. model.makeValue("/root/send/wardrecinfo/stoolinfo", fGetXmlToStr("/root/main/wardrecinfo/stoolinfo/stool"));
  498. model.makeValue("/root/send/wardrecinfo/visdsordinfo", fGetXmlToStr("/root/main/wardrecinfo/visdsordinfo/visdsord"));
  499. model.makeValue("/root/send/wardrecinfo/heardsordinfo", fGetXmlToStr("/root/main/wardrecinfo/heardsordinfo/heardsord"));
  500. model.makeValue("/root/send/wardrecinfo/tootstatinfo", fGetXmlToStr("/root/main/wardrecinfo/tootstatinfo/tootstat"));
  501. model.makeValue("/root/send/wardrecinfo/skinsectinfo", fGetXmlToStr("/root/main/wardrecinfo/skinsectinfo/skinsect"));
  502. //알러지
  503. if(grd_allghist.rows > 1) {
  504. if(allgInsYN == "Y") {
  505. grd_allghist.addStatus(1, "insert");
  506. }
  507. }
  508. model.makeValue("/root/send/wardrecinfo/allginfo", grd_allghist.getUpdateData());
  509. //웹 테스트
  510. model.makeValue("/root/send/wardrecinfo/pid", model.getValue("/root/temp/cond/list/pid"));
  511. model.makeValue("/root/send/wardrecinfo/indd", model.getValue("/root/temp/cond/list/indd"));
  512. model.makeValue("/root/send/wardrecinfo/instcd", model.getValue("/root/temp/cond/list/instcd"));
  513. model.makeValue("/root/send/wardrecinfo/deptcd", model.getValue("/root/temp/cond/list/orddeptcd"));
  514. model.makeValue("/root/send/wardrecinfo/infooffer", model.getValue("/root/main/wardrecinfo/infooffer"));
  515. model.makeValue("/root/send/wardrecinfo/recflag", "09");
  516. model.makeValue("/root/send/wardrecinfo/docucode", "0000002493");
  517. model.makeValue("/root/send/wardrecinfo/userid", userid);
  518. //수행구분(I, U에 따른 입력, 수정을위한 구분)
  519. model.makeValue("/root/send/wardrecinfo/exeflag", model.getValue("/root/hidden/paminfo/paminfo/exeflag"));
  520. if(model.getValue("/root/properties/parameters/SPMMR04711_shape/SPMMR04711_shapevalue") == "") {
  521. model.makeValue("/root/send/wardrecinfo/genogrmnm", "");
  522. } else {
  523. model.makeValue("/root/send/wardrecinfo/genogrmnm", model.getValue("/root/properties/parameters/SPMMR04711_shape/SPMMR04711_shapevalue"));
  524. }
  525. model.makeValue("/root/send/wardrecinfo/certflag", certFlag);
  526. model.makeValue("/root/send/wardrecinfo/recdd", model.getValue("/root/main/wardrecinfo/recdd"));
  527. model.makeValue("/root/send/wardrecinfo/rectm", model.getValue("/root/main/wardrecinfo/rectm"));
  528. model.makeValue("/root/send/wardrecinfo/recdt", model.getValue("/root/main/wardrecinfo/recdd") + model.getValue("/root/main/wardrecinfo/rectm"));
  529. }
  530. function fSetSignData() {
  531. var xWardRecPath = Sign.XPATH_SIGNINFO + "/wardrecinfo";
  532. var xHistPath = Sign.XPATH_SIGNINFO + "/histinfo";
  533. var xFamyPath = Sign.XPATH_SIGNINFO + "/famyfactinfo";
  534. /****************************** 환자기본정보 **************************************/
  535. //직업
  536. var jobcd = model.getValue(xWardRecPath + "/jobcd");
  537. if(jobcd != "") {
  538. if(jobcd == "10") {
  539. if(model.getValue(xWardRecPath + "/jobnm") == "") {
  540. model.setValue(xWardRecPath + "/jobcd", cmb_job.label);
  541. } else {
  542. model.setValue(xWardRecPath + "/jobcd", model.getValue(xWardRecPath + "/jobnm"));
  543. }
  544. } else {
  545. model.setValue(xWardRecPath + "/jobcd", cmb_job.label);
  546. }
  547. }
  548. //교육정도
  549. var educgrde = model.getValue(xWardRecPath + "/educgrdecd");
  550. if(educgrde != "") {
  551. if(educgrde == "15") {
  552. if(model.getValue(xWardRecPath + "/educgrdenm") != "") {
  553. model.setValue(xWardRecPath + "/educgrdecd", model.getValue(xWardRecPath + "/educgrdenm"));
  554. } else {
  555. model.setValue(xWardRecPath + "/educgrdecd", cmb_educgrde.label);
  556. }
  557. } else {
  558. model.setValue(xWardRecPath + "/educgrdecd", cmb_educgrde.label);
  559. }
  560. }
  561. //종교
  562. var relign = model.getValue(xWardRecPath + "/religncd");
  563. if(relign != "") {
  564. if(relign == "01") {
  565. model.setValue(xWardRecPath + "/religncd", cmb_relign.label);
  566. if(model.getValue(xWardRecPath + "/baptnm") != "") {
  567. model.setValue(xWardRecPath + "/religncd", model.getValue(xWardRecPath + "/religncd") + "(" + model.getValue(xWardRecPath + "/baptnm") + ")");
  568. }
  569. } else if( relign == "09") {
  570. if(model.getValue(xWardRecPath + "/relignnm") == "") {
  571. model.setValue(xWardRecPath + "/religncd", cmb_relign.label);
  572. } else {
  573. model.setValue(xWardRecPath + "/religncd", model.getValue(xWardRecPath + "/relignnm"));
  574. }
  575. } else {
  576. model.setValue(xWardRecPath + "/religncd", cmb_relign.label);
  577. }
  578. }
  579. //영적요구
  580. var relignreq = model.getValue(xWardRecPath + "/relignreq");
  581. if (relignreq != ""){
  582. model.setValue(xWardRecPath + "/relignreq", cmb_relignreq.label);
  583. }
  584. //결혼상태
  585. var marystat = model.getValue(xWardRecPath + "/marystatcd");
  586. if(marystat != "") {
  587. if(marystat == "06") {
  588. if(model.getValue(xWardRecPath + "/marystatnm") != "") {
  589. model.setValue(xWardRecPath + "/marystatcd", model.getValue(xWardRecPath + "/marystatnm"));
  590. } else {
  591. model.setValue(xWardRecPath + "/marystatcd", cmb_marystat.label);
  592. }
  593. } else {
  594. model.setValue(xWardRecPath + "/marystatcd", cmb_marystat.label);
  595. }
  596. }
  597. /****************************** 가족사항 **************************************/
  598. //가족사항 관계
  599. var rows = grd_famyfact.rows;
  600. var rela;
  601. for(var i = 1 ; i < rows; i++) {
  602. rela = model.getValue(xFamyPath + "/famyfact[" + i + "]/rela");
  603. if(rela != "") {
  604. model.setValue(xFamyPath + "/famyfact[" + i + "]/rela", grd_famyfact.labelMatrix(i, grd_famyfact.colRef("rela")));
  605. }
  606. }
  607. /****************************** 등록시 정보 **************************************/
  608. //병에대한 인식
  609. var illcog = model.getValue(xWardRecPath + "/illcog");
  610. if (illcog != ""){
  611. model.setValue(xWardRecPath + "/illcog", rdo_illcogflag.label);
  612. }
  613. /****************************** 가정간호 정보 **************************************/
  614. //간호제공자
  615. var carednor = model.getValue(xWardRecPath + "/carednor");
  616. var carednornm = model.getValue(xWardRecPath + "/carednornm");
  617. str = cmb_carednor.label;
  618. if(carednor != "") {
  619. if(carednor == "06") {
  620. if(carednornm != "") {
  621. str += "(" + carednornm + ")";
  622. }
  623. }
  624. model.setValue(xWardRecPath + "/carednor", str);
  625. }
  626. //의료보장
  627. var healcaregrnt = model.getValue(xWardRecPath + "/healcaregrnt");
  628. var healcaregrntnm = model.getValue(xWardRecPath + "/healcaregrntnm");
  629. str = cmb_healcaregrnt.label;
  630. if(healcaregrnt != "") {
  631. if(healcaregrnt == "06") {
  632. if(healcaregrntnm != "") {
  633. str += "(" + healcaregrntnm + ")";
  634. }
  635. }
  636. model.setValue(xWardRecPath + "/healcaregrnt", str);
  637. }
  638. //보건소혜택
  639. var healcntrprofit = model.getValue(xWardRecPath + "/healcntrprofit");
  640. var healcaregrntnm = model.getValue(xWardRecPath + "/healcaregrntnm");
  641. str = rdo_healcntrprofit.label;
  642. if(healcntrprofit != "") {
  643. if(healcntrprofit == "2") {
  644. if(healcaregrntnm != "") {
  645. str += "(" + healcaregrntnm + ")";
  646. }
  647. }
  648. model.setValue(xWardRecPath + "/healcntrprofit", str);
  649. }
  650. //경제상태
  651. var economystat = model.getValue(xWardRecPath + "/economystat");
  652. str = cmb_economystat.label;
  653. if(economystat != "") {
  654. model.setValue(xWardRecPath + "/economystat", str);
  655. }
  656. //위생상태
  657. var sanitstat = model.getValue(xWardRecPath + "/sanitstat");
  658. str = cmb_sanitstat.label;
  659. if(sanitstat != "") {
  660. model.setValue(xWardRecPath + "/sanitstat", str);
  661. }
  662. //안전상태
  663. var safestat = model.getValue(xWardRecPath + "/safestat");
  664. str = cmb_safestat.label;
  665. if(safestat != "") {
  666. model.setValue(xWardRecPath + "/safestat", str);
  667. }
  668. //주거형태
  669. var residtype = model.getValue(xWardRecPath + "/residtype");
  670. var residtypenm = model.getValue(xWardRecPath + "/residtypenm");
  671. str = cmb_residtype.label;
  672. if(residtype != "") {
  673. if(residtype == "04") {
  674. if(residtypenm != "") {
  675. str += "(" + residtypenm + ")";
  676. }
  677. }
  678. model.setValue(xWardRecPath + "/residtype", str);
  679. }
  680. /****************************** 기본 신체정보 **************************************/
  681. //혈액형
  682. var bdbtype = model.getValue(xWardRecPath + "/bdbtype");
  683. if(bdbtype != "") {
  684. model.setValue(xWardRecPath + "/bdbtype", cmb_bdbtype.label);
  685. }
  686. //체온
  687. var bdtppart = model.getValue(xWardRecPath + "/bdtppartcd");
  688. if(bdtppart != "") {
  689. model.setValue(xWardRecPath + "/bdtppartcd", cmb_bdtp.label);
  690. }
  691. /****************************** 기호정보 **************************************/
  692. //흡연정보
  693. var smokinfoyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfoyn");
  694. var smokinfocnt = model.getValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfocnt");
  695. if(smokinfoyn != "") {
  696. if(smokinfoyn == "2" && smokinfocnt != ""){
  697. model.setValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfoyn", rdo_smokinfo.label + "(" + smokinfocnt + ")");
  698. }else{
  699. model.setValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfoyn", rdo_smokinfo.label);
  700. }
  701. }
  702. //음주정보
  703. var drunkinfoyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn");
  704. if(drunkinfoyn != "") {
  705. if(drunkinfoyn == "2") {
  706. if(model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfokind") != "") {
  707. if(model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoterm") != "") {
  708. model.setValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfokind") + " "
  709. + model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoterm") + cap_drunkinfoterm.label);
  710. }else{
  711. model.setValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfokind"));
  712. }
  713. } else {
  714. if(model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoterm") != "") {
  715. model.setValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoterm") + cap_drunkinfoterm.label);
  716. }else{
  717. model.setValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn", rdo_drunkinfo.label);
  718. }
  719. }
  720. } else {
  721. model.setValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn", rdo_drunkinfo.label);
  722. }
  723. }
  724. //기호식품
  725. var gustofoodyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofoodyn");
  726. if(gustofoodyn != "") {
  727. if(gustofoodyn == "2") {
  728. if(model.getValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofooddetl") != "") {
  729. model.setValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofoodyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofooddetl"));
  730. } else {
  731. model.setValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofoodyn", rdo_gustofoodyn.label);
  732. }
  733. } else {
  734. model.setValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofoodyn", rdo_gustofoodyn.label);
  735. }
  736. }
  737. //수혈부작용
  738. var tnsseffcyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn");
  739. if(tnsseffcyn != "") {
  740. if(tnsseffcyn == "2") {
  741. if(model.getValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcdetl") != "") {
  742. model.setValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcdetl"));
  743. } else {
  744. model.setValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn", rdo_tnsseffcyn.label);
  745. }
  746. } else {
  747. model.setValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn", rdo_tnsseffcyn.label);
  748. }
  749. }
  750. /****************************** 여성정보 **************************************/
  751. //폐경여부
  752. var endmensyn = model.getValue(xWardRecPath + "/femaleinfo/female/female/endmensyn");
  753. if(endmensyn != "") {
  754. if(endmensyn == "2") {
  755. if(model.getValue(xWardRecPath + "/femaleinfo/female/female/endmensdd") != "") {
  756. model.setValue(xWardRecPath + "/femaleinfo/female/female/endmensyn", rdo_endmensyn.label + "(" + ipt_endmensyn.label + " )" );
  757. } else {
  758. model.setValue(xWardRecPath + "/femaleinfo/female/female/endmensyn", rdo_endmensyn.label);
  759. }
  760. } else {
  761. model.setValue(xWardRecPath + "/femaleinfo/female/female/endmensyn", rdo_endmensyn.label);
  762. }
  763. }
  764. //폐경 나이
  765. var endmensage = model.getValue(xWardRecPath + "/femaleinfo/female/female/endmensage");
  766. if( !isNull(endmensage) ){
  767. model.setValue(xWardRecPath + "/femaleinfo/female/female/endmensage", endmensage + " 세");
  768. }
  769. //최종월경일
  770. var lastmensdd = model.getValue(xWardRecPath + "/femaleinfo/female/female/lastmensdd");
  771. if(lastmensdd != ""){
  772. model.setValue(xWardRecPath + "/femaleinfo/female/female/lastmensdd", lastmensdd.substr(0,4) + "-" + lastmensdd.substr(4,2) + "-" + lastmensdd.substr(6,2));
  773. }
  774. /****************************** 병력 **************************************/
  775. //과거병력
  776. var rows = grd_pasthist.rows;
  777. var histspec;
  778. for(var i = 1 ; i < rows; i++) {
  779. histspec = model.getValue(xHistPath + "/pasthistinfo/pasthist/pasthist[" + i + "]/histspec");
  780. if(histspec != "") {
  781. model.setValue(xHistPath + "/pasthistinfo/pasthist/pasthist[" + i + "]/histspec", grd_pasthist.labelMatrix(i, grd_pasthist.colRef("histspec")));
  782. }
  783. }
  784. //가족병력
  785. var famyrel;
  786. var existyn;
  787. rows = grd_famyhist.rows;
  788. for(var i = 1 ; i < rows; i++) {
  789. famyrel = model.getValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/famyrel");
  790. existyn = model.getValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/existyn");
  791. histspec = model.getValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/histspec");
  792. if(famyrel != "") {
  793. model.setValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/famyrel", grd_famyhist.labelMatrix(i, grd_famyhist.colRef("famyrel")));
  794. }
  795. if(existyn != "") {
  796. model.setValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/existyn", grd_famyhist.labelMatrix(i, grd_famyhist.colRef("existyn")));
  797. }
  798. if(histspec != "") {
  799. model.setValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/histspec", grd_famyhist.labelMatrix(i, grd_famyhist.colRef("histspec")));
  800. }
  801. }
  802. //allergy구분
  803. rows = grd_allghist.rows;
  804. var flag;
  805. for(var i = 1 ; i < rows; i++) {
  806. flag = model.getValue(xHistPath + "/allghistinfo/allghist/allghist[" + i + "]/flag");
  807. if(flag != "") {
  808. model.setValue(xHistPath + "/allghistinfo/allghist/allghist[" + i + "]/flag", grd_allghist.labelMatrix(i, grd_allghist.colRef("flag")));
  809. }
  810. }
  811. /****************************** 신체사정 **************************************/
  812. //호스피스여부
  813. var hospiceyn = model.getValue(xWardRecPath + "/shpaininfo/shpain/hospiceyn");
  814. var hospice = model.getValue(xWardRecPath + "/shpaininfo/shpain/hospice");
  815. if(hospiceyn != "") {
  816. if(hospice != ""){
  817. model.makeValue(xWardRecPath + "/shpaininfo/shpain/hospiceyn", rdo_hospiceyn.label + "(" + hospice + ")");
  818. }else{
  819. model.makeValue(xWardRecPath + "/shpaininfo/shpain/hospiceyn", rdo_hospiceyn.label);
  820. }
  821. }
  822. //동통에서 통증 : 무(default)/유 선택으로 변경 20100122 김홍점
  823. var shpaininfoinclyn = model.getValue(xWardRecPath + "/shpaininfo/shpain/shpaininfoinclyn");
  824. if( !isNull(shpaininfoinclyn) ) {
  825. model.makeValue(xWardRecPath + "/shpaininfo/shpain/shpaininfoinclyn", rdo_shpaininfoinclyn.label);
  826. model.makeValue(xWardRecPath + "/shpaininfo/shpain/shpaininfochgdd", "20100125");//20100125 일부터 동통에서 통증으로 변경됨.
  827. }
  828. /****************************** 활동 **************************************/
  829. //활동
  830. var actfreeyn = model.getValue(xWardRecPath + "/actinfo/act/actfreeyn");
  831. if(actfreeyn != "") {
  832. model.setValue(xWardRecPath + "/actinfo/act/actfreeyn", rdo_actfreeyn.label);
  833. }
  834. //보조기구
  835. var supptoolkind = model.getValue(xWardRecPath + "/actinfo/act/supptoolkind");
  836. arr = (chk_supptoolkind.label).setReplaceWord("▦",",");
  837. if(supptoolkind != "") {
  838. model.setValue(xWardRecPath + "/actinfo/act/supptoolkind", arr);
  839. }
  840. //마비
  841. var paralysisyn = model.getValue(xWardRecPath + "/actinfo/act/paralysisyn");
  842. var paralysis = model.getValue(xWardRecPath + "/actinfo/act/paralysis");
  843. if( !isNull(paralysisyn) ) {
  844. if( !isNull(paralysis)){
  845. model.setValue(xWardRecPath + "/actinfo/act/paralysisyn", rdo_paralysisyn.label + "(" + paralysis + ")");
  846. }else{
  847. model.setValue(xWardRecPath + "/actinfo/act/paralysisyn", rdo_paralysisyn.label);
  848. }
  849. }
  850. //활동정도
  851. var ppsdetl = model.getValue(xWardRecPath + "/actinfo/act/ppsdetl");
  852. if(ppsdetl != "") {
  853. model.setValue(xWardRecPath + "/actinfo/act/ppsdetl", cmb_ppsdetl.label);
  854. }
  855. /****************************** 식욕 및 체중변화 **************************************/
  856. //식욕변화
  857. var apptchngyn = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptchngyn");
  858. str = rdo_apttchngyn.label;
  859. if(apptchngyn != "") {
  860. if(apptchngyn == "2") {
  861. if(model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptaddyn") != "") {
  862. str += "(" + rdo_apttchngflag.label+ ")";
  863. }
  864. }
  865. model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptchngyn", str);
  866. }
  867. //식욕상태
  868. var apptstatflag = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptstatflag");
  869. if(apptstatflag != "") {
  870. model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptstatflag", rdo_apttstatflag.label);
  871. }
  872. //체중변화
  873. var bdwtchngyn = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchngyn");
  874. var incdecflag = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/incdecflag");
  875. var bdwtchnggrde = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchnggrde");
  876. var bdwtchngterm = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchngterm");
  877. var bdwtchngtermflag = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchngtermflag");
  878. str = rdo_bdwtchngyn.label;
  879. if(bdwtchngyn != "") {
  880. if(bdwtchngyn == "2") {
  881. if( !isNull(incdecflag) && bdwtchnggrde != "" && bdwtchngtermflag != "") {
  882. str += "(" + rdo_incdecflag.label+ ": " + bdwtchnggrde + "kg " + "/ 기간 : " + rdo_bdwtchngtermflag.label + " (" + bdwtchngterm + ") )";
  883. } else if(bdwtchnggrde != "" && bdwtchngtermflag == "") {
  884. str += "(" + rdo_incdecflag.label+ ": " + bdwtchnggrde + "kg )";
  885. } else if(bdwtchnggrde == "" && bdwtchngtermflag != "") {
  886. str += "(" + "기간 : " + rdo_bdwtchngtermflag.label + " ( " + bdwtchngterm + ") )";
  887. }
  888. }
  889. model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchngyn", str);
  890. }
  891. //편식
  892. var onemealyn = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/onemealyn");
  893. if(onemealyn != "") {
  894. model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/onemealyn", rdo_onemealyn.label);
  895. }
  896. //식이상태
  897. var mealstat = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/mealstat");
  898. if(mealstat != "") {
  899. model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/mealstat", cmb_mealstat.label);
  900. }
  901. /****************************** 수면상태 **************************************/
  902. //수면장애
  903. var slepdsordyn = model.getValue(xWardRecPath + "/slepstatinfo/slepstat/slepdsordyn");
  904. var slepdsordtm = model.getValue(xWardRecPath + "/slepstatinfo/slepstat/slepdsordtm");
  905. str = rdo_slepdsord.label;
  906. if(slepdsordyn != "") {
  907. if(slepdsordyn == "2") {
  908. if(slepdsordtm != "") {
  909. str += "(" + slepdsordtm + "시간/일)";
  910. }
  911. }
  912. model.setValue(xWardRecPath + "/slepstatinfo/slepstat/slepdsordyn", str);
  913. }
  914. //약물복용
  915. var dugtmedyn = model.getValue(xWardRecPath + "/slepstatinfo/slepstat/dugtmedyn");
  916. var dugtmeddetl = model.getValue(xWardRecPath + "/slepstatinfo/slepstat/dugtmeddetl");
  917. str = rdo_drugtmedyn.label;
  918. if(dugtmedyn != "") {
  919. if(dugtmedyn == "2") {
  920. if(dugtmeddetl != "") {
  921. str += "(" + dugtmeddetl + ")";
  922. }
  923. }
  924. model.setValue(xWardRecPath + "/slepstatinfo/slepstat/dugtmedyn", str);
  925. }
  926. /****************************** 의식상태 **************************************/
  927. //지남력
  928. var cscsstathuman = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstathuman");
  929. var cscsstattm = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstattm");
  930. var cscsstatplce = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstatplce");
  931. if(cscsstathuman != "") {
  932. model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstathuman", cmb_cscsstathuman.label);
  933. }
  934. if(cscsstattm != "") {
  935. model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstattm", cmb_cscsstattm.label);
  936. }
  937. if(cscsstatplce != "") {
  938. model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstatplce", cmb_cscsstatplce.label);
  939. }
  940. //의식상태
  941. var cscsstat = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstat");
  942. if(cscsstat != "") {
  943. model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstat", cmb_cscsstat.label);
  944. }
  945. //의사소통
  946. var communication = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/communication");
  947. if( communication != "") {
  948. model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/communication", rdo_communication.label);
  949. }
  950. //정서상태
  951. var emotstat = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/emotstat");;
  952. if(emotstat != "") {
  953. model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/emotstat", cmb_emotstat.label);
  954. }
  955. /****************************** 순환기계 **************************************/
  956. //순환장애
  957. var cirdsordkind = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/cirdsordkind");
  958. var arr = new Array();
  959. arr = chk_cycdsordkind.label.split(" ");
  960. if(cirdsordkind != "") {
  961. model.setValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/cirdsordkind", arr);
  962. }
  963. //부종
  964. var edema = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/edemakind");
  965. var edemadetll = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/edemadetll");
  966. str = cmb_edema.label;
  967. if(edema != "") {
  968. if(edema == "7") {
  969. if(edemadetll != "") {
  970. str = edemadetll;
  971. }
  972. }
  973. model.setValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/edemakind", str);
  974. }
  975. //요흔
  976. var yohnyn = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/yohnyn");
  977. var yohn = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/yohnddetl");
  978. str = rdo_yohnyn.label;
  979. if(yohnyn != "") {
  980. if(yohnyn == "2") {
  981. if(yohn != "") {
  982. str = yohn;
  983. }
  984. }
  985. model.setValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/yohnyn", str);
  986. }
  987. /****************************** 호흡기계 **************************************/
  988. //호흡양상
  989. var resstat = model.getValue(xWardRecPath + "/resorgninfo/resorgn/resstat");
  990. arr = chk_resstat.label.split('▦');
  991. if(resstat != "") {
  992. model.setValue(xWardRecPath + "/resorgninfo/resorgn/resstat", arr);
  993. }
  994. //기관절개관
  995. var orgnopenyn = model.getValue(xWardRecPath + "/resorgninfo/resorgn/orgnopenyn");
  996. var orgnopenkind = model.getValue(xWardRecPath + "/resorgninfo/resorgn/orgnopenkind");
  997. var orgnopennm = model.getValue(xWardRecPath + "/resorgninfo/resorgn/orgnopennm");
  998. str = rdo_orgnopenyn.label;
  999. if(orgnopenyn != "") {
  1000. if(orgnopenyn == "2") {
  1001. if(orgnopenkind != "") {
  1002. if(orgnopenkind == "13") {
  1003. if(orgnopennm != "") {
  1004. str += "("+ cmb_orgnopen.label + "(" + orgnopennm + "))";
  1005. } else {
  1006. str += "(" + cmb_orgnopen.label + ")";
  1007. }
  1008. } else {
  1009. str += "(" + cmb_orgnopen.label + ")";
  1010. }
  1011. }
  1012. }
  1013. model.setValue(xWardRecPath + "/resorgninfo/resorgn/orgnopenyn", str);
  1014. }
  1015. //suction사용
  1016. var suctionuseyn = model.getValue(xWardRecPath + "/resorgninfo/resorgn/suctionuseyn");
  1017. str = rdo_suctionuseyn.label;
  1018. if(suctionuseyn != "") {
  1019. model.setValue(xWardRecPath + "/resorgninfo/resorgn/suctionuseyn", str);
  1020. }
  1021. //산소사용
  1022. var oxyuseyn = model.getValue(xWardRecPath + "/resorgninfo/resorgn/oxyuseyn");
  1023. var oxyusevol = model.getValue(xWardRecPath + "/resorgninfo/resorgn/oxyusevol");
  1024. str = rdo_oxyuseyn.label;
  1025. if(oxyuseyn != "") {
  1026. if(oxyuseyn == "02") {
  1027. if(oxyusevol != "") {
  1028. model.setValue(xWardRecPath + "/resorgninfo/resorgn/oxyuseyn", str);
  1029. }
  1030. }
  1031. }
  1032. //인공호흡기
  1033. var artficresorgn = model.getValue(xWardRecPath + "/resorgninfo/resorgn/artficresorgn");
  1034. str = rdo_artficresorgn.label;
  1035. if(artficresorgn != "") {
  1036. model.setValue(xWardRecPath + "/resorgninfo/resorgn/artficresorgn", str);
  1037. }
  1038. /****************************** 소화기계 **************************************/
  1039. //이상증상
  1040. var trobsymp = model.getValue(xWardRecPath + "/digorgninfo/digorgn/trobsymp");
  1041. var trobsympdetl = model.getValue(xWardRecPath + "/digorgninfo/digorgn/trobsympdetl");
  1042. arr = chk_trobsymp.label.split('▦');
  1043. if(trobsymp != "") {
  1044. if(trobsympdetl != "") {
  1045. arr += "(" + trobsympdetl + ")";
  1046. }
  1047. model.setValue(xWardRecPath + "/digorgninfo/digorgn/trobsymp", arr);
  1048. }
  1049. //부착기구
  1050. var digorgcate = model.getValue(xWardRecPath + "/digorgninfo/digorgn/digorgcate");
  1051. var digorgdetl = model.getValue(xWardRecPath + "/digorgninfo/digorgn/digorgdetl");
  1052. if(digorgcate != "") {
  1053. if(digorgdetl != ""){
  1054. model.setValue(xWardRecPath + "/digorgninfo/digorgn/digorgcate", cmb_digorgcate.label + "(" + digorgdetl + ")");
  1055. }else{
  1056. model.setValue(xWardRecPath + "/digorgninfo/digorgn/digorgcate", cmb_digorgcate.label);
  1057. }
  1058. }
  1059. /****************************** 비뇨기계 **************************************/
  1060. //비뇨기계부착기구
  1061. var urinecate = model.getValue(xWardRecPath + "/uriorgninfo/uriorgn/urinecate");
  1062. if(urinecate != "") {
  1063. model.setValue(xWardRecPath + "/uriorgninfo/uriorgn/urinecate", cmb_urinecate.label);
  1064. }
  1065. //소변색깔
  1066. var urinecolor = model.getValue(xWardRecPath + "/uriorgninfo/uriorgn/urinecolor");
  1067. if(urinecolor != "") {
  1068. model.setValue(xWardRecPath + "/uriorgninfo/uriorgn/urinecolor", cmb_urinecolor.label);
  1069. }
  1070. //소변증상
  1071. var urinesymp = model.getValue(xWardRecPath + "/uriorgninfo/uriorgn/urinesymp");
  1072. if(urinesymp != "") {
  1073. model.setValue(xWardRecPath + "/uriorgninfo/uriorgn/urinesymp", cmb_urinesymp.label);
  1074. }
  1075. /****************************** 대변 **************************************/
  1076. //대변색깔
  1077. var stoolcolor = model.getValue(xWardRecPath + "/stoolinfo/stool/stoolcolor");
  1078. if(stoolcolor != "") {
  1079. model.setValue(xWardRecPath + "/stoolinfo/stool/stoolcolor", cmb_stoolcolor.label);
  1080. }
  1081. //대변종류
  1082. var stoolkind = model.getValue(xWardRecPath + "/stoolinfo/stool/stoolkind");
  1083. if(stoolkind != "") {
  1084. model.setValue(xWardRecPath + "/stoolinfo/stool/stoolkind", cmb_stoolkind.label);
  1085. }
  1086. //변비
  1087. var constipt = model.getValue(xWardRecPath + "/stoolinfo/stool/stoolconstipation");
  1088. if(constipt == "Y") {
  1089. model.makeValue(xWardRecPath + "/stoolinfo/stool/stoolcateconstipation", "유");
  1090. }else {
  1091. model.makeValue(xWardRecPath + "/stoolinfo/stool/stoolcateconstipation", "무");
  1092. }
  1093. /****************************** 신경계 **************************************/
  1094. //신경계 동공
  1095. var pupilsymmetryyn = model.getValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilsymmetryyn");
  1096. if(pupilsymmetryyn != "") {
  1097. model.setValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilsymmetryyn", rdo_pupilsymmetryyn.label);
  1098. }
  1099. //좌
  1100. var pupilleft = model.getValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilleft");
  1101. if(pupilleft != "") {
  1102. model.setValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilleft", cmb_pupilleft.label);
  1103. }
  1104. //좌 빛반사
  1105. var pupilleftrflx = model.getValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilleftrflx");
  1106. if(pupilleftrflx != "") {
  1107. model.setValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilleftrflx", cmb_pupilleftrflx.label);
  1108. }
  1109. //우
  1110. var pupilrght = model.getValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilrght");
  1111. if(pupilrght != "") {
  1112. model.setValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilrght", cmb_pupilrght.label);
  1113. }
  1114. //우 빛반사
  1115. var pupilrghtrflx = model.getValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilrghtrflx");
  1116. if(pupilrghtrflx != "") {
  1117. model.setValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilrghtrflx", cmb_pupilrghtrflx.label);
  1118. }
  1119. //시력장애
  1120. var visdsordyn = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordyn");
  1121. var visdsordpos = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordpos");
  1122. var visdsordleft = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordleft");
  1123. var visdsordrght = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordrght");
  1124. var visdsordkind = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordkind");
  1125. var visdsordblind = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordblind");
  1126. str = rdo_visdsordyn.label;
  1127. if(visdsordyn != "") {
  1128. if(visdsordyn == "2") {
  1129. if(visdsordpos != "") {
  1130. if(visdsordleft != "" && visdsordrght != "") {
  1131. str += "(좌: " + visdsordleft + " 우: " + visdsordrght + ")";
  1132. } else if(visdsordpos == "1") {
  1133. str += "(좌: " + visdsordleft + ")";
  1134. } else if(visdsordpos == "2") {
  1135. str += "(우: " + visdsordrght + ")";
  1136. }
  1137. }
  1138. if(visdsordkind != "") {
  1139. arr = chk_visdsordkind.label.split(" ");
  1140. str += " (" + arr + ")";
  1141. }
  1142. if(visdsordblind != "") {
  1143. arr = chk_blindnesspos.label.split(" ");
  1144. str += " (" + arr + ")";
  1145. }
  1146. }
  1147. model.setValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordyn", str);
  1148. }
  1149. //청력장애
  1150. var heardsordyn = model.getValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordyn");
  1151. var heardsordpos = model.getValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordpos");
  1152. var heardsordleft = model.getValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordleft");
  1153. var heardsordrght = model.getValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordrght");
  1154. var heardsordkind = model.getValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordkind");
  1155. str = rdo_heardsordyn.label;
  1156. if(heardsordyn != "") {
  1157. if(heardsordyn == "2") {
  1158. if(heardsordpos != "") {
  1159. if(heardsordpos == "1 2" || heardsordpos == "2 1") {
  1160. if(heardsordleft != "" && heardsordrght != "") {
  1161. str += "(좌: " + heardsordleft + " 우: " + heardsordrght + ")";
  1162. } else if(heardsordleft != "" && heardsordrght == "") {
  1163. str += "(좌: " + heardsordleft + ")";
  1164. } else if(heardsordleft == "" && heardsordrght != "") {
  1165. str += "(우: " + heardsordrght + ")";
  1166. }
  1167. } else if(heardsordpos == "1") {
  1168. if(heardsordleft != "") {
  1169. str += "(좌: " + heardsordleft + ")";
  1170. }
  1171. } else if(heardsordpos == "2") {
  1172. if(heardsordrght != "") {
  1173. str += "(우: " + heardsordrght + ")";
  1174. }
  1175. }
  1176. }
  1177. if(heardsordkind != "") {
  1178. arr = heardsordkind.split(" ");
  1179. str += ", " + arr;
  1180. }
  1181. }
  1182. model.setValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordyn", str);
  1183. }
  1184. //치아상태
  1185. var tootstatkind = model.getValue(xWardRecPath + "/tootstatinfo/tootstat/tootstatkind");
  1186. if(tootstatkind != "") {
  1187. arr = chk_tootstatkind.label.split(" ");
  1188. model.setValue(xWardRecPath + "/tootstatinfo/tootstat/tootstatkind", arr);
  1189. }
  1190. //피부계
  1191. var skinstat = model.getValue(xWardRecPath + "/skinsectinfo/skinsect/skinstat");
  1192. if(skinstat != "") {
  1193. arr = chk_skinstat.label.split("▦");
  1194. model.setValue(xWardRecPath + "/skinsectinfo/skinsect/skinstat", arr);
  1195. }
  1196. }
  1197. function fMake_SignData() {
  1198. //JCI 교육요구도 추가 (20100113 김홍점)
  1199. // var instUseYN = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='172']/cdid");//교육요구도 추가 20091216 김홍점
  1200. var instUseYN =""; //20100510 김홍점 외래 공통 교육요구도 개발에 의한 SPMRJ00300_교육요구도사정 사용안함.소경화itc요청
  1201. if ( instUseYN =="Y" ){
  1202. Sign.addnode("/root/temp/signdata/edurecinfo");
  1203. }
  1204. Sign.addnode("/root/main/wardrecinfo");
  1205. Sign.addnode("/root/main/histinfo");
  1206. //가족사항 정보 생성(그리드형식)
  1207. model.removeNodeset("/root/main/famyfactinfo");
  1208. model.makeNode("/root/main/famyfactinfo");
  1209. for(var i=1; i <= getNodesetCount("/root/main/famyfact"); i++) {
  1210. if(model.getValue("/root/main/famyfact["+ i +"]/rela") != ""){
  1211. model.duplicate("/root/main/famyfactinfo", "/root/main/famyfact["+ i +"]");
  1212. }
  1213. }
  1214. Sign.addnode("/root/main/famyfactinfo");
  1215. fSetSignData();
  1216. }
  1217. //이전기록일시 변경
  1218. function fChgRecHistInfo(){
  1219. var recpkspec = (model.getValue("/root/main/wardrecinfo/bfrecddtm")).split("|");
  1220. var bfrecpid = recpkspec[0];
  1221. var bfrecindd = recpkspec[1];
  1222. var bfreccretno = recpkspec[2];
  1223. var bfrecflag = recpkspec[3];
  1224. var bfrecinstcd = recpkspec[4];
  1225. model.removeNodeset("/root/send/req");
  1226. model.makeNode("/root/send/req");
  1227. model.makeValue("/root/send/req/pid", bfrecpid);
  1228. model.makeValue("/root/send/req/indd", bfrecindd);
  1229. model.makeValue("/root/send/req/cretno", bfreccretno);
  1230. model.makeValue("/root/send/req/instcd", bfrecinstcd);
  1231. model.makeValue("/root/send/req/recflag", bfrecflag);
  1232. //model.makeValue("/root/send/req/docucode", "0000002493");
  1233. //model.makeValue("/root/send/req/deptcd", orddeptcd);
  1234. //가정간호정보조사지
  1235. submit("TRMNF00302", false);
  1236. setParameter("SPMMR04711_shape", fGetXmlToStr("/root/main/wardrecinfo/genogrmnm/XMD"));
  1237. //XML 타입에 노드가 추가됨에 따라 존재하지 않는 노드들 추가 김홍점
  1238. var bdwtchngtermflag= instance1.selectSingleNode("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/bdwtchngtermflag");
  1239. if ( bdwtchngtermflag == null ) {
  1240. model.makeValue("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/bdwtchngtermflag","");
  1241. }
  1242. var constipt= instance1.selectSingleNode("/root/main/wardrecinfo/stoolinfo/stool/stoolconstipation");
  1243. if ( constipt == null ) {
  1244. model.makeValue("/root/main/wardrecinfo/stoolinfo/stool/stoolconstipation","");
  1245. }
  1246. var endmensage= instance1.selectSingleNode("/root/main/wardrecinfo/femaleinfo/female/female/endmensage");
  1247. if ( endmensage == null ) {
  1248. model.makeValue("/root/main/wardrecinfo/femaleinfo/female/female/endmensage","");
  1249. }
  1250. model.refresh();
  1251. }
  1252. ]]>
  1253. </script>
  1254. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  1255. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  1256. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  1257. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  1258. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  1259. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  1260. <script type="javascript" src="../../../emr/formmngtweb/js/MRF03800.js"/>
  1261. <script type="javascript" src="../../../emr/carecomweb/js/ENRSignEngine.js"/>
  1262. <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/codeinfo/codelist"/>
  1263. <submission id="TRMNF00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/paminfo"/>
  1264. <submission id="TRMNF00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main"/>
  1265. <submission id="TRMNF00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/init/newpat"/>
  1266. <submission id="TRMNF00304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/cominfo"/>
  1267. <submission id="TXMNF00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/wardrecinfo" resultref="/root/temp/wardrecinfo"/>
  1268. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  1269. <submission id="TRMNZ00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/enrcarecomrecinfo"/>
  1270. </model>
  1271. </xhtml:head>
  1272. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  1273. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  1274. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">가정간호정보조사</caption>
  1275. </group>
  1276. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  1277. <group id="grp_patinfo" scroll="auto" style="left:210px; top:50px; width:640px; height:20px; ">
  1278. <caption id="caption11" ref="/root/main/wardrecinfo/pid" style="left:534px; top:0px; width:96px; height:20px; font-family:돋움; "/>
  1279. <caption id="caption12" ref="/root/main/wardrecinfo/room" style="left:53px; top:0px; width:52px; height:20px; font-family:돋움; "/>
  1280. <caption id="caption13" ref="/root/main/wardrecinfo/patnm" style="left:180px; top:0px; width:60px; height:20px; font-family:돋움; "/>
  1281. <caption id="caption14" class="search_name" style="left:112px; top:1px; width:68px; height:17px; ">환자명:</caption>
  1282. <caption id="caption15" ref="/root/main/wardrecinfo/sex" style="left:308px; top:0px; width:32px; height:20px; font-family:돋움; "/>
  1283. <caption id="caption68" class="search_name" style="left:0px; top:1px; width:55px; height:17px; ">병실:</caption>
  1284. <caption id="caption16" class="search_name" style="left:250px; top:1px; width:58px; height:17px; ">성별:</caption>
  1285. <caption id="caption17" ref="/root/main/wardrecinfo/age" style="left:408px; top:0px; width:37px; height:20px; font-family:돋움; "/>
  1286. <caption id="caption18" class="search_name" style="left:350px; top:1px; width:58px; height:17px; ">나이:</caption>
  1287. <caption id="caption19" class="search_name" style="left:450px; top:1px; width:81px; height:17px; ">등록번호:</caption>
  1288. </group>
  1289. <input id="ipt_bfrecdd" ref="/root/main/wardrecinfo/bfrecdd" class="input_default" disabled="true" visibility="hidden" inputtype="date" style="left:83px; top:45px; width:100px; height:19px; "/>
  1290. <output id="opt_bfrectm" ref="/root/main/wardrecinfo/bfrectm" class="output_fix" visibility="hidden" format="hh:nn" style="left:240px; top:35px; width:50px; height:19px; "/>
  1291. <button id="btn_gnrlinfo" class="btn_sw" group="tab" selected="true" style="left:0px; top:49px; width:100px; height:22px; ">
  1292. <caption>일반정보</caption>
  1293. <toggle case="case1" ev:event="onclick"/>
  1294. </button>
  1295. <button id="btn_bodyasses" class="btn_sw" group="tab" style="left:100px; top:49px; width:100px; height:22px; ">
  1296. <caption>신체사정</caption>
  1297. <toggle case="case2" ev:event="onclick"/>
  1298. </button>
  1299. <button id="btn_edurec" class="btn_sw" visibility="hidden" group="tab" style="left:200px; top:49px; width:100px; height:22px; ">
  1300. <caption>교육요구도</caption>
  1301. <toggle case="case_edurec" ev:event="onclick"/>
  1302. </button>
  1303. <switch id="switch1" style="left:0px; top:70px; width:1194px; height:670px; border-color:#c7a3cf; border-style:solid; ">
  1304. <case id="case1" selected="true" style="left:0px; top:0px; width:1194px; height:674px; ">
  1305. <import id="import1" instancetype="merge" src="..\..\..\emr\wardcareweb\xrw\SMMNW08500_가정간호정보.xrw" style="left:0px; top:0px; width:1194px; height:670px; "/>
  1306. </case>
  1307. <case id="case2" style="left:0px; top:0px; width:1194px; height:673px; border-color:transparent; ">
  1308. <import id="import4" instancetype="merge" src="..\..\..\emr\wardcareweb\xrw\SMMNW08700_신체사정가정간호.xrw" style="left:0px; top:0px; width:1194px; height:670px; "/>
  1309. </case>
  1310. <case id="case_edurec" style="left:0px; top:0px; width:1194px; height:673px; border-color:transparent; ">
  1311. <iviewer id="ivw_edurec" style="left:0px; top:0px; width:1194px; height:670px; "/>
  1312. </case>
  1313. </switch>
  1314. <line id="line64" class="line_3" style="x1:0px; y1:41px; x2:1194px; y2:41px; "/>
  1315. <line id="line13" class="line_1" style="x1:0px; y1:13px; x2:1194px; y2:13px; "/>
  1316. <caption id="cap_bfrecdt" class="cell_1" style="left:0px; top:18px; width:80px; height:23px; vertical-align:middle; ">이전기록일시</caption>
  1317. <caption id="cap_bfrecuser" class="cell_1" style="left:239px; top:18px; width:80px; height:23px; vertical-align:middle; ">이전기록자</caption>
  1318. <output id="opt_bfrecuser" ref="/root/main/wardrecinfo/bfrecuser" class="output_fix" style="left:322px; top:20px; width:98px; height:19px; "/>
  1319. <caption id="cap_recdt" class="cell_1" style="left:424px; top:18px; width:80px; height:23px; vertical-align:middle; ">기록일시</caption>
  1320. <input id="ipt_recdd" ref="/root/main/wardrecinfo/recdd" class="input_default" inputtype="date" style="left:507px; top:20px; width:100px; height:19px; "/>
  1321. <input id="ipt_rectm" ref="/root/main/wardrecinfo/rectm" class="input_default" format="hh:nn" validateformat="true" style="left:610px; top:20px; width:50px; height:19px; "/>
  1322. <caption id="cap_recuser" class="cell_1" style="left:663px; top:18px; width:80px; height:23px; vertical-align:middle; ">기록자</caption>
  1323. <output id="opt_recuser" ref="/root/main/wardrecinfo/recuser" class="output_fix" style="left:746px; top:20px; width:98px; height:19px; "/>
  1324. <caption id="cap_infodnor" class="cell_1" style="left:847px; top:18px; width:80px; height:23px; vertical-align:middle; ">정보제공자</caption>
  1325. <input id="ipt_infodnor" ref="/root/main/wardrecinfo/infooffer" class="input_default" maxlength="10" style="left:930px; top:20px; width:100px; height:19px; "/>
  1326. <button id="btn_save" class="btn2_letter4" visibility="hidden" style="left:1062px; top:49px; width:64px; height:19px; ">
  1327. <caption>임시저장</caption>
  1328. <script type="javascript" ev:event="DOMActivate">
  1329. <![CDATA[
  1330. fPatgnrlInfo("T");
  1331. if(submit("TXMNF00301") == true) {
  1332. grd_famyfact.clearStatus();
  1333. model.setValue("/root/send/wardrecinfo", "");
  1334. messageBox("저장이 ", "I001");
  1335. // //mrfmform formnm,formtypecls, ocrtagprntyn (서식명칭, 서식type, ocrtag출력여부)
  1336. // //fPrint(prntflag) 저장시 prntflag 필요없음, 저장이 필요없으면 'A'
  1337. // //iveiwer.window.javascript.fGetOCRInfo(
  1338. // // iviewer1.window.javascript.fGetOCRInfo("0000001778", "20694", "20070824", "1", "I", "3", "Y");
  1339. //
  1340. // // iviewer1.window.javascript.fGetOCRInfo("0000001778", "20694", "20070824", "1", "I", "3", "Y");
  1341. // // iviewer1.window.javascript.fPrint("A");
  1342. model.setValue("/root/hidden/paminfo/paminfo/exeflag", "U");
  1343. } else {
  1344. messageBox("저장이 실패하였습니다. ", "E");
  1345. }
  1346. ]]>
  1347. </script>
  1348. </button>
  1349. <button id="button2" class="btn5_letter4" style="left:1129px; top:49px; width:64px; height:19px; ">
  1350. <caption>인증저장</caption>
  1351. <script type="javascript" ev:event="DOMActivate">
  1352. <![CDATA[
  1353. //var instUseYN = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='172']/cdid");//교육요구도 추가 20091216 김홍점
  1354. var instUseYN =""; //20100510 김홍점 외래 공통 교육요구도 개발에 의한 SPMRJ00300_교육요구도사정 사용안함.소경화itc요청
  1355. //가족사항 : 관계 필수 입력
  1356. for(var i = 1 ; i < grd_famyfact.rows; i++) {
  1357. var rela = model.getValue("/root/main/famyfact[" + i + "]/rela");
  1358. if(rela == "") {
  1359. messageBox("[가족사항 - 관계]는 필수 입력사항입니다.", "I");
  1360. return;
  1361. }
  1362. }
  1363. fPatgnrlInfo("C");
  1364. //20100115 JCI 김홍점 교육요구도 적용병원만 데이타 저장 및 인증데이타 생성
  1365. if ( instUseYN =="Y"){
  1366. model.removenode('/root/temp/signdata');
  1367. if ( !ivw_edurec.window.javascript.fSave() ){
  1368. return;
  1369. }
  1370. var xEduRecPath = '/root/temp/signdata/edurecinfo';
  1371. fMNWCareInfoRecMakeForJCI(xEduRecPath, ivw_edurec, "Y");//carecom.js (srcPath, destObj , 응급간호정보조사여부 구분 erYn 'Y' 이어야 퇴원교육요구도가 안보임.)
  1372. }
  1373. Sign.certreload = true ;
  1374. if (Sign.signprocess() == true){
  1375. //src="C:\CMCProject\application\webapps\emr\formmngtweb\xrw\SSMRF03800_OCR뷰어.xrw"
  1376. // alert("인증성공" );
  1377. // alert("1. 인증성공여부 false / true \n\n" + Sign.signedInfos[0]); // 인증성공여부 false / true
  1378. // alert("2. 인증할 데이터 정보 (미기록 노드 제거전 fMake_SignData원본 노드) \n\n" + Sign.signedInfos[3]); // 인증할 데이터 정보 (미기록 노드 제거전 원본 노드)
  1379. // alert("2.--> text 데이터(없는 노드 포함된) text 형태 변형 결과 \n\n" + Sign.signedInfos[4]); // [3] 데이터(없는 노드 포함된) text 형태 변형 결과
  1380. // alert("3. 인증할 데이터 정보(미기록 노드 제거된 정보) \n\n" + Sign.signedInfos[1]); // 인증할 데이터 정보(미기록 노드 제거된 정보)
  1381. // alert("3. -->text 데이터(없는 노드 제거된) text 형태 변형 결과 \n\n" + Sign.signedInfos[5]); // ★[1] 데이터(없는 노드 제거된) text 형태 변형 결과 >>> [5]
  1382. // alert("3. -->text --> sign 공인인증 처리후 데이터 \n\n" + Sign.signedInfos[2]); // ★공인인증 처리후 데이터 >>> [2]
  1383. model.makeValue("/root/send/wardrecinfo/pid", model.getValue("/root/temp/cond/list/pid"));
  1384. model.makeValue("/root/send/wardrecinfo/indd", model.getValue("/root/temp/cond/list/indd"));
  1385. model.makeValue("/root/send/wardrecinfo/signno", model.getValue("/root/signinfo/signno")); //20090722_SMY변경
  1386. model.makeValue("/root/send/wardrecinfo/cretno", "1");
  1387. model.makeValue("/root/send/wardrecinfo/recdd", model.getValue("/root/main/wardrecinfo/recdd"));
  1388. model.makeValue("/root/send/wardrecinfo/rectm", model.getValue("/root/main/wardrecinfo/rectm"));
  1389. model.makeValue("/root/send/wardrecinfo/recsaveflag", "Y");
  1390. model.makeValue("/root/send/wardrecinfo/signflag", "02");
  1391. model.makeValue("/root/send/wardrecinfo/signgenrflag", "O");
  1392. model.makeValue("/root/send/wardrecinfo/formcd", "0000002493");
  1393. model.makeValue("/root/send/wardrecinfo/orddeptcd", model.getValue("/root/temp/cond/list/orddeptcd"));
  1394. model.makeValue("/root/send/wardrecinfo/orddrid", model.getValue("/root/temp/cond/list/medispclid"));
  1395. model.makeValue("/root/send/wardrecinfo/signbfcnts", Sign.signedInfos[1]);
  1396. model.makeValue("/root/send/wardrecinfo/signaftcnts", Sign.signedInfos[2]);
  1397. if(submit("TXMNF00301") == true) {
  1398. grd_famyfact.clearStatus();
  1399. model.setValue("/root/send/wardrecinfo", "");
  1400. messageBox("저장이 ", "I001");
  1401. model.makeValue("/root/hidden/paminfo/paminfo/exeflag", "U");
  1402. fGetInitRecInfo(); //재조회
  1403. fInitEvent();
  1404. } else {
  1405. messageBox("저장이 실패하였습니다. ", "E");
  1406. }
  1407. }
  1408. ]]>
  1409. </script>
  1410. </button>
  1411. <input id="ipt_signno" ref="/root/main/wardrecinfo/signno" visibility="hidden" style="left:1065px; top:20px; width:100px; height:20px; "/>
  1412. <select1 id="cmb_bfrecddtm" ref="/root/main/wardrecinfo/bfrecddtm" class="combo_default" navindex="16" appearance="minimal" style="left:83px; top:20px; width:155px; height:19px; ">
  1413. <choices>
  1414. <itemset nodeset="/root/hidden/paminfo/recinfo">
  1415. <label ref="bfrecddtm"/>
  1416. <value ref="recpkspec"/>
  1417. </itemset>
  1418. </choices>
  1419. <script type="javascript" ev:event="xforms-value-changed">
  1420. <![CDATA[
  1421. fChgRecHistInfo();
  1422. ]]>
  1423. </script>
  1424. </select1>
  1425. <button id="button1" class="btn2_letter6" style="left:1040px; top:49px; width:86px; height:19px; ">
  1426. <caption>전체기록삭제</caption>
  1427. <script type="javascript" ev:event="DOMActivate">
  1428. <![CDATA[
  1429. setCareInfoDel("TXMNF00301"); //CareCom.js
  1430. ]]>
  1431. </script>
  1432. </button>
  1433. </group>
  1434. <group id="group4" scroll="auto" style="left:0px; top:756px; width:1195px; height:22px; ">
  1435. <line id="line62" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  1436. </group>
  1437. </xhtml:body>
  1438. </xhtml:html>