123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653 |
- <?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>가정간호간호정보조사</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <wardrecinfo>
- <bfrecddtm/>
- <bfrecdd/>
- <bfrecuser/>
- <bfrectm/>
- <recdd/>
- <rectm/>
- <recuser/>
- <infooffer/>
- <patinfo/>
- <infooffer/>
- <signno/>
- <room/>
- <patnm/>
- <sex/>
- <age/>
- <pid/>
- </wardrecinfo>
- </main>
- <send>
- <req/>
- <patgnrlinfo/>
- <wardrecinfo/>
- <bodyases/>
- </send>
- <init>
- <mlist>
- <M0068>
- <cdid/>
- <cdnm/>
- </M0068>
- <M0069>
- <cdid/>
- <cdnm/>
- </M0069>
- <M0070>
- <cdid/>
- <cdnm/>
- </M0070>
- <M0071>
- <cdid/>
- <cdnm/>
- </M0071>
- <M0072>
- <cdid/>
- <cdnm/>
- </M0072>
- <M0073>
- <cdid/>
- <cdnm/>
- </M0073>
- <M0074>
- <cdid/>
- <cdnm/>
- </M0074>
- </mlist>
- </init>
- <hidden>
- <paminfo/>
- <histinfo/>
- <wardrecinfo/>
- <bodyases>
- <mfmdstatinfo/>
- <shpaininfo/>
- <resorgninfo/>
- <digorgninfo/>
- <nvesysinfo/>
- <skinsectinfo/>
- </bodyases>
- </hidden>
- <temp>
- <cond>
- <list>
- <roomcd/>
- <hngnm/>
- <sex/>
- <age/>
- <pid/>
- <indd/>
- <instcd/>
- <orddeptcd/>
- <reqdd/>
- </list>
- </cond>
- </temp>
- <signinfo>
- <signno/>
- </signinfo>
- <codeinfo/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fGetCmbList();
- fInit();
- fGetInitRecInfo();
- fInitEvent();
- model.refresh();
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- var allgInsYN = "Y";
-
- function fGetCmbList() {
- model.removeNodeset("/root/init/mlist");
- model.makeNode("/root/init/mlist");
- fGetNursHardCdInfo("'077','172','177','W25'", getCurrentDate()); //CareCom.js
- zbcfGetCodeList( new Array ( "M0068" //직업
- ,"M0069" //교육정도
- ,"M0070" //종교
- ,"M0071" //결혼상태
- ,"M0151" //결혼상태
- ,"M0072" //관계
- ,"M0073" //부위
- ,"M0376" //혈액형
- ,"M0075" //의식상태
- ,"M0088" //생존여부
- ,"M0090" //알러지
- ,"M0098" //알러지
- ,"M0100" //지남력
- ,"M0102" //요흔
- ,"M0103" //부착기구
- ,"M0104" //소변색깔
- ,"M0105" //소변증상
- ,"M0106" //대변색깔
- ,"M0107" //대변종류
- ,"M0109" //동공빛반사여부
- ,"M0110" //동공수치
- ,"M0411" //영적요구
- ,"M0375" //체온부위
- ,"M0368" //가족병력내역
- ,"P0008" //보험유형
- ,"M0532" //과거병력내역_20090406_SMY추가
- )
- , new Array ( "/root/init/mlist" //직업
- ,"/root/init/mlist" //교육정도
- ,"/root/init/mlist" //종교
- ,"/root/init/mlist" //결혼상태
- ,"/root/init/mlist" //결혼상태
- ,"/root/init/mlist" //관계
- ,"/root/init/mlist" //부위
- ,"/root/init/mlist" //혈액형
- ,"/root/init/mlist" //의식상태
- ,"/root/init/mlist" //생존여부
- ,"/root/init/mlist" //알러지
- ,"/root/init/mlist" //동반자
- ,"/root/init/mlist" //지남력
- ,"/root/init/mlist" //요흔
- ,"/root/init/mlist" //부착기구
- ,"/root/init/mlist" //소변색깔
- ,"/root/init/mlist" //소변증상
- ,"/root/init/mlist" //대변색깔
- ,"/root/init/mlist" //대변종류
- ,"/root/init/mlist" //동공빛반사여부
- ,"/root/init/mlist" //동공수치
- ,"/root/init/mlist" //영적요구
- ,"/root/init/mlist" //체온부위
- ,"/root/init/mlist" //가족병력내역
- ,"/root/init/mlist" //보험유형
- ,"/root/init/mlist" //과거병력내역
- )
- );
-
- model.refresh();
- }
-
- function fInitEvent() {
- fInitEventBdAses();
- fInitEventHomeCareInfo();
- }
-
- //화면 로딩시
- function fInit(){
- model.removeNodeset("/root/main/wardrecinfo/dschmediinfo/dschmedi/dschdrugfactinfo");
- model.makeNode("/root/temp/cond");
-
- model.copyNode("/root/hidden/wardrecinfo", "/root/main/wardrecinfo");
- model.copyNode("/root/hidden/histinfo", "/root/main/histinfo");
- model.makeValue("/root/hidden/histinfo/pasthistinfo/pasthist/pasthistinclyn", "1");
- model.makeValue("/root/hidden/histinfo/famyhistinfo/famyhist/famyhistinclyn", "1");
- model.makeValue("/root/hidden/histinfo/inhistinfo/inhist/inhistinclyn", "1");
- model.makeValue("/root/hidden/histinfo/ophistinfo/ophist/ophistinclyn", "1");
- model.makeValue("/root/hidden/wardrecinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn", "1");
- model.makeValue("/root/hidden/histinfo/allghistinfo/allghist/allghistinclyn", "1");
- model.makeValue("/root/hidden/histinfo/vacnhistinfo/vacnhist/vacnhistinfoinclyn", "1");
- model.makeValue("/root/hidden/histinfo/smokinfo/smok/smokinclyn", "1");
- model.makeValue("/root/hidden/histinfo/drunkinfo/drunk/drunkinclyn", "1");
- model.makeValue("/root/hidden/histinfo/gustofoodinfo/gustofood/gustofoodinclyn", "1");
- model.makeValue("/root/hidden/histinfo/tnsseffcinfo/tnsseffc/tnsseffcinclyn", "1");
-
- model.copyNode("/root/hidden/bodyases/shpaininfo", "/root/main/wardrecinfo/shpaininfo");
- model.makeValue("/root/hidden/bodyases/shpaininfo/shpain/shpaininfoinclyn", "1");
- model.copyNode("/root/hidden/bodyases/nvesysinfo", "/root/main/wardrecinfo/nvesysinfo");
- model.makeValue("/root/hidden/bodyases/nvesysinfo/nvesys/nvesysinfoinclyn", "1");
-
- //각 화면 상단에 선택된 환자 정보 display 필요함. (병실-성명-S/A-등록번호)
- var pid;
- var room;
- var patnm;
- var sex;
- var age;
- var instcd;
- var orddeptcd;
- var indd;
- var cretno;
-
- //가정간호 화면에서 파라미터 넘겨줌(의뢰일 별로 1장씩 작성함 : indd인스턴스에 의뢰일자를 넘겨줌)
- room = model.getValue("/root/temp/cond/list/roomcd");
- patnm = model.getValue("/root/temp/cond/list/hngnm");
- sex = model.getValue("/root/temp/cond/list/sex");
- age = model.getValue("/root/temp/cond/list/age");
- pid = model.getValue("/root/temp/cond/list/pid");
- indd = model.getValue("/root/temp/cond/list/indd");
- instcd = model.getValue("/root/temp/cond/list/instcd");
- orddeptcd = model.getValue("/root/temp/cond/list/orddeptcd");
-
- cretno = model.getValue("/root/temp/cond/list/cretno");
- ioflag = model.getValue("/root/temp/cond/list/ioflag");
-
- model.makeValue("/root/main/wardrecinfo/room", room);
- model.makeValue("/root/main/wardrecinfo/patnm", patnm);
- model.makeValue("/root/main/wardrecinfo/sex", sex);
- model.makeValue("/root/main/wardrecinfo/age", age);
- model.makeValue("/root/main/wardrecinfo/pid", pid);
-
- var scrnid =getScreenID();
- var param = "pid▦orddd▦cretno▦ordtype▦scrnid"
- +"▩" + pid+"▦" +indd+"▦"+cretno+"▦"+ioflag+"▦"+scrnid+"▩";
- fEnrCareComRecInfo_SPMNZ002(param, "/root/main/enrcarecomrecinfo"); //타 간호정보조사지기록 유무확인 model.refresh();
- model.refresh();
-
- }
-
- function fGetInitRecInfo() {
- var pid = model.getValue("/root/temp/cond/list/pid");
- var indd = model.getValue("/root/temp/cond/list/indd");
- var instcd = model.getValue("/root/temp/cond/list/instcd");
- var orddeptcd = model.getValue("/root/temp/cond/list/orddeptcd");
- // var cretno = '1';//가정간호는 default로 1을 넘긴다
- var cretno = model.getValue("/root/temp/cond/list/cretno"); // 컨설트의 cretno가 파라메터로 넘어가도록 셋팅(2010.02.22 hhm)
-
-
- //var instUseYN = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='172']/cdid");//교육요구도 추가 20091216 김홍점
- var instUseYN ="";//20100510 외래 공통 교육요구도 개발에 의한 SPMRJ00300_교육요구도사정 사용안함.소경화itc요청
-
- //웹용 인자값 셋팅
- model.makeValue("/root/send/req/pid", pid);
- model.makeValue("/root/send/req/indd", indd);
- model.makeValue("/root/send/req/cretno", cretno); // 추가 (2010.02.22 hhm)
- model.makeValue("/root/send/req/instcd", instcd);
- model.makeValue("/root/send/req/recflag", "09");
- model.makeValue("/root/send/req/docucode", "0000002493");
- model.makeValue("/root/send/req/deptcd", orddeptcd);
- if(pid == "") {
- messageBox("환자를 선택하지 ", "E007");
- window.close();
-
- } else {
- if(instUseYN == "Y"){
- btn_edurec.visible = true;
- grp_patinfo.attribute("style")="left:310px; top:50px; width:640px; height:20px;" ;
-
- setParameter("SPMRJ00300_pid", pid);
- setParameter("SPMRJ00300_orddd", indd);
- setParameter("SPMRJ00300_cretno", cretno);
- ivw_edurec.src = "../../../emr/jcimngtweb/xrw/SPMRJ00300_교육요구도사정.xrw";
- ivw_edurec.group2.visible = false;
-
- }else{
- grp_patinfo.attribute("style")="left:210px; top:50px; width:640px; height:20px;" ;
- btn_edurec.visible = false;
- }
-
- submit("TRMNF00301", "false");//저장후 삭제(K), 신규(I), 수정(U)
-
- var exeflag = model.getValue("/root/hidden/paminfo/paminfo/exeflag");
-
- if(exeflag == 'U') {
- submit("TRMNF00302", "false");
-
- //인증번호set_20090722_SMY
- model.setValue("/root/signinfo/signno", model.getValue("/root/main/wardrecinfo/signno"));
-
- var existfamyinfo = model.getValue("/root/main/wardrecinfo/existfamyinfo");
- setParameter("SPMMR04711_shape", fGetXmlToStr("/root/main/wardrecinfo/genogrmnm/XMD"));
-
- //마지막 기록일시 셋팅
- model.setValue("/root/main/wardrecinfo/bfrecddtm", model.getValue("/root/hidden/paminfo/recinfo[recflag = '09' and indd = '" + indd + "']/recpkspec"));
- model.setValue("/root/main/wardrecinfo/bfrecuser", model.getValue("/root/hidden/paminfo/recinfo[recflag = '09' and indd = '" + indd + "']/bfrecuser"));
-
- } else {
- //이전 기록이 있을 경우 가장 최근의 정보 자동 셋팅
- if(model.getValue("/root/hidden/paminfo/recinfo/recpkspec") != ""){
- model.setValue("/root/main/wardrecinfo/bfrecddtm", model.getValue("/root/hidden/paminfo/recinfo/recpkspec"));
- fChgRecHistInfo();
-
- }else{
- submit("TRMNF00304", "false");
-
- var exist = model.getValue("/root/hidden/cominfo/histinfo/existyn");
-
- var existfamyinfo = model.getValue("/root/hidden/cominfo/famyinfo/existfamyinfo");
- setParameter("SPMMR04711_shape", fGetXmlToStr("/root/hidden/cominfo/famyinfo/genogrmnm/XMD"));
-
- //가족사항 연동부분
- model.removeNodeset("/root/main/famyfact");
- if(getNodesetCount("/root/hidden/cominfo/famyfact") > 0){
- for(var i=1; i <= getNodesetCount("/root/hidden/cominfo/famyfact"); i++) {
- if(model.getValue("/root/hidden/cominfo/famyfact["+ i +"]/rela") != ""){
- model.duplicate("/root/main", "/root/hidden/cominfo/famyfact["+ i +"]");
- }
-
- }
- }
-
- if(exist == "N") {
- model.copyNode("/root/main/histinfo", "/root/hidden/histinfo");
- model.setValue("/root/main/histinfo/pasthistinfo/pasthist/pasthistinclyn", "");
- model.setValue("/root/main/histinfo/famyhistinfo/famyhist/famyhistinclyn", "");
- model.setValue("/root/main/histinfo/inhistinfo/inhist/inhistinclyn", "");
- model.setValue("/root/main/histinfo/ophistinfo/ophist/ophistinclyn", "");
- model.setValue("/root/main/wardrecinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn", "");
- model.setValue("/root/main/histinfo/allghistinfo/allghist/allghistinclyn", "");
- model.setValue("/root/main/histinfo/vacnhistinfo/vacnhist/vacnhistinfoinclyn", "");
- model.setValue("/root/main/histinfo/smokinfo/smok/smokinclyn", "");
- model.setValue("/root/main/histinfo/drunkinfo/drunk/drunkinclyn", "");
- model.setValue("/root/main/histinfo/gustofoodinfo/gustofood/gustofoodinclyn", "");
- model.setValue("/root/main/histinfo/tnsseffcinfo/tnsseffc/tnsseffcinclyn", "");
- } else {
- model.copyNode("/root/main/histinfo", "/root/hidden/cominfo/histinfo");
- }
-
- model.setValue("/root/main/wardrecinfo/religncd", model.getValue("/root/hidden/paminfo/paminfo/religncd"));
- model.setValue("/root/main/wardrecinfo/baptnm", model.getValue("/root/hidden/paminfo/paminfo/baptnm"));
- model.setValue("/root/main/wardrecinfo/tel", model.getValue("/root/temp/cond/list/tel"));
- model.setValue("/root/main/wardrecinfo/mphone", model.getValue("/root/temp/cond/list/mphone"));
- model.setValue("/root/main/wardrecinfo/etcphone1", model.getValue("/root/temp/cond/list/etcphone1"));
- model.setValue("/root/main/wardrecinfo/etcphone2", model.getValue("/root/temp/cond/list/etcphone2"));
- //model.setValue("/root/main/wardrecinfo/diagnm", model.getValue("/root/temp/cond/list/diagnm"));
- //model.setValue("/root/main/wardrecinfo/atdoctcd", model.getValue("/root/temp/cond/list/orddrnm"));
- //model.setValue("/root/main/wardrecinfo/reqdd", model.getValue("/root/temp/cond/list/reqdd"));
-
- //기록일시 정보를 쿼리에서 가져옴
- model.setValue("/root/main/wardrecinfo/recdd", model.getValue("/root/hidden/paminfo/paminfo/recdd"));
- model.setValue("/root/main/wardrecinfo/rectm", model.getValue("/root/hidden/paminfo/paminfo/rectm"));
- model.setValue("/root/main/wardrecinfo/recuser", model.getValue("/root/hidden/paminfo/paminfo/recuser"));
- }
- }
-
- //XML 타입에 노드가 추가됨에 따라 존재하지 않는 노드들 추가 김홍점
- var bdwtchngtermflag= instance1.selectSingleNode("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/bdwtchngtermflag");
-
- if ( bdwtchngtermflag == null ) {
-
- model.makeValue("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/bdwtchngtermflag","");
- }
-
- var constipt= instance1.selectSingleNode("/root/main/wardrecinfo/stoolinfo/stool/stoolconstipation");
-
- if ( constipt == null ) {
-
- model.makeValue("/root/main/wardrecinfo/stoolinfo/stool/stoolconstipation","");
- }
-
- var endmensage= instance1.selectSingleNode("/root/main/wardrecinfo/femaleinfo/female/female/endmensage");
-
- if ( endmensage == null ) {
-
- model.makeValue("/root/main/wardrecinfo/femaleinfo/female/female/endmensage","");
- }
-
- //가계도 연동부분.
- if(existfamyinfo == "Y") {
- model.setValue("/root/main/wardrecinfo/famytree/existyn", "Y");
- opt_existyn.refresh();
- }
-
- }
- status = "select";
-
- if(grd_allghist.rows > 1) {
- for(var i = 0; i < grd_allghist.cols; i++) {
- if(grd_allghist.valueMatrix(1, i) != "") {
- allgInsYN = "N";
- }
- }
- }
-
-
- model.refresh();
- }
-
- function fGetXmlToStr(xPath) {
-
- var str = instance1.selectNodesXml(xPath);
-
- return str;
- }
-
- function fChkInclYN() {
-
- //신체사정XML
- var shpaininfoyn = model.getValue("/root/main/wardrecinfo/shpaininfo/shpain/shpaininfoinclyn");
- var nvesysinfoyn = model.getValue("/root/main/wardrecinfo/nvesysinfo/nvesys/nvesysinfoinclyn");
- //병력 XML
- var pasthistyn = model.getValue("/root/main/histinfo/pasthistinfo/pasthist/pasthistinclyn");
- var famyhistyn = model.getValue("/root/main/histinfo/famyhistinfo/famyhist/famyhistinclyn");
- var inhistyn = model.getValue("/root/main/histinfo/inhistinfo/inhist/inhistinclyn");
- var ophistyn = model.getValue("/root/main/histinfo/ophistinfo/ophist/ophistinclyn");
- var rectmedistatyn = model.getValue("/root/main/wardrecinfo/rectmedistatinfo/rectmedistat/rectmedistatinfoinclyn");
- var allhistinclyn = model.getValue("/root/main/histinfo/allghistinfo/allghist/allghistinclyn");
-
- //신체사정
- if(shpaininfoyn == "1") {//통증 : 무(default)/유 선택20100122 김홍점
- model.makeValue("/root/send/wardrecinfo/shpaininfo", fGetXmlToStr("/root/hidden/bodyases/shpaininfo/shpain"));
- }else {
- model.makeValue("/root/send/wardrecinfo/shpaininfo", fGetXmlToStr("/root/main/wardrecinfo/shpaininfo/shpain"));
- }
-
- //신경계
- if(nvesysinfoyn == "1") {
- model.makeValue("/root/send/wardrecinfo/nvesysinfo", fGetXmlToStr("/root/hidden/bodyases/nvesysinfo/nvesys"));
- } else {
- model.makeValue("/root/send/wardrecinfo/nvesysinfo", fGetXmlToStr("/root/main/wardrecinfo/nvesysinfo/nvesys"));
- }
-
- //병력
- if(pasthistyn == "1") {
- model.makeValue("/root/send/wardrecinfo/pasthistinfo", fGetXmlToStr("/root/hidden/histinfo/pasthistinfo/pasthist"));
- } else {
- model.makeValue("/root/send/wardrecinfo/pasthistinfo", fGetXmlToStr("/root/main/histinfo/pasthistinfo/pasthist"));
- }
- if(famyhistyn == "1") {
- model.makeValue("/root/send/wardrecinfo/famyhistinfo", fGetXmlToStr("/root/hidden/histinfo/famyhistinfo/famyhist"));
- } else {
- model.makeValue("/root/send/wardrecinfo/famyhistinfo", fGetXmlToStr("/root/main/histinfo/famyhistinfo/famyhist"));
- }
- if(inhistyn == "1") {
- model.makeValue("/root/send/wardrecinfo/inhistinfo", fGetXmlToStr("/root/hidden/histinfo/inhistinfo/inhist"));
- } else {
- model.makeValue("/root/send/wardrecinfo/inhistinfo", fGetXmlToStr("/root/main/histinfo/inhistinfo/inhist"));
- }
- if(ophistyn == "1") {
- model.makeValue("/root/send/wardrecinfo/ophistinfo", fGetXmlToStr("/root/hidden/histinfo/ophistinfo/ophist"));
- } else {
- model.makeValue("/root/send/wardrecinfo/ophistinfo", fGetXmlToStr("/root/main/histinfo/ophistinfo/ophist"));
- }
- if(rectmedistatyn == "1") {
- model.makeValue("/root/send/wardrecinfo/rectmedistatinfo", fGetXmlToStr("/root/hidden/wardrecinfo/rectmedistatinfo/rectmedistat"));
- } else {
- model.makeValue("/root/send/wardrecinfo/rectmedistatinfo", fGetXmlToStr("/root/main/wardrecinfo/rectmedistatinfo/rectmedistat"));
- }
- if(allhistinclyn == "1") {
- model.makeValue("/root/send/wardrecinfo/allghistinfo", fGetXmlToStr("/root/hidden/histinfo/allghistinfo/allghist"));
- } else {
- model.makeValue("/root/send/wardrecinfo/allghistinfo", fGetXmlToStr("/root/main/histinfo/allghistinfo/allghist"));
- }
- //model.makeValue("/root/send/wardrecinfo/vacnhistinfo", fGetXmlToStr("/root/hidden/histinfo/vacnhistinfo/vacnhist"));
- //model.makeValue("/root/send/wardrecinfo/smokinfo", fGetXmlToStr("/root/hidden/histinfo/smokinfo/smok"));
- //model.makeValue("/root/send/wardrecinfo/drunkinfo", fGetXmlToStr("/root/hidden/histinfo/drunkinfo/drunk"));
- //model.makeValue("/root/send/wardrecinfo/gustofoodinfo", fGetXmlToStr("/root/hidden/histinfo/gustofoodinfo/gustofood"));
- //model.makeValue("/root/send/wardrecinfo/tnsseffcinfo", fGetXmlToStr("/root/hidden/histinfo/tnsseffcinfo/tnsseffc"));
- //다른 기록지에서 저장한 이력을 조회하여 저장한다.
- model.makeValue("/root/send/wardrecinfo/vacnhistinfo", fGetXmlToStr("/root/main/histinfo/vacnhistinfo/vacnhist"));
- model.makeValue("/root/send/wardrecinfo/smokinfo", fGetXmlToStr("/root/main/histinfo/smokinfo/smok"));
- model.makeValue("/root/send/wardrecinfo/drunkinfo", fGetXmlToStr("/root/main/histinfo/drunkinfo/drunk"));
- model.makeValue("/root/send/wardrecinfo/gustofoodinfo", fGetXmlToStr("/root/main/histinfo/gustofoodinfo/gustofood"));
- model.makeValue("/root/send/wardrecinfo/tnsseffcinfo", fGetXmlToStr("/root/main/histinfo/tnsseffcinfo/tnsseffc"));
-
- }
-
- function fPatgnrlInfo(certFlag) {
- var userid = getUserId();
- model.removeNodeset("/root/send/wardinfo");
-
- //환자기본정보
- model.makeValue("/root/send/wardrecinfo/privacy", model.getValue("/root/main/wardrecinfo/privacy"));
- model.makeValue("/root/send/wardrecinfo/jobcd", model.getValue("/root/main/wardrecinfo/jobcd"));
- model.makeValue("/root/send/wardrecinfo/jobnm", model.getValue("/root/main/wardrecinfo/jobnm"));
- model.makeValue("/root/send/wardrecinfo/educgrdecd", model.getValue("/root/main/wardrecinfo/educgrdecd"));
- model.makeValue("/root/send/wardrecinfo/educgrdenm", model.getValue("/root/main/wardrecinfo/educgrdenm"));
- model.makeValue("/root/send/wardrecinfo/religncd", model.getValue("/root/main/wardrecinfo/religncd"));
- model.makeValue("/root/send/wardrecinfo/relignnm", model.getValue("/root/main/wardrecinfo/relignnm"));
- model.makeValue("/root/send/wardrecinfo/relignreq", model.getValue("/root/main/wardrecinfo/relignreq"));
-
- model.makeValue("/root/send/wardrecinfo/marystatcd", model.getValue("/root/main/wardrecinfo/marystatcd"));
- model.makeValue("/root/send/wardrecinfo/marystatnm", model.getValue("/root/main/wardrecinfo/marystatnm"));
- model.makeValue("/root/send/wardrecinfo/baptnm", model.getValue("/root/main/wardrecinfo/baptnm"));
- model.makeValue("/root/send/wardrecinfo/spo", model.getValue("/root/main/wardrecinfo/spo2"));
-
- model.makeValue("/root/send/wardrecinfo/tel", model.getValue("/root/main/wardrecinfo/tel"));
- model.makeValue("/root/send/wardrecinfo/mphone", model.getValue("/root/main/wardrecinfo/mphone"));
- model.makeValue("/root/send/wardrecinfo/etcphone1", model.getValue("/root/main/wardrecinfo/etcphone1"));
- model.makeValue("/root/send/wardrecinfo/etcphone2", model.getValue("/root/main/wardrecinfo/etcphone2"));
-
- //가계도
- model.makeValue("/root/send/wardrecinfo/famytree", fGetXmlToStr("/root/main/wardrecinfo/famytree/existyn"));
-
- //일반정보
- model.makeValue("/root/send/wardrecinfo/basebdinfoinclyn", model.getValue("/root/main/wardrecinfo/basebdinfoinclyn"));
- model.makeValue("/root/send/wardrecinfo/lowbp", model.getValue("/root/main/wardrecinfo/lowbp"));
- model.makeValue("/root/send/wardrecinfo/highbp", model.getValue("/root/main/wardrecinfo/highbp"));
- model.makeValue("/root/send/wardrecinfo/pulse", model.getValue("/root/main/wardrecinfo/pulse"));
- model.makeValue("/root/send/wardrecinfo/breth", model.getValue("/root/main/wardrecinfo/breth"));
- model.makeValue("/root/send/wardrecinfo/bdtp", model.getValue("/root/main/wardrecinfo/bdtp"));
- model.makeValue("/root/send/wardrecinfo/bdtppartcd", model.getValue("/root/main/wardrecinfo/bdtppartcd"));
- model.makeValue("/root/send/wardrecinfo/bdht", model.getValue("/root/main/wardrecinfo/bdht"));
- model.makeValue("/root/send/wardrecinfo/bdwt", model.getValue("/root/main/wardrecinfo/bdwt"));
- model.makeValue("/root/send/wardrecinfo/bdbtype", model.getValue("/root/main/wardrecinfo/bdbtype"));
- model.makeValue("/root/send/wardrecinfo/bdbtyperh", model.getValue("/root/main/wardrecinfo/bdbtyperh"));
- model.makeValue("/root/send/wardrecinfo/gustoinfo", fGetXmlToStr("/root/main/wardrecinfo/gustoinfo/gusto"));
- model.makeValue("/root/send/wardrecinfo/femaleinfo", fGetXmlToStr("/root/main/wardrecinfo/femaleinfo/female"));
- model.makeValue("/root/send/wardrecinfo/spcffact", fGetXmlToStr("/root/main/wardrecinfo/spcffact/spcf"));
-
- //가정간호정보
- model.makeValue("/root/send/wardrecinfo/rgstrinfoinclyn", model.getValue("/root/main/wardrecinfo/rgstrinfoinclyn"));
- model.makeValue("/root/send/wardrecinfo/diagnm", model.getValue("/root/main/wardrecinfo/diagnm"));
- model.makeValue("/root/send/wardrecinfo/reqdd", model.getValue("/root/main/wardrecinfo/reqdd"));
- model.makeValue("/root/send/wardrecinfo/atdoctcd", model.getValue("/root/main/wardrecinfo/atdoctcd"));
- model.makeValue("/root/send/wardrecinfo/reqmotvinfo", model.getValue("/root/main/wardrecinfo/reqmotvinfo"));
- model.makeValue("/root/send/wardrecinfo/illcog", model.getValue("/root/main/wardrecinfo/illcog"));
- model.makeValue("/root/send/wardrecinfo/rgststat", model.getValue("/root/main/wardrecinfo/rgststat"));
- model.makeValue("/root/send/wardrecinfo/dschinfoinclyn", model.getValue("/root/main/wardrecinfo/dschinfoinclyn"));
- model.makeValue("/root/send/wardrecinfo/dschdd", model.getValue("/root/main/wardrecinfo/dschdd"));
- model.makeValue("/root/send/wardrecinfo/dschmedi", fGetXmlToStr("/root/main/wardrecinfo/dschmediinfo/dschmedi"));
- model.makeValue("/root/send/wardrecinfo/homecareinfoinclyn", model.getValue("/root/main/wardrecinfo/homecareinfoinclyn"));
- model.makeValue("/root/send/wardrecinfo/carednor", model.getValue("/root/main/wardrecinfo/carednor"));
- model.makeValue("/root/send/wardrecinfo/carednornm", model.getValue("/root/main/wardrecinfo/carednornm"));
- model.makeValue("/root/send/wardrecinfo/healcaregrnt", model.getValue("/root/main/wardrecinfo/healcaregrnt"));
- model.makeValue("/root/send/wardrecinfo/healcaregrntnm", model.getValue("/root/main/wardrecinfo/healcaregrntnm"));
- model.makeValue("/root/send/wardrecinfo/healcntrprofit", model.getValue("/root/main/wardrecinfo/healcntrprofit"));
- model.makeValue("/root/send/wardrecinfo/economystat", model.getValue("/root/main/wardrecinfo/economystat"));
- model.makeValue("/root/send/wardrecinfo/sanitstat", model.getValue("/root/main/wardrecinfo/sanitstat"));
- model.makeValue("/root/send/wardrecinfo/safestat", model.getValue("/root/main/wardrecinfo/safestat"));
- model.makeValue("/root/send/wardrecinfo/residtype", model.getValue("/root/main/wardrecinfo/residtype"));
- model.makeValue("/root/send/wardrecinfo/residtypenm", model.getValue("/root/main/wardrecinfo/residtypednm"));
-
- //가족사항(가족연락처table)
- var updtdata = getGridUpdateData(grd_famyfact);
- model.makeValue("/root/send/wardrecinfo/famyfact", updtdata);
-
- //병력
- fChkInclYN();
-
- //신체사정
- model.makeValue("/root/send/wardrecinfo/actinfo", fGetXmlToStr("/root/main/wardrecinfo/actinfo/act"));
- model.makeValue("/root/send/wardrecinfo/apttbdwtchnginfo", fGetXmlToStr("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng"));
- model.makeValue("/root/send/wardrecinfo/slepstatinfo", fGetXmlToStr("/root/main/wardrecinfo/slepstatinfo/slepstat"));
- model.makeValue("/root/send/wardrecinfo/cscsstatinfo", fGetXmlToStr("/root/main/wardrecinfo/cscsstatinfo/cscsstat"));
- model.makeValue("/root/send/wardrecinfo/cirorgninfo", fGetXmlToStr("/root/main/wardrecinfo/cirorgninfo/cirorgn"));
- model.makeValue("/root/send/wardrecinfo/resorgninfo", fGetXmlToStr("/root/main/wardrecinfo/resorgninfo/resorgn"));
- model.makeValue("/root/send/wardrecinfo/digorgninfo", fGetXmlToStr("/root/main/wardrecinfo/digorgninfo/digorgn"));
-
- model.makeValue("/root/send/wardrecinfo/uriorgninfo", fGetXmlToStr("/root/main/wardrecinfo/uriorgninfo/uriorgn"));
- model.makeValue("/root/send/wardrecinfo/stoolinfo", fGetXmlToStr("/root/main/wardrecinfo/stoolinfo/stool"));
-
- model.makeValue("/root/send/wardrecinfo/visdsordinfo", fGetXmlToStr("/root/main/wardrecinfo/visdsordinfo/visdsord"));
- model.makeValue("/root/send/wardrecinfo/heardsordinfo", fGetXmlToStr("/root/main/wardrecinfo/heardsordinfo/heardsord"));
- model.makeValue("/root/send/wardrecinfo/tootstatinfo", fGetXmlToStr("/root/main/wardrecinfo/tootstatinfo/tootstat"));
- model.makeValue("/root/send/wardrecinfo/skinsectinfo", fGetXmlToStr("/root/main/wardrecinfo/skinsectinfo/skinsect"));
-
- //알러지
- if(grd_allghist.rows > 1) {
- if(allgInsYN == "Y") {
- grd_allghist.addStatus(1, "insert");
- }
- }
- model.makeValue("/root/send/wardrecinfo/allginfo", grd_allghist.getUpdateData());
- //웹 테스트
- model.makeValue("/root/send/wardrecinfo/pid", model.getValue("/root/temp/cond/list/pid"));
- model.makeValue("/root/send/wardrecinfo/indd", model.getValue("/root/temp/cond/list/indd"));
- model.makeValue("/root/send/wardrecinfo/instcd", model.getValue("/root/temp/cond/list/instcd"));
- model.makeValue("/root/send/wardrecinfo/deptcd", model.getValue("/root/temp/cond/list/orddeptcd"));
- model.makeValue("/root/send/wardrecinfo/infooffer", model.getValue("/root/main/wardrecinfo/infooffer"));
-
- model.makeValue("/root/send/wardrecinfo/recflag", "09");
- model.makeValue("/root/send/wardrecinfo/docucode", "0000002493");
- model.makeValue("/root/send/wardrecinfo/userid", userid);
-
- //수행구분(I, U에 따른 입력, 수정을위한 구분)
- model.makeValue("/root/send/wardrecinfo/exeflag", model.getValue("/root/hidden/paminfo/paminfo/exeflag"));
-
- if(model.getValue("/root/properties/parameters/SPMMR04711_shape/SPMMR04711_shapevalue") == "") {
- model.makeValue("/root/send/wardrecinfo/genogrmnm", "");
- } else {
- model.makeValue("/root/send/wardrecinfo/genogrmnm", model.getValue("/root/properties/parameters/SPMMR04711_shape/SPMMR04711_shapevalue"));
- }
-
- model.makeValue("/root/send/wardrecinfo/certflag", certFlag);
-
- model.makeValue("/root/send/wardrecinfo/recdd", model.getValue("/root/main/wardrecinfo/recdd"));
- model.makeValue("/root/send/wardrecinfo/rectm", model.getValue("/root/main/wardrecinfo/rectm"));
- model.makeValue("/root/send/wardrecinfo/recdt", model.getValue("/root/main/wardrecinfo/recdd") + model.getValue("/root/main/wardrecinfo/rectm"));
- }
-
- function fSetSignData() {
- var xWardRecPath = Sign.XPATH_SIGNINFO + "/wardrecinfo";
- var xHistPath = Sign.XPATH_SIGNINFO + "/histinfo";
- var xFamyPath = Sign.XPATH_SIGNINFO + "/famyfactinfo";
-
- /****************************** 환자기본정보 **************************************/
- //직업
- var jobcd = model.getValue(xWardRecPath + "/jobcd");
- if(jobcd != "") {
- if(jobcd == "10") {
- if(model.getValue(xWardRecPath + "/jobnm") == "") {
- model.setValue(xWardRecPath + "/jobcd", cmb_job.label);
- } else {
- model.setValue(xWardRecPath + "/jobcd", model.getValue(xWardRecPath + "/jobnm"));
- }
-
- } else {
- model.setValue(xWardRecPath + "/jobcd", cmb_job.label);
- }
- }
- //교육정도
- var educgrde = model.getValue(xWardRecPath + "/educgrdecd");
- if(educgrde != "") {
- if(educgrde == "15") {
- if(model.getValue(xWardRecPath + "/educgrdenm") != "") {
- model.setValue(xWardRecPath + "/educgrdecd", model.getValue(xWardRecPath + "/educgrdenm"));
-
- } else {
- model.setValue(xWardRecPath + "/educgrdecd", cmb_educgrde.label);
- }
- } else {
- model.setValue(xWardRecPath + "/educgrdecd", cmb_educgrde.label);
- }
- }
- //종교
- var relign = model.getValue(xWardRecPath + "/religncd");
- if(relign != "") {
- if(relign == "01") {
- model.setValue(xWardRecPath + "/religncd", cmb_relign.label);
- if(model.getValue(xWardRecPath + "/baptnm") != "") {
- model.setValue(xWardRecPath + "/religncd", model.getValue(xWardRecPath + "/religncd") + "(" + model.getValue(xWardRecPath + "/baptnm") + ")");
- }
-
- } else if( relign == "09") {
- if(model.getValue(xWardRecPath + "/relignnm") == "") {
- model.setValue(xWardRecPath + "/religncd", cmb_relign.label);
-
- } else {
- model.setValue(xWardRecPath + "/religncd", model.getValue(xWardRecPath + "/relignnm"));
- }
-
- } else {
- model.setValue(xWardRecPath + "/religncd", cmb_relign.label);
- }
- }
- //영적요구
- var relignreq = model.getValue(xWardRecPath + "/relignreq");
- if (relignreq != ""){
- model.setValue(xWardRecPath + "/relignreq", cmb_relignreq.label);
- }
- //결혼상태
- var marystat = model.getValue(xWardRecPath + "/marystatcd");
- if(marystat != "") {
- if(marystat == "06") {
- if(model.getValue(xWardRecPath + "/marystatnm") != "") {
- model.setValue(xWardRecPath + "/marystatcd", model.getValue(xWardRecPath + "/marystatnm"));
- } else {
- model.setValue(xWardRecPath + "/marystatcd", cmb_marystat.label);
- }
-
- } else {
- model.setValue(xWardRecPath + "/marystatcd", cmb_marystat.label);
- }
- }
-
- /****************************** 가족사항 **************************************/
- //가족사항 관계
- var rows = grd_famyfact.rows;
- var rela;
- for(var i = 1 ; i < rows; i++) {
- rela = model.getValue(xFamyPath + "/famyfact[" + i + "]/rela");
- if(rela != "") {
- model.setValue(xFamyPath + "/famyfact[" + i + "]/rela", grd_famyfact.labelMatrix(i, grd_famyfact.colRef("rela")));
- }
- }
-
- /****************************** 등록시 정보 **************************************/
- //병에대한 인식
- var illcog = model.getValue(xWardRecPath + "/illcog");
- if (illcog != ""){
- model.setValue(xWardRecPath + "/illcog", rdo_illcogflag.label);
- }
-
- /****************************** 가정간호 정보 **************************************/
- //간호제공자
- var carednor = model.getValue(xWardRecPath + "/carednor");
- var carednornm = model.getValue(xWardRecPath + "/carednornm");
- str = cmb_carednor.label;
-
- if(carednor != "") {
- if(carednor == "06") {
- if(carednornm != "") {
- str += "(" + carednornm + ")";
- }
- }
- model.setValue(xWardRecPath + "/carednor", str);
- }
-
- //의료보장
- var healcaregrnt = model.getValue(xWardRecPath + "/healcaregrnt");
- var healcaregrntnm = model.getValue(xWardRecPath + "/healcaregrntnm");
- str = cmb_healcaregrnt.label;
-
- if(healcaregrnt != "") {
- if(healcaregrnt == "06") {
- if(healcaregrntnm != "") {
- str += "(" + healcaregrntnm + ")";
- }
- }
- model.setValue(xWardRecPath + "/healcaregrnt", str);
- }
-
- //보건소혜택
- var healcntrprofit = model.getValue(xWardRecPath + "/healcntrprofit");
- var healcaregrntnm = model.getValue(xWardRecPath + "/healcaregrntnm");
- str = rdo_healcntrprofit.label;
-
- if(healcntrprofit != "") {
- if(healcntrprofit == "2") {
- if(healcaregrntnm != "") {
- str += "(" + healcaregrntnm + ")";
- }
- }
- model.setValue(xWardRecPath + "/healcntrprofit", str);
- }
-
- //경제상태
- var economystat = model.getValue(xWardRecPath + "/economystat");
- str = cmb_economystat.label;
- if(economystat != "") {
- model.setValue(xWardRecPath + "/economystat", str);
- }
-
- //위생상태
- var sanitstat = model.getValue(xWardRecPath + "/sanitstat");
- str = cmb_sanitstat.label;
- if(sanitstat != "") {
-
- model.setValue(xWardRecPath + "/sanitstat", str);
- }
-
- //안전상태
- var safestat = model.getValue(xWardRecPath + "/safestat");
- str = cmb_safestat.label;
- if(safestat != "") {
-
- model.setValue(xWardRecPath + "/safestat", str);
- }
-
- //주거형태
- var residtype = model.getValue(xWardRecPath + "/residtype");
- var residtypenm = model.getValue(xWardRecPath + "/residtypenm");
- str = cmb_residtype.label;
-
- if(residtype != "") {
- if(residtype == "04") {
- if(residtypenm != "") {
- str += "(" + residtypenm + ")";
- }
- }
- model.setValue(xWardRecPath + "/residtype", str);
- }
- /****************************** 기본 신체정보 **************************************/
- //혈액형
- var bdbtype = model.getValue(xWardRecPath + "/bdbtype");
- if(bdbtype != "") {
- model.setValue(xWardRecPath + "/bdbtype", cmb_bdbtype.label);
- }
-
- //체온
- var bdtppart = model.getValue(xWardRecPath + "/bdtppartcd");
- if(bdtppart != "") {
- model.setValue(xWardRecPath + "/bdtppartcd", cmb_bdtp.label);
- }
-
- /****************************** 기호정보 **************************************/
- //흡연정보
- var smokinfoyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfoyn");
- var smokinfocnt = model.getValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfocnt");
- if(smokinfoyn != "") {
- if(smokinfoyn == "2" && smokinfocnt != ""){
- model.setValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfoyn", rdo_smokinfo.label + "(" + smokinfocnt + ")");
- }else{
- model.setValue(xWardRecPath + "/gustoinfo/gusto/smokinfo/smokinfoyn", rdo_smokinfo.label);
- }
- }
-
- //음주정보
- var drunkinfoyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn");
- if(drunkinfoyn != "") {
- if(drunkinfoyn == "2") {
- if(model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfokind") != "") {
- if(model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoterm") != "") {
- model.setValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfokind") + " "
- + model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoterm") + cap_drunkinfoterm.label);
- }else{
- model.setValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfokind"));
- }
- } else {
- if(model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoterm") != "") {
- model.setValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoterm") + cap_drunkinfoterm.label);
- }else{
- model.setValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn", rdo_drunkinfo.label);
- }
- }
- } else {
- model.setValue(xWardRecPath + "/gustoinfo/gusto/drunkinfo/drunkinfoyn", rdo_drunkinfo.label);
- }
- }
-
- //기호식품
- var gustofoodyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofoodyn");
- if(gustofoodyn != "") {
- if(gustofoodyn == "2") {
- if(model.getValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofooddetl") != "") {
- model.setValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofoodyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofooddetl"));
-
- } else {
- model.setValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofoodyn", rdo_gustofoodyn.label);
- }
- } else {
- model.setValue(xWardRecPath + "/gustoinfo/gusto/gustofoodinfo/gustofoodyn", rdo_gustofoodyn.label);
- }
- }
-
- //수혈부작용
- var tnsseffcyn = model.getValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn");
- if(tnsseffcyn != "") {
- if(tnsseffcyn == "2") {
- if(model.getValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcdetl") != "") {
- model.setValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn", model.getValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcdetl"));
- } else {
- model.setValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn", rdo_tnsseffcyn.label);
- }
- } else {
- model.setValue(xWardRecPath + "/gustoinfo/gusto/tnsseffcinfo/tnsseffcyn", rdo_tnsseffcyn.label);
- }
- }
-
- /****************************** 여성정보 **************************************/
- //폐경여부
- var endmensyn = model.getValue(xWardRecPath + "/femaleinfo/female/female/endmensyn");
- if(endmensyn != "") {
- if(endmensyn == "2") {
- if(model.getValue(xWardRecPath + "/femaleinfo/female/female/endmensdd") != "") {
- model.setValue(xWardRecPath + "/femaleinfo/female/female/endmensyn", rdo_endmensyn.label + "(" + ipt_endmensyn.label + " )" );
- } else {
- model.setValue(xWardRecPath + "/femaleinfo/female/female/endmensyn", rdo_endmensyn.label);
-
- }
- } else {
- model.setValue(xWardRecPath + "/femaleinfo/female/female/endmensyn", rdo_endmensyn.label);
- }
- }
- //폐경 나이
- var endmensage = model.getValue(xWardRecPath + "/femaleinfo/female/female/endmensage");
- if( !isNull(endmensage) ){
- model.setValue(xWardRecPath + "/femaleinfo/female/female/endmensage", endmensage + " 세");
- }
-
- //최종월경일
- var lastmensdd = model.getValue(xWardRecPath + "/femaleinfo/female/female/lastmensdd");
- if(lastmensdd != ""){
- model.setValue(xWardRecPath + "/femaleinfo/female/female/lastmensdd", lastmensdd.substr(0,4) + "-" + lastmensdd.substr(4,2) + "-" + lastmensdd.substr(6,2));
- }
-
- /****************************** 병력 **************************************/
- //과거병력
- var rows = grd_pasthist.rows;
- var histspec;
- for(var i = 1 ; i < rows; i++) {
- histspec = model.getValue(xHistPath + "/pasthistinfo/pasthist/pasthist[" + i + "]/histspec");
- if(histspec != "") {
- model.setValue(xHistPath + "/pasthistinfo/pasthist/pasthist[" + i + "]/histspec", grd_pasthist.labelMatrix(i, grd_pasthist.colRef("histspec")));
- }
- }
-
- //가족병력
- var famyrel;
- var existyn;
- rows = grd_famyhist.rows;
-
- for(var i = 1 ; i < rows; i++) {
- famyrel = model.getValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/famyrel");
- existyn = model.getValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/existyn");
- histspec = model.getValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/histspec");
-
- if(famyrel != "") {
- model.setValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/famyrel", grd_famyhist.labelMatrix(i, grd_famyhist.colRef("famyrel")));
- }
-
- if(existyn != "") {
- model.setValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/existyn", grd_famyhist.labelMatrix(i, grd_famyhist.colRef("existyn")));
- }
-
- if(histspec != "") {
- model.setValue(xHistPath + "/famyhistinfo/famyhist/famyhist[" + i + "]/histspec", grd_famyhist.labelMatrix(i, grd_famyhist.colRef("histspec")));
- }
- }
-
- //allergy구분
- rows = grd_allghist.rows;
- var flag;
-
- for(var i = 1 ; i < rows; i++) {
- flag = model.getValue(xHistPath + "/allghistinfo/allghist/allghist[" + i + "]/flag");
- if(flag != "") {
- model.setValue(xHistPath + "/allghistinfo/allghist/allghist[" + i + "]/flag", grd_allghist.labelMatrix(i, grd_allghist.colRef("flag")));
- }
- }
-
- /****************************** 신체사정 **************************************/
- //호스피스여부
- var hospiceyn = model.getValue(xWardRecPath + "/shpaininfo/shpain/hospiceyn");
- var hospice = model.getValue(xWardRecPath + "/shpaininfo/shpain/hospice");
- if(hospiceyn != "") {
- if(hospice != ""){
- model.makeValue(xWardRecPath + "/shpaininfo/shpain/hospiceyn", rdo_hospiceyn.label + "(" + hospice + ")");
- }else{
- model.makeValue(xWardRecPath + "/shpaininfo/shpain/hospiceyn", rdo_hospiceyn.label);
- }
- }
- //동통에서 통증 : 무(default)/유 선택으로 변경 20100122 김홍점
- var shpaininfoinclyn = model.getValue(xWardRecPath + "/shpaininfo/shpain/shpaininfoinclyn");
- if( !isNull(shpaininfoinclyn) ) {
- model.makeValue(xWardRecPath + "/shpaininfo/shpain/shpaininfoinclyn", rdo_shpaininfoinclyn.label);
- model.makeValue(xWardRecPath + "/shpaininfo/shpain/shpaininfochgdd", "20100125");//20100125 일부터 동통에서 통증으로 변경됨.
- }
-
- /****************************** 활동 **************************************/
- //활동
- var actfreeyn = model.getValue(xWardRecPath + "/actinfo/act/actfreeyn");
- if(actfreeyn != "") {
- model.setValue(xWardRecPath + "/actinfo/act/actfreeyn", rdo_actfreeyn.label);
- }
-
- //보조기구
- var supptoolkind = model.getValue(xWardRecPath + "/actinfo/act/supptoolkind");
- arr = (chk_supptoolkind.label).setReplaceWord("▦",",");
- if(supptoolkind != "") {
- model.setValue(xWardRecPath + "/actinfo/act/supptoolkind", arr);
- }
-
- //마비
- var paralysisyn = model.getValue(xWardRecPath + "/actinfo/act/paralysisyn");
- var paralysis = model.getValue(xWardRecPath + "/actinfo/act/paralysis");
- if( !isNull(paralysisyn) ) {
- if( !isNull(paralysis)){
- model.setValue(xWardRecPath + "/actinfo/act/paralysisyn", rdo_paralysisyn.label + "(" + paralysis + ")");
- }else{
- model.setValue(xWardRecPath + "/actinfo/act/paralysisyn", rdo_paralysisyn.label);
- }
- }
-
- //활동정도
- var ppsdetl = model.getValue(xWardRecPath + "/actinfo/act/ppsdetl");
- if(ppsdetl != "") {
- model.setValue(xWardRecPath + "/actinfo/act/ppsdetl", cmb_ppsdetl.label);
- }
-
-
- /****************************** 식욕 및 체중변화 **************************************/
- //식욕변화
- var apptchngyn = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptchngyn");
- str = rdo_apttchngyn.label;
-
- if(apptchngyn != "") {
- if(apptchngyn == "2") {
- if(model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptaddyn") != "") {
- str += "(" + rdo_apttchngflag.label+ ")";
- }
- }
- model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptchngyn", str);
- }
-
- //식욕상태
- var apptstatflag = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptstatflag");
- if(apptstatflag != "") {
- model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/apptstatflag", rdo_apttstatflag.label);
- }
-
- //체중변화
- var bdwtchngyn = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchngyn");
- var incdecflag = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/incdecflag");
- var bdwtchnggrde = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchnggrde");
- var bdwtchngterm = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchngterm");
- var bdwtchngtermflag = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchngtermflag");
-
- str = rdo_bdwtchngyn.label;
-
- if(bdwtchngyn != "") {
- if(bdwtchngyn == "2") {
- if( !isNull(incdecflag) && bdwtchnggrde != "" && bdwtchngtermflag != "") {
- str += "(" + rdo_incdecflag.label+ ": " + bdwtchnggrde + "kg " + "/ 기간 : " + rdo_bdwtchngtermflag.label + " (" + bdwtchngterm + ") )";
- } else if(bdwtchnggrde != "" && bdwtchngtermflag == "") {
- str += "(" + rdo_incdecflag.label+ ": " + bdwtchnggrde + "kg )";
- } else if(bdwtchnggrde == "" && bdwtchngtermflag != "") {
- str += "(" + "기간 : " + rdo_bdwtchngtermflag.label + " ( " + bdwtchngterm + ") )";
- }
-
- }
- model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/bdwtchngyn", str);
-
- }
- //편식
- var onemealyn = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/onemealyn");
- if(onemealyn != "") {
- model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/onemealyn", rdo_onemealyn.label);
- }
-
- //식이상태
- var mealstat = model.getValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/mealstat");
- if(mealstat != "") {
- model.setValue(xWardRecPath + "/apttbdwtchnginfo/apttbdwtchng/mealstat", cmb_mealstat.label);
- }
-
- /****************************** 수면상태 **************************************/
- //수면장애
- var slepdsordyn = model.getValue(xWardRecPath + "/slepstatinfo/slepstat/slepdsordyn");
- var slepdsordtm = model.getValue(xWardRecPath + "/slepstatinfo/slepstat/slepdsordtm");
- str = rdo_slepdsord.label;
-
- if(slepdsordyn != "") {
- if(slepdsordyn == "2") {
- if(slepdsordtm != "") {
- str += "(" + slepdsordtm + "시간/일)";
- }
- }
- model.setValue(xWardRecPath + "/slepstatinfo/slepstat/slepdsordyn", str);
- }
-
- //약물복용
- var dugtmedyn = model.getValue(xWardRecPath + "/slepstatinfo/slepstat/dugtmedyn");
- var dugtmeddetl = model.getValue(xWardRecPath + "/slepstatinfo/slepstat/dugtmeddetl");
- str = rdo_drugtmedyn.label;
-
- if(dugtmedyn != "") {
- if(dugtmedyn == "2") {
- if(dugtmeddetl != "") {
- str += "(" + dugtmeddetl + ")";
- }
- }
- model.setValue(xWardRecPath + "/slepstatinfo/slepstat/dugtmedyn", str);
- }
-
- /****************************** 의식상태 **************************************/
- //지남력
- var cscsstathuman = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstathuman");
- var cscsstattm = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstattm");
- var cscsstatplce = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstatplce");
-
- if(cscsstathuman != "") {
- model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstathuman", cmb_cscsstathuman.label);
- }
- if(cscsstattm != "") {
- model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstattm", cmb_cscsstattm.label);
- }
-
- if(cscsstatplce != "") {
- model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstatplce", cmb_cscsstatplce.label);
- }
- //의식상태
- var cscsstat = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstat");
- if(cscsstat != "") {
- model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/cscsstat", cmb_cscsstat.label);
- }
- //의사소통
- var communication = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/communication");
- if( communication != "") {
- model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/communication", rdo_communication.label);
- }
- //정서상태
- var emotstat = model.getValue(xWardRecPath + "/cscsstatinfo/cscsstat/emotstat");;
- if(emotstat != "") {
- model.setValue(xWardRecPath + "/cscsstatinfo/cscsstat/emotstat", cmb_emotstat.label);
- }
-
- /****************************** 순환기계 **************************************/
- //순환장애
- var cirdsordkind = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/cirdsordkind");
- var arr = new Array();
- arr = chk_cycdsordkind.label.split(" ");
- if(cirdsordkind != "") {
- model.setValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/cirdsordkind", arr);
- }
- //부종
- var edema = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/edemakind");
- var edemadetll = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/edemadetll");
- str = cmb_edema.label;
-
- if(edema != "") {
- if(edema == "7") {
- if(edemadetll != "") {
- str = edemadetll;
- }
- }
- model.setValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/edemakind", str);
- }
- //요흔
- var yohnyn = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/yohnyn");
- var yohn = model.getValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/yohnddetl");
- str = rdo_yohnyn.label;
-
- if(yohnyn != "") {
- if(yohnyn == "2") {
- if(yohn != "") {
- str = yohn;
- }
- }
- model.setValue(xWardRecPath + "/cirorgninfo/cirorgn/cirorgn/yohnyn", str);
- }
-
- /****************************** 호흡기계 **************************************/
- //호흡양상
- var resstat = model.getValue(xWardRecPath + "/resorgninfo/resorgn/resstat");
- arr = chk_resstat.label.split('▦');
- if(resstat != "") {
- model.setValue(xWardRecPath + "/resorgninfo/resorgn/resstat", arr);
- }
-
- //기관절개관
- var orgnopenyn = model.getValue(xWardRecPath + "/resorgninfo/resorgn/orgnopenyn");
- var orgnopenkind = model.getValue(xWardRecPath + "/resorgninfo/resorgn/orgnopenkind");
- var orgnopennm = model.getValue(xWardRecPath + "/resorgninfo/resorgn/orgnopennm");
- str = rdo_orgnopenyn.label;
-
- if(orgnopenyn != "") {
- if(orgnopenyn == "2") {
- if(orgnopenkind != "") {
- if(orgnopenkind == "13") {
- if(orgnopennm != "") {
- str += "("+ cmb_orgnopen.label + "(" + orgnopennm + "))";
- } else {
- str += "(" + cmb_orgnopen.label + ")";
- }
- } else {
- str += "(" + cmb_orgnopen.label + ")";
- }
- }
- }
- model.setValue(xWardRecPath + "/resorgninfo/resorgn/orgnopenyn", str);
- }
-
-
- //suction사용
- var suctionuseyn = model.getValue(xWardRecPath + "/resorgninfo/resorgn/suctionuseyn");
- str = rdo_suctionuseyn.label;
-
- if(suctionuseyn != "") {
- model.setValue(xWardRecPath + "/resorgninfo/resorgn/suctionuseyn", str);
- }
-
- //산소사용
- var oxyuseyn = model.getValue(xWardRecPath + "/resorgninfo/resorgn/oxyuseyn");
- var oxyusevol = model.getValue(xWardRecPath + "/resorgninfo/resorgn/oxyusevol");
- str = rdo_oxyuseyn.label;
-
- if(oxyuseyn != "") {
- if(oxyuseyn == "02") {
- if(oxyusevol != "") {
- model.setValue(xWardRecPath + "/resorgninfo/resorgn/oxyuseyn", str);
- }
- }
- }
-
- //인공호흡기
- var artficresorgn = model.getValue(xWardRecPath + "/resorgninfo/resorgn/artficresorgn");
- str = rdo_artficresorgn.label;
-
- if(artficresorgn != "") {
- model.setValue(xWardRecPath + "/resorgninfo/resorgn/artficresorgn", str);
- }
- /****************************** 소화기계 **************************************/
- //이상증상
- var trobsymp = model.getValue(xWardRecPath + "/digorgninfo/digorgn/trobsymp");
- var trobsympdetl = model.getValue(xWardRecPath + "/digorgninfo/digorgn/trobsympdetl");
- arr = chk_trobsymp.label.split('▦');
-
- if(trobsymp != "") {
- if(trobsympdetl != "") {
- arr += "(" + trobsympdetl + ")";
- }
- model.setValue(xWardRecPath + "/digorgninfo/digorgn/trobsymp", arr);
- }
-
- //부착기구
- var digorgcate = model.getValue(xWardRecPath + "/digorgninfo/digorgn/digorgcate");
- var digorgdetl = model.getValue(xWardRecPath + "/digorgninfo/digorgn/digorgdetl");
- if(digorgcate != "") {
- if(digorgdetl != ""){
- model.setValue(xWardRecPath + "/digorgninfo/digorgn/digorgcate", cmb_digorgcate.label + "(" + digorgdetl + ")");
- }else{
- model.setValue(xWardRecPath + "/digorgninfo/digorgn/digorgcate", cmb_digorgcate.label);
- }
- }
-
- /****************************** 비뇨기계 **************************************/
- //비뇨기계부착기구
- var urinecate = model.getValue(xWardRecPath + "/uriorgninfo/uriorgn/urinecate");
- if(urinecate != "") {
- model.setValue(xWardRecPath + "/uriorgninfo/uriorgn/urinecate", cmb_urinecate.label);
- }
-
- //소변색깔
- var urinecolor = model.getValue(xWardRecPath + "/uriorgninfo/uriorgn/urinecolor");
- if(urinecolor != "") {
- model.setValue(xWardRecPath + "/uriorgninfo/uriorgn/urinecolor", cmb_urinecolor.label);
- }
-
- //소변증상
- var urinesymp = model.getValue(xWardRecPath + "/uriorgninfo/uriorgn/urinesymp");
- if(urinesymp != "") {
- model.setValue(xWardRecPath + "/uriorgninfo/uriorgn/urinesymp", cmb_urinesymp.label);
- }
-
- /****************************** 대변 **************************************/
- //대변색깔
- var stoolcolor = model.getValue(xWardRecPath + "/stoolinfo/stool/stoolcolor");
- if(stoolcolor != "") {
- model.setValue(xWardRecPath + "/stoolinfo/stool/stoolcolor", cmb_stoolcolor.label);
- }
-
- //대변종류
- var stoolkind = model.getValue(xWardRecPath + "/stoolinfo/stool/stoolkind");
- if(stoolkind != "") {
- model.setValue(xWardRecPath + "/stoolinfo/stool/stoolkind", cmb_stoolkind.label);
- }
-
- //변비
- var constipt = model.getValue(xWardRecPath + "/stoolinfo/stool/stoolconstipation");
- if(constipt == "Y") {
- model.makeValue(xWardRecPath + "/stoolinfo/stool/stoolcateconstipation", "유");
- }else {
- model.makeValue(xWardRecPath + "/stoolinfo/stool/stoolcateconstipation", "무");
- }
- /****************************** 신경계 **************************************/
- //신경계 동공
- var pupilsymmetryyn = model.getValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilsymmetryyn");
- if(pupilsymmetryyn != "") {
- model.setValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilsymmetryyn", rdo_pupilsymmetryyn.label);
- }
-
- //좌
- var pupilleft = model.getValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilleft");
- if(pupilleft != "") {
- model.setValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilleft", cmb_pupilleft.label);
- }
-
- //좌 빛반사
- var pupilleftrflx = model.getValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilleftrflx");
- if(pupilleftrflx != "") {
- model.setValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilleftrflx", cmb_pupilleftrflx.label);
- }
-
- //우
- var pupilrght = model.getValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilrght");
- if(pupilrght != "") {
- model.setValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilrght", cmb_pupilrght.label);
- }
-
- //우 빛반사
- var pupilrghtrflx = model.getValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilrghtrflx");
- if(pupilrghtrflx != "") {
- model.setValue(xWardRecPath + "/nvesysinfo/nvesys/nvesys/pupilrghtrflx", cmb_pupilrghtrflx.label);
- }
-
- //시력장애
- var visdsordyn = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordyn");
- var visdsordpos = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordpos");
- var visdsordleft = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordleft");
- var visdsordrght = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordrght");
- var visdsordkind = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordkind");
- var visdsordblind = model.getValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordblind");
- str = rdo_visdsordyn.label;
-
- if(visdsordyn != "") {
- if(visdsordyn == "2") {
- if(visdsordpos != "") {
-
- if(visdsordleft != "" && visdsordrght != "") {
- str += "(좌: " + visdsordleft + " 우: " + visdsordrght + ")";
- } else if(visdsordpos == "1") {
- str += "(좌: " + visdsordleft + ")";
- } else if(visdsordpos == "2") {
- str += "(우: " + visdsordrght + ")";
- }
- }
-
- if(visdsordkind != "") {
- arr = chk_visdsordkind.label.split(" ");
- str += " (" + arr + ")";
- }
-
- if(visdsordblind != "") {
- arr = chk_blindnesspos.label.split(" ");
- str += " (" + arr + ")";
- }
-
- }
- model.setValue(xWardRecPath + "/visdsordinfo/visdsord/visdsordyn", str);
- }
-
- //청력장애
- var heardsordyn = model.getValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordyn");
- var heardsordpos = model.getValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordpos");
- var heardsordleft = model.getValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordleft");
- var heardsordrght = model.getValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordrght");
- var heardsordkind = model.getValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordkind");
- str = rdo_heardsordyn.label;
-
- if(heardsordyn != "") {
- if(heardsordyn == "2") {
- if(heardsordpos != "") {
- if(heardsordpos == "1 2" || heardsordpos == "2 1") {
- if(heardsordleft != "" && heardsordrght != "") {
- str += "(좌: " + heardsordleft + " 우: " + heardsordrght + ")";
- } else if(heardsordleft != "" && heardsordrght == "") {
- str += "(좌: " + heardsordleft + ")";
- } else if(heardsordleft == "" && heardsordrght != "") {
- str += "(우: " + heardsordrght + ")";
- }
- } else if(heardsordpos == "1") {
- if(heardsordleft != "") {
- str += "(좌: " + heardsordleft + ")";
- }
- } else if(heardsordpos == "2") {
- if(heardsordrght != "") {
- str += "(우: " + heardsordrght + ")";
- }
- }
- }
-
- if(heardsordkind != "") {
- arr = heardsordkind.split(" ");
- str += ", " + arr;
- }
- }
-
- model.setValue(xWardRecPath + "/heardsordinfo/heardsord/heardsordyn", str);
- }
-
- //치아상태
- var tootstatkind = model.getValue(xWardRecPath + "/tootstatinfo/tootstat/tootstatkind");
- if(tootstatkind != "") {
- arr = chk_tootstatkind.label.split(" ");
- model.setValue(xWardRecPath + "/tootstatinfo/tootstat/tootstatkind", arr);
- }
-
- //피부계
- var skinstat = model.getValue(xWardRecPath + "/skinsectinfo/skinsect/skinstat");
- if(skinstat != "") {
- arr = chk_skinstat.label.split("▦");
- model.setValue(xWardRecPath + "/skinsectinfo/skinsect/skinstat", arr);
- }
- }
-
- function fMake_SignData() {
- //JCI 교육요구도 추가 (20100113 김홍점)
- // var instUseYN = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='172']/cdid");//교육요구도 추가 20091216 김홍점
- var instUseYN =""; //20100510 김홍점 외래 공통 교육요구도 개발에 의한 SPMRJ00300_교육요구도사정 사용안함.소경화itc요청
- if ( instUseYN =="Y" ){
- Sign.addnode("/root/temp/signdata/edurecinfo");
- }
-
- Sign.addnode("/root/main/wardrecinfo");
- Sign.addnode("/root/main/histinfo");
- //가족사항 정보 생성(그리드형식)
- model.removeNodeset("/root/main/famyfactinfo");
- model.makeNode("/root/main/famyfactinfo");
- for(var i=1; i <= getNodesetCount("/root/main/famyfact"); i++) {
- if(model.getValue("/root/main/famyfact["+ i +"]/rela") != ""){
- model.duplicate("/root/main/famyfactinfo", "/root/main/famyfact["+ i +"]");
- }
-
- }
- Sign.addnode("/root/main/famyfactinfo");
-
- fSetSignData();
- }
-
- //이전기록일시 변경
- function fChgRecHistInfo(){
- var recpkspec = (model.getValue("/root/main/wardrecinfo/bfrecddtm")).split("|");
- var bfrecpid = recpkspec[0];
- var bfrecindd = recpkspec[1];
- var bfreccretno = recpkspec[2];
- var bfrecflag = recpkspec[3];
- var bfrecinstcd = recpkspec[4];
-
- model.removeNodeset("/root/send/req");
- model.makeNode("/root/send/req");
-
- model.makeValue("/root/send/req/pid", bfrecpid);
- model.makeValue("/root/send/req/indd", bfrecindd);
- model.makeValue("/root/send/req/cretno", bfreccretno);
- model.makeValue("/root/send/req/instcd", bfrecinstcd);
- model.makeValue("/root/send/req/recflag", bfrecflag);
- //model.makeValue("/root/send/req/docucode", "0000002493");
- //model.makeValue("/root/send/req/deptcd", orddeptcd);
-
- //가정간호정보조사지
- submit("TRMNF00302", false);
- setParameter("SPMMR04711_shape", fGetXmlToStr("/root/main/wardrecinfo/genogrmnm/XMD"));
- //XML 타입에 노드가 추가됨에 따라 존재하지 않는 노드들 추가 김홍점
- var bdwtchngtermflag= instance1.selectSingleNode("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/bdwtchngtermflag");
-
- if ( bdwtchngtermflag == null ) {
-
- model.makeValue("/root/main/wardrecinfo/apttbdwtchnginfo/apttbdwtchng/bdwtchngtermflag","");
- }
-
- var constipt= instance1.selectSingleNode("/root/main/wardrecinfo/stoolinfo/stool/stoolconstipation");
-
- if ( constipt == null ) {
-
- model.makeValue("/root/main/wardrecinfo/stoolinfo/stool/stoolconstipation","");
- }
-
- var endmensage= instance1.selectSingleNode("/root/main/wardrecinfo/femaleinfo/female/female/endmensage");
-
- if ( endmensage == null ) {
-
- model.makeValue("/root/main/wardrecinfo/femaleinfo/female/female/endmensage","");
- }
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- <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/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../emr/formmngtweb/js/MRF03800.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/ENRSignEngine.js"/>
- <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/codeinfo/codelist"/>
- <submission id="TRMNF00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/paminfo"/>
- <submission id="TRMNF00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main"/>
- <submission id="TRMNF00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/init/newpat"/>
- <submission id="TRMNF00304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/hidden/cominfo"/>
- <submission id="TXMNF00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/wardrecinfo" resultref="/root/temp/wardrecinfo"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMNZ00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/enrcarecomrecinfo"/>
- </model>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">가정간호정보조사</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="grp_patinfo" scroll="auto" style="left:210px; top:50px; width:640px; height:20px; ">
- <caption id="caption11" ref="/root/main/wardrecinfo/pid" style="left:534px; top:0px; width:96px; height:20px; font-family:돋움; "/>
- <caption id="caption12" ref="/root/main/wardrecinfo/room" style="left:53px; top:0px; width:52px; height:20px; font-family:돋움; "/>
- <caption id="caption13" ref="/root/main/wardrecinfo/patnm" style="left:180px; top:0px; width:60px; height:20px; font-family:돋움; "/>
- <caption id="caption14" class="search_name" style="left:112px; top:1px; width:68px; height:17px; ">환자명:</caption>
- <caption id="caption15" ref="/root/main/wardrecinfo/sex" style="left:308px; top:0px; width:32px; height:20px; font-family:돋움; "/>
- <caption id="caption68" class="search_name" style="left:0px; top:1px; width:55px; height:17px; ">병실:</caption>
- <caption id="caption16" class="search_name" style="left:250px; top:1px; width:58px; height:17px; ">성별:</caption>
- <caption id="caption17" ref="/root/main/wardrecinfo/age" style="left:408px; top:0px; width:37px; height:20px; font-family:돋움; "/>
- <caption id="caption18" class="search_name" style="left:350px; top:1px; width:58px; height:17px; ">나이:</caption>
- <caption id="caption19" class="search_name" style="left:450px; top:1px; width:81px; height:17px; ">등록번호:</caption>
- </group>
- <input id="ipt_bfrecdd" ref="/root/main/wardrecinfo/bfrecdd" class="input_default" disabled="true" visibility="hidden" inputtype="date" style="left:83px; top:45px; width:100px; height:19px; "/>
- <output id="opt_bfrectm" ref="/root/main/wardrecinfo/bfrectm" class="output_fix" visibility="hidden" format="hh:nn" style="left:240px; top:35px; width:50px; height:19px; "/>
- <button id="btn_gnrlinfo" class="btn_sw" group="tab" selected="true" style="left:0px; top:49px; width:100px; height:22px; ">
- <caption>일반정보</caption>
- <toggle case="case1" ev:event="onclick"/>
- </button>
- <button id="btn_bodyasses" class="btn_sw" group="tab" style="left:100px; top:49px; width:100px; height:22px; ">
- <caption>신체사정</caption>
- <toggle case="case2" ev:event="onclick"/>
- </button>
- <button id="btn_edurec" class="btn_sw" visibility="hidden" group="tab" style="left:200px; top:49px; width:100px; height:22px; ">
- <caption>교육요구도</caption>
- <toggle case="case_edurec" ev:event="onclick"/>
- </button>
- <switch id="switch1" style="left:0px; top:70px; width:1194px; height:670px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case1" selected="true" style="left:0px; top:0px; width:1194px; height:674px; ">
- <import id="import1" instancetype="merge" src="..\..\..\emr\wardcareweb\xrw\SMMNW08500_가정간호정보.xrw" style="left:0px; top:0px; width:1194px; height:670px; "/>
- </case>
- <case id="case2" style="left:0px; top:0px; width:1194px; height:673px; border-color:transparent; ">
- <import id="import4" instancetype="merge" src="..\..\..\emr\wardcareweb\xrw\SMMNW08700_신체사정가정간호.xrw" style="left:0px; top:0px; width:1194px; height:670px; "/>
- </case>
- <case id="case_edurec" style="left:0px; top:0px; width:1194px; height:673px; border-color:transparent; ">
- <iviewer id="ivw_edurec" style="left:0px; top:0px; width:1194px; height:670px; "/>
- </case>
- </switch>
- <line id="line64" class="line_3" style="x1:0px; y1:41px; x2:1194px; y2:41px; "/>
- <line id="line13" class="line_1" style="x1:0px; y1:13px; x2:1194px; y2:13px; "/>
- <caption id="cap_bfrecdt" class="cell_1" style="left:0px; top:18px; width:80px; height:23px; vertical-align:middle; ">이전기록일시</caption>
- <caption id="cap_bfrecuser" class="cell_1" style="left:239px; top:18px; width:80px; height:23px; vertical-align:middle; ">이전기록자</caption>
- <output id="opt_bfrecuser" ref="/root/main/wardrecinfo/bfrecuser" class="output_fix" style="left:322px; top:20px; width:98px; height:19px; "/>
- <caption id="cap_recdt" class="cell_1" style="left:424px; top:18px; width:80px; height:23px; vertical-align:middle; ">기록일시</caption>
- <input id="ipt_recdd" ref="/root/main/wardrecinfo/recdd" class="input_default" inputtype="date" style="left:507px; top:20px; width:100px; height:19px; "/>
- <input id="ipt_rectm" ref="/root/main/wardrecinfo/rectm" class="input_default" format="hh:nn" validateformat="true" style="left:610px; top:20px; width:50px; height:19px; "/>
- <caption id="cap_recuser" class="cell_1" style="left:663px; top:18px; width:80px; height:23px; vertical-align:middle; ">기록자</caption>
- <output id="opt_recuser" ref="/root/main/wardrecinfo/recuser" class="output_fix" style="left:746px; top:20px; width:98px; height:19px; "/>
- <caption id="cap_infodnor" class="cell_1" style="left:847px; top:18px; width:80px; height:23px; vertical-align:middle; ">정보제공자</caption>
- <input id="ipt_infodnor" ref="/root/main/wardrecinfo/infooffer" class="input_default" maxlength="10" style="left:930px; top:20px; width:100px; height:19px; "/>
- <button id="btn_save" class="btn2_letter4" visibility="hidden" style="left:1062px; top:49px; width:64px; height:19px; ">
- <caption>임시저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPatgnrlInfo("T");
-
- if(submit("TXMNF00301") == true) {
- grd_famyfact.clearStatus();
- model.setValue("/root/send/wardrecinfo", "");
- messageBox("저장이 ", "I001");
- // //mrfmform formnm,formtypecls, ocrtagprntyn (서식명칭, 서식type, ocrtag출력여부)
- // //fPrint(prntflag) 저장시 prntflag 필요없음, 저장이 필요없으면 'A'
- // //iveiwer.window.javascript.fGetOCRInfo(
- // // iviewer1.window.javascript.fGetOCRInfo("0000001778", "20694", "20070824", "1", "I", "3", "Y");
- //
- // // iviewer1.window.javascript.fGetOCRInfo("0000001778", "20694", "20070824", "1", "I", "3", "Y");
- // // iviewer1.window.javascript.fPrint("A");
- model.setValue("/root/hidden/paminfo/paminfo/exeflag", "U");
- } else {
- messageBox("저장이 실패하였습니다. ", "E");
- }
-
- ]]>
- </script>
- </button>
- <button id="button2" class="btn5_letter4" style="left:1129px; top:49px; width:64px; height:19px; ">
- <caption>인증저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //var instUseYN = model.getValue("/root/codeinfo/codeinfo/codelist[cdgrupid ='172']/cdid");//교육요구도 추가 20091216 김홍점
- var instUseYN =""; //20100510 김홍점 외래 공통 교육요구도 개발에 의한 SPMRJ00300_교육요구도사정 사용안함.소경화itc요청
- //가족사항 : 관계 필수 입력
- for(var i = 1 ; i < grd_famyfact.rows; i++) {
- var rela = model.getValue("/root/main/famyfact[" + i + "]/rela");
- if(rela == "") {
- messageBox("[가족사항 - 관계]는 필수 입력사항입니다.", "I");
- return;
- }
- }
-
- fPatgnrlInfo("C");
- //20100115 JCI 김홍점 교육요구도 적용병원만 데이타 저장 및 인증데이타 생성
- if ( instUseYN =="Y"){
- model.removenode('/root/temp/signdata');
-
- if ( !ivw_edurec.window.javascript.fSave() ){
- return;
- }
-
- var xEduRecPath = '/root/temp/signdata/edurecinfo';
-
- fMNWCareInfoRecMakeForJCI(xEduRecPath, ivw_edurec, "Y");//carecom.js (srcPath, destObj , 응급간호정보조사여부 구분 erYn 'Y' 이어야 퇴원교육요구도가 안보임.)
- }
-
- Sign.certreload = true ;
- if (Sign.signprocess() == true){
- //src="C:\CMCProject\application\webapps\emr\formmngtweb\xrw\SSMRF03800_OCR뷰어.xrw"
- // alert("인증성공" );
- // alert("1. 인증성공여부 false / true \n\n" + Sign.signedInfos[0]); // 인증성공여부 false / true
- // alert("2. 인증할 데이터 정보 (미기록 노드 제거전 fMake_SignData원본 노드) \n\n" + Sign.signedInfos[3]); // 인증할 데이터 정보 (미기록 노드 제거전 원본 노드)
- // alert("2.--> text 데이터(없는 노드 포함된) text 형태 변형 결과 \n\n" + Sign.signedInfos[4]); // [3] 데이터(없는 노드 포함된) text 형태 변형 결과
- // alert("3. 인증할 데이터 정보(미기록 노드 제거된 정보) \n\n" + Sign.signedInfos[1]); // 인증할 데이터 정보(미기록 노드 제거된 정보)
- // alert("3. -->text 데이터(없는 노드 제거된) text 형태 변형 결과 \n\n" + Sign.signedInfos[5]); // ★[1] 데이터(없는 노드 제거된) text 형태 변형 결과 >>> [5]
- // alert("3. -->text --> sign 공인인증 처리후 데이터 \n\n" + Sign.signedInfos[2]); // ★공인인증 처리후 데이터 >>> [2]
-
- model.makeValue("/root/send/wardrecinfo/pid", model.getValue("/root/temp/cond/list/pid"));
- model.makeValue("/root/send/wardrecinfo/indd", model.getValue("/root/temp/cond/list/indd"));
- model.makeValue("/root/send/wardrecinfo/signno", model.getValue("/root/signinfo/signno")); //20090722_SMY변경
- model.makeValue("/root/send/wardrecinfo/cretno", "1");
- model.makeValue("/root/send/wardrecinfo/recdd", model.getValue("/root/main/wardrecinfo/recdd"));
- model.makeValue("/root/send/wardrecinfo/rectm", model.getValue("/root/main/wardrecinfo/rectm"));
- model.makeValue("/root/send/wardrecinfo/recsaveflag", "Y");
- model.makeValue("/root/send/wardrecinfo/signflag", "02");
- model.makeValue("/root/send/wardrecinfo/signgenrflag", "O");
- model.makeValue("/root/send/wardrecinfo/formcd", "0000002493");
- model.makeValue("/root/send/wardrecinfo/orddeptcd", model.getValue("/root/temp/cond/list/orddeptcd"));
- model.makeValue("/root/send/wardrecinfo/orddrid", model.getValue("/root/temp/cond/list/medispclid"));
- model.makeValue("/root/send/wardrecinfo/signbfcnts", Sign.signedInfos[1]);
- model.makeValue("/root/send/wardrecinfo/signaftcnts", Sign.signedInfos[2]);
-
- if(submit("TXMNF00301") == true) {
- grd_famyfact.clearStatus();
- model.setValue("/root/send/wardrecinfo", "");
- messageBox("저장이 ", "I001");
- model.makeValue("/root/hidden/paminfo/paminfo/exeflag", "U");
- fGetInitRecInfo(); //재조회
- fInitEvent();
-
- } else {
- messageBox("저장이 실패하였습니다. ", "E");
- }
- }
- ]]>
- </script>
- </button>
- <input id="ipt_signno" ref="/root/main/wardrecinfo/signno" visibility="hidden" style="left:1065px; top:20px; width:100px; height:20px; "/>
- <select1 id="cmb_bfrecddtm" ref="/root/main/wardrecinfo/bfrecddtm" class="combo_default" navindex="16" appearance="minimal" style="left:83px; top:20px; width:155px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/paminfo/recinfo">
- <label ref="bfrecddtm"/>
- <value ref="recpkspec"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fChgRecHistInfo();
- ]]>
- </script>
- </select1>
- <button id="button1" class="btn2_letter6" style="left:1040px; top:49px; width:86px; height:19px; ">
- <caption>전체기록삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setCareInfoDel("TXMNF00301"); //CareCom.js
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:756px; width:1195px; height:22px; ">
- <line id="line62" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|