1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792 |
- <?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>당일입원, 전과, 전실 환자 list</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <cond>
- <wardcd/>
- <orddd/>
- <flag>00</flag>
- <pid/>
- </cond>
- <inpatlist>
- <inpatlist>
- <inrmcnfmflag/>
- <chngdeptroomflag/>
- <recov/>
- <acptflag/>
- <room/>
- <pid/>
- <patnm/>
- <sexage/>
- <mealprcp/>
- <mealprcpcd/>
- <fromward/>
- <fromroom/>
- <fromdeptnm/>
- <fromdrnm/>
- <toward/>
- <toroom/>
- <todeptnm/>
- <todrnm/>
- <diagnm/>
- <resn/>
- <savetm/>
- <indd/>
- <cretno/>
- <seqno/>
- <instcd/>
- <careinrmdd/>
- <careinrmtm/>
- <mskind/>
- <histstat/>
- <acptflagcd/>
- <appflagcd/>
- <appdd/>
- <apptm/>
- <appid/>
- <pamacptdd/>
- <pamacpttm/>
- <pamacptid/>
- <prestwardcd/>
- <prestroomcd/>
- <prestroomgrde/>
- <prestroomtype/>
- <prestcentcd/>
- <prestsuporddeptcd/>
- <prestorddeptcd/>
- <prestmedispclid/>
- <prestatdoctid/>
- <chngwardcd/>
- <chngroomcd/>
- <chngroomgrde/>
- <chngroomtype/>
- <oxyyn/>
- <suctyn/>
- <chngcentcd/>
- <chngsuporddeptcd/>
- <chngorddeptcd/>
- <chngmedispclid/>
- <chngatdoctid/>
- <specordyn/>
- <enddd/>
- <endid/>
- <prestremcd/>
- <chngprestrem/>
- <fstrgstrid/>
- <fstrgstdt/>
- <lastupdtrid/>
- <lastupdtdt/>
- <prcpyn/>
- <calcscorcd/>
- <chngyn/>
- <clacdd/>
- <calctm/>
- <deptcd/>
- <deptnm/>
- <userid/>
- <usernm/>
- <curdd/>
- <curtm/>
- <orddeptcd/>
- <ordflag/>
- <inpath/>
- <ordtype/>
- <medispclphonno/>
- <tocntctel/>
- </inpatlist>
- </inpatlist>
- <baseinfo/>
- <rtninfo>
- <rtnmsg>
- <resultflag/>
- </rtnmsg>
- <patinfolist>
- <pid/>
- <patnm/>
- <sexage/>
- </patinfolist>
- </rtninfo>
- <menuitems>
- <gnrlmenu>
- <item>
- <name>환자이름표출력</name>
- <func>fOpenNamePrint</func>
- </item>
- <item>
- <name>입실취소</name>
- <func>fCancelinRmdd</func>
- </item>
- <item>
- <name>-</name>
- <func/>
- </item>
- <item>
- <name>입원교육확인서(병동)</name>
- <func>fOpenInEdOcrPrint1</func>
- </item>
- <item>
- <name>입원교육확인서(신생아)</name>
- <func>fOpenInEdOcrPrint2</func>
- </item>
- <item>
- <name>입원교육확인서(분만실)</name>
- <func>fOpenInEdOcrPrint3</func>
- </item>
- <item>
- <name>입원교육확인서(BMT)</name>
- <func>fOpenInEdOcrPrint4</func>
- </item>
- <item>
- <name>입원교육확인서(병동)_전자동의서</name>
- <func>fOpenInEdOcrPrint1Elec</func>
- </item>
- <item>
- <name>입원교육확인서(신생아)_전자동의서</name>
- <func>fOpenInEdOcrPrint2Elec</func>
- </item>
- <item>
- <name>입원교육확인서(분만실)_전자동의서</name>
- <func>fOpenInEdOcrPrint3Elec</func>
- </item>
- <item>
- <name>입원교육확인서(BMT)_전자동의서</name>
- <func>fOpenInEdOcrPrint4Elec</func>
- </item>
- <item>
- <name>CP환자 입원계획표</name>
- <func>fOpenCpInPlan</func>
- </item>
- </gnrlmenu>
- </menuitems>
- <method/>
- <cpinfo>
- <termcd>
- <cdid/>
- <supcdid/>
- </termcd>
- </cpinfo>
- <attfileinfo/>
- </main>
- <send>
- <req/>
- </send>
- <init>
- <dept>
- <depthngnm/>
- <deptcd/>
- </dept>
- </init>
- <hidden>
- </hidden>
- <temp>
- <specordininfo/>
- <mdruginfo/>
- </temp>
- <tmp>
- <req/>
- </tmp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- //메뉴에서 사용할 경우 사용자의 병동으로 세팅
- var instcd = getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = 'W';
- var rslt_ref = "/root/init";
- zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref);
- cmb_wardlist.refresh();
-
- // 간호하드코딩 테이블 조회_20090416(ByJA)
- // 간호하드코딩 테이블 조회 추가 20100714 안도영
- var pCode = "'210', '070', 'T49','204'"; // 조회할 CdGrupID 코드정보
- // '210' => 식사처방,수가코드 정보
- // '070' => 입실체크시 식사처방 필요없는 부서코드 정보
- var pDate = getCurrentDate(); // 조회기준일자
- fGetNursHardCdInfo(pCode, pDate);
- fGetMealCalCdInfo(); // 식사처방 하드코딩 수정 관련 함수 (간호공통테이블 사용) 20100715 안도영
-
- if (checkOpener() && !isNull(opener.javascript.getParameter("SMMNW01100_PARAM1")) ) {
- var param = opener.javascript.getParameter("SMMNW01100_PARAM1") + "^";
- var orddd = getArrayData (param, 0, 0, "^", "▩");
- var wardcd = getArrayData (param, 0, 1, "^", "▩");
-
- model.setValue("/root/main/cond/wardcd",wardcd);
- model.setValue("/root/main/cond/orddd", orddd);
- } else {
- var wardcd = getUserInfo("dutplcecd");
- var orddd = getCurrentDate();
- model.setValue("/root/main/cond/wardcd",wardcd);
- model.setValue("/root/main/cond/orddd", orddd);
- cmb_wardlist.disabled = false;
- }
-
- // 708 출력기능 요청에 따른 출력 버튼 추가(708 병동 간호사일 경우만) - 141126 AYS
- var sDutplcdcd = model.getValue("/root/code/codeinfo/codelist[cdgrupid = '204']/cdid");
-
- //alert("sDutplcdcd : " + sDutplcdcd);
-
- if (sDutplcdcd == getUserInfo("dutplcecd") || getUserInfo("userid") == "ENR" ) {
- btn_prt.visible = true;
- img1.attribute("left") = 926;
- }
- fGetPatList();
-
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fGetPatList() {
- model.removenode("/root/send");
- model.makeValue("/root/send/req/wardcd", model.getValue("/root/main/cond/wardcd"));
- model.makeValue("/root/send/req/orddd" , model.getValue("/root/main/cond/orddd"));
- model.makeValue("/root/send/req/pid" , model.getValue("/root/main/cond/pid"));
-
- submit("TRMNW01102");
- grd_patList.colHidden(grd_patList.colRef("mealprcpcd")) = true;
- fSetMealNm();
- fSetCellStyle();
- fReadOnlyCtrl();
- fEnableCtrl();
-
-
- grd_patList.frozenCols = grd_patList.colRef("patnm");
- model.setFocus("ipt_barcodepid"); // 환자팔찌바코드입력창으로 포커스설정
- }
-
- function fCalcNextDate() {
- var dt = getCurrentDate();
- dt = dt.toDate("YYYYMMDD");
- dt = dt.getAddDate(1, "D");
- dt = dt.getDateFormat("YYYYMMDD");
-
- return dt;
- }
-
- function fSetMealNm() {
- var mealprcpcdCol = grd_patList.colRef("mealprcpcd");
- for(var i = grd_patList.fixedRows; i < grd_patList.rows; i++) {
-
- //Q9140002( NPO(1) ) , Q1011001( 일반 )
- //if(grd_patList.valueMatrix(i, mealprcpcdCol) != "Q9140002" && grd_patList.valueMatrix(i, mealprcpcdCol) != "Q1011001") {
-
- //grd_patList.valueMatrix(i, mealprcpcdCol) = grd_patList.valueMatrix(i, grd_patList.colRef("mealprcp"));
- // } else {
- // continue;
- // }
- }
- }
-
- function fSetCellStyle() {
- var col = grd_patList.colRef("fromward");
- for(var i = 0; i < grd_patList.rows; i++) {
- if(model.getValue("/root/main/inpatlist/inpatlist[" + i + "]/fromward") == "OPD") {
- grd_patList.cellStyle("color", i, col, i, col) = "0000FF"
- }
- }
- grd_patList.rebuild();
- }
-
- function fReadOnlyCtrl() {
- grd_patList.isReadOnly(1,1, grd_patList.rows-1, grd_patList.cols-1) = true;
- }
-
- // 입실확인 체크박스 제어
- function fEnableCtrl() {
- for(var i = grd_patList.fixedRows; i < grd_patList.rows; i++) {
- var value = model.getValue("/root/main/inpatlist/inpatlist[" + i + "]/chngdeptroomflag");
- var acptflagcd = model.getValue("/root/main/inpatlist/inpatlist[" + i + "]/acptflagcd");
- var histstat = model.getValue("/root/main/inpatlist/inpatlist[" + i + "]/histstat");
- var seqno = model.getValue("/root/main/inpatlist/inpatlist[" + i + "]/seqno");
- var appflagcd = model.getValue("/root/main/inpatlist/inpatlist[" + i + "]/appflagcd");
- // 입원
- if(value == "01") {
- grd_patList.isreadonly(i, grd_patList.colRef("inrmcnfmflag")) = true; // 입실대상자는 입실체크를 체크박스로 하지 않고 등록번호를 입력하거나 환자팔찌를 바코드를 이용하여 체크 할 수 있다. 따라서 체크박스 비활성화.
-
- if(model.getValue("/root/main/inpatlist/inpatlist[" + i + "]/prcpyn") == "Y" || appflagcd == "3" ){
- grd_patList.isreadonly(i, grd_patList.colRef("mealprcp")) = true; // 이미식사처방존재 할 경우 식사처방 콤보 비활성화
- }else{
- grd_patList.isreadonly(i, grd_patList.colRef("mealprcp")) = false;
- }
-
- //2008-08-26 특수주사실(암센터주사실, BMT주사실) 입실시 식이 입력 불가
- //2008-09-23 신생아, 신생아중환자실 입실시 식이 입력 불가
- if( !isNull(cmb_wardlist.value) && !isNull(model.getValue("/root/code/codeinfo/codelist[cdgrupid = '070' and cdid = '"+ cmb_wardlist.value +"']/cdid")) ){
- grd_patList.isreadonly(i, grd_patList.colRef("mealprcp")) = true;
- }
- //***** 입실대상환자의 체크박스는 무조건 비활성화 -> 바코드 또는 환자번호로만 입실확인 할 수 있도록 변경_20080730 *****/ /
- // //** 이미 입실확인 한 경우 _20080729추가 **//
- // /*
- // if(model.getValue("/root/main/inpatlist/inpatlist[" + i + "]/inrmcnfmflag") == "U" ) {
- // grd_patList.isreadonly(i, grd_patList.colRef("inrmcnfmflag")) = true;
- // }else{
- // grd_patList.isreadonly(i, grd_patList.colRef("inrmcnfmflag")) = false;
- // }
- // */
- //
- // grd_patList.isReadOnly(i, grd_patList.colRef("inrmcnfmflag"), i, grd_patList.colRef("inrmcnfmflag")) = false;
- //
- // if(grd_patList.valueMatrix(i, grd_patList.colRef("mealprcp") == "개인금식" && grd_patList.valueMatrix(i, grd_patList.colRef("mealprcpcd") = "Q9140002"))) {
- // grd_patList.isReadOnly(i, grd_patList.colRef("mealprcp"), i, grd_patList.colRef("mealprcp")) = false;
- // } else {
- // grd_patList.isReadOnly(i, grd_patList.colRef("mealprcp"), i, grd_patList.colRef("mealprcp")) = true;
- // }
- //
- // if(histstat == "C" && seqno == "1") {
- // grd_patList.isreadonly(i, grd_patList.colRef("inrmcnfmflag")) = true;
- // }
- //
- // //** 입원경로가 응급실인 경우 (inpath:'2','7') 체크박스 비활성화_20080710추가 **//
- // var inpath = model.getValue("/root/main/inpatlist/inpatlist["+i+"]/inpath");
- // if(inpath=='2' || inpath=='7'){
- // grd_patList.isReadOnly(i, grd_patList.colRef("inrmcnfmflag"), i, grd_patList.colRef("inrmcnfmflag")) = true;
- // }else{
- // grd_patList.isReadOnly(i, grd_patList.colRef("inrmcnfmflag"), i, grd_patList.colRef("inrmcnfmflag")) = false;
- // }
-
- } else if(value == "02") {
- grd_patList.isreadonly(i, grd_patList.colRef("inrmcnfmflag")) = true;
-
- } else if(value == "03" && acptflagcd == "2") {
- grd_patList.isreadonly(i, grd_patList.colRef("inrmcnfmflag")) = false;
- } else {
- grd_patList.isreadonly(i, grd_patList.colRef("inrmcnfmflag")) = true;
- grd_patList.isreadonly(i, grd_patList.colRef("mealprcp")) = true;
-
- }
-
- grd_patList.isreadonly(i, grd_patList.colRef("transyn")) = false;
-
- }
- }
-
- function fMDrugCheck(vPid, vIndd, vCretno) {
-
- model.removenode("/root/tmp");
- model.makeValue("/root/tmp/req/pid" , vPid);
- model.makeValue("/root/tmp/req/indd" , vIndd);
- model.makeValue("/root/tmp/req/cretno", vCretno);
-
- submit("TRMNW01105");
-
- var mdrugcount = model.getValue("/root/temp/mdruginfo/mdruginfo/mdrugcount");
- var chkno = 1;
-
- if(mdrugcount > 0){
- var rtnval = messageBox("미처리된 마약 및 향정약이 "+mdrugcount+"건 있습니다.\n※부서확인, 반납, 반환, 투약기록 처리가 완료되어야 합니다.\n그대로 진행하시겠습니까?", "Q");
- if(rtnval != "6"){ // no
- chkno = 0 ;
- }
- }
- return chkno;
- }
-
- // 입실전과전실저장
- function fSaveInPatList(saveflag){
- var nextdd = fCalcNextDate();
- var data = getGridUpdateData(grd_patList);
-
- if(data == "") {
- messageBox("변경된 내역이", "I004");
- return;
- }
-
- var calcdd;
- var calctm;
- var careinrmdd;
- var careinrmtm;
-
-
- //변경된 항목을 체크한다.
- for(var i = 0 ; i < grd_patList.rows;i++) {
-
- var pid = model.getValue("/root/main/inpatlist/inpatlist["+i+"]/pid") ;
- var indd = model.getValue("/root/main/inpatlist/inpatlist["+i+"]/indd") ;
- var cretno = model.getValue("/root/main/inpatlist/inpatlist["+i+"]/cretno") ;
- var cpyn = model.getValue("/root/main/inpatlist/inpatlist["+i+"]/cpyn") ;
- var cpgno = model.getValue("/root/main/inpatlist/inpatlist["+i+"]/cpgno") ;
- var orddeptcd = model.getValue("/root/main/inpatlist/inpatlist["+i+"]/orddeptcd") ;
- var medispclid = model.getValue("/root/main/inpatlist/inpatlist["+i+"]/chngmedispclid") ;
- var patnm = model.getValue("/root/main/inpatlist/inpatlist["+i+"]/patnm");
- var room = model.getValue("/root/main/inpatlist/inpatlist["+i+"]/room");
- var sexage = model.getValue("/root/main/inpatlist/inpatlist["+i+"]/sexage");
-
- if ( saveflag == "CR"
- && ( model.getValue("/root/main/inpatlist/inpatlist["+i+"]/chngdeptroomflag") == "01"
- || ( model.getValue("/root/main/inpatlist/inpatlist["+i+"]/inrmcnfmflag") == "N" && model.getValue("/root/main/inpatlist/inpatlist["+i+"]/chngdeptroomflag") != "01" ) )
- ) {
-
- grd_patList.rowStatus(i) = 0;
-
- }else if( model.getValue("/root/main/inpatlist/inpatlist["+i+"]/inrmcnfmflag") == "U" && model.getValue("/root/main/inpatlist/inpatlist["+i+"]/chngdeptroomflag") == "03" ){
- var chkno = fMDrugCheck(pid, indd, cretno);
-
- if(chkno == 0){
- return ;
- }
- }
-
- if(grd_patList.rowStatus(i) == 2) { //로우의 상태가 update상태일 경우.(당일입원환자중에.
-
- grd_patList.valueMatrix(i, grd_patList.colRef("deptcd")) = getUserInfo("dutplcecd");
- grd_patList.valueMatrix(i, grd_patList.colRef("deptnm")) = getUserInfo("dutplcenm");
- grd_patList.valueMatrix(i, grd_patList.colRef("userid")) = getUserId();
- grd_patList.valueMatrix(i, grd_patList.colRef("usernm")) = getUserName();
- grd_patList.valueMatrix(i, grd_patList.colRef("curdd")) = getCurrentDate();
- grd_patList.valueMatrix(i, grd_patList.colRef("curtm")) = getCurrentTime().substr(0,4);
-
- calcdd = grd_patList.valueMatrix(i, grd_patList.colRef("calcdd"));
- calctm = grd_patList.valueMatrix(i, grd_patList.colRef("calctm"));
- careinrmdd = grd_patList.valueMatrix(i, grd_patList.colRef("careinrmdd"));
- careinrmtm = grd_patList.valueMatrix(i, grd_patList.colRef("careinrmtm"));
-
- if(calcdd == "00000000" && calctm == "0000") {
- if(careinrmdd == "-" && careinrmtm == "-") {
- grd_patList.valueMatrix(i, grd_patList.colRef("ordflag")) = "01";
- } else {
-
- }
- } else {
- if (careinrmdd == calcdd && careinrmtm == calctm) {
- grd_patList.valueMatrix(i, grd_patList.colRef("ordflag")) = "02";
- } else {
- grd_patList.valueMatrix(i, grd_patList.colRef("ordflag")) = "01";
- }
- }
- }
- }
- data = getGridUpdateData(grd_patList);
-
- model.makeValue("/root/send/reqdata/tdayinpatlist", data);
- model.removenode("/root/main/rtninfo");
-
- if(submit("TXMNW01101") == true){
- //** 입원전 검사처방중 미시행건이 있을 경우 Blocking_20080801(ByJA) **//
- // 결과구분 (1: 입원전 검사처방 없음, 2 : 입원전 검사처방중 미시행건이 있음, 3 : dump 처리)_exeInBeforePrcpDumpd의 return값
- // 20080804 간호사교육으로 임시로 주석처리함.
-
- /*if(model.getValue("/root/main/rtninfo/rtnmsg/resultflag") == "2") {
- messageBox( model.getValue("/root/main/rtninfo/patinfolist/pid") + " "
- + model.getValue("/root/main/rtninfo/patinfolist/patnm") + " "
- + model.getValue("/root/main/rtninfo/patinfolist/sexage")
- + "\n입원전 검사실에서 미액팅된 검사가 존재합니다.\n입원전 검사실에 확인하십시오!! ", "E");
- }else{
- model.makeValue("/root/send/req/wardcd", model.getValue("/root/main/cond/wardcd"));
- model.makeValue("/root/send/req/orddd", model.getValue("/root/main/cond/orddd"));
-
- model.dispatch("xforms-ready");
-
- messageBox( model.getValue("/root/main/rtninfo/patinfolist/pid") +" "
- + model.getValue("/root/main/rtninfo/patinfolist/patnm") +" "
- + model.getValue("/root/main/rtninfo/patinfolist/sexage")
- , "I", "입실등록되었습니다."); // [ 등록번호 / 환자명 / S/A]
- }*/
- //입원전 검사 미액팅건 존재하여도 입실 되도록 처리 (WardCareMngtImpl : 1106)
- var sMessage = "";
- sMessage = model.getValue("/root/main/rtninfo/patinfolist/pid") + " "
- + model.getValue("/root/main/rtninfo/patinfolist/patnm") + " "
- + model.getValue("/root/main/rtninfo/patinfolist/sexage") + " "
- + "입실등록되었습니다." ;
- if(model.getValue("/root/main/rtninfo/rtnmsg/resultflag") == "2") {
- sMessage += "\n\n입원전 검사실에서 미액팅된 검사가 존재합니다.\n입원전 검사실에 확인하십시오!!";
- }
-
- messageBox(sMessage, "I");
-
- } else{
- model.makeValue("/root/send/req/wardcd", model.getValue("/root/main/cond/wardcd"));
- model.makeValue("/root/send/req/orddd", model.getValue("/root/main/cond/orddd"));
- model.dispatch("xforms-ready");
- }
-
- // CP 대상일 경우 간호기록이랑 연결한다.
- if (cpyn == "Y") {
-
- model.makeValue("/root/temp/cpinfo/pid", pid);
- model.makeValue("/root/temp/cpinfo/indd", indd);
- model.makeValue("/root/temp/cpinfo/cretno", cretno);
- model.makeValue("/root/temp/cpinfo/orddeptcd", orddeptcd);
- model.makeValue("/root/temp/cpinfo/medispclid", medispclid);
- model.makeValue("/root/temp/cpinfo/patnm", patnm);
- model.makeValue("/root/temp/cpinfo/room", room);
- model.makeValue("/root/temp/cpinfo/sexage", sexage);
-
- if (cpgno == 0) {
- messageBox("CP 대상환자입니다. 해당하는 CP를 선택해주세요.", "I999");
- if (submit("TRMNW01106")) {
- group3.visible = true;
- } else{
- fSetNrCpRecord(cpgno);
- }
- }
- // var rtnval = messageBox("CP 대상환자입니다. 해당 CP에 구성되어있는 [입원 간호기록]을 진행하시겠습니까?", "Q999");
- //
- // if(rtnval == "6"){ // yes
- // model.makeValue("/root/temp/cpinfo/pid", pid);
- // model.makeValue("/root/temp/cpinfo/indd", indd);
- // model.makeValue("/root/temp/cpinfo/cretno", cretno);
- // model.makeValue("/root/temp/cpinfo/orddeptcd", orddeptcd);
- // model.makeValue("/root/temp/cpinfo/medispclid", medispclid);
- // model.makeValue("/root/temp/cpinfo/patnm", patnm);
- // model.makeValue("/root/temp/cpinfo/room", room);
- // model.makeValue("/root/temp/cpinfo/sexage", sexage);
- //
- // if (cpgno == 0 || cpgno == null) {
- // if (submit("TRMNW01106")) {
- // group3.visible = true;
- // }
- // } else {
- // fSetNrCpRecord(cpgno);
- // }
- // }
- }
-
- fGetPatList();
- }
-
- function fSetNrCpRecord(cpCpgno) {
- if (cpCpgno < 1) {
- return;
- }
-
- var cpPid = model.getValue("/root/temp/cpinfo/pid");
- var cpIndd = model.getValue("/root/temp/cpinfo/indd");
- var cpCretno = model.getValue("/root/temp/cpinfo/cretno");
- var cpPatnm = model.getValue("/root/temp/cpinfo/patnm");
- var cpRoom = model.getValue("/root/temp/cpinfo/room");
- var cpSexage = model.getValue("/root/temp/cpinfo/sexage");
- var cpOrddeptcd = model.getValue("/root/temp/cpinfo/orddeptcd");
- var cpMedispclid = model.getValue("/root/temp/cpinfo/medispclid");
-
- model.makeValue("/root/temp/cpinfo/cpgno", cpCpgno);
- model.makeValue("/root/temp/cpinfo/cdgrupid", "CP1"); //CP번호와 간호기록 그룹ID 넘기기
-
- if (submit("TRMNW01107")) {
-
- var cpOrigincd = model.getValue("/root/main/cpinfo/termcd/cdid");
- var cpSupcdid = model.getValue("/root/main/cpinfo/termcd/supcdid");
-
- if (cpOrigincd == null || cpOrigincd == "") {
-
- } else {
- // 저장내역 확인
- model.removenode("root/send/recinfo");
- model.makeValue("root/send/recinfo/pid", cpPid);
- model.makeValue("root/send/recinfo/indd",cpIndd);
- model.makeValue("root/send/recinfo/cretno", cpCretno);
- model.makeValue("root/send/recinfo/origincd", cpOrigincd);
-
- if (submit("TRMNR02902")) {
-
- var recyn = model.getValue("/root/temp/recinfo/recyn");
- if (recyn != "Y") {
-
- var rtnval = messageBox("CP 대상환자입니다. 해당 CP에 구성되어있는 [입원 간호기록]을 진행하시겠습니까?", "Q999");
-
- if (rtnval == "6") {
- //기록 화면으로 연결
- setParameter("pid", cpPid);
- setParameter("indd", cpIndd);
- setParameter("cretno", cpCretno);
- setParameter("patnm", cpPatnm);
- setParameter("room", cpRoom);
- setParameter("sexage", cpSexage);
- setParameter("orddeptcd", cpOrddeptcd);
- setParameter("medispclid", cpMedispclid);
- setParameter("cdid", cpOrigincd);
- setParameter("supcdid", cpSupcdid);
-
- modal("SMMNR02900", 1, 0, 0 ,"", "", "");
- }
- }
- }
- }
- }
- }
-
- function fCheckSpclOrd(idx) {
- //20090928 JHP 선택진료신청 서명여부 및 기 서명건 관련하여 입원등록일과 동일한지 체크
- // 1. 입원일자(오늘)에 해당하는 선택진료서명여부 확인
- // 1-1 있으면 - 그냥 넘어간다.
- // 1-2 없으면 - 선택신청서명창 띄운다.
- // 2. 서명창 띄워서 리스트를 보여주는데 입원건에 해당하는선택신청정보는 제외하고 선택정보에 해당하는 입원건이 없는것만 보여준다.
- // 3. 해당리스트를 보고 알맞은게 없으면 선택신청을 띄운다.
- // 넘길값들 인스턴스에 담기
- var s_pid = grd_patList.valueMatrix(idx, grd_patList.colRef("pid"));
- var s_ordtype = "I";
- var s_orddd = grd_patList.valueMatrix(idx, grd_patList.colRef("indd"));
- var s_orddeptcd = grd_patList.valueMatrix(idx, grd_patList.colRef("orddeptcd"));
- var s_orddrid = grd_patList.valueMatrix(idx, grd_patList.colRef("chngmedispclid"));
- var s_fromdd = grd_patList.valueMatrix(idx, grd_patList.colRef("indd"));
- var s_hngnm = grd_patList.valueMatrix(idx, grd_patList.colRef("patnm"));
- var s_rrgstno1 = grd_patList.valueMatrix(idx, grd_patList.colRef("rrgstno1"));
- var s_rrgstno2 = grd_patList.valueMatrix(idx, grd_patList.colRef("rrgstno2"));
- var s_specordyn = grd_patList.valueMatrix(idx, grd_patList.colRef("specordyn"));
-
- var sOrddeptcdMsg = grd_patList.valueMatrix(idx, grd_patList.colRef("orddeptnm"));
- var sOrddridMsg = grd_patList.valueMatrix(idx, grd_patList.colRef("todrnm"));
-
-
- model.makeValue("/root/send/data26/pid", s_pid); // pid
- model.makeValue("/root/send/data26/ordtype", "I"); // ordtype
- model.makeValue("/root/send/data26/indd", s_orddd);// orddd
- model.makeValue("/root/send/data26/orddd", s_orddd);// orddd
- model.makeValue("/root/send/data26/orddeptcd", s_orddeptcd); // orddeptcd
- model.makeValue("/root/send/data26/orddrid", s_orddrid); // orddrid
- model.makeValue("/root/send/data26/medispclid", s_orddrid); // orddrid
-
- submit("TRPMI00406");
-
- if (model.getValue("/root/tempchk/specapp/rgstyn") == "N") {
-
- var sMsg = "[" + sOrddeptcdMsg + "]" + "[" + sOrddridMsg + "]";
-
- if(s_specordyn == "Y") {
-
- if( messageBox(sMsg + " 선택진료 등록이 되어 있지 않습니다. 등록하시겠습니까?", "Q999", "") == 6 ){
- fCallSpecPopUp(s_pid,s_ordtype,s_orddd,s_orddeptcd,s_orddrid,s_fromdd,s_hngnm,s_rrgstno1,s_rrgstno2);
- }
- } else {
- if( messageBox(sMsg + " 진료지원 위임이 되어 있지 않습니다. 위임하시겠습니까?", "Q999", "") == 6 ){
- fCallSpecPopUp(s_pid,s_ordtype,s_orddd,s_orddeptcd,s_orddrid,s_fromdd,s_hngnm,s_rrgstno1,s_rrgstno2);
- }
- }
- }
-
- }
-
- var premealprcp = "";
- var premealprcpcd = "";
-
- // 등록번호 입력 시 자동으로 입실저장(환자팔찌)_20080731(ByJA)
- function fAutoSaveInRm(){
- var count = 0;
-
- if ( isNull(ipt_barcodepid.value) && isNull(ipt_saveinrm.value) && isNull(model.getValue("/root/main/cond/pid")) ){
- messageBox("등록번호는 ","I003");
- return;
- }
-
- for(var i = 1; i <= grd_patList.rows; i++) {
- // 입실전과전실대상자 리스트에 환자정보 있는 경우
- if( ( model.getValue("/root/main/inpatlist/inpatlist["+i+"]/pid") == ipt_barcodepid.value || model.getValue("/root/main/inpatlist/inpatlist["+i+"]/pid") == ipt_saveinrm.value )
- && model.getValue("/root/main/inpatlist/inpatlist["+i+"]/chngdeptroomflag") == "01" ) { // 입실대상환자만
- premealprcp = model.getValue("/root/main/inpatlist/inpatlist["+i+"]/mealprcp"); // 수정한 식사처방정보
- premealprcpcd = model.getValue("/root/main/inpatlist/inpatlist["+i+"]/mealprcpcd");
- }
- }
-
- fGetPatList(); // 당일입원전과전실리스트조회
-
- for(var i = 1; i <= grd_patList.rows; i++) {
- // 입실전과전실대상자 리스트에 환자정보 있는 경우
- if( ( model.getValue("/root/main/inpatlist/inpatlist["+i+"]/pid") == ipt_barcodepid.value || model.getValue("/root/main/inpatlist/inpatlist["+i+"]/pid") == ipt_saveinrm.value )
- && model.getValue("/root/main/inpatlist/inpatlist["+i+"]/chngdeptroomflag") == "01"
- && count == 0) { // 입실대상환자만
-
- // 이미 입실 한 경우
- if(model.getValue("/root/main/inpatlist/inpatlist["+i+"]/careinrmdd") != "-") {
- messageBox( model.getValue("/root/main/inpatlist/inpatlist["+i+"]/pid") +" "
- + model.getValue("/root/main/inpatlist/inpatlist["+i+"]/patnm")+" "
- + model.getValue("/root/main/inpatlist/inpatlist["+i+"]/sexage")
- , "E", "이미 입실등록된 환자입니다.."); // [ 등록번호 / 환자명 / S/A]
- }
- // 입실저장
- else {
- if(model.getValue("/root/main/inpatlist/inpatlist["+i+"]/appflagcd") == "3") {
- model.setValue("/root/main/cond/pid", "");
- ipt_barcodepid.refresh();
- ipt_saveinrm.refresh();
- messageBox( model.getValue("/root/main/inpatlist/inpatlist["+i+"]/pid") +" "
- + model.getValue("/root/main/inpatlist/inpatlist["+i+"]/patnm")+" "
- + model.getValue("/root/main/inpatlist/inpatlist["+i+"]/sexage")
- , "E", "입실등록 처리를 할 수 없습니다."); // [ 등록번호 / 환자명 / S/A]
- return;
- }
-
- if (premealprcp != "") {
- grd_patList.valueMatrix(i,grd_patList.colRef("mealprcp")) = premealprcp; // 수정한 식사처방정보
- grd_patList.valueMatrix(i,grd_patList.colRef("mealprcpcd")) = premealprcpcd;
- }
-
- grd_patList.valueMatrix(i,grd_patList.colRef("inrmcnfmflag")) = "U"; // 입실확인 Check Box에 표시
-
- grd_patList.rowStatus(i) = "2"; // 해당 Row Update Date로 설정
-
- fCheckSpclOrd(i);
-
- //fGetRsrvPrcp(); // 외래예약처방 선택 및 저장 화면 호출_20090508추가(ByJA)
- fSaveInPatList("IN"); // 입실전과전실저장
- }
-
- count ++;
- }
- } //for end
-
- // 입실대상자가 아닌 경우
- if (count < 1) {
- if(grd_patList.rows>1){
- for(var i=1; i<grd_patList.rows;i++) {
- if(model.getValue("/root/main/inpatlist/inpatlist["+i+"]/pid") == ipt_barcodepid.value && count <1) {
- messageBox( model.getValue("/root/main/inpatlist/inpatlist["+i+"]/pid") +" "
- + model.getValue("/root/main/inpatlist/inpatlist["+i+"]/patnm")+" "
- + model.getValue("/root/main/inpatlist/inpatlist["+i+"]/sexage")
- , "E", "해당병동 입원대상자가 아닙니다."); // [ 등록번호 / 환자명 / S/A]
- count++;
- }
- }
- } else{
- model.removenode("/root/send");
- model.removenode("/root/main/rtninfo");
- model.makeValue("/root/send/req/pid", model.getValue("/root/main/cond/pid"));
- submit("TRMNW01104"); // 환자정보조회
-
- messageBox( model.getValue("/root/main/rtninfo/patinfolist/pid") +" "
- + model.getValue("/root/main/rtninfo/patinfolist/patnm")+" "
- + model.getValue("/root/main/rtninfo/patinfolist/sexage")
- , "E", "해당병동 입원대상자가 아닙니다.\n(병동 및 업무일자를 확인하십시오.)"); // [ 등록번호 / 환자명 / S/A]
- }
- }
-
- model.makeValue("/root/main/cond/pid","");
-
- fGetPatList(); // 당일입원전과전실리스트조회
- }
-
-
-
- var mealCdArr = new Array(); // 처방-수가 코드 매핑을 위한 배열 전역 변수
- var calCdArr = new Array();
- // [식사처방 하드코딩 수정] 식사처방코드, 수가코드 간호공통테이블에서 조회 20100714 안도영
-
- function fGetMealCalCdInfo(){
- var mealCopyPath = "/root/temp/mealcodeinfo"; // 처방 노드 복사 경로
- var calCopyPath = "/root/temp/calcodeinfo"; // 수가 노드 복사 경로
- var initPath = "/root/code/codeinfo";
- var mealCnt = 0;
- var calCnt = 0;
- /*
- ※ supcdid 규칙
- - 첫째자리 : 처방('M') / 수가('C') 구분
- - 둘째자리 : 개인금식('1') / 일반밥('2') 구분
- - 첫째자리로 노드셋을 분리하며, 둘째자리 순서로 나열
- ex) M1(처방코드-개인금식), M2(처방코드-일반밥)
- C1(수가코드-개인금식), C2(수가코드-일반밥)
- */
-
- // 식사코드 (처방,수가)관련 노드리스트 가져오기
- var nodelist_main = instance1.selectNodes(initPath + "/codelist"+ "[cdgrupid = '210']");
- // 처방과 수가 코드 분류 작업
- for(var i=0; i<nodelist_main.length; i++){
- var node = nodelist_main.nextNode();
- var nodelist_sub = node.selectNodes(initPath + "/codelist" + "[cdgrupid = '210']/supcdid");
-
- //alert(nodelist_sub.item(i).value.substring(0,1));
- // supcdid의 앞자리
- if("M" == nodelist_sub.item(i).value.substring(0,1)){ // 처방코드
- model.makeNode(mealCopyPath + "/codelist[" + (mealCnt+1) + "]");
- model.copyNode(mealCopyPath + "/codelist[" + (mealCnt+1) + "]", node);
- mealCnt++;
- }else if("C" == nodelist_sub.item(i).value.substring(0,1)){ // 수가코드
- model.makeNode(calCopyPath + "/codelist[" + (calCnt+1) + "]");
- model.copyNode(calCopyPath + "/codelist[" + (calCnt+1) + "]", node);
- calCnt++;
- }
- }
- // 20100728 백업 안도영
- /*
- for(i=0; i < getNodesetCount(initPath + "/codelist" + "[cdgrupid = '210']" ); i++){ // 처방코드와 수가코드의 노드셋 분리
- var tmpStr = model.getValue(initPath + "/codelist" + "[cdgrupid = '210'/supcdid");
- alert(tmpStr);
- if("M" == tmpStr.substring(0,1)){ // supcdid의 앞자리
- model.makeNode(mealCopyPath + "/codelist[" + (mealCnt+1) + "]");
- model.copyNode(mealCopyPath + "/codelist[" + (mealCnt+1) + "]", initPath + "/codelist" + "[cdgrupid = '210' and (i+1)]");
- mealCnt++;
- }
- else if("C" == tmpStr.substring(0,1)){
- model.makeNode(calCopyPath + "/codelist[" + (calCnt+1) + "]");
- model.copyNode(calCopyPath + "/codelist[" + (calCnt+1) + "]", initPath + "/codelist[" + (i+1)+ "]");
- calCnt++;
- }
- }
- */
-
- // supcdid 뒷자리 구분을 통해 처방-수가코드 맵핑
- var tmpStr_meal = "";
- var tmpStr_cal = "";
- for(i=1; i<=mealCnt; i++){
- var tmpStr_meal = model.getValue(mealCopyPath + "/codelist[" + i+ "]/supcdid");
- var tmpStr_cal = model.getValue(calCopyPath + "/codelist[" + i+ "]/supcdid");
-
- if(i == tmpStr_meal.substring(1,1) == tmpStr_cal.substring(1,1)){ // supcdid의 뒷자리
- mealCdArr[i-1] = model.getValue(mealCopyPath + "/codelist[" + i+ "]/cdid");
- calCdArr[i-1] = model.getValue(calCopyPath + "/codelist[" + i+ "]/cdid");
- }
- }
-
- }
-
- // 외래예약처방 선택 및 저장 화면 호출_20090508추가(ByJA)
- /*
- function fGetRsrvPrcp(){
- // 외래예약처방정보 조회
- model.removeNodeset("/root/send");
- model.makeValue ( "/root/send/cond1", model.getValue("/root/main/cond/pid"));
- model.makeValue ( "/root/send/cond2", getUserInfo("dutplceinstcd"));
- model.makeValue ( "/root/send/cond3", getCurrentDate());
- submit ( "TRMMO00129", false );
-
- // 외래예약처방정보 존재시 외래예약처방 저장화면 호출
- var srcNodeList = model.instances(0).selectNodes ("/root/result/prcplist");
- if ( srcNodeList.length > 0 ) {
- setParameter ( "SPMMO18200_pid" , model.getValue("/root/main/cond/pid"));
- setParameter ( "SPMMO18200_orddd" , model.getValue("/root/main/inpatlist/inpatlist/indd"));
- setParameter ( "SPMMO18200_cretno", model.getValue("/root/main/inpatlist/inpatlist/cretno"));
- setParameter ( "SPMMO18200_prcpdd" , getCurrentDate());
- setParameter ( "SPMMO18200_prcpinptflag", "00"); // 임시로 09임. 추후 번호배정되어 수정해야함.
- setParameter ( "SPMMO18200_ioflag", "I");
- setParameter ( "SPMMO18200_prcpkindcd", "00");
- setParameter ( "SPMMO18200_prcpsignflag", "1"); // 필요시 적용_처방서명구분(0:인증안됨, 1:의사가 후인증, 2:인증완료(default))
- setParameter ( "SPMMO18200_aftcertflag", "12"); // 필요시 적용_후인증여부
- setParameter ( "SPMMO18200_aftcertdrid", model.getValue("/root/main/inpatlist/inpatlist/chngmedispclid")); // 필요시 적용_후인증의사ID chngmedispclid
- //setParameter ( "SPMMO18200_prcpstatcd", "000"); //필요시 적용
- //setParameter ( "SPMMO18200_oprsrvno", "0"); //필요시 적용
- //setParameter ( "SPMMO18200_prcpauthflag", "0"); //필요시 적용
-
- var xpt = window.screenleft + 200;
- var ypt = window.screenTop + 100;
- var coord = getRelativeCoordinate ( xpt, ypt );
- var mon = coord[0];
- xpt = coord[1];
- ypt = coord[2];
-
- modal ( "SPMMO18200", mon, xpt, ypt, "SPMMO01000", "/root/result", "/root/result", "", false ); // 외래예약처방 저장화면 호출
-
- clearParameter ( "SPMMO18200_pid" );
- clearParameter ( "SPMMO18200_orddd" );
- clearParameter ( "SPMMO18200_cretno" );
- clearParameter ( "SPMMO18200_prcpdd" );
- clearParameter ( "SPMMO18200_prcpinptflag" );
- clearParameter ( "SPMMO18200_ioflag" );
- clearParameter ( "SPMMO18200_prcpkindcd" );
- clearParameter ( "SPMMO18200_prcpsignflag" );
- clearParameter ( "SPMMO18200_aftcertflag" );
- clearParameter ( "SPMMO18200_aftcertdrid" );
- }
- }
- */
-
- // 환자 이름표 출력
- function fOpenNamePrint(){
- group1.visible = true;
-
- }
-
- function fOpenInEdOcrPrint1(){
- fOpenInEdOcrPrint('01', 'N'); // 병동
- }
-
- function fOpenInEdOcrPrint2(){
- fOpenInEdOcrPrint('02', 'N'); // 신생아
- }
-
- function fOpenInEdOcrPrint3(){
- fOpenInEdOcrPrint('03', 'N'); // 분만실
- }
-
- function fOpenInEdOcrPrint4(){
- fOpenInEdOcrPrint('04', 'N'); // BMT
- }
-
- function fOpenInEdOcrPrint1Elec(){
- fOpenInEdOcrPrint('01', 'Y'); // 병동
- }
-
- function fOpenInEdOcrPrint2Elec(){
- fOpenInEdOcrPrint('02', 'Y'); // 신생아
- }
-
- function fOpenInEdOcrPrint3Elec(){
- fOpenInEdOcrPrint('03', 'Y'); // 분만실
- }
-
- function fOpenInEdOcrPrint4Elec(){
- fOpenInEdOcrPrint('04', 'Y'); // BMT
- }
-
- function fOpenInEdOcrPrint(code, elecflag){
-
- var formcd = "";
- var left = event.screenX;
- var top = event.screenY;
- var row = grd_patList.row;
-
- if(code=="01"){
-
- formcd = "0000001769";
-
- }else if(code=="02"){
-
- formcd = "0900006117";
-
- }else if(code=="03"){
-
- formcd = "0000001770";
-
- }else if(code=="04"){
-
- formcd = "0000001771";
-
- }
-
- if (row >= 1) {
-
- if( model.getValue("/root/main/inpatlist/inpatlist[" + grd_patList.row + "]/chngdeptroomflag") != "04"){
-
- var pPid = model.getValue("/root/main/inpatlist/inpatlist[" + grd_patList.row + "]/pid");
- var pIndd = model.getValue("/root/main/inpatlist/inpatlist[" + grd_patList.row + "]/indd");
- var pCretno = model.getValue("/root/main/inpatlist/inpatlist[" + grd_patList.row + "]/cretno");
- var pOrdtype = model.getValue("/root/main/inpatlist/inpatlist[" + grd_patList.row + "]/ordtype");
- var pInstcd = model.getValue("/root/main/inpatlist/inpatlist[" + grd_patList.row + "]/instcd");
-
- if (elecflag == "Y") {
- fElecPrint(pPid, pCretno, pIndd, pInstcd, formcd, "", "G") ;
- } else {
- setParameter("formcd",formcd);
- setParameter("pid", pPid);
- setParameter("orddd", pIndd);
- setParameter("cretno", pCretno);
- setParameter("ordtype", pOrdtype);
- open("SSMRF03700",1,left,top);
- }
-
- }else{
- messageBox("-전실은 입원교육확인서 출력이 불가합니다.", "I");
- return;
- }
- }
- }
-
- //정보호출
- function fGetPatName() {
- var row = grd_patList.row;
-
- if (row >= 1) {
- var pid = model.getValue("/root/main/inpatlist/inpatlist["+row+"]/pid");
- var wardcd = model.getValue("/root/main/cond/wardcd");
- model.removenode("/root/send");
- model.makeValue("/root/send/patnameinfo/pid", pid);
- model.makeValue("/root/send/patnameinfo/wardcd", wardcd);
- submit("TRMNW00210");
-
- model.removeNodeset("/root/send");
- model.makeNode("/root/send/temp2");
- model.makeNode("/root/send/temp2/patnamelist");
- model.makeNode("/root/send/temp2/patnamelist/method");
-
- model.copyNode("/root/send/temp2/patnamelist", "/root/main/temp2/patnamelist");
- model.makeNode("/root/send/temp2/patnamelist/method");
- model.setValue("/root/send/temp2/patnamelist/method", model.getValue("/root/main/method"));
-
- if( model.getValue("/root/main/inpatlist/inpatlist[" + grd_patList.row + "]/chngdeptroomflag") != "04" ){
- if(model.getValue("/root/main/temp2/patnamelist/prtkind") == "NEW"){
- //exeReportPreview("RPMNW00211", "XMLSTR"); //환자이름표출력 NEW
- exeReportPreview("RPMNW00211", "XMLSTR", "","","true","","","","","true"); //환자이름표출력 NEW
- }else if(model.getValue("/root/main/temp2/patnamelist/prtkind") == "CNEW"){
- //exeReportPreview("RPMNW00213", "XMLSTR"); //환자이름표출력 칠곡NEW
- exeReportPreview("RPMNW00213", "XMLSTR", "","","true","","","","","true"); //환자이름표출력 칠곡NEW
- }else{
- //exeReportPreview("RPMNW00210", "XMLSTR"); //환자이름표출력 OLD
- exeReportPreview("RPMNW00210", "XMLSTR", "","","true","","","","","true"); //환자이름표출력 OLD
- }
-
- }else{
- messageBox("-전실은 이름표 출력이 불가합니다.", "I");
- return;
- }
-
- //exeReportPreview("RPMNR06302", "XMLSTR", "/root/main/prtinfo", "", "true", "", "", "", "", "", "", "grp_report"); //미리보기 없이 출력
- }
- }
-
- function fShowPopupMenu(gridID, menuPath) {
- var gridObj = document.controls.item(gridID);
-
- if(event.button == 3) {
- if(gridObj.isCell(event.target) && gridObj.mouseRow >= gridObj.fixedrows){
- window.setPopupMenu(true, menuPath, "name", "func", false);
- }else{
- window.setPopupMenu(false);
- }
- }
- }
-
- function fCancelinRmdd () {
-
- var row = grd_patList.row;
- var chngdeptroomflag = model.getValue("/root/main/inpatlist/inpatlist[" + row + "]/chngdeptroomflag");
- var inrmcnfmflag = model.getValue("/root/main/inpatlist/inpatlist[" + row + "]/inrmcnfmflag");
-
- var pid = model.getValue("/root/main/inpatlist/inpatlist[" + row + "]/pid");
- var indd = model.getValue("/root/main/inpatlist/inpatlist[" + row + "]/indd");
- var cretno = model.getValue("/root/main/inpatlist/inpatlist[" + row + "]/cretno");
-
- model.removenode("/root/tmp/ordreq");
- model.makeValue("/root/tmp/ordreq/pid" , pid);
- model.makeValue("/root/tmp/ordreq/indd" , indd);
- model.makeValue("/root/tmp/ordreq/cretno", cretno);
-
- if (chngdeptroomflag == "01" && inrmcnfmflag == "U") {
- // 처방 점검
- submit("TRMNW01108");
- var dumpcnt = model.getValue("/root/temp/orderinfo/orderinfo/dumpcnt");
- var ordercnt = model.getValue("/root/temp/orderinfo/orderinfo/ordercnt");
- var rtnordcnt = model.getValue("/root/temp/orderinfo/orderinfo/rtnordcnt");
- var dietcnt = model.getValue("/root/temp/orderinfo/orderinfo/dietcnt");
- var dietcntok = model.getValue("/root/temp/orderinfo/orderinfo/dietcntok");
-
- if (dumpcnt > 0) {
- messageBox("승계된 처방내역이 있으므로 입실취소가 불가합니다.", "I999");
- return;
- }
- if (ordercnt > 0) {
- messageBox("처방내역이 있으므로 입실취소가 불가합니다.", "I999");
- return;
- }
- if (rtnordcnt > 0) {
- messageBox("반환요청 상태의 처방내역이 있으므로 입실취소가 불가합니다.", "I999");
- return;
- }
- if (dietcnt > 0) {
- messageBox("진행된 식사처방 내역이 있으므로 입실취소가 불가합니다.", "I999");
- return;
- }
-
- model.removenode("/root/send/deldietinfo");
- model.makeValue("/root/send/deldietinfo/pid", pid);
- model.makeValue("/root/send/deldietinfo/indd", indd);
- model.makeValue("/root/send/deldietinfo/cretno", cretno);
-
- // 식이 정리
- if (dietcntok > 0) {
- messageBox( dietcntok + "건의 식사처방 내역이 있습니다. 입실취소와 동시에 삭제됩니다.", "I999");
-
- model.removenode("/root/send/deldietinfo");
- model.makeValue("/root/send/deldietinfo/pid", pid);
- model.makeValue("/root/send/deldietinfo/indd", indd);
- model.makeValue("/root/send/deldietinfo/cretno", cretno);
-
- if ( submit("TXMNW01102") ) {
- } else {
- messageBox( "식사처방 삭제 중 문제가 발생하여 입실취소를 진행할 수 없습니다.", "I999");
- return
- }
-
- }
-
- // inpt 수정
- if (submit("TXMNW01103")) {
- messageBox("입실취소가 처리되었습니다.", "I999");
- fGetPatList();
- }
-
- } else {
- messageBox("입실저장된 입원환자에 대해서만 입실취소가 가능합니다.", "I999");
- return;
- }
- }
-
- function fOpenCpInPlan(){
-
- group4.visible = true;
-
- var row = grd_patList.row;
-
- if (row >= 1) {
- var cpgno = model.getValue("/root/main/inpatlist/inpatlist["+row+"]/cpgno");
- var cpghistseq = model.getValue("/root/main/inpatlist/inpatlist["+row+"]/cpghistseq");
- }
-
- model.makeValue("/root/send/req/cpgno", cpgno );
- model.makeValue("/root/send/req/cpghistseq", cpghistseq );
-
- submit("TRMNW01109");
-
- }
-
- //FPT 서버에 저장한 파일을 다운로드 한다.
- function fDownLoadFile( idx ){
- model.makeNode("/root/temp1/attachfile/filedata");
- var filepath = model.getValue("/root/main/attfileinfo/attach["+idx+"]/file");
- var filenm = model.getValue("/root/main/attfileinfo/attach["+idx+"]/attfilenm");
- var localfile = window.fileDialog("save","|",false,filenm,"","All Files(*.*)|*.*");
- if (localfile != "") {
- model.download(getActionURL("TRMQP00605")+"&filepath="+filepath,localfile);
- var rtn = messageBox("파일을", "Q004");
- if( rtn == 6 ) {
- window.exec(localfile);
- }
- }
- }
-
- // 출력 141114 - AYS 추가
- function fExecPrint(){
-
- model.removenode("/root/send/printdata");
- model.makeNode ("/root/send/printdata/inpatlist");
- model.copynode ("/root/send/printdata/inpatlist", "/root/main/inpatlist"); // 리스트copy
-
- exeReportPreview("RPMNW01100", "XMLSTR", "/root/send/printdata", "", "true" , "", "", "", "", "true");
- }
-
-
- ]]>
- </script>
- <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="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <!-- 전자동의서 관련 2013.03.15 KJS -->
- <script type="javascript" src="../../../emr/wardcareweb/js/SMMNW03.js"/>
- <!-- 주석처리 20100715 안도영
- submission id="TRMNW01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqcmb" resultref="/root/init/mealprcp"/
- -->
- <submission id="TRMNW01102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/inpatlist"/>
- <submission id="TRMNW01103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/init"/>
- <submission id="TRMNW01104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/patinfolist"/>
- <submission id="TRMNW01105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/tmp/req" resultref="/root/temp/mdruginfo"/>
- <submission id="TRMNW01106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/cpinfo" resultref="/root/main/cpinfo"/>
- <submission id="TRMNW01107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp/cpinfo" resultref="/root/main/cpinfo"/>
- <submission id="TRMNW01109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/attfileinfo"/>
- <submission id="TXMNW01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata/tdayinpatlist" resultref="/root/main/patinfolist"/>
- <submission id="TRMQP00605" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/temp1/attachfile"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init"/>
- <submission id="TXPMI01702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/senddata" resultref="/root/hidden/flag/rcv_flag"/>
- <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/code/codelist"/>
- <submission id="TRPMI00406" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data26" resultref="/root/tempchk"/>
- <submission id="TRMNW00210" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/temp2"/>
- <submission id="TRMNR02902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/recinfo" replace="instance" resultref="/root/temp/recinfo"/>
- <submission id="TRMNR02903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/recinfo" replace="instance" resultref="/root/temp/cpinfo"/>
- <!-- 식사처방 정리 2013.03.15 KJS -->
- <submission id="TRMNW01108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/tmp/ordreq" resultref="/root/temp/orderinfo"/>
- <submission id="TXMNW01102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deldietinfo" resultref="/root/rtninfo/result"/>
- <submission id="TXMNW01103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deldietinfo" resultref="/root/rtninfo/result"/>
- <!--
- <submission id="TRMMO00129" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/prcplist"/>
- -->
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="1092" pageheight="650" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group5" class="datagrid2" scroll="auto" style="left:0px; top:5px; width:1076px; height:640px; font-family:굴림; ">
- <group id="group2" style="left:0px; top:25px; width:1071px; height:60px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1071px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_srchhdpatinfo" class="btn1_letter2" style="left:911px; top:19px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetPatList(); // 당일입원전과전실리스트조회
- ]]>
- </script>
- </button>
- <line id="line3" class="line_4" style="x1:890px; y1:14px; x2:890px; y2:46px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_orddd" ref="/root/main/cond/orddd" class="input_s_essential" disabled="true" inputtype="date" style="left:339px; top:8px; width:100px; height:19px; "/>
- <select1 id="radio1" ref="/root/main/cond/flag" appearance="full" cellspacing="10" cols="5" overflow="visible" style="left:575px; top:25px; width:270px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>00</value>
- </item>
- <item>
- <label>입원</label>
- <value>01</value>
- </item>
- <item>
- <label>전과</label>
- <value>02</value>
- </item>
- <item>
- <label>+전실</label>
- <value>03</value>
- </item>
- <item>
- <label>-전실</label>
- <value>04</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var flagVal = model.getValue("/root/main/cond/flag");
- if(flagVal == "00") {
-
- grd_patList.nodeset = "/root/main/inpatlist/inpatlist";
- fEnableCtrl();
- } else {
- grd_patList.nodeset = "/root/main/inpatlist/inpatlist[chngdeptroomflag ='" + flagVal + "']";
- if(flagVal =="01") {
- grd_patList.colDisabled(grd_patList.colRef("inrmcnfmflag")) = true;
- } else if(flagVal =="03") {
-
- for(var i = grd_patList.fixedRows ; i <= grd_patList.rows - grd_patList.fixedRows; i++) {
- if(grd_patList.valueMatrix(i, grd_patList.colRef("acptflagcd")) == "2") {
- grd_patList.isreadonly(i, grd_patList.colRef("inrmcnfmflag")) = false;
- } else {
- grd_patList.isreadonly(i, grd_patList.colRef("inrmcnfmflag")) = true;
- }
- }
- }
- else {
- grd_patList.colDisabled(grd_patList.colRef("inrmcnfmflag")) = true;
- }
- }
- ]]>
- </script>
- </select1>
- <button id="btn_sav" class="btn4_letter4" style="left:970px; top:19px; width:80px; height:22px; ">
- <caption>전실저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //20090730 khj 입실 및 전실저장도 당일에만 저장가능.
-
- if(model.getValue("/root/main/cond/orddd") ==getCurrentDate()) {
- fSaveInPatList("CR"); // 입실전과전실저장
- } else {
- messageBox("당일 전실환자에 대해서만 전실저장이", "I006","\n업무일자를 확인하십시오.");
- }
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:15px; top:9px; width:69px; height:17px; ">병동 :</caption>
- <caption id="caption5" class="search_name" style="left:250px; top:9px; width:86px; height:17px; ">업무일자 :</caption>
- <select1 id="cmb_wardlist" ref="/root/main/cond/wardcd" class="combo_search" disabled="true" appearance="minimal" style="left:79px; top:8px; width:134px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- fGetPatList();
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" style="left:15px; top:34px; width:86px; height:17px; ">환자팔찌 :</caption>
- <caption id="caption3" class="search_name" style="left:250px; top:34px; width:89px; height:17px; ">등록번호 :</caption>
- <input id="ipt_barcodepid" ref="/root/main/cond/pid" class="inputbutton" inputtype="button" maxlength="10" style="left:104px; top:33px; width:110px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //** 바코드로 등록번호 입력시 자동 입실체크 로직 구현_20080731(ByJA) **//
- // if((ipt_barcodepid.value).length >= '5'){
- // fAutoSaveInRm() ; // 등록번호 입력 시 자동으로 입실저장(환자팔찌)_20080731(ByJA)
- // }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_saveinrm", "DOMActivate");
- // if(event.keyCode == '13'){
- // fAutoSaveInRm() ; // 등록번호 입력 시 자동으로 입실저장(환자팔찌)_20080731(ByJA)
- // }
- ]]>
- </script>
- </input>
- <input id="ipt_saveinrm" ref="/root/main/cond/pid" class="input_search" maxlength="10" style="left:340px; top:33px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_saveinrm", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_saveinrm" class="btn4_letter4" style="left:443px; top:32px; width:80px; height:22px; ">
- <caption>입실저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //2008-08-27 length 체크 로직 삭제
- //if((ipt_saveinrm.value).length >= '5'){
-
-
- var aaa = getCurrentDate();//sonic
- if(model.getValue("/root/main/cond/orddd") ==getCurrentDate()) {
- fAutoSaveInRm() ; // 등록번호 입력 시 자동으로 입실저장(환자팔찌)_20080731(ByJA)
- } else {
- messageBox("당일 입원환자에 대해서만 입실저장이", "I006","\n업무일자를 확인하십시오.");
- }
-
-
-
- //}else{
- //messageBox("등록번호를 정확히 입력", "I008");
- //model.setFocus("ipt_saveinrm");
- //}
- ]]>
- </script>
- </button>
- </group>
- <!--(20101206) 경북대
- <datagrid id="grd_patList" nodeset="/root/main/inpatlist/inpatlist" class="datagrid2" caption="입실
확인^구분^회복^승인^현재
병실^등록번호^환자명^S/A^식사처방^식사처방코드^From^From^From^From^To^To^To^To^진단명^사유^저장시간^prestbedcd^chngbedcd^주치의^주치의전화번호^진료의전화^병동전화^유저ID^유저명^부서코드^부서명^현재일자^현재일시^입원일자^생성번호^시퀀스번호^기관코드^입실확인일자^입실확인시간^처방존재여부^식사처방변경여부^수가코드^응급입실일자^응급일실시간^부서코드^부서명^유저ID^유저명^현재일자^현재시간^진료구분^내일일자^부서코드^caption1^caption2^caption3" colsep="^" colwidth="32, 40, 0, 30, 45, 55, 60, 44, 100, 0, 70, 45, 47, 60, 70, 45, 47, 60, 150, 149, 60, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" ellipsis="true" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:116px; width:1071px; height:524px; ">
- -->
- <datagrid id="grd_patList" nodeset="/root/main/inpatlist/inpatlist" class="datagrid2" caption="입실
확인^전동작성완료^구분^회복^승인^현재
병실^현재
병상^등록번호^환자명^전동
기록^S/A^식사처방^식사처방코드^From^From^From^From^From^To^To^To^To^To^진단명^사유^저장시간^prestbedcd^chngbedcd^rrgstno1^rrgstno2^orddeptnm^담당의^담당의전화번호^전문의전화^병동전화^유저ID^유저명^부서코드^부서명^현재일자^현재일시^입원일자^생성번호^시퀀스번호^기관코드^입실확인일자^입실확인시간^처방존재여부^식사처방변경여부^수가코드^응급입실일자^응급일실시간^부서코드^부서명^유저ID^유저명^현재일자^현재시간^진료구분^내일일자^부서코드^caption1^caption2^caption3" colsep="^" colwidth="32, 38, 40, 0, 30, 45, 50, 55, 60, 40, 44, 70, 0, 70, 45, 0, 47, 60, 70, 45, 0, 47, 60, 122, 149, 60, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" ellipsis="true" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:115px; width:1071px; height:509px; ">
- <!--(20101206) 경북대 -->
- <col checkvalue="U,N" disabled="true" ref="inrmcnfmflag" type="checkbox">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 입실취소기능 삭제_20080729(ByJA)
- /*
- var inrmcnfmflag = model.getValue("/root/main/inpatlist/inpatlist[" + grd_patList.row + "]/inrmcnfmflag");
- var chngdeptroomflag = model.getValue("/root/main/inpatlist/inpatlist[" + grd_patList.row + "]/chngdeptroomflag");
- if(inrmcnfmflag == "N" && chngdeptroomflag == "01") {
- var rtn = messageBox("입실확인을 정말로 취소하시겠습니까?", "Q");
-
- if(rtn == "6") {
- model.setValue("/root/main/inpatlist/inpatlist[" + grd_patList.row + "]/inrmcnfmflag", "N");
- } else {
- model.setValue("/root/main/inpatlist/inpatlist[" + grd_patList.row + "]/inrmcnfmflag", "U");
- }
- }
- */
-
- ]]>
- </script>
- </col>
- <col ref="transyn_in" visibility="hidden"/>
- <col disabled="true" ref="chngdeptroomflag" type="combo">
- <choices>
- <item>
- <label>입원</label>
- <value>01</value>
- </item>
- <item>
- <label>전과</label>
- <value>02</value>
- </item>
- <item>
- <label>+전실</label>
- <value>03</value>
- </item>
- <item>
- <label>-전실</label>
- <value>04</value>
- </item>
- </choices>
- </col>
- <col ref="recov" type="combo">
- <choices>
- <item>
- <label>Y</label>
- <value>01</value>
- </item>
- <item>
- <label/>
- <value>02</value>
- </item>
- </choices>
- </col>
- <col ref="acptflag"/>
- <col ref="room"/>
- <col ref="bedcd"/>
- <col ref="pid"/>
- <col ref="patnm"/>
- <col editable="false" ref="transyn" type="inputbutton" style="text-align:center; "/>
- <col ref="sexage"/>
- <col disabled="true" editmode="input" ref="mealprcp" type="combo" style="left:354px; top:32px; width:100px; height:23px; ">
- <choices>
- <itemset nodeset="/root/temp/mealcodeinfo/codelist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="mealprcpcd"/>
- <col ref="fromward"/>
- <col ref="fromroom"/>
- <!-- 20101213_KNUH_Start 전실할병상코드 -->
- <col ref="frombedcd"/>
- <col ref="fromdeptnm"/>
- <col ref="fromdrnm"/>
- <col ref="toward"/>
- <col ref="toroom"/>
- <!-- 20101213_KNUH_Start 전실할병상코드 -->
- <col ref="tobedcd"/>
- <col ref="todeptnm"/>
- <col ref="todrnm"/>
- <col ref="diagnm"/>
- <col ref="resn"/>
- <col ref="savetm" format="hh:nn"/>
- <col ref="prestbedcd" visibility="hidden"/>
- <col ref="chngbedcd" visibility="hidden"/>
- <col ref="rrgstno1" visibility="hidden"/>
- <col ref="rrgstno2" visibility="hidden"/>
- <col ref="orddeptnm" visibility="hidden"/>
- <col ref="toatdoctnm"/>
- <col ref="atdoctidphonno"/>
- <col ref="medispclphonno"/>
- <col ref="tocntctel"/>
- <col ref="indd"/>
- <col ref="cretno"/>
- <col ref="seqno"/>
- <col ref="instcd"/>
- <col ref="careinrmdd"/>
- <col ref="careinrmtm"/>
- <col ref="mskind"/>
- <col ref="histstat"/>
- <col ref="acptflagcd"/>
- <col ref="appflagcd"/>
- <col ref="appdd"/>
- <col ref="apptm"/>
- <col ref="appid"/>
- <col ref="pamacptdd"/>
- <col ref="pamacpttm"/>
- <col ref="pamacptid"/>
- <col ref="prestwardcd"/>
- <col ref="prestroomcd"/>
- <col ref="prestroomgrde"/>
- <col ref="prestroomtype"/>
- <col ref="prestcentcd"/>
- <col ref="prestsuporddeptcd"/>
- <col ref="prestorddeptcd"/>
- <col ref="prestmedispclid"/>
- <col ref="prestatdoctid"/>
- <col ref="chngwardcd"/>
- <col ref="chngroomcd"/>
- <col ref="chngroomgrde"/>
- <col ref="chngroomtype"/>
- <col ref="oxyyn"/>
- <col ref="suctyn"/>
- <col ref="chngcentcd"/>
- <col ref="chngsuporddeptcd"/>
- <col ref="chngorddeptcd"/>
- <col ref="chngmedispclid"/>
- <col ref="chngatdoctid"/>
- <col ref="specordyn"/>
- <col ref="enddd"/>
- <col ref="endid"/>
- <col ref="prestremcd"/>
- <col ref="chngprestrem"/>
- <col ref="fstrgstrid"/>
- <col ref="fstrgstdt"/>
- <col ref="lastupdtrid"/>
- <col ref="lastupdtdt"/>
- <col ref="prcpyn"/>
- <col ref="calcscorcd"/>
- <col ref="chngyn"/>
- <col ref="clacdd"/>
- <col ref="calctm"/>
- <col ref="deptcd"/>
- <col ref="deptnm"/>
- <col ref="userid"/>
- <col ref="usernm"/>
- <col ref="curdd"/>
- <col ref="curtm"/>
- <col ref="orddeptcd"/>
- <col ref="ordflag"/>
- <col ref="inpath"/>
- <col ref="ordtype"/>
- <col ref="ordtype"/>
- <col ref="curtm"/>
- <col ref="ordflag"/>
- <col ref="nextdd"/>
- <col ref="orddeptcd"/>
- <col/>
- <col/>
- <col/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 하드코딩 수정 20100715 안도영
- var mealCopyPath = "/root/temp/mealcodeinfo"; // 식사 처방 코드 경로
- var calCopyPath = "/root/temp/calcodeinfo"; // 식사 수가 코드 경로
-
- if(grd_patList.col == grd_patList.colRef("mealprcp")) { // 해당 처방에 맵핑된 수가코드 넣기
- for(i=0; i<mealCdArr.length; i++){
- if(model.getValue("/root/main/inpatlist/inpatlist[" + grd_patList.row + "]/mealprcp") == mealCdArr[i]) {
- grd_patList.valueMatrix(grd_patList.row,grd_patList.colRef("calcscorcd")) = calCdArr[i];
- //alert("mealCdArr[i] : " + mealCdArr[i] + " / " + "calCdArr[i] : " + calCdArr[i]);
- }
- }
- grd_patList.valueMatrix(grd_patList.row, grd_patList.colRef("chngyn")) = "Y";
- grd_patList.valueMatrix(grd_patList.row, grd_patList.colRef("mealprcpcd")) = grd_patList.ValueMatrix(grd_patList.row, grd_patList.colRef("mealprcp"));
- }
-
- //하드코딩 백업 20100715 안도영
- /*
- if(grd_patList.col == grd_patList.colRef("mealprcp")) {
- if(model.getValue("/root/main/inpatlist/inpatlist/mealprcp") == "Q9140002") {
- grd_patList.valueMatrix(grd_patList.row,grd_patList.colRef("calcscorcd")) = "Q90002"
- } else if(model.getValue("/root/main/inpatlist/inpatlist/mealprcp") == "Q1011001") {
- grd_patList.valueMatrix(grd_patList.row,grd_patList.colRef("calcscorcd")) = "Q1Y1111G"
- }
- grd_patList.valueMatrix(grd_patList.row, grd_patList.colRef("chngyn")) = "Y";
- grd_patList.valueMatrix(grd_patList.row, grd_patList.colRef("mealprcpcd")) = grd_patList.ValueMatrix(grd_patList.row, grd_patList.colRef("mealprcp"));
- }
- */
-
-
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var iRow = grd_patList.row;
- var pidRow = grd_patList.col;
-
- if(grd_patList.isCell(event.target) && grd_patList.mouseRow >= grd_patList.fixedrows){
-
- if(grd_patList.valueMatrix(iRow, grd_patList.colRef("acptflag")) == "완료" && (grd_patList.valueMatrix(iRow, grd_patList.colRef("chngdeptroomflag"))== "03" || grd_patList.valueMatrix(iRow, grd_patList.colRef("chngdeptroomflag"))== "04")) {
- setParameter("SPMNW12400_PARAM1", model.getValue("/root/main/inpatlist/inpatlist[" +iRow + "]/pid"));
- setParameter("SPMNW12400_PARAM2", model.getValue("/root/main/inpatlist/inpatlist[" +iRow + "]/indd")); // 추가_20081229(ByJA)
- modal("SPMNW12400");
- }
- }
-
-
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var col = grd_patList.col;
- var transyn = grd_patList.valueMatrix(grd_patList.row, grd_patList.colRef("transyn"));
-
- var pid = grd_patList.valueMatrix(grd_patList.row,grd_patList.colRef("pid")) ;
- var indd = grd_patList.valueMatrix(grd_patList.row,grd_patList.colRef("indd")) ;
- var cretno = grd_patList.valueMatrix(grd_patList.row,grd_patList.colRef("cretno")) ;
-
- var instcd = grd_patList.valueMatrix(grd_patList.row,grd_patList.colRef("instcd")) ;
- var appdd = grd_patList.valueMatrix(grd_patList.row,grd_patList.colRef("appdd")) ;
- var apptm = grd_patList.valueMatrix(grd_patList.row,grd_patList.colRef("apptm")) ;
-
- if(col == grd_patList.colRef("transyn")) {
- if(transyn == "Y") {
- setParameter("SMMNW01301_PID" , grd_patList.valueMatrix(grd_patList.row,grd_patList.colRef("pid")) );
- setParameter("SMMNW01301_INDD" , grd_patList.valueMatrix(grd_patList.row,grd_patList.colRef("indd")) );
- setParameter("SMMNW01301_CRETNO" , grd_patList.valueMatrix(grd_patList.row,grd_patList.colRef("cretno"))) ;
- setParameter("SMMNW01301_APPDD" , grd_patList.valueMatrix(grd_patList.row,grd_patList.colRef("appdd")) );
- setParameter("SMMNW01301_APPTM" , grd_patList.valueMatrix(grd_patList.row,grd_patList.colRef("apptm")) );
- setParameter("SMMNW01301_INSTCD" , grd_patList.valueMatrix(grd_patList.row,grd_patList.colRef("instcd"))) ;
- setParameter("SMMNW01301_PARAM" , "SMMNW01100") ;
- open("SMMNW01301");
- } else {
- messageBox("기록된 전동기록지가 존재하지않습니다.", "E");
- return;
-
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
-
-
- if( grd_patList.valueMatrix(grd_patList.mouseRow, grd_patList.mouseCol) != "")
- {
- fShowPopupMenu("grd_patList","/root/main/menuitems/gnrlmenu/item");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- var col = grd_patList.col;
- var inrmcnfmflag = grd_patList.valueMatrix(grd_patList.row, grd_patList.colRef("inrmcnfmflag"));
-
- var transyn_in = grd_patList.valueMatrix(grd_patList.row,grd_patList.colRef("transyn_in")) ;
-
- if(col == grd_patList.colRef("inrmcnfmflag")) {
- if(inrmcnfmflag == "U"){
- if(transyn_in != null && transyn_in != "" && transyn_in=="N+"){
- messageBox("전동기록지 인수자정보가 누락되어 전실저장이 불가능 합니다.", "I");
- grd_patList.valueMatrix(grd_patList.row, grd_patList.colRef("inrmcnfmflag"))='N';
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption4" class="tit_2" style="left:5px; top:6px; width:200px; height:13px; ">당일입원, 전과, 전실 환자 list</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:112px; x2:1071px; y2:112px; "/>
- <caption id="caption6" style="left:7px; top:91px; width:450px; height:17px; font-weight:bolder; color:#0000ff; ">※ 전실(완료) 환자 더블 클릭시 약품인계내역을 확인 할 수 있습니다.</caption>
- <img id="img1" visibility="hidden" src="../../../emr/commonweb/images/icon_btn.gif" style="left:985px; top:5px; width:15px; height:15px; background-stretch:stretch; ">
- <script type="javascript" ev:event="onmousemove">
- <![CDATA[
- cap_key.visible =true;
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseout">
- <![CDATA[
- cap_key.visible =false;
- ]]>
- </script>
- </img>
- <caption id="caption7" style="left:1047px; top:625px; width:26px; height:14px; ">[표]</caption>
- <output id="output1" ref="/root/temp/mdruginfo/mdruginfo/mdrugcount" visibility="hidden" style="left:1030px; top:90px; width:30px; height:20px; "/>
- <group id="group3" visibility="hidden" style="left:350px; top:300px; width:455px; height:205px; background-color:#ccffcc; ">
- <datagrid id="grd_cplist" nodeset="/root/main/cpinfo/cplist" caption="진료과^CP명칭^CP No." colsep="^" colwidth="170, 160, 80" mergecellsfixedrows="bycolrec" rowsep="|" style="left:15px; top:35px; width:430px; height:135px; ">
- <col ref="inorddeptnm"/>
- <col ref="cpgnm"/>
- <col ref="cpgno"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var row = grd_cplist.row;
- if ( row > 0 && row <= grd_cplist.rows) {
- cpgno = model.getValue("/root/main/cpinfo/cplist[" + grd_cplist.row +"]/cpgno");
- fSetNrCpRecord(cpgno);
- group3.visible = false;
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption9" class="tit_2" style="left:15px; top:10px; width:275px; height:13px; ">해당하는 CP를 선택하십시오.</caption>
- <button id="button4" class="btn5_letter2" navindex="22" style="left:400px; top:175px; width:42px; height:19px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group3.visible = false;
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" visibility="hidden" style="left:290px; top:300px; width:455px; height:155px; background-color:#ffff99; ">
- <caption id="caption10" class="tit_2" style="left:15px; top:10px; width:275px; height:13px; font-family:굴림체; ">CP환자 입원계획표</caption>
- <datagrid id="grd_attfile" nodeset="/root/main/attfileinfo/attach" caption="파일명^경로^caption1" colsep="^" colwidth="386, 100, 30" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:15px; top:25px; width:430px; height:100px; ">
- <col ref="attfilenm" style="left:20px; top:23px; width:4zz31px; height:23px; "/>
- <col ref="file" visibility="hidden"/>
- <col ref="check" type="checkbox" visibility="hidden"/>
- </datagrid>
- <button id="button3" class="btn5_letter4" navindex="22" style="left:335px; top:130px; width:64px; height:19px; ">
- <caption>다운로드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //저장한 파일을 다운로드한다.
- var attLength = instance1.selectNodes("/root/main/attfileinfo/attach").length;
- var iRow = 0;
-
- if( attLength <= 0 ){
- iRow = 0;
- var msg = messageBox("다운로드 할 파일이", "E014");
- return;
-
- }else{
- if( grd_attfile.row > 0 ){
- iRow = grd_attfile.row;
-
- }else{
- if( attLength == 1 ) iRow = 1;
- }
- }
-
- if( iRow == 0 ) {
- var msg = messageBox("다운로드 할 파일을", "C002");
- return;
- } else {
- fDownLoadFile( iRow );
- }
-
- group4.visible = false;
- ]]>
- </script>
- </button>
- <button id="button5" class="btn5_letter2" navindex="22" style="left:400px; top:130px; width:42px; height:19px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group4.visible = false;
- ]]>
- </script>
- </button>
- </group>
- <button id="button6" class="btn4_letter3" style="left:1004px; top:3px; width:68px; height:22px; ">
- <caption>도움말</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var scrnid = getScreenID();
-
- fGetHelpList(scrnid);
-
- ]]>
- </script>
- </button>
- <button id="btn_prt" class="btn1_letter2" visibility="hidden" style="left:945px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExecPrint(); // 출력
- ]]>
- </script>
- </button>
- <caption id="cap_key" class="text_essential" visibility="hidden" appearance="caption" style="left:135px; top:175px; width:840px; height:114px; text-align:left; ">
- <![CDATA[1. 입실은 환자팔찌의 바코드를 리더기로 입력하거나 등록번호를 직접 입력 후 저장한다.
- 2. 전실은 환자를 선택하여 전실저장한다.
- 3. 입실, 전실저장시 환자의 담당의에게 SMS로 정보가 전달된다.
- 4. 응급의료센터, 통원수술센터, 암센터주사실, BMT주사실을 통한 입원의 경우 퇴실정리시점에 자동 입실저장된다.
- : 응급의료센터(병원별 추가부서 존재 : 통원수술센터, 암센터주사실, BMT주사실 등)를 통한 입원의 경우 퇴실정리시점에 자동 입실저장된다.
- 5. 입실저장시 식사처방 마감시간에 맞춰 개인금식과 일반밥을 선택하여 발행할 수 있고 저녁마감시간 이후 입실시 당일 식사처방은 발행되지 않는다.
- 6. 입실저장 이후 타부서로 처방이 전달된다.
- ]]>
- </caption>
- </group>
- <group id="group1" visibility="hidden" style="left:290px; top:235px; width:470px; height:50px; font-family:굴림; background-color:#87CEFA; ">
- <caption id="caption8" class="tit_2" style="left:0px; top:5px; width:275px; height:13px; ">환자의 이동방법을 선택하십시오.</caption>
- <button id="button1" class="btn5_letter2" navindex="22" style="left:375px; top:25px; width:42px; height:19px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetPatName();
- group1.visible = false;
- ]]>
- </script>
- </button>
- <button id="button2" class="btn5_letter2" navindex="22" style="left:420px; top:25px; width:42px; height:19px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group1.visible = false;
- ]]>
- </script>
- </button>
- <select1 id="radio3" ref="/root/main/method" class="radio_search" appearance="full" cols="4" overflow="visible" style="left:20px; top:26px; width:345px; height:19px; border-style:none; ">
- <choices>
- <item>
- <label>걸어서(Foot)</label>
- <value>Foot</value>
- </item>
- <item>
- <label>휠체어이용(Wheel)</label>
- <value>Wheel</value>
- </item>
- <item>
- <label>침대차이용(Car)</label>
- <value>Car</value>
- </item>
- </choices>
- </select1>
- </group>
- </xhtml:body>
- </xhtml:html>
|