SMMNN00310_NEW산모 간호정보조사.xrw 111 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454
  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. <signno/>
  21. <room/>
  22. <patnm/>
  23. <sex/>
  24. <age/>
  25. <pid/>
  26. <fstrgstrnm/>
  27. <fstrgstdt/>
  28. </wardrecinfo>
  29. </main>
  30. <send>
  31. <req/>
  32. <patgnrlinfo/>
  33. <wardrecinfo/>
  34. <bodyases/>
  35. </send>
  36. <init>
  37. <mlist>
  38. <M0068>
  39. <cdid/>
  40. <cdnm/>
  41. </M0068>
  42. <M0069>
  43. <cdid/>
  44. <cdnm/>
  45. </M0069>
  46. <M0070>
  47. <cdid/>
  48. <cdnm/>
  49. </M0070>
  50. <M0071>
  51. <cdid/>
  52. <cdnm/>
  53. </M0071>
  54. <M0072>
  55. <cdid/>
  56. <cdnm/>
  57. </M0072>
  58. <M0073>
  59. <cdid/>
  60. <cdnm/>
  61. </M0073>
  62. <M0074>
  63. <cdid/>
  64. <cdnm/>
  65. </M0074>
  66. </mlist>
  67. </init>
  68. <hidden>
  69. <paminfo/>
  70. <histinfo/>
  71. <wardrecinfo/>
  72. <bodyases>
  73. <mfmdstatinfo/>
  74. <shpaininfo/>
  75. <resorgninfo/>
  76. <digorgninfo/>
  77. <nvesysinfo/>
  78. <skinsectinfo/>
  79. </bodyases>
  80. <rsltinfo/>
  81. </hidden>
  82. <codeinfo/>
  83. </root>
  84. </instance>
  85. <script type="javascript" ev:event="xforms-ready">
  86. <![CDATA[
  87. //--------(20101028) 경북대
  88. if (fEssentialBackColor != "") {
  89. ipt_infooffer.attribute("background-color") = fEssentialBackColor;
  90. }
  91. //--------(20101028) 경북대
  92. fGetCmbList();
  93. fInit();
  94. if(fGetInitRecInfo()) {
  95. fGetIndtInfo(); //현재수진이력의 입원시간을 가져온다
  96. fInitEvent("init");
  97. model.refresh();
  98. } else {
  99. window.close();
  100. }
  101. ]]>
  102. </script>
  103. <script type="javascript">
  104. <![CDATA[
  105. var status = "select";
  106. var allgInsYN = "Y";
  107. var NoneInspCode = "-1"; //측정불가코드값
  108. //현재수진이력의 입원시간을 가져온다
  109. function fGetIndtInfo() {
  110. var indd = model.getValue("/root/temp/cond/list/indd");
  111. var recpkspec = (model.getValue("/root/main/wardrecinfo/bfrecddtm")).split("|"); //이전기록일시
  112. var bfrecindd = recpkspec[1]; //이전기록일시 입원일자
  113. if(indd != bfrecindd) {
  114. ipt_indt.value = model.getValue("/root/temp/cond/list/careinrmtm"); //입원시간
  115. }
  116. }
  117. function fGetCmbList() {
  118. model.removeNodeset("/root/init/mlist");
  119. model.makeNode("/root/init/mlist");
  120. //성가병원 기관코드 조회_20090626_SMY
  121. fGetNursHardCdInfo("'077','172','177', 'U31','R02','W25'", getCurrentDate()); //CareCom.js
  122. zbcfGetCodeList( new Array ( "M0068" //직업
  123. ,"M0069" //교육정도
  124. ,"M0070" //종교
  125. ,"M0071" //결혼상태
  126. ,"M0151" //결혼상태
  127. ,"M0072" //관계
  128. ,"M0073" //부위
  129. ,"M0376" //혈액형
  130. ,"M0075" //의식상태
  131. ,"M0088" //생존여부
  132. ,"M0090" //알러지
  133. ,"M0098" //동반자
  134. ,"M0100" //지남력
  135. ,"M0102" //요흔
  136. ,"M0103" //부착기구
  137. ,"M0104" //소변색깔
  138. ,"M0105" //소변증상
  139. ,"M0106" //대변색깔
  140. ,"M0107" //대변종류
  141. ,"M0109" //동공빛반사여부
  142. ,"M0110" //동공수치
  143. ,"M0411" //영적요구
  144. ,"M0210" //입원방법
  145. ,"M0418" //입원방법
  146. ,"M0375" //체온부위
  147. ,"M0368" //가족병력내역
  148. ,"M0532" //과거병력내역_20090406_SMY추가
  149. ,"M0634" //통증사정내역
  150. )
  151. , new Array ( "/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. ,"/root/init/mlist" //동공빛반사여부
  171. ,"/root/init/mlist" //동공수치
  172. ,"/root/init/mlist" //영적요구
  173. ,"/root/init/mlist" //입원방법
  174. ,"/root/init/mlist" //입원경로
  175. ,"/root/init/mlist" //체온부위
  176. ,"/root/init/mlist" //가족병력내역
  177. ,"/root/init/mlist" //과거병력내역
  178. ,"/root/init/mlist" //통증사정내역
  179. )
  180. );
  181. model.refresh();
  182. }
  183. function fInitEvent(pFlag) {
  184. fInitEventBrthInfo();
  185. fInitEventBodyAses(pFlag);
  186. }
  187. //화면 로딩시
  188. function fInit(){
  189. var hiddenhistPath = "/root/hidden/histinfo";
  190. var hiddenbodyasesPath = "/root/hidden/bodyases";
  191. model.copyNode(hiddenhistPath, "/root/main/histinfo");
  192. model.copyNode("/root/hidden/wardrecinfo", "/root/main/wardrecinfo");
  193. model.makeValue(hiddenhistPath + "/pasthistinfo/pasthist/pasthistinclyn", "1");
  194. model.makeValue(hiddenhistPath + "/famyhistinfo/famyhist/famyhistinclyn", "1");
  195. model.makeValue(hiddenhistPath + "/inhistinfo/inhist/inhistinclyn", "1");
  196. model.makeValue(hiddenhistPath + "/ophistinfo/ophist/ophistinclyn", "1");
  197. model.makeValue("/root/hidden/wardrecinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn", "1");
  198. model.makeValue(hiddenhistPath + "/allghistinfo/allghist/allghistinclyn", "1");
  199. model.makeValue(hiddenhistPath + "/vacnhistinfo/vacnhist/vacnhistinfoinclyn", "1");
  200. model.copyNode(hiddenbodyasesPath + "/mfmdstatinfo", "/root/main/wardrecinfo/mfmdstatinfo");
  201. model.makeValue(hiddenbodyasesPath + "/mfmdstatinfo/mfmdstat/mfmdstatinfoinclyn", "1");
  202. model.copyNode(hiddenbodyasesPath + "/shpaininfo", "/root/main/wardrecinfo/shpaininfo");
  203. model.makeValue(hiddenbodyasesPath + "/shpaininfo/shpain/shpaininfoinclyn", "1");
  204. model.copyNode(hiddenbodyasesPath + "/resorgninfo", "/root/main/wardrecinfo/resorgninfo");
  205. model.makeValue(hiddenbodyasesPath + "/resorgninfo/resorgn/resorgninfoinclyn", "1");
  206. model.copyNode(hiddenbodyasesPath + "/digorgninfo", "/root/main/wardrecinfo/digorgninfo");
  207. model.makeValue(hiddenbodyasesPath + "/digorgninfo/digorgn/digorgninfoinclyn", "1");
  208. model.copyNode(hiddenbodyasesPath + "/nvesysinfo", "/root/main/wardrecinfo/nvesysinfo");
  209. model.makeValue(hiddenbodyasesPath + "/nvesysinfo/nvesys/nvesysinfoinclyn", "1");
  210. model.copyNode(hiddenbodyasesPath + "/skinsectinfo", "/root/main/wardrecinfo/skinsectinfo");
  211. model.makeValue("/root/hidden/bodyases/skinsectinfo/skinsect/skincolorinfoinclyn", "1");
  212. model.makeValue("/root/hidden/bodyases/skinsectinfo/skinsect/skinstatinfoinclyn", "1");
  213. model.makeNode("/root/temp/cond/list");
  214. getPatientInfoDetails("/root/temp/cond/list");
  215. // 현재 로컬 웹상에서 사용할 경우
  216. // model.makeValue("/root/send/req/pid", model.getValue("/root/temp/cond/list/pid"));
  217. // model.makeValue("/root/send/req/indd", model.getValue("/root/temp/cond/list/indd"));
  218. // model.makeValue("/root/send/req/instcd", model.getValue("/root/temp/cond/list/instcd"));
  219. // model.makeValue("/root/send/req/cretno", model.getValue("/root/temp/cond/list/cretno"));
  220. // model.makeValue("/root/send/req/recflag", "03");
  221. //각 화면 상단에 선택된 환자 정보 display 필요함. (병실-성명-S/A-등록번호)
  222. var pid;
  223. var room;
  224. var patnm;
  225. var sex;
  226. var age;
  227. var instcd;
  228. var orddeptcd;
  229. var indd;
  230. room = model.getValue("/root/temp/cond/list/roomcd");
  231. patnm = model.getValue("/root/temp/cond/list/hngnm2");
  232. sex = model.getValue("/root/temp/cond/list/sex");
  233. age = model.getValue("/root/temp/cond/list/age");
  234. pid = model.getValue("/root/temp/cond/list/pid");
  235. indd = model.getValue("/root/temp/cond/list/indd");
  236. instcd = model.getValue("/root/temp/cond/list/instcd");
  237. orddetpcd = model.getValue("/root/temp/cond/list/orddeptcd");
  238. cretno = model.getValue("/root/temp/cond/list/cretno");
  239. ioflag = model.getValue("/root/temp/cond/list/ioflag");
  240. model.makeValue("/root/main/wardrecinfo/room", room);
  241. model.makeValue("/root/main/wardrecinfo/patnm", patnm);
  242. model.makeValue("/root/main/wardrecinfo/sex", sex);
  243. model.makeValue("/root/main/wardrecinfo/age", age);
  244. model.makeValue("/root/main/wardrecinfo/pid", pid);
  245. model.makeValue("/root/main/wardrecinfo/indd", indd);
  246. var scrnid =getScreenID();
  247. var param = "pid▦orddd▦cretno▦ordtype▦scrnid"
  248. +"▩" + pid+"▦" +indd+"▦"+cretno+"▦"+ioflag+"▦"+scrnid+"▩";
  249. fEnrCareComRecInfo_SPMNZ002(param, "/root/main/enrcarecomrecinfo"); //타 간호정보조사지기록 유무확인 model.refresh();
  250. model.refresh();
  251. }
  252. //간호정보조사지 조회
  253. function fGetInitRecInfo() {
  254. var pid = model.getValue("/root/temp/cond/list/pid");
  255. var indd = model.getValue("/root/temp/cond/list/indd");
  256. var cretno = model.getValue("/root/temp/cond/list/cretno");
  257. var instcd = model.getValue("/root/temp/cond/list/instcd");
  258. var orddeptcd = model.getValue("/root/temp/cond/list/orddeptcd");
  259. var instUseYN = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='172']/cdid");//교육요구도 추가 20091216 김홍점
  260. var deptcd = model.getValue("/root/temp/cond/list/wardcd");
  261. var userdept = getUserInfo("dutplcecd");
  262. var spiritdept = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='U31']/cdid");
  263. if(deptcd == spiritdept) {
  264. if(userdept != spiritdept) {
  265. messageBox("환자 개인정보 보호를 위해 해당병동 사용자외엔 조회를 제한합니다", "E");
  266. return false;
  267. }
  268. }
  269. //웹용 인자값 셋팅
  270. model.makeValue("/root/send/req/pid", pid);
  271. model.makeValue("/root/send/req/indd", indd);
  272. model.makeValue("/root/send/req/instcd", instcd);
  273. model.makeValue("/root/send/req/recflag", "03");
  274. model.makeValue("/root/send/req/docucode", "0000002504");
  275. model.makeValue("/root/send/req/deptcd", orddeptcd);
  276. if(pid == "") {
  277. messageBox("환자를 선택하지 ", "E007");
  278. window.close();
  279. } else {
  280. if(instUseYN == "Y"){
  281. btn_edurec.visible = true;
  282. btn_SPMMO14900.visible = true;
  283. grp_patinfo.attribute("style")="left:310px; top:50px; width:640px; height:20px;" ;
  284. setParameter("SPMRJ00300_pid", pid);
  285. setParameter("SPMRJ00300_orddd", indd);
  286. setParameter("SPMRJ00300_cretno", cretno);
  287. ivw_edurec.src = "../../../emr/jcimngtweb/xrw/SPMRJ00300_교육요구도사정.xrw.xrw";
  288. }else{
  289. grp_patinfo.attribute("style")="left:210px; top:50px; width:640px; height:20px;" ;
  290. btn_edurec.visible = false;
  291. btn_SPMMO14900.visible = false;
  292. }
  293. submit("TRMNN00301", false); //저장후 삭제(K), 신규(I), 수정(U)
  294. var exeflag = model.getValue("/root/hidden/paminfo/paminfo/exeflag");
  295. if(exeflag == 'U') {
  296. submit("TRMNN00302", false);
  297. var existfamyinfo = model.getValue("/root/main/wardrecinfo/existfamyinfo");
  298. setParameter("SPMMR04711_shape", fGetXmlToStr("/root/main/wardrecinfo/genogrmnm/XMD"));
  299. //마지막 기록일시 셋팅
  300. var fstrgstdt = model.getValue("/root/hidden/paminfo/recinfo[recflag = '03' and indd = '" + indd + "']/fstrgstdt");
  301. model.setValue("/root/main/wardrecinfo/bfrecddtm", model.getValue("/root/hidden/paminfo/recinfo[recflag = '03' and indd = '" + indd + "']/recpkspec"));
  302. model.setValue("/root/main/wardrecinfo/bfrecuser", model.getValue("/root/hidden/paminfo/recinfo[recflag = '03' and indd = '" + indd + "']/bfrecuser"));
  303. //임신주수 계산
  304. ipt_edc.dispatch("xforms-value-changed");
  305. //입원일자 셋팅(응급실 경유 환자인 경우 입실체크가 되는 시점(즉 응급실 퇴실시점)의 일자가 병동 입원일자로 조회됨)_20090303_SMY
  306. model.setValue("/root/main/wardrecinfo/indd", model.getValue("/root/temp/cond/list/careinrmdd"));
  307. model.refresh();
  308. } else {
  309. //이전 기록이 있을 경우 가장 최근의 정보 자동 셋팅
  310. if(model.getValue("/root/hidden/paminfo/recinfo/recpkspec") != ""){
  311. model.setValue("/root/main/wardrecinfo/bfrecddtm", model.getValue("/root/hidden/paminfo/recinfo/recpkspec"));
  312. fChgRecHistInfo();
  313. }else{
  314. submit("TRMNN00304", false);
  315. var exist = model.getValue("/root/hidden/cominfo/histinfo/existyn");
  316. var existfamyinfo = model.getValue("/root/hidden/cominfo/famyinfo/existfamyinfo");
  317. setParameter("SPMMR04711_shape", fGetXmlToStr("/root/hidden/cominfo/famyinfo/genogrmnm/XMD"));
  318. //가족사항 연동부분
  319. model.removeNodeset("/root/main/famyfact");
  320. if(getNodesetCount("/root/hidden/cominfo/famyfact") > 0){
  321. for(var i=1; i <= getNodesetCount("/root/hidden/cominfo/famyfact"); i++) {
  322. if(model.getValue("/root/hidden/cominfo/famyfact["+ i +"]/rela") != ""){
  323. model.duplicate("/root/main", "/root/hidden/cominfo/famyfact["+ i +"]");
  324. }
  325. }
  326. }
  327. if(exist == "N") {
  328. model.copyNode("/root/main/histinfo", "/root/hidden/histinfo");
  329. model.setValue("/root/main/histinfo/pasthistinfo/pasthist/pasthistinclyn", "");
  330. model.setValue("/root/main/histinfo/famyhistinfo/famyhist/famyhistinclyn", "");
  331. model.setValue("/root/main/histinfo/inhistinfo/inhist/inhistinclyn", "");
  332. model.setValue("/root/main/histinfo/ophistinfo/ophist/ophistinclyn", "");
  333. model.setValue("/root/main/wardrecinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn", "");
  334. model.setValue("/root/main/histinfo/allghistinfo/allghist/allghistinclyn", "");
  335. model.setValue("/root/main/histinfo/vacnhistinfo/vacnhist/vacnhistinfoinclyn", "");
  336. } else {
  337. model.copyNode("/root/main/histinfo", "/root/hidden/cominfo/histinfo");
  338. }
  339. model.setValue("/root/main/wardrecinfo/religncd", model.getValue("/root/hidden/paminfo/paminfo/religncd"));
  340. model.setValue("/root/main/wardrecinfo/baptnm", model.getValue("/root/hidden/paminfo/paminfo/baptnm"));
  341. model.setValue("/root/main/wardrecinfo/tel", model.getValue("/root/hidden/paminfo/paminfo/tel"));
  342. model.setValue("/root/main/wardrecinfo/mphone", model.getValue("/root/hidden/paminfo/paminfo/mphone"));
  343. model.setValue("/root/main/wardrecinfo/etcphone1", model.getValue("/root/hidden/paminfo/paminfo/etcphone1"));
  344. model.setValue("/root/main/wardrecinfo/etcphone2", model.getValue("/root/hidden/paminfo/paminfo/etcphone2"));
  345. //입원일자 셋팅(응급실 경유 환자인 경우 입실체크가 되는 시점(즉 응급실 퇴실시점)의 일자가 병동 입원일자로 조회됨)_20090303_SMY
  346. model.setValue("/root/main/wardrecinfo/indd", model.getValue("/root/temp/cond/list/careinrmdd"));
  347. //model.setValue("/root/main/wardrecinfo/indd", indd);
  348. //기록일시 정보를 쿼리에서 가져옴
  349. model.setValue("/root/main/wardrecinfo/recdd", model.getValue("/root/hidden/paminfo/paminfo/recdd"));
  350. model.setValue("/root/main/wardrecinfo/rectm", model.getValue("/root/hidden/paminfo/paminfo/rectm"));
  351. model.setValue("/root/main/wardrecinfo/recuser", model.getValue("/root/hidden/paminfo/paminfo/recuser"));
  352. model.refresh();
  353. }
  354. }
  355. //최초기록자
  356. fMNWCareComFstdtSet( "03", "SRCH" );
  357. fNotExistsNodeCreate();
  358. //가계도 연동부분.
  359. if(existfamyinfo == "Y") {
  360. model.setValue("/root/main/wardrecinfo/famytree/existyn", "Y");
  361. opt_existyn.refresh();
  362. }
  363. }
  364. status = "select";
  365. if(grd_allghist.rows > 1) {
  366. for(var i = 0; i < grd_allghist.cols; i++) {
  367. if(grd_allghist.valueMatrix(1, i) != "") {
  368. allgInsYN = "N";
  369. }
  370. }
  371. }
  372. if(model.getValue("/root/main/wardrecinfo/inmotiveinfo/inmotive/inmotive1") == ""){
  373. model.setValue("/root/main/wardrecinfo/inmotiveinfo/inmotive/inmotive1", "Y");
  374. }
  375. if(model.getValue("/root/main/wardrecinfo/inmotiveinfo/inmotive/illnessflag") == ""){
  376. model.setValue("/root/main/wardrecinfo/inmotiveinfo/inmotive/illnessflag", "Y");
  377. }
  378. if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/drunkinfo/drunkinfoyn") == ""){
  379. model.setValue("/root/main/wardrecinfo/gustoinfo/gusto/drunkinfo/drunkinfoyn", "1");
  380. }
  381. if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/gustofoodinfo/gustofoodyn") == ""){
  382. model.setValue("/root/main/wardrecinfo/gustoinfo/gusto/gustofoodinfo/gustofoodyn", "1");
  383. }
  384. if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn") == ""){
  385. model.setValue("/root/main/wardrecinfo/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn", "1");
  386. }
  387. if(model.getValue("/root/main/allgtemp/smoktemp") == ""){
  388. model.makeValue("/root/main/allgtemp/smoktemp", "(입원전 1개월이내 ");
  389. }
  390. if(model.getValue("/root/main/allgtemp/smoktemp2") == ""){
  391. model.makeValue("/root/main/allgtemp/smoktemp2", "흡연여부 : ");
  392. }
  393. model.refresh();
  394. return true;
  395. }
  396. //노드 추가에 따른 존재하지 않는 노드생성
  397. function fNotExistsNodeCreate(){
  398. // var bdwtchngtermflag= instance1.selectSingleNode("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/bdwtchngtermflag");
  399. //
  400. // if ( bdwtchngtermflag == null ) {
  401. //
  402. // model.makeValue("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/bdwtchngtermflag","");
  403. // }
  404. // if ( rdo_incdecflag != null){
  405. // var incdecflag= instance1.selectSingleNode(rdo_incdecflag.attribute("ref"));
  406. //
  407. // if ( incdecflag == null ) {
  408. //
  409. // model.makeNode(rdo_incdecflag.attribute("ref"));
  410. // }
  411. //
  412. // }
  413. var constipt= instance1.selectSingleNode("/root/main/wardrecinfo/stoolinfo/stool/stoolconstipation");
  414. if ( constipt == null ) {
  415. model.makeValue("/root/main/wardrecinfo/stoolinfo/stool/stoolconstipation","");
  416. }
  417. var shpaininfoflag= instance1.selectSingleNode(cmb_shpaininfoflag.attribute("ref"));
  418. if(shpaininfoflag == null) {
  419. model.makeValue(cmb_shpaininfoflag.attribute("ref"), "");
  420. }
  421. if(model.getValue(rdo_shpaininfoinclyn.attribute("ref")) == "1") {
  422. cmb_shpaininfoflag.disabled = false;
  423. } else {
  424. cmb_shpaininfoflag.disabled = true;
  425. }
  426. // 영양사정 - 식욕상태 ('15.05.19 - AYS)
  427. var apptstatflag= instance1.selectSingleNode("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/apptstatflag");
  428. if ( apptstatflag == null ) {
  429. model.makeValue("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/apptstatflag","");
  430. }
  431. // 영양사정 - 체중감소 ('15.05.19 - AYS)
  432. var bdwtchngyn= instance1.selectSingleNode("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/bdwtchngyn");
  433. if ( bdwtchngyn == null ) {
  434. model.makeValue("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/bdwtchngyn","");
  435. }
  436. // 영양사정 - 연하곤란 ('15.05.19 - AYS)
  437. var dysphagiayn= instance1.selectSingleNode("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/dysphagiayn");
  438. if ( dysphagiayn == null ) {
  439. model.makeValue("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/dysphagiayn","");
  440. }
  441. }
  442. function fGetXmlToStr(xPath) {
  443. var str = instance1.selectNodesXml(xPath);
  444. return str;
  445. }
  446. function fChkInclYN() {
  447. var mainhistPath = "/root/main/histinfo";
  448. var hiddenhistPath = "/root/hidden/histinfo";
  449. var sendPath = "/root/send/wardrecinfo";
  450. var mainPath = "/root/main/wardrecinfo";
  451. var tempPath = "/root/temp/wardrecinfo";
  452. var bodyasesPath = "/root/hidden/bodyases";
  453. //병력 XML
  454. var pasthistyn = model.getValue(mainhistPath + "/pasthistinfo/pasthist/pasthistinclyn");
  455. var famyhistyn = model.getValue(mainhistPath + "/famyhistinfo/famyhist/famyhistinclyn");
  456. var inhistyn = model.getValue(mainhistPath + "/inhistinfo/inhist/inhistinclyn");
  457. var ophistyn = model.getValue(mainhistPath + "/ophistinfo/ophist/ophistinclyn");
  458. var rectmedistatyn = model.getValue("/root/main/wardrecinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn");
  459. var allhistinclyn = model.getValue(mainhistPath + "/allghistinfo/allghist/allghistinclyn");
  460. //신체사정XML
  461. var mfmdstatyn = model.getValue(mainPath + "/mfmdstatinfo/mfmdstat/mfmdstatinfoinclyn");
  462. var shpaininfoyn = model.getValue(mainPath + "/shpaininfo/shpain/shpaininfoinclyn");
  463. var resorgninfoyn = model.getValue(mainPath + "/resorgninfo/resorgn/resorgninfoinclyn");
  464. var digorgninfoyn = model.getValue(mainPath + "/digorgninfo/digorgn/digorgninfoinclyn");
  465. var nvesysinfoyn = model.getValue(mainPath + "/nvesysinfo/nvesys/nvesysinfoinclyn");
  466. var skincolorinfoyn = model.getValue(mainPath + "/skinsectinfo/skinsect/skincolorinfoinclyn");
  467. var skinstatinfoyn = model.getValue(mainPath + "/skinsectinfo/skinsect/skinstatinfoinclyn");
  468. //신체사정
  469. if(mfmdstatyn == "1") {
  470. model.makeValue(sendPath + "/mfmdstatinfo", fGetXmlToStr(bodyasesPath + "/mfmdstatinfo/mfmdstat"));
  471. } else {
  472. model.makeValue(sendPath + "/mfmdstatinfo", fGetXmlToStr(mainPath +"/mfmdstatinfo/mfmdstat"));
  473. }
  474. if(shpaininfoyn == "1") {//통증 : 무(default)/유 선택20100122 김홍점
  475. model.makeValue("/root/send/wardrecinfo/shpaininfo", fGetXmlToStr("/root/hidden/bodyases/shpaininfo/shpain"));
  476. }else {
  477. model.makeValue("/root/send/wardrecinfo/shpaininfo", fGetXmlToStr("/root/main/wardrecinfo/shpaininfo/shpain"));
  478. }
  479. if(resorgninfoyn == "1") {
  480. model.makeValue(sendPath + "/resorgninfo", fGetXmlToStr(bodyasesPath + "/resorgninfo/resorgn"));
  481. } else {
  482. model.makeValue(sendPath + "/resorgninfo", fGetXmlToStr(mainPath + "/resorgninfo/resorgn"));
  483. }
  484. if(digorgninfoyn == "1") {
  485. model.makeValue(sendPath + "/digorgninfo", fGetXmlToStr(bodyasesPath + "/digorgninfo/digorgn"));
  486. } else {
  487. model.makeValue(sendPath + "/digorgninfo", fGetXmlToStr(mainPath + "/digorgninfo/digorgn"));
  488. }
  489. if(nvesysinfoyn == "1") {
  490. model.makeValue(sendPath + "/nvesysinfo", fGetXmlToStr(bodyasesPath + "/nvesysinfo/nvesys"));
  491. } else {
  492. model.makeValue(sendPath + "/nvesysinfo", fGetXmlToStr(mainPath + "/nvesysinfo/nvesys"));
  493. }
  494. model.makeNode(tempPath + "/skinsectinfo");
  495. model.copyNode(tempPath + "/skinsectinfo", mainPath + "/skinsectinfo");
  496. if(skincolorinfoyn != "1" && skinstatinfoyn != "1") {
  497. model.makeValue(sendPath + "/skinsectinfo", fGetXmlToStr(mainPath + "/skinsectinfo/skinsect"));
  498. } else {
  499. if(skincolorinfoyn == "1") {
  500. model.setValue(tempPath + "/skinsectinfo/skinsect/skincolorinfoinclyn", model.getValue(bodyasesPath + "/skinsectinfo/skinsect/skincolorinfoinclyn"));
  501. model.copyNode(tempPath + "/skinsectinfo/skinsect/skincolor", bodyasesPath + "/skinsectinfo/skinsect/skincolor");
  502. }
  503. if(skinstatinfoyn == "1") {
  504. model.setValue(tempPath + "/skinsectinfo/skinsect/skinstatinfoinclyn", model.getValue(bodyasesPath + "/skinsectinfo/skinsect/skinstatinfoinclyn"));
  505. model.copyNode(tempPath + "/skinsectinfo/skinsect/skinstat", bodyasesPath + "/skinsectinfo/skinsect/skinstat");
  506. }
  507. model.makeValue(sendPath + "/skinsectinfo", fGetXmlToStr(tempPath + "/skinsectinfo/skinsect"));
  508. }
  509. //병력
  510. if(pasthistyn == "1") {
  511. model.makeValue(sendPath + "/pasthistinfo", fGetXmlToStr(hiddenhistPath + "/pasthistinfo/pasthist"));
  512. } else {
  513. model.makeValue(sendPath + "/pasthistinfo", fGetXmlToStr(mainhistPath + "/pasthistinfo/pasthist"));
  514. }
  515. if(famyhistyn == "1") {
  516. model.makeValue(sendPath + "/famyhistinfo", fGetXmlToStr(hiddenhistPath + "/famyhistinfo/famyhist"));
  517. } else {
  518. model.makeValue(sendPath + "/famyhistinfo", fGetXmlToStr(mainhistPath + "/famyhistinfo/famyhist"));
  519. }
  520. if(inhistyn == "1") {
  521. model.makeValue(sendPath + "/inhistinfo", fGetXmlToStr(hiddenhistPath + "/inhistinfo/inhist"));
  522. } else {
  523. model.makeValue(sendPath + "/inhistinfo", fGetXmlToStr(mainhistPath + "/inhistinfo/inhist"));
  524. }
  525. if(ophistyn == "1") {
  526. model.makeValue(sendPath + "/ophistinfo", fGetXmlToStr(hiddenhistPath + "/ophistinfo/ophist"));
  527. } else {
  528. model.makeValue(sendPath + "/ophistinfo", fGetXmlToStr(mainhistPath + "/ophistinfo/ophist"));
  529. }
  530. if(rectmedistatyn == "1") {
  531. model.makeValue("/root/send/wardrecinfo/rectmedistatinfo", fGetXmlToStr("/root/hidden/wardrecinfo/rectmedistatinfo/rectmedistat"));
  532. } else {
  533. model.makeValue("/root/send/wardrecinfo/rectmedistatinfo", fGetXmlToStr("/root/main/wardrecinfo/rectmedistatinfo/rectmedistat"));
  534. }
  535. if(allhistinclyn == "1") {
  536. model.makeValue(sendPath + "/allghistinfo", fGetXmlToStr(hiddenhistPath + "/allghistinfo/allghist"));
  537. } else {
  538. model.makeValue(sendPath + "/allghistinfo", fGetXmlToStr(mainhistPath + "/allghistinfo/allghist"));
  539. }
  540. //model.makeValue("/root/send/wardrecinfo/vacnhistinfo", fGetXmlToStr("/root/hidden/histinfo/vacnhistinfo/vacnhist"));
  541. //model.makeValue("/root/send/wardrecinfo/smokinfo", fGetXmlToStr("/root/hidden/histinfo/smokinfo/smok"));
  542. //model.makeValue("/root/send/wardrecinfo/drunkinfo", fGetXmlToStr("/root/hidden/histinfo/drunkinfo/drunk"));
  543. //model.makeValue("/root/send/wardrecinfo/gustofoodinfo", fGetXmlToStr("/root/hidden/histinfo/gustofoodinfo/gustofood"));
  544. //model.makeValue("/root/send/wardrecinfo/tnsseffcinfo", fGetXmlToStr("/root/hidden/histinfo/tnsseffcinfo/tnsseffc"));
  545. //다른 기록지에서 저장한 이력을 조회하여 저장한다.
  546. model.makeValue("/root/send/wardrecinfo/vacnhistinfo", fGetXmlToStr("/root/main/histinfo/vacnhistinfo/vacnhist"));
  547. model.makeValue("/root/send/wardrecinfo/smokinfo", fGetXmlToStr("/root/main/histinfo/smokinfo/smok"));
  548. model.makeValue("/root/send/wardrecinfo/drunkinfo", fGetXmlToStr("/root/main/histinfo/drunkinfo/drunk"));
  549. model.makeValue("/root/send/wardrecinfo/gustofoodinfo", fGetXmlToStr("/root/main/histinfo/gustofoodinfo/gustofood"));
  550. model.makeValue("/root/send/wardrecinfo/tnsseffcinfo", fGetXmlToStr("/root/main/histinfo/tnsseffcinfo/tnsseffc"));
  551. }
  552. function fPatgnrlInfo(certFlag) {
  553. var userid = getUserId();
  554. var mainPath ="/root/main/wardrecinfo";
  555. var sendPath = "/root/send/wardrecinfo";
  556. //model.removeNodeset("/root/send/wardinfo");
  557. //환자기본정보
  558. model.makeValue(sendPath + "/privacy", model.getValue(mainPath + "/privacy"));
  559. model.makeValue(sendPath + "/jobcd", model.getValue(mainPath + "/jobcd"));
  560. model.makeValue(sendPath + "/jobnm", model.getValue(mainPath + "/jobnm"));
  561. model.makeValue(sendPath + "/educgrdecd", model.getValue(mainPath + "/educgrdecd"));
  562. model.makeValue(sendPath + "/educgrdenm", model.getValue(mainPath + "/educgrdenm"));
  563. model.makeValue(sendPath + "/religncd", model.getValue(mainPath + "/religncd"));
  564. model.makeValue(sendPath + "/relignnm", model.getValue(mainPath + "/relignnm"));
  565. model.makeValue(sendPath + "/marystatcd", model.getValue(mainPath + "/marystatcd"));
  566. model.makeValue(sendPath + "/marystatnm", model.getValue(mainPath + "/marystatnm"));
  567. model.makeValue(sendPath + "/baptnm", model.getValue(mainPath + "/baptnm"));
  568. model.makeValue(sendPath + "/relignreq", model.getValue(mainPath + "/relignreq"));
  569. model.makeValue(sendPath + "/telflag", model.getValue(mainPath + "/telflag"));
  570. model.makeValue(sendPath + "/tel", model.getValue(mainPath + "/tel"));
  571. model.makeValue(sendPath + "/mphone", model.getValue(mainPath + "/mphone"));
  572. model.makeValue(sendPath + "/etctelflag", model.getValue(mainPath + "/etctelflag"));
  573. model.makeValue(sendPath + "/etcphone1", model.getValue(mainPath + "/etcphone1"));
  574. model.makeValue(sendPath + "/etcphone2", model.getValue(mainPath + "/etcphone2"));
  575. //가계도
  576. model.makeValue(sendPath + "/famytree", fGetXmlToStr(mainPath + "/famytree/existyn"));
  577. //입원정보
  578. model.makeValue(sendPath + "/indd", model.getValue(mainPath + "/indd"));
  579. model.makeValue(sendPath + "/indt", model.getValue(mainPath + "/indt"));
  580. model.makeValue(sendPath + "/inpathcd", model.getValue(mainPath + "/inpathcd"));
  581. model.makeValue(sendPath + "/inpathnm", model.getValue(mainPath + "/inpathnm"));
  582. model.makeValue(sendPath + "/inmthdcd", model.getValue(mainPath + "/inmthdcd"));
  583. model.makeValue(sendPath + "/inmthdnm", model.getValue(mainPath + "/inmthdnm"));
  584. model.makeValue(sendPath + "/inacompstcd", model.getValue(mainPath + "/inacompstcd"));
  585. model.makeValue(sendPath + "/inacompstnm", model.getValue(mainPath + "/inacompstnm"));
  586. //일반정보
  587. model.makeValue(sendPath + "/basebdinfoinclyn", model.getValue(mainPath + "/basebdinfoinclyn"));
  588. /*
  589. model.makeValue(sendPath + "/lowbp", model.getValue(mainPath + "/lowbp"));
  590. model.makeValue(sendPath + "/highbp", model.getValue(mainPath + "/highbp"));
  591. model.makeValue(sendPath + "/pulse", model.getValue(mainPath + "/pulse"));
  592. model.makeValue(sendPath + "/breth", model.getValue(mainPath + "/breth"));
  593. model.makeValue(sendPath + "/bdtp", model.getValue(mainPath + "/bdtp"));
  594. model.makeValue(sendPath + "/bdtppartcd", model.getValue(mainPath + "/bdtppartcd"));
  595. model.makeValue(sendPath + "/bdht", model.getValue(mainPath + "/bdht"));
  596. model.makeValue(sendPath + "/spo", model.getValue(mainPath + "/spo2"));
  597. */
  598. model.makeValue(sendPath + "/bdbtype", model.getValue(mainPath + "/bdbtype"));
  599. //산과정보
  600. // model.makeValue(sendPath + "/prgbfbdwt", model.getValue(mainPath + "/prgbfbdwt"));
  601. // model.makeValue(sendPath + "/inbdwt", model.getValue(mainPath + "/inbdwt"));
  602. //신체정보 측정불가체크시 측정불가코드값 저장로직 추가_20090306_SMY
  603. //혈압
  604. // if(model.getValue("/root/main/wardrecinfo/bpinspyn") == "Y"){
  605. // model.makeValue(sendPath + "/lowbp", NoneInspCode);
  606. // model.makeValue(sendPath + "/highbp", NoneInspCode);
  607. // }else{
  608. // model.makeValue(sendPath + "/lowbp", model.getValue(mainPath + "/lowbp"));
  609. // model.makeValue(sendPath + "/highbp", model.getValue(mainPath + "/highbp"));
  610. // }
  611. // //맥박, 호흡
  612. // if(model.getValue("/root/main/wardrecinfo/pulseinspyn") == "Y"){
  613. // model.makeValue(sendPath + "/pulse", NoneInspCode);
  614. // model.makeValue(sendPath + "/breth", NoneInspCode);
  615. // }else{
  616. // model.makeValue(sendPath + "/pulse", model.getValue(mainPath + "/pulse"));
  617. // model.makeValue(sendPath + "/breth", model.getValue(mainPath + "/breth"));
  618. // }
  619. // //체온
  620. // if(model.getValue("/root/main/wardrecinfo/bdtpinspyn") == "Y"){
  621. // model.makeValue(sendPath + "/bdtp", NoneInspCode);
  622. // model.makeValue(sendPath + "/bdtppartcd", NoneInspCode);
  623. // }else{
  624. // model.makeValue(sendPath + "/bdtp", model.getValue(mainPath + "/bdtp"));
  625. // model.makeValue(sendPath + "/bdtppartcd", model.getValue(mainPath + "/bdtppartcd"));
  626. // }
  627. //신장
  628. if(model.getValue("/root/main/wardrecinfo/bdhtinspyn") == "Y"){
  629. model.makeValue(sendPath + "/bdht", NoneInspCode);
  630. }else{
  631. model.makeValue(sendPath + "/bdht", model.getValue(mainPath + "/bdht"));
  632. }
  633. //체중
  634. if(model.getValue("/root/main/wardrecinfo/bdwtinspyn") == "Y"){
  635. model.makeValue(sendPath + "/prgbfbdwt", NoneInspCode);
  636. model.makeValue(sendPath + "/inbdwt", NoneInspCode);
  637. }else{
  638. model.makeValue(sendPath + "/prgbfbdwt", model.getValue(mainPath + "/prgbfbdwt"));
  639. model.makeValue(sendPath + "/inbdwt", model.getValue(mainPath + "/inbdwt"));
  640. }
  641. //SpO2
  642. if(model.getValue("/root/main/wardrecinfo/spo2inspyn") == "Y"){
  643. model.makeValue(sendPath + "/spo", NoneInspCode);
  644. }else{
  645. model.makeValue(sendPath + "/spo", model.getValue(mainPath + "/spo2"));
  646. }
  647. //입원동기 등등(xml)
  648. model.makeValue(sendPath + "/spcffact", fGetXmlToStr(mainPath + "/spcffact/spcf"));
  649. model.makeValue(sendPath + "/inmotiveinfo", fGetXmlToStr(mainPath + "/inmotiveinfo/inmotive"));
  650. //기호정보
  651. model.makeValue(sendPath + "/gustoinfo", fGetXmlToStr(mainPath + "/gustoinfo/gusto"));
  652. //산과정보
  653. //XML
  654. model.makeValue(sendPath + "/obgyninfoetc", fGetXmlToStr(mainPath + "/obgyninfoetc/obgyn"));
  655. model.makeValue(sendPath + "/brthhistinfo", fGetXmlToStr(mainPath + "/brthhistinfo/brthhist"));
  656. model.makeValue(sendPath + "/inrelainfo", fGetXmlToStr(mainPath + "/inrelainfo/inrela"));
  657. model.makeValue(sendPath + "/etcinfo", fGetXmlToStr(mainPath + "/etcinfo/etc"));
  658. //단일컨트롤
  659. model.makeValue(sendPath + "/obgyninfoinclyn", model.getValue(mainPath + "/obgyninfoinclyn"));
  660. model.makeValue(sendPath + "/befchildbrthmed", model.getValue(mainPath + "/befchildbrthmed"));
  661. model.makeValue(sendPath + "/gesage", model.getValue(mainPath + "/gesage"));
  662. model.makeValue(sendPath + "/lastmensdd", model.getValue(mainPath + "/lastmensdd"));
  663. model.makeValue(sendPath + "/edc", model.getValue(mainPath + "/edc"));
  664. model.makeValue(sendPath + "/parityg", model.getValue(mainPath + "/parityg"));
  665. model.makeValue(sendPath + "/parityp", model.getValue(mainPath + "/parityp"));
  666. model.makeValue(sendPath + "/paritya", model.getValue(mainPath + "/paritya"));
  667. model.makeValue(sendPath + "/paritysa", model.getValue(mainPath + "/paritysa"));
  668. model.makeValue(sendPath + "/parityaa", model.getValue(mainPath + "/parityaa"));
  669. model.makeValue(sendPath + "/parityl", model.getValue(mainPath + "/parityl"));
  670. //배우자정보
  671. model.makeValue(sendPath + "/ptnernm", model.getValue(mainPath + "/ptnernm"));
  672. model.makeValue(sendPath + "/ptnerage", model.getValue(mainPath + "/ptnerage"));
  673. model.makeValue(sendPath + "/ptnerbtype", model.getValue(mainPath + "/ptnerbtype"));
  674. model.makeValue(sendPath + "/ptnertel", model.getValue(mainPath + "/ptnertel"));
  675. model.makeValue(sendPath + "/ptnerinfcinfoyn", model.getValue(mainPath + "/ptnerinfcinfoyn"));
  676. model.makeValue(sendPath + "/ptnerinfcinfo", model.getValue(mainPath + "/ptnerinfcinfo"));
  677. model.makeValue(sendPath + "/ptnerinfcinfonm", model.getValue(mainPath + "/ptnerinfcinfonm"));
  678. model.makeValue(sendPath + "/babyphotoyn", model.getValue(mainPath + "/babyphotoyn"));
  679. model.makeValue(sendPath + "/ptneinclyn", model.getValue(mainPath + "/ptneinclyn"));
  680. model.makeValue(sendPath + "/ogirinmotive", model.getValue(mainPath + "/ogirinmotive"));
  681. model.makeValue(sendPath + "/ptnerbrthdd", model.getValue(mainPath + "/ptnerbrthdd"));
  682. model.makeValue(sendPath + "/ptnerjobcd", model.getValue(mainPath + "/ptnerjobcd"));
  683. //가족사항(가족연락처table)
  684. var updtdata = getGridUpdateData(grd_famyfact);
  685. model.makeValue(sendPath + "/famyfact", updtdata);
  686. //병력
  687. fChkInclYN();
  688. //신체사정
  689. model.makeValue(sendPath + "/shpaininfo", fGetXmlToStr("/root/main/wardrecinfo/shpaininfo/shpain"));
  690. model.makeValue(sendPath + "/apttbdwtchnginfo", fGetXmlToStr(mainPath + "/apttbdwtchnginfo/apttbdwtchng"));
  691. model.makeValue(sendPath + "/slepstatinfo", fGetXmlToStr(mainPath + "/slepstatinfo/slepstat"));
  692. model.makeValue(sendPath + "/cscsstatinfo", fGetXmlToStr(mainPath + "/cscsstatinfo/cscsstat"));
  693. model.makeValue(sendPath + "/mensinfo", fGetXmlToStr(mainPath + "/mensinfo/mens"));
  694. model.makeValue(sendPath + "/cirorgninfo", fGetXmlToStr(mainPath + "/cirorgninfo/cirorgn"));
  695. model.makeValue(sendPath + "/uriorgninfo", fGetXmlToStr(mainPath + "/uriorgninfo/uriorgn"));
  696. model.makeValue(sendPath + "/stoolinfo", fGetXmlToStr(mainPath + "/stoolinfo/stool"));
  697. model.makeValue(sendPath + "/actinfo", fGetXmlToStr(mainPath + "/actinfo/act"));
  698. model.makeValue(sendPath + "/visdsordinfo", fGetXmlToStr(mainPath + "/visdsordinfo/visdsord"));
  699. model.makeValue(sendPath + "/heardsordinfo", fGetXmlToStr(mainPath + "/heardsordinfo/heardsord"));
  700. model.makeValue(sendPath + "/tootstatinfo", fGetXmlToStr(mainPath + "/tootstatinfo/tootstat"));
  701. //알러지
  702. if(grd_allghist.rows > 1) {
  703. if(allgInsYN == "Y") {
  704. grd_allghist.addStatus(1, "insert");
  705. }
  706. }
  707. model.makeValue("/root/send/wardrecinfo/allginfo", grd_allghist.getUpdateData());
  708. //인자값
  709. model.makeValue(sendPath + "/pid", model.getValue("/root/temp/cond/list/pid"));
  710. model.makeValue(sendPath + "/indd", model.getValue("/root/temp/cond/list/indd"));
  711. model.makeValue(sendPath + "/instcd", model.getValue("/root/temp/cond/list/instcd"));
  712. model.makeValue(sendPath + "/deptcd", model.getValue("/root/temp/cond/list/orddeptcd"));
  713. model.makeValue(sendPath + "/docucode", "0000002504");
  714. model.makeValue(sendPath + "/userid", userid);
  715. model.makeValue(sendPath + "/recflag", "03");
  716. model.makeValue("/root/send/wardrecinfo/infooffer", model.getValue("/root/main/wardrecinfo/infooffer"));
  717. if(model.getValue("/root/properties/parameters/SPMMR04711_shape/SPMMR04711_shapevalue") == "") {
  718. model.makeValue("/root/send/wardrecinfo/genogrmnm", "");
  719. } else {
  720. model.makeValue("/root/send/wardrecinfo/genogrmnm", model.getValue("/root/properties/parameters/SPMMR04711_shape/SPMMR04711_shapevalue"));
  721. }
  722. //수행구분(I, U에 따른 입력, 수정을위한 구분)
  723. model.makeValue("/root/send/wardrecinfo/exeflag", model.getValue("/root/hidden/paminfo/paminfo/exeflag"));
  724. model.makeValue("/root/send/wardrecinfo/certflag", certFlag);
  725. model.makeValue("/root/send/wardrecinfo/recdd", model.getValue("/root/main/wardrecinfo/recdd"));
  726. model.makeValue("/root/send/wardrecinfo/rectm", model.getValue("/root/main/wardrecinfo/rectm"));
  727. model.makeValue("/root/send/wardrecinfo/recdt", model.getValue("/root/main/wardrecinfo/recdd") + model.getValue("/root/main/wardrecinfo/rectm"));
  728. // //----------(20110108)
  729. // fnNRScalc();
  730. // //----------(20110108)
  731. // //------------(20101219) 경북대
  732. // model.makeValue("/root/send/wardrecinfo/nrs1cd", model.getValue("/root/main/wardrecinfo/nrs1cd"));
  733. // model.makeValue("/root/send/wardrecinfo/nrs1nm", model.getValue("/root/main/wardrecinfo/nrs1nm"));
  734. // model.makeValue("/root/send/wardrecinfo/nrs21cd", model.getValue("/root/main/wardrecinfo/nrs21cd"));
  735. // model.makeValue("/root/send/wardrecinfo/nrs21nm", model.getValue("/root/main/wardrecinfo/nrs21nm"));
  736. // model.makeValue("/root/send/wardrecinfo/nrs22cd", model.getValue("/root/main/wardrecinfo/nrs22cd"));
  737. // model.makeValue("/root/send/wardrecinfo/nrs22nm", model.getValue("/root/main/wardrecinfo/nrs22nm"));
  738. // model.makeValue("/root/send/wardrecinfo/nrs23cd", model.getValue("/root/main/wardrecinfo/nrs23cd"));
  739. // model.makeValue("/root/send/wardrecinfo/nrs23nm", model.getValue("/root/main/wardrecinfo/nrs23nm"));
  740. // model.makeValue("/root/send/wardrecinfo/nrsscore", model.getValue("/root/main/wardrecinfo/nrsscore"));
  741. // //------------(20101219) 경북대
  742. }
  743. function fSetSignData() {
  744. var xWardRecPath = Sign.XPATH_SIGNINFO + "/wardrecinfo";
  745. var xHistPath = Sign.XPATH_SIGNINFO + "/histinfo";
  746. var xFamyPath = Sign.XPATH_SIGNINFO + "/famyfactinfo";
  747. /****************************** 환자기본정보 **************************************/
  748. //직업
  749. var jobcd = model.getValue(xWardRecPath + "/jobcd");
  750. if(jobcd != "") {
  751. if(jobcd == "10") {
  752. if(model.getValue(xWardRecPath + "/jobnm") == "") {
  753. model.setValue(xWardRecPath + "/jobcd", cmb_job.label);
  754. } else {
  755. model.setValue(xWardRecPath + "/jobcd", model.getValue(xWardRecPath + "/jobnm"));
  756. }
  757. } else {
  758. model.setValue(xWardRecPath + "/jobcd", cmb_job.label);
  759. }
  760. }
  761. //교육정도
  762. var educgrde = model.getValue(xWardRecPath + "/educgrdecd");
  763. if(educgrde != "") {
  764. if(educgrde == "15") {
  765. if(model.getValue(xWardRecPath + "/educgrdenm") != "") {
  766. model.setValue(xWardRecPath + "/educgrdecd", model.getValue(xWardRecPath + "/educgrdenm"));
  767. } else {
  768. model.setValue(xWardRecPath + "/educgrdecd", cmb_educgrde.label);
  769. }
  770. } else {
  771. model.setValue(xWardRecPath + "/educgrdecd", cmb_educgrde.label);
  772. }
  773. }
  774. //종교
  775. var relign = model.getValue(xWardRecPath + "/religncd");
  776. if(relign != "") {
  777. if(relign == "01") {
  778. model.setValue(xWardRecPath + "/religncd", cmb_relign.label);
  779. if(model.getValue(xWardRecPath + "/baptnm") != "") {
  780. model.setValue(xWardRecPath + "/religncd", model.getValue(xWardRecPath + "/religncd") + "(" + model.getValue(xWardRecPath + "/baptnm") + ")");
  781. }
  782. } else if( relign == "09") {
  783. if(model.getValue(xWardRecPath + "/relignnm") == "") {
  784. model.setValue(xWardRecPath + "/religncd", cmb_relign.label);
  785. } else {
  786. model.setValue(xWardRecPath + "/religncd", model.getValue(xWardRecPath + "/relignnm"));
  787. }
  788. } else {
  789. model.setValue(xWardRecPath + "/religncd", cmb_relign.label);
  790. }
  791. }
  792. //영적요구
  793. var relignreq = model.getValue(xWardRecPath + "/relignreq");
  794. if (relignreq != ""){
  795. model.setValue(xWardRecPath + "/relignreq", cmb_relignreq.label);
  796. }
  797. //결혼상태
  798. var marystat = model.getValue(xWardRecPath + "/marystatcd");
  799. if(marystat != "") {
  800. if(marystat == "06") {
  801. if(model.getValue(xWardRecPath + "/marystatnm") != "") {
  802. model.setValue(xWardRecPath + "/marystatcd", model.getValue(xWardRecPath + "/marystatnm"));
  803. } else {
  804. model.setValue(xWardRecPath + "/marystatcd", cmb_marystat.label);
  805. }
  806. } else {
  807. model.setValue(xWardRecPath + "/marystatcd", cmb_marystat.label);
  808. }
  809. }
  810. /****************************** 가족사항 **************************************/
  811. //가족사항 관계
  812. var rows = grd_famyfact.rows;
  813. var rela;
  814. for(var i = 1 ; i < rows; i++) {
  815. rela = model.getValue(xFamyPath + "/famyfact[" + i + "]/rela");
  816. if(rela != "") {
  817. model.setValue(xFamyPath + "/famyfact[" + i + "]/rela", grd_famyfact.labelMatrix(i, grd_famyfact.colRef("rela")));
  818. }
  819. }
  820. /****************************** 입원정보 **************************************/
  821. //입원경로
  822. var inpath = model.getValue(xWardRecPath + "/inpathcd");
  823. if(inpath != "") {
  824. if(inpath == "08") {
  825. if(model.getValue(xWardRecPath + "/inpathnm") != "") {
  826. model.setValue(xWardRecPath + "/inpathcd", model.getValue(xWardRecPath + "/inpathnm"));
  827. } else {
  828. model.setValue(xWardRecPath + "/inpathcd", cmb_inpath.label);
  829. }
  830. } else {
  831. model.setValue(xWardRecPath + "/inpathcd", cmb_inpath.label);
  832. }
  833. }
  834. //입원방법
  835. var inmthd = model.getValue(xWardRecPath + "/inmthdcd");
  836. if(inmthd != "") {
  837. if(inmthd == "08") {
  838. if(model.getValue(xWardRecPath + "/inmthdnm") != "") {
  839. model.setValue(xWardRecPath + "/inmthdcd", model.getValue(xWardRecPath + "/inmthdnm"));
  840. } else {
  841. model.setValue(xWardRecPath + "/inmthdcd", cmb_inmthd.label);
  842. }
  843. } else {
  844. model.setValue(xWardRecPath + "/inmthdcd", cmb_inmthd.label);
  845. }
  846. }
  847. //입원시동반자
  848. var inacompst = model.getValue(xWardRecPath + "/inacompstcd");
  849. if(inacompst != "") {
  850. if(inacompst == "04") {
  851. if(model.getValue(xWardRecPath + "/inacompstnm") != "") {
  852. model.setValue(xWardRecPath + "/inacompstcd", model.getValue(xWardRecPath + "/inacompstnm"));
  853. } else {
  854. model.setValue(xWardRecPath + "/inacompstcd", cmb_inacompst.label);
  855. }
  856. } else {
  857. model.setValue(xWardRecPath + "/inacompstcd", cmb_inacompst.label);
  858. }
  859. }
  860. //병원도착전 24시간내 항생제 투약여부
  861. var antibiodrugyn = model.getValue(xWardRecPath + "/rectmedistatinfo/rectmedistat/antibiodrugyn");
  862. if(antibiodrugyn != "") {
  863. model.setValue(xWardRecPath + "/rectmedistatinfo/rectmedistat/antibiodrugyn", cmb_antibiodrugyn.label);
  864. }
  865. /****************************** 기본 신체정보 **************************************/
  866. //혈액형
  867. var bdbtype = model.getValue(xWardRecPath + "/bdbtype");
  868. if(bdbtype != "") {
  869. model.setValue(xWardRecPath + "/bdbtype", cmb_bdbtype.label);
  870. }
  871. //체온
  872. var bdtppart = model.getValue(xWardRecPath + "/bdtppartcd");
  873. if(bdtppart != "") {
  874. model.setValue(xWardRecPath + "/bdtppartcd", cmb_bdtp.label);
  875. }
  876. /****************************** 기호정보 **************************************/
  877. /*
  878. //입원전 1개월간 흡연력
  879. var smokinfoyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfoyn");
  880. var smokinfocnt = model.getValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfocnt");
  881. if(smokinfoyn != "") {
  882. if(smokinfoyn == "2" && smokinfocnt != ""){
  883. model.setValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfoyn", rdo_smokinfo.label + "(" + smokinfocnt + ")");
  884. }else{
  885. model.setValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfoyn", rdo_smokinfo.label);
  886. }
  887. }
  888. */
  889. //흡연정보
  890. var smokinfoyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfoyn");
  891. var bfsmokinfoyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/bfsmokinfoyn");
  892. if(smokinfoyn != "") {
  893. if(bfsmokinfoyn != ""){
  894. model.setValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfoyn", rdo_smokinfo.label + "(" + rdo_bfsmokinfo.label + ")");
  895. }else{
  896. model.setValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfoyn", rdo_smokinfo.label);
  897. }
  898. }
  899. //금연상담여부
  900. var nosmokcnstyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/nosmokcnstyn");
  901. if(nosmokcnstyn == "1") {
  902. var str = rdo_nosmokcnstyn.label;
  903. if(model.getValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/nosmokcnst") != "") {
  904. if(model.getValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/nosmokcnst") == "03") {
  905. if(model.getValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/nosmokcnstnm") != "") {
  906. str += "(" + ipt_nosmokcnstnm.label + ")";
  907. model.setValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/nosmokcnstyn", str);
  908. } else {
  909. str += "(" + cmb_nosmokcnst.label + ")";
  910. model.setValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/nosmokcnst", str);
  911. }
  912. } else {
  913. str += "(" + cmb_nosmokcnst.label + ")";
  914. model.setValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/nosmokcnstyn", str);
  915. }
  916. } else {
  917. model.setValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/nosmokcnstyn", rdo_nosmokcnstyn.label);
  918. }
  919. } else {
  920. model.setValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/nosmokcnstyn", rdo_nosmokcnstyn.label);
  921. }
  922. //음주정보
  923. var drunkinfoyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn");
  924. if(drunkinfoyn != "") {
  925. if(drunkinfoyn == "2") {
  926. if(model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfokind") != "") {
  927. if(model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoterm") != "") {
  928. model.setValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfokind") + " "
  929. + model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoterm") + cap_drunkinfoterm.label);
  930. }else{
  931. model.setValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfokind"));
  932. }
  933. } else {
  934. if(model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoterm") != "") {
  935. model.setValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoterm") + cap_drunkinfoterm.label);
  936. }else{
  937. model.setValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn", rdo_drunkinfo.label);
  938. }
  939. }
  940. } else {
  941. model.setValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn", rdo_drunkinfo.label);
  942. }
  943. }
  944. //기호식품
  945. var gustofoodyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofoodyn");
  946. if(gustofoodyn != "") {
  947. if(gustofoodyn == "2") {
  948. if(model.getValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofooddetl") != "") {
  949. model.setValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofoodyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofooddetl"));
  950. } else {
  951. model.setValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofoodyn", rdo_gustofoodyn.label);
  952. }
  953. } else {
  954. model.setValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofoodyn", rdo_gustofoodyn.label);
  955. }
  956. }
  957. //수혈부작용
  958. var tnsseffcyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn");
  959. if(tnsseffcyn != "") {
  960. if(tnsseffcyn == "2") {
  961. if(model.getValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcdetl") != "") {
  962. model.setValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcdetl"));
  963. } else {
  964. model.setValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn", rdo_tnsseffcyn.label);
  965. }
  966. } else {
  967. model.setValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn", rdo_tnsseffcyn.label);
  968. }
  969. }
  970. /****************************** 산과정보 **************************************/
  971. //산전진찰
  972. var befchildbrthmed = model.getValue(xWardRecPath + "/befchildbrthmed");
  973. if(befchildbrthmed != "") {
  974. model.setValue(xWardRecPath + "/befchildbrthmed", cmb_befchildbrthmed.label);
  975. }
  976. //이슬
  977. var nbabymucusyn = model.getValue(xWardRecPath + "/obgyninfoetc/obgyn/nbabymucusyn");
  978. var nbabymucusdd = model.getValue(xWardRecPath + "/obgyninfoetc/obgyn/nbabymucusdd");
  979. var nbabymucusdt = model.getValue(xWardRecPath + "/obgyninfoetc/obgyn/nbabymucusdt");
  980. str = rdo_nbabymucusyn.label;
  981. if(nbabymucusyn != "") {
  982. if( nbabymucusyn == "2") {
  983. if(nbabymucusdd != "") {
  984. str += "(" + nbabymucusdd.substr(0, 4) + "-" + nbabymucusdd.substr(4, 2) + "-" + nbabymucusdd.substr(6, 2) + " " + nbabymucusdt.substr(0, 2) + ":" + nbabymucusdt.substr(2, 2) + ")";
  985. }
  986. }
  987. model.setValue(xWardRecPath + "/obgyninfoetc/obgyn/nbabymucusyn", str);
  988. }
  989. //조기파수
  990. var ruptureyn = model.getValue(xWardRecPath + "/obgyninfoetc/obgyn/ruptureyn");
  991. var rupturedd = model.getValue(xWardRecPath + "/obgyninfoetc/obgyn/rupturedd");
  992. var rupturedt = model.getValue(xWardRecPath + "/obgyninfoetc/obgyn/rupturedt");
  993. str = rdo_ruptureyn.label;
  994. if(ruptureyn != "") {
  995. if( ruptureyn == "2") {
  996. if(rupturedd != "") {
  997. str += "(" + rupturedd.substr(0, 4) + "-" + rupturedd.substr(4, 2) + "-" + rupturedd.substr(6, 2) + " " + rupturedt.substr(0, 2) + ":" + rupturedt.substr(2, 2) + ")";
  998. }
  999. }
  1000. model.setValue(xWardRecPath + "/obgyninfoetc/obgyn/ruptureyn", str);
  1001. }
  1002. //진통
  1003. var angsiayn = model.getValue(xWardRecPath + "/obgyninfoetc/obgyn/angsiayn");
  1004. var angsiadd = model.getValue(xWardRecPath + "/obgyninfoetc/obgyn/angsiadd");
  1005. var angsiadt = model.getValue(xWardRecPath + "/obgyninfoetc/obgyn/angsiadt");
  1006. var angsiatermmin = model.getValue(xWardRecPath + "/obgyninfoetc/obgyn/angsiatermmin");
  1007. var angsiatermsec = model.getValue(xWardRecPath + "/obgyninfoetc/obgyn/angsiatermsec");
  1008. str = rdo_angsiayn.label;
  1009. if(angsiayn != "") {
  1010. if( angsiayn == "2") {
  1011. if(angsiadd != "") {
  1012. str += "(" + angsiadd.substr(0, 4) + "-" + angsiadd.substr(4, 2) + "-" + angsiadd.substr(6, 2) + " " + angsiadt.substr(0, 2) + ":" + angsiadt.substr(2, 2) + "), "
  1013. + "진통간격:" + angsiatermmin + "분마다 " + angsiatermsec + "초간" ;
  1014. }
  1015. }
  1016. model.setValue(xWardRecPath + "/obgyninfoetc/obgyn/angsiayn", str);
  1017. }
  1018. /****************************** 배우자정보 **************************************/
  1019. //배우자 혈액형
  1020. var ptnerbtype = model.getValue(xWardRecPath + "/ptnerbtype");
  1021. if(ptnerbtype != "") {
  1022. model.setValue(xWardRecPath + "/ptnerbtype", cmb_ptnerbtype.label);
  1023. }
  1024. //배우자 감염정보
  1025. var ptnerinfcinfoyn = model.getValue(xWardRecPath + "/ptnerinfcinfoyn");
  1026. var ptnerinfcinfo = model.getValue(xWardRecPath + "/ptnerinfcinfo");
  1027. var ptnerinfcinfonm = model.getValue(xWardRecPath + "/ptnerinfcinfonm");
  1028. str = rdo_ptnerinfcinfoyn.label;
  1029. arr = "";
  1030. if(ptnerinfcinfoyn != "") {
  1031. if(ptnerinfcinfoyn == "2") { //유
  1032. if(ptnerinfcinfo != "") {
  1033. for(var i = 1; i<= chk_ptnerinfcinfo.length; i++){
  1034. var ptnerinfo = isSearchString(ptnerinfcinfo, i);
  1035. if(ptnerinfo == true) {
  1036. if(arr == ""){
  1037. arr += chk_ptnerinfcinfo.item(i-1).label;
  1038. }else{
  1039. arr += ", " + chk_ptnerinfcinfo.item(i-1).label;
  1040. }
  1041. }
  1042. }
  1043. if(ptnerinfcinfonm != "") {
  1044. arr += "(" + ptnerinfcinfonm + ")";
  1045. }
  1046. str += "(" + arr + ")";
  1047. }
  1048. }
  1049. model.setValue(xWardRecPath + "/ptnerinfcinfoyn", str);
  1050. }
  1051. //배우자 직업
  1052. var ptnerjobcd = model.getValue(xWardRecPath + "/ptnerjobcd");
  1053. if(ptnerjobcd != "") {
  1054. model.setValue(xWardRecPath + "/ptnerjobcd", cmb_ptnerjobcd.label);
  1055. }
  1056. /****************************** 입원관련정보 **************************************/
  1057. //임신중약물복용
  1058. var drugintoxicyn = model.getValue(xWardRecPath + "/inrelainfo/inrela/drugintoxicyn");
  1059. if(drugintoxicyn != "") {
  1060. model.setValue(xWardRecPath + "/inrelainfo/inrela/drugintoxicyn", rdo_drugintoxicyn.label);
  1061. }
  1062. //최종음식물섭취
  1063. var lastfoodintkdd = model.getValue(xWardRecPath + "/inrelainfo/inrela/lastfoodintkdd");
  1064. var lastfoodintkdt = model.getValue(xWardRecPath + "/inrelainfo/inrela/lastfoodintkdt");
  1065. var str = "";
  1066. if(lastfoodintkdd != "") {
  1067. if(lastfoodintkdt != "") {
  1068. str = lastfoodintkdd.substr(0, 4) + "-" + lastfoodintkdd.substr(4, 2) + "-" + lastfoodintkdd.substr(6, 2) + " " + lastfoodintkdt.substr(0, 2) + ":" + lastfoodintkdt.substr(2, 2);
  1069. }else{
  1070. str = lastfoodintkdd.substr(0, 4) + "-" + lastfoodintkdd.substr(4, 2) + "-" + lastfoodintkdd.substr(6, 2);
  1071. }
  1072. model.setValue(xWardRecPath + "/inrelainfo/inrela/lastfoodintkdd", str);
  1073. }
  1074. //태아심음
  1075. var ftalhatyn = model.getValue(xWardRecPath + "/inrelainfo/inrela/ftalhatyn");
  1076. var ftalhatgrde = model.getValue(xWardRecPath + "/inrelainfo/inrela/ftalhatgrde");
  1077. str = rdo_ftalhatyn.label;
  1078. if(ftalhatyn != "") {
  1079. if( ftalhatyn == "2") {
  1080. if(ftalhatgrde != "") {
  1081. str += "(" + ftalhatgrde + " (bpm))";
  1082. }
  1083. }
  1084. model.setValue(xWardRecPath + "/inrelainfo/inrela/ftalhatyn", str);
  1085. }
  1086. //부종
  1087. var edemayn = model.getValue(xWardRecPath + "/inrelainfo/inrela/edemayn");
  1088. var edemakind = model.getValue(xWardRecPath + "/inrelainfo/inrela/edemakind");
  1089. str = rdo_edemayn.label;
  1090. if(edemayn != "") {
  1091. if( edemayn == "2") {
  1092. if(edemakind != "") {
  1093. str += "(" + cmb_edemakind.label + ")";
  1094. }
  1095. }
  1096. model.setValue(xWardRecPath + "/inrelainfo/inrela/edemayn", str);
  1097. }
  1098. //뇨단백
  1099. var urineprotyn = model.getValue(xWardRecPath + "/inrelainfo/inrela/urineprotyn");
  1100. var urineprotkind = model.getValue(xWardRecPath + "/inrelainfo/inrela/urineprotkind");
  1101. str = rdo_urineprotyn.label;
  1102. if(urineprotyn != "") {
  1103. if( urineprotyn == "2") {
  1104. if(urineprotkind != "") {
  1105. str += "(" + cmb_urineprotkind.label + ")";
  1106. }
  1107. }
  1108. model.setValue(xWardRecPath + "/inrelainfo/inrela/urineprotyn", str);
  1109. }
  1110. //임신중합병증
  1111. var prgcmplyn = model.getValue(xWardRecPath + "/inrelainfo/inrela/prgcmplyn");
  1112. var prgcmplcnts = model.getValue(xWardRecPath + "/inrelainfo/inrela/prgcmplcnts");
  1113. str = rdo_prgcmplyn.label;
  1114. if(prgcmplyn != "") {
  1115. if( prgcmplyn == "2") {
  1116. if(prgcmplcnts != "") {
  1117. str += "(" + prgcmplcnts + ")";
  1118. }
  1119. }
  1120. model.setValue(xWardRecPath + "/inrelainfo/inrela/prgcmplyn", str);
  1121. }
  1122. //신체증상
  1123. var bodysympyn = model.getValue(xWardRecPath + "/inrelainfo/inrela/bodysympyn");
  1124. var bodysympcnts = model.getValue(xWardRecPath + "/inrelainfo/inrela/bodysympcnts");
  1125. str = rdo_bodysympyn.label;
  1126. if(bodysympyn != "") {
  1127. if( bodysympyn == "2") {
  1128. if(bodysympcnts != "") {
  1129. str += "(" + bodysympcnts + ")";
  1130. }
  1131. }
  1132. model.setValue(xWardRecPath + "/inrelainfo/inrela/bodysympyn", str);
  1133. }
  1134. /****************************** 기타 **************************************/
  1135. //수유계획
  1136. var lctplan = model.getValue(xWardRecPath + "/etcinfo/etc/lctplan");
  1137. if(lctplan !="") {
  1138. model.setValue(xWardRecPath + "/etcinfo/etc/lctplan", cmb_lctplan.label);
  1139. }
  1140. //산후조리계획
  1141. var postpatrecplankind = model.getValue(xWardRecPath + "/etcinfo/etc/postpatrecplankind");
  1142. var postpatrecplanetc = model.getValue(xWardRecPath + "/etcinfo/etc/postpatrecplanetc");
  1143. str = rdo_postpatrecplankind.label;
  1144. if(postpatrecplankind != "") {
  1145. if( postpatrecplankind == "4") {
  1146. if(postpatrecplanetc != "") {
  1147. str += "(" + postpatrecplanetc + ")";
  1148. }
  1149. }
  1150. model.setValue(xWardRecPath + "/etcinfo/etc/postpatrecplankind", str);
  1151. }
  1152. //분만교육
  1153. var partrtneduc = model.getValue(xWardRecPath + "/etcinfo/etc/partrtneduc");
  1154. var partrtneducetc = model.getValue(xWardRecPath + "/etcinfo/etc/partrtneducetc");
  1155. var arr = chk_partrtneduc.label.split(" ");
  1156. if(partrtneduc != "") {
  1157. var partrtn = isSearchString(partrtneduc, "5");
  1158. if(partrtn == true) {
  1159. if(partrtneducetc != "") {
  1160. arr += "(" + partrtneducetc + ")";
  1161. }
  1162. }
  1163. model.setValue(xWardRecPath + "/etcinfo/etc/partrtneduc", arr);
  1164. }
  1165. /****************************** 병력 **************************************/
  1166. //과거병력
  1167. var rows = grd_pasthist.rows;
  1168. var histspec;
  1169. for(var i = 1 ; i < rows; i++) {
  1170. histspec = model.getValue(xHistPath + "/pasthistinfo/pasthist/pasthist[" + i + "]/histspec");
  1171. if(histspec != "") {
  1172. model.setValue(xHistPath + "/pasthistinfo/pasthist/pasthist[" + i + "]/histspec", grd_pasthist.labelMatrix(i, grd_pasthist.colRef("histspec")));
  1173. }
  1174. }
  1175. //가족병력
  1176. var famyrel;
  1177. var existyn;
  1178. rows = grd_famyhist.rows;
  1179. for(var i = 1 ; i < rows; i++) {
  1180. famyrel = model.getValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/famyrel");
  1181. existyn = model.getValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/existyn");
  1182. histspec = model.getValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/histspec");
  1183. if(famyrel != "") {
  1184. model.setValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/famyrel", grd_famyhist.labelMatrix(i, grd_famyhist.colRef("famyrel")));
  1185. }
  1186. if(existyn != "") {
  1187. model.setValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/existyn", grd_famyhist.labelMatrix(i, grd_famyhist.colRef("existyn")));
  1188. }
  1189. if(histspec != "") {
  1190. model.setValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/histspec", grd_famyhist.labelMatrix(i, grd_famyhist.colRef("histspec")));
  1191. }
  1192. }
  1193. //allergy구분
  1194. rows = grd_allghist.rows;
  1195. var flag;
  1196. for(var i = 1 ; i < rows; i++) {
  1197. flag = model.getValue(xHistPath + "/allghistinfo/allghist/allghist[" + i + "]/flag");
  1198. if(flag != "") {
  1199. model.setValue(xHistPath + "/allghistinfo/allghist/allghist[" + i + "]/flag", grd_allghist.labelMatrix(i, grd_allghist.colRef("flag")));
  1200. }
  1201. }
  1202. /****************************** 신체사정 **************************************/
  1203. //기형상태
  1204. var mfmdstatLen = grd_mfmdstat.rows;
  1205. var part;
  1206. var direc;
  1207. if(mfmdstatLen > 0) {
  1208. for(var i = 0; i < mfmdstatLen; i++) {
  1209. part = model.getValue(xWardRecPath + "/mfmdstatinfo/mfmdstat/mfmdstat[" + i + "]/part");
  1210. direc = model.getValue(xWardRecPath + "/mfmdstatinfo/mfmdstat/mfmdstat[" + i + "]/direc");
  1211. if(part != "" ) {
  1212. model.setValue(xWardRecPath + "/mfmdstatinfo/mfmdstat/mfmdstat[" + i + "]/part", grd_mfmdstat.labelMatrix(i, grd_mfmdstat.colRef("part")));
  1213. }
  1214. if(direc != "") {
  1215. model.setValue(xWardRecPath + "/mfmdstatinfo/mfmdstat/mfmdstat[" + i + "]/direc", grd_mfmdstat.labelMatrix(i, grd_mfmdstat.colRef("direc")));
  1216. }
  1217. }
  1218. }
  1219. /****************************** 식욕 및 체중변화 **************************************/
  1220. //동통에서 통증 : 무(default)/유 선택으로 변경 20100122 김홍점
  1221. //20120625_김병국(통증사정 정보 추가) :XSLT보이기용.
  1222. var shpaininfoinclyn = model.getValue(xWardRecPath + "/shpaininfo/shpain/shpaininfoinclyn");
  1223. var shpaininfoflag = cmb_shpaininfoflag.label;
  1224. var shpaininfo = "";
  1225. if(shpaininfoinclyn != "") {
  1226. shpaininfo = rdo_shpaininfoinclyn.label;
  1227. if(shpaininfoinclyn == "1") {
  1228. if(shpaininfoflag != "") {
  1229. shpaininfo += "(" + shpaininfoflag + ")";
  1230. }
  1231. }
  1232. model.makeValue(xWardRecPath + "/shpaininfo/shpain/shpaininfoinclyn", shpaininfo);
  1233. model.makeValue(xWardRecPath + "/shpaininfo/shpain/shpaininfochgdd", "20100125");//20100125 일부터 동통에서 통증으로 변경됨.
  1234. }
  1235. if(shpaininfoinclyn != "") {
  1236. model.makeValue(xWardRecPath + "/shpaininfo/shpain/shpaininfoinclyn", rdo_shpaininfoinclyn.label);
  1237. model.makeValue(xWardRecPath + "/shpaininfo/shpain/shpaininfochgdd", "20100125");//20100125 일부터 동통에서 통증으로 변경됨.
  1238. }
  1239. // //식욕변화
  1240. // var apptchngyn = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptchngyn");
  1241. // str = rdo_apttchngyn.label;
  1242. //
  1243. // if(apptchngyn != "") {
  1244. // if(apptchngyn == "2") {
  1245. // if(model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptaddyn") != "") {
  1246. // str += "(" + rdo_apttchngflag.label+ ")";
  1247. // }
  1248. // }
  1249. // model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptchngyn", str);
  1250. // }
  1251. //
  1252. // //식욕상태
  1253. // var apptstatflag = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptstatflag");
  1254. //
  1255. // if(apptstatflag != "") {
  1256. // model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptstatflag", rdo_apttstatflag.label);
  1257. // }
  1258. //
  1259. // //체중변화
  1260. // var bdwtchngyn = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchngyn");
  1261. // var incdecflag = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/incdecflag");
  1262. // var bdwtchnggrde = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchnggrde");
  1263. // var bdwtchngterm = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchngterm");
  1264. // var bdwtchngtermflag = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchngtermflag");
  1265. //
  1266. // str = rdo_bdwtchngyn.label;
  1267. //
  1268. // if(bdwtchngyn != "") {
  1269. // if(bdwtchngyn == "2") {
  1270. // if( !isNull(incdecflag) && bdwtchnggrde != "" && bdwtchngtermflag != "") {
  1271. // str += "(" + rdo_incdecflag.label+ ": " + bdwtchnggrde + "kg " + "/ 기간 : " + rdo_bdwtchngtermflag.label + " (" + bdwtchngterm + ") )";
  1272. // } else if(bdwtchnggrde != "" && bdwtchngtermflag == "") {
  1273. // str += "(" + rdo_incdecflag.label+ ": " + bdwtchnggrde + "kg )";
  1274. // } else if(bdwtchnggrde == "" && bdwtchngtermflag != "") {
  1275. // str += "(" + "기간 : " + rdo_bdwtchngtermflag.label + " ( " + bdwtchngterm + ") )";
  1276. // }
  1277. //
  1278. // }
  1279. // model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchngyn", str);
  1280. //
  1281. // }
  1282. // //편식
  1283. // var onemealyn = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/onemealyn");
  1284. //
  1285. // if(apptstatflag != "") {
  1286. // model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/onemealyn", rdo_onemealyn.label);
  1287. // }
  1288. //식욕상태 (15.03.24 - AYS 추가)
  1289. var apptstatflag = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptstatflag");
  1290. if(apptstatflag != "") {
  1291. model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptstatflag", rdo_apttstatflag.label);
  1292. }
  1293. //체중변화 (15.03.24 - AYS 추가)
  1294. var bdwtchngyn = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchngyn");
  1295. if(bdwtchngyn != "") {
  1296. model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchngyn", rdo_bdwtchngyn.label);
  1297. }
  1298. //연하곤란 (15.03.24 - AYS 추가)
  1299. var dysphagiayn = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/dysphagiayn");
  1300. if(dysphagiayn != "") {
  1301. model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/dysphagiayn", rdo_dysphagiayn.label);
  1302. }
  1303. /****************************** 수면상태 **************************************/
  1304. //수면장애
  1305. var slepdsordyn = model.getValue(xWardRecPath + "/slepstatinfo/slepstat/slepdsordyn");
  1306. var slepdsordtm = model.getValue(xWardRecPath + "/slepstatinfo/slepstat/slepdsordtm");
  1307. str = rdo_slepdsord.label;
  1308. if(slepdsordyn != "") {
  1309. if(slepdsordyn == "2") {
  1310. if(slepdsordtm != "") {
  1311. str += "(" + slepdsordtm + "시간/일)";
  1312. }
  1313. }
  1314. model.setValue(xWardRecPath + "/slepstatinfo/slepstat/slepdsordyn", str);
  1315. }
  1316. //약물복용
  1317. var dugtmedyn = model.getValue(xWardRecPath + "/slepstatinfo/slepstat/dugtmedyn");
  1318. var dugtmeddetl = model.getValue(xWardRecPath + "/slepstatinfo/slepstat/dugtmeddetl");
  1319. str = rdo_drugtmedyn.label;
  1320. if(dugtmedyn != "") {
  1321. if(dugtmedyn == "2") {
  1322. if(dugtmeddetl != "") {
  1323. str += "(" + dugtmeddetl + ")";
  1324. }
  1325. }
  1326. model.setValue(xWardRecPath + "/slepstatinfo/slepstat/dugtmedyn", str);
  1327. }
  1328. /****************************** 의식상태 **************************************/
  1329. //지남력
  1330. var cscsstathuman = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstathuman");
  1331. var cscsstattm = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstattm");
  1332. var cscsstatplce = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstatplce");
  1333. if(cscsstathuman != "") {
  1334. model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstathuman", cmb_cscsstathuman.label);
  1335. }
  1336. if(cscsstattm != "") {
  1337. model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstattm", cmb_cscsstattm.label);
  1338. }
  1339. if(cscsstatplce != "") {
  1340. model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstatplce", cmb_cscsstatplce.label);
  1341. }
  1342. //의식상태
  1343. var cscsstat = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstat");
  1344. if(cscsstat != "") {
  1345. model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstat", cmb_cscsstat.label);
  1346. }
  1347. //의사소통
  1348. var communication = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/communication");
  1349. if( communication != "") {
  1350. model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/communication", rdo_communication.label);
  1351. }
  1352. //정서상태
  1353. var emotstat = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/emotstat");;
  1354. if(emotstat != "") {
  1355. model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/emotstat", cmb_emotstat.label);
  1356. }
  1357. /****************************** 월경 **************************************/
  1358. //월경
  1359. var mensyn = model.getValue(xWardRecPath + "/mensinfo/mens/mensyn");
  1360. if(mensyn != "") {
  1361. model.setValue(xWardRecPath + "/mensinfo/mens/mensyn", rdo_mensyn.label);
  1362. }
  1363. //상태
  1364. var mensstat = model.getValue(xWardRecPath + "/mensinfo/mens/mensstat");
  1365. if(mensstat != "") {
  1366. model.setValue(xWardRecPath + "/mensinfo/mens/mensstat", rdo_mensstat.label);
  1367. }
  1368. //월경통
  1369. var menspainyn = model.getValue(xWardRecPath + "/mensinfo/mens/menspainyn");
  1370. if(menspainyn != "") {
  1371. model.setValue(xWardRecPath + "/mensinfo/mens/menspainyn", rdo_menspainyn.label);
  1372. }
  1373. //월경주기 20090820
  1374. var mensday = model.getValue(xWardRecPath + "/mensinfo/mens/mensday");
  1375. var mensweek = model.getValue(xWardRecPath + "/mensinfo/mens/mensweek");
  1376. if((getCurrentDate() >='20090821') && (!isNull(mensday) || !isNull(mensweek) )) {
  1377. model.makeValue(xWardRecPath + "/mensinfo/mens/mensdayweek", mensday +"일 "+mensweek+"일 주기");
  1378. model.setValue(xWardRecPath + "/mensinfo/mens/mensday","");
  1379. model.setValue(xWardRecPath + "/mensinfo/mens/mensweek","");
  1380. }
  1381. /****************************** 순환기계 **************************************/
  1382. //순환장애
  1383. var cirdsordkind = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/cirdsordkind");
  1384. var arr = new Array();
  1385. arr = chk_cycdsordkind.label.split(" ");
  1386. if(cirdsordkind != "") {
  1387. model.setValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/cirdsordkind", arr);
  1388. }
  1389. //부종
  1390. var edema = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/edemakind");
  1391. var edemadetll = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/edemadetll");
  1392. str = cmb_edema.label;
  1393. if(edema != "") {
  1394. if(edema == "7") {
  1395. if(edemadetll != "") {
  1396. str = edemadetll;
  1397. }
  1398. }
  1399. model.setValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/edemakind", str);
  1400. }
  1401. //요흔
  1402. var yohnyn = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/yohnyn");
  1403. var yohn = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/yohnddetl");
  1404. str = rdo_yohnyn.label;
  1405. if(yohnyn != "") {
  1406. if(yohnyn == "2") {
  1407. if(yohn != "") {
  1408. str = yohn;
  1409. }
  1410. }
  1411. model.setValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/yohnyn", str);
  1412. }
  1413. //부착기구
  1414. var cyccateyn = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/cyccateyn");
  1415. var cyccatekind = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/cyccatekind");
  1416. var catedetl = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/catedetl");
  1417. str = rdo_cyccateyn.label;
  1418. if(cyccateyn != "") {
  1419. if(cyccateyn == "2") {
  1420. if(cyccatekind != "") {
  1421. if(cyccatekind == "3") {
  1422. if(catedetl != "") {
  1423. str += "(" + catedetl + ")";
  1424. }
  1425. } else {
  1426. str += "(" + cyccatekind + ")";
  1427. }
  1428. }
  1429. }
  1430. model.setValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/cyccateyn", str);
  1431. }
  1432. /****************************** 대변 **************************************/
  1433. //대변색깔
  1434. var stoolcolor = model.getValue(xWardRecPath + "/stoolinfo/stool/stoolcolor");
  1435. if(stoolcolor != "") {
  1436. model.setValue(xWardRecPath + "/stoolinfo/stool/stoolcolor", cmb_stoolcolor.label);
  1437. }
  1438. //대변종류
  1439. var stoolkind = model.getValue(xWardRecPath + "/stoolinfo/stool/stoolkind");
  1440. if(stoolkind != "") {
  1441. model.setValue(xWardRecPath + "/stoolinfo/stool/stoolkind", cmb_stoolkind.label);
  1442. }
  1443. //변비
  1444. var constipt = model.getValue(xWardRecPath + "/stoolinfo/stool/stoolconstipation");
  1445. if(constipt == "Y") {
  1446. model.makeValue(xWardRecPath + "/stoolinfo/stool/stoolcateconstipation", "유");
  1447. }else {
  1448. model.makeValue(xWardRecPath + "/stoolinfo/stool/stoolcateconstipation", "무");
  1449. }
  1450. //대변부착기구
  1451. var stoolcateyn = model.getValue(xWardRecPath + "/stoolinfo/stool/stoolcateyn");
  1452. var stoolcatekind = model.getValue(xWardRecPath + "/stoolinfo/stool/stoolcatekind");
  1453. str = rdo_stoolcateyn.label;
  1454. if(stoolcateyn != "") {
  1455. if(stoolcatekind != "") {
  1456. str += "(" + stoolcatekind + ")";
  1457. }
  1458. model.setValue(xWardRecPath + "/stoolinfo/stool/stoolcateyn", str);
  1459. }
  1460. /****************************** 기타 활동 및 장애 **************************************/
  1461. //활동
  1462. var actfreeyn = model.getValue(xWardRecPath + "/actinfo/act/actfreeyn");
  1463. if(actfreeyn != "") {
  1464. model.setValue(xWardRecPath + "/actinfo/act/actfreeyn", rdo_actfreeyn.label);
  1465. }
  1466. //보조기구
  1467. var supptoolkind = model.getValue(xWardRecPath + "/actinfo/act/supptoolkind");
  1468. arr = chk_supptoolkind.label.split('▦');
  1469. if(supptoolkind != "") {
  1470. model.setValue(xWardRecPath + "/actinfo/act/supptoolkind", arr);
  1471. }
  1472. //신경계 동공
  1473. var pupilsymmetryyn = model.getValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilsymmetryyn");
  1474. if(pupilsymmetryyn != "") {
  1475. model.setValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilsymmetryyn", rdo_pupilsymmetryyn.label);
  1476. }
  1477. //좌
  1478. var pupilleft = model.getValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilleft");
  1479. if(pupilleft != "") {
  1480. model.setValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilleft", cmb_pupilleft.label);
  1481. }
  1482. //좌 빛반사
  1483. var pupilleftrflx = model.getValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilleftrflx");
  1484. if(pupilleftrflx != "") {
  1485. model.setValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilleftrflx", cmb_pupilleftrflx.label);
  1486. }
  1487. //우
  1488. var pupilrght = model.getValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilrght");
  1489. if(pupilrght != "") {
  1490. model.setValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilrght", cmb_pupilrght.label);
  1491. }
  1492. //우 빛반사
  1493. var pupilrghtrflx = model.getValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilrghtrflx");
  1494. if(pupilrghtrflx != "") {
  1495. model.setValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilrghtrflx", cmb_pupilrghtrflx.label);
  1496. }
  1497. //시력장애
  1498. var visdsordyn = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordyn");
  1499. var visdsordpos = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordpos");
  1500. var visdsordleft = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordleft");
  1501. var visdsordrght = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordrght");
  1502. var visdsordkind = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordkind");
  1503. var visdsordblind = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordblind");
  1504. str = rdo_visdsordyn.label;
  1505. if(visdsordyn != "") {
  1506. if(visdsordyn == "2") {
  1507. if(visdsordpos != "") {
  1508. if(visdsordleft != "" && visdsordrght != "") {
  1509. str += "(좌: " + visdsordleft + " 우: " + visdsordrght + ")";
  1510. } else if(visdsordpos == "1") {
  1511. str += "(좌: " + visdsordleft + ")";
  1512. } else if(visdsordpos == "2") {
  1513. str += "(우: " + visdsordrght + ")";
  1514. }
  1515. }
  1516. if(visdsordkind != "") {
  1517. arr = chk_visdsordkind.label.split(" ");
  1518. str += " (" + arr + ")";
  1519. }
  1520. if(visdsordblind != "") {
  1521. arr = chk_blindnesspos.label.split(" ");
  1522. str += " (" + arr + ")";
  1523. }
  1524. }
  1525. model.setValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordyn", str);
  1526. }
  1527. //청력장애
  1528. var heardsordyn = model.getValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordyn");
  1529. var heardsordpos = model.getValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordpos");
  1530. var heardsordleft = model.getValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordleft");
  1531. var heardsordrght = model.getValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordrght");
  1532. var heardsordkind = model.getValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordkind");
  1533. str = rdo_heardsordyn.label;
  1534. if(heardsordyn != "") {
  1535. if(heardsordyn == "2") {
  1536. if(heardsordpos != "") {
  1537. if(heardsordpos == "1 2" || heardsordpos == "2 1") {
  1538. if(heardsordleft != "" && heardsordrght != "") {
  1539. str += "(좌: " + heardsordleft + " 우: " + heardsordrght + ")";
  1540. } else if(heardsordleft != "" && heardsordrght == "") {
  1541. str += "(좌: " + heardsordleft + ")";
  1542. } else if(heardsordleft == "" && heardsordrght != "") {
  1543. str += "(우: " + heardsordrght + ")";
  1544. }
  1545. } else if(heardsordpos == "1") {
  1546. if(heardsordleft != "") {
  1547. str += "(좌: " + heardsordleft + ")";
  1548. }
  1549. } else if(heardsordpos == "2") {
  1550. if(heardsordrght != "") {
  1551. str += "(우: " + heardsordrght + ")";
  1552. }
  1553. }
  1554. }
  1555. if(heardsordkind != "") {
  1556. arr = heardsordkind.split(" ");
  1557. str += ", " + arr;
  1558. }
  1559. }
  1560. model.setValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordyn", str);
  1561. }
  1562. //치아상태
  1563. var tootstatkind = model.getValue(xWardRecPath + "/tootstatinfo/tootstat/tootstatkind");
  1564. if(tootstatkind != "") {
  1565. arr = chk_tootstatkind.label.split(" ");
  1566. model.setValue(xWardRecPath + "/tootstatinfo/tootstat/tootstatkind", arr);
  1567. }
  1568. // 신생아 사진 게재 여부
  1569. var babyphotoyn = model.getValue(xWardRecPath + "/babyphotoyn");
  1570. if(babyphotoyn != "") {
  1571. model.setValue(xWardRecPath + "/babyphotoyn", rdo_babyphotoyn.label);
  1572. }
  1573. // 산모입원동기
  1574. var ogirinmotive = model.getValue(xWardRecPath + "/ogirinmotive");
  1575. if(ogirinmotive != "") {
  1576. model.setValue(xWardRecPath + "/ogirinmotive", cmb_ogirinmotive.label);
  1577. }
  1578. }
  1579. function fMake_SignData() {
  1580. //JCI 교육요구도 추가 (20100113 김홍점)
  1581. var instUseYN = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='172']/cdid");//교육요구도 추가 20091216 김홍점
  1582. if ( instUseYN =="Y" ){
  1583. Sign.addnode("/root/temp/signdata/edurecinfo");
  1584. }
  1585. Sign.addnode("/root/main/wardrecinfo");
  1586. Sign.addnode("/root/main/histinfo");
  1587. //가족사항 정보 생성(그리드형식)
  1588. model.removeNodeset("/root/main/famyfactinfo");
  1589. model.makeNode("/root/main/famyfactinfo");
  1590. for(var i=1; i <= getNodesetCount("/root/main/famyfact"); i++) {
  1591. if(model.getValue("/root/main/famyfact["+ i +"]/rela") != ""){
  1592. model.duplicate("/root/main/famyfactinfo", "/root/main/famyfact["+ i +"]");
  1593. }
  1594. }
  1595. Sign.addnode("/root/main/famyfactinfo");
  1596. fSetSignData();
  1597. }
  1598. //이전기록일시 변경
  1599. function fChgRecHistInfo(){
  1600. var recpkspec = (model.getValue("/root/main/wardrecinfo/bfrecddtm")).split("|");
  1601. var bfrecpid = recpkspec[0];
  1602. var bfrecindd = recpkspec[1];
  1603. var bfreccretno = recpkspec[2];
  1604. var bfrecflag = recpkspec[3];
  1605. var bfrecinstcd = recpkspec[4];
  1606. model.removeNodeset("/root/send/req");
  1607. model.makeNode("/root/send/req");
  1608. model.makeValue("/root/send/req/pid", bfrecpid);
  1609. model.makeValue("/root/send/req/indd", bfrecindd);
  1610. model.makeValue("/root/send/req/instcd", bfrecinstcd);
  1611. model.makeValue("/root/send/req/recflag", bfrecflag);
  1612. //model.makeValue("/root/send/req/docucode", "0000002504");
  1613. //model.makeValue("/root/send/req/deptcd", orddeptcd);
  1614. //산모간호정보조사지
  1615. submit("TRMNN00302", false);
  1616. setParameter("SPMMR04711_shape", fGetXmlToStr("/root/main/wardrecinfo/genogrmnm/XMD"));
  1617. //임신주수 계산
  1618. ipt_edc.dispatch("xforms-value-changed");
  1619. fNotExistsNodeCreate();
  1620. //입원일자 셋팅(응급실 경유 환자인 경우 입실체크가 되는 시점(즉 응급실 퇴실시점)의 일자가 병동 입원일자로 조회됨)_20090303_SMY
  1621. model.setValue("/root/main/wardrecinfo/indd", model.getValue("/root/temp/cond/list/careinrmdd"));
  1622. model.refresh();
  1623. }
  1624. function fCareBodyAssBlock(){
  1625. var msgblock = "";
  1626. // 통증 유무 check가 되지 않은 경우
  1627. if ( (rdo_shpaininfoinclyn != null && isNull(model.getValue(rdo_shpaininfoinclyn.attribute("ref"))) )
  1628. ){
  1629. msgblock += " [통증]";
  1630. }
  1631. // 영양사정
  1632. if( (model.getValue("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/apptstatflag") == "") ||
  1633. (model.getValue("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/bdwtchngyn") == "") ||
  1634. (model.getValue("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/dysphagiayn") == "") )
  1635. {
  1636. msgblock += " [영양사정]";
  1637. }
  1638. // 의식상태 지남력/의식상태/의사소통/정서상태의 각 항목에 기록이 되지않은 경우
  1639. if ( (cmb_cscsstathuman != null && isNull(model.getValue(cmb_cscsstathuman.attribute("ref"))) )
  1640. || (cmb_cscsstattm != null && isNull(model.getValue(cmb_cscsstattm.attribute("ref"))) )
  1641. || (cmb_cscsstatplce != null && isNull(model.getValue(cmb_cscsstatplce.attribute("ref"))) )
  1642. || (cmb_cscsstat != null && isNull(model.getValue(cmb_cscsstat.attribute("ref"))) )
  1643. || (rdo_communication != null && isNull(model.getValue(rdo_communication.attribute("ref"))) )
  1644. || (cmb_emotstat != null && isNull(model.getValue(cmb_emotstat.attribute("ref"))) )
  1645. ){
  1646. msgblock += " [의식상태]";
  1647. }
  1648. // 소화기계 해당없음 또는 행추가하여 기록하지 않은 경우
  1649. if ( (chk_digorgninfoinclyn != null && isNull(model.getValue(chk_digorgninfoinclyn.attribute("ref")))
  1650. && grd_digorgn != null && isNull(model.getValue(grd_digorgn.attribute("nodeset")+ "[1]/symp") ) && isNull(model.getValue(grd_digorgn.attribute("nodeset")+ "[1]/cate") ) )
  1651. ){
  1652. msgblock += " [소화기계]";
  1653. }
  1654. // 비뇨기계 소변횟수/소변량/소변냄새 항목에 기록하지 않은 경우
  1655. if ( (ipt_urinetims != null && isNull(model.getValue(ipt_urinetims.attribute("ref"))) )
  1656. || (ipt_urineday != null && isNull(model.getValue(ipt_urineday.attribute("ref"))) )
  1657. || (ipt_urinevol != null && isNull(model.getValue(ipt_urinevol.attribute("ref"))) )
  1658. || (ipt_urinesmell != null && isNull(model.getValue(ipt_urinesmell.attribute("ref"))) )
  1659. ){
  1660. msgblock += " [비뇨기계]";
  1661. }
  1662. // 대변 대변횟수/마지막대변일/대변색깔/대변종류 항목에 기록하지 않은 경우
  1663. if ( (ipt_stooltims != null && isNull(model.getValue(ipt_stooltims.attribute("ref"))) )
  1664. || (ipt_stoolday != null && isNull(model.getValue(ipt_stoolday.attribute("ref"))) )
  1665. || (ipt_laststoolday != null && isNull(model.getValue(ipt_laststoolday.attribute("ref"))) )
  1666. || (cmb_stoolcolor != null && isNull(model.getValue(cmb_stoolcolor.attribute("ref"))) )
  1667. || (cmb_stoolkind != null && isNull(model.getValue(cmb_stoolkind.attribute("ref"))) )
  1668. ){
  1669. msgblock += " [대변]";
  1670. }
  1671. // 활동 활동 항목에 기록하지 않은 경우
  1672. if ( (rdo_actfreeyn != null && isNull(model.getValue(rdo_actfreeyn.attribute("ref"))) )
  1673. ){
  1674. msgblock += " [활동]";
  1675. }
  1676. // 신경계 해당없음 또는 동공 항목 중 대칭 또는 비대칭을 기록하지 않은 경우
  1677. if ( (chk_nvesysinfoinclyn != null && isNull(model.getValue(chk_nvesysinfoinclyn.attribute("ref"))) )
  1678. && (rdo_pupilsymmetryyn != null && isNull(model.getValue(rdo_pupilsymmetryyn.attribute("ref"))) )
  1679. ){
  1680. msgblock += " [신경계]";
  1681. }
  1682. // 시력장애 시력장애 항목 중 무/유 기록하지 않은 경우
  1683. if ( (rdo_visdsordyn != null && isNull(model.getValue(rdo_visdsordyn.attribute("ref"))) )
  1684. ){
  1685. msgblock += " [시력장애]";
  1686. }
  1687. // 청력장애 청력장애 항목 중 무/유 기록하지 않은 경우
  1688. if ( (rdo_heardsordyn != null && isNull(model.getValue(rdo_heardsordyn.attribute("ref"))) )
  1689. ){
  1690. msgblock += " [청력장애]";
  1691. }
  1692. // 치아상태 치아상태에 check가 되지 않은 경우
  1693. if ( (chk_tootstatkind != null && isNull(model.getValue(chk_tootstatkind.attribute("ref")).getTrim()) )
  1694. ){
  1695. msgblock += " [치아상태]";
  1696. }
  1697. return msgblock;
  1698. }
  1699. ]]>
  1700. </script>
  1701. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  1702. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  1703. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  1704. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  1705. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  1706. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  1707. <script type="javascript" src="../../../emr/formmngtweb/js/MRF03800.js"/>
  1708. <script type="javascript" src="../../../emr/carecomweb/js/ENRSignEngine.js"/>
  1709. <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/codeinfo/codelist"/>
  1710. <submission id="TRMNN00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/paminfo"/>
  1711. <submission id="TRMNN00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main"/>
  1712. <submission id="TRMNN00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/init/newpat"/>
  1713. <submission id="TRMNN00304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/cominfo"/>
  1714. <submission id="TXMNN00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/wardrecinfo" resultref="/root/hidden/rsltinfo"/>
  1715. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  1716. <submission id="TRMNZ00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/enrcarecomrecinfo"/>
  1717. </model>
  1718. </xhtml:head>
  1719. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  1720. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  1721. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:15px; ">간호초기평가(산모)</caption>
  1722. </group>
  1723. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  1724. <group id="grp_patinfo" scroll="auto" style="left:210px; top:50px; width:640px; height:20px; ">
  1725. <caption id="caption10" ref="/root/main/wardrecinfo/pid" style="left:534px; top:0px; width:96px; height:20px; font-family:돋움; "/>
  1726. <caption id="caption1" ref="/root/main/wardrecinfo/room" style="left:53px; top:0px; width:52px; height:20px; font-family:돋움; "/>
  1727. <caption id="caption2" ref="/root/main/wardrecinfo/patnm" style="left:180px; top:0px; width:60px; height:20px; font-family:돋움; "/>
  1728. <caption id="caption3" class="search_name" style="left:112px; top:1px; width:68px; height:17px; ">환자명:</caption>
  1729. <caption id="caption4" ref="/root/main/wardrecinfo/sex" style="left:308px; top:0px; width:32px; height:20px; font-family:돋움; "/>
  1730. <caption id="caption68" class="search_name" style="left:0px; top:1px; width:55px; height:17px; ">병실:</caption>
  1731. <caption id="caption5" class="search_name" style="left:250px; top:1px; width:58px; height:17px; ">성별:</caption>
  1732. <caption id="caption7" ref="/root/main/wardrecinfo/age" style="left:408px; top:0px; width:37px; height:20px; font-family:돋움; "/>
  1733. <caption id="caption8" class="search_name" style="left:350px; top:1px; width:58px; height:17px; ">나이:</caption>
  1734. <caption id="caption9" class="search_name" style="left:450px; top:1px; width:81px; height:17px; ">등록번호:</caption>
  1735. </group>
  1736. <output id="opt_bfrectm" ref="/root/main/wardrecinfo/bfrectm" class="output_fix" visibility="hidden" format="hh:nn" style="left:186px; top:45px; width:50px; height:19px; "/>
  1737. <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; "/>
  1738. <button id="btn_gnrlinfo" class="btn_sw" group="tab" selected="true" style="left:0px; top:49px; width:100px; height:22px; ">
  1739. <caption>일반정보</caption>
  1740. <toggle case="case1" ev:event="onclick"/>
  1741. </button>
  1742. <button id="btn_bodyasses" class="btn_sw" group="tab" style="left:100px; top:49px; width:100px; height:22px; ">
  1743. <caption>신체사정</caption>
  1744. <toggle case="case2" ev:event="onclick"/>
  1745. </button>
  1746. <button id="btn_edurec" class="btn_sw" visibility="hidden" group="tab" style="left:200px; top:49px; width:100px; height:22px; ">
  1747. <caption>교육요구도</caption>
  1748. <toggle case="case_edurec" ev:event="onclick"/>
  1749. </button>
  1750. <switch id="switch1" style="left:0px; top:70px; width:1194px; height:670px; border-color:#c7a3cf; border-style:solid; ">
  1751. <case id="case1" selected="true" style="left:0px; top:0px; width:1194px; height:674px; ">
  1752. <import id="import1" instancetype="merge" src="..\..\..\emr\wardcareweb\xrw\SMMNW07910_NEW산과정보.xrw" style="left:0px; top:0px; width:1194px; height:670px; "/>
  1753. </case>
  1754. <case id="case2" style="left:0px; top:0px; width:1194px; height:673px; border-color:transparent; ">
  1755. <import id="import4" instancetype="merge" src="..\..\..\emr\wardcareweb\xrw\SMMNW07710_NEW신체사정.xrw" style="left:0px; top:0px; width:1194px; height:670px; "/>
  1756. </case>
  1757. <case id="case_edurec" style="left:0px; top:0px; width:1194px; height:673px; border-color:transparent; ">
  1758. <iviewer id="ivw_edurec" style="left:0px; top:0px; width:1194px; height:670px; "/>
  1759. </case>
  1760. </switch>
  1761. <line id="line64" class="line_3" style="x1:0px; y1:41px; x2:1194px; y2:41px; "/>
  1762. <line id="line13" class="line_1" style="x1:0px; y1:13px; x2:1194px; y2:13px; "/>
  1763. <button id="btn_save" class="btn2_letter4" style="left:1062px; top:49px; width:64px; height:19px; ">
  1764. <caption>임시저장</caption>
  1765. <script type="javascript" ev:event="DOMActivate">
  1766. <![CDATA[
  1767. fPatgnrlInfo("T");
  1768. if(submit("TXMNN00301") == true) {
  1769. messageBox("저장이 ", "I001");
  1770. model.makeValue("/root/hidden/paminfo/paminfo/exeflag", "U");
  1771. } else {
  1772. messageBox("저장이 실패하였습니다.", "I001");
  1773. }
  1774. ]]>
  1775. </script>
  1776. </button>
  1777. <button id="button2" class="btn5_letter4" style="left:1129px; top:49px; width:64px; height:19px; ">
  1778. <caption>인증저장</caption>
  1779. <script type="javascript" ev:event="DOMActivate">
  1780. <![CDATA[
  1781. var msgstr = "";
  1782. var instUseYN = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='172']/cdid");//교육요구도 추가 20091216 김홍점
  1783. //가족사항 : 관계 필수 입력
  1784. for(var i = 1 ; i < grd_famyfact.rows; i++) {
  1785. var rela = model.getValue("/root/main/famyfact[" + i + "]/rela");
  1786. if(rela == "") {
  1787. var msg1 = "[가족사항 - 관계]";
  1788. msgstr += msg1;
  1789. break;
  1790. }
  1791. }
  1792. //필수입력사항 blocking
  1793. if(model.getValue("/root/main/wardrecinfo/spo2") == "" && model.getValue("/root/main/wardrecinfo/spo2inspyn") != "Y"){
  1794. var msg2 = "[SpO2]";
  1795. if(msgstr == ""){
  1796. msgstr += msg2;
  1797. }else{
  1798. msgstr += ", " + msg2;
  1799. }
  1800. }
  1801. if(model.getValue("/root/main/wardrecinfo/infooffer") == ""){
  1802. var msg9 = "[정보제공자]";
  1803. if(msgstr == ""){
  1804. msgstr += msg9;
  1805. }else{
  1806. msgstr += ", " + msg9;
  1807. }
  1808. }
  1809. if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/smokinfoyn") == ""){
  1810. var msg3 = "[흡연정보]";
  1811. if(msgstr == ""){
  1812. msgstr += msg3;
  1813. }else{
  1814. msgstr += ", " + msg3;
  1815. }
  1816. }
  1817. if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/smokinfoyn") == "2"){
  1818. if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/bfsmokinfoyn") == ""){
  1819. var msg24 = "[입원전1개월이내 흡연여부]";
  1820. if(msgstr == ""){
  1821. msgstr += msg24
  1822. }else{
  1823. msgstr += ", " + msg24;
  1824. }
  1825. }
  1826. }
  1827. if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/nosmokcnstyn") == ""){
  1828. var msg4 = "[금연상담여부]";
  1829. if(msgstr == ""){
  1830. msgstr += msg4;
  1831. }else{
  1832. msgstr += ", " + msg4;
  1833. }
  1834. }
  1835. if(model.getValue("/root/main/wardrecinfo/rectmedistatinfo/rectmedistat/antibiodrugyn") == ""){
  1836. var msg5 = "[병원도착전 24시간내 항생제 투약여부]";
  1837. if(msgstr == ""){
  1838. msgstr += msg5;
  1839. }else{
  1840. msgstr += ", " + msg5;
  1841. }
  1842. }
  1843. //20090626_SMY추가
  1844. if(model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid = '077' and supcdid = '03' and cdid = '"+ getUserInfo("dutplceinstcd") +"']/cdid")){ //supcdid='03' : 부천성가병원
  1845. if(model.getValue("/root/main/wardrecinfo/bdht") == "" && model.getValue("/root/main/wardrecinfo/bdhtinspyn") != "Y"){
  1846. var msg6 = "[신장]";
  1847. if(msgstr == ""){
  1848. msgstr += msg6;
  1849. }else{
  1850. msgstr += ", " + msg6;
  1851. }
  1852. }
  1853. if(model.getValue("/root/main/wardrecinfo/bdwtinspyn") != "Y"){
  1854. if(model.getValue("/root/main/wardrecinfo/prgbfbdwt") == ""){
  1855. var msg7 = "[임신전 체중]";
  1856. if(msgstr == ""){
  1857. msgstr += msg7;
  1858. }else{
  1859. msgstr += ", " + msg7;
  1860. }
  1861. }
  1862. if(model.getValue("/root/main/wardrecinfo/inbdwt") == ""){
  1863. var msg8 = "[입원시 체중]";
  1864. if(msgstr == ""){
  1865. msgstr += msg8;
  1866. }else{
  1867. msgstr += ", " + msg8;
  1868. }
  1869. }
  1870. }
  1871. }
  1872. //------------(20110121) 경북대
  1873. // if(model.getValue("/root/main/wardrecinfo/nrs1cd") == ""){
  1874. // var msg8 = "[영양상태지표]";
  1875. // if(msgstr == ""){
  1876. // msgstr += msg8;
  1877. // }else{
  1878. // msgstr += ", " + msg8;
  1879. // }
  1880. // }
  1881. // if(model.getValue("/root/main/wardrecinfo/nrs21cd") == ""){
  1882. // var msg9 = "[임상상태지표1]";
  1883. // if(msgstr == ""){
  1884. // msgstr += msg9;
  1885. // }else{
  1886. // msgstr += ", " + msg9;
  1887. // }
  1888. // }
  1889. // if(model.getValue("/root/main/wardrecinfo/nrs22cd") == ""){
  1890. // var msg10 = "[영양상태지표2]";
  1891. // if(msgstr == ""){
  1892. // msgstr += msg10;
  1893. // }else{
  1894. // msgstr += ", " + msg10;
  1895. // }
  1896. // }
  1897. // if(model.getValue("/root/main/wardrecinfo/nrs23cd") == ""){
  1898. // var msg11 = "[영양상태지표3]";
  1899. // if(msgstr == ""){
  1900. // msgstr += msg11;
  1901. // }else{
  1902. // msgstr += ", " + msg11;
  1903. // }
  1904. // }
  1905. //------------(20110121) 경북대
  1906. // 2013.04.25 배우자정보 필수항목으로 지정!!
  1907. if(model.getValue("/root/main/wardrecinfo/ptneinclyn") != "1"){
  1908. if(model.getValue("/root/main/wardrecinfo/ptnernm") == ""){
  1909. var msg12 = "[배우자이름]";
  1910. if(msgstr == ""){
  1911. msgstr += msg12;
  1912. }else{
  1913. msgstr += ", " + msg12;
  1914. }
  1915. }
  1916. if(model.getValue("/root/main/wardrecinfo/ptnerbrthdd") == ""){
  1917. var msg25 = "[배우자생년월일]";
  1918. if(msgstr == ""){
  1919. msgstr += msg25;
  1920. }else{
  1921. msgstr += ", " + msg25;
  1922. }
  1923. }
  1924. if(model.getValue("/root/main/wardrecinfo/ptnerage") == ""){
  1925. var msg13 = "[배우자나이]";
  1926. if(msgstr == ""){
  1927. msgstr += msg13;
  1928. }else{
  1929. msgstr += ", " + msg13;
  1930. }
  1931. }
  1932. if(model.getValue("/root/main/wardrecinfo/ptnertel") == ""){
  1933. var msg14 = "[배우자연락처]";
  1934. if(msgstr == ""){
  1935. msgstr += msg14;
  1936. }else{
  1937. msgstr += ", " + msg14;
  1938. }
  1939. }
  1940. if(model.getValue("/root/main/wardrecinfo/ptnerjobcd") == ""){
  1941. var msg26 = "[배우자직업]";
  1942. if(msgstr == ""){
  1943. msgstr += msg26;
  1944. }else{
  1945. msgstr += ", " + msg26;
  1946. }
  1947. }
  1948. if(model.getValue("/root/main/wardrecinfo/ptnerbtype") == ""){
  1949. var msg15 = "[배우자혈액형]";
  1950. if(msgstr == ""){
  1951. msgstr += msg15;
  1952. }else{
  1953. msgstr += ", " + msg15;
  1954. }
  1955. }
  1956. }
  1957. // 2013.07.16 산과정보 필수항목으로 지정!!
  1958. if(model.getValue("/root/main/wardrecinfo/obgyninfoinclyn") != "1"){
  1959. if(model.getValue("/root/main/wardrecinfo/befchildbrthmed") == ""){
  1960. var msg16 = "[산전진찰]";
  1961. if(msgstr == ""){
  1962. msgstr += msg16;
  1963. }else{
  1964. msgstr += ", " + msg16;
  1965. }
  1966. }
  1967. if(model.getValue("/root/main/wardrecinfo/gesage") == ""){
  1968. var msg17 = "[임신주수]";
  1969. if(msgstr == ""){
  1970. msgstr += msg17;
  1971. }else{
  1972. msgstr += ", " +msg17;
  1973. }
  1974. }
  1975. if(model.getValue("/root/main/wardrecinfo/lastmensdd") == ""){
  1976. var msg18 = "[최종월경일]";
  1977. if(msgstr == ""){
  1978. msgstr += msg18;
  1979. }else{
  1980. msgstr += ", " + msg18;
  1981. }
  1982. }
  1983. if(model.getValue("/root/main/wardrecinfo/edc") == ""){
  1984. var msg19 = "[분만예정일]";
  1985. if(msgstr == ""){
  1986. msgstr += msg19;
  1987. }else{
  1988. msgstr += ", " + msg19;
  1989. }
  1990. }
  1991. if(model.getValue("/root/main/wardrecinfo/parityg") == "" && model.getValue("/root/main/wardrecinfo/parityp") == "" && model.getValue("/root/main/wardrecinfo/paritya") == ""
  1992. && model.getValue("/root/main/wardrecinfo/paritysa") == "" && model.getValue("/root/main/wardrecinfo/parityaa") == "" && model.getValue("/root/main/wardrecinfo/parityl") == ""){
  1993. var msg20 = "[임신출산력]";
  1994. if(msgstr == ""){
  1995. msgstr += msg20;
  1996. }else{
  1997. msgstr += ", " + msg20;
  1998. }
  1999. }
  2000. if(model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/nbabymucusyn") != ""){
  2001. if(model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/nbabymucusyn") == "2"){
  2002. if(model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/nbabymucusdd") == "" || model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/nbabymucusdt") == ""){
  2003. var msg21= "[이슬]";
  2004. if(msgstr == ""){
  2005. msgstr += msg21;
  2006. }else{
  2007. msgstr += ", " + msg21;
  2008. }
  2009. }
  2010. }
  2011. }
  2012. if(model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/ruptureyn") != ""){
  2013. if(model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/ruptureyn") == "2"){
  2014. if(model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/rupturedd") == "" || model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/rupturedt") == ""){
  2015. var msg22= "[조기파수]";
  2016. if(msgstr == ""){
  2017. msgstr += msg22;
  2018. }else{
  2019. msgstr += ", " + msg22;
  2020. }
  2021. }
  2022. }
  2023. }
  2024. if(model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/angsiayn") != ""){
  2025. if(model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/angsiayn") == "2"){
  2026. if(model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/angsiadd") == "" || model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/angsiadt") == ""
  2027. || model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/angsiatermmin") == "" || model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/angsiatermsec") == ""){
  2028. var msg23= "[진통]";
  2029. if(msgstr == ""){
  2030. msgstr += msg23;
  2031. }else{
  2032. msgstr += ", " + msg23;
  2033. }
  2034. }
  2035. }
  2036. }
  2037. }
  2038. if ( instUseYN =="Y"){
  2039. // var msgblock = fMNWCareBodyAssBlockForJCI();
  2040. var msgblock = fCareBodyAssBlock();
  2041. if( msgblock != ""){
  2042. msgstr += "\n" + msgblock;
  2043. }
  2044. }
  2045. if(msgstr != "" ){
  2046. messageBox(msgstr + " 은(는) ", "I003");//필수입력입니다
  2047. return;
  2048. }
  2049. fPatgnrlInfo("C");
  2050. //20100115 JCI 김홍점 교육요구도 적용병원만 데이타 저장 및 인증데이타 생성
  2051. if ( instUseYN =="Y"){
  2052. model.removenode('/root/temp/signdata');
  2053. if ( !ivw_edurec.window.javascript.fSave() ){
  2054. return;
  2055. }
  2056. var xEduRecPath = '/root/temp/signdata/edurecinfo';
  2057. fMNWCareInfoRecMakeForJCI(xEduRecPath, ivw_edurec, "N");//carecom.js (srcPath, destObj , 응급간호정보조사여부 구분 erYn)
  2058. }
  2059. //최초기록자
  2060. fMNWCareComFstdtSet( "03", "SAVE" );
  2061. Sign.certreload = true ;
  2062. if (Sign.signprocess() == true){
  2063. //src="C:\CMCProject\application\webapps\emr\formmngtweb\xrw\SSMRF03800_OCR뷰어.xrw"
  2064. // alert("인증성공" );
  2065. // alert("1. 인증성공여부 false / true \n\n" + Sign.signedInfos[0]); // 인증성공여부 false / true
  2066. // alert("2. 인증할 데이터 정보 (미기록 노드 제거전 원본 노드) \n\n" + Sign.signedInfos[3]); // 인증할 데이터 정보 (미기록 노드 제거전 원본 노드)
  2067. // alert("2.--> text 데이터(없는 노드 포함된) text 형태 변형 결과 \n\n" + Sign.signedInfos[4]); // [3] 데이터(없는 노드 포함된) text 형태 변형 결과
  2068. // alert("3. 인증할 데이터 정보(미기록 노드 제거된 정보) \n\n" + Sign.signedInfos[1]); // 인증할 데이터 정보(미기록 노드 제거된 정보)
  2069. // alert("3. -->text 데이터(없는 노드 제거된) text 형태 변형 결과 \n\n" + Sign.signedInfos[5]); // ★[1] 데이터(없는 노드 제거된) text 형태 변형 결과 >>> [5]
  2070. // alert("3. -->text --> sign 공인인증 처리후 데이터 \n\n" + Sign.signedInfos[2]); // ★공인인증 처리후 데이터 >>> [2]
  2071. model.makeValue("/root/send/wardrecinfo/pid", model.getValue("/root/temp/cond/list/pid"));
  2072. model.makeValue("/root/send/wardrecinfo/indd", model.getValue("/root/temp/cond/list/indd"));
  2073. model.makeValue("/root/send/wardrecinfo/signno", model.getValue("/root/main/wardrecinfo/signno"));
  2074. model.makeValue("/root/send/wardrecinfo/cretno", model.getValue("/root/temp/cond/list/cretno"));
  2075. model.makeValue("/root/send/wardrecinfo/recdd", model.getValue("/root/main/wardrecinfo/recdd"));
  2076. model.makeValue("/root/send/wardrecinfo/rectm", model.getValue("/root/main/wardrecinfo/rectm"));
  2077. model.makeValue("/root/send/wardrecinfo/recsaveflag", "Y");
  2078. model.makeValue("/root/send/wardrecinfo/signflag", "02");
  2079. model.makeValue("/root/send/wardrecinfo/signgenrflag", model.getValue("/root/temp/cond/list/ioflag"));
  2080. model.makeValue("/root/send/wardrecinfo/formcd", "0000002504");
  2081. model.makeValue("/root/send/wardrecinfo/orddeptcd", model.getValue("/root/temp/cond/list/orddeptcd"));
  2082. model.makeValue("/root/send/wardrecinfo/orddrid", model.getValue("/root/temp/cond/list/medispclid"));
  2083. model.makeValue("/root/send/wardrecinfo/signbfcnts", Sign.signedInfos[1]);
  2084. model.makeValue("/root/send/wardrecinfo/signaftcnts", Sign.signedInfos[2]);
  2085. model.makeValue("/root/send/wardrecinfo/wardcd", model.getValue("/root/temp/cond/list/wardcd"));
  2086. model.makeValue("/root/send/wardrecinfo/roomcd", model.getValue("/root/temp/cond/list/roomcd"));
  2087. model.makeValue("/root/send/wardrecinfo/instcd", model.getValue("/root/temp/cond/list/instcd"));
  2088. if(submit("TXMNN00301") == true) {
  2089. grd_famyfact.clearStatus();
  2090. model.setValue("/root/send/wardrecinfo", "");
  2091. messageBox("저장이 ", "I001");
  2092. model.makeValue("/root/hidden/paminfo/paminfo/exeflag", "U");
  2093. fGetInitRecInfo(); //재조회
  2094. fInitEvent();
  2095. } else {
  2096. messageBox("저장이 실패하였습니다.", "I001");
  2097. }
  2098. }
  2099. ]]>
  2100. </script>
  2101. </button>
  2102. <input id="ipt_signno" ref="/root/main/wardrecinfo/signno" visibility="hidden" style="left:855px; top:45px; width:50px; height:19px; "/>
  2103. <button id="button1" class="btn2_letter6" style="left:973px; top:49px; width:86px; height:19px; ">
  2104. <caption>전체기록삭제</caption>
  2105. <script type="javascript" ev:event="DOMActivate">
  2106. <![CDATA[
  2107. setCareInfoDel("TXMNN00301"); //CareCom.js
  2108. fGetIndtInfo(); //현재수진이력의 입원시간을 가져온다
  2109. ]]>
  2110. </script>
  2111. </button>
  2112. <caption id="cap_sinfodnor" class="cell_1" style="left:677px; top:18px; width:68px; height:23px; vertical-align:middle; ">정보제공자</caption>
  2113. <caption id="cap_bfrecdt" class="cell_1" style="left:0px; top:18px; width:80px; height:23px; vertical-align:middle; ">이전기록일시</caption>
  2114. <input id="ipt_rectm" ref="/root/main/wardrecinfo/rectm" class="input_default" format="hh:nn" validateformat="true" style="left:500px; top:20px; width:50px; height:19px; "/>
  2115. <caption id="cap_recdt" class="cell_1" style="left:351px; top:18px; width:56px; height:23px; vertical-align:middle; ">기록일시</caption>
  2116. <output id="opt_recuser" ref="/root/main/wardrecinfo/recuser" class="output_fix" style="left:601px; top:20px; width:75px; height:19px; "/>
  2117. <caption id="caption11" class="cell_1" style="left:1044px; top:18px; width:71px; height:23px; vertical-align:middle; ">최초기록자</caption>
  2118. <caption id="caption12" class="cell_1" style="left:845px; top:18px; width:80px; height:23px; vertical-align:middle; ">최초기록일시</caption>
  2119. <input id="ipt_recdd" ref="/root/main/wardrecinfo/recdd" class="input_default" inputtype="date" style="left:409px; top:20px; width:90px; height:19px; "/>
  2120. <select1 id="cmb_bfrecddtm" ref="/root/main/wardrecinfo/bfrecddtm" class="combo_default" navindex="16" appearance="minimal" style="left:83px; top:20px; width:120px; height:19px; ">
  2121. <choices>
  2122. <itemset nodeset="/root/hidden/paminfo/recinfo">
  2123. <label ref="bfrecddtm"/>
  2124. <value ref="recpkspec"/>
  2125. </itemset>
  2126. </choices>
  2127. <script type="javascript" ev:event="xforms-value-changed">
  2128. <![CDATA[
  2129. fChgRecHistInfo();
  2130. fMNWCareComFstdtSet( "03", "SRCH" );
  2131. model.refresh();
  2132. ]]>
  2133. </script>
  2134. </select1>
  2135. <caption id="cap_recuser" class="cell_1" style="left:553px; top:18px; width:47px; height:23px; vertical-align:middle; ">기록자</caption>
  2136. <output id="opt_bfrecuser" ref="/root/main/wardrecinfo/bfrecuser" class="output_fix" style="left:274px; top:20px; width:75px; height:19px; "/>
  2137. <caption id="cap_bfrecuser" class="cell_1" style="left:205px; top:18px; width:67px; height:23px; vertical-align:middle; ">이전기록자</caption>
  2138. <output id="output1" ref="/root/main/wardrecinfo/fstrgstdt" class="output_fix" style="left:927px; top:20px; width:115px; height:19px; "/>
  2139. <output id="output2" ref="/root/main/wardrecinfo/fstrgstrnm" class="output_fix" style="left:1116px; top:20px; width:75px; height:19px; "/>
  2140. <input id="ipt_infooffer" ref="/root/main/wardrecinfo/infooffer" class="input_default" maxlength="10" style="left:747px; top:20px; width:97px; height:19px; "/>
  2141. </group>
  2142. <group id="group4" scroll="auto" style="left:0px; top:756px; width:1195px; height:22px; ">
  2143. <line id="line62" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  2144. <caption id="caption13" style="left:1169px; top:0px; width:26px; height:20px; ">[표]</caption>
  2145. </group>
  2146. </xhtml:body>
  2147. </xhtml:html>