1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>투석간호정보조사</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <wardrecinfo>
- <bfrecddtm/>
- <bfrecdd/>
- <bfrecuser/>
- <bfrectm/>
- <recdd/>
- <rectm/>
- <recuser/>
- <infooffer/>
- <patinfo/>
- <signno/>
- <room/>
- <patnm/>
- <sex/>
- <age/>
- <pid/>
- </wardrecinfo>
- </main>
- <send>
- <req/>
- <patgnrlinfo/>
- <wardrecinfo/>
- <bodyases/>
- </send>
- <init>
- <mlist>
- <M0068>
- <cdid/>
- <cdnm/>
- </M0068>
- <M0069>
- <cdid/>
- <cdnm/>
- </M0069>
- <M0070>
- <cdid/>
- <cdnm/>
- </M0070>
- <M0071>
- <cdid/>
- <cdnm/>
- </M0071>
- <M0072>
- <cdid/>
- <cdnm/>
- </M0072>
- <M0073>
- <cdid/>
- <cdnm/>
- </M0073>
- <M0074>
- <cdid/>
- <cdnm/>
- </M0074>
- </mlist>
- </init>
- <hidden>
- <paminfo/>
- <histinfo/>
- <bodyases>
- <mfmdstatinfo/>
- <shpaininfo/>
- <resorgninfo/>
- <digorgninfo/>
- <nvesysinfo/>
- <info/>
- </bodyases>
- </hidden>
- <signinfo>
- <signno/>
- </signinfo>
- <codeinfo/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fGetCmbList();
- fInit();
- fGetInitRecInfo();
- fInitEvent();
-
- model.refresh();
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- var status = "select";
- var allgInsYN = "Y";
-
- function fGetCmbList() {
- fGetNursHardCdInfo("'077','172','177'", getCurrentDate()); //CareCom.js172 교육요구도 사용여부 김홍점
-
- zbcfGetCodeList( new Array ( "M0068" //직업
- ,"M0069" //교육정도
- ,"M0070" //종교
- ,"M0071" //결혼상태
- ,"M0151" //결혼상태
- ,"M0072" //관계
- ,"M0073" //부위
- ,"M0376" //혈액형
- ,"M0075" //의식상태
- ,"M0079" //원인질환
- ,"P0008" //보험유형 //,"M0080" //의료보장
- ,"M0081" //경제상태
- ,"M0082" //투석경력종류
- ,"M0083" //혈관종류
- ,"M0084" //유형
- ,"M0088" //생존여부
- ,"M0090" //알러지
- ,"M0091" //흡연량
- ,"M0092" //음주종류
- ,"M0093" //기호식품
- ,"M0098" //동반자
- ,"M0100" //지남력
- ,"M0102" //요흔
- ,"M0103" //부착기구
- ,"M0104" //소변색깔
- ,"M0105" //소변증상
- ,"M0106" //대변색깔
- ,"M0107" //대변종류
- ,"M0109" //동공빛반사여부
- ,"M0110" //동공수치
- ,"M0411" //영적요구
- ,"M0210" //입원방법
- ,"M0375" //체온부위
- ,"M0368" //가족병력내역
- ,"M0532" //과거병력내역_20090406_SMY추가
- )
- , new Array ( "/root/init/mlist" //직업
- ,"/root/init/mlist" //교육정도
- ,"/root/init/mlist" //종교
- ,"/root/init/mlist" //결혼상태
- ,"/root/init/mlist" //결혼상태
- ,"/root/init/mlist" //관계
- ,"/root/init/mlist" //부위
- ,"/root/init/mlist" //혈액형
- ,"/root/init/mlist" //의식상태
- ,"/root/init/mlist" //원인질환
- ,"/root/init/mlist" //보험유형
- ,"/root/init/mlist" //경제상태
- ,"/root/init/mlist" //투석경력종류
- ,"/root/init/mlist" //혈관종류
- ,"/root/init/mlist" //유형
- ,"/root/init/mlist" //생존여부
- ,"/root/init/mlist" //알러지
- ,"/root/init/mlist" //흡연량
- ,"/root/init/mlist" //음주종류
- ,"/root/init/mlist" //기호식품
- ,"/root/init/mlist" //동반자
- ,"/root/init/mlist" //지남력
- ,"/root/init/mlist" //요흔
- ,"/root/init/mlist" //부착기구
- ,"/root/init/mlist" //소변색깔
- ,"/root/init/mlist" //소변증상
- ,"/root/init/mlist" //대변색깔
- ,"/root/init/mlist" //대변종류
- ,"/root/init/mlist" //동공빛반사여부
- ,"/root/init/mlist" //동공수치
- ,"/root/init/mlist" //영적요구
- ,"/root/init/mlist" //입원방법
- ,"/root/init/mlist" //체온부위
- ,"/root/init/mlist" //가족병력내역
- ,"/root/init/mlist" //과거병력내역
- )
- );
-
- model.refresh();
- }
-
-
- function fInitEvent() {
- fInitEventDialInfo();
- fInitEventHistInfo();
- }
-
- //화면 로딩시
- function fInit(){
- model.copyNode("/root/hidden/histinfo", "/root/main/histinfo");
-
- model.makeValue("/root/hidden/histinfo/pasthistinfo/pasthist/pasthistinclyn", "1");
- model.makeValue("/root/hidden/histinfo/famyhistinfo/famyhist/famyhistinclyn", "1");
- model.makeValue("/root/hidden/histinfo/inhistinfo/inhist/inhistinclyn", "1");
- model.makeValue("/root/hidden/histinfo/ophistinfo/ophist/ophistinclyn", "1");
- model.makeValue("/root/hidden/histinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn", "1");
- model.makeValue("/root/hidden/histinfo/allghistinfo/allghist/allghistinclyn", "1");
- model.makeValue("/root/main/histinfo/vacnhistinfo/vacnhist/vacnhistinfoinclyn", "1");
- model.makeValue("/root/main/histinfo/smokinfo/smok/smokinclyn", "1");
- model.makeValue("/root/main/histinfo/drunkinfo/drunk/drunkinclyn", "1");
- model.makeValue("/root/main/histinfo/gustofoodinfo/gustofood/gustofoodinclyn", "1");
- model.makeValue("/root/main/histinfo/tnsseffcinfo/tnsseffc/tnsseffcinclyn", "1");
-
- model.makeNode("/root/temp/cond/list");
- getPatientInfoDetails("/root/temp/cond/list");
-
- //각 화면 상단에 선택된 환자 정보 display 필요함. (병실-성명-S/A-등록번호)
- var pid;
- var room;
- var patnm;
- var sex;
- var age;
- var instcd;
- var orddeptcd;
- var indd;
- var ioflag = model.getValue("/root/temp/cond/list/ioflag");
- if(ioflag == "O") {
- indd = model.getValue("/root/temp/cond/list/orddd");
- } else {
- indd = model.getValue("/root/temp/cond/list/indd");
- }
-
- room = model.getValue("/root/temp/cond/list/roomcd");
- patnm = model.getValue("/root/temp/cond/list/hngnm");
- sex = model.getValue("/root/temp/cond/list/sex");
- age = model.getValue("/root/temp/cond/list/age");
- pid = model.getValue("/root/temp/cond/list/pid");
- instcd = model.getValue("/root/temp/cond/list/instcd");
- orddetpcd = model.getValue("/root/temp/cond/list/orddeptcd");
-
- cretno = model.getValue("/root/temp/cond/list/cretno");
- ioflag = model.getValue("/root/temp/cond/list/ioflag");
-
- model.makeValue("/root/main/wardrecinfo/room", room);
- model.makeValue("/root/main/wardrecinfo/patnm", patnm);
- model.makeValue("/root/main/wardrecinfo/sex", sex);
- model.makeValue("/root/main/wardrecinfo/age", age);
- model.makeValue("/root/main/wardrecinfo/pid", pid);
-
- var scrnid =getScreenID();
- var param = "pid▦orddd▦cretno▦ordtype▦scrnid"
- +"▩" + pid+"▦" +indd+"▦"+cretno+"▦"+ioflag+"▦"+scrnid+"▩";
- fEnrCareComRecInfo_SPMNZ002(param, "/root/main/enrcarecomrecinfo"); //타 간호정보조사지기록 유무확인 model.refresh();
- model.refresh();
- }
-
- //간호정보조사지 조회
- function fGetInitRecInfo() {
- var pid = model.getValue("/root/temp/cond/list/pid");
- var indd = model.getValue("/root/temp/cond/list/indd");
- var instcd = model.getValue("/root/temp/cond/list/instcd");
- var orddeptcd = model.getValue("/root/temp/cond/list/orddeptcd");
- var ioflag = model.getValue("/root/temp/cond/list/ioflag");
- if(ioflag == "O") {
- indd = model.getValue("/root/temp/cond/list/orddd");
- } else {
- indd = model.getValue("/root/temp/cond/list/indd");
- }
- var cretno = model.getValue("/root/temp/cond/list/cretno");
- // var instUseYN = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='172']/cdid");//교육요구도 추가 20091216 김홍점
- var instUseYN =""; //20100510 김홍점 외래 공통 교육요구도 개발에 의한 SPMRJ00300_교육요구도사정 사용안함.소경화itc요청
-
- //웹용 인자값 셋팅
- model.makeValue("/root/send/req/pid", pid);
- model.makeValue("/root/send/req/indd", indd);
- model.makeValue("/root/send/req/instcd", instcd);
- model.makeValue("/root/send/req/recflag", "08");
- model.makeValue("/root/send/req/docucode", "0000002437");
- model.makeValue("/root/send/req/deptcd", orddeptcd);
- if(pid == "") {
- messageBox("환자를 선택하지 ", "E007");
- window.close();
-
- } else {
- if(instUseYN == "Y"){
- btn_edurec.visible = true;
- grp_patinfo.attribute("style")="left:310px; top:50px; width:640px; height:20px;" ;
-
- setParameter("SPMRJ00300_pid", pid);
- setParameter("SPMRJ00300_orddd", indd);
- setParameter("SPMRJ00300_cretno", cretno);
- ivw_edurec.src = "../../../emr/jcimngtweb/xrw/SPMRJ00300_교육요구도사정.xrw";
- ivw_edurec.group2.visible = false;
-
- }else{
- grp_patinfo.attribute("style")="left:210px; top:50px; width:640px; height:20px;" ;
- btn_edurec.visible = false;
- }
-
- submit("TRMND00301", "false");
-
- var exeflag = model.getValue("/root/hidden/paminfo/paminfo/exeflag");
-
- if(exeflag == 'U') {
- submit("TRMND00302", "false");
-
- //인증번호set_20090722_SMY
- model.setValue("/root/signinfo/signno", model.getValue("/root/main/wardrecinfo/signno"));
-
- var existfamyinfo = model.getValue("/root/main/wardrecinfo/existfamyinfo");
- setParameter("SPMMR04711_shape", fGetXmlToStr("/root/main/wardrecinfo/genogrmnm/XMD"));
-
- //마지막 기록일시 셋팅
- model.setValue("/root/main/wardrecinfo/bfrecddtm", model.getValue("/root/hidden/paminfo/recinfo[recflag = '08' and indd = '" + indd + "']/recpkspec"));
- model.setValue("/root/main/wardrecinfo/bfrecuser", model.getValue("/root/hidden/paminfo/recinfo[recflag = '08' and indd = '" + indd + "']/bfrecuser"));
-
- } else {
- //이전 기록이 있을 경우 가장 최근의 정보 자동 셋팅
- if(model.getValue("/root/hidden/paminfo/recinfo/recpkspec") != ""){
- model.setValue("/root/main/wardrecinfo/bfrecddtm", model.getValue("/root/hidden/paminfo/recinfo/recpkspec"));
- fChgRecHistInfo();
-
- }else{
- submit("TRMND00304", "false");
-
- var exist = model.getValue("/root/hidden/cominfo/histinfo/existyn");
-
- var existfamyinfo = model.getValue("/root/hidden/cominfo/famyinfo/existfamyinfo");
- setParameter("SPMMR04711_shape", fGetXmlToStr("/root/hidden/cominfo/famyinfo/genogrmnm/XMD"));
-
- //가족사항 연동부분
- model.removeNodeset("/root/main/famyfact");
- if(getNodesetCount("/root/hidden/cominfo/famyfact") > 0){
- for(var i=1; i <= getNodesetCount("/root/hidden/cominfo/famyfact"); i++) {
- if(model.getValue("/root/hidden/cominfo/famyfact["+ i +"]/rela") != ""){
- model.duplicate("/root/main", "/root/hidden/cominfo/famyfact["+ i +"]");
- }
-
- }
- }
-
- if(exist == "N") {
- model.copyNode("/root/main/histinfo", "/root/hidden/histinfo");
- model.setValue("/root/main/histinfo/pasthistinfo/pasthist/pasthistinclyn", "");
- model.setValue("/root/main/histinfo/famyhistinfo/famyhist/famyhistinclyn", "");
- model.setValue("/root/main/histinfo/inhistinfo/inhist/inhistinclyn", "");
- model.setValue("/root/main/histinfo/ophistinfo/ophist/ophistinclyn", "");
- model.setValue("/root/main/histinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn", "");
- model.setValue("/root/main/histinfo/allghistinfo/allghist/allghistinclyn", "");
- model.setValue("/root/main/histinfo/vacnhistinfo/vacnhist/vacnhistinfoinclyn", "");
- model.setValue("/root/main/histinfo/smokinfo/smok/smokinclyn", "");
- model.setValue("/root/main/histinfo/drunkinfo/drunk/drunkinclyn", "");
- model.setValue("/root/main/histinfo/gustofoodinfo/gustofood/gustofoodinclyn", "");
- model.setValue("/root/main/histinfo/tnsseffcinfo/tnsseffc/tnsseffcinclyn", "");
- } else {
- model.copyNode("/root/main/histinfo", "/root/hidden/cominfo/histinfo");
- }
-
- model.setValue("/root/main/wardrecinfo/religncd", model.getValue("/root/hidden/paminfo/paminfo/religncd"));
- model.setValue("/root/main/wardrecinfo/baptnm", model.getValue("/root/hidden/paminfo/paminfo/baptnm"));
- model.setValue("/root/main/wardrecinfo/tel", model.getValue("/root/hidden/paminfo/paminfo/tel"));
- model.setValue("/root/main/wardrecinfo/mphone", model.getValue("/root/hidden/paminfo/paminfo/mphone"));
- model.setValue("/root/main/wardrecinfo/etcphone1", model.getValue("/root/hidden/paminfo/paminfo/etcphone1"));
- model.setValue("/root/main/wardrecinfo/etcphone2", model.getValue("/root/hidden/paminfo/paminfo/etcphone2"));
- //기록일시 정보를 쿼리에서 가져옴
- model.setValue("/root/main/wardrecinfo/recdd", model.getValue("/root/hidden/paminfo/paminfo/recdd"));
- model.setValue("/root/main/wardrecinfo/rectm", model.getValue("/root/hidden/paminfo/paminfo/rectm"));
- model.setValue("/root/main/wardrecinfo/recuser", model.getValue("/root/hidden/paminfo/paminfo/recuser"));
- model.refresh();
- }
- }
-
- fNotExistsNodeCreate(); //존재하지 않는 노드생성
-
- //가계도 연동부분.
- if(existfamyinfo == "Y") {
- model.setValue("/root/main/wardrecinfo/famytree/existyn", "Y");
- opt_existyn.refresh();
- }
-
- }
- status = "select";
-
- if(grd_allghist.rows > 1) {
- for(var i = 0; i < grd_allghist.cols; i++) {
- if(grd_allghist.valueMatrix(1, i) != "") {
- allgInsYN = "N";
- }
- }
- }
-
- model.refresh();
- }
-
- //노드 추가에 따른 존재하지 않는 노드생성
- function fNotExistsNodeCreate(){
- var spo2= instance1.selectSingleNode("/root/main/wardrecinfo/spo2");
- if ( spo2 == null ) {
- model.makeValue("/root/main/wardrecinfo/spo2","");
- }
- }
-
- function fGetXmlToStr(xPath) {
-
- var str = instance1.selectNodesXml(xPath);
-
- return str;
- }
-
- function fChkInclYN() {
- //병력 XML
- var pasthistyn = model.getValue("/root/main/histinfo/pasthistinfo/pasthist/pasthistinclyn");
- var famyhistyn = model.getValue("/root/main/histinfo/famyhistinfo/famyhist/famyhistinclyn");
- var inhistyn = model.getValue("/root/main/histinfo/inhistinfo/inhist/inhistinclyn");
- var ophistyn = model.getValue("/root/main/histinfo/ophistinfo/ophist/ophistinclyn");
- var rectmedistatyn = model.getValue("/root/main/histinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn");
- var allhistinclyn = model.getValue("/root/main/histinfo/allghistinfo/allghist/allghistinclyn");
- var vacnhistinclyn = model.getValue("/root/main/histinfo/vacnhistinfo/vacnhist/vacnhistinfoinclyn");
- var smokinclyn = model.getValue("/root/main/histinfo/smokinfo/smok/smokinclyn");
- var drunkinclyn = model.getValue("/root/main/histinfo/drunkinfo/drunk/drunkinclyn");
- var gustofoodinclyn = model.getValue("/root/main/histinfo/gustofoodinfo/gustofood/gustofoodinclyn");
- var tnsseffcinfoyn = model.getValue("/root/main/histinfo/tnsseffcinfo/tnsseffc/tnsseffcinclyn");
-
- //병력
- if(pasthistyn == "1") {
- model.makeValue("/root/send/wardrecinfo/pasthistinfo", fGetXmlToStr("/root/hidden/histinfo/pasthistinfo/pasthist"));
- } else {
- model.makeValue("/root/send/wardrecinfo/pasthistinfo", fGetXmlToStr("/root/main/histinfo/pasthistinfo/pasthist"));
- }
-
- if(famyhistyn == "1") {
- model.makeValue("/root/send/wardrecinfo/famyhistinfo", fGetXmlToStr("/root/hidden/histinfo/famyhistinfo/famyhist"));
- } else {
- model.makeValue("/root/send/wardrecinfo/famyhistinfo", fGetXmlToStr("/root/main/histinfo/famyhistinfo/famyhist"));
- }
-
- if(inhistyn == "1") {
- model.makeValue("/root/send/wardrecinfo/inhistinfo", fGetXmlToStr("/root/hidden/histinfo/inhistinfo/inhist"));
- } else {
- model.makeValue("/root/send/wardrecinfo/inhistinfo", fGetXmlToStr("/root/main/histinfo/inhistinfo/inhist"));
- }
-
- if(ophistyn == "1") {
- model.makeValue("/root/send/wardrecinfo/ophistinfo", fGetXmlToStr("/root/hidden/histinfo/ophistinfo/ophist"));
- } else {
- model.makeValue("/root/send/wardrecinfo/ophistinfo", fGetXmlToStr("/root/main/histinfo/ophistinfo/ophist"));
- }
-
- if(rectmedistatyn == "1") {
- model.makeValue("/root/send/wardrecinfo/rectmedistatinfo", fGetXmlToStr("/root/hidden/histinfo/rectmedistatinfo/rectmedistat"));
- } else {
- model.makeValue("/root/send/wardrecinfo/rectmedistatinfo", fGetXmlToStr("/root/main/histinfo/rectmedistatinfo/rectmedistat"));
- }
-
- if(allhistinclyn == "1") {
- model.makeValue("/root/send/wardrecinfo/allghistinfo", fGetXmlToStr("/root/hidden/histinfo/allghistinfo/allghist"));
- } else {
- model.makeValue("/root/send/wardrecinfo/allghistinfo", fGetXmlToStr("/root/main/histinfo/allghistinfo/allghist"));
- }
- //다른 기록지에서 저장한 이력을 조회하여 저장한다.
- model.makeValue("/root/send/wardrecinfo/vacnhistinfo", fGetXmlToStr("/root/main/histinfo/vacnhistinfo/vacnhist"));
- //병력의 흡연정보, 음주정보. 기호식품, 수혈부작용 내용은 이력테이블(hsif)에 저장하였으나, 요구사항 변경으로 인하여 일반정보테이블(pgif)의 기호정보에 저장한다.
- model.makeValue("/root/send/wardrecinfo/smokinfo", fGetXmlToStr("/root/main/histinfo/smokinfo/smok"));
- model.makeValue("/root/send/wardrecinfo/drunkinfo", fGetXmlToStr("/root/main/histinfo/drunkinfo/drunk"));
- model.makeValue("/root/send/wardrecinfo/gustofoodinfo", fGetXmlToStr("/root/main/histinfo/gustofoodinfo/gustofood"));
- model.makeValue("/root/send/wardrecinfo/tnsseffcinfo", fGetXmlToStr("/root/main/histinfo/tnsseffcinfo/tnsseffc"));
-
- /*
- if(vacnhistinclyn == "1") {
- model.makeValue("/root/send/wardrecinfo/vacnhistinfo", fGetXmlToStr("/root/hidden/histinfo/vacnhistinfo/vacnhist"));
- } else {
- model.makeValue("/root/send/wardrecinfo/vacnhistinfo", fGetXmlToStr("/root/main/histinfo/vacnhistinfo/vacnhist"));
- }
-
- if(smokinclyn == "1") {
- model.makeValue("/root/send/wardrecinfo/smokinfo", fGetXmlToStr("/root/hidden/histinfo/smokinfo/smok"));
- } else {
- model.makeValue("/root/send/wardrecinfo/smokinfo", fGetXmlToStr("/root/main/histinfo/smokinfo/smok"));
- }
-
- if(drunkinclyn == "1") {
- model.makeValue("/root/send/wardrecinfo/drunkinfo", fGetXmlToStr("/root/hidden/histinfo/drunkinfo/drunk"));
- } else {
- model.makeValue("/root/send/wardrecinfo/drunkinfo", fGetXmlToStr("/root/hidden/histinfo/drunkinfo/drunk"));
- }
-
- if(gustofoodinclyn == "1") {
- model.makeValue("/root/send/wardrecinfo/gustofoodinfo", fGetXmlToStr("/root/hidden/histinfo/gustofoodinfo/gustofood"));
- } else {
- model.makeValue("/root/send/wardrecinfo/gustofoodinfo", fGetXmlToStr("/root/hidden/histinfo/gustofoodinfo/gustofood"));
- }
-
- if(tnsseffcinfoyn == "1") {
- model.makeValue("/root/send/wardrecinfo/tnsseffcinfo", fGetXmlToStr("/root/hidden/histinfo/tnsseffcinfo/tnsseffc"));
- }else {
- model.makeValue("/root/send/wardrecinfo/tnsseffcinfo", fGetXmlToStr("/root/hidden/histinfo/tnsseffcinfo/tnsseffc"));
- }
- */
- }
-
- function fPatgnrlInfo(certFlag) {
-
- var userid = getUserId();
- model.removeNodeset("/root/send/wardinfo");
- //일반정보
- model.makeValue("/root/send/wardrecinfo/basebdinfoinclyn", model.getValue("/root/main/wardrecinfo/basebdinfoinclyn"));
- model.makeValue("/root/send/wardrecinfo/lowbp", model.getValue("/root/main/wardrecinfo/lowbp"));
- model.makeValue("/root/send/wardrecinfo/highbp", model.getValue("/root/main/wardrecinfo/highbp"));
- model.makeValue("/root/send/wardrecinfo/pulse", model.getValue("/root/main/wardrecinfo/pulse"));
- model.makeValue("/root/send/wardrecinfo/breth", model.getValue("/root/main/wardrecinfo/breth"));
- model.makeValue("/root/send/wardrecinfo/bdtp", model.getValue("/root/main/wardrecinfo/bdtp"));
- model.makeValue("/root/send/wardrecinfo/bdtppartcd", model.getValue("/root/main/wardrecinfo/bdtppartcd"));
- model.makeValue("/root/send/wardrecinfo/bdht", model.getValue("/root/main/wardrecinfo/bdht"));
- model.makeValue("/root/send/wardrecinfo/bdwt", model.getValue("/root/main/wardrecinfo/bdwt"));
- model.makeValue("/root/send/wardrecinfo/bdbtype", model.getValue("/root/main/wardrecinfo/bdbtype"));
- model.makeValue("/root/send/wardrecinfo/bdbtyperh", model.getValue("/root/main/wardrecinfo/bdbtyperh"));
- model.makeValue("/root/send/wardrecinfo/jobcd", model.getValue("/root/main/wardrecinfo/jobcd"));
- model.makeValue("/root/send/wardrecinfo/jobnm", model.getValue("/root/main/wardrecinfo/jobnm"));
- model.makeValue("/root/send/wardrecinfo/educgrdecd", model.getValue("/root/main/wardrecinfo/educgrdecd"));
- model.makeValue("/root/send/wardrecinfo/educgrdenm", model.getValue("/root/main/wardrecinfo/educgrdenm"));
- model.makeValue("/root/send/wardrecinfo/religncd", model.getValue("/root/main/wardrecinfo/religncd"));
- model.makeValue("/root/send/wardrecinfo/relignnm", model.getValue("/root/main/wardrecinfo/relignnm"));
- model.makeValue("/root/send/wardrecinfo/marystatcd", model.getValue("/root/main/wardrecinfo/marystatcd"));
- model.makeValue("/root/send/wardrecinfo/marystatnm", model.getValue("/root/main/wardrecinfo/marystatnm"));
- model.makeValue("/root/send/wardrecinfo/baptnm", model.getValue("/root/main/wardrecinfo/baptnm"));
- model.makeValue("/root/send/wardrecinfo/famytree", fGetXmlToStr("/root/main/wardrecinfo/famytree/existyn"));
- model.makeValue("/root/send/wardrecinfo/spo", model.getValue("/root/main/wardrecinfo/spo2"));
-
- model.makeValue("/root/send/wardrecinfo/relignreq", model.getValue("/root/main/wardrecinfo/relignreq"));
- model.makeValue("/root/send/wardrecinfo/tel", model.getValue("/root/main/wardrecinfo/tel"));
- model.makeValue("/root/send/wardrecinfo/mphone", model.getValue("/root/main/wardrecinfo/mphone"));
- model.makeValue("/root/send/wardrecinfo/etcphone1", model.getValue("/root/main/wardrecinfo/etcphone1"));
- model.makeValue("/root/send/wardrecinfo/etcphone2", model.getValue("/root/main/wardrecinfo/etcphone2"));
-
- //투석정보
- model.makeValue("/root/send/wardrecinfo/viralmarker", model.getValue("/root/main/wardrecinfo/viralmarker"));
- model.makeValue("/root/send/wardrecinfo/fstdialdd", model.getValue("/root/main/wardrecinfo/fstdialdd"));
- model.makeValue("/root/send/wardrecinfo/fstdialkind", model.getValue("/root/main/wardrecinfo/fstdialkind"));
- model.makeValue("/root/send/wardrecinfo/roomhospdialdd", model.getValue("/root/main/wardrecinfo/roomhospdialdd"));
- model.makeValue("/root/send/wardrecinfo/chosdd", model.getValue("/root/main/wardrecinfo/chosdd"));
- model.makeValue("/root/send/wardrecinfo/reqhosp", model.getValue("/root/main/wardrecinfo/reqhosp"));
- model.makeValue("/root/send/wardrecinfo/bodyases", fGetXmlToStr("/root/main/wardrecinfo/bodyases/bodyases"));
- model.makeValue("/root/send/wardrecinfo/dialcomninfoetc", fGetXmlToStr("/root/main/wardrecinfo/dialcomninfoetc/dialcomn"));
- model.makeValue("/root/send/wardrecinfo/dialcarer", fGetXmlToStr("/root/main/wardrecinfo/dialcarer/dialcarer"));
- model.makeValue("/root/send/wardrecinfo/trans", fGetXmlToStr("/root/main/wardrecinfo/trans/trans"));
- model.makeValue("/root/send/wardrecinfo/selfcareinfo", fGetXmlToStr("/root/main/wardrecinfo/selfcareinfo/selfcare"));
- model.makeValue("/root/send/wardrecinfo/rgstdialinfo", fGetXmlToStr("/root/main/wardrecinfo/rgstdialinfo/rgstdial"));
- model.makeValue("/root/send/wardrecinfo/progrec", fGetXmlToStr("/root/main/wardrecinfo/progrec/progrec"));
-
- //가족사항(가족연락처table)
- var updtdata = getGridUpdateData(grd_famyfact);
- model.makeValue("/root/send/wardrecinfo/famyfact", updtdata);
-
- //병력
- fChkInclYN();
-
- //기호정보
- model.makeValue("/root/send/wardrecinfo/gustoinfo", fGetXmlToStr("/root/main/wardrecinfo/gustoinfo/gusto"));
-
- //알러지
- if(grd_allghist.rows > 1) {
- if(allgInsYN == "Y") {
- grd_allghist.addStatus(1, "insert");
- }
- }
- model.makeValue("/root/send/wardrecinfo/allginfo", grd_allghist.getUpdateData());
-
- var ioflag = model.getValue("/root/temp/cond/list/ioflag");
- //웹 테스트
- model.makeValue("/root/send/wardrecinfo/pid", model.getValue("/root/temp/cond/list/pid"));
- if(ioflag == "O") {
- model.makeValue("/root/send/wardrecinfo/indd", model.getValue("/root/temp/cond/list/orddd"));
- } else {
- model.makeValue("/root/send/wardrecinfo/indd", model.getValue("/root/temp/cond/list/indd"));
- }
- model.makeValue("/root/send/wardrecinfo/instcd", model.getValue("/root/temp/cond/list/instcd"));
- model.makeValue("/root/send/wardrecinfo/deptcd", model.getValue("/root/temp/cond/list/orddeptcd"));
- model.makeValue("/root/send/wardrecinfo/recflag", "08");
- model.makeValue("/root/send/wardrecinfo/docucode", "0000002437");
- model.makeValue("/root/send/wardrecinfo/userid", userid);
- model.makeValue("/root/send/wardrecinfo/infooffer", model.getValue("/root/main/wardrecinfo/infooffer"));
-
- //수행구분(I, U에 따른 입력, 수정을위한 구분)
- model.makeValue("/root/send/wardrecinfo/exeflag", model.getValue("/root/hidden/paminfo/paminfo/exeflag"));
-
- //가계도
- if(model.getValue("/root/properties/parameters/SPMMR04711_shape/SPMMR04711_shapevalue") == "") {
- model.makeValue("/root/send/wardrecinfo/genogrmnm", "");
- } else {
- model.makeValue("/root/send/wardrecinfo/genogrmnm", model.getValue("/root/properties/parameters/SPMMR04711_shape/SPMMR04711_shapevalue"));
- }
-
- model.makeValue("/root/send/wardrecinfo/certflag", certFlag);
-
- model.makeValue("/root/send/wardrecinfo/recdd", model.getValue("/root/main/wardrecinfo/recdd"));
- model.makeValue("/root/send/wardrecinfo/rectm", model.getValue("/root/main/wardrecinfo/rectm"));
- model.makeValue("/root/send/wardrecinfo/recdt", model.getValue("/root/main/wardrecinfo/recdd") + model.getValue("/root/main/wardrecinfo/rectm"));
- }
-
- function fSetSignData() {
-
- var xWardRecPath = Sign.XPATH_SIGNINFO + "/wardrecinfo";
- var xHistPath = Sign.XPATH_SIGNINFO + "/histinfo";
- var xFamyPath = Sign.XPATH_SIGNINFO + "/famyfactinfo";
-
- /****************************** 환자기본정보 **************************************/
- //직업
- var jobcd = model.getValue(xWardRecPath + "/jobcd");
- if(jobcd != "") {
- if(jobcd == "10") {
- if(model.getValue(xWardRecPath + "/jobnm") == "") {
- model.setValue(xWardRecPath + "/jobcd", cmb_job.label);
- } else {
- model.setValue(xWardRecPath + "/jobcd", model.getValue(xWardRecPath + "/jobnm"));
- }
-
- } else {
- model.setValue(xWardRecPath + "/jobcd", cmb_job.label);
- }
- }
- //교육정도
- var educgrde = model.getValue(xWardRecPath + "/educgrdecd");
- if(educgrde != "") {
- if(educgrde == "15") {
- if(model.getValue(xWardRecPath + "/educgrdenm") != "") {
- model.setValue(xWardRecPath + "/educgrdecd", model.getValue(xWardRecPath + "/educgrdenm"));
-
- } else {
- model.setValue(xWardRecPath + "/educgrdecd", cmb_educgrde.label);
- }
- } else {
- model.setValue(xWardRecPath + "/educgrdecd", cmb_educgrde.label);
- }
- }
- //종교
- var relign = model.getValue(xWardRecPath + "/religncd");
- if(relign != "") {
- if(relign == "01") {
- model.setValue(xWardRecPath + "/religncd", cmb_relign.label);
- if(model.getValue(xWardRecPath + "/baptnm") != "") {
- model.setValue(xWardRecPath + "/religncd", model.getValue(xWardRecPath + "/religncd") + "(" + model.getValue(xWardRecPath + "/baptnm") + ")");
- }
-
- } else if( relign == "09") {
- if(model.getValue(xWardRecPath + "/relignnm") == "") {
- model.setValue(xWardRecPath + "/religncd", cmb_relign.label);
-
- } else {
- model.setValue(xWardRecPath + "/religncd", model.getValue(xWardRecPath + "/relignnm"));
- }
-
- } else {
- model.setValue(xWardRecPath + "/religncd", cmb_relign.label);
- }
- }
- //영적요구
- var relignreq = model.getValue(xWardRecPath + "/relignreq");
- if (relignreq != ""){
- model.setValue(xWardRecPath + "/relignreq", cmb_relignreq.label);
- }
- //결혼상태
- var marystat = model.getValue(xWardRecPath + "/marystatcd");
- if(marystat != "") {
- if(marystat == "06") {
- if(model.getValue(xWardRecPath + "/marystatnm") != "") {
- model.setValue(xWardRecPath + "/marystatcd", model.getValue(xWardRecPath + "/marystatnm"));
- } else {
- model.setValue(xWardRecPath + "/marystatcd", cmb_marystat.label);
- }
-
- } else {
- model.setValue(xWardRecPath + "/marystatcd", cmb_marystat.label);
- }
- }
-
- /****************************** 가족사항 **************************************/
- //가족사항 관계
- var rows = grd_famyfact.rows;
- var rela;
- for(var i = 1 ; i < rows; i++) {
- rela = model.getValue(xFamyPath + "/famyfact[" + i + "]/rela");
- if(rela != "") {
- model.setValue(xFamyPath + "/famyfact[" + i + "]/rela", grd_famyfact.labelMatrix(i, grd_famyfact.colRef("rela")));
- }
- }
- /****************************** 기본 신체정보 **************************************/
- //혈액형
- var bdbtype = model.getValue(xWardRecPath + "/bdbtype");
- if(bdbtype != "") {
- model.setValue(xWardRecPath + "/bdbtype", cmb_bdbtype.label);
- }
-
- //체온
- var bdtppart = model.getValue(xWardRecPath + "/bdtppartcd");
- if(bdtppart != "") {
- model.setValue(xWardRecPath + "/bdtppartcd", cmb_bdtp.label);
- }
-
- /****************************** 신체사정 **************************************/
- //의식상태
- var soulstat = model.getValue(xWardRecPath + "/bodyases/bodyases/soulstat");
- if(soulstat != "") {
- model.setValue(xWardRecPath + "/bodyases/bodyases/soulstat", cmb_soulstat.label);
- }
-
- //의사소통
- var comustat = model.getValue(xWardRecPath + "/bodyases/bodyases/comustat");
- if(comustat != "") {
- model.setValue(xWardRecPath + "/bodyases/bodyases/comustat", rdo_comustat.label);
- }
-
- //정서상태
- var emotstat = model.getValue(xWardRecPath + "/bodyases/bodyases/emotstat");
- var emotstatnm = model.getValue(xWardRecPath + "/bodyases/bodyases/emotstatnm");
- str = cmb_emotstat.label;
-
- if(emotstat != "") {
- if(emotstat == "07") {
- if(emotstatnm != "") {
- str += "(" + emotstatnm + ")";
- }
- }
- model.setValue(xWardRecPath + "/bodyases/bodyases/emotstat", str);
- }
-
- /****************************** Viral Marker 초기사정(Positive check) **************************************/
- //Viral Marker 초기사정(Positive check)
- var viralmarker = model.getValue(xWardRecPath + "/viralmarker");
- if(viralmarker != "") {
- arr = chk_viralmarker.label.split(" ");
- model.setValue(xWardRecPath + "/viralmarker", arr);
- }
-
- /****************************** 투석공통정보 **************************************/
- //최초투석유형
- var fstdialkind = model.getValue(xWardRecPath + "/fstdialkind");
- if(fstdialkind != "") {
- model.setValue(xWardRecPath + "/fstdialkind", cmb_fstdialkind.label);
- }
-
- //원인질환
- var cassickkind = model.getValue(xWardRecPath + "/dialcomninfoetc/dialcomn/cassickkind");
- var cassick = model.getValue(xWardRecPath + "/dialcomninfoetc/dialcomn/cassick");
- str = cmb_cassickkind.label;
-
- if(cassickkind != "") {
- if(cassickkind == "08") {
- if(cassick != "") {
- str += "(" + cassick + ")";
- }
- }
- model.setValue(xWardRecPath + "/dialcomninfoetc/dialcomn/cassickkind", str);
- }
-
- //신부전
- var kidnfaluryn = model.getValue(xWardRecPath + "/dialcomninfoetc/dialcomn/kidnfaluryn");
- if(kidnfaluryn != "") {
- model.setValue(xWardRecPath + "/dialcomninfoetc/dialcomn/kidnfaluryn", rdo_kidnfaluryn.label);
- }
-
- //의료보장
- var medigrant = model.getValue(xWardRecPath + "/dialcomninfoetc/dialcomn/medigrant");
- if(medigrant != "") {
- model.setValue(xWardRecPath + "/dialcomninfoetc/dialcomn/medigrant", cmb_medigrant.label);
- }
-
- //보건소혜택
- var healcntrprofitkind = model.getValue(xWardRecPath + "/dialcomninfoetc/dialcomn/healcntrprofitkind");
- var healcntrprofit = model.getValue(xWardRecPath + "/dialcomninfoetc/dialcomn/healcntrprofit");
- str = cmb_healcntrprofitkind.label;
-
- if(healcntrprofitkind != "") {
- if(healcntrprofitkind == "2") {
- if(healcntrprofit != "") {
- str += "(" + healcntrprofit + ")";
- }
- }
- model.setValue(xWardRecPath + "/dialcomninfoetc/dialcomn/healcntrprofitkind", str);
- }
-
- //경제상태
- var economystat = model.getValue(xWardRecPath + "/dialcomninfoetc/dialcomn/economystat");
- if(economystat != "") {
- model.setValue(xWardRecPath + "/dialcomninfoetc/dialcomn/economystat", cmb_economystat.label);
- }
-
- /****************************** 투석경력 **************************************/
- //투석경력 투석유형
- var rows = grd_dialcare.rows;
- var dialkind;
- for(var i = 1 ; i < rows; i++) {
- dialkind = model.getValue(xWardRecPath + "/dialcarer/dialcarer/dialcarer[" + i + "]/dialkind");
- if(dialkind != "") {
- model.setValue(xWardRecPath + "/dialcarer/dialcarer/dialcarer[" + i + "]/dialkind", grd_dialcare.labelMatrix(i, grd_dialcare.colRef("dialkind")));
- }
- }
-
- /****************************** 신이식 **************************************/
- //신이식
- var selfstat = model.getValue(xWardRecPath + "/trans/trans/selfstat");
- var selfstatcnt = "";
- var selfstat_arr = "";
- if(selfstat != ""){
- selfstatcnt = rdo_selfstat.label;
- }
- if(selfstat == "01") {
- selfstatcnt = selfstatcnt;
-
- }else if(selfstat == "02") {
- if(model.getValue(xWardRecPath + "/trans/trans/impsiresn") != ""){
- selfstatcnt = selfstatcnt + " (사유 : " + model.getValue(xWardRecPath + "/trans/trans/impsiresn") + ")";
- }
-
- }else if(selfstat == "03") {
- selfstat_arr = chk_possresn.label.split("▦");
-
- if(model.getValue(xWardRecPath + "/trans/trans/possresnetc") != ""){
- selfstatcnt = selfstatcnt + " (" + selfstat_arr + ":" + model.getValue(xWardRecPath + "/trans/trans/possresnetc") + ")";
- }else{
- selfstatcnt = selfstatcnt + " (" +selfstat_arr + ")";
- }
- }
- model.setValue(xWardRecPath + "/trans/trans/selfstat", selfstatcnt);
-
- /****************************** 자가간호 **************************************/
- //자가간호 가능여부
- var selfcareyn = model.getValue(xWardRecPath + "/selfcareinfo/selfcare/selfcareyn");
- if(selfcareyn != "") {
- model.setValue(xWardRecPath + "/selfcareinfo/selfcare/selfcareyn", rdo_selfcareyn.label);
- }
-
- /****************************** 등록시 투석정보 **************************************/
- //등록시 투석종류
- var dialkind = model.getValue(xWardRecPath + "/rgstdialinfo/rgstdial/dialkind");
- if(dialkind != "") {
- model.setValue(xWardRecPath + "/rgstdialinfo/rgstdial/dialkind", rdo_dialkind.label);
- }
-
- //혈관종류
- var veslkind = model.getValue(xWardRecPath + "/rgstdialinfo/rgstdial/veslkind");
- if(veslkind != "") {
- model.setValue(xWardRecPath + "/rgstdialinfo/rgstdial/veslkind", cmb_veslkind.label);
- }
-
- //유형
- var vesltype = model.getValue(xWardRecPath + "/rgstdialinfo/rgstdial/vesltype");
- if(vesltype != "") {
- model.setValue(xWardRecPath + "/rgstdialinfo/rgstdial/vesltype", cmb_vesltype.label);
- }
-
- /****************************** 병력 **************************************/
- //과거병력
- var rows = grd_pasthist.rows;
- var histspec;
- for(var i = 1 ; i < rows; i++) {
- histspec = model.getValue(xHistPath + "/pasthistinfo/pasthist/pasthist[" + i + "]/histspec");
- if(histspec != "") {
- model.setValue(xHistPath + "/pasthistinfo/pasthist/pasthist[" + i + "]/histspec", grd_pasthist.labelMatrix(i, grd_pasthist.colRef("histspec")));
- }
- }
-
- //가족병력
- var famyrel;
- var existyn;
- rows = grd_famyhist.rows;
-
- for(var i = 1 ; i < rows; i++) {
- famyrel = model.getValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/famyrel");
- existyn = model.getValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/existyn");
- histspec = model.getValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/histspec");
-
- if(famyrel != "") {
- model.setValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/famyrel", grd_famyhist.labelMatrix(i, grd_famyhist.colRef("famyrel")));
- }
-
- if(existyn != "") {
- model.setValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/existyn", grd_famyhist.labelMatrix(i, grd_famyhist.colRef("existyn")));
- }
-
- if(histspec != "") {
- model.setValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/histspec", grd_famyhist.labelMatrix(i, grd_famyhist.colRef("histspec")));
- }
- }
-
- //allergy구분
- rows = grd_allghist.rows;
- var flag;
-
- for(var i = 1 ; i < rows; i++) {
- flag = model.getValue(xHistPath + "/allghistinfo/allghist/allghist[" + i + "]/flag");
- if(flag != "") {
- model.setValue(xHistPath + "/allghistinfo/allghist/allghist[" + i + "]/flag", grd_allghist.labelMatrix(i, grd_allghist.colRef("flag")));
- }
- }
-
- /****************************** 기호정보 **************************************/
- //흡연정보
- var smokinfoyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfoyn");
- var smokinfocnt = model.getValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfocnt");
- if(smokinfoyn != "") {
- if(smokinfoyn == "2" && smokinfocnt != ""){
- model.setValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfoyn", rdo_smokinfo.label + "(" + smokinfocnt + ")");
- }else{
- model.setValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfoyn", rdo_smokinfo.label);
- }
- }
-
- //음주정보
- var drunkinfoyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn");
- if(drunkinfoyn != "") {
- if(drunkinfoyn == "2") {
- if(model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfokind") != "") {
- if(model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoterm") != "") {
- model.setValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfokind") + " "
- + model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoterm") + cap_drunkinfoterm.label);
- }else{
- model.setValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfokind"));
- }
- } else {
- if(model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoterm") != "") {
- model.setValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoterm") + cap_drunkinfoterm.label);
- }else{
- model.setValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn", rdo_drunkinfo.label);
- }
- }
- } else {
- model.setValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn", rdo_drunkinfo.label);
- }
- }
-
- //기호식품
- var gustofoodyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofoodyn");
- if(gustofoodyn != "") {
- if(gustofoodyn == "2") {
- if(model.getValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofooddetl") != "") {
-
- model.setValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofoodyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofooddetl"));
-
- } else {
- model.setValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofoodyn", rdo_gustofoodyn.label);
- }
- } else {
- model.setValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofoodyn", rdo_gustofoodyn.label);
- }
- }
-
- //수혈부작용
- var tnsseffcyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn");
- if(tnsseffcyn != "") {
- if(tnsseffcyn == "2") {
- if(model.getValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcdetl") != "") {
- model.setValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcdetl"));
- } else {
- model.setValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn", rdo_tnsseffcyn.label);
- }
- } else {
- model.setValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn", rdo_tnsseffcyn.label);
- }
- }
-
-
- /*
- //흡연정보 양(갑/일)
- rows = grd_smokinfo.rows;
- var dosetoday;
-
- for(var i = 1 ; i < rows; i++) {
- dosetoday = model.getValue(xHistPath + "/histinfo/smokinfo/smok/smok[" + i + "]/dosetoday");
- if(dosetoday != "") {
- model.setValue(xHistPath + "/histinfo/smokinfo/smok/smok[" + i + "]/dosetoday", grd_smokinfo.labelMatrix(i, grd_smokinfo.colRef("dosetoday")));
- }
- }
-
- //음주정보 종류
- rows = grd_drunkinfo.rows;
- var kind;
-
- for(var i = 1 ; i < rows; i++) {
- kind = model.getValue(xHistPath + "/histinfo/drunkinfo/drunk/drunkinfo[" + i + "]/kind");
- if(kind != "") {
- model.setValue(xHistPath + "/histinfo/drunkinfo/drunk/drunkinfo[" + i + "]/dosetoday", grd_drunkinfo.labelMatrix(i, grd_drunkinfo.colRef("kind")));
- }
- }
-
- //기호식품종류
- rows = grd_gustofood.rows;
-
- for(var i = 1 ; i < rows; i++) {
- kind = model.getValue(xHistPath + "/histinfo/gustofoodinfo/gustofood/gustofood[" + i + "]/kind");
- if(kind != "") {
- model.setValue(xHistPath + "/histinfo/gustofoodinfo/gustofood/gustofood[" + i + "]/kind", grd_gustofood.labelMatrix(i, grd_gustofood.colRef("kind")));
- }
- }
-
- //수혈부작용
- var tnsyn = model.getValue(xHistPath + "/tnsseffcinfo/tnsseffc/tnsseffc/tnsyn");
- var tnsdetl = model.getValue(xHistPath + "/tnsseffcinfo/tnsseffc/tnsseffc/tnsdetl");
- str = rdo_tnsseffcyn.label;
-
- if(tnsyn != "") {
- if(tnsyn == "2") {
- if(tnsdetl != "") {
- str += "(" + tnsdetl + ")";
- }
- }
- model.setValue(xHistPath + "/tnsseffcinfo/tnsseffc/tnsseffc/tnsyn", str);
- }
- */
-
- }
-
- function fMake_SignData() {
- //JCI 교육요구도 추가 (20100113 김홍점)
- //var instUseYN = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='172']/cdid");//교육요구도 추가 20091216 김홍점
- var instUseYN="";//20100510 김홍점 외래 공통 교육요구도 개발에 따라 사용안함. 소경화itc요청
- if ( instUseYN =="Y" ){
- Sign.addnode("/root/temp/signdata/edurecinfo");
- }
-
- Sign.addnode("/root/main/wardrecinfo");
- Sign.addnode("/root/main/histinfo");
- //가족사항 정보 생성(그리드형식)
- model.removeNodeset("/root/main/famyfactinfo");
- model.makeNode("/root/main/famyfactinfo");
- for(var i=1; i <= getNodesetCount("/root/main/famyfact"); i++) {
- if(model.getValue("/root/main/famyfact["+ i +"]/rela") != ""){
- model.duplicate("/root/main/famyfactinfo", "/root/main/famyfact["+ i +"]");
- }
-
- }
- Sign.addnode("/root/main/famyfactinfo");
-
- fSetSignData();
- }
-
- //이전기록일시 변경
- function fChgRecHistInfo(){
- var recpkspec = (model.getValue("/root/main/wardrecinfo/bfrecddtm")).split("|");
- var bfrecpid = recpkspec[0];
- var bfrecindd = recpkspec[1];
- var bfreccretno = recpkspec[2];
- var bfrecflag = recpkspec[3];
- var bfrecinstcd = recpkspec[4];
-
- model.removeNodeset("/root/send/req");
- model.makeNode("/root/send/req");
-
- model.makeValue("/root/send/req/pid", bfrecpid);
- model.makeValue("/root/send/req/indd", bfrecindd);
- model.makeValue("/root/send/req/cretno", bfreccretno);
- model.makeValue("/root/send/req/instcd", bfrecinstcd);
- model.makeValue("/root/send/req/recflag", bfrecflag);
- //model.makeValue("/root/send/req/docucode", "0000002437");
- //model.makeValue("/root/send/req/deptcd", orddeptcd);
-
- submit("TRMND00302", false);
- setParameter("SPMMR04711_shape", fGetXmlToStr("/root/main/wardrecinfo/genogrmnm/XMD"));
-
- model.refresh();
- }
- ]]>
- </script>
- <submission id="TRMND00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/paminfo"/>
- <submission id="TRMND00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main"/>
- <submission id="TRMND00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/init/newpat"/>
- <submission id="TRMND00304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/cominfo"/>
- <submission id="TXMND00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/wardrecinfo"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/codeinfo/codelist"/>
- <submission id="TRMNZ00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/enrcarecomrecinfo"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/ENRSignEngine.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,6;1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">투석간호정보조사</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <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; "/>
- <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; "/>
- <button id="btn_gnrlinfo" class="btn_sw" group="tab" selected="true" style="left:0px; top:49px; width:100px; height:22px; ">
- <caption>투석정보</caption>
- <toggle case="case1" ev:event="onclick"/>
- </button>
- <button id="btn_bodyasses" class="btn_sw" group="tab" style="left:100px; top:49px; width:100px; height:22px; ">
- <caption>병력</caption>
- <toggle case="case2" ev:event="onclick"/>
- </button>
- <button id="btn_edurec" class="btn_sw" visibility="hidden" group="tab" style="left:200px; top:49px; width:100px; height:22px; ">
- <caption>교육요구도</caption>
- <toggle case="case_edurec" ev:event="onclick"/>
- </button>
- <switch id="switch1" style="left:0px; top:70px; width:1194px; height:670px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case1" selected="true" style="left:0px; top:0px; width:1194px; height:674px; ">
- <import id="import1" instancetype="merge" src="..\..\..\emr\wardcareweb\xrw\SMMNW08400_투석정보.xrw" style="left:0px; top:0px; width:1194px; height:670px; "/>
- </case>
- <case id="case2" style="left:0px; top:0px; width:1194px; height:673px; border-color:transparent; ">
- <import id="import4" instancetype="merge" src="..\..\..\emr\wardcareweb\xrw\SMMNW08800_병력.xrw" style="left:0px; top:0px; width:1194px; height:670px; "/>
- </case>
- <case id="case_edurec" style="left:0px; top:0px; width:1194px; height:673px; border-color:transparent; ">
- <iviewer id="ivw_edurec" style="left:0px; top:0px; width:1194px; height:670px; "/>
- </case>
- </switch>
- <line id="line64" class="line_3" style="x1:0px; y1:41px; x2:1194px; y2:41px; "/>
- <line id="line13" class="line_1" style="x1:0px; y1:13px; x2:1194px; y2:13px; "/>
- <caption id="cap_bfrecdt" class="cell_1" style="left:0px; top:18px; width:80px; height:23px; vertical-align:middle; ">이전기록일시</caption>
- <caption id="cap_bfrecuser" class="cell_1" style="left:239px; top:18px; width:80px; height:23px; vertical-align:middle; ">이전기록자</caption>
- <output id="opt_bfrecuser" ref="/root/main/wardrecinfo/bfrecuser" class="output_fix" style="left:322px; top:20px; width:98px; height:19px; "/>
- <caption id="cap_recdt" class="cell_1" style="left:424px; top:18px; width:80px; height:23px; vertical-align:middle; ">기록일시</caption>
- <input id="ipt_recdd" ref="/root/main/wardrecinfo/recdd" class="input_default" inputtype="date" style="left:507px; top:20px; width:100px; height:19px; "/>
- <input id="ipt_rectm" ref="/root/main/wardrecinfo/rectm" class="input_default" format="hh:nn" validateformat="true" style="left:610px; top:20px; width:50px; height:19px; "/>
- <caption id="cap_recuser" class="cell_1" style="left:663px; top:18px; width:80px; height:23px; vertical-align:middle; ">기록자</caption>
- <output id="opt_recuser" ref="/root/main/wardrecinfo/recuser" class="output_fix" style="left:746px; top:20px; width:98px; height:19px; "/>
- <caption id="cap_infodnor" class="cell_1" style="left:847px; top:18px; width:80px; height:23px; vertical-align:middle; ">정보제공자</caption>
- <input id="ipt_infodnor" ref="/root/main/wardrecinfo/infooffer" class="input_default" maxlength="10" style="left:930px; top:20px; width:100px; height:19px; "/>
- <button id="btn_save" class="btn2_letter4" visibility="hidden" style="left:1062px; top:49px; width:64px; height:19px; ">
- <caption>임시저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPatgnrlInfo("T");
-
- if(submit("TXMND00301") == true) {
- grd_famyfact.clearStatus();
- model.setValue("/root/send/wardrecinfo", "");
- messageBox("저장이 ", "I001");
- } else {
- messageBox("저장에 실패하였습니다", "E");
- }
- ]]>
- </script>
- </button>
- <button id="button2" class="btn5_letter4" style="left:1129px; top:49px; width:64px; height:19px; ">
- <caption>인증저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //var instUseYN = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='172']/cdid");//교육요구도 추가 20091216 김홍점
- var instUseYN =""; //20100510 김홍점 외래 공통 교육요구도 개발에 의한 SPMRJ00300_교육요구도사정 사용안함.소경화itc요청
- //가족사항 : 관계 필수 입력
- for(var i = 1 ; i < grd_famyfact.rows; i++) {
- var rela = model.getValue("/root/main/famyfact[" + i + "]/rela");
- if(rela == "") {
- messageBox("[가족사항 - 관계]는 필수 입력사항입니다.", "I");
- return;
- }
- }
-
- fPatgnrlInfo("C");
- //20100115 JCI 김홍점 교육요구도 적용병원만 데이타 저장 및 인증데이타 생성
- if ( instUseYN =="Y"){
- model.removenode('/root/temp/signdata');
-
- if ( !ivw_edurec.window.javascript.fSave() ){
- return;
- }
-
- var xEduRecPath = '/root/temp/signdata/edurecinfo';
-
- fMNWCareInfoRecMakeForJCI(xEduRecPath, ivw_edurec, "Y");//carecom.js (srcPath, destObj , 응급간호정보조사여부 구분 erYn 'Y' 이어야 퇴원교육요구도가 안보임.)
- }
- Sign.certreload = true ;
- if (Sign.signprocess() == true){
- //src="C:\CMCProject\application\webapps\emr\formmngtweb\xrw\SSMRF03800_OCR뷰어.xrw"
- // alert("인증성공" );
- // alert("1. 인증성공여부 false / true \n\n" + Sign.signedInfos[0]); // 인증성공여부 false / true
- // alert("2. 인증할 데이터 정보 (미기록 노드 제거전 원본 노드) \n\n" + Sign.signedInfos[3]); // 인증할 데이터 정보 (미기록 노드 제거전 원본 노드)
- // alert("2.--> text 데이터(없는 노드 포함된) text 형태 변형 결과 \n\n" + Sign.signedInfos[4]); // [3] 데이터(없는 노드 포함된) text 형태 변형 결과
- // alert("3. 인증할 데이터 정보(미기록 노드 제거된 정보) \n\n" + Sign.signedInfos[1]); // 인증할 데이터 정보(미기록 노드 제거된 정보)
- // alert("3. -->text 데이터(없는 노드 제거된) text 형태 변형 결과 \n\n" + Sign.signedInfos[5]); // ★[1] 데이터(없는 노드 제거된) text 형태 변형 결과 >>> [5]
- // alert("3. -->text --> sign 공인인증 처리후 데이터 \n\n" + Sign.signedInfos[2]); // ★공인인증 처리후 데이터 >>> [2]
- var ioflag = model.getValue("/root/temp/cond/list/ioflag");
- if(ioflag == "O") {
- indd = model.getValue("/root/temp/cond/list/orddd");
- } else {
- indd = model.getValue("/root/temp/cond/list/indd");
- }
-
- model.makeValue("/root/send/wardrecinfo/pid", model.getValue("/root/temp/cond/list/pid"));
- model.makeValue("/root/send/wardrecinfo/indd", indd);
- model.makeValue("/root/send/wardrecinfo/signno", model.getValue("/root/signinfo/signno")); //20090722_SMY변경
- model.makeValue("/root/send/wardrecinfo/cretno", model.getValue("/root/temp/cond/list/cretno"));
- model.makeValue("/root/send/wardrecinfo/recdd", model.getValue("/root/main/wardrecinfo/recdd"));
- model.makeValue("/root/send/wardrecinfo/rectm", model.getValue("/root/main/wardrecinfo/rectm"));
- model.makeValue("/root/send/wardrecinfo/recsaveflag", "Y");
- model.makeValue("/root/send/wardrecinfo/signflag", "02");
- model.makeValue("/root/send/wardrecinfo/signgenrflag", model.getValue("/root/temp/cond/list/ioflag"));
- model.makeValue("/root/send/wardrecinfo/formcd", "0000002437");
- model.makeValue("/root/send/wardrecinfo/orddeptcd", model.getValue("/root/temp/cond/list/orddeptcd"));
- model.makeValue("/root/send/wardrecinfo/orddrid", model.getValue("/root/temp/cond/list/medispclid"));
- model.makeValue("/root/send/wardrecinfo/signbfcnts", Sign.signedInfos[1]);
- model.makeValue("/root/send/wardrecinfo/signaftcnts", Sign.signedInfos[2]);
-
- model.makeValue("/root/send/wardrecinfo/wardcd", model.getValue("/root/temp/cond/list/wardcd"));
- model.makeValue("/root/send/wardrecinfo/roomcd", model.getValue("/root/temp/cond/list/roomcd"));
- model.makeValue("/root/send/wardrecinfo/instcd", model.getValue("/root/temp/cond/list/instcd"));
-
- if(submit("TXMND00301") == true) {
- grd_famyfact.clearStatus();
- model.setValue("/root/send/wardrecinfo", "");
- messageBox("저장이 ", "I001");
- model.makeValue("/root/hidden/paminfo/paminfo/exeflag", "U");
- fGetInitRecInfo(); //재조회
- fInitEvent();
-
- } else {
- messageBox("저장에 실패하였습니다", "E");
- }
- }
- ]]>
- </script>
- </button>
- <select1 id="cmb_bfrecddtm" ref="/root/main/wardrecinfo/bfrecddtm" class="combo_default" navindex="16" appearance="minimal" style="left:83px; top:20px; width:155px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/paminfo/recinfo">
- <label ref="bfrecddtm"/>
- <value ref="recpkspec"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fChgRecHistInfo();
- ]]>
- </script>
- </select1>
- <group id="grp_patinfo" scroll="auto" style="left:210px; top:50px; width:640px; height:20px; ">
- <caption id="caption10" ref="/root/main/wardrecinfo/pid" style="left:534px; top:0px; width:96px; height:20px; font-family:돋움; "/>
- <caption id="caption1" ref="/root/main/wardrecinfo/room" style="left:53px; top:0px; width:52px; height:20px; font-family:돋움; "/>
- <caption id="caption2" ref="/root/main/wardrecinfo/patnm" style="left:180px; top:0px; width:60px; height:20px; font-family:돋움; "/>
- <caption id="caption3" class="search_name" style="left:112px; top:1px; width:68px; height:17px; ">환자명:</caption>
- <caption id="caption4" ref="/root/main/wardrecinfo/sex" style="left:308px; top:0px; width:32px; height:20px; font-family:돋움; "/>
- <caption id="caption68" class="search_name" style="left:0px; top:1px; width:55px; height:17px; ">병실:</caption>
- <caption id="caption5" class="search_name" style="left:250px; top:1px; width:58px; height:17px; ">성별:</caption>
- <caption id="caption7" ref="/root/main/wardrecinfo/age" style="left:408px; top:0px; width:37px; height:20px; font-family:돋움; "/>
- <caption id="caption8" class="search_name" style="left:350px; top:1px; width:58px; height:17px; ">나이:</caption>
- <caption id="caption9" class="search_name" style="left:450px; top:1px; width:81px; height:17px; ">등록번호:</caption>
- </group>
- <button id="button1" class="btn2_letter6" style="left:1040px; top:49px; width:86px; height:19px; ">
- <caption>전체기록삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setCareInfoDel("TXMND00301"); //CareCom.js
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:756px; width:1195px; height:22px; ">
- <line id="line62" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|