123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689 |
- /* ---------------------------------------------------------------------
- 항암관리간호기록
- - Version :
- 1) : Ver.1.00.01
- : Create By dhkim
- : 2009.10.12
- ---------------------------------------------------------------------- */
-
- //글로벌 변수 선언
- var suppdeptcd;//메뉴그룹 사용처(조회할 병동코드)
- var sORDERBYDTL = ""; //그리드 Header 선택시 정렬
- //초기화
- function fInit(){
- //상단정보
- var node = getGlobalVariable("paminfo");
- setCSVToNode("/root/temp/paminfo", node);
-
- //메뉴그룹 사용처(조회할 병동코드)
- suppdeptcd = aezfSetSuppDeptcd();
-
- //조회일자 setting
- model.setValue("/root/main/cond/fromdd", getCurrentDate());
- model.setValue("/root/main/cond/todd", getCurrentDate());
- //상단정보 존재시 개인별선택
- if(model.getValue("/root/temp/paminfo/list/pid") != "") {
- var pid = model.getValue("/root/temp/paminfo/list/pid");
-
- model.setValue("/root/main/cond/reqflag", "1"); //개인별
- model.setValue("/root/main/cond/pid", pid);
- }else{
- model.setValue("/root/main/cond/reqflag", "2"); //기간별
- ipt_pid.disabled = true;
- chk_flag.disabled=true;
- }
-
- model.refresh();
-
- //공통코드 로드
- zbcfGetCodeList(new Array("M0519", "M0520", "M0597"), new Array("/root/init/M0519list", "/root/init/M0520list", "/root/init/M0597list"), true);
-
- //대상자리스트 조회
- fTrgtmanList();
- }
- //대상자리스트 조회
- function fTrgtmanList() {
- //대상자정보및 항암치료정보 초기화
- model.removenode("/root/main/patspclcntinfo");
- model.removenode("/root/main/antirecinfo");
-
- if(fIsSearchValid()){
-
- model.removenode('/root/main/trgtmaninfolist');
- model.makeNode('/root/main/trgtmaninfolist');
-
- model.removenode('/root/send');
- model.makeNode('/root/send');
- model.copyNode("/root/send", "/root/main/cond"); //copyNode
- model.makeValue('/root/send/recflag', 'I');//I:대상자리스트조회, D:항암관리기록 조회
-
- //로그인한 사용자의 부서를 먼저 세팅(조회할병동코드)
- var userDeptcd = getUserInfo('dutplcecd');
- if(userDeptcd != suppdeptcd){
- userDeptcd = suppdeptcd;
- }
-
- model.makeValue('/root/send/wardcd', userDeptcd);
- model.makeValue("/root/send/orderby", model.getValue("/root/main/cond/orderby"));
-
- if(submit("TRMNI03101")){//submit
-
- if(grd_trgtmanlistinfo.rows > 1){
-
- //등록번호, 환자명, S/A merge
- grd_trgtmanlistinfo.mergeCol(grd_trgtmanlistinfo.colRef("pid")) = true;
- grd_trgtmanlistinfo.mergeCol(grd_trgtmanlistinfo.colRef("hngnm")) = true;
- grd_trgtmanlistinfo.mergeCol(grd_trgtmanlistinfo.colRef("sexage")) = true;
- grd_trgtmanlistinfo.mergeCol(grd_trgtmanlistinfo.colRef("orddeptnm")) = false;
- grd_trgtmanlistinfo.mergeCol(grd_trgtmanlistinfo.colRef("orddrnm")) = false;
- grd_trgtmanlistinfo.mergeCol(grd_trgtmanlistinfo.colRef("prtlnm")) = false;
- grd_trgtmanlistinfo.mergeCol(grd_trgtmanlistinfo.colRef("prtldg")) = false;
- grd_trgtmanlistinfo.mergeCol(grd_trgtmanlistinfo.colRef("recdt")) = false;
- grd_trgtmanlistinfo.mergeCol(grd_trgtmanlistinfo.colRef("recrnm")) = false;
- grd_trgtmanlistinfo.refresh();
-
- //2010.05.18 김달현 - 기록정보가 있는 경우 대상자리스트에서 사용자가 직접 선택하여 항암치료정보 조회하도록함
- /*
- //첫번째 열의 환자 기록정보 load
- grd_trgtmanlistinfo.row = 1;//첫번째열 default 선택상태
- var pid = model.getValue('/root/main/trgtmaninfolist/trgtmanlist[' + grd_trgtmanlistinfo.row + ']/pid');
- var indd = model.getValue('/root/main/trgtmaninfolist/trgtmanlist[' + grd_trgtmanlistinfo.row + ']/indd');
- var cretno = model.getValue('/root/main/trgtmaninfolist/trgtmanlist[' + grd_trgtmanlistinfo.row + ']/cretno');
- var recdt = model.getValue('/root/main/trgtmaninfolist/trgtmanlist[' + grd_trgtmanlistinfo.row + ']/recdt');
- fGetAntiRecInfo(pid, indd, cretno, recdt);
- */
-
- }else{//기록정보가 없을때
-
- var pid = model.getValue("/root/temp/paminfo/list/pid");
- var indd, cretno;
-
- //상단정보 있을시 && 조회조건에 상단 환자 세팅시
- if(pid != "" && pid == model.getValue('/root/main/cond/pid')){
- indd = model.getValue("/root/temp/paminfo/list/indd");
- cretno = model.getValue("/root/temp/paminfo/list/cretno");
-
- fGetAntiRecInfo(pid, indd, cretno);
- }
- }
- }
-
- model.refresh();
- }
- }
- //대상자 조회 조건 유효성체크
- function fIsSearchValid(){
- var reqflag = model.getValue('/root/main/cond/reqflag');
- var pid = model.getValue('/root/main/cond/pid');
- var pidflag = model.getValue('/root/main/cond/pidflag');
- var fromdd = model.getValue('/root/main/cond/fromdd');
- var todd = model.getValue('/root/main/cond/todd');
-
- //전체조회 아닐때
- if(pidflag != 'Y'){
- //날짜조건체크
- if(fromdd == ""){
- messageBox('조회 시작일자를 입력하세요.', 'I');
- return false;
- }
- if(todd == ""){
- messageBox('조회 종료일자를 입력하세요.', 'I');
- return false;
- }
- if(!isValidDateTime(fromdd, "YYYYMMDD")){
- messageBox('조회 시작일자를 날짜유형(YYYY-MM-DD)에 맞게 입력하세요.', 'I');
- return false;
- }
- if(!isValidDateTime(todd, "YYYYMMDD")){
- messageBox('조회 종료일자를 날짜유형(YYYY-MM-DD)에 맞게 입력하세요.', 'I');
- return false;
- }
- if(fromdd>todd){
- messageBox('시작일자를 종료일자 이전일자로 입력하세요.','I');
- return false;
- }
- }
-
- //조회구분이 개인별일때 등록번호 필수입력
- if(reqflag == "1" && pid == "") {
- if(pid == ""){
- messageBox("등록번호를 입력하세요.","I");
- model.setFocus("ipt_pid");
- return false;
- }
- }
-
- return true;
- }
- //20091016 dhkim
- //항암관리기록 대상자정보 및 항암치료정보 세팅
- function fGetAntiRecInfo(pid, indd, cretno, recdt){
- //상단정보 세팅 2010-06-04 회의에서 제외
- // fSetPatInfoAntiRec(pid, indd, cretno, "I");//ordtype : 임시로 I만 넘김.. 외래인경우도 상단 올려야 하는지 확인필요
-
- //항암기록조회
- model.removenode('/root/main/antirecinfo');
- //model.makeNode('/root/main/antirecinfo');
- model.removenode('/root/main/patspclcntinfo');
- //model.makeNode('/root/main/patspclcntinfo');
-
- model.removenode('/root/send');
- model.makeValue('/root/send/pid', pid);
- model.makeValue('/root/send/indd', indd);
- model.makeValue('/root/send/cretno', cretno);
- model.makeValue('/root/send/recdt', recdt);
- model.makeValue('/root/send/recflag', 'D');//I:대상자리스트조회, D:항암관리기록 조회
-
- //로그인한 사용자의 부서를 먼저 세팅(조회할병동코드)
- var userDeptcd = getUserInfo('dutplcecd');
- if(userDeptcd != suppdeptcd){
- userDeptcd = suppdeptcd;
- }
-
- model.makeValue('/root/send/wardcd', userDeptcd);
-
- if(submit('TRMNI03103')){
-
- //신규기록여부에 따라 기록일 색 변경(신규일때는 주황색으로 보여짐)
- var isnew = model.getValue('/root/main/antirecinfo/isnew');
- if(isnew == 'Y'){
- opt_recdt.attribute('color') = '#ff6600';//주황
- }else{
- opt_recdt.attribute('color') = '#4D4D4D';//검정
- }
-
- var antirecinfoCnt = getNodesetCount("/root/main/antirecinfo");
-
-
- if(antirecinfoCnt > 0){
- //항암치료정보 조회내역에 따라 텍스트 박스 활성화 및 비활성화 처리
- fSetIptBoxDisabled();
- }
- }
-
- model.refresh();
- }
- //20091031 dhkim
- //체크박스 선택시 코드 순서가 뒤짚히는 부분에 대해 코드순 정렬
- function fSortCheckboxData(chkData){
- var dataArr = chkData.split(' ');
- var dataStr = "";
- if(dataArr.length > 0){
- var tmp;
- for(var i = dataArr.length; i >= 0; i--){
- for(var j = 0; j < i; j++){
- if(dataArr[j] > dataArr[j+1]){
- tmp = dataArr[j];
- dataArr[j] = dataArr[j+1];
- dataArr[j+1] = tmp;
- }
- }
- }
-
- for(var i = 0; i < dataArr.length; i++){
-
- if(dataArr.length -1 == i){
- dataStr += dataArr[i];
- }else{
- dataStr += dataArr[i] + ' ';
- }
- }
- }
-
- return dataStr;
- }
- //20091103 dhkim
- //체크박스 코드값을 명칭으로 변경
- function fChangeChkboxCodeToName(chkboxCode){
- var chkboxArr = chkboxCode.split(' ');
- var chkNameStr = '';
- for(var i = 0; i < chkboxArr.length; i++){
- chkNameStr += model.getValue('/root/init/M0519list/M0519[cdid="' + chkboxArr[i] + '"]/cdnm') + ' ';
- }
-
- return chkNameStr;
- }
- //20091021 dhkim
- //항암치료정보 조회내역에 따라 텍스트 박스 활성화 및 비활성화 처리
- function fSetIptBoxDisabled(){
- //지난항암제투여후발생증상에 기타 체크시 text입력창(txt_bfsympetc) 활성화 및 값 초기화처리
- var bfsymp = model.getValue('/root/main/antirecinfo/bfsymp');
-
- //체크박스 체크내역 코드값 순서로 정렬(체크박스 데이터가 클릭 이벤트 발생할때마다 순서가 뒤바뀜)
- bfsymp = fSortCheckboxData(bfsymp);
- model.setValue('/root/main/antirecinfo/bfsymp', bfsymp);
-
- //체크박스 체크내역 코드값을 명칭으로 변경후 명칭노드에 저장
- var bfsympnm = fChangeChkboxCodeToName(bfsymp);
- model.setValue('/root/main/antirecinfo/bfsympnm', bfsympnm);
-
- if(isSearchString(bfsymp, "99") == true){
- txt_bfsympetc.disabled = false;
- }else{
- model.setValue('/root/main/antirecinfo/bfsympetc', '');
- txt_bfsympetc.disabled = true;
- }
-
- //간호기록 특이사항 체크시 text입력창(txt_carerecetc) 비활성화 및 값 초기화처리
- var carerecyn = model.getValue('/root/main/antirecinfo/carerecyn');
- if(carerecyn.length > 2){
- carerecyn = carerecyn.substring(carerecyn.length -1);
- }
- if(carerecyn == 'Y'){
- model.setValue('/root/main/antirecinfo/carerecetc', '');
- txt_carerecetc.disabled = true;
- }else{
- txt_carerecetc.disabled = false;
- }
-
- //이번항암제투여과민반응없음 체크시 과민증상(chk_prestsymp), 기타text입력창(txt_prestsympetc) 비활성화 및 값 초기화처리
- var prestsympyn = model.getValue('/root/main/antirecinfo/prestsympyn');
- if(prestsympyn.length > 2){
- prestsympyn = prestsympyn.substring(prestsympyn.length -1);
- }
- if(prestsympyn == 'Y'){
- model.setValue('/root/main/antirecinfo/prestsymp', '');
- model.setValue('/root/main/antirecinfo/prestsympetc', '');
-
- chk_prestsymp.disabled = true;
- txt_prestsympetc.disabled = true;
- }else{
- chk_prestsymp.disabled = false;
- txt_prestsympetc.disabled = false;
- }
-
- //이번항암제투여과민반응증상 기타 체크시 text입력창(txt_prestsympetc) 활성화 및 값 초기화처리
- var prestsymp = model.getValue('/root/main/antirecinfo/prestsymp');
-
- //체크박스 체크내역 코드값 순서로 정렬(체크박스 데이터가 클릭 이벤트 발생할때마다 순서가 뒤바뀜)
- prestsymp = fSortCheckboxData(prestsymp);
- model.setValue('/root/main/antirecinfo/prestsymp', prestsymp);
-
- //체크박스 체크내역 코드값을 명칭으로 변경후 명칭노드에 저장
- var prestsympnm = fChangeChkboxCodeToName(prestsymp);
- model.setValue('/root/main/antirecinfo/prestsympnm', prestsympnm);
-
- if(isSearchString(prestsymp, '99') == true){
- txt_prestsympetc.disabled = false;
- }else{
- model.setValue('/root/main/antirecinfo/prestsympetc', '');
- txt_prestsympetc.disabled = true;
- }
-
- //항암제중단여부에 Y선택시
- //중단사유(cmb_antstoprs), 기타입력text(ipt_antstoprsetc), 잔여항암제종류(ipt_antremvol), 처리내용(ipt_antremrec)
- //입력창 활성화 및 값 초기화처리
- var antstopyn = model.getValue('/root/main/antirecinfo/antstopyn');
- if(antstopyn == 'Y'){
- cmb_antstoprs.disabled = false;
- ipt_antremvol.disabled = false;
- ipt_antremrec.disabled = false;
-
- //중단사유(cmb_antstoprs)에 기타 입력시에만 기타입력text(ipt_antstoprsetc)활성화
- var antstoprs = model.getValue('/root/main/antirecinfo/antstoprs');
- if(isSearchString(antstoprs, '99') == true){
- ipt_antstopetc.disabled = false;
- }else{
- ipt_antstopetc.disabled = true;
- }
- }else{
- model.setValue('/root/main/antirecinfo/antstoprs', '');
- model.setValue('/root/main/antirecinfo/antstopetc', '');
- model.setValue('/root/main/antirecinfo/antremvol', '');
- model.setValue('/root/main/antirecinfo/antremrec', '');
-
- cmb_antstoprs.disabled = true;
- ipt_antstopetc.disabled = true;
- ipt_antremvol.disabled = true;
- ipt_antremrec.disabled = true;
- }
-
- model.refresh();
- }
- //20091020 dhkim
- //항암관리기록 대상자상단정보 세팅
- function fSetPatInfoAntiRec(pid, indd, cretno, ordtype) {
- var instcd = getUserInfo("dutplceinstcd");
- var orddd = indd;
-
- //현재상단정보와 같은 환자이면 리턴
- if(pid == model.getValue("/root/temp/paminfo/list/pid"))
- return;
-
- if(pid != '' && indd != '' && cretno != '' & ordtype != ''){
- model.removeNodeset("/root/temp/paminfo");
- model.makeNode("/root/temp/paminfo");
-
- //입원내역만 상단 올림 (임시.. 외래인경우도 상단 올려야 하는지 확인필요)
- condparam = ordtype + "▦" + pid + "▦" + indd + "▦" + cretno + "▦" + instcd+ "▦" + orddd;
- setParameter("condparam", condparam);
- modal("SPMMO08900", "", "", "", "SPMMO08900", "", "");
-
- var node = getGlobalVariable("paminfo");
- setCSVToNode("/root/temp/paminfo", node);
- }
- }
- /* --------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : 우편번호 팝업 호출 */
- /* param : zipFlag - 1:원무주소등록, 2:실제주소등록 */
- /* return : */
- /* --------------------------------------------------*/
- function fZipPopUpCall(zipFlag){
- var rcv_zipcdhead_path;
- var rcv_zipcdfoot_path;
- var rcv_seqno_path;
- var rcv_address_path;
- var term;
- //var term = model.getValue("/root/main/aidmembinfo/aidmembdetlinfo/addr");
- var condition = "combination";
-
- if(zipFlag == '1'){
- rcv_zipcdhead_path = '/root/main/patspclcntinfo/rgstzipcd1';
- rcv_zipcdfoot_path = '/root/main/patspclcntinfo/rgstzipcd2';
- rcv_seqno_path = '/root/main/patspclcntinfo/rgstzipcdseqno';
- rcv_address_path = '/root/main/patspclcntinfo/rgstheadaddr';
- }else if(zipFlag == '2'){
- rcv_zipcdhead_path = '/root/main/patspclcntinfo/realzipcd1';
- rcv_zipcdfoot_path = '/root/main/patspclcntinfo/realzipcd2';
- rcv_seqno_path = '/root/main/patspclcntinfo/realzipseq';
- rcv_address_path = '/root/main/patspclcntinfo/realheadaddr';
- }else{
- return;
- }
-
- term = model.getValue(rcv_address_path);
- antifOpenZipCodeList("combination", term, rcv_zipcdhead_path, rcv_zipcdfoot_path, rcv_seqno_path, rcv_address_path);
-
- if(zipFlag == '1'){
- model.setFocus("ipt_rgstaddr");
- }else if(zipFlag == '2'){
- model.setFocus("ipt_realaddr");
- }
-
- model.refresh();
- }
- //저장, 수정시 필수 항목 체크
- function fAntiCureinfoSave() {
- var pid = model.getValue('/root/main/antirecinfo/pid');
- if(pid == ''){
- messageBox('환자기록정보가 존재하지 않아 저장할 수 없습니다.', 'E');
- return false;
- }
-
- //현재기록일자가 최근기록일자보다 이전기록이면 저장불가
- var curRecDt = model.getValue('/root/main/antirecinfo/recdt');
- var bfRecDt = model.getValue('/root/main/antirecinfo/bfrecdt');
- if(curRecDt < bfRecDt){
- messageBox('현재 저장하실 기록내역보다 이후의 기록이 존재하므로 저장할 수', 'I004');
- return false;
- }
-
- var objContNm;
- //boxter, chemoport 기록여부 체크
- var boxter = model.getValue('/root/main/antirecinfo/boxter');
- var chemoport = model.getValue('/root/main/antirecinfo/chemoport');
- if(boxter == ''){
- messageBox('boxter를 선택하세요', 'E');
- objContNm = fControlFind("/root/main/antirecinfo/boxter");
- if(objContNm != "") {
- model.setFocus(objContNm);
- }
- return false;
- }
- if(chemoport == ''){
- messageBox('chemoport를 선택하세요', 'E');
- objContNm = fControlFind("/root/main/antirecinfo/chemoport");
- if(objContNm != "") {
- model.setFocus(objContNm);
- }
- return false;
- }
- /* 2010-07-02 수정
- + 항암관리기록_0629 관련 수정
- 특이사항은 필수 입력사항이 아닙니다. 특이사항 입력을 하지 않아도 저장이 되어야 합니다
-
- var remark = model.getValue('/root/main/patspclcntinfo/remark');
- if(remark == ''){
- messageBox('특이 사항(전달사항)을 입력하세요.', 'E');
- objContNm = fControlFind("/root/main/patspclcntinfo/remark");
- if(objContNm != "") {
- model.setFocus(objContNm);
- }
- return false;
- }
-
- */
- /* 2010-06-14 수정
- 항암치료 정보 작성없이 상단의 대상자 정보와 특이사항만 저장 후 인증저장해도 저장이 되어야 함
- //[지난항암제 투여후 집에서 발생된 증상]
- //기타체크시 입력박스체크
- var bfsymp = model.getValue('/root/main/antirecinfo/bfsymp');
- var bfsympetc = model.getValue('/root/main/antirecinfo/bfsympetc');
- if(isSearchString(bfsymp, "99") == true){
- if(bfsympetc == ''){
- messageBox('지난 항암제 투여 후 집에서 발생된 증상 사항을 입력하세요.', 'E');
- objContNm = fControlFind("/root/main/antirecinfo/bfsympetc");
- if(objContNm != "") {
- model.setFocus(objContNm);
- }
- return false;
- }
- }else{
- if(bfsympetc != ''){
- messageBox('지난 항암제 투여 후 집에서 발생된 증상 기타에 체크 하세요.', 'E');
- objContNm = fControlFind("/root/main/antirecinfo/bfsympetc");
- if(objContNm != "") {
- model.setFocus(objContNm);
- }
- return false;
- }
- }
-
- //[간호기록]
- //특이사항 체크시 입력박스체크
- var carerecyn = model.getValue('/root/main/antirecinfo/carerecyn');
- var carerecetc = model.getValue('/root/main/antirecinfo/carerecetc');
- if(carerecyn.length > 2){
- carerecyn = carerecyn.substring(carerecyn.length - 1);
- }
- if(carerecyn != 'Y'){//carerecyn==N
- if(carerecetc == ''){
- messageBox('간호기록 사항을 작성하세요.', 'E');
- objContNm = fControlFind("/root/main/antirecinfo/carerecetc");
- if(objContNm != "") {
- model.setFocus(objContNm);
- }
- return false;
- }
- }else{//carerecyn == Y
- if(carerecetc != ''){
- messageBox('간호기록 특이사항에 체크해제 하세요.', 'E');
- objContNm = fControlFind("/root/main/antirecinfo/carerecyn");
- if(objContNm != "") {
- model.setFocus(objContNm);
- }
- return false;
- }
- }
- model.setValue('/root/main/antirecinfo/carerecyn', carerecyn);
-
- //[이번항암제투여 중 과민반응]
- //1. 과민반응 없음 체크 해제시 증상 입력 체크
- //2. 기타체크시 입력박스체크
- var prestsympyn = model.getValue('/root/main/antirecinfo/prestsympyn');
- if(prestsympyn.length > 2){
- prestsympyn = prestsympyn.substring(prestsympyn.length - 1);
- }
- var prestsymp = model.getValue('/root/main/antirecinfo/prestsymp');
- var prestsympetc = model.getValue('/root/main/antirecinfo/prestsympetc');
- if(prestsympyn != 'Y'){
- if(prestsymp == ''){
- messageBox('이번 항암제 투여 중 과민반응 증상에 체크하세요.', 'E');
- objContNm = fControlFind("/root/main/antirecinfo/prestsymp");
- if(objContNm != "") {
- model.setFocus(objContNm);
- }
- return false;
- }
- if(isSearchString(prestsymp, "99") == true && prestsympetc == ''){
- messageBox('이번 항암제 투여 중 과민반응 입력필드에 기타사항을 입력하세요.', 'E');
- objContNm = fControlFind("/root/main/antirecinfo/prestsympetc");
- if(objContNm != "") {
- model.setFocus(objContNm);
- }
- return false;
- }
- }else{
- if(prestsymp != ''){
- messageBox('이번 항암제 투여 중 과민반응 증상에 체크해제 하세요.', 'E');
- objContNm = fControlFind("/root/main/antirecinfo/prestsymp");
- if(objContNm != "") {
- model.setFocus(objContNm);
- }
- return false;
- }else if(prestsympetc != ''){
- messageBox('이번 항암제 투여 중 과민반응 입력필드에 기타사항을 삭제하세요.', 'E');
- objContNm = fControlFind("/root/main/antirecinfo/prestsympetc");
- if(objContNm != "") {
- model.setFocus(objContNm);
- }
- return false;
- }
- }
- model.setValue('/root/main/antirecinfo/prestsympyn', prestsympyn);
-
- //[활력증상]
- //필수입력체크(혈압, 맥박, 호흡, 체온)
- var bp1 = model.getValue('/root/main/antirecinfo/bp1');
- var bp2 = model.getValue('/root/main/antirecinfo/bp2');//혈압
- var pulse = model.getValue('/root/main/antirecinfo/pulse');//맥박
- var breth = model.getValue('/root/main/antirecinfo/breth');//호흡
- var bdtp1 = model.getValue('/root/main/antirecinfo/bdtp1');
- var bdtp2 = model.getValue('/root/main/antirecinfo/bdtp2');//체온
- if(bp1 == ''){
- messageBox('혈압을 입력하세요.', 'E');
- objContNm = fControlFind("/root/main/antirecinfo/bp1");
- if(objContNm != "") {
- model.setFocus(objContNm);
- }
- return false;
- }
- if(bp2 == ''){
- messageBox('혈압을 입력하세요.', 'E');
- objContNm = fControlFind("/root/main/antirecinfo/bp2");
- if(objContNm != "") {
- model.setFocus(objContNm);
- }
- return false;
- }
-
- if(pulse == ''){
- messageBox('맥박을 입력하세요.', 'E');
- objContNm = fControlFind("/root/main/antirecinfo/pulse");
- if(objContNm != "") {
- model.setFocus(objContNm);
- }
- return false;
- }
- if(breth == ''){
- messageBox('호흡을 입력하세요.', 'E');
- objContNm = fControlFind("/root/main/antirecinfo/breth");
- if(objContNm != "") {
- model.setFocus(objContNm);
- }
- return false;
- }
- if(bdtp1 == ''){
- messageBox('체온을 입력하세요.', 'E');
- objContNm = fControlFind("/root/main/antirecinfo/bdtp1");
- if(objContNm != "") {
- model.setFocus(objContNm);
- }
- return false;
- }
- if(bdtp2 == ''){
- messageBox('체온을 입력하세요.', 'E');
- objContNm = fControlFind("/root/main/antirecinfo/bdtp2");
- if(objContNm != "") {
- model.setFocus(objContNm);
- }
- return false;
- }
-
- //[항암제중단]
- //중단여부에 따른 사유입력체크
- //사유입력에 기타 입력시 입력박스체크
- //잔여항암제종류 및 양 입력체크
- //처리내용 입력체크
- var antstopyn = model.getValue('/root/main/antirecinfo/antstopyn');
- var antstoprs = model.getValue('/root/main/antirecinfo/antstoprs');
- var antstopetc = model.getValue('/root/main/antirecinfo/antstopetc');
- var antremvol = model.getValue('/root/main/antirecinfo/antremvol');
- var antremrec = model.getValue('/root/main/antirecinfo/antremrec');
- if(antstopyn == 'N'){
- if(antstoprs != ''){
- messageBox('항암제중단 여부를 확인하세요.', 'E');
- objContNm = fControlFind("/root/main/antirecinfo/antstoprs");
- if(objContNm != "") {
- model.setFocus(objContNm);
- }
- return false;
- }
- if(antstopetc != ''){
- messageBox('항암제중단 여부를 확인하세요.', 'E');
- objContNm = fControlFind("/root/main/antirecinfo/antstopetc");
- if(objContNm != "") {
- model.setFocus(objContNm);
- }
- return false;
- }
- if(antremvol != ''){
- messageBox('항암제중단 여부를 확인하세요.', 'E');
- objContNm = fControlFind("/root/main/antirecinfo/antremvol");
- if(objContNm != "") {
- model.setFocus(objContNm);
- }
- return false;
- }
- if(antremrec != ''){
- messageBox('항암제중단 여부를 확인하세요.', 'E');
- objContNm = fControlFind("/root/main/antirecinfo/antremrec");
- if(objContNm != "") {
- model.setFocus(objContNm);
- }
- return false;
- }
- }else if(antstopyn == 'Y'){
- if(antstoprs == ''){
- messageBox('항암제중단 사유를 선택하세요.', 'E');
- objContNm = fControlFind("/root/main/antirecinfo/antstoprs");
- if(objContNm != "") {
- model.setFocus(objContNm);
- }
- return false;
- }
- if(isSearchString(antstoprs, "99") == true && antstopetc == ''){
- messageBox('항암제중단 내역의 기타사항을 입력하세요.', 'E');
- objContNm = fControlFind("/root/main/antirecinfo/antstopetc");
- if(objContNm != "") {
- model.setFocus(objContNm);
- }
- return false;
- }
- if(antremvol == ''){
- messageBox('항암제중단 내역의 잔여 항암제 종류 및 양을 입력하세요.', 'E');
- objContNm = fControlFind("/root/main/antirecinfo/antremvol");
- if(objContNm != "") {
- model.setFocus(objContNm);
- }
- return false;
- }
- if(antremrec == ''){
- messageBox('항암제중단 내역의 처리내용을 입력하세요.', 'E');
- objContNm = fControlFind("/root/main/antirecinfo/antremrec");
- if(objContNm != "") {
- model.setFocus(objContNm);
- }
- return false;
- }
- }else{
- messageBox('항암제중단여부를 입력하세요.', 'E');
- objContNm = fControlFind("/root/main/antirecinfo/antstopyn");
- if(objContNm != "") {
- model.setFocus(objContNm);
- }
- return false;
- }
- */
- return true;
- }
- //---------------------
- // control 찾기
- //---------------------
- function fControlFind(xPath) {
- var childObjCnt = document.controls.length;
- var childObj;
-
- for (var i=0; i < childObjCnt; i++) {
- childObj = document.controls.item(i);
- var ref = childObj.attribute("ref");
-
- if (ref == xPath) {
- return childObj.attribute("id");
- break;
- }
- }
- return "";
- }
- function fMake_SignData(){
- // Sign.addnode("/root/main/signSaveData");
- // ▶ 기록 관련 인스턴스 전체를 copy, 인증에 저장할 모든 Instance AddNode한다.
- Sign.addnode("/root/main/cond");
- Sign.addnode("/root/main/antirecinfo");
- Sign.addnode("/root/main/patspclcntinfo" );
- }
- //삭제유효여부체크
- function fIsDeleteValid(){
- //환자재원정보 체크
- if(fIsValidPatientSaveInfo("D") == false)
- return false;
-
- var userid = getUserInfo("userid");
- var recrid = model.getValue("/root/main/antirecinfo/recrid");
- var recrnm = model.getValue("/root/main/antirecinfo/recrnm");
- if(userid != recrid){
- messageBox("기록을 작성하신 '" + recrnm + "(" + recrid + ")'님이 해당기록을 삭제하실 수 있습니다.", "I");
- return false;
- }
- return true;
- }
- //환자재원정보 체크
- function fIsValidPatientSaveInfo(saveFlag){
- var pid = model.getValue('/root/main/antirecinfo/pid');
- var hngnm = model.getValue('/root/main/patspclcntinfo/hngnm');
- if(pid == null || pid == ""){
- //대상자리스트에 정보가 없는경우
- pid = model.getValue("/root/main/patspclcntinfo/pid");
- }
- //해당기록일자의 indd가 현재 환자정보의 indd보다 과거일자이면 저장불가
- model.removenode('/root/hidden');
- model.makeNode('/root/hidden');
- model.removenode('/root/send');
- model.makeValue('/root/send/pid', pid);
-
- //로그인한 사용자의 부서를 먼저 세팅(조회할병동코드)
- var userDeptcd = getUserInfo('dutplcecd');
- if(userDeptcd != suppdeptcd){
- userDeptcd = suppdeptcd;
- }
-
- var saveMsg = '저장';
- if(saveFlag == 'D'){
- saveMsg = '삭제';
- }
-
- model.makeValue('/root/send/wardcd', userDeptcd);
-
- if(submit('TRMNI03102')){
- var indd = model.getValue('/root/hidden/patininfo/indd');
- var cretno = model.getValue('/root/hidden/patininfo/cretno');
- var dschnotiyn = model.getValue('/root/hidden/patininfo/dschnotiyn');
- var dschjudgprcsstat = model.getValue('/root/hidden/patininfo/dschjudgprcsstat');
- var currecyn = model.getValue('/root/hidden/patininfo/currecyn');
- var prerecyn = model.getValue('/root/hidden/patininfo/prerecyn');
- var maxrecdt = model.getValue('/root/hidden/patininfo/maxrecdt');
- var recdt = model.getValue('/root/hidden/patininfo/recdt');
- var prerecdt = model.getValue('/root/main/antirecinfo/recdt');
-
- if(indd == '' || cretno == ''){
- messageBox('(' + hngnm + ') 환자는 현재 재원중이 아니므로 '+saveMsg+'할 수', 'I004');
- return false;
- }
-
- if(dschjudgprcsstat == 'B'){
- messageBox('(' + hngnm + ') 환자는 현재 심사중 상태이므로 '+saveMsg+'할 수','I004');
- return false;
- }
-
- if(dschjudgprcsstat == 'C' || dschjudgprcsstat == 'E'){
- messageBox('(' + hngnm + ') 환자는 현재 심사완료 상태이므로 '+saveMsg+'할 수','I004');
- return false;
- }
-
- if(dschnotiyn == 'Y'){
- messageBox('(' + hngnm + ') 환자는 현재 간호사퇴실정리완료 상태이므로 '+saveMsg+'할 수','I004');
- return false;
- }
-
- if(saveFlag != 'D'){
-
- //현재재원내역과 항암기록 수진키가 일치하지 않는 경우
- if(indd != model.getValue('/root/main/antirecinfo/indd') && cretno != model.getValue('/root/main/antirecinfo/cretno')){
-
- //현재 재원상태이고 해당일자기록이 있는 환자의 과거 기록 조회후 저장하려고 할때
- if(currecyn == 'Y'){
- var ret = messageBox('(' + hngnm + ') 환자의 ' + recdt.toDate().getDateFormat("YYYY-MM-DD") + '일자 기록내역이 존재합니다.\r\n'
- +'입력하신 ' + prerecdt.toDate().getDateFormat("YYYY-MM-DD") + '일자 기록을 ' + recdt.toDate().getDateFormat("YYYY-MM-DD") + '일자 기록으로 수정하시겠습니까?', 'Q');
-
- if(ret == 6){
- fSignCopySave("U");//과거기록수정내역을 기존내역에 수정저장
- }
- return false;
- }
-
- if(currecyn == 'N' && prerecyn == 'Y'){
-
- //현재 재원상태이고 해당일자기록이 없는 환자의 과거 기록 조회후 저장하려고 할때 메세지 리턴후 yes이면 이전기록 copy하여 신규저장
- var msg = '(' + hngnm + ') 환자의 ' + maxrecdt.toDate().getDateFormat("YYYY-MM-DD") + ' 일자 기록을 복사하여 '
- + getCurrentDate().toDate().getDateFormat("YYYY-MM-DD") + ' 일자로 신규기록 하시겠습니까?';
- var ret = messageBox(msg, 'Q');
-
- if(ret == 6){
- fSignCopySave("I");//복사하여 신규저장
- }
- return false;
-
- }else{
- messageBox('(' + hngnm + ') 환자의 현재 재원정보와 저장하려는 기록내역의 재원정보가 일치하지 않으므로 저장할 수', 'I004');
- return false;
- }
- }
- }else{
-
- //삭제의 경우 현재 수진일자와 일치하는 기록내역만 삭제하도록 함
- var recPid = model.getValue('/root/main/antirecinfo/pid');
- var recIndd = model.getValue('/root/main/antirecinfo/indd');
- var recCretno = model.getValue('/root/main/antirecinfo/cretno');
- if(pid != recPid || indd != recIndd || cretno != recCretno){
- messageBox('해당 기록은 ' + hngnm + '님의 현재 재원일자 ' + recdt.toDate().getDateFormat("YYYY-MM-DD") + '의 기록이 아니므로 삭제하실 수 없습니다.' , 'I');
- return false;
- }
- }
- }
-
- return true;
- }
- //과거기록을 복사하여 현재재원내역에 신규저장 : I
- //과거기록을 복사하여 현재재원내역에 수정저장 : U
- function fSignCopySave(saveflag){
- var pid = model.getValue('/root/main/antirecinfo/pid');
- var hngnm = model.getValue('/root/main/antirecinfo/hngnm');
- var recdt = model.getValue('/root/main/antirecinfo/recdt');
- var indd = model.getValue('/root/main/antirecinfo/indd');
- var cretno = model.getValue('/root/main/antirecinfo/cretno');
- var orddrid = model.getValue('/root/main/antirecinfo/orddrid');
- var orddeptcd = model.getValue('/root/main/antirecinfo/orddeptcd');
- var remark = model.getValue('/root/main/patspclcntinfo/remark');
-
- var fromdd = model.getValue('/root/main/cond/fromdd');
- var todd = model.getValue('/root/main/cond/todd');
- var pidflag = model.getValue('/root/main/cond/pidflag');
-
- var isnew = "";
- var savemsg = "";
- var signno = '';//인증번호
- var formcd = '0900006695';//항암간호기록서식코드
-
- //기록 신규,수정 저장
- if(fAntiCureinfoSave() == false)
- return; //필수입력체크
-
-
- if(saveflag == "I"){//신규저장
- isnew = "Y";
- recdt = getCurrentDate();
- indd = model.getValue("/root/hidden/patininfo/indd"); //현재원정보로 변경
- cretno = model.getValue("/root/hidden/patininfo/cretno"); //현재원정보로 변경
-
- }else if(saveflag == "U"){//수정저장
- isnew = "N";
- indd = model.getValue("/root/hidden/patininfo/indd"); //현재원정보로 변경
- cretno = model.getValue("/root/hidden/patininfo/cretno"); //현재원정보로 변경
- recdt = model.getValue("/root/hidden/patininfo/recdt"); //현재원내역의 기록날짜
- }
-
- //로그인한 사용자의 부서를 먼저 세팅(조회할병동코드)
- var userDeptcd = getUserInfo('dutplcecd');
- if(userDeptcd != suppdeptcd){
- userDeptcd = suppdeptcd;
- }
-
- //복사저장전 해당환자의 현재 프로토콜정보 및 환자기본정보를 조회하여 저장할 node를 새로 설정한다.
- model.removenode('/root/main/currentinfo');
- model.makenode('/root/main/currentinfo');
-
- model.removenode('/root/send');
- model.makeValue('/root/send/pid', pid);
- model.makeValue('/root/send/indd', indd);
- model.makeValue('/root/send/cretno', cretno);
- model.makeValue('/root/send/wardcd', userDeptcd);
- model.makeValue('/root/send/recdt', recdt);
- model.makeValue('/root/send/recflag', "D");
-
- if(!submit('TRMNI03104')){
- messageBox('복사저장을 위한 환자 현재 프로토콜 정보 조회를 실패하였습니다.', 'E');
- return;
- }else{
-
- //대상자정보(진료과, 주치의, 진단명, 전프로토콜) 노드 새로세팅
- model.setValue('/root/main/antirecinfo/orddeptnm', model.getValue('/root/main/currentinfo/antirecinfo/orddeptnm'));//진료과
- model.setValue('/root/main/antirecinfo/orddrnm', model.getValue('/root/main/currentinfo/antirecinfo/orddrnm'));//주치의
- model.setValue('/root/main/antirecinfo/sickclsnm', model.getValue('/root/main/currentinfo/antirecinfo/sickclsnm'));//진단명
-
- //항암치료정보(프로토콜정보만) 노드 새로세팅
- model.setValue('/root/main/antirecinfo/prtlnm', model.getValue('/root/main/currentinfo/antirecinfo/prtlnm'));//프로토콜명
- model.setValue('/root/main/antirecinfo/recdt', model.getValue('/root/main/currentinfo/antirecinfo/recdt'));//기록일자
- model.setValue('/root/main/antirecinfo/recrnm', model.getValue('/root/main/currentinfo/antirecinfo/recrnm'));//기록자
- model.setValue('/root/main/antirecinfo/recrid', model.getValue('/root/main/currentinfo/antirecinfo/recrid'));//recrid
- model.setValue('/root/main/antirecinfo/prtlstrdd', model.getValue('/root/main/currentinfo/antirecinfo/prtlstrdd'));//시작일자
- model.setValue('/root/main/antirecinfo/termnm', model.getValue('/root/main/currentinfo/antirecinfo/termnm'));//적용기간
- model.setValue('/root/main/antirecinfo/drugstage', model.getValue('/root/main/currentinfo/antirecinfo/drugstage'));//항암차수 line
- model.setValue('/root/main/antirecinfo/drugcycle', model.getValue('/root/main/currentinfo/antirecinfo/drugcycle'));//항암차수 cycle
- model.setValue('/root/main/antirecinfo/pid', model.getValue('/root/main/currentinfo/antirecinfo/pid'));//pid
- model.setValue('/root/main/antirecinfo/indd', model.getValue('/root/main/currentinfo/antirecinfo/indd'));//indd
- model.setValue('/root/main/antirecinfo/cretno', model.getValue('/root/main/currentinfo/antirecinfo/cretno'));//cretno
- model.setValue('/root/main/antirecinfo/cpgappno', model.getValue('/root/main/currentinfo/antirecinfo/cpgappno'));//cpgappno
- model.setValue('/root/main/antirecinfo/prtlcd', model.getValue('/root/main/currentinfo/antirecinfo/prtlcd'));//prtlcd
- model.setValue('/root/main/antirecinfo/prtlstrdd', model.getValue('/root/main/currentinfo/antirecinfo/prtlstrdd'));//prtlstrdd
- //model.setValue('/root/main/antirecinfo/termno', model.getValue('/root/main/currentinfo/antirecinfo/termno'));//termno
- model.setValue('/root/main/antirecinfo/prtldg', model.getValue('/root/main/currentinfo/antirecinfo/prtldg'));//prtldg
-
- //fstrgstrid, fstrgstdt, signno 새로세팅
- model.setValue('/root/main/antirecinfo/fstrgstrid', model.getValue('/root/main/currentinfo/antirecinfo/fstrgstrid'));//fstrgstrid
- model.setValue('/root/main/antirecinfo/fstrgstdt', model.getValue('/root/main/currentinfo/antirecinfo/fstrgstdt'));//fstrgstdt
- model.setValue('/root/main/antirecinfo/signno', model.getValue('/root/main/currentinfo/antirecinfo/signno'));//signno
- }
-
- signno = model.getValue('/root/main/antirecinfo/signno');
-
- model.removenode('/root/send');
-
- //조회조건
- var condData = "pid"
- + "▦" + "indd"
- + "▦" + "cretno"
- + "▦" + "recdt"
- + "▦" + "recflag"
- + "▦" + "fromdd"
- + "▦" + "todd"
- + "▦" + "pidflag"
- + "▦" + "isnew"
- + "▦" + "saveflag"
- + "▩";
- condData += pid
- + "▦" + indd
- + "▦" + cretno
- + "▦" + recdt
- + "▦" + "D"
- + "▦" + fromdd
- + "▦" + todd
- + "▦" + pidflag
- + "▦" + isnew
- + "▦" + saveflag
- + "▩";
- model.makeValue('/root/send/cond', condData);
-
- //항암기록정보
- model.makeNode('/root/send/antirecinfo');
- model.copyNode('/root/send/antirecinfo', '/root/main/antirecinfo');
-
- //특이사항
- var spclData = "pid"
- + "▦" + "remark"
- + "▦" + "rgstzipcd1"
- + "▦" + "rgstzipcd2"
- + "▦" + "rgstzipcdseqno"
- + "▦" + "rgstaddr"
- + "▦" + "realzipcd1"
- + "▦" + "realzipcd2"
- + "▦" + "realzipseq"
- + "▦" + "realaddr"
- + "▦" + "hometel"
- + "▦" + "mpphontel"
- + "▦" + "procerhometel"
- + "▦" + "procermpphontel"
- + "▩";
- spclData += pid
- + "▦" + remark
- + "▦" + model.getValue('/root/main/patspclcntinfo/rgstzipcd1')
- + "▦" + model.getValue('/root/main/patspclcntinfo/rgstzipcd2')
- + "▦" + model.getValue('/root/main/patspclcntinfo/rgstzipcdseqno')
- + "▦" + model.getValue('/root/main/patspclcntinfo/rgstaddr')
- + "▦" + model.getValue('/root/main/patspclcntinfo/realzipcd1')
- + "▦" + model.getValue('/root/main/patspclcntinfo/realzipcd2')
- + "▦" + model.getValue('/root/main/patspclcntinfo/realzipseq')
- + "▦" + model.getValue('/root/main/patspclcntinfo/realaddr')
- + "▦" + model.getValue('/root/main/patspclcntinfo/hometel')
- + "▦" + model.getValue('/root/main/patspclcntinfo/mpphontel')
- + "▦" + model.getValue('/root/main/patspclcntinfo/procerhometel')
- + "▦" + model.getValue('/root/main/patspclcntinfo/procermpphontel')
- + "▩";
- model.makeValue('/root/send/patspclcntinfo', spclData);
-
- //전자서명 호출시 인증저장 버튼을 누늘때마다 인증서가 뜨도록 처리
- Sign.certreload = true ;
- // 인증 로직 호출
- if(Sign.signprocess() == true){
-
- // ▶ 전자인증 관련 환자 인적 정보를 보내줌.
- var wSigninfo = "pid" +"▦" // 01 등록번호
- + "orddd" +"▦" // 02 입원일자(입원,응급)/진료일자(외래)
- + "cretno" +"▦" // 03 생성번호
- + "signno" +"▦" // 04 서명번호(인증번호)
- + "recdd" +"▦" // 05 실제 기록이 이루어진 기록일자
- + "rectm" +"▦" // 06 실제 기록이 이루어진 기록시간
- + "recsaveflag" +"▦" // 07 전자서명 인적정보 변경여부(기록일시 변경되는 경우 : Y, 그외 : N)
- + "signflag" +"▦" // 08 서명자료구분(01 : 진료, 02 : 간호, 03 : LIS, 04 : 진료지원)
- + "signgenrflag" +"▦" // 09 외래/입원/응급/DSC구분(코드정의서 M0010 참조)
- + "formcd" +"▦" // 10 각 기록지별 서식코드
- + "orddeptcd" +"▦" // 11 진료부서코드
- + "orddrid" +"▦" // 12 진료의사ID
- + "signbfcnts" +"▦" // 13 ▶ 인증할 데이터 정보(미기록 노드 제거된 정보)
- + "signaftcnts" +"▦" // 14 ▶ 공인인증 처리후 데이터
- + "screenid" +"▦" // 15 ▶ 화면아이디
- + "certflag" +"▩" // 16 ▶ 인증여부( T : 임시저장, C : 인증저장)
-
- + pid +"▦" // 01 등록번호
- + indd +"▦" // 02 입원일자(입원,응급)/진료일자(외래)
- + cretno +"▦" // 03 생성번호
- + signno +"▦" // 04 서명번호(인증번호)
- + getCurrentDate() +"▦" // 05 실제 기록이 이루어진 기록일자
- + getCurrentTime() +"▦" // 06 실제 기록이 이루어진 기록시간
- + "Y" +"▦" // 07 전자서명 인적정보 변경여부(기록일시 변경되는 경우 : Y, 그외 : N)
- + "02" +"▦" // 08 서명자료구분(01 : 진료, 02 : 간호, 03 : LIS, 04 : 진료지원)
- + "D" +"▦" // 09 외래/입원/응급/DSC구분(코드정의서 M0010 참조)
- + formcd +"▦" // 10 각 기록지별 서식코드 (emr.mrfmform)
- + orddeptcd +"▦" // 11 진료부서코드
- + orddrid +"▦" // 12 진료의사ID
- + Sign.signedInfos[1] +"▦" // 13 ▶ 인증할 데이터 정보(미기록 노드 제거된 정보)
- + Sign.signedInfos[2] +"▦" // 14 ▶ 공인인증 처리후 데이터
- + getScreenID() +"▦" // 15 ▶ 화면아이디
- + "C" +"▩"; // 16 ▶ 인증여부( T : 임시저장, C : 인증저장)
- model.makeValue("/root/send/signinfo" , wSigninfo);
- } else {
- return ;
- }
-
- if(submit('TXMNI03103')){
- messageBox('저장하였습니다.', 'I');
- fTrgtmanList();//대상자리스트 재조회
- }
- }
- //인증저장
- function fSignSave(saveflag) {
- var pid = model.getValue('/root/main/antirecinfo/pid');
- var hngnm = model.getValue('/root/main/antirecinfo/hngnm');
- var recdt = model.getValue('/root/main/antirecinfo/recdt');
- var indd = model.getValue('/root/main/antirecinfo/indd');
- var cretno = model.getValue('/root/main/antirecinfo/cretno');
- var orddrid = model.getValue('/root/main/antirecinfo/orddrid');
- var orddeptcd = model.getValue('/root/main/antirecinfo/orddeptcd');
- var remark = model.getValue('/root/main/patspclcntinfo/remark');
- var fromdd = model.getValue('/root/main/cond/fromdd');
- var todd = model.getValue('/root/main/cond/todd');
- var pidflag = model.getValue('/root/main/cond/pidflag');
- var isnew = model.getValue('/root/main/antirecinfo/isnew');
- var savemsg = "";
- var signno = '';//인증번호
- var formcd = '0900006695';//항암간호기록서식코드
-
- if(saveflag == 'D'){//기록삭제
-
- if(fIsValidPatientSaveInfo('D') == false)
- return; //환자재원정보체크
-
- if(fIsDeleteValid() == false)
- return; //삭제유효여부체크
-
- savemsg = " 삭제";
- signno = model.getValue('/root/main/antirecinfo/signno');
-
- }else{//기록 신규,수정 저장
-
- if(fIsValidPatientSaveInfo('S') == false)
- return; //환자재원정보체크
-
- if(fAntiCureinfoSave() == false)
- return; //필수입력체크
-
- //2010-07-05 간호기록에 내용 미입력시 특이사항 없음 자동처리.
- if(trim(model.getValue("/root/main/antirecinfo/carerecetc")).length == 0){
- chk_carerecyn.value="Y";
- fSetIptBoxDisabled();
- }
-
- //2010-07-05 이번 항암제투여 중 과민반응 미 선택시 과민반응없음 자동처리.
- if(trim(chk_prestsymp.value).length == 0){
- chk_prestsympyn.value="Y";
- fSetIptBoxDisabled();
- }
-
- if(isnew == 'Y'){
- savemsg = " 신규등록";
- saveflag = "I";
- }else{
- savemsg = " 수정";
- signno = model.getValue('/root/main/antirecinfo/signno');
- saveflag = "U";
- }
- }
-
- if(messageBox(''+hngnm+'환자의 ' + recdt.toDate().getDateFormat("YYYY-MM-DD") + '일자 항암기록을' + savemsg + '하시겠습니까?', 'Q') == 7)
- return;
-
- model.removenode('/root/send');
-
- //조회조건
- var condData = "pid"
- + "▦" + "indd"
- + "▦" + "cretno"
- + "▦" + "recdt"
- + "▦" + "recflag"
- + "▦" + "fromdd"
- + "▦" + "todd"
- + "▦" + "pidflag"
- + "▦" + "isnew"
- + "▦" + "saveflag"
- + "▩";
- condData += pid
- + "▦" + indd
- + "▦" + cretno
- + "▦" + recdt
- + "▦" + "D"
- + "▦" + fromdd
- + "▦" + todd
- + "▦" + pidflag
- + "▦" + isnew
- + "▦" + saveflag
- + "▩";
- model.makeValue('/root/send/cond', condData);
-
- //항암기록정보
-
- //체온단위, 항암제중단사유 콤보 라벨값 노드 추가
- model.makeValue("/root/main/antirecinfo/bdtp2nm", model.getValue("/root/init/M0520list/M0520[cdid='"+model.getValue("/root/main/antirecinfo/bdtp2")+"']/cdnm"));
- model.makeValue("/root/main/antirecinfo/antstoprsnm", model.getValue("/root/init/M0597list/M0597[cdid='"+model.getValue("/root/main/antirecinfo/antstoprs")+"']/cdnm"));
-
- model.makeNode('/root/send/antirecinfo');
- model.copyNode('/root/send/antirecinfo', '/root/main/antirecinfo');
-
- //특이사항
- var spclData = "pid"
- + "▦" + "remark"
- + "▦" + "rgstzipcd1"
- + "▦" + "rgstzipcd2"
- + "▦" + "rgstzipcdseqno"
- + "▦" + "rgstaddr"
- + "▦" + "realzipcd1"
- + "▦" + "realzipcd2"
- + "▦" + "realzipseq"
- + "▦" + "realaddr"
- + "▦" + "hometel"
- + "▦" + "mpphontel"
- + "▦" + "procerhometel"
- + "▦" + "procermpphontel"
- + "▩";
- spclData += pid
- + "▦" + remark
- + "▦" + model.getValue('/root/main/patspclcntinfo/rgstzipcd1')
- + "▦" + model.getValue('/root/main/patspclcntinfo/rgstzipcd2')
- + "▦" + model.getValue('/root/main/patspclcntinfo/rgstzipcdseqno')
- + "▦" + model.getValue('/root/main/patspclcntinfo/rgstaddr')
- + "▦" + model.getValue('/root/main/patspclcntinfo/realzipcd1')
- + "▦" + model.getValue('/root/main/patspclcntinfo/realzipcd2')
- + "▦" + model.getValue('/root/main/patspclcntinfo/realzipseq')
- + "▦" + model.getValue('/root/main/patspclcntinfo/realaddr')
- + "▦" + model.getValue('/root/main/patspclcntinfo/hometel')
- + "▦" + model.getValue('/root/main/patspclcntinfo/mpphontel')
- + "▦" + model.getValue('/root/main/patspclcntinfo/procerhometel')
- + "▦" + model.getValue('/root/main/patspclcntinfo/procermpphontel')
- + "▩";
- model.makeValue('/root/send/patspclcntinfo', spclData);
-
- //전자서명 호출시 인증저장 버튼을 누늘때마다 인증서가 뜨도록 처리
- Sign.certreload = true ;
- // 인증 로직 호출
- if(Sign.signprocess() == true){
- // alert(Sign.signedInfos[1]);
-
- // ▶ 전자인증 관련 환자 인적 정보를 보내줌.
- var wSigninfo = "pid" +"▦" // 01 등록번호
- + "orddd" +"▦" // 02 입원일자(입원,응급)/진료일자(외래)
- + "cretno" +"▦" // 03 생성번호
- + "signno" +"▦" // 04 서명번호(인증번호)
- + "recdd" +"▦" // 05 실제 기록이 이루어진 기록일자
- + "rectm" +"▦" // 06 실제 기록이 이루어진 기록시간
- + "recsaveflag" +"▦" // 07 전자서명 인적정보 변경여부(기록일시 변경되는 경우 : Y, 그외 : N)
- + "signflag" +"▦" // 08 서명자료구분(01 : 진료, 02 : 간호, 03 : LIS, 04 : 진료지원)
- + "signgenrflag" +"▦" // 09 외래/입원/응급/DSC구분(코드정의서 M0010 참조)
- + "formcd" +"▦" // 10 각 기록지별 서식코드
- + "orddeptcd" +"▦" // 11 진료부서코드
- + "orddrid" +"▦" // 12 진료의사ID
- + "signbfcnts" +"▦" // 13 ▶ 인증할 데이터 정보(미기록 노드 제거된 정보)
- + "signaftcnts" +"▦" // 14 ▶ 공인인증 처리후 데이터
- + "screenid" +"▦" // 15 ▶ 화면아이디
- + "certflag" +"▩" // 16 ▶ 인증여부( T : 임시저장, C : 인증저장)
-
- + pid +"▦" // 01 등록번호
- + indd +"▦" // 02 입원일자(입원,응급)/진료일자(외래)
- + cretno +"▦" // 03 생성번호
- + signno +"▦" // 04 서명번호(인증번호)
- + getCurrentDate() +"▦" // 05 실제 기록이 이루어진 기록일자
- + getCurrentTime() +"▦" // 06 실제 기록이 이루어진 기록시간
- + "Y" +"▦" // 07 전자서명 인적정보 변경여부(기록일시 변경되는 경우 : Y, 그외 : N)
- + "02" +"▦" // 08 서명자료구분(01 : 진료, 02 : 간호, 03 : LIS, 04 : 진료지원)
- + "D" +"▦" // 09 외래/입원/응급/DSC구분(코드정의서 M0010 참조)
- + formcd +"▦" // 10 각 기록지별 서식코드 (emr.mrfmform)
- + orddeptcd +"▦" // 11 진료부서코드
- + orddrid +"▦" // 12 진료의사ID
- + Sign.signedInfos[1] +"▦" // 13 ▶ 인증할 데이터 정보(미기록 노드 제거된 정보)
- + Sign.signedInfos[2] +"▦" // 14 ▶ 공인인증 처리후 데이터
- + getScreenID() +"▦" // 15 ▶ 화면아이디
- + "C" +"▩"; // 16 ▶ 인증여부( T : 임시저장, C : 인증저장)
- model.makeValue("/root/send/signinfo" , wSigninfo);
- } else {
- return ;
- }
-
- // alert(instance1.selectNodesXml('/root/send'));
- if(submit('TXMNI03102')){
- messageBox(savemsg + '하였습니다.', 'I');
- fTrgtmanList();//대상자리스트 재조회
- }
- }
- /**
- * @desc : 환자등록번호 조회 팝업
- * @
- * @param : refPid - 환자번호 참고 node path
- * refPnm - 환자명 참고 node path
- * @return :
- * @authur : 이은영 2008.03.18
- * @---------------------------------------------------
- */
- function fGetPid(refPid )
- {
- model.removeNodeset("/root/main/patinfo/pathistlist");
- model.makeNode("/root/main/patinfo/patinfolist");
- //조회건수가 1건일 경우 팝업창을 바로 닫는다.
- model.makeValue("/root/hidden/tmp/pidpopupinfo/checkfnexam", "1");
- model.makeValue("/root/hidden/tmp/pidpopupinfo/autoflag", "Y");
- model.makeValue("/root/hidden/tmp/pidpopupinfo/pid", "");
-
- if( model.getValue("/root/hidden/tmp/pidpopupinfo/srchcond") == '' ){
- model.makeValue("/root/hidden/tmp/pidpopupinfo/srchcond", '1');
- }
- modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/hidden/tmp/pidpopupinfo", "/root/send");
- model.resetInstanceNode("/root/source");
- //환자번호 copy
- var popupendflag = model.getValue("/root/main/popupendflag");
- if (popupendflag == "ok")
- {
- model.makeValue(refPid, model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.refresh();
-
- fTrgtmanList();
- }
- }
- //신규 저장을 위한 초기화
- function fSaveInit(){
- if("" != model.getValue("/root/main/antirecinfo/isnew")){
- model.setValue("/root/main/antirecinfo/isnew", "Y");
- model.setValue("/root/main/antirecinfo/recdt",getCurrentDate() +getCurrentTime());
- opt_recdt.attribute('color') = '#ff6600';//주황
- model.refreshpart("/root/main/antirecinfo/recdt");
-
- model.setValue("/root/main/antirecinfo/recrnm", getUserName());
- model.refreshpart("/root/main/antirecinfo/recrnm");
- model.setValue("/root/main/antirecinfo/recrid", getUserId());
-
- model.setValue("/root/main/antirecinfo/bfsymp",'');
- model.setValue("/root/main/antirecinfo/bfsympnm",'');
- model.setValue("/root/main/antirecinfo/bfsympetc",'');
- txt_bfsympetc.disabled = true;
- model.setValue("/root/main/antirecinfo/prestsympyn",'');
- model.setValue("/root/main/antirecinfo/prestsymp",'');
- model.setValue("/root/main/antirecinfo/prestsympnm",'');
- model.setValue("/root/main/antirecinfo/prestsympetc",'');
- txt_prestsympetc.disabled = true;
- model.setValue("/root/main/antirecinfo/carerecyn",'');
- model.setValue("/root/main/antirecinfo/carerecetc",'');
- model.setValue("/root/main/antirecinfo/bp1",'');
- model.setValue("/root/main/antirecinfo/bp2",'');
- model.setValue("/root/main/antirecinfo/pulse",'');
- model.setValue("/root/main/antirecinfo/breth",'');
- model.setValue("/root/main/antirecinfo/bdtp1",'');
- model.setValue("/root/main/antirecinfo/bdtp2",'');
- model.setValue("/root/main/antirecinfo/antstopyn",'N');
- cmb_antstoprs.disabled = true;
- model.setValue("/root/main/antirecinfo/antstoprs",'');
- model.setValue("/root/main/antirecinfo/antstopetc",'');
- ipt_antstopetc.disabled = true;
- model.setValue("/root/main/antirecinfo/antremvol",'');
- ipt_antremvol.disabled = true;
- model.setValue("/root/main/antirecinfo/antremrec",'');
- ipt_antremrec.disabled = true;
- model.setValue("/root/main/antirecinfo/signno",'');
- model.setValue("/root/main/antirecinfo/bfrecdt",'');
- model.setValue("/root/main/antirecinfo/fstrgstdt",'');
- model.setValue("/root/main/antirecinfo/fstrgstrid",'');
-
- model.refresh();
- }
- }
- /* 일반저장 사용안한다고함
- //저장
- function fSave(){
- if(fAntiCureinfoSave() == false)
- return; //필수입력체크
-
- var pid = model.getValue('/root/main/antirecinfo/pid');
- var hngnm = model.getValue('/root/main/antirecinfo/hngnm');
- var recdt = model.getValue('/root/main/antirecinfo/recdt');
- var indd = model.getValue('/root/main/antirecinfo/indd');
- var cretno = model.getValue('/root/main/antirecinfo/cretno');
- var remark = model.getValue('/root/main/patspclcntinfo/remark');
- var fromdd = model.getValue('/root/main/cond/fromdd');
- var todd = model.getValue('/root/main/cond/todd');
- var pidflag = model.getValue('/root/main/cond/pidflag');
- var isnew = model.getValue('/root/main/antirecinfo/isnew');
-
- var bfsymp = model.getValue('/root/main/antirecinfo/bfsymp');
- var prestsymp = model.getValue('/root/main/antirecinfo/prestsymp');
- // alert('지난항암제투여후 발생증상 == ' + bfsymp);
- // alert('이번항암제투여후 발생증상 == ' + prestsymp);
-
- var savemsg = "";
-
- if(isnew == 'Y'){
- savemsg = " 신규등록 하시겠습니까?";
- }else{
- savemsg = " 수정하시겠습니까?";
- }
-
- if(messageBox(''+hngnm+'환자의 ' + recdt.toDate().getDateFormat("YYYY-MM-DD") + '일자 항암기록을' + savemsg, 'Q') == 7)
- return;
-
-
- model.removenode('/root/send');
-
-
- //조회조건
- var condData = "pid"
- + "▦" + "indd"
- + "▦" + "cretno"
- + "▦" + "recdt"
- + "▦" + "recflag"
- + "▦" + "fromdd"
- + "▦" + "todd"
- + "▦" + "pidflag"
- + "▩";
- condData += pid
- + "▦" + indd
- + "▦" + cretno
- + "▦" + recdt
- + "▦" + "D"
- + "▦" + fromdd
- + "▦" + todd
- + "▦" + pidflag
- + "▩";
- model.makeValue('/root/send/cond', condData);
-
-
- //항암기록정보
- model.makeNode('/root/send/antirecinfo');
- model.copyNode('/root/send/antirecinfo', '/root/main/antirecinfo');
-
-
- //특이사항
- var spclData = "pid"
- + "▦" + "remark"
- + "▦" + "rgstzipcd1"
- + "▦" + "rgstzipcd2"
- + "▦" + "rgstzipcdseqno"
- + "▦" + "rgstaddr"
- + "▦" + "realzipcd1"
- + "▦" + "realzipcd2"
- + "▦" + "realaddr"
- + "▦" + "hometel"
- + "▦" + "mpphontel"
- + "▦" + "procerhometel"
- + "▦" + "procermpphontel"
- + "▩";
- spclData += pid
- + "▦" + remark
- + "▦" + model.getValue('/root/main/patspclcntinfo/rgstzipcd1')
- + "▦" + model.getValue('/root/main/patspclcntinfo/rgstzipcd2')
- + "▦" + model.getValue('/root/main/patspclcntinfo/rgstzipcdseqno')
- + "▦" + model.getValue('/root/main/patspclcntinfo/rgstaddr')
- + "▦" + model.getValue('/root/main/patspclcntinfo/realzipcd1')
- + "▦" + model.getValue('/root/main/patspclcntinfo/realzipcd2')
- + "▦" + model.getValue('/root/main/patspclcntinfo/realaddr')
- + "▦" + model.getValue('/root/main/patspclcntinfo/hometel')
- + "▦" + model.getValue('/root/main/patspclcntinfo/mpphontel')
- + "▦" + model.getValue('/root/main/patspclcntinfo/procerhometel')
- + "▦" + model.getValue('/root/main/patspclcntinfo/procermpphontel')
- + "▩";
- model.makeValue('/root/send/patspclcntinfo', spclData);
-
-
- // alert(instance1.selectNodesXml('/root/send'));
- if(submit('TXMNI03101')){
- fTrgtmanList();//대상자리스트 재조회
- }
- }
- */
- /*
- //초기화 버튼 클릭시
- function fReset(){
- var btn = messageBox("초기화를 ", "Q004");
- if (btn == '6') {
- model.resetInstanceNode("/root/main/trgtmaninfolist2");
- //초기값셋팅
- tar_bfsymp.disabled = true;
- tar_react.disabled = true;
- cmb_anticncr.disabled = true;
- ipt_anticncr.disabled = true;
- ipt_anticncrvol.disabled = true;
- ipt_anticncrtret.disabled = true;
- model.setValue("/root/main/trgtmaninfolist2/anticureinfo/discontinuyn","1");
- model.refresh();
- } else if (btn == '7') {
- return;
- }
- }//fReset END
- // 대상자리스트 더블클릭시 대상자정보, 항암치료정보 mapping
- function fSendParam_20091016() {
- model.resetInstanceNode("/root/main/trgtmaninfolist2");
- var listRow = grd_trgtmanlistinfo.row;
- var listNodePath = "/root/main/trgtmaninfolist/trgtmanlist";
- var infoNodePath = "/root/main/trgtmaninfolist2/trgtmaninfo";
- var antiNodePath = "/root/main/trgtmaninfolist2/anticureinfo";
- var usernm = getUserInfo("usernm"); //기록자
- model.copyNode("/root/temp1/aaa", "/root/main/trgtmaninfolist/trgtmanlist["+listRow+"]"); //수정여부체크(대상자정보)
- if(model.getValue("/root/main/trgtmaninfolist/trgtmanlist["+listRow+"]/pid") !="") {
- model.makeValue(infoNodePath+"/recdt", model.getValue(listNodePath+"["+listRow+"]/recdt"));
- model.makeValue(infoNodePath+"/pid", model.getValue(listNodePath+"["+listRow+"]/pid"));
- model.makeValue(infoNodePath+"/hngnm", model.getValue(listNodePath+"["+listRow+"]/hngnm"));
- model.makeValue(infoNodePath+"/sexage", model.getValue(listNodePath+"["+listRow+"]/sexage"));
- model.makeValue(infoNodePath+"/rrgstno1", model.getValue(listNodePath+"["+listRow+"]/rrgstno1"));
- model.makeValue(infoNodePath+"/orddeptnm", model.getValue(listNodePath+"["+listRow+"]/orddeptnm"));
- model.makeValue(infoNodePath+"/orddrnm", model.getValue(listNodePath+"["+listRow+"]/orddrnm"));
- model.makeValue(infoNodePath+"/sickclsnm", model.getValue(listNodePath+"["+listRow+"]/sickclsnm"));
- model.makeValue(infoNodePath+"/infostatus", model.getValue(listNodePath+"["+listRow+"]/infostatus"));
- model.makeValue(infoNodePath+"/cretno", model.getValue(listNodePath+"["+listRow+"]/cretno"));
- model.makeValue(infoNodePath+"/indd", model.getValue(listNodePath+"["+listRow+"]/indd"));
- model.makeValue(infoNodePath+"/recdt", model.getValue(listNodePath+"["+listRow+"]/recdt"));
- model.makeValue(infoNodePath+"/rgstaddr", model.getValue(listNodePath+"["+listRow+"]/rgstaddr"));
- model.makeValue(infoNodePath+"/realaddr", model.getValue(listNodePath+"["+listRow+"]/realaddr"));
- model.makeValue(infoNodePath+"/hometel", model.getValue(listNodePath+"["+listRow+"]/hometel"));
- model.makeValue(infoNodePath+"/mpphontel", model.getValue(listNodePath+"["+listRow+"]/mpphontel"));
- model.makeValue(infoNodePath+"/procerhometel", model.getValue(listNodePath+"["+listRow+"]/procerhometel"));
- model.makeValue(infoNodePath+"/procermpphontel", model.getValue(listNodePath+"["+listRow+"]/procermpphontel"));
- model.makeValue(infoNodePath+"/boxter", model.getValue(listNodePath+"["+listRow+"]/boxter"));
- model.makeValue(infoNodePath+"/chemoport", model.getValue(listNodePath+"["+listRow+"]/chemoport"));
- model.makeValue(infoNodePath+"/anticncrprtlbfr", model.getValue(listNodePath+"["+1+"]/anticncrprtlbfr"));
- if(model.getValue(infoNodePath+"/boxter") == ""
- ||model.getValue(infoNodePath+"/chemoport") == "") {
- model.setValue(infoNodePath+"/boxter","1");
- model.setValue(infoNodePath+"/chemoport","1");
- }
-
- model.makeValue(antiNodePath+"/prtlnm", model.getValue(listNodePath+"["+listRow+"]/prtlnm"));
- model.makeValue(antiNodePath+"/appdd", model.getValue(listNodePath+"["+listRow+"]/appdd"));
- model.makeValue(antiNodePath+"/acptterm", model.getValue(listNodePath+"["+listRow+"]/acptterm"));
- model.makeValue(antiNodePath+"/drugstage", model.getValue(listNodePath+"["+listRow+"]/drugstage"));
- model.makeValue(antiNodePath+"/drugcycle", model.getValue(listNodePath+"["+listRow+"]/drugcycle"));
-
- if(model.getValue(listNodePath+"["+listRow+"]/recdd") =="") {
- model.makeValue(antiNodePath+"/recdd", getCurrentDate().substr(0,4)+"-"+getCurrentDate().substr(4,2)+
- "-"+getCurrentDate().substr(6,2));
- model.makeValue(antiNodePath+"/recuser", usernm);
- }
- else{
- model.makeValue(antiNodePath+"/recdd", model.getValue(listNodePath+"["+listRow+"]/recdd"));
- model.makeValue(antiNodePath+"/recuser", model.getValue(listNodePath+"["+listRow+"]/recuser"));
- }
-
- if(model.getValue(listNodePath+"["+listRow+"]/discontinuyn") == "Y") {
- cmb_anticncr.disabled = false;
- if(model.getValue(listNodePath+"["+listRow+"]/discontinucmb") =="99") {
- ipt_anticncr.disabled = false;
- ipt_anticncrvol.disabled =false;
- ipt_anticncrtret.disabled =false;
- }
- }
- else {
- model.makeValue(antiNodePath+"/discontinuyn","N");
- cmb_anticncr.disabled = true;
- ipt_anticncr.disabled = true;
- ipt_anticncrvol.disabled =true;
- ipt_anticncrtret.disabled =true;
- }
-
- model.makeValue(antiNodePath+"/pid", model.getValue(listNodePath+"["+listRow+"]/pid"));
- model.makeValue(antiNodePath+"/antistatus", model.getValue(listNodePath+"["+listRow+"]/antistatus"));
- model.makeValue(antiNodePath+"/antirecdt", model.getValue(listNodePath+"["+listRow+"]/antirecdt"));
- model.makeValue(antiNodePath+"/cpgappno", model.getValue(listNodePath+"["+listRow+"]/cpgappno"));
-
- if(model.getValue(listNodePath+"["+listRow+"]/antistatus") == "U") {
- model.makeValue(antiNodePath+"/bfsymp", model.getValue(listNodePath+"["+listRow+"]/bfsymp"));
- if(isSearchString(model.getValue(antiNodePath+"/bfsymp"), "99") == true)
- {
- tar_bfsymp.disabled=false;
- }
- else
- {
- model.setValue(antiNodePath+"/bfsymprec","");
- tar_bfsymp.disabled=true;
- }
-
- model.makeValue(antiNodePath+"/bfsymprec", model.getValue(listNodePath+"["+listRow+"]/bfsymprec"));
- if(model.getValue(listNodePath+"["+listRow+"]/carerec") == "") {
- model.makeValue(antiNodePath+"/carerecyn","Y");
- tar_rec.disabled = true;
- }
- else{
- model.makeValue(antiNodePath+"/carerec",model.getValue(listNodePath+"["+listRow+"]/carerec"));
- tar_rec.disabled = false;
- }
-
- if(model.getValue(listNodePath+"["+listRow+"]/prestsymp") == "") {
- model.makeValue(antiNodePath+"/rejtreact","Y");
- chk_symp2.disabled = true;
- tar_react.disabled = true;
-
- }
- else{
- model.makeValue(antiNodePath+"/prestsymp",model.getValue(listNodePath+"["+listRow+"]/prestsymp"));
- model.makeValue(antiNodePath+"/prestsymprec",model.getValue(listNodePath+"["+listRow+"]/prestsymprec"));
- if(isSearchString(model.getValue(antiNodePath+"/prestsymp"), "99") == true) {
- chk_symp2.disabled = false;
- tar_react.disabled = false;
- }
- }
-
- model.makeValue(antiNodePath+"/bp", model.getValue(listNodePath+"["+listRow+"]/bp"));
- model.makeValue(antiNodePath+"/bp2", model.getValue(listNodePath+"["+listRow+"]/bp2"));
- model.makeValue(antiNodePath+"/pulse", model.getValue(listNodePath+"["+listRow+"]/pulse"));
- model.makeValue(antiNodePath+"/breth", model.getValue(listNodePath+"["+listRow+"]/breth"));
- model.makeValue(antiNodePath+"/bdtp", model.getValue(listNodePath+"["+listRow+"]/bdtp"));
- model.makeValue(antiNodePath+"/bdtp2", model.getValue(listNodePath+"["+listRow+"]/bdtp2"));
-
- model.makeValue(antiNodePath+"/discontinuyn", model.getValue(listNodePath+"["+listRow+"]/discontinuyn"));
- model.makeValue(antiNodePath+"/discontinucmb", model.getValue(listNodePath+"["+listRow+"]/discontinucmb"));
- model.makeValue(antiNodePath+"/discontinurec", model.getValue(listNodePath+"["+listRow+"]/discontinurec"));
- model.makeValue(antiNodePath+"/discontinuvol", model.getValue(listNodePath+"["+listRow+"]/discontinuvol"));
- model.makeValue(antiNodePath+"/discontinutret", model.getValue(listNodePath+"["+listRow+"]/discontinutret"));
- model.makeValue(antiNodePath+"/spcffact", model.getValue(listNodePath+"["+listRow+"]/spcffact"));
- }
- }
- model.copyNode("/root/send/reqdata", "/root/main/cond"); //copyNode
- model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/trgtmaninfolist/trgtmanlist["+listRow+"]/pid"));
- submit("TRMNI03102"); //submit
- model.refresh();
- model.makeValue("/root/main/trgtmaninfolist2/trgtmaninfo/anticncrprtlbfr",model.getValue("/root/hidden1/anticncrprtlbfr/bfprtlnm"));
- model.refresh();
- }
- // 대상자정보, 항암치료정보 mapping
- function infoset() {
- var listNodePath = "/root/main/trgtmaninfolist/trgtmanlist";
- var infoNodePath = "/root/main/trgtmaninfolist2/trgtmaninfo";
- var antiNodePath = "/root/main/trgtmaninfolist2/anticureinfo";
- var usernm = getUserInfo("usernm"); //기록자
-
- if(model.getValue("/root/send/reqdata/pid") != "") {
- model.makeValue(infoNodePath+"/pid", model.getValue(listNodePath+"["+1+"]/pid"));
- model.makeValue(infoNodePath+"/hngnm", model.getValue(listNodePath+"["+1+"]/hngnm"));
- model.makeValue(infoNodePath+"/sexage", model.getValue(listNodePath+"["+1+"]/sexage"));
- model.makeValue(infoNodePath+"/rrgstno1", model.getValue(listNodePath+"["+1+"]/rrgstno1"));
- model.makeValue(infoNodePath+"/orddeptnm", model.getValue(listNodePath+"["+1+"]/orddeptnm"));
- model.makeValue(infoNodePath+"/orddrnm", model.getValue(listNodePath+"["+1+"]/orddrnm"));
- model.makeValue(infoNodePath+"/sickclsnm", model.getValue(listNodePath+"["+1+"]/sickclsnm"));
- model.makeValue(infoNodePath+"/cretno", model.getValue(listNodePath+"["+1+"]/cretno"));
- model.makeValue(infoNodePath+"/indd", model.getValue(listNodePath+"["+1+"]/indd"));
- model.makeValue(infoNodePath+"/infostatus", model.getValue(listNodePath+"["+1+"]/infostatus"));
- model.makeValue(infoNodePath+"/recdt", model.getValue(listNodePath+"["+1+"]/recdt"));
- model.makeValue(infoNodePath+"/rgstaddr", model.getValue(listNodePath+"["+1+"]/rgstaddr"));
- model.makeValue(infoNodePath+"/realaddr", model.getValue(listNodePath+"["+1+"]/realaddr"));
- model.makeValue(infoNodePath+"/hometel", model.getValue(listNodePath+"["+1+"]/hometel"));
- model.makeValue(infoNodePath+"/mpphontel", model.getValue(listNodePath+"["+1+"]/mpphontel"));
- model.makeValue(infoNodePath+"/procerhometel", model.getValue(listNodePath+"["+1+"]/procerhometel"));
- model.makeValue(infoNodePath+"/procermpphontel", model.getValue(listNodePath+"["+1+"]/procermpphontel"));
- model.makeValue(infoNodePath+"/boxter", model.getValue(listNodePath+"["+1+"]/boxter"));
- model.makeValue(infoNodePath+"/chemoport", model.getValue(listNodePath+"["+1+"]/chemoport"));
- model.makeValue(infoNodePath+"/recdt", model.getValue(listNodePath+"["+1+"]/recdt"));
- model.makeValue(infoNodePath+"/anticncrprtlbfr", model.getValue(listNodePath+"["+1+"]/anticncrprtlbfr"));
-
- if(model.getValue(infoNodePath+"/boxter") == ""
- ||model.getValue(infoNodePath+"/chemoport") == "") {
- model.setValue(infoNodePath+"/boxter","1");
- model.setValue(infoNodePath+"/chemoport","1");
- }
-
- model.makeValue(antiNodePath+"/prtlnm", model.getValue(listNodePath+"["+1+"]/prtlnm"));
- model.makeValue(antiNodePath+"/appdd", model.getValue(listNodePath+"["+1+"]/appdd"));
- model.makeValue(antiNodePath+"/acptterm", model.getValue(listNodePath+"["+1+"]/acptterm"));
- model.makeValue(antiNodePath+"/drugstage", model.getValue(listNodePath+"["+1+"]/drugstage"));
- model.makeValue(antiNodePath+"/drugcycle", model.getValue(listNodePath+"["+1+"]/drugcycle"));
- model.makeValue(antiNodePath+"/recuser", model.getValue(listNodePath+"["+1+"]/recuser"));
- model.makeValue(antiNodePath+"/cpgappno", model.getValue(listNodePath+"["+1+"]/cpgappno"));
- model.makeValue(antiNodePath+"/pid", model.getValue(listNodePath+"["+1+"]/pid"));
- model.makeValue(antiNodePath+"/indd", model.getValue(listNodePath+"["+1+"]/indd"));
- model.makeValue(antiNodePath+"/cretno", model.getValue(listNodePath+"["+1+"]/cretno"));
- model.makeValue(antiNodePath+"/antistatus", model.getValue(listNodePath+"["+1+"]/antistatus"));
- model.makeValue(antiNodePath+"/antirecdt", model.getValue(listNodePath+"["+1+"]/antirecdt"));
-
- if(model.getValue(listNodePath+"["+1+"]/recdd") =="") {
- model.makeValue(antiNodePath+"/recdd", getCurrentDate().substr(0,4)+"-"+getCurrentDate().substr(4,2)+
- "-"+getCurrentDate().substr(6,2));
- model.makeValue(antiNodePath+"/recuser", usernm);
- }
- else{
- model.makeValue(antiNodePath+"/recdd", model.getValue(listNodePath+"["+1+"]/recdd"));
- model.makeValue(antiNodePath+"/recuser", model.getValue(listNodePath+"["+1+"]/recuser"));
- }
-
- if(model.getValue(antiNodePath+"/discontinuyn") == "") {
- model.setValue(antiNodePath+"/discontinuyn","N");
- }
- model.makeValue(antiNodePath+"/recdt", model.getValue(listNodePath+"["+1+"]/recdt"));
- }
-
- model.refresh();
- }
- */
|