SMMNN00300_산모 간호정보조사.xrw 117 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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";
  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. // 15.06.18 여성, 월경, 비뇨기계, 대변 항목 추가
  399. var mensaddinfoynflag = instance1.selectSingleNode(chk_mensaddinfoyn.attribute("ref"));
  400. var urinecateynflag = instance1.selectSingleNode(rdo_urinecateyn.attribute("ref"));
  401. var urinevoldaytime = instance1.selectSingleNode(cmb_urinevoldaytime.attribute("ref"));
  402. var bdwtchngtermflag= instance1.selectSingleNode("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/bdwtchngtermflag");
  403. // 16.04.22_배우자_기타입력_항목_추가_AYS
  404. var ptnerjobnm = instance1.selectSingleNode(ipt_ptnerjobnm.attribute("ref"));
  405. if ( bdwtchngtermflag == null ) {
  406. model.makeValue("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/bdwtchngtermflag","");
  407. }
  408. if ( rdo_incdecflag != null){
  409. var incdecflag= instance1.selectSingleNode(rdo_incdecflag.attribute("ref"));
  410. if ( incdecflag == null ) {
  411. model.makeNode(rdo_incdecflag.attribute("ref"));
  412. }
  413. }
  414. var constipt= instance1.selectSingleNode("/root/main/wardrecinfo/stoolinfo/stool/stoolconstipation");
  415. if ( constipt == null ) {
  416. model.makeValue("/root/main/wardrecinfo/stoolinfo/stool/stoolconstipation","");
  417. }
  418. var shpaininfoflag= instance1.selectSingleNode(cmb_shpaininfoflag.attribute("ref"));
  419. if(shpaininfoflag == null) {
  420. model.makeValue(cmb_shpaininfoflag.attribute("ref"), "");
  421. }
  422. if(model.getValue(rdo_shpaininfoinclyn.attribute("ref")) == "1") {
  423. cmb_shpaininfoflag.disabled = false;
  424. } else {
  425. cmb_shpaininfoflag.disabled = true;
  426. }
  427. // 15.06.16 추가 - 여성정보 추가사정
  428. if(mensaddinfoynflag == null) {
  429. model.makeValue(chk_mensaddinfoyn.attribute("ref"), "");
  430. }
  431. if(urinecateynflag == null) {
  432. model.makeValue(rdo_urinecateyn.attribute("ref"), "");
  433. }
  434. if(urinevoldaytime == null) {
  435. model.makeValue(cmb_urinevoldaytime.attribute("ref"), "");
  436. }
  437. // 16.04.22_배우자_기타입력_항목_AYS
  438. if(ptnerjobnm == null) {
  439. model.makeValue(ipt_ptnerjobnm.attribute("ref"), "");
  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. // 16.04.22_배우자 기타명 추가_AYS
  684. model.makeValue(sendPath + "/ptnerjobnm", model.getValue(mainPath + "/ptnerjobnm"));
  685. //가족사항(가족연락처table)
  686. var updtdata = getGridUpdateData(grd_famyfact);
  687. model.makeValue(sendPath + "/famyfact", updtdata);
  688. //병력
  689. fChkInclYN();
  690. //신체사정
  691. model.makeValue(sendPath + "/shpaininfo", fGetXmlToStr("/root/main/wardrecinfo/shpaininfo/shpain"));
  692. model.makeValue(sendPath + "/apttbdwtchnginfo", fGetXmlToStr(mainPath + "/apttbdwtchnginfo/apttbdwtchng"));
  693. model.makeValue(sendPath + "/slepstatinfo", fGetXmlToStr(mainPath + "/slepstatinfo/slepstat"));
  694. model.makeValue(sendPath + "/cscsstatinfo", fGetXmlToStr(mainPath + "/cscsstatinfo/cscsstat"));
  695. model.makeValue(sendPath + "/mensinfo", fGetXmlToStr(mainPath + "/mensinfo/mens"));
  696. model.makeValue(sendPath + "/cirorgninfo", fGetXmlToStr(mainPath + "/cirorgninfo/cirorgn"));
  697. //'15.06.22 - 추가
  698. model.makeValue(sendPath + "/uriorgninfo", fGetXmlToStr(mainPath + "/uriorgninfo/uriorgn"));
  699. model.makeValue(sendPath + "/stoolinfo", fGetXmlToStr(mainPath + "/stoolinfo/stool"));
  700. model.makeValue(sendPath + "/actinfo", fGetXmlToStr(mainPath + "/actinfo/act"));
  701. model.makeValue(sendPath + "/visdsordinfo", fGetXmlToStr(mainPath + "/visdsordinfo/visdsord"));
  702. model.makeValue(sendPath + "/heardsordinfo", fGetXmlToStr(mainPath + "/heardsordinfo/heardsord"));
  703. model.makeValue(sendPath + "/tootstatinfo", fGetXmlToStr(mainPath + "/tootstatinfo/tootstat"));
  704. //알러지
  705. if(grd_allghist.rows > 1) {
  706. if(allgInsYN == "Y") {
  707. grd_allghist.addStatus(1, "insert");
  708. }
  709. }
  710. model.makeValue("/root/send/wardrecinfo/allginfo", grd_allghist.getUpdateData());
  711. //인자값
  712. model.makeValue(sendPath + "/pid", model.getValue("/root/temp/cond/list/pid"));
  713. model.makeValue(sendPath + "/indd", model.getValue("/root/temp/cond/list/indd"));
  714. model.makeValue(sendPath + "/instcd", model.getValue("/root/temp/cond/list/instcd"));
  715. model.makeValue(sendPath + "/deptcd", model.getValue("/root/temp/cond/list/orddeptcd"));
  716. model.makeValue(sendPath + "/docucode", "0000002504");
  717. model.makeValue(sendPath + "/userid", userid);
  718. model.makeValue(sendPath + "/recflag", "03");
  719. model.makeValue("/root/send/wardrecinfo/infooffer", model.getValue("/root/main/wardrecinfo/infooffer"));
  720. if(model.getValue("/root/properties/parameters/SPMMR04711_shape/SPMMR04711_shapevalue") == "") {
  721. model.makeValue("/root/send/wardrecinfo/genogrmnm", "");
  722. } else {
  723. model.makeValue("/root/send/wardrecinfo/genogrmnm", model.getValue("/root/properties/parameters/SPMMR04711_shape/SPMMR04711_shapevalue"));
  724. }
  725. //수행구분(I, U에 따른 입력, 수정을위한 구분)
  726. model.makeValue("/root/send/wardrecinfo/exeflag", model.getValue("/root/hidden/paminfo/paminfo/exeflag"));
  727. model.makeValue("/root/send/wardrecinfo/certflag", certFlag);
  728. model.makeValue("/root/send/wardrecinfo/recdd", model.getValue("/root/main/wardrecinfo/recdd"));
  729. model.makeValue("/root/send/wardrecinfo/rectm", model.getValue("/root/main/wardrecinfo/rectm"));
  730. model.makeValue("/root/send/wardrecinfo/recdt", model.getValue("/root/main/wardrecinfo/recdd") + model.getValue("/root/main/wardrecinfo/rectm"));
  731. //----------(20110108)
  732. fnNRScalc();
  733. //----------(20110108)
  734. //------------(20101219) 경북대
  735. model.makeValue("/root/send/wardrecinfo/nrs1cd", model.getValue("/root/main/wardrecinfo/nrs1cd"));
  736. model.makeValue("/root/send/wardrecinfo/nrs1nm", model.getValue("/root/main/wardrecinfo/nrs1nm"));
  737. model.makeValue("/root/send/wardrecinfo/nrs21cd", model.getValue("/root/main/wardrecinfo/nrs21cd"));
  738. model.makeValue("/root/send/wardrecinfo/nrs21nm", model.getValue("/root/main/wardrecinfo/nrs21nm"));
  739. model.makeValue("/root/send/wardrecinfo/nrs22cd", model.getValue("/root/main/wardrecinfo/nrs22cd"));
  740. model.makeValue("/root/send/wardrecinfo/nrs22nm", model.getValue("/root/main/wardrecinfo/nrs22nm"));
  741. model.makeValue("/root/send/wardrecinfo/nrs23cd", model.getValue("/root/main/wardrecinfo/nrs23cd"));
  742. model.makeValue("/root/send/wardrecinfo/nrs23nm", model.getValue("/root/main/wardrecinfo/nrs23nm"));
  743. model.makeValue("/root/send/wardrecinfo/nrsscore", model.getValue("/root/main/wardrecinfo/nrsscore"));
  744. //------------(20101219) 경북대
  745. }
  746. function fSetSignData() {
  747. var xWardRecPath = Sign.XPATH_SIGNINFO + "/wardrecinfo";
  748. var xHistPath = Sign.XPATH_SIGNINFO + "/histinfo";
  749. var xFamyPath = Sign.XPATH_SIGNINFO + "/famyfactinfo";
  750. /****************************** 환자기본정보 **************************************/
  751. //직업
  752. var jobcd = model.getValue(xWardRecPath + "/jobcd");
  753. if(jobcd != "") {
  754. if(jobcd == "10") {
  755. if(model.getValue(xWardRecPath + "/jobnm") == "") {
  756. model.setValue(xWardRecPath + "/jobcd", cmb_job.label);
  757. } else {
  758. model.setValue(xWardRecPath + "/jobcd", model.getValue(xWardRecPath + "/jobnm"));
  759. }
  760. } else {
  761. model.setValue(xWardRecPath + "/jobcd", cmb_job.label);
  762. }
  763. }
  764. //교육정도
  765. var educgrde = model.getValue(xWardRecPath + "/educgrdecd");
  766. if(educgrde != "") {
  767. if(educgrde == "15") {
  768. if(model.getValue(xWardRecPath + "/educgrdenm") != "") {
  769. model.setValue(xWardRecPath + "/educgrdecd", model.getValue(xWardRecPath + "/educgrdenm"));
  770. } else {
  771. model.setValue(xWardRecPath + "/educgrdecd", cmb_educgrde.label);
  772. }
  773. } else {
  774. model.setValue(xWardRecPath + "/educgrdecd", cmb_educgrde.label);
  775. }
  776. }
  777. //종교
  778. var relign = model.getValue(xWardRecPath + "/religncd");
  779. if(relign != "") {
  780. if(relign == "01") {
  781. model.setValue(xWardRecPath + "/religncd", cmb_relign.label);
  782. if(model.getValue(xWardRecPath + "/baptnm") != "") {
  783. model.setValue(xWardRecPath + "/religncd", model.getValue(xWardRecPath + "/religncd") + "(" + model.getValue(xWardRecPath + "/baptnm") + ")");
  784. }
  785. } else if( relign == "09") {
  786. if(model.getValue(xWardRecPath + "/relignnm") == "") {
  787. model.setValue(xWardRecPath + "/religncd", cmb_relign.label);
  788. } else {
  789. model.setValue(xWardRecPath + "/religncd", model.getValue(xWardRecPath + "/relignnm"));
  790. }
  791. } else {
  792. model.setValue(xWardRecPath + "/religncd", cmb_relign.label);
  793. }
  794. }
  795. //영적요구
  796. var relignreq = model.getValue(xWardRecPath + "/relignreq");
  797. if (relignreq != ""){
  798. model.setValue(xWardRecPath + "/relignreq", cmb_relignreq.label);
  799. }
  800. //결혼상태
  801. var marystat = model.getValue(xWardRecPath + "/marystatcd");
  802. if(marystat != "") {
  803. if(marystat == "06") {
  804. if(model.getValue(xWardRecPath + "/marystatnm") != "") {
  805. model.setValue(xWardRecPath + "/marystatcd", model.getValue(xWardRecPath + "/marystatnm"));
  806. } else {
  807. model.setValue(xWardRecPath + "/marystatcd", cmb_marystat.label);
  808. }
  809. } else {
  810. model.setValue(xWardRecPath + "/marystatcd", cmb_marystat.label);
  811. }
  812. }
  813. // 15.08.25 - 개인정보사정 미 동의시 [개인정보사정미동의] 내용표기
  814. var privacy = model.getValue(xWardRecPath + "/privacy");
  815. if(privacy != "") {
  816. if(privacy == "Y") {
  817. model.setValue(xWardRecPath + "/jobcd", trim(chk_privacy.label));
  818. model.setValue(xWardRecPath + "/religncd", chk_privacy.label);
  819. model.setValue(xWardRecPath + "/marystatcd", chk_privacy.label);
  820. }
  821. }
  822. /****************************** 가족사항 **************************************/
  823. //가족사항 관계
  824. var rows = grd_famyfact.rows;
  825. var rela;
  826. for(var i = 1 ; i < rows; i++) {
  827. rela = model.getValue(xFamyPath + "/famyfact[" + i + "]/rela");
  828. if(rela != "") {
  829. model.setValue(xFamyPath + "/famyfact[" + i + "]/rela", grd_famyfact.labelMatrix(i, grd_famyfact.colRef("rela")));
  830. }
  831. }
  832. /****************************** 입원정보 **************************************/
  833. //입원경로
  834. var inpath = model.getValue(xWardRecPath + "/inpathcd");
  835. if(inpath != "") {
  836. if(inpath == "08") {
  837. if(model.getValue(xWardRecPath + "/inpathnm") != "") {
  838. model.setValue(xWardRecPath + "/inpathcd", model.getValue(xWardRecPath + "/inpathnm"));
  839. } else {
  840. model.setValue(xWardRecPath + "/inpathcd", cmb_inpath.label);
  841. }
  842. } else {
  843. model.setValue(xWardRecPath + "/inpathcd", cmb_inpath.label);
  844. }
  845. }
  846. //입원방법
  847. var inmthd = model.getValue(xWardRecPath + "/inmthdcd");
  848. if(inmthd != "") {
  849. if(inmthd == "08") {
  850. if(model.getValue(xWardRecPath + "/inmthdnm") != "") {
  851. model.setValue(xWardRecPath + "/inmthdcd", model.getValue(xWardRecPath + "/inmthdnm"));
  852. } else {
  853. model.setValue(xWardRecPath + "/inmthdcd", cmb_inmthd.label);
  854. }
  855. } else {
  856. model.setValue(xWardRecPath + "/inmthdcd", cmb_inmthd.label);
  857. }
  858. }
  859. //입원시동반자
  860. var inacompst = model.getValue(xWardRecPath + "/inacompstcd");
  861. if(inacompst != "") {
  862. if(inacompst == "04") {
  863. if(model.getValue(xWardRecPath + "/inacompstnm") != "") {
  864. model.setValue(xWardRecPath + "/inacompstcd", model.getValue(xWardRecPath + "/inacompstnm"));
  865. } else {
  866. model.setValue(xWardRecPath + "/inacompstcd", cmb_inacompst.label);
  867. }
  868. } else {
  869. model.setValue(xWardRecPath + "/inacompstcd", cmb_inacompst.label);
  870. }
  871. }
  872. //병원도착전 24시간내 항생제 투약여부
  873. var antibiodrugyn = model.getValue(xWardRecPath + "/rectmedistatinfo/rectmedistat/antibiodrugyn");
  874. if(antibiodrugyn != "") {
  875. model.setValue(xWardRecPath + "/rectmedistatinfo/rectmedistat/antibiodrugyn", cmb_antibiodrugyn.label);
  876. }
  877. /****************************** 기본 신체정보 **************************************/
  878. //혈액형
  879. var bdbtype = model.getValue(xWardRecPath + "/bdbtype");
  880. if(bdbtype != "") {
  881. model.setValue(xWardRecPath + "/bdbtype", cmb_bdbtype.label);
  882. }
  883. //체온
  884. var bdtppart = model.getValue(xWardRecPath + "/bdtppartcd");
  885. if(bdtppart != "") {
  886. model.setValue(xWardRecPath + "/bdtppartcd", cmb_bdtp.label);
  887. }
  888. /****************************** 기호정보 **************************************/
  889. /*
  890. //입원전 1개월간 흡연력
  891. var smokinfoyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfoyn");
  892. var smokinfocnt = model.getValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfocnt");
  893. if(smokinfoyn != "") {
  894. if(smokinfoyn == "2" && smokinfocnt != ""){
  895. model.setValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfoyn", rdo_smokinfo.label + "(" + smokinfocnt + ")");
  896. }else{
  897. model.setValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfoyn", rdo_smokinfo.label);
  898. }
  899. }
  900. */
  901. //흡연정보
  902. var smokinfoyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfoyn");
  903. var bfsmokinfoyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/bfsmokinfoyn");
  904. if(smokinfoyn != "") {
  905. if(bfsmokinfoyn != ""){
  906. model.setValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfoyn", rdo_smokinfo.label + "(" + rdo_bfsmokinfo.label + ")");
  907. }else{
  908. model.setValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfoyn", rdo_smokinfo.label);
  909. }
  910. }
  911. //금연상담여부
  912. var nosmokcnstyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/nosmokcnstyn");
  913. if(nosmokcnstyn == "1") {
  914. var str = rdo_nosmokcnstyn.label;
  915. if(model.getValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/nosmokcnst") != "") {
  916. if(model.getValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/nosmokcnst") == "03") {
  917. if(model.getValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/nosmokcnstnm") != "") {
  918. str += "(" + ipt_nosmokcnstnm.label + ")";
  919. model.setValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/nosmokcnstyn", str);
  920. } else {
  921. str += "(" + cmb_nosmokcnst.label + ")";
  922. model.setValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/nosmokcnst", str);
  923. }
  924. } else {
  925. str += "(" + cmb_nosmokcnst.label + ")";
  926. model.setValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/nosmokcnstyn", str);
  927. }
  928. } else {
  929. model.setValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/nosmokcnstyn", rdo_nosmokcnstyn.label);
  930. }
  931. } else {
  932. model.setValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/nosmokcnstyn", rdo_nosmokcnstyn.label);
  933. }
  934. //음주정보
  935. var drunkinfoyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn");
  936. if(drunkinfoyn != "") {
  937. if(drunkinfoyn == "2") {
  938. if(model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfokind") != "") {
  939. if(model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoterm") != "") {
  940. model.setValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfokind") + " "
  941. + model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoterm") + cap_drunkinfoterm.label);
  942. }else{
  943. model.setValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfokind"));
  944. }
  945. } else {
  946. if(model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoterm") != "") {
  947. model.setValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoterm") + cap_drunkinfoterm.label);
  948. }else{
  949. model.setValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn", rdo_drunkinfo.label);
  950. }
  951. }
  952. } else {
  953. model.setValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn", rdo_drunkinfo.label);
  954. }
  955. }
  956. //기호식품
  957. var gustofoodyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofoodyn");
  958. if(gustofoodyn != "") {
  959. if(gustofoodyn == "2") {
  960. if(model.getValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofooddetl") != "") {
  961. model.setValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofoodyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofooddetl"));
  962. } else {
  963. model.setValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofoodyn", rdo_gustofoodyn.label);
  964. }
  965. } else {
  966. model.setValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofoodyn", rdo_gustofoodyn.label);
  967. }
  968. }
  969. //수혈부작용
  970. var tnsseffcyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn");
  971. if(tnsseffcyn != "") {
  972. if(tnsseffcyn == "2") {
  973. if(model.getValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcdetl") != "") {
  974. model.setValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcdetl"));
  975. } else {
  976. model.setValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn", rdo_tnsseffcyn.label);
  977. }
  978. } else {
  979. model.setValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn", rdo_tnsseffcyn.label);
  980. }
  981. }
  982. /****************************** 산과정보 **************************************/
  983. //산전진찰
  984. var befchildbrthmed = model.getValue(xWardRecPath + "/befchildbrthmed");
  985. if(befchildbrthmed != "") {
  986. model.setValue(xWardRecPath + "/befchildbrthmed", cmb_befchildbrthmed.label);
  987. }
  988. //이슬
  989. var nbabymucusyn = model.getValue(xWardRecPath + "/obgyninfoetc/obgyn/nbabymucusyn");
  990. var nbabymucusdd = model.getValue(xWardRecPath + "/obgyninfoetc/obgyn/nbabymucusdd");
  991. var nbabymucusdt = model.getValue(xWardRecPath + "/obgyninfoetc/obgyn/nbabymucusdt");
  992. str = rdo_nbabymucusyn.label;
  993. if(nbabymucusyn != "") {
  994. if( nbabymucusyn == "2") {
  995. if(nbabymucusdd != "") {
  996. str += "(" + nbabymucusdd.substr(0, 4) + "-" + nbabymucusdd.substr(4, 2) + "-" + nbabymucusdd.substr(6, 2) + " " + nbabymucusdt.substr(0, 2) + ":" + nbabymucusdt.substr(2, 2) + ")";
  997. }
  998. }
  999. model.setValue(xWardRecPath + "/obgyninfoetc/obgyn/nbabymucusyn", str);
  1000. }
  1001. //조기파수
  1002. var ruptureyn = model.getValue(xWardRecPath + "/obgyninfoetc/obgyn/ruptureyn");
  1003. var rupturedd = model.getValue(xWardRecPath + "/obgyninfoetc/obgyn/rupturedd");
  1004. var rupturedt = model.getValue(xWardRecPath + "/obgyninfoetc/obgyn/rupturedt");
  1005. str = rdo_ruptureyn.label;
  1006. if(ruptureyn != "") {
  1007. if( ruptureyn == "2") {
  1008. if(rupturedd != "") {
  1009. str += "(" + rupturedd.substr(0, 4) + "-" + rupturedd.substr(4, 2) + "-" + rupturedd.substr(6, 2) + " " + rupturedt.substr(0, 2) + ":" + rupturedt.substr(2, 2) + ")";
  1010. }
  1011. }
  1012. model.setValue(xWardRecPath + "/obgyninfoetc/obgyn/ruptureyn", str);
  1013. }
  1014. //진통
  1015. var angsiayn = model.getValue(xWardRecPath + "/obgyninfoetc/obgyn/angsiayn");
  1016. var angsiadd = model.getValue(xWardRecPath + "/obgyninfoetc/obgyn/angsiadd");
  1017. var angsiadt = model.getValue(xWardRecPath + "/obgyninfoetc/obgyn/angsiadt");
  1018. var angsiatermmin = model.getValue(xWardRecPath + "/obgyninfoetc/obgyn/angsiatermmin");
  1019. var angsiatermsec = model.getValue(xWardRecPath + "/obgyninfoetc/obgyn/angsiatermsec");
  1020. str = rdo_angsiayn.label;
  1021. if(angsiayn != "") {
  1022. if( angsiayn == "2") {
  1023. if(angsiadd != "") {
  1024. str += "(" + angsiadd.substr(0, 4) + "-" + angsiadd.substr(4, 2) + "-" + angsiadd.substr(6, 2) + " " + angsiadt.substr(0, 2) + ":" + angsiadt.substr(2, 2) + "), "
  1025. + "진통간격:" + angsiatermmin + "분마다 " + angsiatermsec + "초간" ;
  1026. }
  1027. }
  1028. model.setValue(xWardRecPath + "/obgyninfoetc/obgyn/angsiayn", str);
  1029. }
  1030. /****************************** 배우자정보 **************************************/
  1031. //배우자 혈액형
  1032. var ptnerbtype = model.getValue(xWardRecPath + "/ptnerbtype");
  1033. if(ptnerbtype != "") {
  1034. model.setValue(xWardRecPath + "/ptnerbtype", cmb_ptnerbtype.label);
  1035. }
  1036. //배우자 감염정보
  1037. var ptnerinfcinfoyn = model.getValue(xWardRecPath + "/ptnerinfcinfoyn");
  1038. var ptnerinfcinfo = model.getValue(xWardRecPath + "/ptnerinfcinfo");
  1039. var ptnerinfcinfonm = model.getValue(xWardRecPath + "/ptnerinfcinfonm");
  1040. str = rdo_ptnerinfcinfoyn.label;
  1041. arr = "";
  1042. if(ptnerinfcinfoyn != "") {
  1043. if(ptnerinfcinfoyn == "2") { //유
  1044. if(ptnerinfcinfo != "") {
  1045. for(var i = 1; i<= chk_ptnerinfcinfo.length; i++){
  1046. var ptnerinfo = isSearchString(ptnerinfcinfo, i);
  1047. if(ptnerinfo == true) {
  1048. if(arr == ""){
  1049. arr += chk_ptnerinfcinfo.item(i-1).label;
  1050. }else{
  1051. arr += ", " + chk_ptnerinfcinfo.item(i-1).label;
  1052. }
  1053. }
  1054. }
  1055. if(ptnerinfcinfonm != "") {
  1056. arr += "(" + ptnerinfcinfonm + ")";
  1057. }
  1058. str += "(" + arr + ")";
  1059. }
  1060. }
  1061. model.setValue(xWardRecPath + "/ptnerinfcinfoyn", str);
  1062. }
  1063. //배우자 직업(16.04.22_주석처리)
  1064. /*
  1065. var ptnerjobcd = model.getValue(xWardRecPath + "/ptnerjobcd");
  1066. if(ptnerjobcd != "") {
  1067. model.setValue(xWardRecPath + "/ptnerjobcd", cmb_ptnerjobcd.label);
  1068. }
  1069. */
  1070. // 배우자 직업 수정(기타 추가)_ 16.04.22_ AYS
  1071. var ptnerjobcd = model.getValue(xWardRecPath + "/ptnerjobcd");
  1072. if(ptnerjobcd != "") {
  1073. if(ptnerjobcd == "10") {
  1074. if(model.getValue(xWardRecPath + "/ptnerjobnm") == "") {
  1075. model.setValue(xWardRecPath + "/ptnerjobcd", cmb_ptnerjobcd.label);
  1076. } else {
  1077. model.setValue(xWardRecPath + "/ptnerjobcd", model.getValue(xWardRecPath + "/ptnerjobnm"));
  1078. }
  1079. } else {
  1080. model.setValue(xWardRecPath + "/ptnerjobcd", cmb_ptnerjobcd.label);
  1081. }
  1082. }
  1083. /****************************** 입원관련정보 **************************************/
  1084. //임신중약물복용
  1085. var drugintoxicyn = model.getValue(xWardRecPath + "/inrelainfo/inrela/drugintoxicyn");
  1086. if(drugintoxicyn != "") {
  1087. model.setValue(xWardRecPath + "/inrelainfo/inrela/drugintoxicyn", rdo_drugintoxicyn.label);
  1088. }
  1089. //최종음식물섭취
  1090. var lastfoodintkdd = model.getValue(xWardRecPath + "/inrelainfo/inrela/lastfoodintkdd");
  1091. var lastfoodintkdt = model.getValue(xWardRecPath + "/inrelainfo/inrela/lastfoodintkdt");
  1092. var str = "";
  1093. if(lastfoodintkdd != "") {
  1094. if(lastfoodintkdt != "") {
  1095. str = lastfoodintkdd.substr(0, 4) + "-" + lastfoodintkdd.substr(4, 2) + "-" + lastfoodintkdd.substr(6, 2) + " " + lastfoodintkdt.substr(0, 2) + ":" + lastfoodintkdt.substr(2, 2);
  1096. }else{
  1097. str = lastfoodintkdd.substr(0, 4) + "-" + lastfoodintkdd.substr(4, 2) + "-" + lastfoodintkdd.substr(6, 2);
  1098. }
  1099. model.setValue(xWardRecPath + "/inrelainfo/inrela/lastfoodintkdd", str);
  1100. }
  1101. //태아심음
  1102. var ftalhatyn = model.getValue(xWardRecPath + "/inrelainfo/inrela/ftalhatyn");
  1103. var ftalhatgrde = model.getValue(xWardRecPath + "/inrelainfo/inrela/ftalhatgrde");
  1104. str = rdo_ftalhatyn.label;
  1105. if(ftalhatyn != "") {
  1106. if( ftalhatyn == "2") {
  1107. if(ftalhatgrde != "") {
  1108. str += "(" + ftalhatgrde + " (bpm))";
  1109. }
  1110. }
  1111. model.setValue(xWardRecPath + "/inrelainfo/inrela/ftalhatyn", str);
  1112. }
  1113. //부종
  1114. var edemayn = model.getValue(xWardRecPath + "/inrelainfo/inrela/edemayn");
  1115. var edemakind = model.getValue(xWardRecPath + "/inrelainfo/inrela/edemakind");
  1116. str = rdo_edemayn.label;
  1117. if(edemayn != "") {
  1118. if( edemayn == "2") {
  1119. if(edemakind != "") {
  1120. str += "(" + cmb_edemakind.label + ")";
  1121. }
  1122. }
  1123. model.setValue(xWardRecPath + "/inrelainfo/inrela/edemayn", str);
  1124. }
  1125. //뇨단백
  1126. var urineprotyn = model.getValue(xWardRecPath + "/inrelainfo/inrela/urineprotyn");
  1127. var urineprotkind = model.getValue(xWardRecPath + "/inrelainfo/inrela/urineprotkind");
  1128. str = rdo_urineprotyn.label;
  1129. if(urineprotyn != "") {
  1130. if( urineprotyn == "2") {
  1131. if(urineprotkind != "") {
  1132. str += "(" + cmb_urineprotkind.label + ")";
  1133. }
  1134. }
  1135. model.setValue(xWardRecPath + "/inrelainfo/inrela/urineprotyn", str);
  1136. }
  1137. //임신중합병증
  1138. var prgcmplyn = model.getValue(xWardRecPath + "/inrelainfo/inrela/prgcmplyn");
  1139. var prgcmplcnts = model.getValue(xWardRecPath + "/inrelainfo/inrela/prgcmplcnts");
  1140. str = rdo_prgcmplyn.label;
  1141. if(prgcmplyn != "") {
  1142. if( prgcmplyn == "2") {
  1143. if(prgcmplcnts != "") {
  1144. str += "(" + prgcmplcnts + ")";
  1145. }
  1146. }
  1147. model.setValue(xWardRecPath + "/inrelainfo/inrela/prgcmplyn", str);
  1148. }
  1149. //신체증상
  1150. var bodysympyn = model.getValue(xWardRecPath + "/inrelainfo/inrela/bodysympyn");
  1151. var bodysympcnts = model.getValue(xWardRecPath + "/inrelainfo/inrela/bodysympcnts");
  1152. str = rdo_bodysympyn.label;
  1153. if(bodysympyn != "") {
  1154. if( bodysympyn == "2") {
  1155. if(bodysympcnts != "") {
  1156. str += "(" + bodysympcnts + ")";
  1157. }
  1158. }
  1159. model.setValue(xWardRecPath + "/inrelainfo/inrela/bodysympyn", str);
  1160. }
  1161. /****************************** 기타 **************************************/
  1162. //수유계획
  1163. var lctplan = model.getValue(xWardRecPath + "/etcinfo/etc/lctplan");
  1164. if(lctplan !="") {
  1165. model.setValue(xWardRecPath + "/etcinfo/etc/lctplan", cmb_lctplan.label);
  1166. }
  1167. //산후조리계획
  1168. var postpatrecplankind = model.getValue(xWardRecPath + "/etcinfo/etc/postpatrecplankind");
  1169. var postpatrecplanetc = model.getValue(xWardRecPath + "/etcinfo/etc/postpatrecplanetc");
  1170. str = rdo_postpatrecplankind.label;
  1171. if(postpatrecplankind != "") {
  1172. if( postpatrecplankind == "4") {
  1173. if(postpatrecplanetc != "") {
  1174. str += "(" + postpatrecplanetc + ")";
  1175. }
  1176. }
  1177. model.setValue(xWardRecPath + "/etcinfo/etc/postpatrecplankind", str);
  1178. }
  1179. //분만교육
  1180. var partrtneduc = model.getValue(xWardRecPath + "/etcinfo/etc/partrtneduc");
  1181. var partrtneducetc = model.getValue(xWardRecPath + "/etcinfo/etc/partrtneducetc");
  1182. var arr = chk_partrtneduc.label.split(" ");
  1183. if(partrtneduc != "") {
  1184. var partrtn = isSearchString(partrtneduc, "5");
  1185. if(partrtn == true) {
  1186. if(partrtneducetc != "") {
  1187. arr += "(" + partrtneducetc + ")";
  1188. }
  1189. }
  1190. model.setValue(xWardRecPath + "/etcinfo/etc/partrtneduc", arr);
  1191. }
  1192. /****************************** 병력 **************************************/
  1193. //과거병력
  1194. var rows = grd_pasthist.rows;
  1195. var histspec;
  1196. for(var i = 1 ; i < rows; i++) {
  1197. histspec = model.getValue(xHistPath + "/pasthistinfo/pasthist/pasthist[" + i + "]/histspec");
  1198. if(histspec != "") {
  1199. model.setValue(xHistPath + "/pasthistinfo/pasthist/pasthist[" + i + "]/histspec", grd_pasthist.labelMatrix(i, grd_pasthist.colRef("histspec")));
  1200. }
  1201. }
  1202. //가족병력
  1203. var famyrel;
  1204. var existyn;
  1205. rows = grd_famyhist.rows;
  1206. for(var i = 1 ; i < rows; i++) {
  1207. famyrel = model.getValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/famyrel");
  1208. existyn = model.getValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/existyn");
  1209. histspec = model.getValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/histspec");
  1210. if(famyrel != "") {
  1211. model.setValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/famyrel", grd_famyhist.labelMatrix(i, grd_famyhist.colRef("famyrel")));
  1212. }
  1213. if(existyn != "") {
  1214. model.setValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/existyn", grd_famyhist.labelMatrix(i, grd_famyhist.colRef("existyn")));
  1215. }
  1216. if(histspec != "") {
  1217. model.setValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/histspec", grd_famyhist.labelMatrix(i, grd_famyhist.colRef("histspec")));
  1218. }
  1219. }
  1220. //allergy구분
  1221. rows = grd_allghist.rows;
  1222. var flag;
  1223. for(var i = 1 ; i < rows; i++) {
  1224. flag = model.getValue(xHistPath + "/allghistinfo/allghist/allghist[" + i + "]/flag");
  1225. if(flag != "") {
  1226. model.setValue(xHistPath + "/allghistinfo/allghist/allghist[" + i + "]/flag", grd_allghist.labelMatrix(i, grd_allghist.colRef("flag")));
  1227. }
  1228. }
  1229. /****************************** 신체사정 **************************************/
  1230. //기형상태
  1231. var mfmdstatLen = grd_mfmdstat.rows;
  1232. var part;
  1233. var direc;
  1234. if(mfmdstatLen > 0) {
  1235. for(var i = 0; i < mfmdstatLen; i++) {
  1236. part = model.getValue(xWardRecPath + "/mfmdstatinfo/mfmdstat/mfmdstat[" + i + "]/part");
  1237. direc = model.getValue(xWardRecPath + "/mfmdstatinfo/mfmdstat/mfmdstat[" + i + "]/direc");
  1238. if(part != "" ) {
  1239. model.setValue(xWardRecPath + "/mfmdstatinfo/mfmdstat/mfmdstat[" + i + "]/part", grd_mfmdstat.labelMatrix(i, grd_mfmdstat.colRef("part")));
  1240. }
  1241. if(direc != "") {
  1242. model.setValue(xWardRecPath + "/mfmdstatinfo/mfmdstat/mfmdstat[" + i + "]/direc", grd_mfmdstat.labelMatrix(i, grd_mfmdstat.colRef("direc")));
  1243. }
  1244. }
  1245. }
  1246. /****************************** 식욕 및 체중변화 **************************************/
  1247. //동통에서 통증 : 무(default)/유 선택으로 변경 20100122 김홍점
  1248. //20120625_김병국(통증사정 정보 추가) :XSLT보이기용.
  1249. var shpaininfoinclyn = model.getValue(xWardRecPath + "/shpaininfo/shpain/shpaininfoinclyn");
  1250. var shpaininfoflag = cmb_shpaininfoflag.label;
  1251. var shpaininfo = "";
  1252. if(shpaininfoinclyn != "") {
  1253. shpaininfo = rdo_shpaininfoinclyn.label;
  1254. if(shpaininfoinclyn == "1") {
  1255. if(shpaininfoflag != "") {
  1256. shpaininfo += "(" + shpaininfoflag + ")";
  1257. }
  1258. }
  1259. model.makeValue(xWardRecPath + "/shpaininfo/shpain/shpaininfoinclyn", shpaininfo);
  1260. model.makeValue(xWardRecPath + "/shpaininfo/shpain/shpaininfochgdd", "20100125");//20100125 일부터 동통에서 통증으로 변경됨.
  1261. }
  1262. if(shpaininfoinclyn != "") {
  1263. model.makeValue(xWardRecPath + "/shpaininfo/shpain/shpaininfoinclyn", rdo_shpaininfoinclyn.label);
  1264. model.makeValue(xWardRecPath + "/shpaininfo/shpain/shpaininfochgdd", "20100125");//20100125 일부터 동통에서 통증으로 변경됨.
  1265. }
  1266. //식욕변화
  1267. var apptchngyn = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptchngyn");
  1268. str = rdo_apttchngyn.label;
  1269. if(apptchngyn != "") {
  1270. if(apptchngyn == "2") {
  1271. if(model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptaddyn") != "") {
  1272. str += "(" + rdo_apttchngflag.label+ ")";
  1273. }
  1274. }
  1275. model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptchngyn", str);
  1276. }
  1277. //식욕상태
  1278. var apptstatflag = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptstatflag");
  1279. if(apptstatflag != "") {
  1280. model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptstatflag", rdo_apttstatflag.label);
  1281. }
  1282. //체중변화
  1283. var bdwtchngyn = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchngyn");
  1284. var incdecflag = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/incdecflag");
  1285. var bdwtchnggrde = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchnggrde");
  1286. var bdwtchngterm = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchngterm");
  1287. var bdwtchngtermflag = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchngtermflag");
  1288. str = rdo_bdwtchngyn.label;
  1289. if(bdwtchngyn != "") {
  1290. if(bdwtchngyn == "2") {
  1291. if( !isNull(incdecflag) && bdwtchnggrde != "" && bdwtchngtermflag != "") {
  1292. str += "(" + rdo_incdecflag.label+ ": " + bdwtchnggrde + "kg " + "/ 기간 : " + rdo_bdwtchngtermflag.label + " (" + bdwtchngterm + ") )";
  1293. } else if(bdwtchnggrde != "" && bdwtchngtermflag == "") {
  1294. str += "(" + rdo_incdecflag.label+ ": " + bdwtchnggrde + "kg )";
  1295. } else if(bdwtchnggrde == "" && bdwtchngtermflag != "") {
  1296. str += "(" + "기간 : " + rdo_bdwtchngtermflag.label + " ( " + bdwtchngterm + ") )";
  1297. }
  1298. }
  1299. model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchngyn", str);
  1300. }
  1301. //편식
  1302. var onemealyn = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/onemealyn");
  1303. if(apptstatflag != "") {
  1304. model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/onemealyn", rdo_onemealyn.label);
  1305. }
  1306. /****************************** 수면상태 **************************************/
  1307. //수면장애
  1308. var slepdsordyn = model.getValue(xWardRecPath + "/slepstatinfo/slepstat/slepdsordyn");
  1309. var slepdsordtm = model.getValue(xWardRecPath + "/slepstatinfo/slepstat/slepdsordtm");
  1310. str = rdo_slepdsord.label;
  1311. if(slepdsordyn != "") {
  1312. if(slepdsordyn == "2") {
  1313. if(slepdsordtm != "") {
  1314. str += "(" + slepdsordtm + "시간/일)";
  1315. }
  1316. }
  1317. model.setValue(xWardRecPath + "/slepstatinfo/slepstat/slepdsordyn", str);
  1318. }
  1319. //약물복용
  1320. var dugtmedyn = model.getValue(xWardRecPath + "/slepstatinfo/slepstat/dugtmedyn");
  1321. var dugtmeddetl = model.getValue(xWardRecPath + "/slepstatinfo/slepstat/dugtmeddetl");
  1322. str = rdo_drugtmedyn.label;
  1323. if(dugtmedyn != "") {
  1324. if(dugtmedyn == "2") {
  1325. if(dugtmeddetl != "") {
  1326. str += "(" + dugtmeddetl + ")";
  1327. }
  1328. }
  1329. model.setValue(xWardRecPath + "/slepstatinfo/slepstat/dugtmedyn", str);
  1330. }
  1331. /****************************** 의식상태 **************************************/
  1332. //지남력
  1333. var cscsstathuman = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstathuman");
  1334. var cscsstattm = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstattm");
  1335. var cscsstatplce = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstatplce");
  1336. if(cscsstathuman != "") {
  1337. model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstathuman", cmb_cscsstathuman.label);
  1338. }
  1339. if(cscsstattm != "") {
  1340. model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstattm", cmb_cscsstattm.label);
  1341. }
  1342. if(cscsstatplce != "") {
  1343. model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstatplce", cmb_cscsstatplce.label);
  1344. }
  1345. //의식상태
  1346. var cscsstat = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstat");
  1347. if(cscsstat != "") {
  1348. model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstat", cmb_cscsstat.label);
  1349. }
  1350. //의사소통
  1351. var communication = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/communication");
  1352. if( communication != "") {
  1353. model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/communication", rdo_communication.label);
  1354. }
  1355. //정서상태
  1356. var emotstat = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/emotstat");;
  1357. if(emotstat != "") {
  1358. model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/emotstat", cmb_emotstat.label);
  1359. }
  1360. /****************************** 월경 **************************************/
  1361. //월경
  1362. var mensyn = model.getValue(xWardRecPath + "/mensinfo/mens/mensyn");
  1363. if(mensyn != "") {
  1364. model.setValue(xWardRecPath + "/mensinfo/mens/mensyn", rdo_mensyn.label);
  1365. } else{
  1366. model.setValue(xWardRecPath + "/mensinfo/mens/mensyn", "사정불필요");
  1367. }
  1368. //상태
  1369. var mensstat = model.getValue(xWardRecPath + "/mensinfo/mens/mensstat");
  1370. if(mensstat != "") {
  1371. model.setValue(xWardRecPath + "/mensinfo/mens/mensstat", rdo_mensstat.label);
  1372. } else{
  1373. model.setValue(xWardRecPath + "/mensinfo/mens/mensstat", "사정불필요");
  1374. }
  1375. //월경통
  1376. var menspainyn = model.getValue(xWardRecPath + "/mensinfo/mens/menspainyn");
  1377. if(menspainyn != "") {
  1378. model.setValue(xWardRecPath + "/mensinfo/mens/menspainyn", rdo_menspainyn.label);
  1379. } else{
  1380. model.setValue(xWardRecPath + "/mensinfo/mens/menspainyn", "사정불필요");
  1381. }
  1382. //월경주기 20090820
  1383. var mensday = model.getValue(xWardRecPath + "/mensinfo/mens/mensday");
  1384. var mensweek = model.getValue(xWardRecPath + "/mensinfo/mens/mensweek");
  1385. if( (getCurrentDate() >= '20090821' ) && ( !isNull(mensday) || !isNull(mensweek) )) {
  1386. model.makeValue(xWardRecPath + "/mensinfo/mens/mensdayweek", mensday+"일 " + mensweek+"일 주기");
  1387. model.setValue(xWardRecPath + "/mensinfo/mens/mensday", "");
  1388. model.setValue(xWardRecPath + "/mensinfo/mens/mensweek", "");
  1389. } else{
  1390. model.makeValue(xWardRecPath + "/mensinfo/mens/mensdayweek", "사정불필요");
  1391. }
  1392. // 양
  1393. var mensvol = model.getValue(xWardRecPath + "/mensinfo/mens/mensvol");
  1394. if (mensvol == "" || mensvol == null){
  1395. model.setValue(xWardRecPath + "/mensinfo/mens/mensvol", "사정불필요");
  1396. }
  1397. // 초경
  1398. var fstmensage = model.getValue(xWardRecPath + "/mensinfo/mens/fstmensage");
  1399. if (fstmensage == "" || fstmensage == null){
  1400. model.setValue(xWardRecPath + "/mensinfo/mens/fstmensage", "사정불필요");
  1401. }
  1402. // 월경 기타
  1403. var mensetc = model.getValue(xWardRecPath + "/mensinfo/mens/mensetc");
  1404. if (mensetc == "" || mensetc == null){
  1405. model.setValue(xWardRecPath + "/mensinfo/mens/mensetc", "사정불필요");
  1406. }
  1407. /****************************** 순환기계 **************************************/
  1408. //순환장애
  1409. var cirdsordkind = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/cirdsordkind");
  1410. var arr = new Array();
  1411. arr = chk_cycdsordkind.label.split(" ");
  1412. if(cirdsordkind != "") {
  1413. model.setValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/cirdsordkind", arr);
  1414. }
  1415. //부종
  1416. var edema = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/edemakind");
  1417. var edemadetll = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/edemadetll");
  1418. str = cmb_edema.label;
  1419. if(edema != "") {
  1420. if(edema == "7") {
  1421. if(edemadetll != "") {
  1422. str = edemadetll;
  1423. }
  1424. }
  1425. model.setValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/edemakind", str);
  1426. }
  1427. //요흔
  1428. var yohnyn = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/yohnyn");
  1429. var yohn = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/yohnddetl");
  1430. str = rdo_yohnyn.label;
  1431. if(yohnyn != "") {
  1432. if(yohnyn == "2") {
  1433. if(yohn != "") {
  1434. str = yohn;
  1435. }
  1436. }
  1437. model.setValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/yohnyn", str);
  1438. }
  1439. //부착기구
  1440. var cyccateyn = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/cyccateyn");
  1441. var cyccatekind = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/cyccatekind");
  1442. var catedetl = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/catedetl");
  1443. str = rdo_cyccateyn.label;
  1444. if(cyccateyn != "") {
  1445. if(cyccateyn == "2") {
  1446. if(cyccatekind != "") {
  1447. if(cyccatekind == "3") {
  1448. if(catedetl != "") {
  1449. str += "(" + catedetl + ")";
  1450. }
  1451. } else {
  1452. str += "(" + cmb_cyccatekind.label + ")";
  1453. }
  1454. }
  1455. }
  1456. model.setValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/cyccateyn", str);
  1457. }
  1458. // 15.06.18 - 추가
  1459. /****************************** 비뇨기계 **************************************/
  1460. // 비뇨기계 부착기구
  1461. var urinecateyn = model.getValue(xWardRecPath + "/uriorgninfo/uriorgn/urinecateyn");
  1462. if(urinecateyn != "") {
  1463. model.setValue(xWardRecPath + "/uriorgninfo/uriorgn/urinecateyn", rdo_urinecateyn.label);
  1464. }
  1465. // 비뇨기계 소변양(회/일)
  1466. var urinevoldaytime = model.getValue(xWardRecPath + "/uriorgninfo/uriorgn/urinevoldaytime");
  1467. if(urinevoldaytime != "") {
  1468. model.setValue(xWardRecPath + "/uriorgninfo/uriorgn/urinevoldaytime", cmb_urinevoldaytime.label);
  1469. }
  1470. // 15.06.18 - 추가
  1471. /****************************** 대변 **************************************/
  1472. //대변색깔
  1473. var stoolcolor = model.getValue(xWardRecPath + "/stoolinfo/stool/stoolcolor");
  1474. if(stoolcolor != "") {
  1475. model.setValue(xWardRecPath + "/stoolinfo/stool/stoolcolor", cmb_stoolcolor.label);
  1476. }
  1477. //대변종류
  1478. var stoolkind = model.getValue(xWardRecPath + "/stoolinfo/stool/stoolkind");
  1479. if(stoolkind != "") {
  1480. model.setValue(xWardRecPath + "/stoolinfo/stool/stoolkind", cmb_stoolkind.label);
  1481. }
  1482. //변비
  1483. var constipt = model.getValue(xWardRecPath + "/stoolinfo/stool/stoolconstipation");
  1484. if(constipt == "Y") {
  1485. model.makeValue(xWardRecPath + "/stoolinfo/stool/stoolcateconstipation", "유");
  1486. }else {
  1487. model.makeValue(xWardRecPath + "/stoolinfo/stool/stoolcateconstipation", "무");
  1488. }
  1489. //대변부착기구
  1490. var stoolcateyn = model.getValue(xWardRecPath + "/stoolinfo/stool/stoolcateyn");
  1491. var stoolcatekind = model.getValue(xWardRecPath + "/stoolinfo/stool/stoolcatekind");
  1492. str = rdo_stoolcateyn.label;
  1493. if(stoolcateyn != "") {
  1494. if(stoolcatekind != "") {
  1495. str += "(" + stoolcatekind + ")";
  1496. }
  1497. model.setValue(xWardRecPath + "/stoolinfo/stool/stoolcateyn", str);
  1498. }
  1499. /****************************** 기타 활동 및 장애 **************************************/
  1500. //활동
  1501. var actfreeyn = model.getValue(xWardRecPath + "/actinfo/act/actfreeyn");
  1502. if(actfreeyn != "") {
  1503. model.setValue(xWardRecPath + "/actinfo/act/actfreeyn", rdo_actfreeyn.label);
  1504. }
  1505. //보조기구
  1506. var supptoolkind = model.getValue(xWardRecPath + "/actinfo/act/supptoolkind");
  1507. arr = chk_supptoolkind.label.split('▦');
  1508. if(supptoolkind != "") {
  1509. model.setValue(xWardRecPath + "/actinfo/act/supptoolkind", arr);
  1510. }
  1511. //신경계 동공
  1512. var pupilsymmetryyn = model.getValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilsymmetryyn");
  1513. if(pupilsymmetryyn != "") {
  1514. model.setValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilsymmetryyn", rdo_pupilsymmetryyn.label);
  1515. }
  1516. //좌
  1517. var pupilleft = model.getValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilleft");
  1518. if(pupilleft != "") {
  1519. model.setValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilleft", cmb_pupilleft.label);
  1520. }
  1521. //좌 빛반사
  1522. var pupilleftrflx = model.getValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilleftrflx");
  1523. if(pupilleftrflx != "") {
  1524. model.setValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilleftrflx", cmb_pupilleftrflx.label);
  1525. }
  1526. //우
  1527. var pupilrght = model.getValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilrght");
  1528. if(pupilrght != "") {
  1529. model.setValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilrght", cmb_pupilrght.label);
  1530. }
  1531. //우 빛반사
  1532. var pupilrghtrflx = model.getValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilrghtrflx");
  1533. if(pupilrghtrflx != "") {
  1534. model.setValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilrghtrflx", cmb_pupilrghtrflx.label);
  1535. }
  1536. //시력장애
  1537. var visdsordyn = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordyn");
  1538. var visdsordpos = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordpos");
  1539. var visdsordleft = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordleft");
  1540. var visdsordrght = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordrght");
  1541. var visdsordkind = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordkind");
  1542. var visdsordblind = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordblind");
  1543. str = rdo_visdsordyn.label;
  1544. if(visdsordyn != "") {
  1545. if(visdsordyn == "2") {
  1546. if(visdsordpos != "") {
  1547. if(visdsordleft != "" && visdsordrght != "") {
  1548. str += "(좌: " + visdsordleft + " 우: " + visdsordrght + ")";
  1549. } else if(visdsordpos == "1") {
  1550. str += "(좌: " + visdsordleft + ")";
  1551. } else if(visdsordpos == "2") {
  1552. str += "(우: " + visdsordrght + ")";
  1553. }
  1554. }
  1555. if(visdsordkind != "") {
  1556. arr = chk_visdsordkind.label.split(" ");
  1557. str += " (" + arr + ")";
  1558. }
  1559. if(visdsordblind != "") {
  1560. arr = chk_blindnesspos.label.split(" ");
  1561. str += " (" + arr + ")";
  1562. }
  1563. }
  1564. model.setValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordyn", str);
  1565. }
  1566. //청력장애
  1567. var heardsordyn = model.getValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordyn");
  1568. var heardsordpos = model.getValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordpos");
  1569. var heardsordleft = model.getValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordleft");
  1570. var heardsordrght = model.getValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordrght");
  1571. var heardsordkind = model.getValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordkind");
  1572. str = rdo_heardsordyn.label;
  1573. if(heardsordyn != "") {
  1574. if(heardsordyn == "2") {
  1575. if(heardsordpos != "") {
  1576. if(heardsordpos == "1 2" || heardsordpos == "2 1") {
  1577. if(heardsordleft != "" && heardsordrght != "") {
  1578. str += "(좌: " + heardsordleft + " 우: " + heardsordrght + ")";
  1579. } else if(heardsordleft != "" && heardsordrght == "") {
  1580. str += "(좌: " + heardsordleft + ")";
  1581. } else if(heardsordleft == "" && heardsordrght != "") {
  1582. str += "(우: " + heardsordrght + ")";
  1583. }
  1584. } else if(heardsordpos == "1") {
  1585. if(heardsordleft != "") {
  1586. str += "(좌: " + heardsordleft + ")";
  1587. }
  1588. } else if(heardsordpos == "2") {
  1589. if(heardsordrght != "") {
  1590. str += "(우: " + heardsordrght + ")";
  1591. }
  1592. }
  1593. }
  1594. if(heardsordkind != "") {
  1595. arr = chk_heardsordkind.label.split(" ");
  1596. str += ", " + arr;
  1597. }
  1598. }
  1599. model.setValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordyn", str);
  1600. }
  1601. //치아상태
  1602. var tootstatkind = model.getValue(xWardRecPath + "/tootstatinfo/tootstat/tootstatkind");
  1603. if(tootstatkind != "") {
  1604. arr = chk_tootstatkind.label.split(" ");
  1605. model.setValue(xWardRecPath + "/tootstatinfo/tootstat/tootstatkind", arr);
  1606. }
  1607. // 신생아 사진 게재 여부
  1608. var babyphotoyn = model.getValue(xWardRecPath + "/babyphotoyn");
  1609. if(babyphotoyn != "") {
  1610. model.setValue(xWardRecPath + "/babyphotoyn", rdo_babyphotoyn.label);
  1611. }
  1612. // 산모입원동기
  1613. var ogirinmotive = model.getValue(xWardRecPath + "/ogirinmotive");
  1614. if(ogirinmotive != "") {
  1615. model.setValue(xWardRecPath + "/ogirinmotive", cmb_ogirinmotive.label);
  1616. }
  1617. }
  1618. function fMake_SignData() {
  1619. //JCI 교육요구도 추가 (20100113 김홍점)
  1620. var instUseYN = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='172']/cdid");//교육요구도 추가 20091216 김홍점
  1621. if ( instUseYN =="Y" ){
  1622. Sign.addnode("/root/temp/signdata/edurecinfo");
  1623. }
  1624. Sign.addnode("/root/main/wardrecinfo");
  1625. Sign.addnode("/root/main/histinfo");
  1626. //가족사항 정보 생성(그리드형식)
  1627. model.removeNodeset("/root/main/famyfactinfo");
  1628. model.makeNode("/root/main/famyfactinfo");
  1629. for(var i=1; i <= getNodesetCount("/root/main/famyfact"); i++) {
  1630. if(model.getValue("/root/main/famyfact["+ i +"]/rela") != ""){
  1631. model.duplicate("/root/main/famyfactinfo", "/root/main/famyfact["+ i +"]");
  1632. }
  1633. }
  1634. Sign.addnode("/root/main/famyfactinfo");
  1635. fSetSignData();
  1636. }
  1637. //이전기록일시 변경
  1638. function fChgRecHistInfo(){
  1639. var recpkspec = (model.getValue("/root/main/wardrecinfo/bfrecddtm")).split("|");
  1640. var bfrecpid = recpkspec[0];
  1641. var bfrecindd = recpkspec[1];
  1642. var bfreccretno = recpkspec[2];
  1643. var bfrecflag = recpkspec[3];
  1644. var bfrecinstcd = recpkspec[4];
  1645. model.removeNodeset("/root/send/req");
  1646. model.makeNode("/root/send/req");
  1647. model.makeValue("/root/send/req/pid", bfrecpid);
  1648. model.makeValue("/root/send/req/indd", bfrecindd);
  1649. model.makeValue("/root/send/req/instcd", bfrecinstcd);
  1650. model.makeValue("/root/send/req/recflag", bfrecflag);
  1651. //model.makeValue("/root/send/req/docucode", "0000002504");
  1652. //model.makeValue("/root/send/req/deptcd", orddeptcd);
  1653. //산모간호정보조사지
  1654. submit("TRMNN00302", false);
  1655. setParameter("SPMMR04711_shape", fGetXmlToStr("/root/main/wardrecinfo/genogrmnm/XMD"));
  1656. //임신주수 계산
  1657. ipt_edc.dispatch("xforms-value-changed");
  1658. fNotExistsNodeCreate();
  1659. //입원일자 셋팅(응급실 경유 환자인 경우 입실체크가 되는 시점(즉 응급실 퇴실시점)의 일자가 병동 입원일자로 조회됨)_20090303_SMY
  1660. model.setValue("/root/main/wardrecinfo/indd", model.getValue("/root/temp/cond/list/careinrmdd"));
  1661. model.refresh();
  1662. }
  1663. function fCareBodyAssBlock(){
  1664. var msgblock = "";
  1665. // 통증 유무 check가 되지 않은 경우
  1666. if ( (rdo_shpaininfoinclyn != null && isNull(model.getValue(rdo_shpaininfoinclyn.attribute("ref"))) )
  1667. ){
  1668. msgblock += " [통증]";
  1669. }
  1670. // 식욕및체중변화 식욕변화/식욕상태/체중변화의 각 항목에 기록이 되지 않은 경우
  1671. if ( (rdo_apttchngyn != null && isNull(model.getValue(rdo_apttchngyn.attribute("ref"))) )
  1672. || (rdo_apttchngyn != null && model.getValue(rdo_apttchngyn.attribute("ref")) =="2" && rdo_apttchngflag != null && isNull(model.getValue(rdo_apttchngflag.attribute("ref"))) )
  1673. || (rdo_onemealyn != null && isNull(model.getValue(rdo_onemealyn.attribute("ref"))) )
  1674. || (rdo_apttstatflag != null && isNull(model.getValue(rdo_apttstatflag.attribute("ref"))) )
  1675. || (rdo_bdwtchngyn != null && isNull(model.getValue(rdo_bdwtchngyn.attribute("ref"))) )
  1676. || (rdo_bdwtchngyn != null && model.getValue(rdo_bdwtchngyn.attribute("ref")) == "2"
  1677. && (
  1678. // rdo_incdecflag != null && isNull(model.getValue(rdo_incdecflag.attribute("ref")))
  1679. // || ipt_chnggrde != null && isNull(model.getValue(ipt_chnggrde.attribute("ref")))
  1680. (!( rdo_incdecflag != null && isNull(model.getValue(rdo_incdecflag.attribute("ref")))) && ipt_chnggrde != null && isNull(model.getValue(ipt_chnggrde.attribute("ref"))) )//체중변화증가/감소선택 했을때만 체중기록필수입력체크(소경화ITC요청)
  1681. || rdo_bdwtchngtermflag != null && isNull(model.getValue(rdo_bdwtchngtermflag.attribute("ref")))
  1682. //|| ipt_term != null && isNull(model.getValue(ipt_term.attribute("ref")))
  1683. )
  1684. )
  1685. ){
  1686. msgblock += " [식욕 및 체중변화]";
  1687. }
  1688. // 의식상태 지남력/의식상태/의사소통/정서상태의 각 항목에 기록이 되지않은 경우
  1689. if ( (cmb_cscsstathuman != null && isNull(model.getValue(cmb_cscsstathuman.attribute("ref"))) )
  1690. || (cmb_cscsstattm != null && isNull(model.getValue(cmb_cscsstattm.attribute("ref"))) )
  1691. || (cmb_cscsstatplce != null && isNull(model.getValue(cmb_cscsstatplce.attribute("ref"))) )
  1692. || (cmb_cscsstat != null && isNull(model.getValue(cmb_cscsstat.attribute("ref"))) )
  1693. || (rdo_communication != null && isNull(model.getValue(rdo_communication.attribute("ref"))) )
  1694. || (cmb_emotstat != null && isNull(model.getValue(cmb_emotstat.attribute("ref"))) )
  1695. ){
  1696. msgblock += " [의식상태]";
  1697. }
  1698. // 소화기계 해당없음 또는 행추가하여 기록하지 않은 경우
  1699. if ( (chk_digorgninfoinclyn != null && isNull(model.getValue(chk_digorgninfoinclyn.attribute("ref")))
  1700. && grd_digorgn != null && isNull(model.getValue(grd_digorgn.attribute("nodeset")+ "[1]/symp") ) && isNull(model.getValue(grd_digorgn.attribute("nodeset")+ "[1]/cate") ) )
  1701. ){
  1702. msgblock += " [소화기계]";
  1703. }
  1704. // 비뇨기계 소변횟수/소변량/소변냄새 항목에 기록하지 않은 경우
  1705. if ( (ipt_urinetims != null && isNull(model.getValue(ipt_urinetims.attribute("ref"))) && rdo_urinecateyn != null && model.getValue(rdo_urinecateyn.attribute("ref")) =="1")
  1706. || (ipt_urineday != null && isNull(model.getValue(ipt_urineday.attribute("ref"))) && rdo_urinecateyn != null && model.getValue(rdo_urinecateyn.attribute("ref")) =="1")
  1707. || (ipt_urinevol != null && isNull(model.getValue(ipt_urinevol.attribute("ref"))) )
  1708. || (cmb_urinevoldaytime != null && isNull(model.getValue(cmb_urinevoldaytime.attribute("ref"))) )
  1709. || (ipt_urinesmell != null && isNull(model.getValue(ipt_urinesmell.attribute("ref"))) )
  1710. || (rdo_urinecateyn != null && isNull(model.getValue(rdo_urinecateyn.attribute("ref"))) )
  1711. ){
  1712. msgblock += " [비뇨기계]";
  1713. }
  1714. // 대변 대변횟수/마지막대변일/대변색깔/대변종류 항목에 기록하지 않은 경우
  1715. if ( (ipt_stooltims != null && isNull(model.getValue(ipt_stooltims.attribute("ref"))) && rdo_stoolcateyn != null && model.getValue(rdo_stoolcateyn.attribute("ref")) =="1")
  1716. || (ipt_stoolday != null && isNull(model.getValue(ipt_stoolday.attribute("ref"))) && rdo_stoolcateyn != null && model.getValue(rdo_stoolcateyn.attribute("ref")) =="1")
  1717. || (ipt_laststoolday != null && isNull(model.getValue(ipt_laststoolday.attribute("ref"))) )
  1718. || (cmb_stoolcolor != null && isNull(model.getValue(cmb_stoolcolor.attribute("ref"))) )
  1719. || (cmb_stoolkind != null && isNull(model.getValue(cmb_stoolkind.attribute("ref"))) )
  1720. || (rdo_stoolcateyn != null && isNull(model.getValue(rdo_stoolcateyn.attribute("ref"))) )
  1721. ){
  1722. msgblock += " [대변]";
  1723. }
  1724. // 활동 활동 항목에 기록하지 않은 경우
  1725. if ( (rdo_actfreeyn != null && isNull(model.getValue(rdo_actfreeyn.attribute("ref"))) )
  1726. ){
  1727. msgblock += " [활동]";
  1728. }
  1729. // 신경계 해당없음 또는 동공 항목 중 대칭 또는 비대칭을 기록하지 않은 경우
  1730. if ( (chk_nvesysinfoinclyn != null && isNull(model.getValue(chk_nvesysinfoinclyn.attribute("ref"))) )
  1731. && (rdo_pupilsymmetryyn != null && isNull(model.getValue(rdo_pupilsymmetryyn.attribute("ref"))) )
  1732. ){
  1733. msgblock += " [신경계]";
  1734. }
  1735. // 시력장애 시력장애 항목 중 무/유 기록하지 않은 경우
  1736. if ( (rdo_visdsordyn != null && isNull(model.getValue(rdo_visdsordyn.attribute("ref"))) )
  1737. ){
  1738. msgblock += " [시력장애]";
  1739. }
  1740. // 청력장애 청력장애 항목 중 무/유 기록하지 않은 경우
  1741. if ( (rdo_heardsordyn != null && isNull(model.getValue(rdo_heardsordyn.attribute("ref"))) )
  1742. ){
  1743. msgblock += " [청력장애]";
  1744. }
  1745. // 치아상태 치아상태에 check가 되지 않은 경우
  1746. if ( (chk_tootstatkind != null && isNull(model.getValue(chk_tootstatkind.attribute("ref")).getTrim()) )
  1747. ){
  1748. msgblock += " [치아상태]";
  1749. }
  1750. return msgblock;
  1751. }
  1752. ]]>
  1753. </script>
  1754. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  1755. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  1756. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  1757. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  1758. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  1759. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  1760. <script type="javascript" src="../../../emr/formmngtweb/js/MRF03800.js"/>
  1761. <script type="javascript" src="../../../emr/carecomweb/js/ENRSignEngine.js"/>
  1762. <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/codeinfo/codelist"/>
  1763. <submission id="TRMNN00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/paminfo"/>
  1764. <submission id="TRMNN00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main"/>
  1765. <submission id="TRMNN00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/init/newpat"/>
  1766. <submission id="TRMNN00304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/cominfo"/>
  1767. <submission id="TXMNN00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/wardrecinfo" resultref="/root/hidden/rsltinfo"/>
  1768. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  1769. <submission id="TRMNZ00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/enrcarecomrecinfo"/>
  1770. </model>
  1771. </xhtml:head>
  1772. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  1773. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  1774. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:15px; ">간호초기평가(산모)</caption>
  1775. </group>
  1776. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  1777. <group id="grp_patinfo" scroll="auto" style="left:210px; top:50px; width:640px; height:20px; ">
  1778. <caption id="caption10" ref="/root/main/wardrecinfo/pid" style="left:534px; top:0px; width:96px; height:20px; font-family:돋움; "/>
  1779. <caption id="caption1" ref="/root/main/wardrecinfo/room" style="left:53px; top:0px; width:52px; height:20px; font-family:돋움; "/>
  1780. <caption id="caption2" ref="/root/main/wardrecinfo/patnm" style="left:180px; top:0px; width:60px; height:20px; font-family:돋움; "/>
  1781. <caption id="caption3" class="search_name" style="left:112px; top:1px; width:68px; height:17px; ">환자명:</caption>
  1782. <caption id="caption4" ref="/root/main/wardrecinfo/sex" style="left:308px; top:0px; width:32px; height:20px; font-family:돋움; "/>
  1783. <caption id="caption68" class="search_name" style="left:0px; top:1px; width:55px; height:17px; ">병실:</caption>
  1784. <caption id="caption5" class="search_name" style="left:250px; top:1px; width:58px; height:17px; ">성별:</caption>
  1785. <caption id="caption7" ref="/root/main/wardrecinfo/age" style="left:408px; top:0px; width:37px; height:20px; font-family:돋움; "/>
  1786. <caption id="caption8" class="search_name" style="left:350px; top:1px; width:58px; height:17px; ">나이:</caption>
  1787. <caption id="caption9" class="search_name" style="left:450px; top:1px; width:81px; height:17px; ">등록번호:</caption>
  1788. </group>
  1789. <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; "/>
  1790. <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; "/>
  1791. <button id="btn_gnrlinfo" class="btn_sw" group="tab" selected="true" style="left:0px; top:49px; width:100px; height:22px; ">
  1792. <caption>일반정보</caption>
  1793. <toggle case="case1" ev:event="onclick"/>
  1794. </button>
  1795. <button id="btn_bodyasses" class="btn_sw" group="tab" style="left:100px; top:49px; width:100px; height:22px; ">
  1796. <caption>신체사정</caption>
  1797. <toggle case="case2" ev:event="onclick"/>
  1798. </button>
  1799. <button id="btn_edurec" class="btn_sw" visibility="hidden" group="tab" style="left:200px; top:49px; width:100px; height:22px; ">
  1800. <caption>교육요구도</caption>
  1801. <toggle case="case_edurec" ev:event="onclick"/>
  1802. </button>
  1803. <switch id="switch1" style="left:0px; top:70px; width:1194px; height:670px; border-color:#c7a3cf; border-style:solid; ">
  1804. <case id="case1" selected="true" style="left:0px; top:0px; width:1194px; height:674px; ">
  1805. <import id="import1" instancetype="merge" src="..\..\..\emr\wardcareweb\xrw\SMMNW07900_산과정보.xrw" style="left:0px; top:0px; width:1194px; height:670px; "/>
  1806. </case>
  1807. <case id="case2" style="left:0px; top:0px; width:1194px; height:673px; border-color:transparent; ">
  1808. <import id="import4" instancetype="merge" src="..\..\..\emr\wardcareweb\xrw\SMMNW07700_신체사정.xrw" style="left:0px; top:0px; width:1194px; height:670px; "/>
  1809. </case>
  1810. <case id="case_edurec" style="left:0px; top:0px; width:1194px; height:673px; border-color:transparent; ">
  1811. <iviewer id="ivw_edurec" style="left:0px; top:0px; width:1194px; height:670px; "/>
  1812. </case>
  1813. </switch>
  1814. <line id="line64" class="line_3" style="x1:0px; y1:41px; x2:1194px; y2:41px; "/>
  1815. <line id="line13" class="line_1" style="x1:0px; y1:13px; x2:1194px; y2:13px; "/>
  1816. <button id="btn_save" class="btn2_letter4" style="left:1062px; top:49px; width:64px; height:19px; ">
  1817. <caption>임시저장</caption>
  1818. <script type="javascript" ev:event="DOMActivate">
  1819. <![CDATA[
  1820. fPatgnrlInfo("T");
  1821. if(submit("TXMNN00301") == true) {
  1822. messageBox("저장이 ", "I001");
  1823. model.makeValue("/root/hidden/paminfo/paminfo/exeflag", "U");
  1824. } else {
  1825. messageBox("저장이 실패하였습니다.", "I001");
  1826. }
  1827. ]]>
  1828. </script>
  1829. </button>
  1830. <button id="button2" class="btn5_letter4" style="left:1129px; top:49px; width:64px; height:19px; ">
  1831. <caption>인증저장</caption>
  1832. <script type="javascript" ev:event="DOMActivate">
  1833. <![CDATA[
  1834. var msgstr = "";
  1835. var instUseYN = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='172']/cdid");//교육요구도 추가 20091216 김홍점
  1836. //가족사항 : 관계 필수 입력
  1837. for(var i = 1 ; i < grd_famyfact.rows; i++) {
  1838. var rela = model.getValue("/root/main/famyfact[" + i + "]/rela");
  1839. if(rela == "") {
  1840. var msg1 = "[가족사항 - 관계]";
  1841. msgstr += msg1;
  1842. break;
  1843. }
  1844. }
  1845. //필수입력사항 blocking
  1846. if(model.getValue("/root/main/wardrecinfo/spo2") == "" && model.getValue("/root/main/wardrecinfo/spo2inspyn") != "Y"){
  1847. var msg2 = "[SpO2]";
  1848. if(msgstr == ""){
  1849. msgstr += msg2;
  1850. }else{
  1851. msgstr += ", " + msg2;
  1852. }
  1853. }
  1854. // '16.04.18 - 발병일자 필수 입력
  1855. if(model.getValue("/root/main/wardrecinfo/inmotiveinfo/inmotive/attackdd") == ""){
  1856. var msg27 = "[발병일자]";
  1857. if(msgstr == ""){
  1858. msgstr += msg27;
  1859. }else{
  1860. msgstr += ", " + msg27;
  1861. }
  1862. }
  1863. if(model.getValue("/root/main/wardrecinfo/inmotiveinfo/inmotive/attackdt") == ""){
  1864. var msg28 = "[발병시간]";
  1865. if(msgstr == ""){
  1866. msgstr += msg28;
  1867. }else{
  1868. msgstr += ", " + msg28;
  1869. }
  1870. }
  1871. // '16.04.18 - 발병일자 필수 입력
  1872. if(model.getValue("/root/main/wardrecinfo/infooffer") == ""){
  1873. var msg9 = "[정보제공자]";
  1874. if(msgstr == ""){
  1875. msgstr += msg9;
  1876. }else{
  1877. msgstr += ", " + msg9;
  1878. }
  1879. }
  1880. if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/smokinfoyn") == ""){
  1881. var msg3 = "[흡연정보]";
  1882. if(msgstr == ""){
  1883. msgstr += msg3;
  1884. }else{
  1885. msgstr += ", " + msg3;
  1886. }
  1887. }
  1888. if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/smokinfoyn") == "2"){
  1889. if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/bfsmokinfoyn") == ""){
  1890. var msg24 = "[입원전1개월이내 흡연여부]";
  1891. if(msgstr == ""){
  1892. msgstr += msg24
  1893. }else{
  1894. msgstr += ", " + msg24;
  1895. }
  1896. }
  1897. }
  1898. if(model.getValue("/root/main/wardrecinfo/gustoinfo/gusto/smokinfo/nosmokcnstyn") == ""){
  1899. var msg4 = "[금연상담여부]";
  1900. if(msgstr == ""){
  1901. msgstr += msg4;
  1902. }else{
  1903. msgstr += ", " + msg4;
  1904. }
  1905. }
  1906. if(model.getValue("/root/main/wardrecinfo/rectmedistatinfo/rectmedistat/antibiodrugyn") == ""){
  1907. var msg5 = "[병원도착전 24시간내 항생제 투약여부]";
  1908. if(msgstr == ""){
  1909. msgstr += msg5;
  1910. }else{
  1911. msgstr += ", " + msg5;
  1912. }
  1913. }
  1914. //20090626_SMY추가
  1915. if(model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid = '077' and supcdid = '03' and cdid = '"+ getUserInfo("dutplceinstcd") +"']/cdid")){ //supcdid='03' : 부천성가병원
  1916. if(model.getValue("/root/main/wardrecinfo/bdht") == "" && model.getValue("/root/main/wardrecinfo/bdhtinspyn") != "Y"){
  1917. var msg6 = "[신장]";
  1918. if(msgstr == ""){
  1919. msgstr += msg6;
  1920. }else{
  1921. msgstr += ", " + msg6;
  1922. }
  1923. }
  1924. if(model.getValue("/root/main/wardrecinfo/bdwtinspyn") != "Y"){
  1925. if(model.getValue("/root/main/wardrecinfo/prgbfbdwt") == ""){
  1926. var msg7 = "[임신전 체중]";
  1927. if(msgstr == ""){
  1928. msgstr += msg7;
  1929. }else{
  1930. msgstr += ", " + msg7;
  1931. }
  1932. }
  1933. if(model.getValue("/root/main/wardrecinfo/inbdwt") == ""){
  1934. var msg8 = "[입원시 체중]";
  1935. if(msgstr == ""){
  1936. msgstr += msg8;
  1937. }else{
  1938. msgstr += ", " + msg8;
  1939. }
  1940. }
  1941. }
  1942. }
  1943. //------------(20110121) 경북대
  1944. if(model.getValue("/root/main/wardrecinfo/nrs1cd") == ""){
  1945. var msg8 = "[영양상태지표]";
  1946. if(msgstr == ""){
  1947. msgstr += msg8;
  1948. }else{
  1949. msgstr += ", " + msg8;
  1950. }
  1951. }
  1952. if(model.getValue("/root/main/wardrecinfo/nrs21cd") == ""){
  1953. var msg9 = "[임상상태지표1]";
  1954. if(msgstr == ""){
  1955. msgstr += msg9;
  1956. }else{
  1957. msgstr += ", " + msg9;
  1958. }
  1959. }
  1960. if(model.getValue("/root/main/wardrecinfo/nrs22cd") == ""){
  1961. var msg10 = "[영양상태지표2]";
  1962. if(msgstr == ""){
  1963. msgstr += msg10;
  1964. }else{
  1965. msgstr += ", " + msg10;
  1966. }
  1967. }
  1968. if(model.getValue("/root/main/wardrecinfo/nrs23cd") == ""){
  1969. var msg11 = "[영양상태지표3]";
  1970. if(msgstr == ""){
  1971. msgstr += msg11;
  1972. }else{
  1973. msgstr += ", " + msg11;
  1974. }
  1975. }
  1976. //------------(20110121) 경북대
  1977. //20110308 이선경(경북대) 통증여부가 '유'일때 통증관리기록이 있는지 체크
  1978. // '16.04.18 - AYS 추가
  1979. if(model.getValue("/root/main/wardrecinfo/shpaininfo/shpain/shpaininfoinclyn") == "2") {
  1980. model.makeValue("/root/send/pid", model.getValue("/root/temp/cond/list/pid"));
  1981. model.makeValue("/root/send/indd", model.getValue("/root/temp/cond/list/indd"));
  1982. model.makeValue("/root/send/cretno", model.getValue("/root/temp/cond/list/cretno"));
  1983. model.makeValue("/root/send/genrdd", getCurrentDate());
  1984. model.makeValue("/root/send/genrtm", getCurrentDateTime().substring(9,13));
  1985. model.makeValue("/root/send/stdradio", "0");
  1986. model.makeValue("/root/send/req/indd", model.getValue("/root/temp/cond/list/indd"));
  1987. model.makeValue("/root/send/req/cretno", model.getValue("/root/temp/cond/list/cretno"));
  1988. submit('TRMNW04802');
  1989. if(getNodesetCount("/root/main/detlgrup/detlgruplist") == 0) {
  1990. var msg29 = "[통증관리기록]";
  1991. if(msgstr == ""){
  1992. msgstr += msg29;
  1993. }else{
  1994. msgstr += ", " + msg29;
  1995. }
  1996. }
  1997. } else { // '16.04.18 - AYS 추가
  1998. if(model.getValue("/root/main/wardrecinfo/shpaininfo/shpain/shpaininfoflag") == "") {
  1999. var msg30 = "[통증]";
  2000. if(msgstr == ""){
  2001. msgstr += msg30;
  2002. }else{
  2003. msgstr += ", " + msg30;
  2004. }
  2005. }
  2006. }
  2007. // 2013.04.25 배우자정보 필수항목으로 지정!!
  2008. if(model.getValue("/root/main/wardrecinfo/ptneinclyn") != "1"){
  2009. if(model.getValue("/root/main/wardrecinfo/ptnernm") == ""){
  2010. var msg12 = "[배우자이름]";
  2011. if(msgstr == ""){
  2012. msgstr += msg12;
  2013. }else{
  2014. msgstr += ", " + msg12;
  2015. }
  2016. }
  2017. if(model.getValue("/root/main/wardrecinfo/ptnerbrthdd") == ""){
  2018. var msg25 = "[배우자생년월일]";
  2019. if(msgstr == ""){
  2020. msgstr += msg25;
  2021. }else{
  2022. msgstr += ", " + msg25;
  2023. }
  2024. }
  2025. if(model.getValue("/root/main/wardrecinfo/ptnerage") == ""){
  2026. var msg13 = "[배우자나이]";
  2027. if(msgstr == ""){
  2028. msgstr += msg13;
  2029. }else{
  2030. msgstr += ", " + msg13;
  2031. }
  2032. }
  2033. if(model.getValue("/root/main/wardrecinfo/ptnertel") == ""){
  2034. var msg14 = "[배우자연락처]";
  2035. if(msgstr == ""){
  2036. msgstr += msg14;
  2037. }else{
  2038. msgstr += ", " + msg14;
  2039. }
  2040. }
  2041. if(model.getValue("/root/main/wardrecinfo/ptnerjobcd") == ""){
  2042. var msg26 = "[배우자직업]";
  2043. if(msgstr == ""){
  2044. msgstr += msg26;
  2045. }else{
  2046. msgstr += ", " + msg26;
  2047. }
  2048. }
  2049. // 16.04.22_배우자직업 기타
  2050. if(model.getValue("/root/main/wardrecinfo/ptnerjobcd") == "10"){
  2051. if(model.getValue("/root/main/wardrecinfo/ptnerjobnm") == ""){
  2052. var msg31 = "[배우자직업 기타]";
  2053. if(msgstr == ""){
  2054. msgstr += msg31;
  2055. }else{
  2056. msgstr += ", " + msg31;
  2057. }
  2058. }
  2059. }
  2060. if(model.getValue("/root/main/wardrecinfo/ptnerbtype") == ""){
  2061. var msg15 = "[배우자혈액형]";
  2062. if(msgstr == ""){
  2063. msgstr += msg15;
  2064. }else{
  2065. msgstr += ", " + msg15;
  2066. }
  2067. }
  2068. }
  2069. // 2013.07.16 산과정보 필수항목으로 지정!!
  2070. if(model.getValue("/root/main/wardrecinfo/obgyninfoinclyn") != "1"){
  2071. if(model.getValue("/root/main/wardrecinfo/befchildbrthmed") == ""){
  2072. var msg16 = "[산전진찰]";
  2073. if(msgstr == ""){
  2074. msgstr += msg16;
  2075. }else{
  2076. msgstr += ", " + msg16;
  2077. }
  2078. }
  2079. if(model.getValue("/root/main/wardrecinfo/gesage") == ""){
  2080. var msg17 = "[임신주수]";
  2081. if(msgstr == ""){
  2082. msgstr += msg17;
  2083. }else{
  2084. msgstr += ", " +msg17;
  2085. }
  2086. }
  2087. /*
  2088. // 16.04.21 - 산모간호초기평가 최종월경일 삭제 - AYS
  2089. if(model.getValue("/root/main/wardrecinfo/lastmensdd") == ""){
  2090. var msg18 = "[최종월경일]";
  2091. if(msgstr == ""){
  2092. msgstr += msg18;
  2093. }else{
  2094. msgstr += ", " + msg18;
  2095. }
  2096. }
  2097. */
  2098. if(model.getValue("/root/main/wardrecinfo/edc") == ""){
  2099. var msg19 = "[분만예정일]";
  2100. if(msgstr == ""){
  2101. msgstr += msg19;
  2102. }else{
  2103. msgstr += ", " + msg19;
  2104. }
  2105. }
  2106. if(model.getValue("/root/main/wardrecinfo/parityg") == "" && model.getValue("/root/main/wardrecinfo/parityp") == "" && model.getValue("/root/main/wardrecinfo/paritya") == ""
  2107. && model.getValue("/root/main/wardrecinfo/paritysa") == "" && model.getValue("/root/main/wardrecinfo/parityaa") == "" && model.getValue("/root/main/wardrecinfo/parityl") == ""){
  2108. var msg20 = "[임신출산력]";
  2109. if(msgstr == ""){
  2110. msgstr += msg20;
  2111. }else{
  2112. msgstr += ", " + msg20;
  2113. }
  2114. }
  2115. if(model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/nbabymucusyn") != ""){
  2116. if(model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/nbabymucusyn") == "2"){
  2117. if(model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/nbabymucusdd") == "" || model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/nbabymucusdt") == ""){
  2118. var msg21= "[이슬]";
  2119. if(msgstr == ""){
  2120. msgstr += msg21;
  2121. }else{
  2122. msgstr += ", " + msg21;
  2123. }
  2124. }
  2125. }
  2126. }
  2127. if(model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/ruptureyn") != ""){
  2128. if(model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/ruptureyn") == "2"){
  2129. if(model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/rupturedd") == "" || model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/rupturedt") == ""){
  2130. var msg22= "[조기파수]";
  2131. if(msgstr == ""){
  2132. msgstr += msg22;
  2133. }else{
  2134. msgstr += ", " + msg22;
  2135. }
  2136. }
  2137. }
  2138. }
  2139. if(model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/angsiayn") != ""){
  2140. if(model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/angsiayn") == "2"){
  2141. if(model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/angsiadd") == "" || model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/angsiadt") == ""
  2142. || model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/angsiatermmin") == "" || model.getValue("/root/main/wardrecinfo/obgyninfoetc/obgyn/angsiatermsec") == ""){
  2143. var msg23= "[진통]";
  2144. if(msgstr == ""){
  2145. msgstr += msg23;
  2146. }else{
  2147. msgstr += ", " + msg23;
  2148. }
  2149. }
  2150. }
  2151. }
  2152. }
  2153. if ( instUseYN =="Y"){
  2154. var msgblock = fCareBodyAssBlock();
  2155. if( msgblock != ""){
  2156. msgstr += "\n" + msgblock;
  2157. }
  2158. }
  2159. if(msgstr != "" ){
  2160. messageBox(msgstr + " 은(는) ", "I003");//필수입력입니다
  2161. return;
  2162. }
  2163. fPatgnrlInfo("C");
  2164. //20100115 JCI 김홍점 교육요구도 적용병원만 데이타 저장 및 인증데이타 생성
  2165. if ( instUseYN =="Y"){
  2166. model.removenode('/root/temp/signdata');
  2167. if ( !ivw_edurec.window.javascript.fSave() ){
  2168. return;
  2169. }
  2170. var xEduRecPath = '/root/temp/signdata/edurecinfo';
  2171. fMNWCareInfoRecMakeForJCI(xEduRecPath, ivw_edurec, "N");//carecom.js (srcPath, destObj , 응급간호정보조사여부 구분 erYn)
  2172. }
  2173. //최초기록자
  2174. fMNWCareComFstdtSet( "03", "SAVE" );
  2175. Sign.certreload = true ;
  2176. if (Sign.signprocess() == true){
  2177. //src="C:\CMCProject\application\webapps\emr\formmngtweb\xrw\SSMRF03800_OCR뷰어.xrw"
  2178. // alert("인증성공" );
  2179. // alert("1. 인증성공여부 false / true \n\n" + Sign.signedInfos[0]); // 인증성공여부 false / true
  2180. // alert("2. 인증할 데이터 정보 (미기록 노드 제거전 원본 노드) \n\n" + Sign.signedInfos[3]); // 인증할 데이터 정보 (미기록 노드 제거전 원본 노드)
  2181. // alert("2.--> text 데이터(없는 노드 포함된) text 형태 변형 결과 \n\n" + Sign.signedInfos[4]); // [3] 데이터(없는 노드 포함된) text 형태 변형 결과
  2182. // alert("3. 인증할 데이터 정보(미기록 노드 제거된 정보) \n\n" + Sign.signedInfos[1]); // 인증할 데이터 정보(미기록 노드 제거된 정보)
  2183. // alert("3. -->text 데이터(없는 노드 제거된) text 형태 변형 결과 \n\n" + Sign.signedInfos[5]); // ★[1] 데이터(없는 노드 제거된) text 형태 변형 결과 >>> [5]
  2184. // alert("3. -->text --> sign 공인인증 처리후 데이터 \n\n" + Sign.signedInfos[2]); // ★공인인증 처리후 데이터 >>> [2]
  2185. model.makeValue("/root/send/wardrecinfo/pid", model.getValue("/root/temp/cond/list/pid"));
  2186. model.makeValue("/root/send/wardrecinfo/indd", model.getValue("/root/temp/cond/list/indd"));
  2187. model.makeValue("/root/send/wardrecinfo/signno", model.getValue("/root/main/wardrecinfo/signno"));
  2188. model.makeValue("/root/send/wardrecinfo/cretno", model.getValue("/root/temp/cond/list/cretno"));
  2189. model.makeValue("/root/send/wardrecinfo/recdd", model.getValue("/root/main/wardrecinfo/recdd"));
  2190. model.makeValue("/root/send/wardrecinfo/rectm", model.getValue("/root/main/wardrecinfo/rectm"));
  2191. model.makeValue("/root/send/wardrecinfo/recsaveflag", "Y");
  2192. model.makeValue("/root/send/wardrecinfo/signflag", "02");
  2193. model.makeValue("/root/send/wardrecinfo/signgenrflag", model.getValue("/root/temp/cond/list/ioflag"));
  2194. model.makeValue("/root/send/wardrecinfo/formcd", "0000002504");
  2195. model.makeValue("/root/send/wardrecinfo/orddeptcd", model.getValue("/root/temp/cond/list/orddeptcd"));
  2196. model.makeValue("/root/send/wardrecinfo/orddrid", model.getValue("/root/temp/cond/list/medispclid"));
  2197. model.makeValue("/root/send/wardrecinfo/signbfcnts", Sign.signedInfos[1]);
  2198. model.makeValue("/root/send/wardrecinfo/signaftcnts", Sign.signedInfos[2]);
  2199. model.makeValue("/root/send/wardrecinfo/wardcd", model.getValue("/root/temp/cond/list/wardcd"));
  2200. model.makeValue("/root/send/wardrecinfo/roomcd", model.getValue("/root/temp/cond/list/roomcd"));
  2201. model.makeValue("/root/send/wardrecinfo/instcd", model.getValue("/root/temp/cond/list/instcd"));
  2202. if(submit("TXMNN00301") == true) {
  2203. grd_famyfact.clearStatus();
  2204. model.setValue("/root/send/wardrecinfo", "");
  2205. messageBox("저장이 ", "I001");
  2206. model.makeValue("/root/hidden/paminfo/paminfo/exeflag", "U");
  2207. fGetInitRecInfo(); //재조회
  2208. fInitEvent();
  2209. } else {
  2210. messageBox("저장이 실패하였습니다.", "I001");
  2211. }
  2212. }
  2213. ]]>
  2214. </script>
  2215. </button>
  2216. <input id="ipt_signno" ref="/root/main/wardrecinfo/signno" visibility="hidden" style="left:855px; top:45px; width:50px; height:19px; "/>
  2217. <button id="button1" class="btn2_letter6" style="left:973px; top:49px; width:86px; height:19px; ">
  2218. <caption>전체기록삭제</caption>
  2219. <script type="javascript" ev:event="DOMActivate">
  2220. <![CDATA[
  2221. setCareInfoDel("TXMNN00301"); //CareCom.js
  2222. fGetIndtInfo(); //현재수진이력의 입원시간을 가져온다
  2223. ]]>
  2224. </script>
  2225. </button>
  2226. <caption id="cap_sinfodnor" class="cell_1" style="left:677px; top:18px; width:68px; height:23px; vertical-align:middle; ">정보제공자</caption>
  2227. <caption id="cap_bfrecdt" class="cell_1" style="left:0px; top:18px; width:80px; height:23px; vertical-align:middle; ">이전기록일시</caption>
  2228. <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; "/>
  2229. <caption id="cap_recdt" class="cell_1" style="left:351px; top:18px; width:56px; height:23px; vertical-align:middle; ">기록일시</caption>
  2230. <output id="opt_recuser" ref="/root/main/wardrecinfo/recuser" class="output_fix" style="left:601px; top:20px; width:75px; height:19px; "/>
  2231. <caption id="caption11" class="cell_1" style="left:1044px; top:18px; width:71px; height:23px; vertical-align:middle; ">최초기록자</caption>
  2232. <caption id="caption12" class="cell_1" style="left:845px; top:18px; width:80px; height:23px; vertical-align:middle; ">최초기록일시</caption>
  2233. <input id="ipt_recdd" ref="/root/main/wardrecinfo/recdd" class="input_default" inputtype="date" style="left:409px; top:20px; width:90px; height:19px; "/>
  2234. <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; ">
  2235. <choices>
  2236. <itemset nodeset="/root/hidden/paminfo/recinfo">
  2237. <label ref="bfrecddtm"/>
  2238. <value ref="recpkspec"/>
  2239. </itemset>
  2240. </choices>
  2241. <script type="javascript" ev:event="xforms-value-changed">
  2242. <![CDATA[
  2243. fChgRecHistInfo();
  2244. fMNWCareComFstdtSet( "03", "SRCH" );
  2245. model.refresh();
  2246. ]]>
  2247. </script>
  2248. </select1>
  2249. <caption id="cap_recuser" class="cell_1" style="left:553px; top:18px; width:47px; height:23px; vertical-align:middle; ">기록자</caption>
  2250. <output id="opt_bfrecuser" ref="/root/main/wardrecinfo/bfrecuser" class="output_fix" style="left:274px; top:20px; width:75px; height:19px; "/>
  2251. <caption id="cap_bfrecuser" class="cell_1" style="left:205px; top:18px; width:67px; height:23px; vertical-align:middle; ">이전기록자</caption>
  2252. <output id="output1" ref="/root/main/wardrecinfo/fstrgstdt" class="output_fix" style="left:927px; top:20px; width:115px; height:19px; "/>
  2253. <output id="output2" ref="/root/main/wardrecinfo/fstrgstrnm" class="output_fix" style="left:1116px; top:20px; width:75px; height:19px; "/>
  2254. <input id="ipt_infooffer" ref="/root/main/wardrecinfo/infooffer" class="input_default" maxlength="10" style="left:747px; top:20px; width:97px; height:19px; "/>
  2255. </group>
  2256. <group id="group4" scroll="auto" style="left:0px; top:756px; width:1195px; height:22px; ">
  2257. <line id="line62" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  2258. <caption id="caption13" style="left:1169px; top:0px; width:26px; height:20px; ">[표]</caption>
  2259. </group>
  2260. </xhtml:body>
  2261. </xhtml:html>