123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/hismainweb/css/hismain.css" type="text/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="">
- <send>
- <infection/>
- </send>
- <main>
- <patinfo>
- <pid/>
- <!--환자ID-->
- <pname/>
- <!--환자명-->
- <pname2/>
- <!--환자명2-->
- <dispnm1/>
- <!--환자표시명1-->
- <dispnm2/>
- <!--환자표시명2-->
- <recovwardnm/>
- <!-- 중증병실 -->
- <age/>
- <!--나이-->
- <rrgstno/>
- <!--주민번호-->
- <addr/>
- <!--주소-->
- <insukind/>
- <!--보험유형-->
- <ininfo/>
- <!--외래/입원정보-->
- <btype/>
- <!--혈액형-->
- <orddept/>
- <!--진료과-->
- <apntdr/>
- <!--주치의-->
- <attndr/>
- <diagnosis/>
- <!--진단명-->
- <operation/>
- <!--수술명-->
- <stgediagnm/>
- <!--C상병-->
- <stgecd/>
- <!--TNM -->
- <tnmcd1/>
- <tnmcd2/>
- <tnmcd3/>
- <infection/>
- <!--혈액,접촉,공기주의버튼-->
- <allergy/>
- <!--ADR버튼-->
- <newallergy/>
- <chart/>
- <!--차트버튼:상태값없음-->
- <organ/>
- <!--이식버튼-->
- <cp/>
- <!--CP버튼-->
- <drgyn/>
- <!--DRG버튼-->
- <vip/>
- <!--VIP버튼-->
- <healexam/>
- <!--건진버튼-->
- <intncare/>
- <!--특례버튼-->
- <coop/>
- <!--협력버튼-->
- <inspection/>
- <!--심사버튼:상태값없음-->
- <home/>
- <!--홈버튼:상태값없음-->
- <clear/>
- <!--클리어버튼:상태값없음-->
- <cnsttypenm/>
- <!--협진명:매핑없이 인스턴스만 존재-->
- <regstno/>
- <!--주민번호:매핑없이 인스턴스만 존재-->
- <detladdr/>
- <!--상세주소:매핑없이 인스턴스만 존재-->
- <zipcd/>
- <!--우편번호:매핑없이 인스턴스만 존재-->
- <diagcd/>
- <!--진단코드:매핑없이 인스턴스만 존재-->
- <stgediagcd/>
- <!--병기진단코드:매핑없이 인스턴스만 존재-->
- <addrdetl/>
- <!--이하 정보없음-->
- <telno/>
- <cnsttypenm/>
- <pinfo/>
- <!--사생활보호-->
- <binfo/>
- <dinfo/>
- <nutinfo/>
- <!--영양고위험-->
- <recmer/>
- <!--환자 지인 존재여부-->
- <recmerinfo/>
- <!--환자 지인 정보-->
- </patinfo>
- </main>
- <properties>
- <patient>
- <inpatientinfo/>
- <outpatientinfo/>
- <operationinfo/>
- <consultinfo/>
- <patientinfopath/>
- <ordertargetflag/>
- </patient>
- </properties>
- </root>
- </instance>
- <submission id="TRMMO04303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/rsltgetdata"/>
- <submission id="TXMMO04301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/hidden"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- </xhtml:head>
- <script type="javascript">
- <![CDATA[
- // 수술 및 진단 정보 마우스 오버시 인스턴스 내용 다 보이기
- function fSetCtrlHint(){
- var ctrl = document.controls(event.target);
- ctrl.hint = model.getValue(ctrl.attribute("ref"));
- ctrl.refresh();
- }
-
- // 버튼 그룹에서 버튼을 클릭한 경우 실행되는 공통 함수
- function fClickButton(ctrlID) {
- var btnID = "";
- if (ctrlID == "btn_top_infection0") { // 혈액주의
- model.setValue("/root/send/infection", "B");
- //2013/05/03 Start
- open("SMASB01100", "", "", "", ""," /root/send/infection", "/root/main/cond/isolkind");
- //open("SPASB01600", "", "", "", ""," /root/send/infection", "/root/main/cond/isolkind");
- //2013/05/03 End
- } else if (ctrlID == "btn_top_infection1") { // 접촉주의
- model.setValue("/root/send/infection", "C");
- //2013/05/03 Start
- open("SMASB01100", "", "", "", ""," /root/send/infection", "/root/main/cond/isolkind");
- //open("SPASB01600", "", "", "", ""," /root/send/infection", "/root/main/cond/isolkind");
- //2013/05/03 End
- } else if (ctrlID == "btn_top_infection2") { // 공기주의
- model.setValue("/root/send/infection", "A");
- //2013/05/03 Start
- open("SMASB01100", "", "", "", ""," /root/send/infection", "/root/main/cond/isolkind");
- //open("SPASB01600", "", "", "", ""," /root/send/infection", "/root/main/cond/isolkind");
- //2013/05/03 End
- } else if (ctrlID == "btn_top_allergy") { // ADR (알러지)
- open("SPMMD03300");
- } else if (ctrlID == "btn_top_chart") { // 차트
- messageBox("아직 구현되지 않은 기능", "E008");
-
- } else if (ctrlID == "btn_top_organ") { // 이식
- messageBox("아직 구현되지 않은 기능", "E008");
- var value = fGetPatientInfo("organ");
- if (value != "Y") {
- return;
- }
- } else if (ctrlID == "btn_top_cp") { // CP
- var value = fGetPatientInfo("cp");
- if (value == "Y") {
- open("SMMMP02700");
- }else{
- return;
- }
- } else if (ctrlID == "btn_top_drgyn") { // DRG
- var pid = model.getValue("/root/properties/patient/inpatientinfo/pid");
- var orddd = model.getValue("/root/properties/patient/inpatientinfo/indd");
- var cretno = model.getValue("/root/properties/patient/inpatientinfo/cretno");
-
- setParameter("pid", pid);
- setParameter("indd", orddd);
- setParameter("cretno", cretno);
-
- open("SPPIJ03201");
- } else if (ctrlID == "btn_top_vip") { // VIP
- var value = fGetPatientInfo("vip");
- if (value == "Y") {
- modal("../../../pam/patinfomngtweb/xrw/SPPMC08000", "1","150","150", "SMPAI00200", "/root/main/patinfo", "/root/send/patinfo");
- }else{
- return;
- }
- } else if (ctrlID == "btn_top_intncare") { // 특례
- curIntncareObj = getOpenWindow("SPMMO21700"); //활성화된 특례 화면 object loading
- if(curIntncareObj != null){
- var pid = model.getValue("/root/main/patinfo/pid");
- curIntncareObj.model.setvalue("/root/main/cond/pid", pid );
- curIntncareObj.javascript.btn_req.dispatch("DOMActivate");
- curIntncareObj.window.activate();
- }else{
- open("SPMMO21700", "", "", "", "","/root/main/patinfo/pid", "/root/init/pid");
- }
- return;
- } else if (ctrlID == "btn_top_clear") { // 클리어
- fInitialize();
- grp_blank.attribute("visibility") = "visible";
- grp_patientinfo.attribute("visibility") = "hidden";
-
- var mainObj = getMainViewer();
- var mainscrnid = mainObj.javascript.getScreenID(); //메인화면의 기록지 ID
- var curCpObj = mainObj.javascript.getOpenWindow("SMMMP00800"); //활성화된 CP Main 화면 object loading
- var curPrcpObj = mainObj.javascript.getOpenWindow("SMMMO00100"); //활성화된 처방Main 화면 object loading
- var curCpSrchObj = mainObj.javascript.getOpenWindow("SPMMP01200"); //활성화된 CP 검색 화면 object loading
-
- if(curPrcpObj != null) { //활성화된 처방Main 화면이 있는 경우 close
- curPrcpObj.javascript.fPrcpWndClose();
- }
-
- if(curCpObj != null){ //활성화된 CP Main화면이 있는 경우 close
- curCpObj.javascript.fCloseGPS();
- }
-
- if(curCpSrchObj != null){ //활성화된 CP검색화면이 있는 경우 close
- curCpSrchObj.javascript.fCpSrchWndClose();
- }
-
- if (mainscrnid == "SMMMR00100") {
- curFormLoaderObj = getOpenWindow("SSMMR01100"); //활성화된 서식로더창 체크
- if(curFormLoaderObj != null){ //서식로더 Close : 2009-06-03 : 이상현 D/L 요청 : 김영학 ;
- //knuh 20120104 최원돈 OCS 진료대상자 OCS 조회 시 환자메모를 자동으로 사라지게 설정 SMMMO04100.js, SPMMR05600.js, MMR00100.js
- var curMemoObj = getOpenWindow("SPMMR05600");
- if(curMemoObj != null){curMemoObj.javascript.window.close();} //환자메모 화면 close
-
- curFormLoaderObj.javascript.fClose();
- } //서식로더 close()
-
- mainObj.window.javascript.navigate("SMMMB08100"); // 빈페이지
- }
-
- return;
- } else if (ctrlID == "btn_top_healexam" || ctrlID == "btn_top_coop") {
- event.stopPropagation();
- return;
- } else if (ctrlID == "btn_top_pinfo") { // 사생활보호
- open("SPPMC06900", "", "", "", ""," /root/main/patinfo/pid", "/root/init/pid");
- return;
- } else if (ctrlID == "btn_tnm" || ctrlID == "btn_stgediagnm") { // C상병, TNM
- open("SPMMO08500");
- return;
- } else if(ctrlID == "btn_top_recmer"){
- setParameter("SPPMC05600_pid",model.getValue("/root/main/patinfo/pid"));
- open("SPPMC05700");
- } else {
- messageBox("아직 구현되지 않은 기능", "E008");
- return;
- }
- }
-
- //값이 Y일때만 도트 및 명칭 반전
- function fSetCtrlClass(key){
- var nodeValue = fGetPatientInfo(key);
- var valueArr = nodeValue.split("^");
- var ctrlOjb = null;
-
- if (valueArr.length > 1) { // infection or allergy
- if (key == "infection") {
- for (var i = 0; i < valueArr.length; i++) {
- ctrlObj = document.controls("btn_top_" + key + i);
- if (valueArr[i] == "Y") {
- ctrlObj.attribute("background-image") = "../../../com/hismainweb/images/btn_top_" + key + i + ".gif";
- } else {
- ctrlObj.attribute("background-image") = "../../../com/hismainweb/images/btn_top_" + key + i + "_d.gif";
- }
- }
- } else if (key == "allergy") {
- // 기존에 ADR/Allergy 로 두 개의 값(allergy0, allergy1)을 받던걸 하나로 변경. 둘 중하나라도 Y 이면 Y(실제로는 둘다 Y 이거나, 둘다 N으로 넘겨주기로 함)
- ctrlObj = document.controls("btn_top_" + key);
- if (valueArr[0] == "Y") {
- ctrlObj.attribute("background-image") = "../../../com/hismainweb/images/btn_top_" + key + ".gif";
- } else {
- ctrlObj.attribute("background-image") = "../../../com/hismainweb/images/btn_top_" + key + "_d.gif";
- }
- }
- } else {
- ctrlObj = document.controls("btn_top_" + key);
- if (valueArr[0] == "Y") {
- // 이식, CP, VIP, 평가의 경우 활성화 상태일때만 button 으로 동작하게끔
- if (key == "organ" || key == "cp" || key == "vip" || key == "binfo" || key == "dinfo" || key == "nutinfo") {
- ctrlObj.disabled = false;
- } else if (key == "newallergy") {
- ctrlObj = document.controls("btn_top_allergy");
- ctrlObj.attribute("background-image") = "../../../com/hismainweb/images/btn_top_newallergy.gif";
- return;
- }
- ctrlObj.attribute("background-image") = "../../../com/hismainweb/images/btn_top_" + key + ".gif";
- //ctrlObj.attribute("class") = "btn_top_" + key + "_enable";
- } else if (valueArr[0] == "N") {
- // 이식, CP, VIP, 평가의 경우 활성화 상태일때만 button 으로 동작하게끔
- if (key == "organ" || key == "cp" || key == "vip" || key == "binfo" || key == "dinfo" || key == "nutinfo") {
- ctrlObj.disabled = true;
- } else if (key == "newallergy") {
- ctrlObj = document.controls("btn_top_allergy");
- if (fGetPatientInfo("allergy") == "N") {
- ctrlObj.attribute("background-image") = "../../../com/hismainweb/images/btn_top_allergy_d.gif";
- } else if (fGetPatientInfo(key) == "Y") {
- ctrlObj.attribute("background-image") = "../../../com/hismainweb/images/btn_top_allergy.gif";
- }
- return;
- }
- ctrlObj.attribute("background-image") = "../../../com/hismainweb/images/btn_top_" + key + "_d.gif";
- //ctrlObj.attribute("class") = "btn_top_" + key + "_disable";
- } else if (valueArr[0] == "H") { // 사생활보호(과거 사생활보호 경력)인 경우 by 손병은
- ctrlObj.attribute("background-image") = "../../../com/hismainweb/images/btn_top_" + key + "_h.gif";
- }
- }
-
- if(key == "recmer"){
- ctrlObj = document.controls("btn_top_recmer");
- if (fGetPatientInfo("recmer") != "Y") {
- ctrlObj.attribute("background-image") = "../../../com/hismainweb/images/btn_top_recmer_d.gif";
- } else if (fGetPatientInfo("recmer") == "Y") {
- ctrlObj.attribute("background-image") = "../../../com/hismainweb/images/btn_top_recmer.gif";
- }
- }
- /*
- //var ctrlObj = "";
- //var infectionCtrlObj = document.controls("btn_top_"+ key);
- //dotCtrlObj.attribute("class") = "info_bullet3";
-
- for( var i = 0; i < valueArr.length; i++ ) {
- ctrlObj = document.controls("btn_"+key+i);
- if(ctrlObj != null){
- if(valueArr[i] == "Y"){
- if(key == "infection"){
- ctrlObj.attribute("class") = "icon_infection"+i+"_enable";
- }else{
- ctrlObj.attribute("class") = "diagnosis_orange";
- }
- dotCtrlObj.attribute("class") = "info_bullet3_over";
- }else{
- if(key == "infection"){
- ctrlObj.attribute("class") = "icon_infection"+i+"_disable";
- }else{
- ctrlObj.attribute("class") = "diagnosis_gray";
- }
- }
- }
- }
- */
- }
- //환자정보 초기화 및 스타일 초기화
- function fInitialize(){
- /* 01. 상단화면 초기화 */
- if ( grp_blank.attribute("visibility") != "hidden") {
- grp_blank.attribute("visibility") = "hidden"; // main background image hidden
- grp_patientinfo.attribute("visibility") = "visible"; // patientinfo image visible ( grp_patient & grp_doctor & grp_diagnosis & grp_buttons visible )
- }
-
- //인스턴스 초기화
- model.resetInstanceNode("/root/send/infection")
- model.resetInstanceNode("/root/main/patinfo");
- /* 02. 버튼 초기화*/
- model.setValue("/root/main/patinfo/infection","N^N^N"); // 혈액주의,접촉주의,공기주의
- model.setValue("/root/main/patinfo/allergy","N^N"); // allergy & newallergy
- //model.setValue("/root/main/patinfo/chart", "N"); // 차트 - 상태체크 없음
- model.setValue("/root/main/patinfo/organ","N"); // 이식
- model.setValue("/root/main/patinfo/cp","N"); // CP
- model.setValue("/root/main/patinfo/drgyn","N"); // DRG
- model.setValue("/root/main/patinfo/vip","N"); // VIP
- model.setValue("/root/main/patinfo/healexam","N"); // 건진
- model.setValue("/root/main/patinfo/intncare","N"); // 특례
- model.setValue("/root/main/patinfo/coop","N"); // 협력
- //model.setValue("/root/main/patinfo/inspection", "N"); // 심사 - 상태체크 없음
- //model.setValue("/root/main/patinfo/home", "N"); // 홈 - 상태체크 없음
- //model.setValue("/root/main/patinfo/clear", "N"); // 클리어 - 상태체크 없음
- model.setValue("/root/main/patinfo/pinfo", "N"); // 사생활
- model.setValue("/root/main/patinfo/dinfo", "N"); // 낙상
- model.setValue("/root/main/patinfo/binfo", "N"); // 욕창
- model.setValue("/root/main/patinfo/nutinfo", "N"); // 영양고위험
-
- //환자 상세 정보 초기화
- model.removeNodeset(gvPatientInfoPath);
- model.makeNode(gvPatientInfoPath);
-
- setGlobalVariable("paminfo", ""); //원무정보
- setGlobalVariable("consult", ""); //협진정보
- setGlobalVariable("operation", ""); //수술정보
- //스타일 초기화
- fSetCtrlClass("infection"); // 혈액주의,접촉주의,공기주의
- fSetCtrlClass("allergy"); // allergy & newallergy
- fSetCtrlClass("organ"); // 이식
- fSetCtrlClass("cp"); // CP
- fSetCtrlClass("drgyn"); // DRG
- fSetCtrlClass("vip"); // VIP
- fSetCtrlClass("healexam"); // 건진
- fSetCtrlClass("intncare"); // 특례
- fSetCtrlClass("coop"); // 협력
- fSetCtrlClass("pinfo"); // 사생활
- fSetCtrlClass("binfo"); // 욕창
- fSetCtrlClass("dinfo"); // 낙상
- fSetCtrlClass("nutinfo"); // 영양고위험
- fSetCtrlClass("recmer"); // 지인정보
-
- grp_patientinfo.refresh();
- }
- //환자 정보 삭제
- function fDelPatientInfos(){
- //초기화
- fInitialize();
- //환자정보 숨기기...
- grp_patientinfo.attribute("visibility") = "hidden";
- grp_blank.attribute("visibility") = "visible";
- return true;
- }
- /*
- pid, pname, age, addr, insukind, ininfo, body, btype,
- orddept, apntdr, attndr, diagnosis, operation, allergy, infection, intncare, cp
- addrdetl, regstno, telno, zipcd
- */
- /**
- * common.js 의 setPatientInfo(key, value) 에서 호출하는 메소드
- * 인터페이스 변경금지.
- */
- // key별 환자정보 저장
- function fSetPatientInfo(key, value) {
-
- //환자번호 세팅시 초기화
- if(key == "pid"){
- fInitialize();
- }
-
- var nodeObj = instance1.selectSingleNode("/root/main/patinfo/"+key);
- if (nodeObj != null){
- model.setValue(nodeObj, value);
- if( key == "infection" || key == "allergy" || key == "newallergy"
- || key == "organ" || key == "cp" || key == "drgyn"
- || key == "vip" || key == "healexam" || key == "intncare"
- || key == "coop" || key == "binfo" || key == "dinfo"
- || key == "pinfo" || key == "nutinfo" || key == "recmer" ) {
- fSetCtrlClass(key);
- } else if ( key == "diagnosis" || key == "operation" || key == "stgediagnm"
- || key == "stgecd" || key == "tnmcd1" || key == "tnmcd2" || key == "tnmcd3") {
-
- ctrlObj = document.controls("opt_"+key);
- if (ctrlObj == null) {
- return false;
- }
- if(fGetPatientInfo(key) != ""){
- ctrlObj.attribute("class") = "output_over";
- } else if (fGetPatientInfo(key) == "") {
- ctrlObj.attribute("class") = "output_d";
- }
- } else if(key == "btype" || key == "recovwardnm"){ // 손병은
- ctrlObj = document.controls("opt_"+key);
- if (ctrlObj == null) {
- return false;
- }
- if(fGetPatientInfo(key) != ""){
- ctrlObj.attribute("visibility") = "visible";
- if(key=="recovwardnm"){
- ctrlObj.attribute("hint") = "신속진료대상자입니다(B★:허혈성뇌졸중, C★:심근경색증,T★:중증외상)";
- }
- } else if (fGetPatientInfo(key) == "") {
-
- ctrlObj.attribute("visibility") = "hidden";
- }
- }
-
- model.refresh();
- return true;
- }
- return false;
- }
-
- //환자정보 전체 저장
- function fSetPatientInfos(values) {
- fInitialize();
- var patientInfoArr = values.split("|");
- var node = instance1.selectSingleNode("/root/main/patinfo");
- var nodeList = node.childNodes;
-
- for(var i=0; i< patientInfoArr.length; i++){
- nodeList.item(i).value = patientInfoArr[i];
- }
-
- //스타일 초기화
- fSetCtrlClass("infection"); // 혈액주의,접촉주의,공기주의
- fSetCtrlClass("allergy"); // allergy & newallergy
- //fSetCtrlClass("chart"); // 차트 - 상태체크없음
- fSetCtrlClass("organ"); // 이식
- fSetCtrlClass("cp"); // CP
- fSetCtrlClass("drgyn"); // DRG
- fSetCtrlClass("vip"); // VIP
- fSetCtrlClass("healexam"); // 건진
- fSetCtrlClass("intncare"); // 특례
- fSetCtrlClass("coop"); // 협력
- //fSetCtrlClass("inspection"); // 심사 - 상태체크없음
- //fSetCtrlClass("home"); // 홈 - 상태체크없음
- //fSetCtrlClass("clear"); // 클리어 - 상태체크없음
- fSetCtrlClass("pinfo"); // 사생활
- fSetCtrlClass("binfo"); // 욕창
- fSetCtrlClass("dinfo"); // 낙상
- fSetCtrlClass("nutinfo"); // 영양고위험
- fSetCtrlClass("recmer"); // 지인정보
-
- model.refresh();
- return true;
- }
- //key별 환자정보 반환
- function fGetPatientInfo(key) {
-
- var nodeObj = instance1.selectSingleNode("/root/main/patinfo/"+key);
-
- if (nodeObj != null){
- return model.getValue(nodeObj);
- }
- }
-
- //환자번호 조회
- function fGetPatientId() {
- return fGetPatientInfo("pid");
- }
- //환자명 조회
- function fGetPatientName() {
- return fGetPatientInfo("pname");
- }
- //환자정보 조회 전체
- function fGetPatientInfos() {
- var node = instance1.selectSingleNode("/root/main/patinfo");
- var childNodeList = node.childNodes;
- var childCnt = childNodeList.length;
- var patientInfos = "";
-
- for( var i = 0; i < childCnt - 1; i++ ) {
- patientInfos += childNodeList.item(i).text + "|";
- }
- patientInfos += childNodeList.item(i).text + "|";
-
- return patientInfos;
- }
-
- //환자정보 상세 created by 김선희 (2007.12.14)
-
- //환자정보가 이전 환자와 같은 정보인지 체크한다.
- function fCheckPatientId(checkPath, key){
- var pid = fGetPatientId();
- if(pid != null && pid != ""){
- if(pid != model.getValue(checkPath+"/pid")){
- messageBox("환자정보가", "E004");
- model.removeNodeset(checkPath);
- return false;
- }
- }else{
- messageBox("환자기본정보를 저장후 저장","I006");
- return false;
- }
-
- //전체세션정보 저장
- setGlobalVariable(key, getNodeListCSV(instance1.selectNodes(checkPath)));
- return true;
- }
- //환자구분에 설정한다.(Ver1.1)
- function fSetPatientFlag(value){
- //외래환자
- if(value == "O" || value == "S"){
- model.makeNode(gvPatientInfoPath+"/outpatientinfo");
- model.removeNodeset(gvPatientInfoPath+"/inpatientinfo");
- model.makeValue(gvPatientInfoFlagPath, gvPatientInfoPath+"/outpatientinfo");
- }
- //입원환자
- if(value == "I" || value == "D" || value == "E"){
- model.makeNode(gvPatientInfoPath+"/inpatientinfo");
- model.removeNodeset(gvPatientInfoPath+"/outpatientinfo");
- model.makeValue(gvPatientInfoFlagPath, gvPatientInfoPath+"/inpatientinfo");
- }
-
- setGlobalVariable("patflag", "prcpgenrflag▩"+value+"▩");
- return true;
- }
-
- function fGetPatientInfoPath(){
- return model.getValue(gvPatientInfoFlagPath);
- }
-
- //환자구분에 따른 상세정보 반환
- function fGetPatientInfoDetail(key){
- var nodeObj = instance1.selectSingleNode(fGetPatientInfoPath()+"/"+key);
-
- if (nodeObj != null){
- return model.getValue(nodeObj);
- } else {
- return false;
- }
- }
-
- // 환자 상세정보를 key 별로 저장한다.
- function fSetPatientInfoDetailByKey(key, value) {
- var nodeObj = instance1.selectSingleNode(fGetPatientInfoPath()+"/"+key);
- if (nodeObj != null) {
- return model.setValue(nodeObj, value);
- } else {
- return false;
- }
- }
-
- // 수술 상세정보를 key 별로 저장한다.
- function fSetOperationInfoDetailByKey(key, value) {
- var nodeObj = instance1.selectSingleNode(gvOperationInfoPath + "/" + key);
- if (nodeObj != null) {
- return model.setValue(nodeObj, value);
- } else {
- return false;
- }
- }
-
- // 협진 상세정보를 key 별로 저장한다.
- function fSetConsultInfoDetailByKey(key, value) {
- var nodeObj = instance1.selectSingleNode(gvConsultInfoPath + "/" + key);
- if (nodeObj != null) {
- return model.setValue(nodeObj, value);
- } else {
- return false;
- }
- }
-
- //수술정보를 조회한다.
- function fGetOperationInfo(key){
- var nodeObj = instance1.selectSingleNode(gvOperationInfoPath+"/"+key);
-
- if (nodeObj != null){
- return model.getValue(nodeObj);
- }
- }
- //협진정보를 조회한다.
- function fGetConsultInfo(key){
- var nodeObj = instance1.selectSingleNode(gvConsultInfoPath+"/"+key);
-
- if (nodeObj != null){
- return model.getValue(nodeObj);
- }
- }
- //CP환자 여부 검사 - 2008.08.26 김영학SW
- function fChkCPPatValid(){
- var outpid = model.getValue("/root/properties/patient/outpatientinfo/pid");
- if (outpid == "") {
- var pid = model.getValue("/root/properties/patient/inpatientinfo/pid");
- var orddd = model.getValue("/root/properties/patient/inpatientinfo/indd");
- var cretno = model.getValue("/root/properties/patient/inpatientinfo/cretno");
- var cpyn = model.getValue("/root/properties/patient/inpatientinfo/cpyn");
- var hngnm = model.getValue("/root/properties/patient/inpatientinfo/hngnm");
- var orddeptcd = model.getValue("/root/properties/patient/inpatientinfo/orddeptcd");
-
- model.removeNodeset("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/pid" , pid);
- model.makeValue("/root/send/reqdata/orddd" , orddd);
- model.makeValue("/root/send/reqdata/cretno" , cretno);
- model.makeValue("/root/send/reqdata/prcpgenrflag", "I");
- model.makeValue("/root/send/reqdata/srchtabflag" , "I"); //대상자리스트탭(I/D):조회결과orddd,cretno는 외래이력의 수전정보임
- } else {
- var pid = model.getValue("/root/properties/patient/outpatientinfo/pid");
- var orddd = model.getValue("/root/properties/patient/outpatientinfo/orddd");
- var cretno = model.getValue("/root/properties/patient/outpatientinfo/cretno");
- var hngnm = model.getValue("/root/properties/patient/outpatientinfo/hngnm");
-
- model.removeNodeset("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/pid" , pid);
- model.makeValue("/root/send/reqdata/orddd" , orddd);
- model.makeValue("/root/send/reqdata/cretno" , cretno);
- model.makeValue("/root/send/reqdata/prcpgenrflag", "O");
- }
-
- model.makeNode("/root/init/rsltgetdata/getdata");
-
- if(submit("TRMMO04303")) {
- var cppatnode = model.instance1.selectNodes("/root/init/rsltgetdata/getdata");
- //alert (cppatnode);
- if(cppatnode.length < 1) { //cp적용환자 tbl에 유효한 데이터가 없는 경우
- model.setValue("/root/main/patinfo/cp", "N"); //처방open
- return true;
-
- } else { //CP적용환자 tbl에 유효한 데이터가 있는 경우
- var appstat = model.getValue("/root/init/rsltgetdata/getdata/appstat");
- var cpgnm = model.getValue("/root/init/rsltgetdata/getdata/cpgnm");
-
- if(appstat == 11) { //CP적용상태가 11인 경우
- var rtnval = messageBox("[" + hngnm + "]환자의 [" + cpgnm + "] CP를", "Q003");
- if(rtnval == 6) { //예 선택, CP Main open, CP적용환자 tbl에 appstat 10 진행중
- model.setValue("/root/main/patinfo/cp", "Y");
- return fUpdtCPPatAppStatVal(10);
-
- } else { //아니오 선택, 처방 Main open, CP적용환자 tbl에 appstat 50 : CP Drop
- model.setValue(opener.root.cpflag, "N");
- //return fUpdtCPPatAppStatVal(50);
- if(fUpdtCPPatAppStatVal(50) != false) {
- model.setValue("/root/main/patinfo/cp", "N");
- return;
- } else {
- return false;
- }
- }
- }else if(appstat == 53){
- model.setValue("/root/main/patinfo/cp", "X");
- return true;
-
- }else{ //CP적용상태가 11가 아닌 경우, CP Main창 open
- model.setValue("/root/main/patinfo/cp", "Y");
- return true;
- }
- }
- }
- }
-
- // CP환자 적용상태값 변경 - 2008.08.26 김영학SW
- function fUpdtCPPatAppStatVal(appstat){
- var cpgappno = model.getValue("/root/init/rsltgetdata/getdata/cpgappno");
- model.removeNodeset("/root/send/savedata");
- model.makeValue("/root/send/savedata/cpgappno", cpgappno);
- model.makeValue("/root/send/savedata/appstat" , appstat);
- return submit("TXMMO04301");
- }
- ]]>
- </script>
- <xhtml:body guideline="1,1217;2,61;1,1126;2,9;">
- <group id="grp_blank" class="patient_blank" visibility="visible" style="left:0px; top:0px; width:1217px; height:61px; "/>
- <group id="grp_patientinfo" class="patient_info" visibility="hidden" style="left:0px; top:0px; width:1217px; height:61px; ">
- <group id="grp_patient" class="patient" visibility="visible" style="left:0px; top:0px; width:540px; height:61px; ">
- <input id="opt_pid" ref="/root/main/patinfo/pid" class="patient_num" editable="false" style="left:20px; top:7px; width:105px; height:23px; "/>
- <output id="opt_name" ref="/root/main/patinfo/dispnm2" class="patient_num" ellipsis="true" style="left:138px; top:7px; width:152px; height:23px; "/>
- <script type="javascript" ev:event="onmouseover">
- <![CDATA[
- fSetCtrlHint();
- ]]>
- </script>
- <output id="opt_recovwardnm" ref="/root/main/patinfo/recovwardnm" class="patient_num" style="left:105px; top:8px; width:35px; height:23px; font-weight:bold; border-color:#ff0000; border-style:solid; ">
- <hint>
- <![CDATA[신속진료대상자입니다(B★:허혈성뇌졸중, C★:심근경색증,T★:중증외상)]]>
- </hint>
- </output>
- <output id="opt_age" ref="/root/main/patinfo/age" class="patient_text_black" style="left:290px; top:4px; width:60px; height:13px; ">
- <script type="javascript" ev:event="onmouseover">
- <![CDATA[
- fSetCtrlHint();
- ]]>
- </script>
- </output>
- <output id="opt_addr" ref="/root/main/patinfo/addr" class="patient_text_black" ellipsis="true" style="left:355px; top:17px; width:180px; height:13px; ">
- <script type="javascript" ev:event="onmouseover">
- <![CDATA[
- fSetCtrlHint();
- ]]>
- </script>
- </output>
- <caption id="caption15" class="patient_text_black" style="left:353px; top:4px; width:8px; height:13px; ">[</caption>
- <output id="opt_insukind" ref="/root/main/patinfo/insukind" class="patient_text_black" style="left:359px; top:4px; width:50px; height:13px; "/>
- <caption id="caption17" class="patient_text_black" style="left:407px; top:4px; width:8px; height:13px; ">]</caption>
- <output id="opt_ininfo" ref="/root/main/patinfo/ininfo" class="patient_text_black" style="left:20px; top:37px; width:280px; height:13px; "/>
- <output id="opt_btype" ref="/root/main/patinfo/btype" class="patient_text_red" border="1px" style="left:306px; top:35px; width:29px; height:20px; font-weight:bold; text-align:center; border-color:#999999; border-style:solid; ">
- <script type="javascript" ev:event="onmouseover">
- <![CDATA[
- fSetCtrlHint();
- ]]>
- </script>
- </output>
- <output id="output1" ref="/root/main/patinfo/rrgstno" class="patient_text_black" style="left:290px; top:17px; width:50px; height:13px; ">
- <!--script type="javascript" ev:event="onmouseover">
- <![CDATA[
- fSetCtrlHint();
- ]]>
- </script-->
- </output>
- </group>
- <!-- 의사정보 그룹 -->
- <group id="grp_doctor" class="doctor" visibility="visible" style="left:540px; top:0px; width:213px; height:61px; ">
- <output id="opt_orddept" ref="/root/main/patinfo/orddept" class="output_w_b" ellipsis="true" style="left:5px; top:8px; width:45px; height:19px; ">
- <script type="javascript" ev:event="onmouseover">
- <![CDATA[
- fSetCtrlHint();
- ]]>
- </script>
- </output>
- <caption id="caption5" class="output_w" style="left:48px; top:9px; width:10px; height:19px; ">[</caption>
- <output id="opt_apntdr" ref="/root/main/patinfo/apntdr" class="output_w" style="left:55px; top:9px; width:40px; height:19px; "/>
- <caption id="caption7" class="output_w" style="left:96px; top:9px; width:10px; height:19px; ">/</caption>
- <output id="opt_attndr" ref="/root/main/patinfo/attndr" class="output_w" style="left:102px; top:9px; width:80px; height:19px; "/>
- <caption id="caption6" class="output_w" style="left:180px; top:9px; width:10px; height:19px; ">]</caption>
- <button id="btn_prescription" class="btn_certificate" style="left:188px; top:8px; width:20px; height:20px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 권한이 없으면 아예 못보도록 - 오지훈SW 요청 2008.07.17
- var jobkindcd = (getUserInfo("jobkindcd")).substr(0, 2);
- if(jobkindcd == "03"){
- // CP 환자 여부 확인후 - 2008.08.26 김영학SW
- if (fChkCPPatValid()) {
- var cpyn = model.getValue("/root/main/patinfo/cp");
- if (cpyn == "Y") {
- open("SMMMP00800");
- } else if (cpyn =="X") {
- open("SPMMP01200");
- } else {
- open("SMMMO00100");
- }
- }
- }else{
- messageBox("처방화면 사용", "E002");
- return;
- }
- ]]>
- </script>
- </button>
- </group>
- <!-- 진단/수술명 그룹 -->
- <group id="grp_diagnosis" class="diagnosis" visibility="visible" style="left:753px; top:0px; width:537px; height:163px; ">
- <caption id="cap_diagnosis" class="diagnosis_text" appearance="caption" style="left:18px; top:9px; width:28px; height:20px; ">진단</caption>
- <output id="opt_diagnosis" ref="/root/main/patinfo/diagnosis" class="output_d" ellipsis="true" style="left:49px; top:9px; width:191px; height:19px; ">
- <script type="javascript" ev:event="onmouseover">
- <![CDATA[
- fSetCtrlHint();
- ]]>
- </script>
- </output>
- <caption id="cap_operation" class="diagnosis_text" style="left:18px; top:34px; width:28px; height:20px; ">수술</caption>
- <output id="opt_operation" ref="/root/main/patinfo/operation" class="output_d" ellipsis="true" style="left:49px; top:34px; width:191px; height:19px; ">
- <script type="javascript" ev:event="onmouseover">
- <![CDATA[
- fSetCtrlHint();
- ]]>
- </script>
- </output>
- <button id="btn_stgediagnm" class="diagnosis_text" appearance="button" style="left:253px; top:9px; width:49px; height:20px; ">
- <caption>C상병</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fClickButton(document.controls.item(event.target).attribute("id"));
- ]]>
- </script>
- </button>
- <output id="opt_stgediagnm" ref="/root/main/patinfo/stgediagnm" class="output_d" ellipsis="true" style="left:297px; top:9px; width:155px; height:19px; ">
- <script type="javascript" ev:event="onmouseover">
- <![CDATA[
- fSetCtrlHint();
- ]]>
- </script>
- </output>
- <button id="btn_tnm" class="diagnosis_text" style="left:263px; top:34px; width:31px; height:20px; ">
- <caption>TNM</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fClickButton(document.controls.item(event.target).attribute("id"));
- ]]>
- </script>
- </button>
- <output id="opt_stgecd" ref="/root/main/patinfo/stgecd" class="output_d" style="left:297px; top:34px; width:39px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onmouseover">
- <![CDATA[
- fSetCtrlHint();
- ]]>
- </script>
- </output>
- <output id="opt_tnmcd1" ref="/root/main/patinfo/tnmcd1" class="output_d" style="left:335px; top:34px; width:39px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onmouseover">
- <![CDATA[
- fSetCtrlHint();
- ]]>
- </script>
- </output>
- <output id="opt_tnmcd2" ref="/root/main/patinfo/tnmcd2" class="output_d" style="left:373px; top:34px; width:40px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onmouseover">
- <![CDATA[
- fSetCtrlHint();
- ]]>
- </script>
- </output>
- <output id="opt_tnmcd3" ref="/root/main/patinfo/tnmcd3" class="output_d" style="left:412px; top:34px; width:40px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onmouseover">
- <![CDATA[
- fSetCtrlHint();
- ]]>
- </script>
- </output>
- </group>
- <!-- 버튼 그룹 -->
- <group id="grp_buttons" class="buttons" visibility="visible" style="left:345px; top:32px; width:407px; height:26px; ">
- <button id="btn_top_infection0" class="btn_top_letter1" style="left:13px; top:3px; width:20px; height:20px; background-image:../../../com/hismainweb/images/btn_top_infection0_d.gif; ">
- <caption/>
- <hint>
- <![CDATA[혈액주의]]>
- </hint>
- </button>
- <button id="btn_top_infection1" class="btn_top_letter1" style="left:36px; top:3px; width:20px; height:20px; background-image:../../../com/hismainweb/images/btn_top_infection1_d.gif; ">
- <caption/>
- <hint>
- <![CDATA[접촉주의]]>
- </hint>
- </button>
- <button id="btn_top_infection2" class="btn_top_letter1" style="left:58px; top:3px; width:20px; height:20px; background-image:../../../com/hismainweb/images/btn_top_infection2_d.gif; ">
- <caption/>
- <hint>
- <![CDATA[공기주의]]>
- </hint>
- </button>
- <button id="btn_top_allergy" class="btn_top_letter3" style="left:81px; top:3px; width:28px; height:20px; background-image:../../../com/hismainweb/images/btn_top_allergy_d.gif; ">
- <caption/>
- </button>
- <button id="btn_top_chart" class="btn_top_letter1" visibility="hidden" style="left:280px; top:3px; width:20px; height:20px; background-image:../../../com/hismainweb/images/btn_top_chart.gif; ">
- <caption/>
- </button>
- <button id="btn_top_organ" class="btn_top_letter2" style="left:103px; top:3px; width:26px; height:20px; background-image:../../../com/hismainweb/images/btn_top_organ_d.gif; ">
- <caption/>
- </button>
- <button id="btn_top_cp" class="btn_top_letter2" style="left:125px; top:3px; width:26px; height:20px; background-image:../../../com/hismainweb/images/btn_top_cp_d.gif; ">
- <caption/>
- </button>
- <button id="btn_top_drgyn" class="btn_top_letter3" style="left:147px; top:3px; width:28px; height:20px; background-image:../../../com/hismainweb/images/btn_top_drgyn_d.gif; ">
- <caption/>
- <hint>
- <![CDATA[DRG정보]]>
- </hint>
- </button>
- <button id="btn_top_vip" class="btn_top_letter1" style="left:169px; top:3px; width:20px; height:20px; background-image:../../../com/hismainweb/images/btn_top_vip_d.gif; ">
- <caption/>
- </button>
- <button id="btn_top_healexam" class="btn_top_letter2" disabled="true" style="left:213px; top:3px; width:26px; height:20px; background-image:../../../com/hismainweb/images/btn_top_healexam_d.gif; ">
- <caption/>
- </button>
- <button id="btn_top_intncare" class="btn_top_letter2" style="left:236px; top:3px; width:26px; height:20px; background-image:../../../com/hismainweb/images/btn_top_intncare_d.gif; ">
- <caption/>
- <hint>
- <![CDATA[산정특례]]>
- </hint>
- </button>
- <button id="btn_top_coop" class="btn_top_letter2" disabled="true" style="left:259px; top:3px; width:26px; height:20px; background-image:../../../com/hismainweb/images/btn_top_coop_d.gif; ">
- <caption/>
- </button>
- <button id="btn_top_nutinfo" class="btn_top_letter2" disabled="true" style="left:282px; top:3px; width:26px; height:20px; background-image:../../../com/hismainweb/images/btn_top_nutinfo_d.gif; ">
- <caption/>
- <hint>
- <![CDATA[영양고위험군]]>
- </hint>
- </button>
- <button id="btn_top_inspection" class="btn_top_letter2" visibility="hidden" style="left:303px; top:3px; width:26px; height:20px; background-image:../../../com/hismainweb/images/btn_top_inspection.gif; ">
- <caption/>
- </button>
- <button id="btn_top_home" class="btn_top_letter1" visibility="hidden" style="left:329px; top:3px; width:20px; height:20px; background-image:../../../com/hismainweb/images/btn_top_home.gif; ">
- <caption/>
- </button>
- <button id="btn_top_clear" class="btn_top_letter3" style="left:379px; top:3px; width:28px; height:20px; background-image:../../../com/hismainweb/images/btn_top_clear.gif; ">
- <caption/>
- </button>
- <button id="btn_top_dinfo" class="btn_top_letter2" style="left:305px; top:3px; width:26px; height:20px; background-image:../../../com/hismainweb/images/btn_top_dinfo_d.gif; ">
- <caption/>
- <hint>
- <![CDATA[낙상고위험군]]>
- </hint>
- </button>
- <button id="btn_top_binfo" class="btn_top_letter2" style="left:327px; top:3px; width:26px; height:20px; background-image:../../../com/hismainweb/images/btn_top_binfo_d.gif; ">
- <caption/>
- <hint>
- <![CDATA[욕창발생위험군]]>
- </hint>
- </button>
- <button id="btn_top_pinfo" class="btn_top_letter3" style="left:350px; top:3px; width:28px; height:20px; background-image:../../../com/hismainweb/images/btn_top_pinfo_d.gif; ">
- <caption/>
- </button>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var targetObj = document.controls.item(event.target);
- if (targetObj.elementName == "xforms:button") {
- fClickButton(targetObj.attribute("id"));
- }
- ]]>
- </script>
- <button id="btn_top_recmer" class="btn_top_letter1" style="left:191px; top:3px; width:20px; height:20px; background-image:../../../com/hismainweb/images/btn_top_recmer_d.gif; ">
- <caption/>
- <hint>
- <![CDATA[지인]]>
- </hint>
- <script type="javascript" ev:event="onmouseover">
- <![CDATA[
- var recmerinfo = model.getValue("/root/main/patinfo/recmerinfo");
-
- if(recmerinfo == "-" || recmerinfo == ""){
- recmerinfo = "지인정보";
- }
- btn_top_recmer.hint = recmerinfo;
- ]]>
- </script>
- </button>
- </group>
- </group>
- </xhtml:body>
- </xhtml:html>
|