123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802 |
- /**
- - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
- - 사망환자등록 ( SMMRD00500_사망환자등록.xrw - JScript )
- - Version :
- 1) : Ver.1.00.01
-
- - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
- **/
- /**
- * @ver : 2007-12-01
- * @desc : 화면초기화
- * @
- * @by : 이창록
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function finitialize()
- {
- //mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept","D");// O: 외래 D:입원 W:병동
- zsdfGetInOrdDeptList(getUserInfo("dutplceinstcd"), "/root/init/orddept", "depthngnm", "asc");//입원과
- //기본 사망 정보 갖고 오기
- submit("TRMRD00599");
- if(checkOpener())
- {
- var pid = opener.javascript.getParameter("SMMRD00500_pid");
- if(pid!=""){
- model.setValue("/root/main/dethpatinfo/dethpat/pid",pid);
- model.makeValue("/root/main/patinfo/srchcond","1");
- btn_patreq1.dispatch("onclick");
- }
- }
-
- model.refresh();
- }
- /**
- * @ver : 2007-12-01
- * @desc : 진료과 선택시 주치의 명단 가져오기
- * @
- * @by : 이창록
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGetDrList(ref, rsltRef, orddeptcd, queryflag,stflag)
- {
- model.makeValue(ref + "/orddeptcd" , orddeptcd);
- model.makeValue(ref + "/queryflag" , queryflag);
- model.makeValue(ref + "/stflag" , stflag);
- submit("TRMRF02303", true, ref, rsltRef);
- model.removeNodeset("/root/send/reqdata");
- }
- /*function fGetAdotid()
- {
- model.removeNodeset("/root/init/userlist");
- model.makeNode("/root/init/userlist/usercombo");
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist", cmb_orddept.value, "0330");
- model.refresh();
- }*/
- /**
- * @ver : 2007-12-01
- * @desc : 주소팝업에서 정보 갖고 오기
- * @
- * @by : 이창록
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function freqaddr()
- {
- var addr1 = model.getValue("/root/main/dethpatinfo/dethpat/addr1");
- if(addr1 == ""){
- messageBox("동을","C001");
- model.setFocus("ipt_addr1");
- return;
- }
- var rcv_zipcdhead_path ="/root/main/dethpatinfo/dethpat/zipcode1" ;
- var rcv_zipcdfoot_path = "/root/main/dethpatinfo/dethpat/zipcode2" ;
- var rcv_seqno_path = "/root/main/dethpatinfo/dethpat/zipseqno";
- var rcv_address_path = "/root/main/dethpatinfo/dethpat/addr1";
- zbcfOpenZipCodeList("combination", addr1, rcv_zipcdhead_path, rcv_zipcdfoot_path, rcv_seqno_path, rcv_address_path);
- model.refresh();
- }
- /**
- * @ver : 2007-12-01
- * @desc : 팝업에서 환자 기본정보 갖고 오기(아이디로 조회)
- * @
- * @by : 이창록
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function freqpid()
- {
- var pid = model.getValue("/root/main/dethpatinfo/dethpat/pid");
- if(pid =="")
- {
- return;
- }
- model.makeValue("/root/main/patinfo/pid" ,model.getValue("/root/main/dethpatinfo/dethpat/pid"));
- model.makeValue("/root/main/patinfo/autoflag" ,"Y"); // 1건인경우 자동으로닫힘
-
- modal("SPPMC02500", 1,10, 10, "SPPMC02500", "/root/main/patinfo", "/root/send");
- var Pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- var rrgstno1 = model.getValue("/root/main/patinfo/patinfolist/rrgstno1");
- var rrgstno2 = model.getValue("/root/main/patinfo/patinfolist/rrgstno2");
- var sex = model.getValue("/root/main/patinfo/patinfolist/sex");
- var age = model.getValue("/root/main/patinfo/patinfolist/age");
- var telno = model.getValue("/root/main/patinfo/patinfolist/hometel");
- var zipcode1 = model.getValue("/root/main/patinfo/patinfolist/zipcd1");
- var zipcode2 = model.getValue("/root/main/patinfo/patinfolist/zipcd2");
- var zipseqno = model.getValue("/root/main/patinfo/patinfolist/zipcdseq");
- var addr1 = model.getValue("/root/main/patinfo/patinfolist/addr");
- var addr2 = model.getValue("/root/main/patinfo/patinfolist/detladdr");
- model.setValue("/root/main/dethpatinfo/dethpat/pid",Pid);
- model.setValue("/root/main/dethpatinfo/dethpat/pnm",hngnm);
- model.setValue("/root/main/dethpatinfo/dethpat/rrgstno",rrgstno1 +"-"+rrgstno2);
- model.setValue("/root/main/dethpatinfo/dethpat/sex",sex);
- model.setValue("/root/main/dethpatinfo/dethpat/age",age);
- model.setValue("/root/main/dethpatinfo/dethpat/telno",telno);
- model.setValue("/root/main/dethpatinfo/dethpat/zipcode1",zipcode1);
- model.setValue("/root/main/dethpatinfo/dethpat/zipcode2",zipcode2);
- model.setValue("/root/main/dethpatinfo/dethpat/addr1",addr1);
- model.setValue("/root/main/dethpatinfo/dethpat/addr2",addr2);
-
- var sex=model.getValue("/root/main/dethpatinfo/dethpat/sex");
- if(sex=="M")
- {
- rdo_seconddethkindcd.disabled="true";
- }
- var age=model.getValue("/root/main/dethpatinfo/dethpat/age");
- if(age>=5)
- {
- rdo_firstdethkindcd.disabled="true";
- rdo_thirddethkindcd.disabled="true";
- }else if(age<=4){
- rdo_firstdethkindcd.disabled="false";
- rdo_thirddethkindcd.disabled="false";
- }
- var cd=model.getValue( "/root/main/dethpatinfo/dethpat/dethresncd");
- if(cd=="02"){
- cmb_viokindcd.disabled ="false";
- cmb_viopleced.disabled ="false";
- cmb_statcd.disabled ="false";
- ipt_vioacddd.disabled ="false";
- ipt_vioacdtm.disabled ="false";
- }
- //더블클릭시 저장된 정보를 가져온다
- var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
- model.makeValue("/root/send/reqdata/deth/pid", sPid);
- submit("TRMRD00510");
-
- var Pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- var rrgstno1 = model.getValue("/root/main/patinfo/patinfolist/rrgstno1");
- var rrgstno2 = model.getValue("/root/main/patinfo/patinfolist/rrgstno2");
- var sex = model.getValue("/root/main/patinfo/patinfolist/sex");
- var age = model.getValue("/root/main/patinfo/patinfolist/age");
- var telno = model.getValue("/root/main/patinfo/patinfolist/hometel");
- var zipcode1 = model.getValue("/root/main/patinfo/patinfolist/zipcd1");
- var zipcode2 = model.getValue("/root/main/patinfo/patinfolist/zipcd2");
- var zipseqno = model.getValue("/root/main/patinfo/patinfolist/zipcdseq");
- var addr1 = model.getValue("/root/main/patinfo/patinfolist/addr");
- var addr2 = model.getValue("/root/main/patinfo/patinfolist/detladdr");
-
- model.makeValue("/root/main/dethpatinfo/dethpat/pid" ,Pid);
- model.makeValue("/root/main/dethpatinfo/dethpat/pnm" ,hngnm);
- model.makeValue("/root/main/dethpatinfo/dethpat/rrgstno" ,rrgstno1 +"-"+rrgstno2);
- model.makeValue("/root/main/dethpatinfo/dethpat/sex" ,sex);
- model.makeValue("/root/main/dethpatinfo/dethpat/age" ,age);
- model.makeValue("/root/main/dethpatinfo/dethpat/telno" ,telno);
- model.makeValue("/root/main/dethpatinfo/dethpat/zipcode1" ,zipcode1);
- model.makeValue("/root/main/dethpatinfo/dethpat/zipcode2" ,zipcode2);
- model.makeValue("/root/main/dethpatinfo/dethpat/addr1" ,addr1);
- model.makeValue("/root/main/dethpatinfo/dethpat/addr2" ,addr2);
- //model.makeNode("/root/main/dethpat");
- model.makeNode("/root/main/dethpatinfo/dethpat/insukind");
- model.makeNode("/root/main/dethpatinfo/dethpat/indd");
- model.makeNode("/root/main/dethpatinfo/dethpat/dschdd");
- model.makeNode("/root/main/dethpatinfo/dethpat/inhospdd");
- model.makeNode("/root/main/dethpatinfo/dethpat/deptcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/atdocnm");
- model.makeNode("/root/main/dethpatinfo/dethpat/atdoctid");
- model.makeNode("/root/main/dethpatinfo/dethpat/inpathcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/opdd");
- model.makeNode("/root/main/dethpatinfo/dethpat/ordopendd");
- model.makeNode("/root/main/dethpatinfo/dethpat/dethdd");
- model.makeNode("/root/main/dethpatinfo/dethpat/dethtm");
- model.makeNode("/root/main/dethpatinfo/dethpat/dethplcecd");
- model.makeNode("/root/main/dethpatinfo/dethpat/dethresncd");
- model.makeNode("/root/main/dethpatinfo/dethpat/dethflag");
- model.makeNode("/root/main/dethpatinfo/dethpat/dethkindcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/basedethcascd");
- model.makeNode("/root/main/dethpatinfo/dethpat/basedethcasnm");
- model.makeNode("/root/main/dethpatinfo/dethpat/mdldethcascd");
- model.makeNode("/root/main/dethpatinfo/dethpat/mdldethcasnm");
- model.makeNode("/root/main/dethpatinfo/dethpat/direcdethcascd");
- model.makeNode("/root/main/dethpatinfo/dethpat/direcdethcasnm");
- model.makeNode("/root/main/dethpatinfo/dethpat/viodethacdkindcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/viodethacdplcecd");
- model.makeNode("/root/main/dethpatinfo/dethpat/viodethacdstatcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/viodethacddd");
- model.makeNode("/root/main/dethpatinfo/dethpat/viodethacdtm");
- model.makeNode("/root/main/dethpatinfo/dethpat/womndethcascd");
- model.makeNode("/root/main/dethpatinfo/dethpat/womndethweekcnt");
- model.makeNode("/root/main/dethpatinfo/dethpat/partrtnrsltcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/womndethbdwtqty");
- model.makeNode("/root/main/dethpatinfo/dethpat/womnpartrtnmthdcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/paritycd1");
- model.makeNode("/root/main/dethpatinfo/dethpat/paritycd2");
- model.makeNode("/root/main/dethpatinfo/dethpat/paritycd3");
- model.makeNode("/root/main/dethpatinfo/dethpat/paritycd4");
- model.makeNode("/root/main/dethpatinfo/dethpat/stlborncascd");
- model.makeNode("/root/main/dethpatinfo/dethpat/stlbornsexcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/stlbornweekcnt");
- model.makeNode("/root/main/dethpatinfo/dethpat/stlbornmultpltscd");
- model.makeNode("/root/main/dethpatinfo/dethpat/stlbornbdwtqty");
- model.makeNode("/root/main/dethpatinfo/dethpat/infantdethweekcnt");
- model.makeNode("/root/main/dethpatinfo/dethpat/infantdethbdwtqty");
- model.makeNode("/root/main/dethpatinfo/dethpat/infantdethmtherpid");
- model.makeNode("/root/main/dethpatinfo/dethpat/partrtnmthdcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/cngntlmfmdyn");
- model.makeNode("/root/main/dethpatinfo/dethpat/multpltflag");
- model.makeNode("/root/main/dethpatinfo/dethpat/nbabydethcascd");
- zsdfGetInOrdDeptList(getUserInfo("dutplceinstcd"), "/root/init/orddept", "depthngnm", "asc");//입원과
- var atdoctid =model.getValue("/root/main/dethpatinfo/dethpat/atdoctid");
- model.setValue("/root/main/dethpatinfo/dethpat/atdocnm",atdoctid);
- fGetDrList("/root/send/reqdata", "/root/init/userlist/drlist", cmb_orddept.value, "total");//주치의 조회
-
- model.refresh();
- }
- /**
- * @ver : 2007-12-01
- * @desc : 팝업에서 환자 기본정보 갖고 오기(환자명로 조회)
- * @
- * @by : 이창록
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function freqpnm()
- {
- var pnm = model.getValue("/root/main/dethpatinfo/dethpat/pnm");
- if(pnm ==""){
- return;
- }
- model.makeValue("/root/main/patinfo/hngnm" ,model.getValue("/root/main/dethpatinfo/dethpat/pnm"));
- model.makeValue("/root/main/patinfo/autoflag" ,"Y"); // 1건인경우 자동으로닫힘
- modal("SPPMC02500", 1,10, 10, "SPPMC02500", "/root/main/patinfo", "/root/send");
- var fPid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var fHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- var fRrgstno1 = model.getValue("/root/main/patinfo/patinfolist/rrgstno1");
- var fRrgstno2 = model.getValue("/root/main/patinfo/patinfolist/rrgstno2");
- var fSex = model.getValue("/root/main/patinfo/patinfolist/sex");
- var fAge = model.getValue("/root/main/patinfo/patinfolist/age");
- var fTelno = model.getValue("/root/main/patinfo/patinfolist/hometel");
- var fZipcode1 = model.getValue("/root/main/patinfo/patinfolist/zipcd1");
- var fZipcode2 = model.getValue("/root/main/patinfo/patinfolist/zipcd2");
- var fZipseqno = model.getValue("/root/main/patinfo/patinfolist/zipcdseq");
- var fAddr1 = model.getValue("/root/main/patinfo/patinfolist/addr");
- var fAddr2 = model.getValue("/root/main/patinfo/patinfolist/detladdr");
- var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- model.makeValue("/root/main/dethpatinfo/dethpat/pid" ,fPid);
- model.makeValue("/root/main/dethpatinfo/dethpat/pnm" ,fHngnm);
- model.makeValue("/root/main/dethpatinfo/dethpat/rrgstno" ,fRrgstno1 +"-"+fRrgstno2);
- model.makeValue("/root/main/dethpatinfo/dethpat/sex" ,fSex);
- model.makeValue("/root/main/dethpatinfo/dethpat/age" ,fAge);
- model.makeValue("/root/main/dethpatinfo/dethpat/telno" ,fTelno);
- model.makeValue("/root/main/dethpatinfo/dethpat/zipcode1" ,fZipcode1);
- model.makeValue("/root/main/dethpatinfo/dethpat/zipcode2" ,fZipcode2);
- model.makeValue("/root/main/dethpatinfo/dethpat/addr1" ,fAddr1);
- model.makeValue("/root/main/dethpatinfo/dethpat/addr2" ,fAddr2);
- var sex=model.getValue("/root/main/dethpatinfo/dethpat/sex");
- if(sex=="M")
- {
- rdo_seconddethkindcd.disabled="true";
- }
- var age=model.getValue("/root/main/dethpatinfo/dethpat/age");
- if(age>=5)
- {
- rdo_firstdethkindcd.disabled="true";
- rdo_thirddethkindcd.disabled="true";
- }else if(age<=4){
- rdo_firstdethkindcd.disabled="false";
- rdo_thirddethkindcd.disabled="false";
- }
- var cd=model.getValue( "/root/main/dethpatinfo/dethpat/dethresncd");
- if(cd=="02"){
- cmb_viokindcd.disabled ="false";
- cmb_viopleced.disabled ="false";
- cmb_statcd.disabled ="false";
- ipt_vioacddd.disabled ="false";
- ipt_vioacdtm.disabled ="false";
- }
- var aPid = model.getValue("/root/temp/patinfo/patinfolist/pid");
- model.makeValue("/root/send/reqdata/deth/pid", aPid);
- submit("TRMRD00510");
- var fPid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var fHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- var fRrgstno1 = model.getValue("/root/main/patinfo/patinfolist/rrgstno1");
- var fRrgstno2 = model.getValue("/root/main/patinfo/patinfolist/rrgstno2");
- var fSex = model.getValue("/root/main/patinfo/patinfolist/sex");
- var fAge = model.getValue("/root/main/patinfo/patinfolist/age");
- var fTelno = model.getValue("/root/main/patinfo/patinfolist/hometel");
- var fZipcode1 = model.getValue("/root/main/patinfo/patinfolist/zipcd1");
- var fZipcode2 = model.getValue("/root/main/patinfo/patinfolist/zipcd2");
- var fZipseqno = model.getValue("/root/main/patinfo/patinfolist/zipcdseq");
- var fAddr1 = model.getValue("/root/main/patinfo/patinfolist/addr");
- var fAddr2 = model.getValue("/root/main/patinfo/patinfolist/detladdr");
- var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- model.makeValue("/root/main/dethpatinfo/dethpat/pid" ,fPid);
- model.makeValue("/root/main/dethpatinfo/dethpat/pnm" ,fHngnm);
- model.makeValue("/root/main/dethpatinfo/dethpat/rrgstno" ,fRrgstno1 +"-"+fRrgstno2);
- model.makeValue("/root/main/dethpatinfo/dethpat/sex" ,fSex);
- model.makeValue("/root/main/dethpatinfo/dethpat/age" ,fAge);
- model.makeValue("/root/main/dethpatinfo/dethpat/telno" ,fTelno);
- model.makeValue("/root/main/dethpatinfo/dethpat/zipcode1" ,fZipcode1);
- model.makeValue("/root/main/dethpatinfo/dethpat/zipcode2" ,fZipcode2);
- model.makeValue("/root/main/dethpatinfo/dethpat/addr1" ,fAddr1);
- model.makeValue("/root/main/dethpatinfo/dethpat/addr2" ,fAddr2);
- model.makeNode("/root/main/dethpatinfo/dethpat/insukind");
- model.makeNode("/root/main/dethpatinfo/dethpat/indd");
- model.makeNode("/root/main/dethpatinfo/dethpat/dschdd");
- model.makeNode("/root/main/dethpatinfo/dethpat/inhospdd");
- model.makeNode("/root/main/dethpatinfo/dethpat/deptcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/atdocnm");
- model.makeNode("/root/main/dethpatinfo/dethpat/atdoctid");
- model.makeNode("/root/main/dethpatinfo/dethpat/inpathcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/opdd");
- model.makeNode("/root/main/dethpatinfo/dethpat/ordopendd");
- model.makeNode("/root/main/dethpatinfo/dethpat/dethdd");
- model.makeNode("/root/main/dethpatinfo/dethpat/dethtm");
- model.makeNode("/root/main/dethpatinfo/dethpat/dethplcecd");
- model.makeNode("/root/main/dethpatinfo/dethpat/dethresncd");
- model.makeNode("/root/main/dethpatinfo/dethpat/dethflag");
- model.makeNode("/root/main/dethpatinfo/dethpat/dethkindcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/basedethcascd");
- model.makeNode("/root/main/dethpatinfo/dethpat/basedethcasnm");
- model.makeNode("/root/main/dethpatinfo/dethpat/mdldethcascd");
- model.makeNode("/root/main/dethpatinfo/dethpat/mdldethcasnm");
- model.makeNode("/root/main/dethpatinfo/dethpat/direcdethcascd");
- model.makeNode("/root/main/dethpatinfo/dethpat/direcdethcasnm");
- model.makeNode("/root/main/dethpatinfo/dethpat/viodethacdkindcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/viodethacdplcecd");
- model.makeNode("/root/main/dethpatinfo/dethpat/viodethacdstatcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/viodethacddd");
- model.makeNode("/root/main/dethpatinfo/dethpat/viodethacdtm");
- model.makeNode("/root/main/dethpatinfo/dethpat/womndethcascd");
- model.makeNode("/root/main/dethpatinfo/dethpat/womndethweekcnt");
- model.makeNode("/root/main/dethpatinfo/dethpat/partrtnrsltcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/womndethbdwtqty");
- model.makeNode("/root/main/dethpatinfo/dethpat/womnpartrtnmthdcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/paritycd1");
- model.makeNode("/root/main/dethpatinfo/dethpat/paritycd2");
- model.makeNode("/root/main/dethpatinfo/dethpat/paritycd3");
- model.makeNode("/root/main/dethpatinfo/dethpat/paritycd4");
- model.makeNode("/root/main/dethpatinfo/dethpat/stlborncascd");
- model.makeNode("/root/main/dethpatinfo/dethpat/stlbornsexcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/stlbornweekcnt");
- model.makeNode("/root/main/dethpatinfo/dethpat/stlbornmultpltscd");
- model.makeNode("/root/main/dethpatinfo/dethpat/stlbornbdwtqty");
- model.makeNode("/root/main/dethpatinfo/dethpat/infantdethweekcnt");
- model.makeNode("/root/main/dethpatinfo/dethpat/infantdethbdwtqty");
- model.makeNode("/root/main/dethpatinfo/dethpat/infantdethmtherpid");
- model.makeNode("/root/main/dethpatinfo/dethpat/partrtnmthdcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/cngntlmfmdyn");
- model.makeNode("/root/main/dethpatinfo/dethpat/multpltflag");
- model.makeNode("/root/main/dethpatinfo/dethpat/nbabydethcascd");
- zsdfGetInOrdDeptList(getUserInfo("dutplceinstcd"), "/root/init/orddept", "depthngnm", "asc");//입원과
- var atdoctid =model.getValue("/root/main/dethpatinfo/dethpat/atdoctid");
- model.setValue("/root/main/dethpatinfo/dethpat/atdocnm",atdoctid);
- fGetDrList("/root/send/reqdata", "/root/init/userlist/drlist", cmb_orddept.value, "total");//주치의 조회
-
- model.refresh();
- }
- /**
- * @ver : 2007-12-01
- * @desc : 팝업에서 환자 기본정보 갖고 오기(주민번호로 조회)
- * @
- * @by : 이창록
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function freqrrgstno()
- {
- var rrgstno = model.getValue("/root/main/dethpatinfo/dethpat/rrgstno");
- if(rrgstno ==""){
- return;
- }
- model.makeValue("/root/main/patinfo/pid" ,model.getValue("/root/main/dethpatinfo/dethpat/pid"));
- model.makeValue("/root/main/patinfo/hngnm" ,model.getValue("/root/main/dethpatinfo/dethpat/pnm"));
- model.makeValue("/root/main/patinfo/rrgstno1" ,model.getValue("/root/main/dethpatinfo/dethpat/rrgstno"));
- model.makeValue("/root/main/patinfo/rrgstno2" ,model.getValue("/root/main/dethpatinfo/dethpat/rrgstno"));
- //model.makeValue("/root/temp/patinfo/patinfolist/srchcond" ,"1");
- model.makeValue("/root/main/patinfo/autoflag" ,"Y"); // 1건인경우 자동으로닫힘
-
- modal("SPPMC02500", 1,10, 10, "SPPMC02500", "/root/main/patinfo", "/root/send");
- model.setValue("/root/main/dethpatinfo/dethpat/pid", model.getValue("/root/temp/patinfo/patinfolist/pid"));
-
-
- var hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- var rrgstno1 = model.getValue("/root/main/patinfo/patinfolist/rrgstno1");
- var rrgstno2 = model.getValue("/root/main/patinfo/patinfolist/rrgstno2");
- var sex = model.getValue("/root/main/patinfo/patinfolist/sex");
- var age = model.getValue("/root/main/patinfo/patinfolist/age");
- var telno = model.getValue("/root/main/patinfo/patinfolist/hometel");
- var zipcode1 = model.getValue("/root/main/patinfo/patinfolist/zipcd1");
- var zipcode2 = model.getValue("/root/main/patinfo/patinfolist/zipcd2");
- var zipseqno = model.getValue("/root/main/patinfo/patinfolist/zipcdseq");
- var addr1 = model.getValue("/root/main/patinfo/patinfolist/addr");
- var addr2 = model.getValue("/root/main/patinfo/patinfolist/detladdr");
-
- model.makeValue("/root/main/dethpatinfo/dethpat/pnm" ,hngnm);
- model.makeValue("/root/main/dethpatinfo/dethpat/rrgstno" ,rrgstno1 +"-"+rrgstno2);
- model.makeValue("/root/main/dethpatinfo/dethpat/sex" ,sex);
- model.makeValue("/root/main/dethpatinfo/dethpat/age" ,age);
- model.makeValue("/root/main/dethpatinfo/dethpat/telno" ,telno);
- model.makeValue("/root/main/dethpatinfo/dethpat/zipcode1" ,zipcode1);
- model.makeValue("/root/main/dethpatinfo/dethpat/zipcode2" ,zipcode2);
- model.makeValue("/root/main/dethpatinfo/dethpat/addr1" ,addr1);
- model.makeValue("/root/main/dethpatinfo/dethpat/addr2" ,addr2);
- model.makeNode("/root/main/dethpatinfo/dethpat/insukind");
- model.makeNode("/root/main/dethpatinfo/dethpat/indd");
- model.makeNode("/root/main/dethpatinfo/dethpat/dschdd");
- model.makeNode("/root/main/dethpatinfo/dethpat/inhospdd");
- model.makeNode("/root/main/dethpatinfo/dethpat/deptcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/atdocnm");
- model.makeNode("/root/main/dethpatinfo/dethpat/atdoctid");
- model.makeNode("/root/main/dethpatinfo/dethpat/inpathcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/opdd");
- model.makeNode("/root/main/dethpatinfo/dethpat/ordopendd");
- model.makeNode("/root/main/dethpatinfo/dethpat/dethdd");
- model.makeNode("/root/main/dethpatinfo/dethpat/dethtm");
- model.makeNode("/root/main/dethpatinfo/dethpat/dethplcecd");
- model.makeNode("/root/main/dethpatinfo/dethpat/dethresncd");
- model.makeNode("/root/main/dethpatinfo/dethpat/dethflag");
- model.makeNode("/root/main/dethpatinfo/dethpat/dethkindcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/basedethcascd");
- model.makeNode("/root/main/dethpatinfo/dethpat/basedethcasnm");
- model.makeNode("/root/main/dethpatinfo/dethpat/mdldethcascd");
- model.makeNode("/root/main/dethpatinfo/dethpat/mdldethcasnm");
- model.makeNode("/root/main/dethpatinfo/dethpat/direcdethcascd");
- model.makeNode("/root/main/dethpatinfo/dethpat/direcdethcasnm");
- model.makeNode("/root/main/dethpatinfo/dethpat/viodethacdkindcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/viodethacdplcecd");
- model.makeNode("/root/main/dethpatinfo/dethpat/viodethacdstatcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/viodethacddd");
- model.makeNode("/root/main/dethpatinfo/dethpat/viodethacdtm");
- model.makeNode("/root/main/dethpatinfo/dethpat/womndethcascd");
- model.makeNode("/root/main/dethpatinfo/dethpat/womndethweekcnt");
- model.makeNode("/root/main/dethpatinfo/dethpat/partrtnrsltcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/womndethbdwtqty");
- model.makeNode("/root/main/dethpatinfo/dethpat/womnpartrtnmthdcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/paritycd1");
- model.makeNode("/root/main/dethpatinfo/dethpat/paritycd2");
- model.makeNode("/root/main/dethpatinfo/dethpat/paritycd3");
- model.makeNode("/root/main/dethpatinfo/dethpat/paritycd4");
- model.makeNode("/root/main/dethpatinfo/dethpat/stlborncascd");
- model.makeNode("/root/main/dethpatinfo/dethpat/stlbornsexcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/stlbornweekcnt");
- model.makeNode("/root/main/dethpatinfo/dethpat/stlbornmultpltscd");
- model.makeNode("/root/main/dethpatinfo/dethpat/stlbornbdwtqty");
- model.makeNode("/root/main/dethpatinfo/dethpat/infantdethweekcnt");
- model.makeNode("/root/main/dethpatinfo/dethpat/infantdethbdwtqty");
- model.makeNode("/root/main/dethpatinfo/dethpat/infantdethmtherpid");
- model.makeNode("/root/main/dethpatinfo/dethpat/partrtnmthdcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/cngntlmfmdyn");
- model.makeNode("/root/main/dethpatinfo/dethpat/multpltflag");
- model.makeNode("/root/main/dethpatinfo/dethpat/nbabydethcascd");
-
- var sex=model.getValue("/root/main/dethpatinfo/dethpat/sex");
- if(sex=="M")
- {
- rdo_seconddethkindcd.disabled="true";
- }
- var age=model.getValue("/root/main/dethpatinfo/dethpat/age");
- if(age>=5)
- {
- rdo_firstdethkindcd.disabled="true";
- rdo_thirddethkindcd.disabled="true";
- }else if(age<=4){
- rdo_firstdethkindcd.disabled="false";
- rdo_thirddethkindcd.disabled="false";
- }
- model.refresh();
- }
- /**
- * @ver : 2007-12-01
- * @desc : 사망 분석 정보를 저장하기
- * @
- * @by : 이창록
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSavedethinfo()
- {
- if(model.getValue("/root/main/dethpatinfo/dethpat/pid")==""){
- messageBox("환자번호를 입력","I008");
- return;
- }
- if(model.getValue("/root/main/dethpatinfo/dethpat/age")==""){
- messageBox("나이를 입력","I008");
- return;
- }
- if(model.getValue("/root/main/dethpatinfo/dethpat/insukind")==""){
- messageBox("보험종류를 입력","I008");
- return;
- }
- if(model.getValue("/root/main/dethpatinfo/dethpat/dethdd")==""){
- messageBox("사망일자를 입력","I008");
- return;
- }
- if(model.getValue("/root/main/dethpatinfo/dethpat/dethresncd")==""){
- messageBox("사망사유를 입력","I008");
- return;
- }
- if(model.getValue("/root/main/dethpatinfo/dethpat/dethflag")==""){
- messageBox("사망구분을 입력","I008");
- return;
- }
- model.makeValue("/root/send/savedata/dethpatnifo/pid" ,model.getValue("/root/main/dethpatinfo/dethpat/pid"));
- model.makeValue("/root/send/savedata/dethpatnifo/pnm" ,model.getValue("/root/main/dethpatinfo/dethpat/pnm"));
- model.makeValue("/root/send/savedata/dethpatnifo/rrgstno" ,model.getValue("/root/main/dethpatinfo/dethpat/rrgstno"));
- model.makeValue("/root/send/savedata/dethpatnifo/sex" ,model.getValue("/root/main/dethpatinfo/dethpat/sex"));
- model.makeValue("/root/send/savedata/dethpatnifo/age" ,model.getValue("/root/main/dethpatinfo/dethpat/age"));
- model.makeValue("/root/send/savedata/dethpatnifo/telno" ,model.getValue("/root/main/dethpatinfo/dethpat/telno"));
- model.makeValue("/root/send/savedata/dethpatnifo/zipcode1" ,model.getValue("/root/main/dethpatinfo/dethpat/zipcode1"));
- model.makeValue("/root/send/savedata/dethpatnifo/zipcode2" ,model.getValue("/root/main/dethpatinfo/dethpat/zipcode2"));
- model.makeValue("/root/send/savedata/dethpatnifo/addr1" ,model.getValue("/root/main/dethpatinfo/dethpat/addr1"));
- model.makeValue("/root/send/savedata/dethpatnifo/addr2" ,model.getValue("/root/main/dethpatinfo/dethpat/addr2"));
- model.makeValue("/root/send/savedata/dethpatnifo/insukind" ,model.getValue("/root/main/dethpatinfo/dethpat/insukind"));
- model.makeValue("/root/send/savedata/dethpatnifo/indd" ,model.getValue("/root/main/dethpatinfo/dethpat/indd"));
- model.makeValue("/root/send/savedata/dethpatnifo/dschdd" ,model.getValue("/root/main/dethpatinfo/dethpat/dschdd"));
- model.makeValue("/root/send/savedata/dethpatnifo/inhospdd" ,model.getValue("/root/main/dethpatinfo/dethpat/inhospdd"));
- model.makeValue("/root/send/savedata/dethpatnifo/deptcd" ,model.getValue("/root/main/dethpatinfo/dethpat/deptcd"));
- model.makeValue("/root/send/savedata/dethpatnifo/atdocnm" ,model.getValue("/root/main/dethpatinfo/dethpat/atdocnm"));
- model.makeValue("/root/send/savedata/dethpatnifo/atdoctid" ,model.getValue("/root/main/dethpatinfo/dethpat/atdoctid"));
- model.makeValue("/root/send/savedata/dethpatnifo/inpathcd" ,model.getValue("/root/main/dethpatinfo/dethpat/inpathcd"));
- model.makeValue("/root/send/savedata/dethpatnifo/opdd" ,model.getValue("/root/main/dethpatinfo/dethpat/opdd"));
- model.makeValue("/root/send/savedata/dethpatnifo/ordopendd" ,model.getValue("/root/main/dethpatinfo/dethpat/ordopendd"));
- model.makeValue("/root/send/savedata/dethpatnifo/dethdd" ,model.getValue("/root/main/dethpatinfo/dethpat/dethdd"));
- model.makeValue("/root/send/savedata/dethpatnifo/dethtm" ,model.getValue("/root/main/dethpatinfo/dethpat/dethtm"));
- model.makeValue("/root/send/savedata/dethpatnifo/dethplcecd" ,model.getValue("/root/main/dethpatinfo/dethpat/dethplcecd"));
- model.makeValue("/root/send/savedata/dethpatnifo/dethresncd" ,model.getValue("/root/main/dethpatinfo/dethpat/dethresncd"));
- model.makeValue("/root/send/savedata/dethpatnifo/dethflag" ,model.getValue("/root/main/dethpatinfo/dethpat/dethflag"));
- model.makeValue("/root/send/savedata/dethpatnifo/dethkindcd" ,model.getValue("/root/main/dethpatinfo/dethpat/dethkindcd"));
- model.makeValue("/root/send/savedata/dethpatnifo/basedethcascd" ,model.getValue("/root/main/dethpatinfo/dethpat/basedethcascd"));
- model.makeValue("/root/send/savedata/dethpatnifo/basedethcasnm" ,model.getValue("/root/main/dethpatinfo/dethpat/basedethcasnm"));
- model.makeValue("/root/send/savedata/dethpatnifo/mdldethcascd" ,model.getValue("/root/main/dethpatinfo/dethpat/mdldethcascd"));
- model.makeValue("/root/send/savedata/dethpatnifo/mdldethcasnm" ,model.getValue("/root/main/dethpatinfo/dethpat/mdldethcasnm"));
- model.makeValue("/root/send/savedata/dethpatnifo/direcdethcascd" ,model.getValue("/root/main/dethpatinfo/dethpat/direcdethcascd"));
- model.makeValue("/root/send/savedata/dethpatnifo/direcdethcasnm" ,model.getValue("/root/main/dethpatinfo/dethpat/direcdethcasnm"));
- model.makeValue("/root/send/savedata/dethpatnifo/viodethacdkindcd" ,model.getValue("/root/main/dethpatinfo/dethpat/viodethacdkindcd"));
- model.makeValue("/root/send/savedata/dethpatnifo/viodethacddd" ,model.getValue("/root/main/dethpatinfo/dethpat/viodethacddd"));
- model.makeValue("/root/send/savedata/dethpatnifo/viodethacdplcecd" ,model.getValue("/root/main/dethpatinfo/dethpat/viodethacdplcecd"));
- model.makeValue("/root/send/savedata/dethpatnifo/viodethacdtm" ,model.getValue("/root/main/dethpatinfo/dethpat/viodethacdtm"));
- model.makeValue("/root/send/savedata/dethpatnifo/viodethacdstatcd" ,model.getValue("/root/main/dethpatinfo/dethpat/viodethacdstatcd"));
- model.makeValue("/root/send/savedata/dethpatnifo/stlborncascd" ,model.getValue("/root/main/dethpatinfo/dethpat/stlborncascd"));
- model.makeValue("/root/send/savedata/dethpatnifo/stlbornsexcd" ,model.getValue("/root/main/dethpatinfo/dethpat/stlbornsexcd"));
- model.makeValue("/root/send/savedata/dethpatnifo/stlbornweekcnt" ,model.getValue("/root/main/dethpatinfo/dethpat/stlbornweekcnt"));
- model.makeValue("/root/send/savedata/dethpatnifo/stlbornmultpltscd" ,model.getValue("/root/main/dethpatinfo/dethpat/stlbornmultpltscd"));
- model.makeValue("/root/send/savedata/dethpatnifo/stlbornbdwtqty" ,model.getValue("/root/main/dethpatinfo/dethpat/stlbornbdwtqty"));
- model.makeValue("/root/send/savedata/dethpatnifo/womndethcascd" ,model.getValue("/root/main/dethpatinfo/dethpat/womndethcascd"));
- model.makeValue("/root/send/savedata/dethpatnifo/womndethweekcnt" ,model.getValue("/root/main/dethpatinfo/dethpat/womndethweekcnt"));
- model.makeValue("/root/send/savedata/dethpatnifo/partrtnrsltcd" ,model.getValue("/root/main/dethpatinfo/dethpat/partrtnrsltcd"));
- model.makeValue("/root/send/savedata/dethpatnifo/womndethbdwtqty" ,model.getValue("/root/main/dethpatinfo/dethpat/womndethbdwtqty"));
- model.makeValue("/root/send/savedata/dethpatnifo/womnpartrtnmthdcd" ,model.getValue("/root/main/dethpatinfo/dethpat/womnpartrtnmthdcd"));
- model.makeValue("/root/send/savedata/dethpatnifo/paritycd1" ,model.getValue("/root/main/dethpatinfo/dethpat/paritycd1"));
- model.makeValue("/root/send/savedata/dethpatnifo/paritycd2" ,model.getValue("/root/main/dethpatinfo/dethpat/paritycd2"));
- model.makeValue("/root/send/savedata/dethpatnifo/paritycd3" ,model.getValue("/root/main/dethpatinfo/dethpat/paritycd3"));
- model.makeValue("/root/send/savedata/dethpatnifo/paritycd4" ,model.getValue("/root/main/dethpatinfo/dethpat/paritycd4"));
- model.makeValue("/root/send/savedata/dethpatnifo/infantdethweekcnt" ,model.getValue("/root/main/dethpatinfo/dethpat/infantdethweekcnt"));
- model.makeValue("/root/send/savedata/dethpatnifo/cngntlmfmdyn" ,model.getValue("/root/main/dethpatinfo/dethpat/cngntlmfmdyn"));
- model.makeValue("/root/send/savedata/dethpatnifo/infantdethbdwtqty" ,model.getValue("/root/main/dethpatinfo/dethpat/infantdethbdwtqty"));
- model.makeValue("/root/send/savedata/dethpatnifo/multpltflag" ,model.getValue("/root/main/dethpatinfo/dethpat/multpltflag"));
- model.makeValue("/root/send/savedata/dethpatnifo/infantdethmtherpid" ,model.getValue("/root/main/dethpatinfo/dethpat/infantdethmtherpid"));
- model.makeValue("/root/send/savedata/dethpatnifo/nbabydethcascd" ,model.getValue("/root/main/dethpatinfo/dethpat/nbabydethcascd"));
- model.makeValue("/root/send/savedata/dethpatnifo/partrtnmthdcd" ,model.getValue("/root/main/dethpatinfo/dethpat/partrtnmthdcd"));
- if(submit("TXMRD00510")){
-
- messageBox("작성하신 정보가","I001");
- }else
- messageBox("저장이 ","E009");
- }
- /**
- * @ver : 2007-12-01
- * @desc : 초기화버튼 클릭시
- * @
- * @by : 이창록
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fCleardethinfo(){
- model.resetInstanceNode("/root/main/dethpatinfo/dethpat");
- rdo_firstdethkindcd.disabled ="false";
- rdo_seconddethkindcd.disabled ="false";
- rdo_thirddethkindcd.disabled ="false";
- rdo_fourdethkindcd.disabled ="false";
- rdo_fivedethkindcd.disabled ="false";
- model.refresh();
-
- }
- /**
- * @ver : 2007-12-01
- * @desc : 사망등록 조회에서 사망등록 정보 불러오기 (getParameter = SPMRD00500_pid)
- * @
- * @by : 이창록
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fdethinfo()
- {
- modal("SMMRD01100", 1,10, 10, "SMMRD01100", "/root/main/info", "/root/send");
-
- if(getParameter("SPMRD00500_pid") == "")
- return;
-
- var pid = getParameter("SPMRD00500_pid");
-
- model.makeValue("/root/send/reqdata/deth/pid", pid);
- if(submit("TRMRD00510")==true)
- {
- model.makeNode("/root/main/dethpatinfo/dethpat/pid" );
- model.makeNode("/root/main/dethpatinfo/dethpat/pnm" );
- model.makeNode("/root/main/dethpatinfo/dethpat/rrgstno" );
- model.makeNode("/root/main/dethpatinfo/dethpat/sex" );
- model.makeNode("/root/main/dethpatinfo/dethpat/age" );
- model.makeNode("/root/main/dethpatinfo/dethpat/telno" );
- model.makeNode("/root/main/dethpatinfo/dethpat/zipcode1" );
- model.makeNode("/root/main/dethpatinfo/dethpat/zipcode2" );
- model.makeNode("/root/main/dethpatinfo/dethpat/addr1" );
- model.makeNode("/root/main/dethpatinfo/dethpat/addr2" );
- model.makeNode("/root/main/dethpatinfo/dethpat/insukind");
- model.makeNode("/root/main/dethpatinfo/dethpat/indd");
- model.makeNode("/root/main/dethpatinfo/dethpat/dschdd");
- model.makeNode("/root/main/dethpatinfo/dethpat/inhospdd");
- model.makeNode("/root/main/dethpatinfo/dethpat/deptcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/atdocnm");
- model.makeNode("/root/main/dethpatinfo/dethpat/atdoctid");
- model.makeNode("/root/main/dethpatinfo/dethpat/inpathcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/opdd");
- model.makeNode("/root/main/dethpatinfo/dethpat/ordopendd");
- model.makeNode("/root/main/dethpatinfo/dethpat/dethdd");
- model.makeNode("/root/main/dethpatinfo/dethpat/dethtm");
- model.makeNode("/root/main/dethpatinfo/dethpat/dethplcecd");
- model.makeNode("/root/main/dethpatinfo/dethpat/dethresncd");
- model.makeNode("/root/main/dethpatinfo/dethpat/dethflag");
- model.makeNode("/root/main/dethpatinfo/dethpat/dethkindcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/basedethcascd");
- model.makeNode("/root/main/dethpatinfo/dethpat/basedethcasnm");
- model.makeNode("/root/main/dethpatinfo/dethpat/mdldethcascd");
- model.makeNode("/root/main/dethpatinfo/dethpat/mdldethcasnm");
- model.makeNode("/root/main/dethpatinfo/dethpat/direcdethcascd");
- model.makeNode("/root/main/dethpatinfo/dethpat/direcdethcasnm");
- model.makeNode("/root/main/dethpatinfo/dethpat/viodethacdkindcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/viodethacdplcecd");
- model.makeNode("/root/main/dethpatinfo/dethpat/viodethacdstatcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/viodethacddd");
- model.makeNode("/root/main/dethpatinfo/dethpat/viodethacdtm");
- model.makeNode("/root/main/dethpatinfo/dethpat/womndethcascd");
- model.makeNode("/root/main/dethpatinfo/dethpat/womndethweekcnt");
- model.makeNode("/root/main/dethpatinfo/dethpat/partrtnrsltcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/womndethbdwtqty");
- model.makeNode("/root/main/dethpatinfo/dethpat/womnpartrtnmthdcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/paritycd1");
- model.makeNode("/root/main/dethpatinfo/dethpat/paritycd2");
- model.makeNode("/root/main/dethpatinfo/dethpat/paritycd3");
- model.makeNode("/root/main/dethpatinfo/dethpat/paritycd4");
- model.makeNode("/root/main/dethpatinfo/dethpat/stlborncascd");
- model.makeNode("/root/main/dethpatinfo/dethpat/stlbornsexcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/stlbornweekcnt");
- model.makeNode("/root/main/dethpatinfo/dethpat/stlbornmultpltscd");
- model.makeNode("/root/main/dethpatinfo/dethpat/stlbornbdwtqty");
- model.makeNode("/root/main/dethpatinfo/dethpat/infantdethweekcnt");
- model.makeNode("/root/main/dethpatinfo/dethpat/infantdethbdwtqty");
- model.makeNode("/root/main/dethpatinfo/dethpat/infantdethmtherpid");
- model.makeNode("/root/main/dethpatinfo/dethpat/partrtnmthdcd");
- model.makeNode("/root/main/dethpatinfo/dethpat/cngntlmfmdyn");
- model.makeNode("/root/main/dethpatinfo/dethpat/multpltflag");
- model.makeNode("/root/main/dethpatinfo/dethpat/nbabydethcascd");
- zsdfGetInOrdDeptList(getUserInfo("dutplceinstcd"), "/root/init/orddept", "depthngnm", "asc");//입원과
- var atdoctid =model.getValue("/root/main/dethpatinfo/dethpat/atdoctid");
- model.setValue("/root/main/dethpatinfo/dethpat/atdocnm",atdoctid);
- fGetDrList("/root/send/reqdata", "/root/init/userlist/drlist", cmb_orddept.value, "total");//주치의 조회
- var cd=model.getValue( "/root/main/dethpatinfo/dethpat/dethresncd");
- if(cd=="02"){
- cmb_viokindcd.disabled ="false";
- cmb_viopleced.disabled ="false";
- cmb_statcd.disabled ="false";
- ipt_vioacddd.disabled ="false";
- ipt_vioacdtm.disabled ="false";
- }
- var sex=model.getValue("/root/main/dethpatinfo/dethpat/sex");
- if(sex=="M")
- {
- rdo_seconddethkindcd.disabled="true";
- }
- var age=model.getValue("/root/main/dethpatinfo/dethpat/age");
- if(age>=5)
- {
- rdo_firstdethkindcd.disabled="true";
- rdo_thirddethkindcd.disabled="true";
- }else if(age<=4){
- rdo_firstdethkindcd.disabled="false";
- rdo_thirddethkindcd.disabled="false";
- }
- }
- setParameter("SPMRD00500_pid", "");
- }
- /**
- * @ver : 2008/07/24
- * @desc : 선행,중간,직접 사인 조회
- * @
- * @by : 이창록
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fDethCd(flag,editflag){
- var Pid = model.getValue("/root/main/dethpatinfo/dethpat/pid");
- if(Pid==""){
- messageBox("환자번호를 입력","I008");
- return;
- }
- var bCode = model.getValue("/root/main/dethpatinfo/dethpat/basedethcascd");
- var mCode = model.getValue("/root/main/dethpatinfo/dethpat/mdldethcascd");
- var dCode = model.getValue("/root/main/dethpatinfo/dethpat/direcdethcascd");
- var dethflag = model.getValue("/root/temp/flag/dethflag");
- var dispdiagcd = model.getValue("/root/temp/selectdiaglist/dispdiagcd");
- clearParameter("SPMRT01500_FLAG");
- clearParameter("SPMRT01500_SEARCHDATA");
- // model.removeNodeset("/root/temp/selectdiaglist");
- if(dethflag=="1"){
- if((flag=="B")&&(editflag=="Y")){
- if(bCode!=""){
- setParameter("SPMRT01500_FLAG","1");
- setParameter("SPMRT01500_SEARCHDATA", bCode);
- }
- }else if((flag=="B")&&(editflag=="N")){
- setParameter("SPMRT01500_FLAG","1");
- setParameter("SPMRT01500_SEARCHDATA","");
- }
- //2009-08-01 nj 기준일지 파라메터 추가
- setParameter("stndd", model.getValue("/root/main/dethpatinfo/dethpat/dethdd"));
- setParameter("maininstyn", "N");
- modal("SPMRT01500");
- if(getNodesetCnt(model,"/root/temp/selectdiaglist/dispdiagcd") > 0){
- model.setValue("/root/main/dethpatinfo/dethpat/basedethcascd",model.getValue("/root/temp/selectdiaglist/dispdiagcd"));
- model.setValue("/root/main/dethpatinfo/dethpat/basedethcasnm",model.getValue("/root/temp/selectdiaglist/diaghngnm"));
- }
- }else if(dethflag=="2"){
- if((flag=="M")&&(editflag=="Y")){
- if(mCode!=""){
- setParameter("SPMRT01500_FLAG","1");
- setParameter("SPMRT01500_SEARCHDATA", mCode);
- }
- }else if((flag=="M")&&(editflag=="N")){
- setParameter("SPMRT01500_FLAG","1");
- setParameter("SPMRT01500_SEARCHDATA","");
- }
- //2009-08-01 nj 기준일지 파라메터 추가
- setParameter("stndd", model.getValue("/root/main/dethpatinfo/dethpat/dethdd"));
- setParameter("maininstyn", "N");
- modal("SPMRT01500");
- if(getNodesetCnt(model,"/root/temp/selectdiaglist/dispdiagcd") > 0){
- model.setValue("/root/main/dethpatinfo/dethpat/mdldethcascd",model.getValue("/root/temp/selectdiaglist/dispdiagcd"));
- model.setValue("/root/main/dethpatinfo/dethpat/mdldethcasnm",model.getValue("/root/temp/selectdiaglist/diaghngnm"));
- }
- }else if(dethflag=="3"){
-
- if((flag=="D")&&(editflag=="Y")){
- setParameter("SPMRT01500_FLAG","1");
- setParameter("SPMRT01500_SEARCHDATA", dCode);
- }else if((flag=="D")&&(editflag=="N")){
- setParameter("SPMRT01500_FLAG","1");
- setParameter("SPMRT01500_SEARCHDATA","");
- }
- //2009-08-01 nj 기준일지 파라메터 추가
- setParameter("stndd", model.getValue("/root/main/dethpatinfo/dethpat/dethdd"));
- setParameter("maininstyn", "N");
- modal("SPMRT01500");
- if(getNodesetCnt(model,"/root/temp/selectdiaglist/dispdiagcd") > 0){
- model.setValue("/root/main/dethpatinfo/dethpat/direcdethcascd",model.getValue("/root/temp/selectdiaglist/dispdiagcd"));
- model.setValue("/root/main/dethpatinfo/dethpat/direcdethcasnm",model.getValue("/root/temp/selectdiaglist/diaghngnm"));
- }
- }
- model.refresh();
- }
|