123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751 |
-
- /*****************************************************************************************************************************************************************************
-
- 호스피스기록지(SMMNH009.xfm - JScript )
-
- - Version :
- 1) : Ver.1.00.01
- ******************************************************************************************************************************************************************************/
- var xHospiceDetlPath = '/root/main/hospiceinfo/hospicedetl'; //호스피스 기본 인적사항 xPath
- var xPafaPath = '/root/main/hospicefamy/famylist'; //가족사항
- var xHiddenPath = '/root/hidden'; //hidden xPath
- /**
- * @group :
- * @ver : 2007.05.21
- * @by : 하재륜
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 호스피스 기록지 조회
- * @param :
- * @param :
- * @return :
- * @---------------------------------------------------
- */
-
- function fSearch(){
-
- //조회하기 전 넘겨줄 기본 조건 값 세팅
- model.removenode("/root/send");
- model.makeValue("/root/send/pid",model.getValue("/root/hidden/pid"));
- model.makeValue("/root/send/cretdt",model.getValue("/root/hidden/cretdt"));
- model.makeValue("/root/send/reqdeptcd",model.getValue("/root/hidden/reqdeptcd"));
- model.makeValue("/root/send/reqdd",model.getValue("/root/hidden/reqdd"));
-
- model.removenodeset(xHospiceDetlPath);
- grd_skinstatspec.rebuild();
-
- if(submit("TRMNH01501")){
- if( (model.getValue(xHospiceDetlPath + "/hngnm")) =="" ){
- if(checkOpener()){
- messageBox("등록된자료가 ","I004");
- window.close();
- }else{
- model.reset();
- model.refresh();
- messageBox("등록된자료가 ","I004");
- }
- }else{
- var opt_rrgstno = model.getValue(xHospiceDetlPath + "/rrgstno");
- model.setValue(xHospiceDetlPath + "/rrgstno",opt_rrgstno.substring(0,8)+"******");//주민번호 세팅
-
- fSearchFamy();//가족사항 조회
-
- fSearchInpt();//입원내역조회
-
- fSearchMasv();//심리사회적평가 조회
-
-
-
- if((model.getValue(xHospiceDetlPath + "/reqtypeflag"))=="1")
- cmb_reqhospnm.disabled = true;
- else
- cmb_reqhospnm.disabled = false;
- var genogrmnm = model.getValue(xHospiceDetlPath + "/genogrmnm");
- if( genogrmnm == ""){
- caption133.visible = false;
- }else{
- caption133.visible = true;
- }
- var agonalcd = model.getValue(xHospiceDetlPath + "/agonaldd");
- var agonal49 = getAddDay(agonalcd,"49");
- var agonal365 = getAddDay(agonalcd,"365");
- model.setValue("/root/temp/hospicedetl/agonal49",agonal49);
- model.setValue("/root/temp/hospicedetl/agonal365",agonal365);
-
-
- var cureprescondspec = model.getValue(xHospiceDetlPath + "/cureprescondspec");
-
- if ((isSearchString(cureprescondspec, "6")) ==true)
- ipt_cureprescondetcnm.disabled = false;
- else
- ipt_cureprescondetcnm.disabled = true;
-
- var ccspec = model.getValue(xHospiceDetlPath + "/ccspec");
-
- if ((isSearchString(ccspec, "5")) ==true)
- ipt_ccetcnm.disabled = false;
- else
- ipt_ccetcnm.disabled = true;
-
- if(Number(model.getValue(xHospiceDetlPath + "/chstval") ) > 0 ){
- model.setValue("/root/temp/hospicedetl/chstval","C");
- ipt_chstval.disabled = false;
- }
- if(Number(model.getValue(xHospiceDetlPath + "/pelvval") ) > 0 ){
- model.setValue("/root/temp/hospicedetl/pelvval","P");
- ipt_pelvval.disabled = false;
- }
- if(Number(model.getValue(xHospiceDetlPath + "/regionvas") ) > 0 ){
- model.setValue("/root/temp/hospicedetl/regionvas","R");
- ipt_regionvas.disabled = false;
- }
- if(Number(model.getValue(xHospiceDetlPath + "/neckvas") ) > 0 ){
- model.setValue("/root/temp/hospicedetl/neckvas","N");
- ipt_neckvas.disabled = false;
- }
- if(Number(model.getValue(xHospiceDetlPath + "/waistvas") ) > 0 ){
- model.setValue("/root/temp/hospicedetl/waistvas","W");
- ipt_waistvas.disabled =false;
- }
-
- if(Number(model.getValue(xHospiceDetlPath + "/headval") ) > 0 ){
- model.setValue("/root/temp/hospicedetl/headval","H");
- ipt_headval.disabled = false;
- }
- if(Number(model.getValue(xHospiceDetlPath + "/etcval") ) > 0 ){
- model.setValue("/root/temp/hospicedetl/etcval","E");
- ipt_etcval.disabled = false;
- ipt_etcnm.disabled = false;
- }
-
- //입실시간
- //if(ipt_inrmtm.value == ""){
- // ipt_inrmtm.value = getCurrentTime().substring(0,4);
- //}
-
- //피부상태
- if(grd_skinstatspec.valueMatrix(1,0)==""){
- chk_skinstatyn.value = "1";
- }else{
- chk_skinstatyn.value = "0";
- }
- if(chk_skinstatyn.value == "1"){
- grd_skinstatspec.isReadOnly(1,0) = true;
- grd_skinstatspec.isReadOnly(1,1) = true;
- btn_skinadd.disabled = true;
- }else{
- grd_skinstatspec.isReadOnly(1,0) = false;
- grd_skinstatspec.isReadOnly(1,1) = false;
- btn_skinadd.disabled = false;
- }
-
- model.makeNode(xHospiceDetlPath + "/deptcd");
- model.makeNode(xHospiceDetlPath + "/docucode");
- model.makeNode(xHiddenPath + "/mapindd");
- model.setValue(xHiddenPath + '/mapindd', model.getValue(xHospiceDetlPath + '/mapindd'));
-
- model.refresh();
- }
- }else{
- messageBox('조희를', 'E009');
- }
-
- }
-
- /**
- * @group :
- * @ver : 2007.05.24
- * @by : 하재륜
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 호스피스 환자가족 조회 (
- * @param :
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSearchFamy(){
- model.removenode("/root/send");
- model.makeValue("/root/send/pid",model.getValue(xHospiceDetlPath + "/pid"));
- model.removenodeset(xPafaPath);
-
- submit("TRMNH01503");
- }
- /**
- * @group :
- * @ver : 2007.05.28
- * @by : 하재륜
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 호스피스 입원내역 조회 (
- * @param : pid
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSearchInpt(){
- model.removenode("/root/send");
- model.makeValue("/root/send/pid",model.getValue(xHospiceDetlPath + "/pid"));
- model.makeValue("/root/send/cretdt",model.getValue(xHospiceDetlPath + "/cretdt"));
- model.removenodeset("/root/main/hospiceinpt/inptlist");
- submit("TRMNH01504");
- }
- /**
- * @group :
- * @ver : 2007.05.28
- * @by : 하재륜
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 심리사회적평가 조회 (
- * @param : pid
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSearchMasv(){
-
- model.removenode("/root/send");
- model.makeValue("/root/send/pid", model.getValue(xHospiceDetlPath + "/pid"));
- model.makeValue("/root/send/instcd",model.getValue(xHospiceDetlPath + "/instcd"));
- model.makeValue("/root/send/cretdt",model.getValue(xHospiceDetlPath + "/cretdt"));
- model.makeValue("/root/send/reqdeptcd",model.getValue(xHospiceDetlPath + "/reqdeptcd"));
- model.makeValue("/root/send/reqdd",model.getValue(xHospiceDetlPath + "/reqdd"));
- submit("TRMNH01505");
-
- }
-
-
- /**
- * @group :
- * @ver : 2007.05.18
- * @by : 하재륜
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 호스피스 기록지 저장
- * @desc : 가계도 저장 로직 추가
- 2007.11.10 - dhkim
- * @param :
- * @param :
- * @return :
- * @---------------------------------------------------
- */
-
- function fSave(){
-
- //임종일이 입력되어 있으면 환자구분을 제외(O), 퇴원사유를 병원임종(01), 종결일자를 임종일로 저장한다.
- var agonaldd = model.getValue(xHospiceDetlPath + "/agonaldd");
- var wardcd = model.getValue(xHospiceDetlPath + '/wardcd');
- var waitstat = model.getValue(xHospiceDetlPath + '/waitstat');
- var inrmdt = model.getValue(xHospiceDetlPath + '/inrmdt');
-
- if(agonaldd.length == 8){
- model.setValue(xHospiceDetlPath + "/waitstat","O");
- model.setValue(xHospiceDetlPath + "/dschtype","01");
- model.setValue(xHospiceDetlPath + "/enddd",agonaldd);
- model.refresh();
- }else{
-
- //대기상태(W)였을때 입실일이 입력되면 waitstat=I로 저장.
- //호스피스병동(병동코드:3050136000)에 입실된 환자가 아닌 경우에는 입실일 입력할수 없는 경고메세지 출력
- if(waitstat == 'W' && inrmdt.length == 8){
- if(wardcd == '3050136000'){
- model.setValue(xHospiceDetlPath + '/waitstat', 'I');
- }else{
- messageBox('호스피스병동에 입원한 환자가 아니므로 입실일을 입력', 'E001');
-
- model.setValue(xHospiceDetlPath + '/inrmdt', '');
- model.setValue(xHospiceDetlPath + '/inrmtm', '');
- model.setValue(xHospiceDetlPath + '/inrmmthdcd', '');
- model.setValue(xHospiceDetlPath + '/inrmacompstcd', '');
- model.refresh();
-
- return false;
- }
- }
-
- //제외일을 지울때 대기일자가 있으면 상태값을 대기상태로 변경
- if(waitstat == 'O'){
- if(model.getValue(xHospiceDetlPath + '/waitdt') != ''){
- model.setValue(xHospiceDetlPath + "/waitdt", "");
- model.setValue(xHospiceDetlPath + "/waitstat", "R");
- }
- }
-
- }
-
-
-
-
- //피부상태
- model.removenode("/root/send/skinstatspec/skinstatlists");
- if(grd_skinstatspec.rows<2) grd_skinstatspec.addRow();
-
- var chstval = model.getValue(xHospiceDetlPath + "/chstval") ; //가슴값
- var pelvval = model.getValue(xHospiceDetlPath + "/pelvval") ; //골반값
- var regionvas = model.getValue(xHospiceDetlPath + "/regionvas"); //복부값
- var neckvas = model.getValue(xHospiceDetlPath + "/neckvas") ; //목값
- var waistvas = model.getValue(xHospiceDetlPath + "/waistvas") ; //허리값
- var headval = model.getValue(xHospiceDetlPath + "/headval") ; //머리값
- var etcval = model.getValue(xHospiceDetlPath + "/etcval") ; //기타값
-
-
- //널처리
- if(chstval == "")
- chstval = "0";
-
- if(pelvval == "")
- pelvval = "0";
-
- if(regionvas == "")
- regionvas = "0";
-
- if(neckvas == "")
- neckvas = "0";
-
- if(waistvas == "")
- waistvas = "0";
-
- if(headval == "")
- headval = "0";
-
- if(etcval == "")
- etcval = "0";
-
- //파리채 column 명 정의
- var sData = "pid" // 01 등록번호
- + "▦cretdt" // 02 생성일자
- + "▦reqdeptcd" // 02-1 의뢰과
- + "▦reqdd" // 02-2 의뢰일자
- + "▦reqindd" // 02-3 의뢰희망일자
- + "▦instcd" // 03 기관코드
- + "▦indd" // 04 입원일자
- + "▦cretno" // 05 생성번호
- + "▦patcntctel" // 06 환자전화번호
- + "▦procercntctel" // 07 보호자전화번호
- + "▦endawaryn" // 08 말기에대한인식 환자
- + "▦proendawaryn" // 09 말기에대한인식 보호자
- + "▦cncrawaryn" // 09-1 암에대한인식 환자
- + "▦procncrawaryn" // 09-2 암에대한인식 보호자
- + "▦intvdd" // 10 면담일자
- + "▦reqdeptcd" // 11 의뢰과코드
- + "▦atdoctid" // 12 주치의ID
- + "▦atdoctnm" // 13 주치의명
- + "▦reqtypeflag" // 14 의뢰형태구분
- + "▦reqresnflag" // 15 의뢰사유구분
- + "▦reqhospnm" // 16 의뢰병원명
- + "▦exptresn" // 17 제외사유
- + "▦dschtype" // 18 퇴원사유
- + "▦diagcd" // 19 진단코드
- + "▦religncd" // 20 종교코드
- + "▦parishchrchnm" // 21 본당명
- + "▦baptnm" // 22 세례명
- + "▦zipcd1" // 23 우편번호1
- + "▦zipcd2" // 24 우편번호2
- + "▦zipcdseq" // 25 우편번호순서
- + "▦detladdr" // 26 상세주소
- + "▦baptismdd" // 27 영세일자
- + "▦emerbaptdd" // 28 대세일자
- + "▦sickdivser" // 29 병자성사
- + "▦attackdd" // 30 발병일자
- + "▦agonalhopeplcecd" // 31 임종희망장소코드
- + "▦agonaldd" // 32 임종일자
- + "▦agonalplcecd" // 33 임종장소코드
- + "▦chldrncnt" // 34 자녀수
- + "▦marystatcd" // 35 결혼상태코드
- + "▦recmdocuyn" // 36 추천서여부
- + "▦recmpsgecd" // 37 추천경유코드
- + "▦diagnmawaryn" // 38 진단명인지여부
- + "▦visittims" // 39 방문횟수
- + "▦chngroomdelyresncd" // 40 이실지연사유코드
- + "▦homecarereqyn" // 41 가정간호의뢰여부
- + "▦inrmdt" // 42 입실일자
- + "▦inrmtm" // 43 입실시간
- + "▦waitstat" // 44 환자구분
- + "▦waitdt" // 45 대기일자
- + "▦enddd" // 46 종결일자
- + "▦roomgrdecnts" // 47 병실등급내용
- + "▦recdd" // 48 등록일자
- + "▦rectm" // 49 등록시간
- + "▦inrmmthdcd" // 50 입실방법코드
- + "▦inrmacompstcd" // 51 입실시동반자코드
- + "▦itrdmoodcd" // 52 소개기분코드
- + "▦edcugrdecd" // 53 교육정도코드
- + "▦separationfamyyn" // 54 사별가족방문여부
- + "▦memodoryn" // 55 추모식행사여부
- + "▦mmmassyn" // 56 월미사참석여부
- + "▦donatyn" // 57 시신기증여부
- + "▦cureprescondspec" // 58 치료현황내역
- + "▦cureprescondetcnm" // 59 치료현황기타명
- + "▦jobcd" // 59-1 직업코드
- + "▦jobnm" // 60 직업명
- + "▦ccspec" // 61 C/C내역
- + "▦ccetcnm" // 62 C/C기타명
- + "▦skinstatyn" // 63 피부상태증상여부
- + "▦skinstatspec" // 64 피부상태내역
- + "▦emotstatspec" // 65 정서상태내역
- + "▦intesympspec" // 66 영적고통내역
- + "▦intereqspec" // 67 영적요구내역
- + "▦chstval" // 68 가슴값
- + "▦pelvval" // 69 골반값
- + "▦regionvas" // 70 복부값
- + "▦neckvas" // 71 목값
- + "▦waistvas" // 72 허리값
- + "▦headval" // 73 머리값
- + "▦etcval" // 74 기타값
- + "▦etcnm" // 75 기타명
-
- //가계도 데이터 설정
- + "▦mapindd" // 76 등록일자
- + "▦deptcd" // 77 등록부서
- + "▦docucode" // 78 서식코드
- + "▦genogrmnm" // 79 가계도 내용
- + "▦status" // 80 저장할 상태
- + "▦recdd" // 81 등록일자
- + "▦rectm" // 82 등록시간
-
-
- + "▦diagcd1" // 83 진단코드1
- + "▦diagcd2" // 84 진단코드2
- + "▩" ;
-
- //피부상태 xml데이터
- var xSkinstatspec = instance1.selectSingleNode(xHospiceDetlPath + "/skinstatspec/skinstatlists").xml;
- var xMap = instance1.selectSingleNode(xHospiceDetlPath + '/genogrmnm') ;
-
-
- if(model.getValue(xHospiceDetlPath + "/cretdt") == "" || model.getValue(xHospiceDetlPath + "/cretdt") == null)
- model.setValue(xHospiceDetlPath + "/cretdt",getCurrentDate());
-
- if(model.getValue(xHospiceDetlPath + "/waitdt") == "" || model.getValue(xHospiceDetlPath + "/waitdt") == null)
- model.setValue(xHospiceDetlPath + "/waitdt",getCurrentDate());
-
- sData += model.getValue(xHospiceDetlPath + "/pid") // 01 등록번호
- + "▦" + model.getValue(xHospiceDetlPath + "/cretdt") // 02 생성일자
- + "▦" + model.getValue(xHospiceDetlPath + "/reqdeptcd") // 02-1 의뢰과
- + "▦" + model.getValue(xHospiceDetlPath + "/reqdd") // 02-2 의뢰일자
- + "▦" + model.getValue(xHospiceDetlPath + "/reqindd") // 02-3 의뢰희망일자
- + "▦" + model.getValue(xHospiceDetlPath + "/instcd") // 03 기관코드
- + "▦" + model.getValue(xHospiceDetlPath + "/indd") // 04 입원일자
- + "▦" + model.getValue(xHospiceDetlPath + "/cretno") // 05 생성번호
- + "▦" + model.getValue(xHospiceDetlPath + "/patcntctel") // 06 환자전화번호
- + "▦" + model.getValue(xHospiceDetlPath + "/procercntctel") // 07 보호자전화번호
- + "▦" + model.getValue(xHospiceDetlPath + "/endawaryn") // 08 말기에대한인식 환자
- + "▦" + model.getValue(xHospiceDetlPath + "/proendawaryn") // 09 말기에대한인식 보호자
- + "▦" + model.getValue(xHospiceDetlPath + "/cncrawaryn") // 09-1 암에대한인식 환자
- + "▦" + model.getValue(xHospiceDetlPath + "/procncrawaryn") // 09-2 암에대한인식 보호자
- + "▦" + model.getValue(xHospiceDetlPath + "/intvdd") // 10 면담일자
- + "▦" + model.getValue(xHospiceDetlPath + "/reqdeptcd") // 11 의뢰과코드
- + "▦" + model.getValue(xHospiceDetlPath + "/atdoctid") // 12 주치의ID
- + "▦" + model.getValue(xHospiceDetlPath + "/atdoctnm") // 13 주치의명
- + "▦" + model.getValue(xHospiceDetlPath + "/reqtypeflag") // 14 의뢰형태구분
- + "▦" + model.getValue(xHospiceDetlPath + "/reqresnflag") // 15 의뢰사유구분
- + "▦" + model.getValue(xHospiceDetlPath + "/reqhospnm") // 16 의뢰병원명
- + "▦" + model.getValue(xHospiceDetlPath + "/exptresn") // 17 제외사유
- + "▦" + model.getValue(xHospiceDetlPath + "/dschtype") // 18 퇴원사유
- + "▦" + model.getValue(xHospiceDetlPath + "/diagcd") // 19 진단코드
- + "▦" + model.getValue(xHospiceDetlPath + "/religncd") // 20 종교코드
- + "▦" + model.getValue(xHospiceDetlPath + "/parishchrchnm") // 21 본당명
- + "▦" + model.getValue(xHospiceDetlPath + "/baptnm") // 22 세례명
- + "▦" + model.getValue(xHospiceDetlPath + "/zipcd1") // 23 우편번호1
- + "▦" + model.getValue(xHospiceDetlPath + "/zipcd2") // 24 우편번호2
- + "▦" + model.getValue(xHospiceDetlPath + "/zipcdseq") // 25 우편번호순서
- + "▦" + model.getValue(xHospiceDetlPath + "/detladdr") // 26 상세주소
- + "▦" + model.getValue(xHospiceDetlPath + "/baptismdd") // 27 영세일자
- + "▦" + model.getValue(xHospiceDetlPath + "/emerbaptdd") // 28 대세일자
- + "▦" + model.getValue(xHospiceDetlPath + "/sickdivser") // 29 병자성사
- + "▦" + model.getValue(xHospiceDetlPath + "/attackdd") // 30 발병일자
- + "▦" + model.getValue(xHospiceDetlPath + "/agonalhopeplcecd") // 31 임종희망장소코드
- + "▦" + model.getValue(xHospiceDetlPath + "/agonaldd") // 32 임종일자
- + "▦" + model.getValue(xHospiceDetlPath + "/agonalplcecd") // 33 임종장소코드
- + "▦" + model.getValue(xHospiceDetlPath + "/chldrncnt") // 34 자녀수
- + "▦" + model.getValue(xHospiceDetlPath + "/marystatcd") // 35 결혼상태코드
- + "▦" + model.getValue(xHospiceDetlPath + "/recmdocuyn") // 36 추천서여부
- + "▦" + model.getValue(xHospiceDetlPath + "/recmpsgecd") // 37 추천경유코드
- + "▦" + model.getValue(xHospiceDetlPath + "/diagnmawaryn") // 38 진단명인지여부
- + "▦" + model.getValue(xHospiceDetlPath + "/visittims") // 39 방문횟수
- + "▦" + model.getValue(xHospiceDetlPath + "/chngroomdelyresncd") // 40 이실지연사유코드
- + "▦" + model.getValue(xHospiceDetlPath + "/homecarereqyn") // 41 가정간호의뢰여부
- + "▦" + model.getValue(xHospiceDetlPath + "/inrmdt") // 42 입실일자
- + "▦" + model.getValue(xHospiceDetlPath + "/inrmtm") // 43 입실시간
- + "▦" + model.getValue(xHospiceDetlPath + "/waitstat") // 44 환자구분
- + "▦" + model.getValue(xHospiceDetlPath + "/waitdt") // 45 대기일자
- + "▦" + model.getValue(xHospiceDetlPath + "/enddd") // 46 종결일자
- + "▦" + model.getValue(xHospiceDetlPath + "/roomgrdecnts") // 47 병실등급내용
- + "▦" + model.getValue(xHospiceDetlPath + "/recdd") // 48 등록일자
- + "▦" + model.getValue(xHospiceDetlPath + "/rectm") // 49 등록시간
- + "▦" + model.getValue(xHospiceDetlPath + "/inrmmthdcd") // 50 입실방법코드
- + "▦" + model.getValue(xHospiceDetlPath + "/inrmacompstcd") // 51 입실시동반자코드
- + "▦" + model.getValue(xHospiceDetlPath + "/itrdmoodcd") // 52 소개기분코드
- + "▦" + model.getValue(xHospiceDetlPath + "/edcugrdecd") // 53 교육정도코드
- + "▦" + model.getValue(xHospiceDetlPath + "/separationfamyyn") // 54 사별가족방문여부
- + "▦" + model.getValue(xHospiceDetlPath + "/memodoryn") // 55 추모식행사여부
- + "▦" + model.getValue(xHospiceDetlPath + "/mmmassyn") // 56 월미사참석여부
- + "▦" + model.getValue(xHospiceDetlPath + "/donatyn") // 57 시신기증여부
- + "▦" + model.getValue(xHospiceDetlPath + "/cureprescondspec") // 58 치료현황내역
- + "▦" + model.getValue(xHospiceDetlPath + "/cureprescondetcnm") // 59 치료현황기타명
- + "▦" + model.getValue(xHospiceDetlPath + "/jobcd") // 59-1 직업코드
- + "▦" + model.getValue(xHospiceDetlPath + "/jobnm") // 60 직업명
- + "▦" + model.getValue(xHospiceDetlPath + "/ccspec") // 61 C/C내역
- + "▦" + model.getValue(xHospiceDetlPath + "/ccetcnm") // 62 C/C기타명
- + "▦" + model.getValue(xHospiceDetlPath + "/skinstatyn") // 63 피부상태증상여부
- + "▦" + xSkinstatspec // 64 피부상태내역
- + "▦" + model.getValue(xHospiceDetlPath + "/emotstatspec") // 65 정서상태내역
- + "▦" + model.getValue(xHospiceDetlPath + "/intesympspec") // 66 영적고통내역
- + "▦" + model.getValue(xHospiceDetlPath + "/intereqspec") // 67 영적요구내역
- + "▦" + chstval // 68 가슴값
- + "▦" + pelvval // 69 골반값
- + "▦" + regionvas // 70 복부값
- + "▦" + neckvas // 71 목값
- + "▦" + waistvas // 72 허리값
- + "▦" + headval // 73 머리값
- + "▦" + etcval // 74 기타값
- + "▦" + model.getValue(xHospiceDetlPath + "/etcnm") // 75 기타명
-
- //가계도 데이터 설정
- + "▦" + model.getValue(xHospiceDetlPath + "/mapindd") // 76 가계도 등록일자
- + "▦" + model.getValue(xHospiceDetlPath + "/deptcd") // 77 등록부서
- + "▦" + model.getValue(xHospiceDetlPath + "/docucode") // 78 서식코드
- + "▦" + model.getValue(xHospiceDetlPath + "/genogrmnm") // 79 가계도내용
- + "▦" + '' // 80 저장할 상태
- + "▦" + model.getValue(xHospiceDetlPath + "/recdd") // 81 등록일자
- + "▦" + model.getValue(xHospiceDetlPath + "/rectm") // 82 등록시간
-
- + "▦" + model.getValue(xHospiceDetlPath + "/diagcd1") // 83 진단코드1
- + "▦" + model.getValue(xHospiceDetlPath + "/diagcd2") // 84 진단코드2
- + "▩" ;
-
-
- //가족사항
- var sPafaData =
- "pid" //01 등록번호
- + "▦cretseqno" //02 생성일련번호
- + "▦instcd" //03 병원기관코드
- + "▦famyrel" //04 가족관계
- + "▦zipcd1" //05 우편번호1
- + "▦zipcd2" //06 우편번호2
- + "▦zipcdseq" //07 우편번호 순서(일련번호)
- + "▦detladdr" //08 상세주소(하위주소)
- + "▦famynm" //09 가족이름
- + "▦marytypeflag" //10 결혼형태구분
- + "▦cntctel" //11 전화번호
- + "▦maincarednor" //12 주간호제공자
- + "▦cmt" //13 비고
- + "▦separationfamyyn" //14 사별가족여부
- + "▩" ;
-
- for (i=1;i < grd_famylist.rows; i++ ) {
-
- sPafaData +=
- model.getValue(xPafaPath + '[' + i + ']/pid') //01 등록번호
- + '▦' + model.getValue(xPafaPath + '[' + i + ']/cretseqno') //02 생성일련번호
- + '▦' + model.getValue(xPafaPath + '[' + i + ']/instcd') //03 병원기관코드
- + '▦' + model.getValue(xPafaPath + '[' + i + ']/famyrel') //04 가족관계
- + '▦' + model.getValue(xPafaPath + '[' + i + ']/zipcd1') //05 우편번호1
- + '▦' + model.getValue(xPafaPath + '[' + i + ']/zipcd2') //06 우편번호2
- + '▦' + model.getValue(xPafaPath + '[' + i + ']/zipcdseq') //07 우편번호 순서(일련번호)
- + '▦' + model.getValue(xPafaPath + '[' + i + ']/detladdr') //08 상세주소(하위주소)
- + '▦' + model.getValue(xPafaPath + '[' + i + ']/famynm') //09 가족이름
- + '▦' + model.getValue(xPafaPath + '[' + i + ']/marytypeflag') //10 결혼형태구분
- + '▦' + model.getValue(xPafaPath + '[' + i + ']/cntctel') //11 전화번호
- + '▦' + model.getValue(xPafaPath + '[' + i + ']/maincarednor') //12 주간호제공자
- + '▦' + model.getValue(xPafaPath + '[' + i + ']/cmt') //13 비고
- + '▦' + model.getValue(xPafaPath + '[' + i + ']/separationfamyyn') //14 사별가족여부
- + '▩';
- }
-
- //심리사회적 평가
- var xMasvPath = "/root/main/hospicemasv/masvdetl/";
- var sMasvData =
- 'pid' //01 등록번호
- + '▦cretdt' //02 생성일자
- + '▦reqdeptcd' //02-1 의뢰과
- + '▦reqdd' //02-2 의뢰일자
- + '▦instcd' //03 병원기관코드
- + '▦intvdt' //04 면담일자
- + '▦recvintvnm' //05 피면담자명
- + '▦intvnm' //06 면담자명
- + '▦corpgrntcd' //07 의료보장코드
- + '▦soclinsuspec' //08 사회보험내역
- + '▦econstatcd' //09 경제상태코드
- + '▦econstatspec' //09-1 경제상태내역
- + '▦mainincmspec' //10 주 수입원내역
- + '▦ordamtownspec' //12 진료비부담자내역
- + '▦residncstatcd' //13 주거형태코드
- + '▦residncstatspec' //14 주거형태내역
- + '▦aidassocnyn' //15 회원회도움여부
- + '▦disbefocharspec' //16 병전성격내역
- + '▦soclstatpatflag' //17 심리사회적상태환자
- + '▦soclstatprocerflag' //18 심리사회적상태보호자
- + '▦mainprocerflag' //19 주보호자구분
- + '▦suptsysspec' //20 지지체계내역
- + '▦nursingstresspec' //21 간병관련스트레스내역
- + '▦funrlprepcd' //22 장례준비코드
- + '▦funrlprepspec' //23 장례준비내역
- + '▦cmt' //24 소견
- + '▩' ;
-
- sMasvData +=
- model.getValue(xMasvPath + 'pid') //01 등록번호
- + '▦' + model.getValue(xMasvPath + 'cretdt') //02 생성일자
- + '▦' + model.getValue(xMasvPath + 'reqdeptcd') //02-1 의뢰과
- + '▦' + model.getValue(xMasvPath + 'reqdd') //02-2 의뢰일자
- + '▦' + model.getValue(xMasvPath + 'instcd') //03 병원기관코드
- + '▦' + model.getValue(xMasvPath + 'intvdt') //04 면담일자
- + '▦' + model.getValue(xMasvPath + 'recvintvnm') //05 피면담자명
- + '▦' + model.getValue(xMasvPath + 'intvnm') //06 면담자명
- + '▦' + model.getValue(xMasvPath + 'corpgrntcd') //07 의료보장코드
- + '▦' + model.getValue(xMasvPath + 'soclinsuspec') //08 사회보험내역
- + '▦' + model.getValue(xMasvPath + 'econstatcd') //09 경제상태코드
- + '▦' + model.getValue(xMasvPath + 'econstatspec') //09-1 경제상태내역
- + '▦' + model.getValue(xMasvPath + 'mainincmspec') //10 주 수입원내역
- + '▦' + model.getValue(xMasvPath + 'ordamtownspec') //12 진료비부담자내역
- + '▦' + model.getValue(xMasvPath + 'residncstatcd') //13 주거형태코드
- + '▦' + model.getValue(xMasvPath + 'residncstatspec') //14 주거형태내역
- + '▦' + model.getValue(xMasvPath + 'aidassocnyn') //15 회원회도움여부
- + '▦' + model.getValue(xMasvPath + 'disbefocharspec') //16 병전성격내역
- + '▦' + model.getValue(xMasvPath + 'soclstatpatflag') //17 심리사회적상태환자
- + '▦' + model.getValue(xMasvPath + 'soclstatprocerflag') //18 심리사회적상태보호자
- + '▦' + model.getValue(xMasvPath + 'mainprocerflag') //19 주보호자구분
- + '▦' + model.getValue(xMasvPath + 'suptsysspec') //20 지지체계내역
- + '▦' + model.getValue(xMasvPath + 'nursingstresspec') //21 간병관련스트레스내역
- + '▦' + model.getValue(xMasvPath + 'funrlprepcd') //22 장례준비코드
- + '▦' + model.getValue(xMasvPath + 'funrlprepspec') //23 장례준비내역
- + '▦' + model.getValue(xMasvPath + 'cmt') //24 소견
- + '▩';
-
-
- model.removenode("/root/send");
- model.makeNode("/root/send");
- model.makeValue("/root/send/sData" ,sData );
- model.makeValue("/root/send/sPafaData" ,sPafaData );
- model.makeValue("/root/send/sMasvData" ,sMasvData );
-
- submit("TXMNH01502");
-
- if(checkOpener()){
- messageBox("자료 저장이 ","I002");
- }else{
- model.reset();
- model.refresh();
- }
- }
-
- /**
- * @group :
- * @ver : 2007.04.23
- * @by : 하재륜
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 화면 로드시
- * @param :
- * @return : 입력한날짜 + 날자
- * @---------------------------------------------------
- */
- function getAddDay(inputday,addend){
-
- var backDate ="";
- var rt = 0;
- var yyyy = inputday.substring(0,4) +"";
- var mm = inputday.substring(4,6) +"";
- var dd = inputday.substring(6,8) +"";
- var startDate = new Date(yyyy,(eval(mm)-1),dd);
- startDate.setTime(startDate.getTime()+(86400000*addend));
-
- NowYear = startDate.getYear();// 년
- NowMonth = startDate.getMonth()+1;// 월
- NowDay = startDate.getDate(); // 일
- backDate += NowYear ; //년도
-
- if (NowMonth < 10 )
- backDate += "0" + NowMonth ;
- else
- backDate += (startDate.getMonth() + 1);
- if (NowDay < 10 )
- backDate += "0" + NowDay ;
- else
- backDate += (startDate.getDate());
-
- return backDate ;
- }
-
-
- /**
- * @group :
- * @ver : 2007.11.01
- * @by : dhkim
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 호스피스 환자 가계도 팝업 호출해 가계도를 그려서 그 값을 리턴한다.
- * @param :
- * @param :
- * @return : xml instance
- * @---------------------------------------------------
- */
-
- function fGetFamyMap(){//GENOGRMNM
-
- var stMap = model.getValue(xHospiceDetlPath + '/genogrmnm');//DB에 저장된 가계도 instance를 stMap변수에 담는다.
-
- setParameter("SPMMR04711_shape", stMap); //가계도 팝업을 호출하기 전 parameter를 정의한다.
- modal("SPMMR04700", 1,10, 10, "SPMMR04700" ,"/root/temp/strmeta", "/root/send"); //가계도 팝업 호출
-
- return getParameter("SPMMR04711_shape"); //팝업화면에서 가계도를 그린 후의 결과를 리턴
-
- }
-
-
- /**
- * @group :
- * @ver : 2007.11.01
- * @by : dhkim
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 입력 및 수정할 데이터를 저장할 instance에 set한다.
- * mapindd(recd에
- * @param :
- * @param :
- * @return :
- * @---------------------------------------------------
- */
-
- function fSetFamyMapValue(popMapRslt){
-
-
- var pid = model.getValue(xHospiceDetlPath + '/pid'); //db에서 조회해 온 환자등록번호
-
- var sysDate = getCurrentDate(); //현재 날짜
- var stDate = model.getValue(xHiddenPath + '/mapindd'); //DB에 저장된 날짜(hidden에서 가져옴)
-
- //팝업에서 확인버튼 누르면 instance에 담아 DB에 저장, 닫기버튼 누르면 적용 안됨.
- if(sysDate == stDate){//update
- model.setValue(xHospiceDetlPath + '/mapindd', stDate); //indd 등록일자
- }else{//insert
- model.setValue(xHospiceDetlPath + '/mapindd', sysDate); //indd 등록일자
- }
-
- model.setValue(xHospiceDetlPath + '/genogrmnm', popMapRslt); // genogrmnm : 가계도 실지 내용
-
- }
-
-
-
-
|