SMMNW04100_NEW간호정보조사.xrw 130 KB

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