123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410 |
- /*
- * 입원등록 공통 함수
- * PMC001.js
- * 작성자 : 최병진
- * 작성일 : 2009.02.09
- * 수정이력
- */
- /* 공단자격조회
- *
- * 전제조건 : com/nhicinterfaceweb/js/ZEH001.js include 필요
- * Parameter : pPid - 환자번호
- * pHngnm - 환자성명
- * pRgstno - 주민번호
- * pDate - 조회일자
- * pInduCd - 기관기호
- * pLoginId - 공단로그인정보
- * pPassWord - 공단로그인정보
- * Return : M2 - String
- */
- function pmcfGetNhicQualification_ws(pPid, pSujinjaJuminNo, pYkiho, pSujinjaJuminNm, pDiagDt, pLoginId, pPassWord, pClientInfo, pOperatorJuminNo, pShowMsg) {
- model.removeNode("/root/temp/nhicrslt/m2");
- model.makeNode("/root/temp/nhicrslt/m2");
- model.makeValue("/root/send/ws/m1/sujinjajuminno", pSujinjaJuminNo);
- model.makeValue("/root/send/ws/m1/ykiho", pYkiho);
- model.makeValue("/root/send/ws/m1/sujinjajuminnm", pSujinjaJuminNm);
- model.makeValue("/root/send/ws/m1/diagdt", pDiagDt);
- model.makeValue("/root/send/ws/m1/clientinfo", pClientInfo);
- model.makeValue("/root/send/ws/m1/operatorjuminno", pOperatorJuminNo);
- // 자격 조회 WebService 호출
- submit("TRPAC04001", false);
- var cnt = instance1.selectNodes("/root/temp/nhicrslt/m2").length;
- if (cnt < 1) {
- messageBox("정보 수신 실패", "E999", "");
- return false;
- }
-
- if (document.all("grd_m2") != null) {
-
- var mPath = "/root/temp/nhicrslt/m2/";
- var tPath = "/root/hidden/m2list/m2info";
- var gPath = "/root/grd/m2list/m2info";
-
- var idx = 0;
- var cap = "";
- var val = "";
-
- // 노인틀니 대상자(상악)
- val = model.getValue(mPath + "denttop");
- if (val != "") {
-
- idx++;
-
- cap += "노인틀니(상악)^노인틀니(상악)^";
-
- model.makeValue(tPath + "[1]/itm" + idx, "등록번호");
- model.makeValue(tPath + "[1]/val" + idx, val.substr(0, 15));
-
- model.makeValue(tPath + "[2]/itm" + idx, "등록기관");
- model.makeValue(tPath + "[2]/val" + idx, val.substr(15, 8));
-
- model.makeValue(tPath + "[3]/itm" + idx, "틀니장착일");
- model.makeValue(tPath + "[3]/val" + idx, val.substr(23, 4) + "-" + val.substr(27, 2) + "-" + val.substr(29, 2));
-
- model.makeValue(tPath + "[4]/itm" + idx, "무상종료일");
- model.makeValue(tPath + "[4]/val" + idx, val.substr(31, 4) + "-" + val.substr(35, 2) + "-" + val.substr(37, 2));
-
- model.makeValue(tPath + "[5]/itm" + idx, "시작일");
- model.makeValue(tPath + "[5]/val" + idx, val.substr(39, 4) + "-" + val.substr(43, 2) + "-" + val.substr(45, 2));
-
- model.makeValue(tPath + "[6]/itm" + idx, "종료일");
- model.makeValue(tPath + "[6]/val" + idx, val.substr(47, 4) + "-" + val.substr(51, 2) + "-" + val.substr(53, 2));
- }
-
- // 노인틀니 대상자(하악)
- val = model.getValue(mPath + "dentbottom");
- if (val != "") {
-
- idx++;
-
- cap += "노인틀니(하악)^노인틀니(하악)^";
-
- model.makeValue(tPath + "[1]/itm" + idx, "등록번호");
- model.makeValue(tPath + "[1]/val" + idx, val.substr(0, 15));
-
- model.makeValue(tPath + "[2]/itm" + idx, "등록기관");
- model.makeValue(tPath + "[2]/val" + idx, val.substr(15, 8));
-
- model.makeValue(tPath + "[3]/itm" + idx, "틀니장착일");
- model.makeValue(tPath + "[3]/val" + idx, val.substr(23, 4) + "-" + val.substr(27, 2) + "-" + val.substr(29, 2));
-
- model.makeValue(tPath + "[4]/itm" + idx, "무상종료일");
- model.makeValue(tPath + "[4]/val" + idx, val.substr(31, 4) + "-" + val.substr(35, 2) + "-" + val.substr(37, 2));
-
- model.makeValue(tPath + "[5]/itm" + idx, "시작일");
- model.makeValue(tPath + "[5]/val" + idx, val.substr(39, 4) + "-" + val.substr(43, 2) + "-" + val.substr(45, 2));
-
- model.makeValue(tPath + "[5]/itm" + idx, "종료일");
- model.makeValue(tPath + "[5]/val" + idx, val.substr(47, 4) + "-" + val.substr(51, 2) + "-" + val.substr(53, 2));
- }
-
- // 임플란트 대상자정보 1
- val = model.getValue(mPath + "dentimpl1");
- if (val != "") {
-
- idx++;
-
- cap += "임플란트 1^임플란트 1^";
-
- model.makeValue(tPath + "[1]/itm" + idx, "등록번호");
- model.makeValue(tPath + "[1]/val" + idx, val.substr(0, 18));
-
- model.makeValue(tPath + "[2]/itm" + idx, "등록기관");
- model.makeValue(tPath + "[2]/val" + idx, val.substr(18, 8));
-
- model.makeValue(tPath + "[3]/itm" + idx, "최종단계시술일");
- model.makeValue(tPath + "[3]/val" + idx, val.substr(26, 4) + "-" + val.substr(30, 2) + "-" + val.substr(32, 2));
-
- model.makeValue(tPath + "[4]/itm" + idx, "사후점검종료일");
- model.makeValue(tPath + "[4]/val" + idx, val.substr(34, 4) + "-" + val.substr(38, 2) + "-" + val.substr(40, 2));
-
- model.makeValue(tPath + "[5]/itm" + idx, "시작유효일");
- model.makeValue(tPath + "[5]/val" + idx, val.substr(42, 4) + "-" + val.substr(46, 2) + "-" + val.substr(48, 2));
-
- model.makeValue(tPath + "[6]/itm" + idx, "상실유효일");
- model.makeValue(tPath + "[6]/val" + idx, val.substr(50, 4) + "-" + val.substr(54, 2) + "-" + val.substr(56, 2));
- }
-
- // 임플란트 대상자정보 2
- val = model.getValue(mPath + "dentimpl2");
- if (val != "") {
-
- idx++;
-
- cap += "임플란트 2^임플란트 2^";
-
- model.makeValue(tPath + "[1]/itm" + idx, "등록번호");
- model.makeValue(tPath + "[1]/val" + idx, val.substr(0, 18));
-
- model.makeValue(tPath + "[2]/itm" + idx, "등록기관");
- model.makeValue(tPath + "[2]/val" + idx, val.substr(18, 8));
-
- model.makeValue(tPath + "[3]/itm" + idx, "최종단계시술일");
- model.makeValue(tPath + "[3]/val" + idx, val.substr(26, 4) + "-" + val.substr(30, 2) + "-" + val.substr(32, 2));
-
- model.makeValue(tPath + "[4]/itm" + idx, "사후점검종료일");
- model.makeValue(tPath + "[4]/val" + idx, val.substr(34, 4) + "-" + val.substr(38, 2) + "-" + val.substr(40, 2));
-
- model.makeValue(tPath + "[5]/itm" + idx, "시작일");
- model.makeValue(tPath + "[5]/val" + idx, val.substr(42, 4) + "-" + val.substr(46, 2) + "-" + val.substr(48, 2));
-
- model.makeValue(tPath + "[6]/itm" + idx, "상실일");
- model.makeValue(tPath + "[6]/val" + idx, val.substr(50, 4) + "-" + val.substr(54, 2) + "-" + val.substr(56, 2));
- }
-
- // 조산아 및 저체중 출생아 등록대상자
- val = model.getValue(mPath + "preinfant");
- if (val != "") {
-
- idx++;
-
- cap += "조산아/저체중^조산아/저체중^";
-
- model.makeValue(tPath + "[1]/itm" + idx, "등록번호");
- model.makeValue(tPath + "[1]/val" + idx, val.substr(0, 10));
-
- model.makeValue(tPath + "[2]/itm" + idx, "시작일");
- model.makeValue(tPath + "[2]/val" + idx, val.substr(10, 4) + "-" + val.substr(14, 2) + "-" + val.substr(16, 2));
-
- model.makeValue(tPath + "[3]/itm" + idx, "종료일");
- model.makeValue(tPath + "[3]/val" + idx, val.substr(18, 4) + "-" + val.substr(22, 2) + "-" + val.substr(24, 2));
- }
-
- // 희귀난치대상자
- val = model.getValue(mPath + "disregprson1");
- if (val != "") {
-
- idx++;
-
- cap += "희귀난치^희귀난치^";
-
- model.makeValue(tPath + "[1]/itm" + idx, "특정기호");
- model.makeValue(tPath + "[1]/val" + idx, val.substr(0, 4));
-
- model.makeValue(tPath + "[2]/itm" + idx, "시작일");
- model.makeValue(tPath + "[2]/val" + idx, val.substr(4, 4) + "-" + val.substr(8, 2) + "-" + val.substr(10, 2));
-
- model.makeValue(tPath + "[3]/itm" + idx, "종료일");
- model.makeValue(tPath + "[3]/val" + idx, val.substr(12, 4) + "-" + val.substr(16, 2) + "-" + val.substr(18, 2));
- }
-
- // 산정특례(희귀)등록대상자
- val = model.getValue(mPath + "disregprson2");
- if (val != "") {
-
- idx++;
-
- cap += "산정특례(희귀)^산정특례(희귀)^";
-
- model.makeValue(tPath + "[1]/itm" + idx, "특정기호");
- model.makeValue(tPath + "[1]/val" + idx, val.substr(0, 4));
-
- model.makeValue(tPath + "[2]/itm" + idx, "등록번호");
- model.makeValue(tPath + "[2]/val" + idx, val.substr(4, 15));
-
- model.makeValue(tPath + "[3]/itm" + idx, "등록일");
- model.makeValue(tPath + "[3]/val" + idx, val.substr(19, 4) + "-" + val.substr(23, 2) + "-" + val.substr(25, 2));
-
- model.makeValue(tPath + "[4]/itm" + idx, "종료일");
- model.makeValue(tPath + "[4]/val" + idx, val.substr(27, 4) + "-" + val.substr(31, 2) + "-" + val.substr(33, 2));
-
- model.makeValue(tPath + "[5]/itm" + idx, "상병코드");
- model.makeValue(tPath + "[5]/val" + idx, val.substr(35, 10));
-
- model.makeValue(tPath + "[6]/itm" + idx, "일련번호");
- model.makeValue(tPath + "[6]/val" + idx, val.substr(45, 2));
- }
-
- // 차상위대상자
- val = model.getValue(mPath + "disregprson3");
- if (val != "") {
-
- idx++;
-
- cap += "차상위^차상위^";
-
- model.makeValue(tPath + "[1]/itm" + idx, "특정기호");
- model.makeValue(tPath + "[1]/val" + idx, val.substr(0, 4));
-
- model.makeValue(tPath + "[2]/itm" + idx, "시작일");
- model.makeValue(tPath + "[2]/val" + idx, val.substr(4, 4) + "-" + val.substr(8, 2) + "-" + val.substr(10, 2));
-
- model.makeValue(tPath + "[3]/itm" + idx, "종료일");
- model.makeValue(tPath + "[3]/val" + idx, val.substr(12, 4) + "-" + val.substr(16, 2) + "-" + val.substr(18, 2));
-
- model.makeValue(tPath + "[4]/itm" + idx, "종료일");
- model.makeValue(tPath + "[4]/val" + idx, val.substr(20, 1) + "종");
- }
-
- // 산정특례(암)등록대상자1
- val = model.getValue(mPath + "disregprson4");
- if (val != "") {
-
- idx++;
-
- cap += "산정특례(암) 1^산정특례(암) 1^";
-
- model.makeValue(tPath + "[1]/itm" + idx, "특정기호");
- model.makeValue(tPath + "[1]/val" + idx, val.substr(0, 4));
-
- model.makeValue(tPath + "[2]/itm" + idx, "등록번호");
- model.makeValue(tPath + "[2]/val" + idx, val.substr(4, 15));
-
- model.makeValue(tPath + "[3]/itm" + idx, "등록일");
- model.makeValue(tPath + "[3]/val" + idx, val.substr(19, 4) + "-" + val.substr(23, 2) + "-" + val.substr(25, 2));
-
- model.makeValue(tPath + "[4]/itm" + idx, "종료일");
- model.makeValue(tPath + "[4]/val" + idx, val.substr(27, 4) + "-" + val.substr(31, 2) + "-" + val.substr(33, 2));
-
- model.makeValue(tPath + "[5]/itm" + idx, "상병기호");
- model.makeValue(tPath + "[5]/val" + idx, val.substr(35, 10));
-
- model.makeValue(tPath + "[6]/itm" + idx, "일련번호");
- model.makeValue(tPath + "[6]/val" + idx, val.substr(45, 2));
-
- model.makeValue(tPath + "[7]/itm" + idx, "등록구분");
-
- var eVal = "";
- switch (val.substr(47, 1)) {
- case "1": eVal = "신규"; break;
- case "2": eVal = "재등록"; break;
- case "3": eVal = "중복암"; break;
- case "4": eVal = "중복암재등록"; break;
- default: break;
- }
- model.makeValue(tPath + "[7]/val" + idx, eVal);
- }
-
- // 산정특례(화상)등록대상자
- val = model.getValue(mPath + "disregprson5");
- if (val != "") {
-
- idx++;
-
- cap += "산정특례(화상)^산정특례(화상)^";
-
- model.makeValue(tPath + "[1]/itm" + idx, "특정기호");
- model.makeValue(tPath + "[1]/val" + idx, val.substr(0, 4));
-
- model.makeValue(tPath + "[2]/itm" + idx, "등록번호");
- model.makeValue(tPath + "[2]/val" + idx, val.substr(4, 15));
-
- model.makeValue(tPath + "[3]/itm" + idx, "등록일");
- model.makeValue(tPath + "[3]/val" + idx, val.substr(19, 4) + "-" + val.substr(23, 2) + "-" + val.substr(25, 2));
-
- model.makeValue(tPath + "[4]/itm" + idx, "종료일");
- model.makeValue(tPath + "[4]/val" + idx, val.substr(27, 4) + "-" + val.substr(31, 2) + "-" + val.substr(33, 2));
- }
-
- // 당뇨병 요양비 대상자 등록일
- val = model.getValue(mPath + "disregprson6");
- if (val != "") {
-
- idx++;
-
- cap += "당뇨병요양비^당뇨병요양비^";
-
- model.makeValue(tPath + "[1]/itm" + idx, "등록일");
- model.makeValue(tPath + "[1]/val" + idx, val.substr(0, 4) + "-" + val.substr(4, 2) + "-" + val.substr(6, 2));
- }
-
- // 동일성분 의약품 제한자
- val = model.getValue(mPath + "disregprson7");
- if (val != "") {
-
- idx++;
-
- cap += "동일성분제한^동일성분제한^";
-
- model.makeValue(tPath + "[1]/itm" + idx, "등록일");
- model.makeValue(tPath + "[1]/val" + idx, val.substr(0, 4) + "-" + val.substr(4, 2) + "-" + val.substr(6, 2));
-
- model.makeValue(tPath + "[2]/itm" + idx, "종료일");
- model.makeValue(tPath + "[2]/val" + idx, val.substr(8, 4) + "-" + val.substr(12, 2) + "-" + val.substr(14, 2));
- }
-
- // 자가도뇨 카테타 대상자
- val = model.getValue(mPath + "disregprson8");
- if (val != "") {
-
- idx++;
-
- cap += "자가도뇨카테타^자가도뇨카테타^";
-
- model.makeValue(tPath + "[1]/itm" + idx, "등록일");
- model.makeValue(tPath + "[1]/val" + idx, val.substr(0, 4) + "-" + val.substr(4, 2) + "-" + val.substr(6, 2));
- }
-
- // 산정특례(구결핵)등록대상자
- val = model.getValue(mPath + "disregprson9");
- if (val != "") {
-
- idx++;
-
- cap += "산정특례(구결핵)^산정특례(구결핵)^";
-
- model.makeValue(tPath + "[1]/itm" + idx, "특정기호");
- model.makeValue(tPath + "[1]/val" + idx, val.substr(0, 4));
-
- model.makeValue(tPath + "[2]/itm" + idx, "등록번호");
- model.makeValue(tPath + "[2]/val" + idx, val.substr(4, 15));
-
- model.makeValue(tPath + "[3]/itm" + idx, "등록일");
- model.makeValue(tPath + "[3]/val" + idx, val.substr(19, 4) + "-" + val.substr(23, 2) + "-" + val.substr(25, 2));
-
- model.makeValue(tPath + "[4]/itm" + idx, "종료일");
- model.makeValue(tPath + "[4]/val" + idx, val.substr(27, 4) + "-" + val.substr(31, 2) + "-" + val.substr(33, 2));
- }
-
- // 산정특례(극희귀)등록대상자
- val = model.getValue(mPath + "disregprson10");
- if (val != "") {
-
- idx++;
-
- cap += "산정특례(극희귀)^산정특례(극희귀)^";
-
- model.makeValue(tPath + "[1]/itm" + idx, "특정기호");
- model.makeValue(tPath + "[1]/val" + idx, val.substr(0, 4));
-
- model.makeValue(tPath + "[2]/itm" + idx, "등록번호");
- model.makeValue(tPath + "[2]/val" + idx, val.substr(4, 15));
-
- model.makeValue(tPath + "[3]/itm" + idx, "등록일");
- model.makeValue(tPath + "[3]/val" + idx, val.substr(19, 4) + "-" + val.substr(23, 2) + "-" + val.substr(25, 2));
-
- model.makeValue(tPath + "[4]/itm" + idx, "종료일");
- model.makeValue(tPath + "[4]/val" + idx, val.substr(27, 4) + "-" + val.substr(31, 2) + "-" + val.substr(33, 2));
-
- model.makeValue(tPath + "[5]/itm" + idx, "상병코드");
- model.makeValue(tPath + "[5]/val" + idx, val.substr(35, 10));
-
- model.makeValue(tPath + "[6]/itm" + idx, "일련번호");
- model.makeValue(tPath + "[6]/val" + idx, val.substr(45, 2));
- }
-
- // 산정특례(상세불명극희귀)등록대상자
- val = model.getValue(mPath + "disregprson11");
- if (val != "") {
-
- idx++;
-
- cap += "산정특례(상세불명희귀)^산정특례(상세불명희귀)^";
-
- model.makeValue(tPath + "[1]/itm" + idx, "특정기호");
- model.makeValue(tPath + "[1]/val" + idx, val.substr(0, 4));
-
- model.makeValue(tPath + "[2]/itm" + idx, "등록번호");
- model.makeValue(tPath + "[2]/val" + idx, val.substr(4, 15));
-
- model.makeValue(tPath + "[3]/itm" + idx, "등록일");
- model.makeValue(tPath + "[3]/val" + idx, val.substr(19, 4) + "-" + val.substr(23, 2) + "-" + val.substr(25, 2));
-
- model.makeValue(tPath + "[4]/itm" + idx, "종료일");
- model.makeValue(tPath + "[4]/val" + idx, val.substr(27, 4) + "-" + val.substr(31, 2) + "-" + val.substr(33, 2));
-
- model.makeValue(tPath + "[5]/itm" + idx, "상병코드");
- model.makeValue(tPath + "[5]/val" + idx, val.substr(35, 10));
-
- model.makeValue(tPath + "[6]/itm" + idx, "일련번호");
- model.makeValue(tPath + "[6]/val" + idx, val.substr(45, 2));
- }
-
- // 산정특례(신결핵)등록대상자
- val = model.getValue(mPath + "disregprson12");
- if (val != "") {
-
- idx++;
-
- cap += "산정특례(신결핵)^산정특례(신결핵)^";
-
- model.makeValue(tPath + "[1]/itm" + idx, "특정기호");
- model.makeValue(tPath + "[1]/val" + idx, val.substr(0, 4));
-
- model.makeValue(tPath + "[2]/itm" + idx, "등록번호");
- model.makeValue(tPath + "[2]/val" + idx, val.substr(4, 10));
-
- model.makeValue(tPath + "[3]/itm" + idx, "치료시작일");
- model.makeValue(tPath + "[3]/val" + idx, val.substr(14, 4) + "-" + val.substr(18, 2) + "-" + val.substr(20, 2));
-
- model.makeValue(tPath + "[4]/itm" + idx, "치료종료일");
- model.makeValue(tPath + "[4]/val" + idx, val.substr(22, 4) + "-" + val.substr(26, 2) + "-" + val.substr(28, 2));
-
- model.makeValue(tPath + "[5]/itm" + idx, "면허번호");
- model.makeValue(tPath + "[5]/val" + idx, val.substr(30, 10));
-
- model.makeValue(tPath + "[6]/itm" + idx, "의사성명");
- model.makeValue(tPath + "[6]/val" + idx, val.substr(40, 40));
-
- model.makeValue(tPath + "[7]/itm" + idx, "종료기관");
- model.makeValue(tPath + "[7]/val" + idx, val.substr(80, 8));
- }
-
- // 산정특례(중복암)등록대상자2
- val = model.getValue(mPath + "disregprson13");
- if (val != "") {
-
- idx++;
-
- cap += "산정특례(중복암) 2^산정특례(중복암) 2^";
-
- model.makeValue(tPath + "[1]/itm" + idx, "특정기호");
- model.makeValue(tPath + "[1]/val" + idx, val.substr(0, 4));
-
- model.makeValue(tPath + "[2]/itm" + idx, "등록번호");
- model.makeValue(tPath + "[2]/val" + idx, val.substr(4, 15));
-
- model.makeValue(tPath + "[3]/itm" + idx, "등록일");
- model.makeValue(tPath + "[3]/val" + idx, val.substr(19, 4) + "-" + val.substr(23, 2) + "-" + val.substr(25, 2));
-
- model.makeValue(tPath + "[4]/itm" + idx, "종료일");
- model.makeValue(tPath + "[4]/val" + idx, val.substr(27, 4) + "-" + val.substr(31, 2) + "-" + val.substr(33, 2));
-
- model.makeValue(tPath + "[5]/itm" + idx, "상병기호");
- model.makeValue(tPath + "[5]/val" + idx, val.substr(35, 10));
-
- model.makeValue(tPath + "[6]/itm" + idx, "일련번호");
- model.makeValue(tPath + "[6]/val" + idx, val.substr(45, 2));
-
- model.makeValue(tPath + "[7]/itm" + idx, "등록구분");
-
- var eVal = "";
- switch (val.substr(47, 1)) {
- case "1": eVal = "신규"; break;
- case "2": eVal = "재등록"; break;
- case "3": eVal = "중복암"; break;
- case "4": eVal = "중복암재등록"; break;
- default: break;
- }
- model.makeValue(tPath + "[7]/val" + idx, eVal);
- }
-
- // 산정특례(중복암)등록대상자3
- val = model.getValue(mPath + "disregprson14");
- if (val != "") {
-
- idx++;
-
- cap += "산정특례(중복암) 3^산정특례(중복암) 3^";
-
- model.makeValue(tPath + "[1]/itm" + idx, "특정기호");
- model.makeValue(tPath + "[1]/val" + idx, val.substr(0, 4));
-
- model.makeValue(tPath + "[2]/itm" + idx, "등록번호");
- model.makeValue(tPath + "[2]/val" + idx, val.substr(4, 15));
-
- model.makeValue(tPath + "[3]/itm" + idx, "등록일");
- model.makeValue(tPath + "[3]/val" + idx, val.substr(19, 4) + "-" + val.substr(23, 2) + "-" + val.substr(25, 2));
-
- model.makeValue(tPath + "[4]/itm" + idx, "종료일");
- model.makeValue(tPath + "[4]/val" + idx, val.substr(27, 4) + "-" + val.substr(31, 2) + "-" + val.substr(33, 2));
-
- model.makeValue(tPath + "[5]/itm" + idx, "상병기호");
- model.makeValue(tPath + "[5]/val" + idx, val.substr(35, 10));
-
- model.makeValue(tPath + "[6]/itm" + idx, "일련번호");
- model.makeValue(tPath + "[6]/val" + idx, val.substr(45, 2));
-
- model.makeValue(tPath + "[7]/itm" + idx, "등록구분");
-
- var eVal = "";
- switch (val.substr(47, 1)) {
- case "1": eVal = "신규"; break;
- case "2": eVal = "재등록"; break;
- case "3": eVal = "중복암"; break;
- case "4": eVal = "중복암재등록"; break;
- default: break;
- }
- model.makeValue(tPath + "[7]/val" + idx, eVal);
- }
-
- // 산정특례(중복암)등록대상자4
- val = model.getValue(mPath + "disregprson15");
- if (val != "") {
-
- idx++;
-
- cap += "산정특례(중복암) 4^산정특례(중복암) 4^";
-
- model.makeValue(tPath + "[1]/itm" + idx, "특정기호");
- model.makeValue(tPath + "[1]/val" + idx, val.substr(0, 4));
-
- model.makeValue(tPath + "[2]/itm" + idx, "등록번호");
- model.makeValue(tPath + "[2]/val" + idx, val.substr(4, 15));
-
- model.makeValue(tPath + "[3]/itm" + idx, "등록일");
- model.makeValue(tPath + "[3]/val" + idx, val.substr(19, 4) + "-" + val.substr(23, 2) + "-" + val.substr(25, 2));
-
- model.makeValue(tPath + "[4]/itm" + idx, "종료일");
- model.makeValue(tPath + "[4]/val" + idx, val.substr(27, 4) + "-" + val.substr(31, 2) + "-" + val.substr(33, 2));
-
- model.makeValue(tPath + "[5]/itm" + idx, "상병기호");
- model.makeValue(tPath + "[5]/val" + idx, val.substr(35, 10));
-
- model.makeValue(tPath + "[6]/itm" + idx, "일련번호");
- model.makeValue(tPath + "[6]/val" + idx, val.substr(45, 2));
-
- model.makeValue(tPath + "[7]/itm" + idx, "등록구분");
-
- var eVal = "";
- switch (val.substr(47, 1)) {
- case "1": eVal = "신규"; break;
- case "2": eVal = "재등록"; break;
- case "3": eVal = "중복암"; break;
- case "4": eVal = "중복암재등록"; break;
- default: break;
- }
- model.makeValue(tPath + "[7]/val" + idx, eVal);
- }
-
- // 산정특례(중복암)등록대상자5
- val = model.getValue(mPath + "disregprson16");
- if (val != "") {
-
- idx++;
-
- cap += "산정특례(중복암) 5^산정특례(중복암) 5^";
-
- model.makeValue(tPath + "[1]/itm" + idx, "특정기호");
- model.makeValue(tPath + "[1]/val" + idx, val.substr(0, 4));
-
- model.makeValue(tPath + "[2]/itm" + idx, "등록번호");
- model.makeValue(tPath + "[2]/val" + idx, val.substr(4, 15));
-
- model.makeValue(tPath + "[3]/itm" + idx, "등록일");
- model.makeValue(tPath + "[3]/val" + idx, val.substr(19, 4) + "-" + val.substr(23, 2) + "-" + val.substr(25, 2));
-
- model.makeValue(tPath + "[4]/itm" + idx, "종료일");
- model.makeValue(tPath + "[4]/val" + idx, val.substr(27, 4) + "-" + val.substr(31, 2) + "-" + val.substr(33, 2));
-
- model.makeValue(tPath + "[5]/itm" + idx, "상병기호");
- model.makeValue(tPath + "[5]/val" + idx, val.substr(35, 10));
-
- model.makeValue(tPath + "[6]/itm" + idx, "일련번호");
- model.makeValue(tPath + "[6]/val" + idx, val.substr(45, 2));
-
- model.makeValue(tPath + "[7]/itm" + idx, "등록구분");
-
- var eVal = "";
- switch (val.substr(47, 1)) {
- case "1": eVal = "신규"; break;
- case "2": eVal = "재등록"; break;
- case "3": eVal = "중복암"; break;
- case "4": eVal = "중복암재등록"; break;
- default: break;
- }
- model.makeValue(tPath + "[7]/val" + idx, eVal);
- }
-
- // 산정특례(중증치매) 등록대상자
- val = model.getValue(mPath + "disregprson17");
- if (val != "") {
-
- idx++;
-
- cap += "산정특례(중증치매)^산정특례(중증치매)^";
-
- model.makeValue(tPath + "[1]/itm" + idx, "특정기호");
- model.makeValue(tPath + "[1]/val" + idx, val.substr(0, 4));
-
- model.makeValue(tPath + "[2]/itm" + idx, "상병코드");
- model.makeValue(tPath + "[2]/val" + idx, val.substr(4, 10));
-
- model.makeValue(tPath + "[3]/itm" + idx, "일련번호");
- model.makeValue(tPath + "[3]/val" + idx, val.substr(14, 2));
-
- model.makeValue(tPath + "[4]/itm" + idx, "등록번호");
- model.makeValue(tPath + "[4]/val" + idx, val.substr(16, 15));
-
- model.makeValue(tPath + "[5]/itm" + idx, "시작일");
- model.makeValue(tPath + "[5]/val" + idx, val.substr(31, 4) + "-" + val.substr(35, 2) + "-" + val.substr(37, 2));
-
- model.makeValue(tPath + "[6]/itm" + idx, "상실일");
- model.makeValue(tPath + "[6]/val" + idx, val.substr(39, 4) + "-" + val.substr(43, 2) + "-" + val.substr(45, 2));
-
- model.makeValue(tPath + "[7]/itm" + idx, "차수시작일");
- model.makeValue(tPath + "[7]/val" + idx, val.substr(47, 4) + "-" + val.substr(51, 2) + "-" + val.substr(53, 2));
-
- model.makeValue(tPath + "[8]/itm" + idx, "차수종료일");
- model.makeValue(tPath + "[8]/val" + idx, val.substr(55, 4) + "-" + val.substr(59, 2) + "-" + val.substr(61, 2));
-
- model.makeValue(tPath + "[9]/itm" + idx, "연장전승인일수");
- model.makeValue(tPath + "[9]/val" + idx, val.substr(63, 3));
-
- model.makeValue(tPath + "[10]/itm" + idx, "연장후승인일수");
- model.makeValue(tPath + "[10]/val" + idx, val.substr(66, 3));
-
- }
-
- model.resetInstanceNode(gPath);
-
- grd_m2.refresh();
-
- var cols = grd_m2.cols;
- for (var i = 0; i < cols; i++) {
- grd_m2.removeColumn(false);
- }
- grd_m2.refresh();
-
- cnt = instance1.selectNodes(tPath).length;
-
- for (var i = 1; i <= idx; i++) {
- grd_m2.addColumn("ref:itm" + i + "; padding-left:1", false);
- grd_m2.addColumn("ref:val" + i + "; padding-left:1", false);
-
- var itmMax = 0;
- var valMax = 0;
- for (var j = 1; j <= cnt; j++) {
-
- var str = model.getValue(tPath + "[" + j + "]/itm" + i);
-
- if (str.length > itmMax) {
- itmMax = str.length;
- }
-
- str = model.getValue(tPath + "[" + j + "]/val" + i);
-
- if (str.length > valMax) {
- valMax = str.length;
- }
- }
-
- grd_m2.colWidth((i - 1) * 2) = Math.ceil(itmMax * 2 * 7.5 / 10) * 10;
- grd_m2.colWidth((i - 1) * 2 + 1) = Math.ceil(valMax * 7.5 / 10) * 10;
- }
-
- grd_m2.caption = cap.substr(0, cap.length - 1);
-
- model.copyNode("/root/grd/m2list", "/root/hidden/m2list");
-
- grd_m2.refresh();
-
- model.removeNode("/root/hidden/m2list");
-
- for (var i = 1; i < grd_m2.rows; i++) {
- for (var j = 1; j <= idx; j++) {
- if (model.getValue(gPath + "[" + i + "]/" + "val" + j) != "") {
- grd_m2.cellStyle("background-color", i, (j - 1) * 2) = "#cce8ff"
- }
- }
- }
-
- // 상병 정보가 하나도 없는 경우
- if (idx < 1) {
- grd_m2.addColumn("ref:desc; padding-left:2;", false);
- grd_m2.colWidth(0) = grd_m2.attribute("width").replace(/px/gi, "") - 2;
- grd_m2.caption = "";
- model.makeValue(gPath + "/desc", "등록된 상병 정보가 없습니다.");
- grd_m2.refresh();
- }
- }
-
- // 받아온 명칭과 저장 명칭이 다른 항목 설정
- model.makeValue("/root/temp/nhicrslt/m2/rrgstno", model.getValue("/root/temp/nhicrslt/m2/sujinjajuminno")); // 수진자 주민 등록번호
- model.makeValue("/root/temp/nhicrslt/m2/hngnm", model.getValue("/root/temp/nhicrslt/m2/sujinjajuminnm")); // 수진자 성명
- model.makeValue("/root/temp/nhicrslt/m2/proccorpcd", model.getValue("/root/temp/nhicrslt/m2/ykiho")); // 의료 급여 기관기호
- model.makeValue("/root/temp/nhicrslt/m2/qualflag", model.getValue("/root/temp/nhicrslt/m2/qlftype")); // 자격여부
- model.makeValue("/root/temp/nhicrslt/m2/qualacqtdd", model.getValue("/root/temp/nhicrslt/m2/qlfchwidukdt")); // 자격취득일
- model.makeValue("/root/temp/nhicrslt/m2/hshdnm", model.getValue("/root/temp/nhicrslt/m2/sedaejunm")); // 세대주 성명
- model.makeValue("/root/temp/nhicrslt/m2/secuinstmark", model.getValue("/root/temp/nhicrslt/m2/protadminsym")); // 보장기관기호(사업장기호)
- model.makeValue("/root/temp/nhicrslt/m2/estmmark", model.getValue("/root/temp/nhicrslt/m2/asylmsym")); // 시설기호(증번호)
- model.makeValue("/root/temp/nhicrslt/m2/paylimdd", model.getValue("/root/temp/nhicrslt/m2/payrestricdt")); // 급여제한일자(건강보험상실일자)
- model.makeValue("/root/temp/nhicrslt/m2/ownbflag", model.getValue("/root/temp/nhicrslt/m2/sbrdntype")); // 본인부담여부
- model.makeValue("/root/temp/nhicrslt/m2/heallifeamtval", model.getValue("/root/temp/nhicrslt/m2/cfhcrem")); // 건강생활유지비 잔액
- model.makeValue("/root/temp/nhicrslt/m2/choicorpmark1", model.getValue("/root/temp/nhicrslt/m2/ykiho1")); // 선택기관기호1(관할지사코드)
- model.makeValue("/root/temp/nhicrslt/m2/choicorpmark2", model.getValue("/root/temp/nhicrslt/m2/ykiho2")); // 선택기관기호2
- model.makeValue("/root/temp/nhicrslt/m2/choicorpmark3", model.getValue("/root/temp/nhicrslt/m2/ykiho3")); // 선택기관기호3
- model.makeValue("/root/temp/nhicrslt/m2/choicorpmark4", model.getValue("/root/temp/nhicrslt/m2/ykiho4")); // 선택기관기호4
- model.makeValue("/root/temp/nhicrslt/m2/choicorpnm1", model.getValue("/root/temp/nhicrslt/m2/yoyangnm1")); // 선택기관 이름1(관할지사명)
- model.makeValue("/root/temp/nhicrslt/m2/choicorpnm2", model.getValue("/root/temp/nhicrslt/m2/yoyangnm2")); // 선택기관 이름2
- model.makeValue("/root/temp/nhicrslt/m2/choicorpnm3", model.getValue("/root/temp/nhicrslt/m2/yoyangnm3")); // 선택기관 이름3
- model.makeValue("/root/temp/nhicrslt/m2/choicorpnm4", model.getValue("/root/temp/nhicrslt/m2/yoyangnm4")); // 선택기관 이름4
- model.makeValue("/root/temp/nhicrslt/m2/dcntrypsnyn", model.getValue("/root/temp/nhicrslt/m2/dprtyn")); // 출국자 여부
- model.makeValue("/root/temp/nhicrslt/m2/handicaprrgstdd", model.getValue("/root/temp/nhicrslt/m2/obstregdt")); // 장애인등록일자
- model.makeValue("/root/temp/nhicrslt/m2/rareobsttrgtman", model.getValue("/root/temp/nhicrslt/m2/disregprson1")); // 희귀난치대상자
- model.makeValue("/root/temp/nhicrslt/m2/befwomntrgtman", model.getValue("/root/temp/nhicrslt/m2/disregprson2")); // 산정특례(희귀)등록대상자
- model.makeValue("/root/temp/nhicrslt/m2/scndsuptrgtman", model.getValue("/root/temp/nhicrslt/m2/disregprson3")); // 차상위대상자
- model.makeValue("/root/temp/nhicrslt/m2/serdiagtrgtman", model.getValue("/root/temp/nhicrslt/m2/disregprson4")); // 산정특례(암)등록대상자
- model.makeValue("/root/temp/nhicrslt/m2/burntrgtman", model.getValue("/root/temp/nhicrslt/m2/disregprson5")); // 산정특례(화상)등록대상자
- model.makeValue("/root/temp/nhicrslt/m2/sugartrgtman", model.getValue("/root/temp/nhicrslt/m2/disregprson6")); // 제1형 당뇨병환자 대상자
- model.makeValue("/root/temp/nhicrslt/m2/procdurdd", model.getValue("/root/temp/nhicrslt/m2/disregprson7")); // 동일성분 의약품 제한자
- model.makeValue("/root/temp/nhicrslt/m2/paylimrgstdd", model.getValue("/root/temp/nhicrslt/m2/sangsilprocdt")); // 건강보험 수진자의 자격상실처리일자
- model.makeValue("/root/temp/nhicrslt/m2/selfcathcatheter", model.getValue("/root/temp/nhicrslt/m2/disregprson8")); // 자가도뇨 카테타 대상자
- model.makeValue("/root/temp/nhicrslt/m2/tbrcls", model.getValue("/root/temp/nhicrslt/m2/disregprson9")); // 산정특례(결핵)등록대상자
- model.makeValue("/root/temp/nhicrslt/m2/handicapyn", model.getValue("/root/temp/nhicrslt/m2/obstyn")); // 장애인등록여부(Y/N)
- model.makeValue("/root/temp/nhicrslt/m2/datainptdt", model.getValue("/root/temp/nhicrslt/m2/date")); // 데이터 입력 일자( 년월일-시분초)
- model.makeValue("/root/temp/nhicrslt/m2/msgcd" , model.getValue("/root/temp/nhicrslt/m2/messagecode")); // 서버로부터의 메시지 Code
- model.makeValue("/root/temp/nhicrslt/m2/msg", model.getValue("/root/temp/nhicrslt/m2/message")); // 서버로부터의 메시지
- model.makeValue("/root/temp/nhicrslt/m2/clntuniqval", model.getValue("/root/temp/nhicrslt/m2/clientinfo")); // 화면 클라이언트의 개별 고유 값
- // 산정특례(희귀)등록대상자
- // 특정기호(4) + 등록번호(15) + 등록일(8) + 종료일(8) + 상병코드(10) + 상병일련번호(2)
- // 특정기호 = V
- // 의료급여 희귀난치등록제 정보제공 11.1일
- // 상병코드,일련번호 2014.10.01.제공(건강보험)
- // 상병코드,일련번호 2014.12.01.제공(의료급여)
- var disRegPrson2 = model.getValue("/root/temp/nhicrslt/m2/disregprson2");
- if (disRegPrson2.trim() != "" && disRegPrson2.substr(0, 1) == "V") {
- model.makeValue("/root/temp/nhicrslt/m2/rooargstno", disRegPrson2.substr(4, 15));
- model.makeValue("/root/temp/nhicrslt/m2/rooafromdd", disRegPrson2.substr(19, 8));
- model.makeValue("/root/temp/nhicrslt/m2/rooatodd", disRegPrson2.substr(27, 8));
- }
- // 차상위대상자
- // 특정기호(4) + 시작일(8) + 종료일(8) + 구분(1)
- // [구분] '1':차상위1종, '2':차상위2종
- // 2008.04.01 1종 시행(C)
- // 2009.04.01 2종 시행(E, F)
- var disRegPrson3 = model.getValue("/root/temp/nhicrslt/m2/disregprson3");
- if (disRegPrson3.trim() != "" && disRegPrson3.length >= 21) {
- }
- // 산정특례(암)등록대상자
- // 특정기호(4) + 등록번호(15) + 등록일(8) + 종료일(8)
- // 2009. 12. 1일부 상병기호 제거
- // 의료급여 : 중증암 등록대상자
- var disRegPrson4 = model.getValue("/root/temp/nhicrslt/m2/disregprson4");
- if (disRegPrson4.trim() != "" && disRegPrson4.substr(0, 1) == "V") {
- model.makeValue("/root/temp/nhicrslt/m2/srdgrgstno", disRegPrson4.substr(4, 15));
- model.makeValue("/root/temp/nhicrslt/m2/srdgfromdd", disRegPrson4.substr(19, 8));
- model.makeValue("/root/temp/nhicrslt/m2/srdgtodd", disRegPrson4.substr(27, 8));
- }
- // 산정특례(화상)등록대상자
- // 특정기호(4) + 등록번호(15) + 등록일(8) + 종료일(8)
- // 특정기호 : V247-250
- // 2010.11.1 신규 (건강보험, 의료급여 제공)
- var disRegPrson5 = model.getValue("/root/temp/nhicrslt/m2/disregprson5");
- if (disRegPrson5.trim() != "" && disRegPrson5.substr(0, 1) == "V") {
- model.makeValue("/root/temp/nhicrslt/m2/burnrgstno", disRegPrson5.substr(4, 15));
- model.makeValue("/root/temp/nhicrslt/m2/burnfromdd", disRegPrson5.substr(19, 8));
- model.makeValue("/root/temp/nhicrslt/m2/burntodd", disRegPrson5.substr(27, 8));
- }
- // 산정특례(결핵)등록대상자
- // 특정기호(4) + 등록번호(15) + 등록일(8) + 종료일(8) + 상병코드(10) + 상병일련번호(2)
- // 특정기호 = V
- // 의료급여 희귀난치등록제 정보제공 11.1일
- // 상병코드,일련번호 2014.10.01.제공(건강보험만)
- var disRegPrson9 = model.getValue("/root/temp/nhicrslt/m2/disregprson9");
- if (disRegPrson9.trim() != "" && disRegPrson9.substr(0, 1) == "V") {
- model.makeValue("/root/temp/nhicrslt/m2/tbrclsrgstno", disRegPrson9.substr(4, 15));
- model.makeValue("/root/temp/nhicrslt/m2/tbrclsfromdd", disRegPrson9.substr(19, 8));
- model.makeValue("/root/temp/nhicrslt/m2/tbrclstodd", disRegPrson9.substr(27, 8));
- }
- // 산정특례(극희귀)등록대상자
- // 특정기호(4) + 등록번호(15) + 등록일(8) + 종료일(8) + 상병코드(10) + 상병일련번호(2)
- // 2016.4.1
- var disRegPrson10 = model.getValue("/root/temp/nhicrslt/m2/disregprson10");
- if (disRegPrson10.trim() != "" && disRegPrson10.substr(0, 1) == "V") {
- model.makeValue("/root/temp/nhicrslt/m2/drp10rgstno", disRegPrson10.substr(4, 15));
- model.makeValue("/root/temp/nhicrslt/m2/drp10fromdd", disRegPrson10.substr(19, 8));
- model.makeValue("/root/temp/nhicrslt/m2/drp10todd", disRegPrson10.substr(27, 8));
- }
- // 산정특례(상세불명희귀)등록대상자
- // 특정기호(4) + 등록번호(15) + 등록일(8) + 종료일(8) + 상병코드(10) + 상병일련번호(2)
- // 2016.4.1
- var disRegPrson11 = model.getValue("/root/temp/nhicrslt/m2/disregprson11");
- if (disRegPrson11.trim() != "" && disRegPrson11.substr(0, 1) == "V") {
- model.makeValue("/root/temp/nhicrslt/m2/drp11rgstno", disRegPrson11.substr(4, 15));
- model.makeValue("/root/temp/nhicrslt/m2/drp11fromdd", disRegPrson11.substr(19, 8));
- model.makeValue("/root/temp/nhicrslt/m2/drp11todd", disRegPrson11.substr(27, 8));
- }
- // 노인틀니 대상자(상악)
- // 등록번호(15) + 등록요양기관기호(8) + 틀니장착일(8) + 무상사후기간 종료일(8) + 시작일(8) + 종료일(8)
- // 2012.7.1 시행
- var dentTop = model.getValue("/root/temp/nhicrslt/m2/denttop");
- if (dentTop.trim() != "") {
- model.makeValue("/root/temp/nhicrslt/m2/denttopno", dentTop.substr(0, 15));
- model.makeValue("/root/temp/nhicrslt/m2/denttopkind", dentTop.substr(1, 1));
- model.makeValue("/root/temp/nhicrslt/m2/denttopproccorpcd", dentTop.substr(15, 8));
- model.makeValue("/root/temp/nhicrslt/m2/denttopfromdd", dentTop.substr(39, 8));
- // 종료일자가 없는 경우 시작일자 + 7년으로 설정
- if (!isValidDateTime(dentTop.substr(47, 8), "YYYYMMDD")) {
- model.makeValue("/root/temp/nhicrslt/m2/denttoptodd", dentTop.substr(39, 8).getAddDate(7, "Y"));
- } else {
- model.makeValue("/root/temp/nhicrslt/m2/denttoptodd", dentTop.substr(47, 8));
- }
- }
- // 노인틀니 대상자(하악)
- // 등록번호(15) + 등록요양기관기호(8) + 틀니장착일(8) + 무상사후기간 종료일(8) + 시작일(8) + 종료일(8)
- // 2012.7.1 시행
- var dentBottom = model.getValue("/root/temp/nhicrslt/m2/dentbottom");
- if (dentBottom.trim() != "") {
- model.makeValue("/root/temp/nhicrslt/m2/dentbottomno", dentBottom.substr(0, 15));
- model.makeValue("/root/temp/nhicrslt/m2/dentbottomkind", dentBottom.substr(1, 1));
- model.makeValue("/root/temp/nhicrslt/m2/dentbottomproccorpcd", dentBottom.substr(15, 8));
- model.makeValue("/root/temp/nhicrslt/m2/dentbottomfromdd", dentBottom.substr(39, 8));
- // 종료일자가 없는 경우 시작일자 + 7년으로 설정
- if (!isValidDateTime(dentBottom.substr(47, 8), 'YYYYMMDD')) {
- model.makeValue("/root/temp/nhicrslt/m2/dentbottomtodd", dentBottom.substr(39, 8).getAddDate(7, "Y"));
- } else {
- model.makeValue("/root/temp/nhicrslt/m2/dentbottomtodd", dentBottom.substr(47, 8));
- }
- }
- // 자격 여부
- var qlfType = model.getValue("/root/temp/nhicrslt/m2/qlftype");
- // 임플란트 대상자정보 1
- // 등록번호(18) + 등록요양기관기호(8) + 최종단계시술일(8) + 사후점검종료일(8) + 시작유효일(8) + 상실유효일(8)
- // 2014.7.1 시행
- var dentImpl1 = model.getValue("/root/temp/nhicrslt/m2/dentimpl1");
- if (dentImpl1.trim() != '') {
- model.makeValue("/root/temp/nhicrslt/m2/dentimpl1rgstno", dentImpl1.substr(0, 18));
- if (qlfType == "7" || qlfType == "8") { // 의료 급여
- model.makeValue("/root/temp/nhicrslt/m2/dentimpl1kind", dentImpl1.substr(3, 1));
- model.makeValue("/root/temp/nhicrslt/m2/dentimpl1proccorpcd", dentImpl1.substr(18, 8));
- } else { // 건강 보험
- model.makeValue("/root/temp/nhicrslt/m2/dentimpl1kind", dentImpl1.substr(8, 1));
- model.makeValue("/root/temp/nhicrslt/m2/dentimpl1proccorpcd", "");
- }
- model.makeValue("/root/temp/nhicrslt/m2/dentimpl1fromdd", dentImpl1.substr(42, 8));
- model.makeValue("/root/temp/nhicrslt/m2/dentimpl1todd", dentImpl1.substr(50, 8));
- }
- // 임플란트 대상자정보 2
- // 등록번호(18) + 등록요양기관기호(8) + 최종단계시술일(8) + 사후점검종료일(8) + 시작유효일(8) + 상실유효일(8)
- // 2014.7.1 시행
- var dentImpl2 = model.getValue("/root/temp/nhicrslt/m2/dentimpl2");
- if (dentImpl2.trim() != '') {
- model.makeValue("/root/temp/nhicrslt/m2/dentimpl2rgstno", dentImpl2.substr(0, 18));
- if (qlfType == "7" || qlfType == "8") { // 의료 급여
- model.makeValue("/root/temp/nhicrslt/m2/dentimpl2kind", dentImpl2.substr(3, 1));
- model.makeValue("/root/temp/nhicrslt/m2/dentimpl2proccorpcd", dentImpl2.substr(18, 8));
- } else { // 건강 보험
- model.makeValue("/root/temp/nhicrslt/m2/dentimpl2kind", dentImpl2.substr(8, 1));
- model.makeValue("/root/temp/nhicrslt/m2/dentimpl2proccorpcd", "");
- }
- model.makeValue("/root/temp/nhicrslt/m2/dentimpl2fromdd", dentImpl2.substr(42, 8));
- model.makeValue("/root/temp/nhicrslt/m2/dentimpl2todd", dentImpl2.substr(50, 8));
- }
-
- //조산아/저체중아 관련 (2017/01/31)
- //등록번호(10)+시작일자(8)+종료일자(8)
- var preinfant = model.getValue("/root/temp/nhicrslt/m2/preinfant");
- if (!isNull(preinfant)) {
- model.makeValue("/root/temp/nhicrslt/m2/preinfantfromdd", preinfant.substr(10, 8));
- model.makeValue("/root/temp/nhicrslt/m2/preinfanttodd", preinfant.substr(18, 8));
- model.makeValue("/root/temp/nhicrslt/m2/preinfantrgstno", preinfant.substr(0, 10));
- }
-
- //요양기관별 산정특례(결핵)등록대상자(2017/04/25)
- //특정기호(4)+산정특례등록번호(10)+치료시작일자(8)+치료종료일자(8)+의사면허번호(10)+의사성명(40)+종료요양기관기호(8)
- var disRegPrson12 = model.getValue("/root/temp/nhicrslt/m2/disregprson12");
- if (!isNull(disRegPrson12)) {
- model.makeValue("/root/temp/nhicrslt/m2/drp12fromdd", disRegPrson12.substr(14, 8));
- model.makeValue("/root/temp/nhicrslt/m2/drp12todd", disRegPrson12.substr(22, 8));
- model.makeValue("/root/temp/nhicrslt/m2/drp12rgstno", disRegPrson12.substr(4, 10));
- }
- // 자격 여부에 따른 저장 구분
- // 의료급여(7, 8)는 3개월, 건강보험은 3년 이내의 자료만 저장
- var saveFlag = true;
- if (( qlfType == "7" || qlfType == "8" ) && pDiagDt < getCurrentDate().toDate().getAddDate(-3, "M").getDateFormat("YYYYMMDD")) {
- saveFlag = false;
- if (pShowMsg) {
- messageBox("의료급여 자격자는 3개월 이전 자료 조회시 최종 자격이 표시되며,\n조회 내역이 저장되지 않습니다.", "E999");
- }
- } else if (pDiagDt < getCurrentDate().toDate().getAddDate(-3, "Y").getDateFormat("YYYYMMDD")) {
- saveFlag = false;
- if (pShowMsg) {
- messageBox("건강보험 자격자는 3년 이전 자료 조회시 최종 자격이 표시되며,\n조회 내역이 저장되지 않습니다.", "E999");
- }
- }
- if (saveFlag) {
- var m0CSV = "msgtype▦pid▦orddd▦cretno▦loginid▦password▦empno▦mpsissno▦reqdeptno▦deptcd▦ordtype▩"
- + "M1" + "▦"
- + pPid + "▦"
- + pDiagDt + "▦"
- + "" + "▦"
- + pLoginId + "▦"
- + pPassWord + "▦"
- + getUserId() + "▦"
- + "" + "▦"
- + "" + "▦"
- + "" + "▦"
- + "";
- model.makeValue("/root/main/m0temp", m0CSV);
- var m1CSV = "rrgstno▦proccorpcd▦orddd▦workdt▦hngnm▦loginid▦password▦datainptdt▦msgtype▦clntuniqval▦empno▦pgmtype▩"
- + pSujinjaJuminNo + "▦"
- + pYkiho + "▦"
- + pDiagDt + "▦"
- + "" + "▦"
- + pSujinjaJuminNm + "▦"
- + pLoginId + "▦"
- + pPassWord + "▦"
- + getCurrentDate() + "-" + getCurrentTime() + "▦"
- + "M1" + "▦"
- + pClientInfo + "▦"
- + getUserId() + "▦"
- + "3";
- model.makeValue("/root/main/m1temp", m1CSV);
- model.makeValue("/root/main/m2temp", getNodeListCSV(instance1.selectNodes("/root/temp/nhicrslt/m2")));
- submit("TXPAC03901", false);
- }
-
- return true;
- }
- function pmcfGetNhicQualification(pPid, pHngnm, pRgstno, pDate, pProcCorpCd, pLoginId, pPassWord) {
- // 1. M0, M1 생성
- // 2. 자격조회
- // 3. M2생성
- // 4. M2 return String 생성 및 return
- var sReturnValue = ""; // 헤더 + 값
- var sHeader = "rrgstno▦hngnm▦proccorpcd▦qualflag▦qualacqtdd▦hshdnm▦secuinstmark▦estmmark▦paylimdd▦ownbflag▦heallifeamtval▦pregremamt▦choicorpmark1▦choicorpmark2▦choicorpmark3▦choicorpmark4▦choicorpnm1▦choicorpnm2▦choicorpnm3▦choicorpnm4▦dcntrypsnyn▦datainptdt▦msgcd▦msg▦msgtype▦clntuniqval▦handicaprrgstdd▦disregprson1▦disregprson2▦disregprson3▦disregprson4▦handicapyn▦rareobsttrgtman▦befwomntrgtman▦scndsuptrgtman▦serdiagtrgtman▩"; // 리턴할
- // 헤더
- var sValue = ""; // 리턴할 값
- var sColSeperator = "▦";
- var sRowSeperator = "▩";
- // 모듈체크
- zehfCheckModule();
- // 1. M0, M1 생성
- var sM0_loginid = pLoginId;
- var sM0_password = pPassWord;
- var sM0_empno = "1234561234567";
- var sM1_rrgstno = pRgstno;
- var sM1_proccorpcd = pProcCorpCd;
- var sM1_hngnm = pHngnm;
- var sM1_orddd = pDate;
- var sM1_msgtype = "M1";
- var sM1_pgmtype = "2";
- var sM1_datainptdt = getCurrentDate() + "-" +getCurrentTime();
- var sM1_clntuniqval = getUserId();
- var url = "http://nhic.codns.com:1443/services/nhic?WSDL"; // url
- // M2
- var sM2_rrgstno = "";
- var sM2_hngnm = "";
- var sM2_proccorpcd = "";
- var sM2_qualflag = "";
- var sM2_qualacqtdd = "";
- var sM2_hshdnm = "";
- var sM2_secuinstmark = "";
- var sM2_estmmark = "";
- var sM2_paylimdd = "";
- var sM2_ownbflag = "";
- var sM2_heallifeamtval = "";
- var sM2_pregremamt = "";
- var sM2_choicorpmark1 = "";
- var sM2_choicorpmark2 = "";
- var sM2_choicorpmark3 = "";
- var sM2_choicorpmark4 = "";
- var sM2_choicorpnm1 = "";
- var sM2_choicorpnm2 = "";
- var sM2_choicorpnm3 = "";
- var sM2_choicorpnm4 = "";
- var sM2_handicaprrgstdd = "";
- var sM2_datainptdt = "";
- var sM2_dcntrypsnyn = "";
- var sM2_msgcd = "";
- var sM2_msg = "";
- var sM2_msgtype = "";
- var sM2_clntuniqval = "";
- var sM2_disregprson1 = "";
- var sM2_disregprson2 = "";
- var sM2_disregprson3 = "";
- var sM2_disregprson4 = "";
- var sM2_handicapyn = "";
- zehfAddParam("sujinjaJuminNo" , sM1_rrgstno); // 수진자 주민번호
- zehfAddParam("ykiho" , sM1_proccorpcd); // 의료급여 기관번호
- zehfAddParam("sujinjaJuminNm" , sM1_hngnm); // 수진자성명
- zehfAddParam("diagDt" , sM1_orddd); // 진료일자
- zehfAddParam("loginId" , sM0_loginid); // 공단포탈 로그인아이디
- zehfAddParam("password" , sM0_password); // 공단포탈 로그인패스워드
- zehfAddParam("date" , sM1_datainptdt); // 일자
- zehfAddParam("msgType" , sM1_msgtype); // 메시지 타입
- zehfAddParam("clientInfo" , sM1_clntuniqval); // 클라이언트 고유정보
- zehfAddParam("operatorJuminNo" , sM0_empno); // 조작자 주민번호
- zehfAddParam("pgmType" , sM1_pgmtype); // 프로그램 타입
- // 2. 자격조회
- var iCount = zehfQualify(url);
- // iCount <= 0
- if (iCount <= 0) {
- messageBox("정보 수신 실패", "E999", "");
- return;
- }
- // iCount == 1
- if (iCount == 1) {
- sM2_rrgstno = zehfGetValue(0, "sujinjaJuminNo");
- sM2_hngnm = zehfGetValue(0, "sujinjaJuminNm");
- sM2_proccorpcd = zehfGetValue(0, "ykiho");
- sM2_qualflag = zehfGetValue(0, "qlfType");
- sM2_qualacqtdd = zehfGetValue(0, "qlfChwidukDt");
- sM2_hshdnm = zehfGetValue(0, "sedaejuNm");
- sM2_secuinstmark = zehfGetValue(0, "protAdminSym");
- sM2_estmmark = zehfGetValue(0, "asylmSym");
- sM2_paylimdd = zehfGetValue(0, "payRestricDt");
- sM2_ownbflag = zehfGetValue(0, "sbrdnType");
- sM2_heallifeamtval = zehfGetValue(0, "cfhcRem");
- sM2_pregremamt = zehfGetValue(0, "pregRemAmt");
- sM2_choicorpmark1 = zehfGetValue(0, "ykiho1");
- sM2_choicorpmark2 = zehfGetValue(0, "ykiho2");
- sM2_choicorpmark3 = zehfGetValue(0, "ykiho3");
- sM2_choicorpmark4 = zehfGetValue(0, "ykiho4");
- sM2_choicorpnm1 = zehfGetValue(0, "yoyangNm1");
- sM2_choicorpnm2 = zehfGetValue(0, "yoyangNm2");
- sM2_choicorpnm3 = zehfGetValue(0, "yoyangNm3");
- sM2_choicorpnm4 = zehfGetValue(0, "yoyangNm4");
- sM2_handicaprrgstdd = zehfGetValue(0, "obstRegDt");
- sM2_datainptdt = zehfGetValue(0, "date");
- sM2_dcntrypsnyn = zehfGetValue(0, "dprtYn");
- sM2_msgcd = zehfGetValue(0, "messageCode");
- sM2_msg = zehfGetValue(0, "message");
- sM2_msgtype = zehfGetValue(0, "msgType");
- sM2_clntuniqval = zehfGetValue(0, "clientInfo");
- sM2_disregprson1 = zehfGetValue(0, "disRegPrson1"); //희귀난치대상자
- sM2_disregprson2 = zehfGetValue(0, "disRegPrson2"); //산전산모대상자
- sM2_disregprson3 = zehfGetValue(0, "disRegPrson3"); //차상위대상자
- sM2_disregprson4 = zehfGetValue(0, "disRegPrson4"); //중증암등록대상자
- sM2_handicapyn = zehfGetValue(0, "obstYn");
- sValue = sM2_rrgstno + sColSeperator +
- sM2_hngnm + sColSeperator +
- sM2_proccorpcd + sColSeperator +
- sM2_qualflag + sColSeperator +
- sM2_qualacqtdd + sColSeperator +
- sM2_hshdnm + sColSeperator +
- sM2_secuinstmark + sColSeperator +
- sM2_estmmark + sColSeperator +
- sM2_paylimdd + sColSeperator +
- sM2_ownbflag + sColSeperator +
- sM2_heallifeamtval + sColSeperator +
- sM2_pregremamt + sColSeperator +
- sM2_choicorpmark1 + sColSeperator +
- sM2_choicorpmark2 + sColSeperator +
- sM2_choicorpmark3 + sColSeperator +
- sM2_choicorpmark4 + sColSeperator +
- sM2_choicorpnm1 + sColSeperator +
- sM2_choicorpnm2 + sColSeperator +
- sM2_choicorpnm3 + sColSeperator +
- sM2_choicorpnm4 + sColSeperator +
- sM2_handicaprrgstdd + sColSeperator +
- sM2_datainptdt + sColSeperator +
- sM2_dcntrypsnyn + sColSeperator +
- sM2_msgcd + sColSeperator +
- sM2_msg + sColSeperator +
- sM2_msgtype + sColSeperator +
- sM2_clntuniqval + sColSeperator +
- sM2_disregprson1 + sColSeperator +
- sM2_disregprson2 + sColSeperator +
- sM2_disregprson3 + sColSeperator +
- sM2_disregprson4 + sColSeperator +
- sM2_handicapyn + sRowSeperator;
- sReturnValue = sHeader + sValue;
- }
- var sM0_header = "msgtype▦pid▦orddd▦cretno▦loginId▦password▦empno▦mpsissno▦reqdeptno▦deptcd▦ordtype▩";
- var sM0_value = sM1_msgtype + sColSeperator +
- pPid + sColSeperator +
- sM1_orddd + sColSeperator +
- "" + sColSeperator +
- sM0_loginid + sColSeperator +
- sM0_password + sColSeperator +
- sM0_empno + sColSeperator +
- "" + sColSeperator +
- "" + sColSeperator +
- "" + sColSeperator +
- "" + sRowSeperator;
- var sM1_header = "rrgstno▦hngnm▦proccorpcd▦orddd▦msgtype▦clntuniqval▦empno▦datainptdt▦pgmtype▦url▦pid▩";
- var sM1_value = sM1_rrgstno + sColSeperator +
- sM1_hngnm + sColSeperator +
- sM1_proccorpcd + sColSeperator +
- sM1_orddd + sColSeperator +
- sM1_msgtype + sColSeperator +
- sM1_clntuniqval + sColSeperator +
- sM0_empno + sColSeperator +
- sM1_datainptdt + sColSeperator +
- sM1_pgmtype + sColSeperator +
- url + sColSeperator +
- pPid + sRowSeperator;
- // 자격조회 정보 저장
- //<submission id="TXPAC03901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/nhicinfo" resultref="/root/tmp"/>
- model.makeValue("/root/main/nhicinfo/m0temp", (sM0_header + sM0_value));
- model.makeValue("/root/main/nhicinfo/m1temp", (sM1_header + sM1_value));
- model.makeValue("/root/main/nhicinfo/m2temp", sReturnValue);
- if(submit("TXPAC03901")) {
- model.removeNode("/root/main/nhicinfo");
- }
- // 중증등록정보 마스터에 자동 입력
- // sM2_disregprson4 = "V1930108140327 2008092920130928D330 "; // 공단중증등록정보
- if( !isNull(sM2_disregprson4.trim()) && sM2_disregprson4.length == 40){
- //보험유형세팅
- if (sM2_qualflag == "7") { //의료급여1종
- model.makeValue("/root/send/srdginfo/insukind", "21");
- }
- else if (sM2_qualflag == "8") { //의료급여2종
- model.makeValue("/root/send/srdginfo/insukind", "22");
- }
- else { //건강보험
- model.makeValue("/root/send/srdginfo/insukind", "11");
- }
- model.removeNodeset("/root/send/srdginfo");
- model.makeNode("/root/send/srdginfo");
- model.makeValue("/root/send/srdginfo/rrgstno1", sM1_rrgstno.substr(0,6));
- model.makeValue("/root/send/srdginfo/rrgstno2", sM1_rrgstno.substr(6,7));
- model.makeValue("/root/send/srdginfo/serdiagno", sM2_disregprson4.substr(4,15).trim());
- model.makeValue("/root/send/srdginfo/serdiagfromdd", sM2_disregprson4.substr(19,8));
- model.makeValue("/root/send/srdginfo/serdiagtodd", sM2_disregprson4.substr(27,8));
- model.makeValue("/root/send/srdginfo/maindiagcd", sM2_disregprson4.substr(35,5));
- if(!isValidDateTime(model.getValue("/root/send/srdginfo/todd"), 'YYYYMMDD') ){
- model.makeValue("/root/send/srdginfo/todd", '99991231');
- }
- if(submit("TXPAC03903")){
- }
- model.removeNodeset("/root/send/srdginfo");
- }
- // 2009.03.25 - 테스트데이터...반영 시 제거..
- //sM2_disregprson3 = "F 20080401 2";
- var sHandyCapMsgYN = "N";
- // 2009.03.25 - 차상위대상자일 경우 차상위마스터에 데이터 입력
- if( !isNull(sM2_disregprson3.trim()) && sM2_disregprson3.length == 21){
- model.removeNodeset("/root/send/scndsuptrgtman");
- model.makeNode("/root/send/scndsuptrgtman");
- model.makeValue("/root/send/scndsuptrgtman/rrgstno1", sM1_rrgstno.substr(0,6));
- model.makeValue("/root/send/scndsuptrgtman/rrgstno2", sM1_rrgstno.substr(6,7));
- model.makeValue("/root/send/scndsuptrgtman/fromdd", sM2_disregprson3.substr(4,8));
- model.makeValue("/root/send/scndsuptrgtman/todd", sM2_disregprson3.substr(12,8));
- model.makeValue("/root/send/scndsuptrgtman/scndflag", sM2_disregprson3.substr(20,1));
- model.makeValue("/root/send/scndsuptrgtman/splccd", sM2_disregprson3.substr(0,4).trim());
- if(!isValidDateTime(model.getValue("/root/send/scndsuptrgtman/todd"), 'YYYYMMDD')){
- model.makeValue("/root/send/scndsuptrgtman/todd", '99991231');
- }
- // 차상위2종 장애인 일 때 메시지 출력
- if (sM2_disregprson3.substr(0,1).trim() == "F") {
- sHandyCapMsgYN = "Y";
- messageBox("차상위2종 장애인 대상 환자입니다. 장애인 마스터 등록여부를 확인해주세요!", "I");
- }
- if(submit("TXPAC03904")){
- }
- model.removeNodeset("/root/send/scndsuptrgtman");
- }
- if (sM2_handicaprrgstdd.trim() != "" && sHandyCapMsgYN != "Y") {
- messageBox("장애인으로 등록된 환자입니다. 장애인 마스터 등록여부를 확인해주세요!", "I");
- }
- // iCount > 1 결과가 2건 이상일 때 메시지 처리 - 재원변경관리 화면에서 처리하도록 유도
- if (iCount > 1) {
- messageBox("공단조회결과가 [" + iCount + "]건입니다.\n자격조회화면에서 자격확인 하십시오!", "I");
- }
- // 조회된 M2설정
- // 메모리 Clear
- zehfClose();
- return sReturnValue;
- }
- /* 중증등록정보 자동 저장
- *
- * 전제조건 : TXMRD00901 submission이 추가되어야 한다.
- * Parameter : pPid - 환자번호
- * pIOFlag - 입원외래구분
- * pInsuKind - 보험유형
- * pDisRegPrson4 - 공단자격 중증정보
- * pPtbsPath - 환자기본정보 xpath (ex. "/root/main/ptbs")
- * pSendPath - send xpath (ex. "/root/send/data999") 노드명 형태 - ptbs_pid
- * pSrdgPath - srdg xpath (ex. "/root/main/srdg")
- * Return : true/false
- */
- function pmcfSetSerDiagInfo(pPid, pIOFlag, pInsuKind, pDisRegPrson4, pPtbsPath, pSendPath, pSrdtPath) {
- var bResult = false;
- var sPtbsXPath = pPtbsPath;
- var sSendXPath = pSendPath;
- var sSrdgXPath = pSrdtPath;
- var sDisRegPrson4 = pDisRegPrson4;
- if (isNull(pPid)) {
- //messageBox("환자번호가 없습니다!!", "I");
- return false;
- }
- if (sPtbsXPath == null) {
- //messageBox("Ptbs XPath is null!!", "I");
- return false;
- }
- if (sSendXPath == null) {
- //messageBox("Send XPath is null!!", "I");
- return false;
- }
- if (sSrdgXPath == null) {
- //messageBox("Srdg XPath is null!!", "I");
- return false;
- }
- if (isNull(sDisRegPrson4)) {
- //messageBox("중증정보 is null!!", "I");
- return false;
- }
- if (pInsuKind != "11" && pInsuKind != "21" && pInsuKind != "22") {
- //messageBox("보험유형이 [건강보험][의료급여1종][의료급여2종]일 때만 적용됩니다[중증등록정보]!!", "I");
- return false;
- }
- // 중증등록정보 분리 로직
- var sSerDiagNo = null;
- var sSerDiagFromdd = null;
- var sSerDiagTodd = null;
- if (pInsuKind == "11" || pInsuKind == "21" || pInsuKind == "22") {
- // 중증등록번호 추출
- if (pInsuKind == "11") { // 건강보험 (10자리)
- sSerDiagNo = sDisRegPrson4.substring(4, 14);
- }
- if (pInsuKind == "21" || pInsuKind == "22") { // 의료급여 (15자리)
- sSerDiagNo = sDisRegPrson4.substring(4, 19);
- }
- sSerDiagFromdd = sDisRegPrson4.substring(19, 27); // 중증등록시작일자
- sSerDiagTodd = sDisRegPrson4.substring(27, 35); // 중증등록종료일자
- //alert("sSerDiagNo: " + sSerDiagNo + "\n" + "sSerDiagFromdd: " + sSerDiagFromdd + "\n" + "sSerDiagTodd: " + sSerDiagTodd);
- // 화면에 중증정보 설정
- model.makeValue(sSrdgXPath + "/srdg_pid", pPid);
- model.makeValue(sSrdgXPath + "/srdg_insukind", pInsuKind);
- model.makeValue(sSrdgXPath + "/srdg_seridiagno", sSerDiagNo);
- model.makeValue(sSrdgXPath + "/srdg_fromdd", sSerDiagFromdd);
- model.makeValue(sSrdgXPath + "/srdg_todd", sSerDiagTodd);
- model.removeNode(sSendXPath);
- model.makeNode(sSendXPath);
- model.makeValue(sSendXPath + "/flag1", "N");
- model.makeValue(sSendXPath + "/flag2", "N");
- model.makeValue(sSendXPath + "/status", "I");
- model.makeValue(sSendXPath + "/genrdd", "");
- model.makeValue(sSendXPath + "/genrno", "");
- model.makeValue(sSendXPath + "/histno", "");
- model.makeValue(sSendXPath + "/instcd", "");
- model.makeValue(sSendXPath + "/histcd", "");
- model.makeValue(sSendXPath + "/anohosprgstflag", "Y");
- model.makeValue(sSendXPath + "/genrflagcd", pIOFlag);
- model.makeValue(sSendXPath + "/pid", pPid);
- model.makeValue(sSendXPath + "/insukind", pInsuKind);
- model.makeValue(sSendXPath + "/cncrdiagcnfmdd", "");
- model.makeValue(sSendXPath + "/orddeptcd", "-");
- model.makeValue(sSendXPath + "/orddrid", "-");
- model.makeValue(sSendXPath + "/serdiagno", sSerDiagNo);
- model.makeValue(sSendXPath + "/serdiagfromdd", sSerDiagFromdd);
- model.makeValue(sSendXPath + "/serdiagtodd", sSerDiagTodd);
- model.makeValue(sSendXPath + "/genrorddd", "-");
- model.makeValue(sSendXPath + "/genrcretno", 0);
- model.makeValue(sSendXPath + "/ediflag", "N");
- model.makeValue(sSendXPath + "/editretdd", "00000000");
- model.makeValue(sSendXPath + "/editrettm", "000000");
- model.makeValue(sSendXPath + "/maindiagcd", "");
- model.makeValue(sSendXPath + "/rcptremfact", "");
- model.makeValue(sSendXPath + "/zipcdhead", model.getValue(sPtbsXPath + "/ptbs_zipcd1"));
- model.makeValue(sSendXPath + "/zipcdfoot", model.getValue(sPtbsXPath + "/ptbs_zipcd2"));
- model.makeValue(sSendXPath + "/seqno", model.getValue(sPtbsXPath + "/ptbs_zipcdseq"));
- model.makeValue(sSendXPath + "/infromdd", "00000000");
- model.makeValue(sSendXPath + "/intodd", "000000");
- model.makeValue(sSendXPath + "/acptplcebaseaddr", model.getValue(sPtbsXPath + "/ptbs_zipcdaddr"));
- model.makeValue(sSendXPath + "/acptplceaddr", model.getValue(sPtbsXPath + "/ptbs_detladdr"));
- model.makeValue(sSendXPath + "/acptplcetel", model.getValue(sPtbsXPath + "/ptbs_hometel"));
- model.makeValue(sSendXPath + "/acptplcempphon", model.getValue(sPtbsXPath + "/ptbs_mpphontel"));
- model.makeValue(sSendXPath + "/hngnm", model.getValue(sPtbsXPath + "/ptbs_hngnm"));
- model.makeValue(sSendXPath + "/sex", model.getValue(sPtbsXPath + "/ptbs_sex"));
- model.makeValue(sSendXPath + "/brthdd", model.getValue(sPtbsXPath + "/ptbs_brthdd"));
- model.makeValue(sSendXPath + "/addr", (model.getValue(sPtbsXPath + "/ptbs_zipcdaddr") + " " + model.getValue(sPtbsXPath + "/ptbs_detladdr")));
- model.makeValue(sSendXPath + "/roomcd", "");
- model.makeValue(sSendXPath + "/remfact", "");
- model.makeValue(sSendXPath + "/ioflag", pIOFlag);
- if (submit("TXMRD00901")) {
- //model.removeNode(sSendXPath);
- //model.makeNode(sSendXPath);
- bResult = true;
- } else {
- bResult = false;
- }
- model.refresh();
- }
- return bResult;
- }
|