123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.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>TDM자문회신</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <baseinfo>
- <patinfolist>
- <pid/>
- <orddd/>
- <wardcd/>
- <roomcd/>
- <cnstdeptnm/>
- <cnstdeptcd/>
- <hngnm/>
- <sna/>
- <bcoldt/>
- <cnstdd/>
- <cnstdrnm/>
- <cnstdrid/>
- <cretno/>
- <orddeptcd/>
- <orddrid/>
- <prcpgenrflag/>
- <title1/>
- <title2/>
- <title3/>
- <title4/>
- <lowtitle1/>
- <lowtitle2/>
- <lowtitle3/>
- </patinfolist>
- <diaginfolist>
- <diagcd/>
- <diagno/>
- <bun/>
- <ro/>
- <kadr/>
- <who/>
- <diagengnm/>
- </diaginfolist>
- <baseinfolist>
- <ht/>
- <wt/>
- <scrval/>
- <ccrval/>
- <albuminval/>
- <sikcnm/>
- </baseinfolist>
- <tdminfolist>
- <testcd/>
- <formrecseq/>
- <cnstdrugnm/>
- <repldt/>
- <replusernm/>
- <cnstresn/>
- <remark/>
- <trghbcoldd/>
- <trghbcoltm/>
- <peakbcoldd/>
- <peakbcoltm/>
- <trghblodconcen/>
- <trghblodconcenref/>
- <peakblodconcen/>
- <peakblodconcenref/>
- <t12val/>
- <vdval/>
- <kmval/>
- <vmaxval/>
- <clval/>
- <analymthdcnts/>
- <tjudgrslt/>
- <pjudgrslt/>
- <cnstcnts/>
- <prestregmcnts/>
- <recmregmcnts/>
- <cmt/>
- <recmcnts/>
- <rgstseqno/>
- <statflag/>
- <rgstid/>
- <rgstnm/>
- <rgstdd/>
- <rgsttm/>
- <cnstcnts20/>
- <replyn/>
- <workflag/>
- </tdminfolist>
- <tdminfolist2>
- <testcd/>
- <cnstdrugnm/>
- <cnstresn/>
- <remark/>
- <cnstseqno/>
- </tdminfolist2>
- </baseinfo>
- <tdminfo>
- <tdminfolist>
- <t12val/>
- <vdval/>
- <kmval/>
- <vmaxval/>
- <clval/>
- <trgh/>
- <peak/>
- <blodconcen/>
- </tdminfolist>
- <tdminfolist2>
- <trgh/>
- </tdminfolist2>
- <tdminfolist3>
- <peak/>
- </tdminfolist3>
- </tdminfo>
- <patreqlistinfo>
- <reqlist>
- <cnstseqno/>
- <stat/>
- <reqdd/>
- <repldd/>
- <replpharmst/>
- <reqdrug/>
- <pid/>
- <hngnm/>
- <cretno/>
- <orddeptcd/>
- <prcpgenrflag/>
- <formcd/>
- <wardnm/>
- <agesex/>
- <rrgstno/>
- <patstat/>
- <diagcd/>
- <orddd/>
- <inhospday/>
- <result/>
- <reqdeptnm/>
- <requsernm/>
- <reqresn/>
- <reqcomment/>
- <bcolldt/>
- <spcacptdt/>
- <formrecseq/>
- <reqdeptcd/>
- <requserid/>
- <cnstcnts1/>
- <prcpno/>
- <prcpcd/>
- <drugcd/>
- <rgstseqno/>
- </reqlist>
- </patreqlistinfo>
- </main>
- <send>
- <pid/>
- <testcd/>
- <data/>
- <cnstseqno/>
- <rgstseqno/>
- <formrecseq/>
- <cretno/>
- <orddd/>
- <prcpgenrflag/>
- <reqdd/>
- <userinfo>
- <userid/>
- </userinfo>
- <formcd/>
- <srchinfo/>
- <data>
- <careplan>
- <tdmdata>
- <pid/>
- <rgstseqno/>
- <replyn/>
- <workflag/>
- <problemcareplan/>
- <jcirgstdd/>
- <jcirgsttm/>
- </tdmdata>
- </careplan>
- </data>
- </send>
- <init>
- <through>
- <label/>
- <value/>
- </through>
- <peak>
- <label/>
- <value/>
- </peak>
- <jcilist>
- <careplanlist/>
- </jcilist>
- </init>
- <hidden>
- <ret>
- <rgstseqno/>
- <formrecseq/>
- <cnstseqno/>
- </ret>
- <formrecseq/>
- <cnststatinfo>
- <cnststat/>
- </cnststatinfo>
- <prntinfo/>
- <userinfo/>
- <replinfo>
- <replcnts/>
- </replinfo>
- </hidden>
- <temp>
- <cnstinfo/>
- <patinfolist/>
- <replform>
- <replcnts/>
- <sel/>
- <formflag/>
- </replform>
- <popupdata>
- <repltype/>
- <receivedata>/root/main/baseinfo/tdminfolist/replid</receivedata>
- <receivedatargst/>
- </popupdata>
- <formdata>
- <replinfo/>
- </formdata>
- </temp>
- <combosend>
- <srchinfo>
- <startreqdd/>
- <endreqdd/>
- <startrepldd/>
- <endrepldd/>
- <formcd>-</formcd>
- <recvyn/>
- <ioflag>-</ioflag>
- <reqdeptcd/>
- <reqwardcd/>
- <reqpid/>
- <srchflag>1</srchflag>
- </srchinfo>
- </combosend>
- <combo>
- <reqlist/>
- </combo>
- </root>
- </instance>
- <submission id="TRADB00001"/>
- <submission id="TRADC00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/baseinfo"/>
- <submission id="TRADC00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/tdminfo"/>
- <submission id="TXADC00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/baseinfo/tdminfolist" replace="instance" resultref="/root/hidden/ret"/>
- <submission id="TXADC00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/baseinfo/tdminfolist" replace="instance" resultref="/root/hidden"/>
- <submission id="TXADC00903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/baseinfo/tdminfolist" replace="instance" resultref="/root/hidden"/>
- <submission id="TRADC00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/combosend/srchinfo" replace="instance" resultref="/root/combo/reqlist"/>
- <submission id="TRADC00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/patreqlistinfo/reqlist"/>
- <submission id="TRADC62201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" resultref="/root/temp/formdata"/>
- <submission id="TRADC62202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/cnststatinfo"/>
- <submission id="TXADC00904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/signdata" replace="instance" resultref="/root/hidden"/>
- <submission id="TRADC02609" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/userinfo" replace="instance" resultref="/root/hidden/userinfo"/>
- <submission id="TXANC00357" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/careplan" resultref="/root/hidden/msglist"/>
- <submission id="TXADC00905" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/careplan/tdmdata" replace="instance" resultref="/root/hidden"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- //2010-01-05 CarePlan 병원별로 적용여부 Check
- pharmacyGetCodeList( new Array("JCI1"), new Array("/root/init/jcilist/careplanlist") );
- if ( model.getValue ("/root/init/jcilist/careplanlist/JCI1[2]/cdid") == "Y" ) {
- btn_emr_careplan.visible = true; //EMR [CarePlan] 버튼 활성화
- btn_careplan.visible = true; //TDM [CarePlan전송] 버튼 활성화
- }
-
- var pid = model.getValue("/root/temp/cnstinfo/pid");
- if ( pid != "") {
- // model.setValue("/root/main/baseinfo/patinfolist/pid",pid);
- // model.refresh();
-
- //조회버튼
- model.setValue("/root/send/cnstseqno", model.getValue("/root/temp/cnstinfo/cnstseqno"));
- model.setValue("/root/send/formrecseq", model.getValue("/root/temp/cnstinfo/formrecseq"));
- model.setValue("/root/send/pid", model.getValue("/root/temp/cnstinfo/pid"));
- model.setValue("/root/send/cretno", model.getValue("/root/temp/cnstinfo/cretno"));
- model.setValue("/root/send/orddd", model.getValue("/root/temp/cnstinfo/orddd"));
- model.setValue("/root/send/prcpgenrflag", model.getValue("/root/temp/cnstinfo/prcpgenrflag"));
- model.setValue("/root/send/rgstseqno", model.getValue("/root/temp/cnstinfo/rgstseqno"));
- model.setValue("/root/send/reqdd", model.getValue("/root/temp/cnstinfo/cnstdd")); //2008-10-01 마이그레이션 환자정보조회
-
- // model.setValue("/root/send/pid",model.getValue("/root/main/baseinfo/patinfolist/pid"));
- // model.setValue("/root/send/rgstseqno",rgstseqno);
- submit("TRADC00901");
- // 미의뢰회신 전역변수 변경
- // 의뢰시 발생되는 formrecseq 존재여부 체크
-
- if(model.getValue("/root/temp/cnstinfo/formrecseq") == ""){
- gv_consult = "NR";
- fCretCnstinfo();
- }
- model.setValue("/root/combosend/srchinfo/formcd", "0000000769");
- model.setValue("/root/combosend/srchinfo/reqpid", pid);
- model.setValue("/root/combosend/srchinfo/startreqdd", "19000101");
- model.setValue("/root/combosend/srchinfo/endreqdd", "99991231");
-
- fCnstResn(); //의뢰이유를 코드명으로 나열하기
- btn_cnst.dispatch("DOMActivate");
- //회신상태
- if(model.getValue("/root/main/baseinfo/tdminfolist/statflag") == "Z" ) {
- btn_save.disabled = true;
- btn_repl.disabled = true;
- btn_del.disabled = true;
- btn_replno.disabled = true; //2010-01-21 [미회신]버튼 비활성화
- btn_careplan.disabled= false; //2010-02-19 CarePlan 전송버튼 추가 - 회신상태일경우만 활성화
- }
- //저장상태
- else {
- btn_save.disabled = false;
- btn_repl.disabled = false;
- btn_del.disabled = false;
- btn_replno.disabled = false; //2010-01-21 [미회신]버튼 활성화 - 회신가 아닌경우는 비활성화
- btn_careplan.disabled= true; //2010-02-19 CarePlan 전송버튼 추가 - 회신상태일경우만 활성화
- }
- submit("TRADC00102");
- combo1.value = model.getValue("/root/send/formrecseq");
-
- //2010-01-18 등록번호별 의뢰정보 가져오기
- model.setValue("/root/send/formcd","0000000769") //TDM formcd
- submit("TRADC00103");
- if(model.getValue("/root/temp/cnstinfo/btnreplflag") == "Y") {
- // 20100118_laboru_회신확정 상태일때 회신버튼 비활성화 위해서
- btn_repl.disabled = true;
- btn_replno.disabled = true; //2010-01-21 [미회신=회신제외]버튼 비활성화
- btn_careplan.disabled= false; //2010-02-19 CarePlan 전송버튼 추가 (활성화)
- }
-
- if(model.getValue("/root/temp/cnstinfo/pidchkflag") == "Y") {
- // 20100119_laboru_약사 이외의 사용자인 경우
- btn_save.disabled = true;
- btn_repl.disabled = true;
- btn_del.disabled = true;
- btn_replno.disabled = true; //2010-01-21 [미회신=회신제외]버튼 비활성화
- btn_careplan.disabled= true; //2010-02-19 CarePlan 전송버튼 추가 (비활성화)
- }
- }
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- // 의뢰 회신/ 미의뢰회신 여부를 구분
- // 의뢰회신 : R, 미의뢰회신 : NR
- // default : R (의뢰회신)
- var gv_consult = "R";
-
- var cnstseqno = ""; // ast 의뢰번호
- var cnstkind = "7";
- var formrecseq = ""; // emr 서식기록번호 : 의뢰/미의뢰 구분
- var orddd = "";
- var cretno = "";
- var chosflag = "";
- var cnstflag = "3"; // 컨설트구분 (1:진료의뢰, 3:타과의뢰)
- var formcd = "0000000769";
- var cnststat = "";
- var eryn = "N" // 응급여부
- var reqdeptcd = "";
- var requserid = "";
- var reqdd = "";
- var reqhm = "";
- var prcpno = model.getValue("/root/temp/cnstinfo/prcpno");
- var prcpcd = model.getValue("/root/temp/cnstinfo/prcpcd");
-
- //의뢰이유를 코드명으로 나열하기
- function fCnstResn() {
- var cnstresn = model.getValue("/root/main/baseinfo/tdminfolist2/cnstresn");
- var temp = "";
- if ( cnstresn != "" ) {
- for ( i = 0; i < cnstresn.length; i+=2 ) {
- if (cnstresn.substr(i,1) != "" && cnstresn.substr(i,1)=="1") {
- temp = temp + "적정용량 확인, "
- } else if (cnstresn.substr(i,1) != "" && cnstresn.substr(i,1)=="2") {
- temp = temp + "독성의심, "
- } else if (cnstresn.substr(i,1) != "" && cnstresn.substr(i,1)=="3") {
- temp = temp + "기대이하의 약효, "
- } else if (cnstresn.substr(i,1) != "" && cnstresn.substr(i,1)=="4") {
- temp = temp + "상호작용약물 추가/중단, "
- } else if (cnstresn.substr(i,1) != "" && cnstresn.substr(i,1)=="5") {
- temp = temp + "입원시 초기 농도 확인, "
- } else if (cnstresn.substr(i,1) != "" && cnstresn.substr(i,1)=="6") {
- temp = temp + "중단 후 감소된 농도확인, "
- }
- }
- model.setValue("/root/main/baseinfo/tdminfolist2/cnstresn", temp.substr(0, temp.length-2));
- opt_cnstresn.refresh();
- }
- }
-
- function fSave(){
- model.makeNode("/root/main/baseinfo/tdminfolist/pid");
- model.setValue("/root/main/baseinfo/tdminfolist/pid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
-
- model.makeNode("/root/main/baseinfo/tdminfolist/ht");
- model.setValue("/root/main/baseinfo/tdminfolist/ht", model.getValue("/root/main/baseinfo/baseinfolist/ht"));
-
- model.makeNode("/root/main/baseinfo/tdminfolist/wt");
- model.setValue("/root/main/baseinfo/tdminfolist/wt", model.getValue("/root/main/baseinfo/baseinfolist/wt"));
-
- model.makeNode("/root/main/baseinfo/tdminfolist/scrval");
- model.setValue("/root/main/baseinfo/tdminfolist/scrval", model.getValue("/root/main/baseinfo/baseinfolist/scrval"));
-
- model.makeNode("/root/main/baseinfo/tdminfolist/ccrval");
- model.setValue("/root/main/baseinfo/tdminfolist/ccrval", model.getValue("/root/main/baseinfo/baseinfolist/ccrval"));
-
- model.makeNode("/root/main/baseinfo/tdminfolist/albuminval");
- model.setValue("/root/main/baseinfo/tdminfolist/albuminval", model.getValue("/root/main/baseinfo/baseinfolist/albuminval"));
-
- model.makeNode("/root/main/baseinfo/tdminfolist/sikcnm");
- model.setValue("/root/main/baseinfo/tdminfolist/sikcnm", model.getValue("/root/main/baseinfo/baseinfolist/sikcnm"));
-
- model.setValue("/root/main/baseinfo/tdminfolist/formrecseq", model.getValue("/root/send/formrecseq"));
- model.makeValue("/root/main/baseinfo/tdminfolist/cnstseqno", model.getValue("/root/main/baseinfo/tdminfolist2/cnstseqno"));
- model.makeValue("/root/main/baseinfo/tdminfolist/cnststat", "21"); //회신임시
- model.makeValue("/root/main/baseinfo/tdminfolist/cnstcnts20", ""); //2010-01-21 adchcnstinfo - cnstcnsts20 미회신여부 등록(Y = 미회신)
-
- // fSetCnstinfo미의뢰 회신시 adchcnstinfo에 데이터를 생성하기 위한 변수들을 설정한다.
-
- if(gv_consult == "NR"){
- fSetCnstinfo();
- }
-
- if (submit("TXADC00901")) {
- // 미의뢰 회신후 생성된 rgstseqno와 cnstseqno를 조회조건으로 설정
- if ( model.getValue("/root/send/rgstseqno") == "" ) {
- model.setValue("/root/send/rgstseqno", model.getValue("/root/hidden/ret/rgstseqno"));
- }
- if(model.getValue("/root/send/cnstseqno") == ""){
- model.setValue("/root/send/cnstseqno", model.getValue("/root/hidden/ret/cnstseqno"));
- }
- btn_sea.dispatch("DOMActivate");
- return true;
- }else return false;
- }
-
- // 미의뢰 회신 - 조회된 환자정보 변수 설정
- function fCretCnstinfo(){
- orddd = model.getValue("/root/main/baseinfo/patinfolist/orddd");
- cretno = model.getValue("/root/main/baseinfo/patinfolist/cretno");
- chosflag = model.getValue("/root/main/baseinfo/patinfolist/prcpgenrflag");
- reqdeptcd = model.getValue("/root/main/baseinfo/patinfolist/cnstdeptcd");
- requserid = model.getValue("/root/main/baseinfo/patinfolist/cnstdrid");
- }
-
- // 미의뢰 회신 - mmrchcnstinfo, adchcnstinfo 테이블 정보생성
- function fSetCnstinfo(){
-
- model.makeValue("/root/main/baseinfo/tdminfolist/cnstkind", cnstkind);
- model.makeValue("/root/main/baseinfo/tdminfolist/orddd", orddd);
- model.makeValue("/root/main/baseinfo/tdminfolist/cretno",cretno);
- model.makeValue("/root/main/baseinfo/tdminfolist/chosflag", chosflag);
- model.makeValue("/root/main/baseinfo/tdminfolist/cnstflag", cnstflag);
- model.makeValue("/root/main/baseinfo/tdminfolist/formcd", formcd);
- model.makeValue("/root/main/baseinfo/tdminfolist/eryn", eryn);
- model.makeValue("/root/main/baseinfo/tdminfolist/reqdeptcd", reqdeptcd);
- model.makeValue("/root/main/baseinfo/tdminfolist/requserid", requserid);
- model.makeValue("/root/main/baseinfo/tdminfolist/reqdd", reqdd);
- model.makeValue("/root/main/baseinfo/tdminfolist/reqhm", reqhm);
- model.makeValue("/root/main/baseinfo/tdminfolist/prcpno", prcpno);
- model.makeValue("/root/main/baseinfo/tdminfolist/prcpcd", prcpcd);
- }
-
- //2010-01-11 저장시에는 회신내용 미리보기 화면 조회하기
- // tmpcnststat = 상태 (21: 저장(회신임시) 22:회신 00:미회신 버튼 )
- function fCretReplCnts(tmpcnststat){
- // 의뢰내역
- var title = "\n임상약동학 (TDM)" + "\n\n";
- var cnsttitle = "[의뢰내용]";
- var Citem1 = "\n 의뢰의사 : " + opt_cnstdrid.label;
- var Citem2 = "\n 의뢰약물 : " + ipt_testcd.label;
- var Citem3 = "\n 의뢰이유 : " + opt_cnstresn.label + "\n";
- var Citem = cnsttitle + Citem1 + Citem2 + Citem3;
-
- // 회신내역
- if (tmpcnststat == "00") { //2010-01-21 미회신일경우는 [회신내용]만 적용한다
- var repltitle = "\n[회신제외 내용]\n";
- var Ritem1 = "";
- var Ritem2 = "";
- var Ritem3 = "";
- var Ritem4 = "";
- var Ritem5 = "";
- var Ritem6 = "";
- var Ritem7 = "";
- var Ritem8 = "";
- var Ritem9 = "";
- var Ritem10 = "";
- var Ritem11 = "";
- var Ritem12 = "";
- var Ritem13 = "";
- var Ritem14 = "";
- var Ritem15 = "";
- if (tar_recmcnts.label != "" ) {
- Ritem15 += "\n" ;
- Ritem15 += fSortWord(" ",tar_recmcnts.label,50);
- }
- }else{ //2010-01-21 미회신일는 [회신내용]만 적용한다
-
- //2010-01-12 입력한 내용이 없을 경우 그 항목이 아예 안 보이게 처리한다. - 송헌정약사 요청
- var repltitle = "\n[회신내용]";
- var Ritem1 = "\n 채혈시간 : "
- if (ipt_trghbcoldd.label != "" ) {
- Ritem1 += "Trough - " + ipt_trghbcoldd.label + " " + ipt_trghbcoltm.label + " "
- }
- if (ipt_peakbcoldd.label != "" ) {
- Ritem1 += "Peak - " + ipt_peakbcoldd.label + " " + ipt_peakbcoltm.label;
- }
-
- var Ritem2 = "\n 혈중농도 : ";
- var Ritem3 = "";
- if (ipt_trghblodconcen.label != "" ) { //혈중농도 - Trough
- Ritem3 += "\n Trough - " + ipt_trghblodconcen.label + " (Ref) "
- if (cmb_trghblodconcenref.label != "" ) {
- Ritem3 += cmb_trghblodconcenref.label + " " + caption35.text;
- }
- }
- var Ritem4 = "";
- if (ipt_peakblodconcen.label != "" ) { //혈중농도 - Peak
- Ritem4 += "\n peak - " + ipt_peakblodconcen.label + " (Ref) "
- if (cmb_peakblodconcenref.label != "" ) {
- Ritem4 += cmb_peakblodconcenref.label + " " + caption37.text;
- }
- }
-
- var Ritem5 = "\n PK Parameters : "
- if (ipt_t12va.label != "" ) { //PK Parameters - T1/2
- Ritem5 += "\n T1/2 " + ipt_t12va.label + " " + caption46.text
- }
- if (ipt_vdval.label != "" ) { //PK Parameters - Vd
- Ritem5 += " Vd " + ipt_vdval.label + " " + caption47.text;
- }
-
- var Ritem6 = "";
- if (ipt_kmval.label != "" ) { //PK Parameters - Km
- Ritem6 = "\n Km " + ipt_kmval.label + " " + caption48.text
- }
- if (ipt_vmaxval.label != "" ) { //PK Parameters - Vmax
- Ritem6 += " Vmax " + ipt_vmaxval.label + " " + caption49.text;
- }
- var Ritem7 = "";
- if (ipt_clval.label != "" ) { //PK Parameters - CL
- Ritem7 += "\n CL " + ipt_clval.label + " " + caption50.text
- }
- var Ritem8 = "";
- if (cmb_analymthdcnts.label != "" ) {
- Ritem8 += "\n 분석방법 : " + cmb_analymthdcnts.label;
- }
- var Ritem9 = "";
- if (cmb_tjudgrslt.label != "" ) {
- Ritem9 += "\n 판정결과(T) : " + cmb_tjudgrslt.label;
- }
- var Ritem10 = "";
- if (cmb_pjudgrslt.label != "" ) {
- Ritem10 += "\n 판정결과(P) : " + cmb_pjudgrslt.label;
- }
- var Ritem11 = "";
- if (cmb_cnstcnts.label != "" ) {
- Ritem11 += "\n 자문내용 : " + cmb_cnstcnts.label;
- }
- var Ritem12 = "";
- if (tar_prestregmcnts.label != "" ) {
- Ritem12 += "\n 현재 Regimen : " + tar_prestregmcnts.label;
- }
- var Ritem13 = "";
- if (tar_recmregmcnts.label != "" ) {
- Ritem13 += "\n 추천 Regimen : " + tar_recmregmcnts.label;
- }
- var Ritem14 = "";
- if (tar_cmt.label != "" ) {
- Ritem14 += "\n 참고사항 : " + tar_cmt.label;
- }
- var Ritem15 = "";
- if (tar_recmcnts.label != "" ) {
- Ritem15 += "\n\n\n Recommendation : " + "\n" ; //2010-02-19 Recommendation 직전 2 line 띄우기
- Ritem15 += fSortWord(" ",tar_recmcnts.label,50);
- //Ritem15 += tar_recmcnts.label;
- }
- }
-
- var Replinfo = "";
- if ((tmpcnststat == "22") ||(tmpcnststat == "00")){ //회신일경우 - 회신자 표시 //2010-01-21 미회신일경우도 추가
- var Replinfo = "\n\n\n\t\t\t\t \t\t\t\t\t 회신자 : " + getUserName() ;
- }
-
- var Ritem = repltitle + Ritem1 + Ritem2 + Ritem3 + Ritem4 + Ritem5 + Ritem6 + Ritem7 + Ritem8
- + Ritem9 + Ritem10 + Ritem11 + Ritem12 + Ritem13 + Ritem14 + Ritem15;
- var replcnts = title + Citem + Ritem + Replinfo;
- return replcnts;
- }
- /*
- @ 문단 정렬 (들여쓰기)
- fSrotWord
- - tab : tab 길이
- - word : 정렬하고자 하는 문장
- - maxlength : 문장최대길이
- - tabyn : 들여쓰기 여부
- */
- function fSortWord(tab, word, maxlength,tabyn){
- // 1.엔터 구분자로 분리
- var wordRow = word.split("\n");
- var returnStr = "";
-
- if(maxlength == "" || maxlength == null) maxlength = "70";
-
- if(tabyn == "" || tabyn == null) tabyn = "Y";
-
- for(var i = 0; i < wordRow.length; i++){
- // 2. 해당 row가 null이면 다음 row로 넘어감
- //if(wordRow[i] == "") continue; //2010-01-18 직접 입력한 \n있을경우는 \n 처리되도록.
- var tempStr = "";
- var index = "0";
- var breakflag = true;
-
- while(breakflag){
- // 3-1. 해당 row가 최대 글자수를 넘었을 때
- if((wordRow[i].length > maxlength) && (wordRow[i]!= "")){
- var tmprow = wordRow[i].substr(0,maxlength);
- var nextIndex = "";
-
- /*
- 4. 단어 완성 (최대글자수에서 우측의 공백을 조사하여 index설정)
- - 우측에 공백이 존재할땐 최대길이만큼 문자열을 자름
- - 우측에 공백이 존재하지 않을땐 이전의 공백까지 문자열을 자름
- */
- if(wordRow[i].substr(maxlength,1) != "") {
-
- nextIndex = getSearchStringRight(tmprow, " ");
-
- if(nextIndex <= 0) { // 공백이 존재 하지 않을때 최대길이만큼 문자열을 자름
- nextIndex = maxlength;
- }
- }else{
- nextIndex = maxlength;
- }
-
- var row = wordRow[i].substr(0,nextIndex); //2010-01-19 처음시작의 빈칸 입력된 경우 빈칸도 표시 되도록 처리(변경전:var row = wordRow[i].substr(0,nextIndex).getTrim();)
-
- wordRow[i] = wordRow[i].substr(nextIndex, wordRow[i].length);
- if(tempStr != "") tempStr += "\n";
- if(tabyn == "Y") tempStr += tab;
- tempStr += row;
-
- // 3-2. 해당 row가 최대 글자수를 넘지 않았을때 (종료)
- }else{
- if(tempStr != "" && wordRow[i]!= "") tempStr += "\n";
- if(tabyn == "Y") tempStr += tab;
- tempStr += wordRow[i]; //2010-01-19 처음시작의 빈칸 입력된 경우 빈칸도 표시 되도록 처리(변경전:tempStr += wordRow[i].getTrim();)
- breakflag = false;
- }
- }
-
- if(returnStr != "") returnStr += "\n";
- returnStr += tempStr;
- }
- return(returnStr);
- }
-
- /*
- * Care Plan 관련 ENR 데이터 전송
- */
- function sendENRCAREPLANData() {
-
- var problem = "";
- if (model.getValue(" /root/main/baseinfo/tdminfolist2/testcd") !="") {
- problem = "TDM 대상약물 : " + model.getValue(" /root/main/baseinfo/tdminfolist2/testcd");
- }
- var careplan = "";
- if (tar_recmregmcnts.label != "" ) {
- careplan += "추천 Regimen : " + tar_recmregmcnts.label + "\n";
- }
- if (tar_cmt.label != "" ) {
- careplan += "참고사항 : " + tar_cmt.label+ "\n";
- }
- if (careplan !="") {
- careplan += "(자세한사항은 Consult관리- 임상약동학의뢰(TDM) 회신내용을 참고하십시오.)" ;
- }
-
- // Care Plan 전송 필수 데이터 체크
- if(!checkENRCAREPLANData(problem,careplan)) {
- return false;
- }
-
- var sendCheck = "N";
- var sColSep = "▦";
- var sRowSep = "▩";
-
- // 그리드 헤더값 생성
- var rCSV = "m▦instcd▦careplanseq▦pid▦orddd▦cretno▦workflag▦problem▦careplan▦rgstdd▦rgsttm";
- var m = "";
- var instcd = "";
- var careplanseq = "";
- var pid = "";
- var orddd = "";
- var cretno = "";
- var workflag = "";
- var rgstdd = "";
- var rgsttm = "";
- var problemcareplan = "";
- m = "i";
- instcd = getUserInfo("dutplceinstcd");
- pid = model.getValue("/root/main/baseinfo/patinfolist/pid");
- orddd = model.getValue("/root/main/baseinfo/patinfolist/orddd");
- cretno = model.getValue("/root/main/baseinfo/patinfolist/cretno");
- workflag = "999";
- rgstdd = getCurrentDate();
- rgsttm = getCurrentTime();
-
-
- rCSV += sRowSep +
- m + sColSep +
- instcd + sColSep +
- careplanseq + sColSep +
- pid + sColSep +
- orddd + sColSep +
- cretno + sColSep +
- workflag + sColSep +
- problem + sColSep +
- careplan + sColSep +
- rgstdd + sColSep +
- rgsttm;
-
- // Care Plan 관련 전송 데이터 세팅
- model.makeValue("/root/send/data/careplan/listdata", rCSV);
- if(submit("TXANC00357")) { //EMR 데이타 전송 처리
- // TDM 데이타 저장
- model.makeValue ("/root/send/data/careplan/tdmdata/pid" ,pid) //등록번호
- model.makeValue ("/root/send/data/careplan/tdmdata/formcd" ,"0000000769") //FormCD
- model.makeValue ("/root/send/data/careplan/tdmdata/rgstseqno" ,model.getValue("/root/main/baseinfo/tdminfolist/rgstseqno")) //저장순번
- model.makeValue ("/root/send/data/careplan/tdmdata/replyn" ,"Y") //전송여부
- model.makeValue ("/root/send/data/careplan/tdmdata/workflag" ,workflag) //작업구분
- model.makeValue ("/root/send/data/careplan/tdmdata/problemcareplan" ,problem + sColSep+careplan) //CarePlan 내용
- model.makeValue ("/root/send/data/careplan/tdmdata/jcirgstdd" ,rgstdd) //전송일자
- model.makeValue ("/root/send/data/careplan/tdmdata/jcirgsttm" ,rgsttm) //전송시간
- if (submit("TXADC00905")) { //TDM 데이타 저장
- messageBox("정상적으로 [CarePlan 전송]이 ", "I002");
- model.makeValue ("root/main/baseinfo/tdminfolist/replyn" ,"Y") //전송여부
- //
- return true;
- }
- } else {
- messageBox("Care Plan 전송 처리 오류!! 확인", "I008");
- return false;
- }
- }
- /*
- * Care Plan 전송 필수 데이터 체크
- */
- function checkENRCAREPLANData(problem,careplan) {
-
- var instcd = "";
- var careplanseq = "";
- var pid = "";
- var orddd = "";
- var cretno = "";
- var workflag = "";
- var rgstdd = "";
- var rgsttm = "";
- // 데이터 세팅
- pid = model.getValue("/root/main/baseinfo/patinfolist/pid");
- orddd = model.getValue("/root/main/baseinfo/patinfolist/orddd");
- cretno = model.getValue("/root/main/baseinfo/patinfolist/cretno");
- workflag = "999";
- rgstdd = getCurrentDate();
- rgsttm = getCurrentTime();
- rgsttm = getCurrentTime();
- // Care Plan 전송 필수 데이터 체크
- if( pid == "" || orddd == "" || cretno == "" ||
- workflag == "" || problem == "" || careplan == "" || rgstdd == "" ||
- rgsttm == "") {
- messageBox("Care Plan 전송 항목인 'problem', 'careplan' 은", "I003");
- return false;
- }
-
- return true;
- }
-
-
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../com/signweb/js/ZES001.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/SignSave.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/ENRSignEngine.js"/>
- <script type="javascript" src="../../../ast/pharmacyconsultweb/js/SPADC62200.js"/>
- <script type="javascript" src="../../../ast/pharmacybaseweb/js/pharmacycombolist.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1195;2,760;2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:180px; height:14px; ">TDM자문회신등록</caption>
- <group id="group4" scroll="auto" style="left:0px; top:14px; width:1195px; height:27px; ">
- <line id="line70" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="button1" class="btn4_letter3" visibility="hidden" style="left:645px; top:0px; width:68px; height:22px; ">
- <caption>초기화</caption>
- </button>
- <button id="button12" class="btn4_letter6" visibility="hidden" style="left:715px; top:0px; width:104px; height:22px; ">
- <caption>회신결과입력</caption>
- </button>
- <button id="button13" class="btn3_letter6" style="left:270px; top:3px; width:104px; height:22px; ">
- <caption>통합결과조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SMAER00800 ","","","","","/root/main/baseinfo/patinfolist/pid","/root/send/data/singdata/srchpid");
- ]]>
- </script>
- </button>
- <button id="button14" class="btn3_letter6" style="left:376px; top:3px; width:104px; height:22px; ">
- <caption>투약기록조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SMMNR04500");
- ]]>
- </script>
- </button>
- <button id="button15" class="btn3_letter4" style="left:82px; top:3px; width:80px; height:22px; ">
- <caption>약력조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SMADB10100",0,0,0,"SMADB10100","/root/main/baseinfo/patinfolist/pid","/root/temp/patinfo/pid");
- ]]>
- </script>
- </button>
- <button id="button16" class="btn3_letter4" style="left:0px; top:3px; width:80px; height:22px; ">
- <caption>처방조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //--emr/prcpmngtweb/xrw/SPMMO14900_처방조회.xrw
- setParameter ("SPMMO14900_pid" , model.getValue("/root/main/baseinfo/patinfolist/pid")); //등록번호
- setParameter ("SPMMO14900_hngnm" , model.getValue("/root/main/baseinfo/patinfolist/hngnm")); //성명
- open("SPMMO14900");
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" navindex="31" style="left:956px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/main/baseinfo/patinfolist/pid") != ""){
- if(submit("TRADC62202")){
- var cnststat = model.getValue("/root/hidden/cnststatinfo/cnststat");
- if(cnststat == "04"){
- messageBox("[취소] 더이상 수정하실 수","I004");
- }else if (cnststat == "30"){
- messageBox("[회신확정] 더이상 수정하실 수","I004");
- }else{
- var sel = messageBox("저장","S001");
- if(sel == 6){
- //fSave(); //2010-01-11 저장자ID 저장하기
- var replcnts= fCretReplCnts("21"); //회신내역 발생 - 상태 (21 = 저장)
-
- if ( replcnts == ""){
- messageBox("회신내역을 확인하시기 바랍니다","I");
- return false;
- }else{
- var sel = fSendReplForm(replcnts,"TDM");
- if(sel == "cfm"){
- //저장
- model.setValue("/root/temp/popupdata/repltype" , "tdmS"); //2010-01-11 tdmS 코드 추가 - 저장자ID 저장하기
- var rgstid = model.getValue("/root/main/baseinfo/tdminfolist/rgstid");
- if ((rgstid == "-") || ( rgstid =="")) model.setValue("/root/main/baseinfo/tdminfolist/rgstid", getUserId());
- model.makeValue("/root/temp/popupdata/rgstid" , model.getValue("/root/main/baseinfo/tdminfolist/rgstid")); //2010-01-11 저장자ID
- model.setValue("/root/temp/popupdata/receivedatargst" , "");
- modal("SPADC62300",0,400,300,"SPADC62300","/root/temp/popupdata","/root/temp/popupdata");
- if(model.getValue("/root/temp/popupdata/receivedatargst") == "") { //저장자 저장하지 않음
- model.setValue("/root/main/baseinfo/tdminfolist/rgstid" , "-");
- model.setValue("/root/main/baseinfo/tdminfolist/rgstdd" , "99991231"); // 저장일자
- model.setValue("/root/main/baseinfo/tdminfolist/rgsttm" , "235959"); // 저장시간
- }else{
- model.setValue("/root/main/baseinfo/tdminfolist/rgstdd" , getCurrentDate()); // 저장일자
- model.setValue("/root/main/baseinfo/tdminfolist/rgsttm" , getCurrentTime()); // 저장시간
- fSave();
- }
- }
- }
-
- }
- }
- }
- }else {
- messageBox("등록번호는 필수입력","I009");
- return false;
- }
- ]]>
- </script>
- </button>
- <button id="btn_repl" class="btn4_letter2" navindex="32" style="left:1016px; top:3px; width:56px; height:22px; ">
- <caption>회신</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/main/baseinfo/patinfolist/pid") != ""){
- if(submit("TRADC62202")){
- var cnststat = model.getValue("/root/hidden/cnststatinfo/cnststat");
- if(cnststat == "04"){
- messageBox("[취소] 더이상 수정하실 수","I004");
- return ;
- }else if (cnststat == "30"){
- messageBox("[회신확정] 더이상 수정하실 수","I004");
- return;
- }
- }
- /*
- * Function으로 처리한다. 저장시에두 사용한다. ==> fCretReplCnts
- // 의뢰내역
- var title = "\n임상약동학 (TDM)" + "\n\n";
- var cnsttitle = "[의뢰내용]";
- var Citem1 = "\n1. 의뢰의사 : " + opt_cnstdrid.label;
- var Citem2 = "\n2. 의뢰약물 : " + ipt_testcd.label;
- var Citem3 = "\n3 .의뢰이유 : " + opt_cnstresn.label + "\n";
- var Citem = cnsttitle + Citem1 + Citem2 + Citem3;
- // 회신내역
- var repltitle = "\n[회신내용]";
- var Ritem1 = "\n1. 채혈시간 : " + "Trough - " + ipt_trghbcoldd.label + " " + ipt_trghbcoltm.label + " "
- + "Peak - " + ipt_peakbcoldd.label + " " + ipt_peakbcoltm.label; //2009-12-09 오타수정 (Through -> Trough)
- var Ritem2 = "\n2. 혈중농도 : ";
-
- //단위 Master에서 가져옴.
- // var Ritem3 = "\n\t\t\t" + "Through - " + ipt_trghblodconcen.label + " (Ref) " + cmb_trghblodconcenref.label + "mcg/ml";
- // var Ritem4 = "\n\t\t\t" + "peak - " + ipt_peakblodconcen.label + " (Ref) " + cmb_peakblodconcenref.label + "mcg/ml";
- // var Ritem5 = "\n\t 3. PK Parameters : " + "T1/2 (" + ipt_t12va.label + ") hr \t Vd (" + ipt_vdval.label + ") mcg/ml";
- // var Ritem6 = "\n\t Km (" + ipt_kmval.label + ") \t Vmax (" + ipt_vmaxval.label + ")";
- // var Ritem7 = "\n\t CL (" + ipt_clval.label + ") ml/min/kg"
-
- var Ritem3 = "\n" + "Trough - " + ipt_trghblodconcen.label + " (Ref) " + cmb_trghblodconcenref.label + " " + caption35.text; //2009-12-09 오타수정 (Through -> Trough)
- var Ritem4 = "\n" + "peak - " + ipt_peakblodconcen.label + " (Ref) " + cmb_peakblodconcenref.label + " " + caption37.text;
- var Ritem5 = "\n3. PK Parameters : " + "\nT1/2 (" + ipt_t12va.label + ") " + caption46.text + " \t Vd (" + ipt_vdval.label + ") " + caption47.text;
- var Ritem6 = "\nKm (" + ipt_kmval.label + ") " + caption48.text + " \t Vmax (" + ipt_vmaxval.label + ") " + caption49.text;
- var Ritem7 = "\nCL (" + ipt_clval.label + ") " + caption50.text
-
- var Ritem8 = "\n4. 분석방법 : " + cmb_analymthdcnts.label;
- var Ritem9 = "\n5. 판정결과(T) : " + cmb_tjudgrslt.label;
- var Ritem10 = "\n 판정결과(P) : " + cmb_pjudgrslt.label;
- var Ritem11 = "\n7. 자문내용 : " + cmb_cnstcnts.label;
- var Ritem12 = "\n8. 현재 Regimen : " + tar_prestregmcnts.label;
- var Ritem13 = "\n9. 추천 Regimen : " + tar_recmregmcnts.label;
- var Ritem14 = "\n10. 참고사항 : " + tar_cmt.label;
- var Ritem15 = "\n11. Recommendation : " + tar_recmcnts.label;
- var Ritem = repltitle + Ritem1 + Ritem2 + Ritem3 + Ritem4 + Ritem5 + Ritem6 + Ritem7 + Ritem8
- + Ritem9 + Ritem10 + Ritem11 + Ritem12 + Ritem13 + Ritem14 + Ritem15;
- var replcnts = title + Citem + Ritem;
- */
- var replcnts= fCretReplCnts("22"); //회신내역 발생 - cnststat = 상태 (22: 회신)
-
- var sel = fSendReplForm(replcnts,"");
- if(sel == "cfm"){
- //저장
- var rgstid = model.getValue("/root/main/baseinfo/tdminfolist/rgstid");
- if ((rgstid == "-") || ( rgstid =="")) { //저장하지 않고 바로 회신시 rgstid가 Null발생됨.
- model.setValue("/root/main/baseinfo/tdminfolist/rgstid" , "-");
- model.setValue("/root/main/baseinfo/tdminfolist/rgstdd" , "99991231");
- model.setValue("/root/main/baseinfo/tdminfolist/rgsttm" , "235959");
- }
-
- model.setValue("/root/temp/popupdata/repltype" , ""); //2010-01-11 tdmS 코드 추가 - 저장자ID 저장하기
- model.makeNode("/root/main/baseinfo/tdminfolist/replid");
- model.makeValue("/root/temp/popupdata/writid", model.getValue("/root/main/baseinfo/tdminfolist/rgstid")); //2010-01-11 저장자ID 추가
- model.makeValue("/root/temp/popupdata/writnm", model.getValue("/root/main/baseinfo/tdminfolist/rgstnm")); //2010-01-11 저장자추가
- model.setValue("/root/temp/popupdata/repltype","tdm");
- model.setValue("/root/temp/popupdata/receivedata" , "/root/main/baseinfo/tdminfolist/replid");
- modal("SPADC62300",0,400,300,"SPADC62300","/root/temp/popupdata","/root/temp/popupdata");
- var replid = model.getValue("/root/main/baseinfo/tdminfolist/replid");
- if(replid != ""){
- //2010-01-06 로긴ID와 회신자ID가 틀릴경우 회신내용중 [ 회신자: ] 변경저장처리
- var usernm = getUserName();
- if(replid != getUserId()){
- model.setValue("/root/send/userinfo/userid", replid);
- if(submit("TRADC02609")){
- var userid = model.getValue("/root/hidden/userinfo/userid");
- var usernm = model.getValue("/root/hidden/userinfo/usernm");
- if(userid != "" && usernm != ""){
- //model.setValue("/root/main/nstinfo/nutrpninfo/replnm",usernm);
- }else{
- messageBox("일치하는 사용자 정보가 일치하지 않습니다. 사용자 ID를 . ","I007");
- return;
- }
- }
- }
- //
- var Replinfo = "\n\n\n\t\t\t\t \t\t\t\t\t 회신자 : " + usernm ;
-
- //2010-01-06 PN 회신시 로긴ID와 회신자ID가 틀릴경우 회신내용수동변경데이타 저장안됨
- //var replcnts = gv_Ritem+Replinfo;
- var replcntsArr = replcnts.split("\n\n\n\t\t\t\t \t\t\t\t\t 회신자 : ");
- var replcnts = replcntsArr[0] + Replinfo; //2010-01-06 PN 회신시 로긴ID와 회신자ID가 틀릴경우 회신내용수동변경데이타 저장안됨
-
-
- if(fSave()){ // 저장이 성공했을시에 회신
- model.makeNode("/root/main/baseinfo/tdminfolist/pid");
- model.setValue("/root/main/baseinfo/tdminfolist/pid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
- model.makeValue("/root/main/baseinfo/tdminfolist/cnstseqno", model.getValue("/root/main/baseinfo/tdminfolist2/cnstseqno"));
- model.makeValue("/root/main/baseinfo/tdminfolist/cnststat", "22"); //회신
- model.makeValue("/root/main/baseinfo/tdminfolist/replid", replid); //회신자
- model.makeNode("/root/main/baseinfo/tdminfolist/replcnts"); // 회신내역 노드생성
- model.setValue("/root/main/baseinfo/tdminfolist/replcnts", replcnts); // 회신내역 변수설정
- model.makeValue("/root/main/baseinfo/tdminfolist/cnstcnts20", "N"); //2010-01-21 adchcnstinfo - cnstcnsts20 미회신여부 등록(Y = 미회신 N=회신)
- fSetCnstinfo(); // 미의뢰 회신 기본 데이터 생성
-
-
- /********************************************************************************************/
- /* 인증저장 */
- /********************************************************************************************/
- /*
- // 1. 의사_간호사인증구분 (의사 : D , 간호사 : N )
- model.makeValue("/root/send/dnorrptinfo/drnuflag", "N");
-
- // 2. 인증환자정보
- model.copyNode("/root/temp/patinfolist","/root/main/baseinfo/patinfolist");
-
- // 3. 인증데이터정보
- model.makeNode("/root/send/signdatalist");
- model.copyNode("/root/send/signdatalist","/root/main/baseinfo");
- model.removenode("/root/send/signdatalist/patinfolist");
- model.removenode("/root/send/signdatalist/diaginfolist");
- model.removenode("/root/send/signdatalist/baseinfolist");
- model.removenode("/root/send/signdatalist/tdminfolist2");
-
- // 4. 서식코드세팅
- var pFormcd = "0000000769";
- if(fSignSaveInho("C", pFormcd ))
- {
- return false;
- }
- */
- /********************************************************************************************/
-
-
- //회신
- var success = submit("TXADC00902");
- if(gv_consult == "NR"){
- model.setValue("/root/send/formrecseq", model.getValue("/root/hidden/ret/formrecseq"));
- }
- btn_sea.dispatch("DOMActivate");
- //fCnstResn(); //의뢰이유를 코드명으로 나열하기
-
- // var v_ptext = "의뢰약물코드:"+ model.getValue("/root/main/baseinfo/tdminfolist/testcd")+", 회신일:"+model.getValue("/root/main/baseinfo/tdminfolist/repldt") +", 의뢰이유:"+model.getValue("/root/main/baseinfo/tdminfolist/cnstresn")+", 전달사항:"+model.getValue("/root/main/baseinfo/tdminfolist/remark")+", 채혈시간thgh:"+model.getValue("/root/main/baseinfo/tdminfolist/trghbcoldd")+"/"+model.getValue("/root/main/baseinfo/tdminfolist/trghbcoltm")+", 채혈시간peak:"+model.getValue("/root/main/baseinfo/tdminfolist/peakbcoldd")+"/"+model.getValue("/root/main/baseinfo/tdminfolist/peakbcoltm")+", 혈중농도thgh:"+model.getValue("/root/main/baseinfo/tdminfolist/trghblodconcen")+"/"+model.getValue("/root/main/baseinfo/tdminfolist/trghblodconcenref")+", 혈중농도peak:"+model.getValue("/root/main/baseinfo/tdminfolist/peakblodconcen")+"/"+model.getValue("/root/main/baseinfo/tdminfolist/peakblodconcenref")+", t1/2:"+model.getValue("/root/main/baseinfo/tdminfolist/t12val")+", vd:"+model.getValue("/root/main/baseinfo/tdminfolist/vdval")+", km:"+model.getValue("/root/main/baseinfo/tdminfolist/kmval")+", vmax:"+model.getValue("/root/main/baseinfo/tdminfolist/vmaxval")+", cl:"+model.getValue("/root/main/baseinfo/tdminfolist/clval")+", 분석방법:"+model.getValue("/root/main/baseinfo/tdminfolist/analymthdcnts")+", 판정결과T:"+model.getValue("/root/main/baseinfo/tdminfolist/tjudgrslt")+", 판정결과P:"+model.getValue("/root/main/baseinfo/tdminfolist/pjudgrslt")+", 자문내용:"+model.getValue("/root/main/baseinfo/tdminfolist/cnstcnts")+", 현재regimen:"+model.getValue("/root/main/baseinfo/tdminfolist/prestregmcnts")+", 추천regimen:"+model.getValue("/root/main/baseinfo/tdminfolist/recmregmcnts")+", 참고사항:"+model.getValue("/root/main/baseinfo/tdminfolist/cmt")+", recomendation"+model.getValue("/root/main/baseinfo/tdminfolist/recmcnts");
- // var v_stext = zesfSignData( v_ptext , getUserId(), true );
- // model.setValue( "/root/stext", v_stext );
- // model.setValue("/root/main/baseinfo/tdminfolist/formrecseq", model.getValue("/root/send/formrecseq"));
- // model.makeValue("/root/main/baseinfo/tdminfolist/cnstseqno", model.getValue("/root/main/baseinfo/tdminfolist2/cnstseqno"));
-
- //인증저장 성공시 statflag 업데이트
- // if( model.getValue("/root/stext") !="") {
- // submit("TXADC00902");
- // btn_sea.dispatch("DOMActivate");
- // }
- }
- }
- model.refresh();
- }
- }else {
- messageBox("등록번호는 필수입력","I009");
- return false;
- }
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn4_letter2" navindex="33" style="left:1076px; top:3px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(submit("TRADC62202")){
- var cnststat = model.getValue("/root/hidden/cnststatinfo/cnststat");
- if(cnststat == "04"){
- messageBox("[취소] 더이상 수정하실 수","I004");
- return ;
- }else if (cnststat == "30"){
- messageBox("[회신확정] 더이상 수정하실 수","I004");
- return;
- }else {
- var sel = messageBox("저장된 내용은 삭제처리, 상태는 [의뢰]로 변경처리됩니다." + "\n\n" + "삭제","S001");
- if(sel != 6){
- return;
- }
- }
- }
- model.makeNode("/root/main/baseinfo/tdminfolist/pid");
- model.setValue("/root/main/baseinfo/tdminfolist/pid" , model.getValue("/root/main/baseinfo/patinfolist/pid"));
- model.makeValue("/root/main/baseinfo/tdminfolist/cnstseqno" , model.getValue("/root/main/baseinfo/tdminfolist2/cnstseqno"));
- model.makeValue("/root/main/baseinfo/tdminfolist/formrecseq" , model.getValue("/root/send/formrecseq") ); //2009-12-21 삭제처리시 mmrhcnstinfo 상태가 변경되지 않음
-
- if (submit("TXADC00903")) {
- btn_sea.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <button id="btn_prnt" class="btn6_letter2" navindex="34" style="left:1136px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*출력을 위한 데이터 생성 2009-07-08 김귀남*/
- model.copyNode("/root/hidden/prntinfo", "/root/main/baseinfo/patinfolist"); // 환자기본정보
-
- /* 의뢰일자 => 0000/00/00 */
- model.makeValue("/root/hidden/prntinfo/cnstdd", model.getValue("/root/hidden/prntinfo/cnstdd").substr(0,8)); // 의뢰일자
-
- /*나이 => (M/00) */
- var sna = "("+ model.getValue("/root/hidden/prntinfo/sna") + ")";
- model.makeValue("/root/hidden/prntinfo/sna", sna); // 성별/나이
-
- model.makeValue("/root/hidden/prntinfo/sikcnm", model.getValue("/root/main/baseinfo/baseinfolist/sikcnm")); // 상병명
- model.makeValue("/root/hidden/prntinfo/testcd", model.getValue("/root/main/baseinfo/tdminfolist2/testcd")); // 의뢰약물
- model.makeValue("/root/hidden/prntinfo/cnstresn", model.getValue("/root/main/baseinfo/tdminfolist2/cnstresn")); // 의뢰이유
- model.makeValue("/root/hidden/prntinfo/prestregmcnts", model.getValue("/root/main/baseinfo/tdminfolist/prestregmcnts")); // 현재regimen
- model.makeValue("/root/hidden/prntinfo/tjudgrslt", cmb_tjudgrslt.value); // 판정결과 (T)
- model.makeValue("/root/hidden/prntinfo/pjudgrslt", cmb_pjudgrslt.value); // 판정결과 (P)
- cmb_pjudgrslt
-
- /* 채혈일 채혈시간 혈중농도*/
- /* trough와 peak 중 입력된 내용만 출력 */
- var blodconcen = model.getValue("/root/main/tdminfo/tdminfolist/blodconcen"); // 혈중농도 단위
-
- model.makeValue("/root/hidden/prntinfo/trghbcoldd", model.getValue("/root/main/baseinfo/tdminfolist/trghbcoldd")); // 채혈일자(trough)
- model.makeValue("/root/hidden/prntinfo/trghbcoltm", model.getValue("/root/main/baseinfo/tdminfolist/trghbcoltm")); // 채혈시간(trough)
- var trghblodconcen = "";
- if(model.getValue("/root/main/baseinfo/tdminfolist/trghblodconcen") != ""){
- trghblodconcen = model.getValue("/root/main/baseinfo/tdminfolist/trghblodconcen") + "\t (" + cmb_trghblodconcenref.label+ ") " +blodconcen ;
- }
- model.makeValue("/root/hidden/prntinfo/trghblodconcen", trghblodconcen);// 혈중농도(trough)
-
- model.makeValue("/root/hidden/prntinfo/peakbcoldd", model.getValue("/root/main/baseinfo/tdminfolist/peakbcoldd")); // 채혈일자(peak)
- model.makeValue("/root/hidden/prntinfo/peakbcoltm", model.getValue("/root/main/baseinfo/tdminfolist/peakbcoltm")); // 채혈시간(peak)
-
- var peakblodconcen = "";
- if(model.getValue("/root/main/baseinfo/tdminfolist/peakblodconcen") != ""){
- peakblodconcen = model.getValue("/root/main/baseinfo/tdminfolist/peakblodconcen") + "\t (" + cmb_peakblodconcenref.label + ") " +blodconcen;
- }
- model.makeValue("/root/hidden/prntinfo/peakblodconcen", peakblodconcen);// 혈중농도(peak)
-
- /*PK(Pharmacokinetic) Parameters => 입력된 사항문 출력되도록 */
- var pkParam = "";
- if(ipt_t12va.label != "") {
- pkParam += caption39.value + " " + ipt_t12va.label +" "+ caption46.value;
- }
- if(ipt_vdval.label != "") {
- if(pkParam != "" ) pkParam += "\t";
- pkParam += caption42.value + " " + ipt_vdval.label +" "+ caption47.value;
- }
- if(ipt_kmval.label != "") {
- if(pkParam != "" ) pkParam += "\t";
- pkParam += caption40.value + " " + ipt_kmval.label +" "+ caption48.value;
- }
- if(ipt_vmaxval.label != "") {
- if(pkParam != "" ) pkParam += "\t";
- pkParam += caption43.value + " " + ipt_vmaxval.label +" "+ caption49.value;
- }
- if(ipt_clval.label != "") {
- if(pkParam != "" ) pkParam += "\t";
- pkParam += caption41.value + " " + ipt_clval.label +" "+ caption50.value;
- }
- model.makeValue("/root/hidden/prntinfo/pkparameter", pkParam); // pk parameter
-
- model.makeValue("/root/hidden/prntinfo/recmcnts", tar_recmcnts.value); // recommendation
-
- model.makeValue("/root/hidden/prntinfo/repldt", model.getValue("/root/main/baseinfo/tdminfolist/repldt").substr(0,8)); // 회신일시
-
- // 20110907_laboru_회신자 이름뒤에 소속 표시
- //model.makeValue("/root/hidden/prntinfo/replusernm", model.getValue("/root/main/baseinfo/tdminfolist/replusernm")); // 회신자
- if(model.getValue("/root/temp/cnstinfo/repluseridcheck") == "Y" ) {
- model.makeValue("/root/hidden/prntinfo/replusernm", model.getValue("/root/main/baseinfo/tdminfolist/replusernm") + "(" + "약제부" + ")"); // 회신자
- } else {
- model.makeValue("/root/hidden/prntinfo/replusernm", model.getValue("/root/main/baseinfo/tdminfolist/replusernm") + "(" + "임상시험센터" + ")"); // 회신자
- }
-
-
-
- exeReportPreview("RPADC00900", "XMLSTR", "", "", "false","","","","","false");
- ]]>
- </script>
- </button>
- <button id="button2" class="btn6_letter4" style="left:685px; top:3px; width:80px; height:22px; ">
- <caption>미리보기</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (model.getValue("/root/main/baseinfo/patinfolist/pid") == "") {
- messageBox("내역을 조회후 [미리보기]하시기 바랍니다.","I");
- return;
- }
- if ( model.getValue("/root/main/baseinfo/tdminfolist/statflag") == "Z"){ //회신이상일경우는 회신된 내용의 데이타 가져오기
- model.makeValue("/root/send/srchinfo/formrecseq", model.getValue("/root/main/baseinfo/tdminfolist/formrecseq") );
- submit("TRADC62201");
- var replcnts = model.getValue("/root/temp/formdata/replinfo/replcnts");
- }else{
- var replcnts= fCretReplCnts();
- }
-
- model.makeValue("/root/hidden/replinfo/replcnts" ,replcnts);
- group2.attribute("visibility") ="visible";
- group2.refresh();
-
- ]]>
- </script>
- </button>
- <button id="btn_replno" class="btn4_letter4" navindex="32" style="left:870px; top:2px; width:80px; height:22px; ">
- <caption>회신제외</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/main/baseinfo/patinfolist/pid") != ""){
- if(submit("TRADC62202")){
- var cnststat = model.getValue("/root/hidden/cnststatinfo/cnststat");
- if(cnststat == "04"){
- messageBox("[취소] 더이상 수정하실 수","I004");
- return ;
- }else if (cnststat == "30"){
- messageBox("[회신확정] 더이상 수정하실 수","I004");
- return;
- }
- }
- var sel = messageBox("[ 회신제외 ]","S001");
- if (sel != 6) return;
-
- var replcnts= fCretReplCnts("00"); //회신내역 발생 - cnststat = 상태 (22: 회신 00:미회신)
-
- var sel = fSendReplForm(replcnts,"");
- if(sel == "cfm"){
- //저장
- var rgstid = model.getValue("/root/main/baseinfo/tdminfolist/rgstid");
- if ((rgstid == "-") || ( rgstid =="")) { //저장하지 않고 바로 회신시 rgstid가 Null발생됨.
- model.setValue("/root/main/baseinfo/tdminfolist/rgstid" , "-");
- model.setValue("/root/main/baseinfo/tdminfolist/rgstdd" , "99991231");
- model.setValue("/root/main/baseinfo/tdminfolist/rgsttm" , "235959");
- }
-
- model.setValue("/root/temp/popupdata/repltype" , ""); //2010-01-11 tdmS 코드 추가 - 저장자ID 저장하기
- model.makeNode("/root/main/baseinfo/tdminfolist/replid");
- model.makeValue("/root/temp/popupdata/writid", model.getValue("/root/main/baseinfo/tdminfolist/rgstid")); //2010-01-11 저장자ID 추가
- model.makeValue("/root/temp/popupdata/writnm", model.getValue("/root/main/baseinfo/tdminfolist/rgstnm")); //2010-01-11 저장자추가
- model.setValue("/root/temp/popupdata/repltype","tdm");
- model.setValue("/root/temp/popupdata/receivedata" , "/root/main/baseinfo/tdminfolist/replid");
- modal("SPADC62300",0,400,300,"SPADC62300","/root/temp/popupdata","/root/temp/popupdata");
- var replid = model.getValue("/root/main/baseinfo/tdminfolist/replid");
- if(replid != ""){
- //2010-01-06 로긴ID와 회신자ID가 틀릴경우 회신내용중 [ 회신자: ] 변경저장처리
- var usernm = getUserName();
- if(replid != getUserId()){
- model.setValue("/root/send/userinfo/userid", replid);
- if(submit("TRADC02609")){
- var userid = model.getValue("/root/hidden/userinfo/userid");
- var usernm = model.getValue("/root/hidden/userinfo/usernm");
- if(userid != "" && usernm != ""){
- //model.setValue("/root/main/nstinfo/nutrpninfo/replnm",usernm);
- }else{
- messageBox("일치하는 사용자 정보가 일치하지 않습니다. 사용자 ID를 . ","I007");
- return;
- }
- }
- }
- //
- var Replinfo = "\n\n\n\t\t\t\t \t\t\t\t\t 회신자 : " + usernm ;
-
- //2010-01-06 PN 회신시 로긴ID와 회신자ID가 틀릴경우 회신내용수동변경데이타 저장안됨
- //var replcnts = gv_Ritem+Replinfo;
- var replcntsArr = replcnts.split("\n\n\n\t\t\t\t \t\t\t\t\t 회신자 : ");
- var replcnts = replcntsArr[0] + Replinfo; //2010-01-06 PN 회신시 로긴ID와 회신자ID가 틀릴경우 회신내용수동변경데이타 저장안됨
-
-
- if(fSave()){ // 저장이 성공했을시에 회신
- model.makeNode("/root/main/baseinfo/tdminfolist/pid");
- model.setValue("/root/main/baseinfo/tdminfolist/pid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
- model.makeValue("/root/main/baseinfo/tdminfolist/cnstseqno", model.getValue("/root/main/baseinfo/tdminfolist2/cnstseqno"));
- model.makeValue("/root/main/baseinfo/tdminfolist/cnststat", "22"); //회신
- model.makeValue("/root/main/baseinfo/tdminfolist/replid", replid); //회신자
- model.makeNode("/root/main/baseinfo/tdminfolist/replcnts"); // 회신내역 노드생성
- model.setValue("/root/main/baseinfo/tdminfolist/replcnts", replcnts); // 회신내역 변수설정
- model.makeValue("/root/main/baseinfo/tdminfolist/cnstcnts20", "Y"); //2010-01-21 adchcnstinfo - cnstcnsts20 미회신여부 등록(Y = 미회신)
- fSetCnstinfo(); // 미의뢰 회신 기본 데이터 생성
-
-
- /********************************************************************************************/
- /* 인증저장 */
- /********************************************************************************************/
- /*
- // 1. 의사_간호사인증구분 (의사 : D , 간호사 : N )
- model.makeValue("/root/send/dnorrptinfo/drnuflag", "N");
-
- // 2. 인증환자정보
- model.copyNode("/root/temp/patinfolist","/root/main/baseinfo/patinfolist");
-
- // 3. 인증데이터정보
- model.makeNode("/root/send/signdatalist");
- model.copyNode("/root/send/signdatalist","/root/main/baseinfo");
- model.removenode("/root/send/signdatalist/patinfolist");
- model.removenode("/root/send/signdatalist/diaginfolist");
- model.removenode("/root/send/signdatalist/baseinfolist");
- model.removenode("/root/send/signdatalist/tdminfolist2");
-
- // 4. 서식코드세팅
- var pFormcd = "0000000769";
- if(fSignSaveInho("C", pFormcd ))
- {
- return false;
- }
- */
- /********************************************************************************************/
-
-
- //회신
- var success = submit("TXADC00902");
- if(gv_consult == "NR"){
- model.setValue("/root/send/formrecseq", model.getValue("/root/hidden/ret/formrecseq"));
- }
- btn_sea.dispatch("DOMActivate");
- //fCnstResn(); //의뢰이유를 코드명으로 나열하기
-
- // var v_ptext = "의뢰약물코드:"+ model.getValue("/root/main/baseinfo/tdminfolist/testcd")+", 회신일:"+model.getValue("/root/main/baseinfo/tdminfolist/repldt") +", 의뢰이유:"+model.getValue("/root/main/baseinfo/tdminfolist/cnstresn")+", 전달사항:"+model.getValue("/root/main/baseinfo/tdminfolist/remark")+", 채혈시간thgh:"+model.getValue("/root/main/baseinfo/tdminfolist/trghbcoldd")+"/"+model.getValue("/root/main/baseinfo/tdminfolist/trghbcoltm")+", 채혈시간peak:"+model.getValue("/root/main/baseinfo/tdminfolist/peakbcoldd")+"/"+model.getValue("/root/main/baseinfo/tdminfolist/peakbcoltm")+", 혈중농도thgh:"+model.getValue("/root/main/baseinfo/tdminfolist/trghblodconcen")+"/"+model.getValue("/root/main/baseinfo/tdminfolist/trghblodconcenref")+", 혈중농도peak:"+model.getValue("/root/main/baseinfo/tdminfolist/peakblodconcen")+"/"+model.getValue("/root/main/baseinfo/tdminfolist/peakblodconcenref")+", t1/2:"+model.getValue("/root/main/baseinfo/tdminfolist/t12val")+", vd:"+model.getValue("/root/main/baseinfo/tdminfolist/vdval")+", km:"+model.getValue("/root/main/baseinfo/tdminfolist/kmval")+", vmax:"+model.getValue("/root/main/baseinfo/tdminfolist/vmaxval")+", cl:"+model.getValue("/root/main/baseinfo/tdminfolist/clval")+", 분석방법:"+model.getValue("/root/main/baseinfo/tdminfolist/analymthdcnts")+", 판정결과T:"+model.getValue("/root/main/baseinfo/tdminfolist/tjudgrslt")+", 판정결과P:"+model.getValue("/root/main/baseinfo/tdminfolist/pjudgrslt")+", 자문내용:"+model.getValue("/root/main/baseinfo/tdminfolist/cnstcnts")+", 현재regimen:"+model.getValue("/root/main/baseinfo/tdminfolist/prestregmcnts")+", 추천regimen:"+model.getValue("/root/main/baseinfo/tdminfolist/recmregmcnts")+", 참고사항:"+model.getValue("/root/main/baseinfo/tdminfolist/cmt")+", recomendation"+model.getValue("/root/main/baseinfo/tdminfolist/recmcnts");
- // var v_stext = zesfSignData( v_ptext , getUserId(), true );
- // model.setValue( "/root/stext", v_stext );
- // model.setValue("/root/main/baseinfo/tdminfolist/formrecseq", model.getValue("/root/send/formrecseq"));
- // model.makeValue("/root/main/baseinfo/tdminfolist/cnstseqno", model.getValue("/root/main/baseinfo/tdminfolist2/cnstseqno"));
-
- //인증저장 성공시 statflag 업데이트
- // if( model.getValue("/root/stext") !="") {
- // submit("TXADC00902");
- // btn_sea.dispatch("DOMActivate");
- // }
- }
- }
- model.refresh();
- }
- }else {
- messageBox("등록번호는 필수입력","I009");
- return false;
- }
- ]]>
- </script>
- </button>
- <button id="button4" class="btn3_letter6" style="left:164px; top:3px; width:104px; height:22px; ">
- <caption>통합기록조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setParameter("SMMRI00400_param_pid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
- open("SMMRI00400");
- ]]>
- </script>
- </button>
- <button id="button5" class="btn3_letter6" style="left:482px; top:3px; width:104px; height:22px; ">
- <caption>Consult관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //pid▦orddd▦cretno▦ioflag▦orddeptcd▦orddrid▦
- var sParam = model.getValue("/root/main/baseinfo/patinfolist/pid") + "▦" + "" + "▦" + "" + "▦" + "" + "▦" + "" + "▦" + "";
- setParameter("SMMMR05000_param_pinfo", sParam);
- open("SMMMR05000");
- ]]>
- </script>
- </button>
- <button id="btn_emr_careplan" class="btn3_letter5" navindex="306" visibility="hidden" style="left:590px; top:3px; width:92px; height:22px; ">
- <caption>CarePlan</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //1.JCI Care Plan 통합조회 화면 개발 연동
- var pid= model.getValue("/root/main/baseinfo/patinfolist/pid")
- setParameter("SMMRJ00100_pid", pid);
- modal("SMMRJ00100"); // CarePlan 연동
- ]]>
- </script>
- </button>
- </group>
- <group id="group1" style="left:0px; top:40px; width:1195px; height:744px; ">
- <caption id="caption51" class="cell_1" style="left:10px; top:485px; width:170px; height:225px; vertical-align:middle; ">19)Recommendation</caption>
- <caption id="caption49" style="left:536px; top:433px; width:80px; height:20px; vertical-align:middle; "/>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:9px; top:29px; width:551px; height:95px; background-color:#fffbf2; border-color:#ffd799; "/>
- <input id="ipt_trghbcoldd" ref="/root/main/baseinfo/tdminfolist/trghbcoldd" class="input_default" navindex="10" inputtype="date" style="left:185px; top:310px; width:100px; height:19px; "/>
- <line id="line8" class="line_1" style="x1:569px; y1:24px; x2:1192px; y2:24px; "/>
- <output id="opt_cnstdrid" ref="/root/main/baseinfo/patinfolist/cnstdrnm" class="output_search" style="left:403px; top:94px; width:150px; height:19px; "/>
- <input id="ipt_trghbcoltm" ref="/root/main/baseinfo/tdminfolist/trghbcoltm" class="input_default" navindex="11" format="hh:nn" style="left:290px; top:310px; width:52px; height:19px; "/>
- <line id="line9" class="line_3" style="x1:569px; y1:125px; x2:1192px; y2:125px; "/>
- <output id="output5" ref="/root/main/baseinfo/patinfolist/cnstdd" class="output_search" format="yyyy-mm-dd hh:nn" style="left:403px; top:74px; width:150px; height:19px; "/>
- <line id="line31" class="line_1" style="x1:8px; y1:480px; x2:1193px; y2:480px; "/>
- <line id="line20" class="line_2" style="x1:595px; y1:282px; x2:1190px; y2:282px; "/>
- <output id="opt_repldt" ref="/root/main/baseinfo/tdminfolist/repldt" class="output_fix" format="yyyy-mm-dd hh:nn" style="left:435px; top:235px; width:150px; height:19px; "/>
- <input id="ipt_peakbcoldd" ref="/root/main/baseinfo/tdminfolist/peakbcoldd" class="input_default" navindex="12" inputtype="date" style="left:427px; top:310px; width:100px; height:19px; "/>
- <output id="output6" ref="/root/main/baseinfo/patinfolist/bcoldt" class="output_search" format="yyyy-mm-dd hh:nn" style="left:403px; top:54px; width:150px; height:19px; "/>
- <caption id="caption50" style="left:332px; top:410px; width:65px; height:20px; vertical-align:middle; ">ml/min/kg</caption>
- <line id="line32" class="line_3" style="x1:8px; y1:713px; x2:1193px; y2:713px; "/>
- <caption id="caption40" class="cell_1" style="left:185px; top:433px; width:75px; height:23px; vertical-align:middle; ">Km</caption>
- <line id="line21" class="line_2" style="x1:595px; y1:307px; x2:1190px; y2:307px; "/>
- <line id="line10" class="line_3" style="x1:8px; y1:202px; x2:1193px; y2:202px; "/>
- <output id="output7" ref="/root/main/baseinfo/patinfolist/hngnm" class="output_search" style="left:403px; top:34px; width:100px; height:19px; "/>
- <caption id="caption30" class="cell_1" style="left:593px; top:234px; width:160px; height:23px; vertical-align:middle; ">13) 분석방법</caption>
- <output id="output12" ref="/root/main/baseinfo/patinfolist/roomcd" class="output_search" style="left:195px; top:74px; width:63px; height:19px; "/>
- <caption id="caption41" class="cell_1" style="left:185px; top:408px; width:75px; height:23px; vertical-align:middle; ">CL</caption>
- <line id="line22" class="line_2" style="x1:595px; y1:330px; x2:1190px; y2:330px; "/>
- <line id="line11" class="line_2" style="x1:8px; y1:177px; x2:1193px; y2:177px; "/>
- <output id="output8" ref="/root/main/baseinfo/patinfolist/sna" class="output_search" style="left:508px; top:34px; width:45px; height:19px; "/>
- <caption id="caption31" class="cell_1" style="left:593px; top:259px; width:160px; height:23px; vertical-align:middle; ">14) 판정결과(T)</caption>
- <output id="output13" ref="/root/main/baseinfo/tdminfolist2/cnstdrugnm" class="output_fix" style="left:220px; top:235px; width:140px; height:19px; "/>
- <input id="input21" ref="/root/main/baseinfo/baseinfolist/albuminval" class="input_default" navindex="6" maxbyte="10" style="left:794px; top:155px; width:75px; height:19px; "/>
- <caption id="caption42" class="cell_1" style="left:400px; top:383px; width:60px; height:23px; vertical-align:middle; ">Vd</caption>
- <line id="line23" class="line_2" style="x1:595px; y1:375px; x2:1190px; y2:375px; "/>
- <output id="opt_cnstresn" ref="/root/main/baseinfo/tdminfolist2/cnstresn" class="output_fix" style="left:105px; top:260px; width:480px; height:19px; "/>
- <input id="ipt_peakbcoltm" ref="/root/main/baseinfo/tdminfolist/peakbcoltm" class="input_default" navindex="13" format="hh:nn" style="left:532px; top:310px; width:52px; height:19px; "/>
- <line id="line12" class="line_1" style="x1:8px; y1:229px; x2:1193px; y2:229px; "/>
- <caption id="caption20" class="tit_2" style="left:16px; top:214px; width:95px; height:13px; ">회신내용(I)</caption>
- <caption id="caption32" class="cell_1" style="left:593px; top:284px; width:160px; height:23px; vertical-align:middle; ">판정결과(P)</caption>
- <caption id="caption54" class="cell_1" style="left:697px; top:154px; width:91px; height:23px; vertical-align:middle; ">5) Albumin</caption>
- <line id="line24" class="line_2" style="x1:10px; y1:405px; x2:585px; y2:405px; "/>
- <caption id="caption43" class="cell_1" style="left:400px; top:433px; width:60px; height:23px; vertical-align:middle; ">Vmax</caption>
- <input id="ipt_testcd" ref="/root/main/baseinfo/tdminfolist2/testcd" class="input_default" disabled="true" navindex="8" maxbyte="20" _chartype="upper" style="left:105px; top:235px; width:110px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- model.makeNode("/root/main/baseinfo/tdminfolist/testcd");
- inputEnterKey("btn_cnst","DOMActivate");
- ]]>
- </script>
- </input>
- <line id="line13" class="line_2" style="x1:10px; y1:307px; x2:585px; y2:307px; "/>
- <caption id="caption21" class="cell_1" style="left:185px; top:154px; width:75px; height:23px; vertical-align:middle; ">2) 체중(kg)</caption>
- <caption id="caption10" class="search_name" style="left:13px; top:57px; width:86px; height:17px; ">입원일 :</caption>
- <caption id="caption1" class="tit_2" style="left:14px; top:134px; width:95px; height:13px; ">기본정보</caption>
- <caption id="caption33" class="cell_1" style="left:593px; top:309px; width:160px; height:21px; vertical-align:middle; ">15) 자문내용</caption>
- <caption id="caption44" class="cell_1" style="left:593px; top:377px; width:160px; height:43px; vertical-align:middle; ">17) 추천 Regimen</caption>
- <line id="line25" class="line_2" style="x1:10px; y1:430px; x2:585px; y2:430px; "/>
- <select1 id="cmb_tjudgrslt" ref="/root/main/baseinfo/tdminfolist/tjudgrslt" class="combo_default" navindex="24" appearance="minimal" editmode="inputsearch" showvalue="true" style="left:757px; top:260px; width:435px; height:19px; ">
- <choices>
- <item>
- <label>Upper</label>
- <value>Upper</value>
- </item>
- <item>
- <label>Low</label>
- <value>Low</value>
- </item>
- <item>
- <label>Below</label>
- <value>Below</value>
- </item>
- <item>
- <label>Steady State is not yet</label>
- <value>Steady State is not yet</value>
- </item>
- <item>
- <label>Wrong Sampling Time</label>
- <value>Wrong Sampling Time</value>
- </item>
- <item>
- <label>Within</label>
- <value>Within</value>
- </item>
- <item>
- <label>기타</label>
- <value>기타</value>
- </item>
- </choices>
- </select1>
- <input id="input12" ref="/root/main/baseinfo/tdminfolist2/remark" class="input_default" navindex="9" style="left:105px; top:285px; width:480px; height:19px; "/>
- <line id="line14" class="line_2" style="x1:10px; y1:330px; x2:585px; y2:330px; "/>
- <caption id="caption22" class="cell_1" style="left:345px; top:154px; width:91px; height:23px; vertical-align:middle; ">3) Scr(mg/dL)</caption>
- <caption id="caption11" class="search_name" style="left:13px; top:77px; width:97px; height:17px; ">병동/병실 :</caption>
- <caption id="caption2" class="tit_2" style="left:13px; top:9px; width:95px; height:13px; ">환자정보</caption>
- <line id="line15" class="line_2" style="x1:10px; y1:357px; x2:585px; y2:357px; "/>
- <caption id="caption34" class="cell_1" style="left:593px; top:332px; width:160px; height:43px; vertical-align:middle; ">16) 현재 Regimen</caption>
- <caption id="caption45" class="cell_1" style="left:593px; top:422px; width:160px; height:33px; vertical-align:middle; ">18) 참고사항</caption>
- <input id="ipt_trghblodconcen" ref="/root/main/baseinfo/tdminfolist/trghblodconcen" class="input_default" navindex="14" maxbyte="20" style="left:185px; top:335px; width:75px; height:19px; "/>
- <select1 id="cmb_pjudgrslt" ref="/root/main/baseinfo/tdminfolist/pjudgrslt" class="combo_default" navindex="25" appearance="minimal" editmode="inputsearch" showvalue="true" style="left:757px; top:285px; width:435px; height:19px; ">
- <choices>
- <item>
- <label>Upper</label>
- <value>Upper</value>
- </item>
- <item>
- <label>Low</label>
- <value>Low</value>
- </item>
- <item>
- <label>Below</label>
- <value>Below</value>
- </item>
- <item>
- <label>Within</label>
- <value>Within</value>
- </item>
- <item>
- <label>Wrong Sampling Time</label>
- <value>Wrong Sampling Time</value>
- </item>
- </choices>
- </select1>
- <caption id="caption23" class="cell_1" style="left:520px; top:154px; width:91px; height:23px; vertical-align:middle; ">4) Ccr(ml/min)</caption>
- <caption id="caption12" class="search_name" style="left:13px; top:97px; width:86px; height:17px; ">진료과 :</caption>
- <button id="button61" class="icon_search" visibility="hidden" style="left:263px; top:34px; width:16px; height:16px; ">
- <caption/>
- </button>
- <caption id="caption3" class="search_name" style="left:13px; top:37px; width:86px; height:17px; ">등록번호 :</caption>
- <button id="button9" class="icon_search" style="left:135px; top:590px; width:16px; height:16px; ">
- <caption/>
- </button>
- <caption id="caption46" style="left:334px; top:385px; width:61px; height:20px; vertical-align:middle; ">hr</caption>
- <line id="line27" class="line_2" style="x1:595px; y1:420px; x2:1190px; y2:420px; "/>
- <input id="ipt_peakblodconcen" ref="/root/main/baseinfo/tdminfolist/peakblodconcen" class="input_default" navindex="16" maxbyte="20" style="left:185px; top:361px; width:75px; height:19px; "/>
- <caption id="caption35" style="left:534px; top:335px; width:55px; height:20px; vertical-align:middle; ">mcg/ml</caption>
- <select1 id="cmb_analymthdcnts" ref="/root/main/baseinfo/tdminfolist/analymthdcnts" class="combo_default" navindex="23" appearance="minimal" editmode="inputsearch" showvalue="true" style="left:757px; top:235px; width:435px; height:19px; ">
- <choices>
- <item>
- <label>Population</label>
- <value>Population</value>
- </item>
- <item>
- <label>Single Point</label>
- <value>Single Point</value>
- </item>
- <item>
- <label>Bayesian</label>
- <value>Bayesian</value>
- </item>
- <item>
- <label>Simplex</label>
- <value>Simplex</value>
- </item>
- <item>
- <label>User</label>
- <value>User</value>
- </item>
- <item>
- <label>기타</label>
- <value>기타</value>
- </item>
- </choices>
- </select1>
- <line id="line16" class="line_2" style="x1:10px; y1:256px; x2:585px; y2:256px; "/>
- <caption id="caption24" class="cell_1" style="left:347px; top:309px; width:75px; height:21px; vertical-align:middle; ">Peak</caption>
- <caption id="caption13" class="search_name" style="left:288px; top:97px; width:86px; height:17px; ">의뢰의사:</caption>
- <caption id="caption4" class="cell_1" style="left:8px; top:284px; width:92px; height:23px; vertical-align:middle; ">9) 전달사항</caption>
- <button id="btn_cnst" class="btn1_letter2" visibility="hidden" style="left:105px; top:205px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/tdminfo/tdminfolist2/trgh");
- model.resetInstanceNode("/root/main/tdminfo/tdminfolist3/peak");
- //model.setValue("/root/send/testcd",model.getValue("/root/main/tdminfo/tdminfolist/testcd"));
- // 2008-09-04 output13 의 값이 TDM기준정보의 코드 값.
- if (output13.value == '' ){
- model.setValue("/root/send/testcd", ipt_testcd.currentText);
- }else{
- model.setValue("/root/send/testcd",output13.value );
- }
-
- submit("TRADC00902");
- // TDM기준정보의 코드별 각각의 Unit 가져오기
- caption35.text=model.getValue("/root/main/tdminfo/tdminfolist/blodconcen") // TDM Unit
- caption37.text=model.getValue("/root/main/tdminfo/tdminfolist/blodconcen") // TDM Unit
- caption46.text=model.getValue("/root/main/tdminfo/tdminfolist/t12val") // T1/2 Unit
- caption47.text=model.getValue("/root/main/tdminfo/tdminfolist/vdval") // Vd Unit
- caption48.text=model.getValue("/root/main/tdminfo/tdminfolist/kmval") // Km Unit
- caption49.text=model.getValue("/root/main/tdminfo/tdminfolist/vmaxval") // Vmax Unit
- caption50.text=model.getValue("/root/main/tdminfo/tdminfolist/clval") // CL Unit
-
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_sea" class="btn1_letter2" visibility="hidden" style="left:110px; top:5px; width:56px; height:17px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/pid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
- submit("TRADC00901");
-
- // 미의뢰회신 전역변수 변경
- // 의뢰시 발생되는 formrecseq 존재여부 체크
- if(formrecseq == ""){
- gv_consult = "NR";
- fCretCnstinfo();
- }
-
- if(model.getValue("/root/main/baseinfo/patinfolist/pid") != ""){
- fCnstResn(); //의뢰이유를 코드명으로 나열하기
-
- //회신상태
- if(model.getValue("/root/main/baseinfo/tdminfolist/statflag") == "Z" ) {
- btn_save.disabled = true;
- btn_repl.disabled = true;
- btn_del.disabled = true;
- btn_replno.disabled = true; //2010-01-21 [미회신]버튼 비활성화
- btn_careplan.disabled= false; //2010-02-19 CarePlan 전송버튼 추가 - 회신상태일경우만 활성화
- }
- //저장상태
- else {
- btn_save.disabled = false;
- btn_repl.disabled = false;
- btn_del.disabled = false;
- btn_replno.disabled = false; //2010-01-21 [미회신]버튼 활성화
- btn_careplan.disabled= true; //2010-02-19 CarePlan 전송버튼 추가 - 회신상태일경우만 활성화
- }
- }else model.setFocus("ipt_pid");
-
- if ( checkOpener() ) { //2010-01-18 등록번호별로 사용할수도 있음
- opener.btn_sea.dispatch("DOMActivate");
- opener.model.refresh();
- }
- ]]>
- </script>
- </button>
- <caption id="caption47" style="left:536px; top:385px; width:60px; height:20px; vertical-align:middle; ">mcg/ml</caption>
- <input id="ipt_t12va" ref="/root/main/baseinfo/tdminfolist/t12val" class="input_default" navindex="18" maxbyte="10" style="left:264px; top:384px; width:66px; height:19px; "/>
- <caption id="caption36" style="left:265px; top:335px; width:30px; height:20px; vertical-align:middle; ">(Ref)</caption>
- <select1 id="cmb_cnstcnts" ref="/root/main/baseinfo/tdminfolist/cnstcnts" class="combo_default" navindex="26" appearance="minimal" editmode="inputsearch" showvalue="true" style="left:757px; top:310px; width:435px; height:19px; ">
- <choices>
- <item>
- <label>유지</label>
- <value>유지</value>
- </item>
- <item>
- <label>필요성고려</label>
- <value>필요성고려</value>
- </item>
- <item>
- <label>용량설정</label>
- <value>용량설정</value>
- </item>
- <item>
- <label>투여경로 변경</label>
- <value>투여경로 변경</value>
- </item>
- <item>
- <label>증량</label>
- <value>증량</value>
- </item>
- <item>
- <label>감량</label>
- <value>감량</value>
- </item>
- <item>
- <label>Hold</label>
- <value>Hold</value>
- </item>
- <item>
- <label>기타</label>
- <value>기타</value>
- </item>
- <item>
- <label>회신제외</label>
- <value>회신제외</value>
- </item>
- </choices>
- </select1>
- <caption id="caption25" class="cell_1" style="left:365px; top:234px; width:66px; height:23px; vertical-align:middle; ">7) 회신일</caption>
- <line id="line17" class="line_2" style="x1:10px; y1:282px; x2:585px; y2:282px; "/>
- <caption id="caption14" class="search_name" style="left:288px; top:77px; width:86px; height:17px; ">의뢰일시 :</caption>
- <caption id="caption5" class="cell_1" style="left:8px; top:309px; width:92px; height:21px; vertical-align:middle; ">10) 채혈시간</caption>
- <line id="line1" class="line_1" style="x1:8px; y1:149px; x2:1193px; y2:149px; "/>
- <caption id="caption6" class="cell_1" style="left:8px; top:332px; width:92px; height:50px; vertical-align:middle; ">11) 혈중농도</caption>
- <caption id="caption48" style="left:333px; top:435px; width:65px; height:20px; vertical-align:middle; "/>
- <line id="line29" class="line_3" style="x1:8px; y1:456px; x2:1193px; y2:456px; "/>
- <input id="ipt_kmval" ref="/root/main/baseinfo/tdminfolist/kmval" class="input_default" navindex="20" maxbyte="10" style="left:264px; top:434px; width:66px; height:19px; "/>
- <caption id="caption37" style="left:534px; top:361px; width:55px; height:20px; vertical-align:middle; ">mcg/ml</caption>
- <select1 id="cmb_trghblodconcenref" ref="/root/main/baseinfo/tdminfolist/trghblodconcenref" class="combo_default" navindex="15" appearance="minimal" editmode="inputsearch" style="left:305px; top:335px; width:225px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/tdminfo/tdminfolist2">
- <label ref="trgh"/>
- <value ref="trgh"/>
- </itemset>
- </choices>
- </select1>
- <line id="line18" class="line_2" style="x1:10px; y1:382px; x2:585px; y2:382px; "/>
- <caption id="caption26" class="cell_1" style="left:105px; top:309px; width:75px; height:21px; vertical-align:middle; ">Trough</caption>
- <input id="input1" ref="/root/main/baseinfo/baseinfolist/wt" class="input_default" navindex="3" maxbyte="10" style="left:265px; top:155px; width:75px; height:19px; "/>
- <caption id="caption15" class="cell_1" style="left:8px; top:154px; width:92px; height:23px; vertical-align:middle; ">1) 키(cm)</caption>
- <line id="line2" class="line_1" style="x1:9px; y1:24px; x2:562px; y2:24px; "/>
- <input id="ipt_clval" ref="/root/main/baseinfo/tdminfolist/clval" class="input_default" navindex="22" maxbyte="10" style="left:264px; top:409px; width:66px; height:19px; "/>
- <select1 id="cmb_peakblodconcenref" ref="/root/main/baseinfo/tdminfolist/peakblodconcenref" class="combo_default" navindex="17" appearance="minimal" editmode="inputsearch" style="left:305px; top:361px; width:225px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/tdminfo/tdminfolist3">
- <label ref="peak"/>
- <value ref="peak"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption38" style="left:265px; top:361px; width:30px; height:20px; vertical-align:middle; ">(Ref)</caption>
- <textarea id="tar_prestregmcnts" ref="/root/main/baseinfo/tdminfolist/prestregmcnts" navindex="27" maxbyte="200" style="left:757px; top:333px; width:435px; height:40px; "/>
- <caption id="caption27" class="cell_1" style="left:105px; top:334px; width:75px; height:23px; vertical-align:middle; ">Trough</caption>
- <caption id="caption16" class="search_name" style="left:288px; top:57px; width:115px; height:17px; ">채혈일시 :</caption>
- <line id="line3" class="line_2" style="x1:9px; y1:54px; x2:559px; y2:54px; "/>
- <caption id="caption7" class="cell_1" style="left:8px; top:179px; width:92px; height:23px; vertical-align:middle; ">5) 상병명</caption>
- <input id="ipt_pid" ref="/root/main/baseinfo/patinfolist/pid" class="input_s_essential" navindex="1" maxbyte="10" style="left:108px; top:34px; width:150px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //btn_sea.dispatch("DOMActivate"); //2010-01-18 등록번호를 Clear하는 현상이 있음
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- //2010-01-18 등록번호별 조회 (등록번호입력후 Enter시 입력된 등록번호의 데이타 가져오기)
- if(event.keyCode == "13") {
- model.setValue("/root/main/baseinfo/patinfolist/pid" , ipt_pid.currentText);
- model.setValue("/root/send/pid" , ipt_pid.currentText);
- model.setValue("/root/send/formcd" , "0000000769"); //TDM formcd
- grd_patreqlist.visible = false;
- btn_patreqlist.dispatch("onclick");
- }
- ]]>
- </script>
- </input>
- <line id="line19" class="line_2" style="x1:595px; y1:257px; x2:1190px; y2:257px; "/>
- <textarea id="tar_recmregmcnts" ref="/root/main/baseinfo/tdminfolist/recmregmcnts" navindex="28" maxbyte="200" style="left:757px; top:378px; width:435px; height:40px; "/>
- <input id="ipt_vdval" ref="/root/main/baseinfo/tdminfolist/vdval" class="input_default" navindex="19" maxbyte="10" style="left:464px; top:384px; width:66px; height:19px; "/>
- <caption id="caption39" class="cell_1" style="left:185px; top:383px; width:75px; height:23px; vertical-align:middle; ">T1/2</caption>
- <caption id="caption28" class="cell_1" style="left:105px; top:359px; width:75px; height:23px; vertical-align:middle; ">Peak</caption>
- <input id="input3" ref="/root/main/baseinfo/baseinfolist/ht" class="input_default" navindex="2" maxbyte="10" style="left:105px; top:155px; width:75px; height:19px; "/>
- <caption id="caption17" class="search_name" style="left:288px; top:37px; width:86px; height:17px; ">성명 :</caption>
- <line id="line4" class="line_2" style="x1:9px; y1:74px; x2:559px; y2:74px; "/>
- <caption id="caption8" class="cell_1" style="left:8px; top:234px; width:92px; height:23px; vertical-align:middle; ">6) 의뢰약물</caption>
- <caption id="caption29" class="cell_1" style="left:8px; top:384px; width:172px; height:72px; vertical-align:middle; ">12) PK Parameters</caption>
- <textarea id="tar_cmt" ref="/root/main/baseinfo/tdminfolist/cmt" navindex="29" maxlength="65" maxbyte="66" style="left:757px; top:423px; width:435px; height:30px; ">
- <script type="javascript" ev:event="onmaxlength">
- <![CDATA[
- if(messageBox("입력가능범위를","E003")=="1"){
- model.setFocus("tar_recmcnts");
- }
- ]]>
- </script>
- </textarea>
- <input id="ipt_vmaxval" ref="/root/main/baseinfo/tdminfolist/vmaxval" class="input_default" navindex="21" maxbyte="10" style="left:464px; top:434px; width:66px; height:19px; "/>
- <input id="input4" ref="/root/main/baseinfo/baseinfolist/scrval" class="input_default" navindex="4" maxbyte="10" style="left:440px; top:155px; width:75px; height:19px; "/>
- <caption id="caption18" class="tit_2" style="left:574px; top:9px; width:95px; height:13px; ">상병정보</caption>
- <output id="output1" ref="/root/main/baseinfo/patinfolist/wardcd" class="output_search" style="left:108px; top:74px; width:82px; height:19px; "/>
- <line id="line5" class="line_2" style="x1:9px; y1:94px; x2:559px; y2:94px; "/>
- <caption id="caption9" class="cell_1" style="left:8px; top:259px; width:92px; height:23px; vertical-align:middle; ">8) 의뢰이유</caption>
- <textarea id="tar_recmcnts" ref="/root/main/baseinfo/tdminfolist/recmcnts" navindex="30" maxlength="860" maxbyte="860" style="left:185px; top:485px; width:1007px; height:225px; ">
- <script type="javascript" ev:event="onmaxlength">
- <![CDATA[
- if(messageBox("입력가능범위를","E003")=="1"){
- model.setFocus("tar_recmcnts");
- }
- ]]>
- </script>
- </textarea>
- <input id="input5" ref="/root/main/baseinfo/baseinfolist/ccrval" class="input_default" navindex="5" maxbyte="10" style="left:616px; top:155px; width:75px; height:19px; "/>
- <output id="output2" ref="/root/main/baseinfo/patinfolist/orddd" class="output_search" format="yyyy-mm-dd" style="left:108px; top:54px; width:150px; height:19px; "/>
- <line id="line6" class="line_3" style="x1:9px; y1:125px; x2:562px; y2:125px; "/>
- <input id="input6" ref="/root/main/baseinfo/baseinfolist/sikcnm" class="input_default" navindex="7" maxbyte="100" style="left:105px; top:181px; width:764px; height:19px; "/>
- <datagrid id="datagrid1" nodeset="/root/main/baseinfo/diaginfolist" scroll="vertical" autoresize="true" backcoloralternate="#f0f0f0" caption="상병코드^순서^분류^R/O^KA DR^who^상병명" colsep="^" colwidth="81, 36, 40, 36, 54, 62, 275" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:569px; top:29px; width:623px; height:95px; ">
- <col ref="diagcd"/>
- <col ref="diagno"/>
- <col ref="bun"/>
- <col ref="ro"/>
- <col ref="kadr"/>
- <col ref="who"/>
- <col ref="diagengnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- model.setValue("/root/main/baseinfo/baseinfolist/sikcnm", model.getValue("/root/main/baseinfo/diaginfolist[" + datagrid1.row + "]/diagengnm"));
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <output id="output3" ref="/root/main/baseinfo/patinfolist/cnstdeptnm" class="output_search" style="left:108px; top:94px; width:150px; height:19px; "/>
- <line id="line7" class="line_2" style="x1:9px; y1:114px; x2:559px; y2:114px; "/>
- <input id="ipt_rgstseqno" ref="/root/main/baseinfo/tdminfolist/rgstseqno" class="input_default" visibility="hidden" style="left:460px; top:409px; width:45px; height:19px; "/>
- <input id="ipt_statflag" ref="/root/main/baseinfo/tdminfolist/statflag" class="input_default" visibility="hidden" style="left:510px; top:410px; width:30px; height:19px; "/>
- <select1 id="combo1" ref="/root/hidden/formrecseq" class="combo_default" navindex="15" appearance="minimal" style="left:395px; top:3px; width:145px; height:19px; ">
- <choices>
- <itemset nodeset="/root/combo/reqlist/reqlist">
- <label ref="reqdd"/>
- <value ref="formrecseq"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //model.setValue("/root/send/pid", model.getValue("/root/main/baseinfo/patinfolist/pid")); // 2008-10-01 마이그레이션
- //model.setValue("/root/send/reqdd", combo1.label); // 2008-10-01 마이그레이션
- model.setValue("/root/send/formrecseq", combo1.value);
- model.setValue("/root/send/rgstseqno", model.getXPathValue("/root/combo/reqlist/reqlist[formrecseq = '" + combo1.value + "']/rgstseqno"));
- model.setValue("/root/send/cnstseqno", model.getXPathValue("/root/combo/reqlist/reqlist[formrecseq = '" + combo1.value + "']/cnstseqno"));
-
- // model.setValue("/root/send/pid", model.getValue("/root/main/baseinfo/patinfolist/pid"));
- // model.setValue("/root/send/cretno", model.getValue("/root/temp/cnstinfo/cretno"));
- // model.setValue("/root/send/orddd", model.getValue("/root/temp/cnstinfo/orddd"));
- // model.setValue("/root/send/prcpgenrflag", model.getValue("/root/temp/cnstinfo/prcpgenrflag"));
- // model.setValue("/root/send/rgstseqno", model.getValue("/root/temp/cnstinfo/rgstseqno"));
- // model.setValue("/root/send/reqdd", model.getValue("/root/temp/cnstinfo/cnstdd")); //2008-10-01 마이그레이션 환자정보조회
- submit("TRADC00901");
- fCnstResn();
- //회신상태
- if(model.getValue("/root/main/baseinfo/tdminfolist/statflag") == "Z" ) {
- btn_save.disabled = true;
- btn_repl.disabled = true;
- btn_del.disabled = true;
- btn_replno.disabled = true; //2010-01-21 [미회신]버튼 비활성화
- btn_careplan.disabled= false; //2010-02-19 CarePlan 전송버튼 추가 - 회신상태일경우만 활성화
- }
- //저장상태
- else {
- btn_save.disabled = false;
- btn_repl.disabled = false;
- btn_del.disabled = false;
- btn_replno.disabled = false; //2010-01-21 [미회신]버튼 활성화
- btn_careplan.disabled= true; //2010-02-19 CarePlan 전송버튼 추가 - 회신상태일경우만 활성화
- }
- ]]>
- </script>
- </select1>
- <caption id="caption52" class="tit_2" style="left:17px; top:465px; width:95px; height:13px; vertical-align:middle; ">회신내용(II)</caption>
- <button id="btn_patreqlist" class="icon_startend" visibility="visible" style="left:546px; top:4px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- if (grd_patreqlist.visible == true ) {
- grd_patreqlist.visible = false;
- }else {
- model.resetInstanceNode("/root/main/patreqlistinfo/reqlist");
- model.resetInstanceNode("/root/send");
- model.setValue("/root/send/pid" , model.getValue("/root/main/baseinfo/patinfolist/pid"));
- model.setValue("/root/send/formcd" , "0000000769") //TDM formcd
-
- submit("TRADC00103");
- if (getNodesetCount("/root/main/patreqlistinfo/reqlist") == "0" ) {
- messageBox("[ " + model.getValue("/root/send/pid") + " ] 의뢰내역이 없습니다. 등록번호를 ","I007");
- btn_save.disabled = true;
- btn_repl.disabled = true;
- btn_del.disabled = true;
- btn_replno.disabled = true; //2010-01-21 [미회신]버튼 비활성화
- btn_careplan.disabled= true; //2010-02-19 CarePlan 전송버튼 추가
- submit("TRADC00901"); //화면 Clear하기 위함
- return;
- }
- //데이타가 Clear되는 현상이 있어 첫번째 것으로 조회시킴
- // model.setValue("/root/send/pid" , model.getValue("root/main/patreqlistinfo/reqlist[1]/pid")); //등록번호
- // model.setValue("/root/send/formrecseq" , model.getValue("root/main/patreqlistinfo/reqlist[1]/formrecseq")); //formrecseq -저장시 Send/formrecseq가져간다.
- // model.setValue("/root/send/cnstseqno" , model.getValue("root/main/patreqlistinfo/reqlist[1]/cnstseqno")); //의뢰순번
- // model.setValue("/root/send/rgstseqno" , model.getValue("root/main/patreqlistinfo/reqlist[1]/rgstseqno")); //저장순번
- // model.setValue("/root/send/testcd" , model.getValue("root/main/patreqlistinfo/reqlist[1]/drugcd")); //의뢰약물
- // model.setValue("/root/send/cretno" , model.getValue("root/main/patreqlistinfo/reqlist[1]/cretno")); //cretno
- // model.setValue("/root/send/orddd" , model.getValue("root/main/patreqlistinfo/reqlist[1]/orddd")); //진료/입원일자
- // model.setValue("/root/send/prcpgenrflag" , model.getValue("root/main/patreqlistinfo/reqlist[1]/prcpgenrflag")); //입원/외래구분
- // model.setValue("/root/send/reqdd" , model.getValue("root/main/patreqlistinfo/reqlist[1]/reqdd")); //의뢰일자
- // model.setValue("/root/send/formcd" , "0000000769"); //Formcd
- // submit("TRADC00901");
- grd_patreqlist.visible = true;
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_patreqlist" nodeset="/root/main/patreqlistinfo/reqlist" visibility="hidden" scroll="auto" allowselection="true" allowuserresize="true" autoresize="false" backcoloralternate="#f0f0f0" caption="cnstseqno^상태^의뢰일자^회신일자^회신약사^의뢰약물^환자번호^성명^cretno^orddeptcd^prcpgenrflag^formcd^병실^A/S^rrgstno^환자상태^주상병^내원/입원일^재원일수^결과^의뢰과^의뢰자^의뢰사유^전달사항^채혈일시^임병접수일시^의뢰번호(formrecseq)^reqdeptcd^requserid^cnstcnts1^prcpno^prcpcd^drugcd^rgstseqno" colsep="^" colwidth="100, 60, 71, 71, 78, 115, 86, 61, 100, 100, 100, 95, 59, 53, 100, 58, 144, 86, 57, 82, 103, 58, 100, 119, 116, 121, 135, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="byrow" tooltip="true" style="left:470px; top:25px; width:725px; height:185px; ">
- <col ref="cnstseqno" visibility="hidden"/>
- <col ref="stat" style="text-align:center; "/>
- <col ref="reqdd" format="yyyy-mm-dd"/>
- <col ref="repldd" format="yyyy-mm-dd"/>
- <col ref="replpharmst" style="text-align:center; "/>
- <col ref="reqdrug" style="text-align:left; "/>
- <col ref="pid" visibility="hidden" style="left:180px; top:23px; width:86px; height:23px; "/>
- <col ref="hngnm" visibility="hidden" style="left:366px; top:23px; width:61px; height:23px; "/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="prcpgenrflag" visibility="hidden"/>
- <col ref="formcd" visibility="hidden"/>
- <col ref="wardnm" visibility="hidden"/>
- <col ref="agesex" visibility="hidden"/>
- <col ref="rrgstno" visibility="hidden"/>
- <col ref="patstat" visibility="hidden"/>
- <col ref="diagcd"/>
- <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="inhospday"/>
- <col ref="result" visibility="hidden"/>
- <col ref="reqdeptnm"/>
- <col ref="requsernm"/>
- <col ref="reqresn" visibility="hidden"/>
- <col ref="reqcomment"/>
- <col ref="bcolldt" visibility="hidden" format="yyyy-mm-dd hh:mm:ss" style="text-align:center; "/>
- <col ref="spcacptdt" visibility="hidden" format="yyyy-mm-dd hh:mm:ss" style="text-align:center; "/>
- <col ref="formrecseq"/>
- <col ref="reqdeptcd" visibility="hidden"/>
- <col ref="requserid" visibility="hidden"/>
- <col ref="cnstcnts1" visibility="hidden"/>
- <col ref="prcpno" visibility="hidden"/>
- <col ref="prcpcd" visibility="hidden"/>
- <col ref="drugcd" visibility="hidden"/>
- <col ref="rgstseqno" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
-
- model.setValue("/root/send/pid" , model.getValue("root/main/patreqlistinfo/reqlist[" + grd_patreqlist.row + "]/pid")); //등록번호
- model.setValue("/root/send/formrecseq" , model.getValue("root/main/patreqlistinfo/reqlist[" + grd_patreqlist.row + "]/formrecseq")); //formrecseq -저장시 Send/formrecseq가져간다.
- model.setValue("/root/send/cnstseqno" , model.getValue("root/main/patreqlistinfo/reqlist[" + grd_patreqlist.row + "]/cnstseqno")); //의뢰순번
- model.setValue("/root/send/rgstseqno" , model.getValue("root/main/patreqlistinfo/reqlist[" + grd_patreqlist.row + "]/rgstseqno")); //저장순번
- model.setValue("/root/send/testcd" , model.getValue("root/main/patreqlistinfo/reqlist[" + grd_patreqlist.row + "]/drugcd")); //의뢰약물
- model.setValue("/root/send/cretno" , model.getValue("root/main/patreqlistinfo/reqlist[" + grd_patreqlist.row + "]/cretno")); //cretno
- model.setValue("/root/send/orddd" , model.getValue("root/main/patreqlistinfo/reqlist[" + grd_patreqlist.row + "]/orddd")); //진료/입원일자
- model.setValue("/root/send/prcpgenrflag" , model.getValue("root/main/patreqlistinfo/reqlist[" + grd_patreqlist.row + "]/prcpgenrflag")); //입원/외래구분
- model.setValue("/root/send/reqdd" , model.getValue("root/main/patreqlistinfo/reqlist[" + grd_patreqlist.row + "]/reqdd")); //의뢰일자
- model.setValue("/root/send/formcd" , "0000000769"); //Formcd
-
- submit("TRADC00901"); //
- fCnstResn();
- //회신상태
- if(model.getValue("/root/main/baseinfo/tdminfolist/statflag") == "Z" ) {
- btn_save.disabled = true;
- btn_repl.disabled = true;
- btn_del.disabled = true;
- btn_replno.disabled = true; //2010-01-21 [미회신]버튼 비활성화
- btn_careplan.disabled= false; //2010-02-19 CarePlan 전송버튼 추가 - 회신상태일경우만 활성화
- }
- //저장상태
- else {
- btn_save.disabled = false;
- btn_repl.disabled = false;
- btn_del.disabled = false;
- btn_replno.disabled = false; //2010-01-21 [미회신]버튼 활성화
- btn_careplan.disabled= true; //2010-02-19 CarePlan 전송버튼 추가 - 회신상태일경우만 활성화
- }
- if(model.getValue("/root/temp/cnstinfo/pidchkflag") == "Y") {
- // 20100119_laboru_약사 이외의 사용자인 경우
- btn_save.disabled = true;
- btn_repl.disabled = true;
- btn_del.disabled = true;
- btn_replno.disabled = true; //2010-01-21 [미회신=회신제외]버튼 비활성화
- btn_careplan.disabled= true; //2010-02-19 CarePlan 전송버튼 추가
- }
- btn_cnst.dispatch("DOMActivate");
- grd_patreqlist.visible = false;
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- // 소트 후 인스턴스 정리
- grd_patreqlist.gridToInstance(); // Sort 된 Grid 상의 Data 순서와 Instance Node 상의 Data 순서를 동일하게 맞춰준다.
- ]]>
- </script>
- </datagrid>
- <group id="group2" visibility="hidden" style="left:589px; top:0px; width:506px; height:500px; background-color:#dddddd; border-color:#800080; border-style:dotted; ">
- <line id="line26" class="line_1" style="x1:3px; y1:25px; x2:503px; y2:25px; "/>
- <textarea id="textarea2" ref="/root/hidden/replinfo/replcnts" overflow="scroll" scroll="auto" editable="false" style="left:2px; top:30px; width:500px; height:435px; "/>
- <caption id="caption55" class="tit_2" style="left:10px; top:5px; width:170px; height:13px; vertical-align:middle; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">회신내역 미리보기</caption>
- <button id="button3" class="btn4_letter2" style="left:443px; top:468px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group2.attribute("visibility") ="hidden";
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_careplan" class="btn4_letter7" navindex="32" visibility="hidden" style="left:185px; top:458px; width:116px; height:22px; ">
- <caption>CarePlan 전송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/main/baseinfo/patinfolist/pid") != ""){
- if(submit("TRADC62202")){
- var cnststat = model.getValue("/root/hidden/cnststatinfo/cnststat");
- if(cnststat == "04"){
- messageBox("[취소]상태는 [CarePlan 전송]할 수","I004");
- return ;
- }else if (cnststat <= "21"){
- messageBox("[회신]이전 더이상 [CarePlan 전송]하실 수","I004");
- return;
- }
- }
- //CarePlan 전송여부 확인.
- var CarePlanSendYN =model.getValue("root/main/baseinfo/tdminfolist/replyn");
- if (CarePlanSendYN == "Y") {
- var sel = messageBox("이미 [ CarePlan 전송 ] 완료하였습니다. \n\n작업을 계속진행 ","S001");
- if (sel != 6) return;
- }else{
- var sel = messageBox("[ CarePlan 전송 ]","S001");
- if (sel != 6) return;
- }
- sendENRCAREPLANData(); //Care Plan 관련 ENR 데이터 전송
-
- }else {
- messageBox("등록번호는 필수입력","I009");
- return false;
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|