123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>HIE 동의철회관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <patientinfo/>
- <consenter>
- <name/>
- <relationship/>
- <reason/>
- </consenter>
- <cdainfo/>
- </main>
- <send>
- <searchpatient>
- <pid/>
- <instcd/>
- <formrecseq/>
- </searchpatient>
- <save>
- <name/>
- <ssn/>
- <reason>철회희망</reason>
- <withdrawhosplist/>
- <withdrawdeptlist/>
- <instcd/>
- <patid/>
- <formrecseq/>
- <relationship/>
- <guardianname/>
- <guardiantelcom/>
- <question1>Y</question1>
- <question2>Y</question2>
- <question3>Y</question3>
- <documenttype/>
- <policytype/>
- <elctsignkey/>
- <elctsigncnts/>
- </save>
- </send>
- <init>
- <ocrconsentinfo>
- <instcd/>
- <patid/>
- <indate/>
- <cretno/>
- <class/>
- <flag/>
- <cuser/>
- <formrecseq/>
- <tag1/>
- <tag2/>
- <tag3/>
- <tag4/>
- <tag5/>
- <tag6/>
- <tag7/>
- </ocrconsentinfo>
- <initinfo/>
- </init>
- <hidden>
- <pageflag>1</pageflag>
- <genderinfo>
- <list>
- <value>M</value>
- <label>남</label>
- </list>
- <list>
- <value>F</value>
- <label>여</label>
- </list>
- </genderinfo>
- <relationshipinfo>
- <list>
- <value>MYSELF</value>
- <label>본인</label>
- </list>
- <list>
- <value>FAMILY</value>
- <label>가족</label>
- </list>
- </relationshipinfo>
- <popup>
- <withdrawhosp/>
- <withdrawdept/>
- </popup>
- </hidden>
- </root>
- </instance>
- <submission id="TRARH01102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchpatient" resultref="/root/main/patientinfo"/>
- <submission id="TXARH01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/main/cdainfo"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fInit(){
-
- if(!checkOpener()){
- messageBox("환자 수진정보가 없습니다.","E999");
- window.close();
-
- }
-
- model.toggle("case1");
-
- // 뷰어 초기화
- object1.Navigate("about:blank","" ,"_self", "", "");
-
- //기본정보조회
- //submit("TRARH01101");
-
- //동의철회용 수진정보
- model.setValue("/root/init/ocrconsentinfo/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/init/ocrconsentinfo/patid", opener.javascript.getParameter("SMARH01100_param_patid"));
- model.setValue("/root/init/ocrconsentinfo/indate", opener.javascript.getParameter("SMARH01100_param_indate"));
- model.setValue("/root/init/ocrconsentinfo/cretno", opener.javascript.getParameter("SMARH01100_param_cretno"));
- model.setValue("/root/init/ocrconsentinfo/class", opener.javascript.getParameter("SMARH01100_param_class"));
- model.setValue("/root/init/ocrconsentinfo/flag", opener.javascript.getParameter("SMARH01100_param_flag"));
- model.setValue("/root/init/ocrconsentinfo/cuser", getUserInfo("userid"));
- model.setValue("/root/init/ocrconsentinfo/formrecseq", opener.javascript.getParameter("SMARH01100_param_formrecseq"));
-
- model.setValue("/root/send/save/relationship", "MYSELF");
- fSetConsenterComponent(false);
-
- //정보 조회
- model.setValue("/root/send/searchpatient/pid",opener.javascript.getParameter("SMARH01100_param_patid"));
- fSearch();
-
- // 동의자 정보 세팅
- // fSetConsenter();
-
- model.refresh();
- }
-
- // 조회
- function fSearch(){
- model.setValue("/root/send/searchpatient/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/searchpatient/formrecseq", model.getValue("/root/init/ocrconsentinfo/formrecseq"));
- submit("TRARH01102");
- model.refresh();
-
- // 동의서 등록 상태에 따른 처리 로직
- var consentstatus = model.getValue("/root/main/patientinfo/consentlist/consentstatus");
- var pid = model.getValue("/root/send/searchpatient/pid");
- var hngnm = model.getValue("/root/main/patientinfo/patient/name");
- var telcom = model.getValue("/root/main/patientinfo/patient/telecomnumber");
-
- // 조회 이후에는 본인으로 초기값 세팅
- fSetConsenterComponent(false);
-
- if(consentstatus == "NOTREGISTERED"){
- cap_consentstatus.value = pid + " " + hngnm + " - HIE 동의정보 등록이 되지 않았습니다.";
-
- }else if(consentstatus == "1.2.410.100110.40.2.2.2.2"){
- cap_consentstatus.value = pid + " " + hngnm + " - HIE 일괄동의(전체) 하였습니다.";
-
- }else if(consentstatus == "1.2.410.100110.40.2.2.2.4"){
- cap_consentstatus.value = pid + " " + hngnm + " - HIE 동의철회(전체) 하였습니다.";
-
- }else if(consentstatus == "1.2.410.100110.40.2.2.2.5"){
- cap_consentstatus.value = pid + " " + hngnm + " - HIE 동의철회(부분) 하였습니다.";
-
- }
-
- var cdaxml = model.getValue("/root/main/patientinfo/cdalist/cdaxml");
- fHIEView(cdaxml);
-
- //model.refresh();
-
- }
-
- // 동의자정보 컴포넌트의 값세팅 및 활성화여부 적용
- function fSetConsenterComponent(flag){
- if(flag == false){
- //alert(model.getValue("/root/main/patientinfo/patient/name"));
- model.setValue("/root/send/save/guardianname", model.getValue("/root/main/patientinfo/patient/patientname"));
- model.setValue("/root/send/save/guardiantelcom", model.getValue("/root/main/patientinfo/patient/telecomnumber"));
- ipt_guardianname.disabled = true;
- ipt_guardiantelcom.disabled = true;
- ipt_guardianname2.disabled = true;
- ipt_guardiantelcom2.disabled = true;
- }else{
- model.setValue("/root/send/save/guardianname", "");
- model.setValue("/root/send/save/guardiantelcom", "");
- ipt_guardianname.disabled = false;
- ipt_guardiantelcom.disabled = false;
- ipt_guardianname2.disabled = false;
- ipt_guardiantelcom2.disabled = false;
- }
- //alert(model.getValue("/root/send/save/guardianname"));
- }
-
- // 동의서 및 철회서 뷰
- function fHIEView(cdaxml){
- var doc = object1.Document;
- var objDom = doc.body;
- objDom.innerHTML = cdaxml;
- window.activate();
-
- }
-
-
- function fGetABCForEventCode(){
- var pageflag = model.getValue("/root/hidden/pageflag");
-
- if(pageflag == "1"){
- return "A";
- }else if(pageflag == "2"){
- var policytype = model.getValue("/root/send/save/policytype");
-
- if(policytype == "ENTIRE_WITHDRAWAL"){
- return "B";
- }else if(policytype == "PARTIAL_WITHDRAWAL"){
- return "C";
- }
- }
-
- }
-
- // 동의, 철회서 작성(flag A:일괄동의, flag B:일괄철회, flag C:부분철회)
- function fPrintOcrConsent(flag) {
- if(flag != "A" && flag != "B" && flag != "C"){
- return "";
- }
- clearParameter("SSMRC03160_param_rtnocrtag");
-
- clearParameter("SSMRC03160_param_instcd");
- clearParameter("SSMRC03160_param_patid");
- clearParameter("SSMRC03160_param_indate");
- clearParameter("SSMRC03160_param_cretno");
- clearParameter("SSMRC03160_param_class");
- clearParameter("SSMRC03160_param_flag");
- clearParameter("SSMRC03160_param_cuser");
- clearParameter("SSMRC03160_param_tag1");
- clearParameter("SSMRC03160_param_tag2");
- clearParameter("SSMRC03160_param_tag3");
- clearParameter("SSMRC03160_param_tag4");
- clearParameter("SSMRC03160_param_tag5");
- clearParameter("SSMRC03160_param_tag6");
- clearParameter("SSMRC03160_param_tag7");
-
- // 공통 파라미터 세팅
- setParameter("SSMRC03160_param_instcd", model.getValue("/root/init/ocrconsentinfo/instcd"));
- setParameter("SSMRC03160_param_patid", model.getValue("/root/init/ocrconsentinfo/patid"));
- setParameter("SSMRC03160_param_indate", model.getValue("/root/init/ocrconsentinfo/indate"));
- setParameter("SSMRC03160_param_cretno", model.getValue("/root/init/ocrconsentinfo/cretno"));
- setParameter("SSMRC03160_param_class", model.getValue("/root/init/ocrconsentinfo/class"));
- setParameter("SSMRC03160_param_flag", model.getValue("/root/init/ocrconsentinfo/flag"));
- setParameter("SSMRC03160_param_cuser", model.getValue("/root/init/ocrconsentinfo/cuser"));
- setParameter("SSMRC03160_param_tag1", model.getValue("/root/send/save/guardianname")); // 환자 또는 법정대리인 성명
- setParameter("SSMRC03160_param_tag2", model.getValue("/root/send/save/guardiantelcom")); // 환자 또는 법정대리인 개인식별번호
- setParameter("SSMRC03160_param_tag3", model.getValue("/root/send/save/relationship")); // 동의 승인자와 환자와의 관계 유형(MYSELF : 본인, FAMILY : 가족, LEGAL_REPRESENTIVE : 법정대리인, ETC : 기타)
- setParameter("SSMRC03160_param_tag4", model.getValue("/root/send/save/reason")); // 동의 철회 사유
-
-
- // 전자동의서 모듈 호출
- if ( flag == "A" ) {
- setParameter("SSMRC03160_param_docucd", "1600018738");
-
- }
- else if(flag == "B" ) {
- setParameter("SSMRC03160_param_docucd", "1600018739");
- setParameter("SSMRC03160_param_tag5", "전체"); // 동의 철회 전체/부분 여부
- }
- else if(flag == "C" ) {
- setParameter("SSMRC03160_param_docucd", "1600018739");
- setParameter("SSMRC03160_param_tag5", "부분"); // 동의 철회 전체/부분 여부
-
- var withdrawhosplist = "";
- for(var i=1;i<=grd_withdrawhosp.rows;i++){
- var id = model.getValue("/root/main/patientinfo/withdrawhosplist["+(i)+"]/partwithdrawalorg");
- var name = model.getValue("/root/init/initinfo/hosplist[mdins_oid == '" + id + "']/mdins_nm");
- if(i == 1){
- withdrawhosplist = name;
- }else{
- withdrawhosplist = ","+name;
- }
- }
-
- var withdrawdeptlist = "";
- for(var i=1;i<=grd_withdrawdept.rows;i++){
- var id = model.getValue("/root/main/patientinfo/withdrawdeptlist["+(i)+"]/partwithdrawaldep");
- var name = model.getValue("/root/init/initinfo/deptlist[dept_cd == '" + id + "']/dept_nm");
- if(i == 1){
- withdrawdeptlist = name;
- }else{
- withdrawdeptlist = ","+name;
- }
- }
-
- setParameter("SSMRC03160_param_tag6", withdrawhosplist); // 철회병원 리스트
- setParameter("SSMRC03160_param_tag7", withdrawdeptlist); // 철회과 리스트
-
- }
-
-
-
- modal("SSMRC03160");
-
- return getParameter("SSMRC03160_param_rtnocrtag");
-
- }
-
- // 동의서 및 철회서 저장
- function fSave(){
-
- //사인패드 입력하는 부분은 추후 필요 시 구현키로 함
- //modal("SPARH01100");
-
- // 전자동의서 작성
- var ocrtag = fPrintOcrConsent(fGetABCForEventCode());
- if(isNull(ocrtag)){
- messageBox("취소되었습니다.","E999");
- return;
- }
-
- //model.setValue("/root/send/save/relationship",model.getValue("/root/main/consenter/relationship"));
- //model.setValue("/root/send/save/name",model.getValue("/root/main/consenter/name"));
- //model.setValue("/root/send/save/reason",model.getValue("/root/main/consenter/reason"));
-
- /*
- var withdrawhosplistNodes = instance1.selectNodes("/root/main/patientinfo/withdrawhosplist");
- if(withdrawhosplistNodes.length > 0)
- model.makeValue("/root/send/save/withdrawhosplist",getNodeListCSV(withdrawhosplistNodes));
- else
- model.removenode("/root/send/save/withdrawhosplist");
-
- var withdrawdeptlistNodes = instance1.selectNodes("/root/main/patientinfo/withdrawdeptlist");
- if(withdrawdeptlistNodes.length > 0)
- model.makeValue("/root/send/save/withdrawdeptlist",getNodeListCSV(withdrawdeptlistNodes));
- else
- model.removenode("/root/send/save/withdrawdeptlist");
- */
-
- model.setValue("/root/send/save/instcd",model.getValue("/root/init/ocrconsentinfo/instcd"));
- model.setValue("/root/send/save/patid",model.getValue("/root/init/ocrconsentinfo/patid"));
- model.setValue("/root/send/save/formrecseq",model.getValue("/root/init/ocrconsentinfo/formrecseq"));
-
- // 철회요청병원
- var withdrawhosplistNodes = instance1.selectNodes("/root/main/patientinfo/withdrawhosplist");
- if(withdrawhosplistNodes.length > 0)
- model.makeValue("/root/send/save/withdrawhosplist",getNodeListCSV(withdrawhosplistNodes));
- else
- model.removenode("/root/send/save/withdrawhosplist");
-
- // 철회요청진료과
- var withdrawdeptlistNodes = instance1.selectNodes("/root/main/patientinfo/withdrawdeptlist");
- if(withdrawdeptlistNodes.length > 0)
- model.makeValue("/root/send/save/withdrawdeptlist",getNodeListCSV(withdrawdeptlistNodes));
- else
- model.removenode("/root/send/save/withdrawdeptlist");
-
- submit("TXARH01101");
-
- fHIEView(model.getValue("/root/main/cdainfo/cdalist/cdaxml"));
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1200" pageheight="900">
- <caption id="caption2" class="tit_1" style="left:0px; top:0px; width:297px; height:14px; ">HIE 동의철회관리</caption>
- <caption id="caption75" class="tit_2" style="left:5px; top:20px; width:196px; height:14px; ">환자정보(동의주체)</caption>
- <switch id="switch1" style="left:1px; top:228px; width:423px; height:662px; ">
- <case id="case1" style="left:0px; top:0px; width:100.00%; height:100.00%; ">
- <caption id="caption1" style="left:15px; top:135px; width:330px; height:20px; ">본인(법정대리인)은 [1]개인정보의 제공, 이용에 동의합니다.</caption>
- <select1 id="radio1" ref="/root/send/save/question1" appearance="full" cellspacing="50" cols="2" overflow="visible" style="left:256px; top:154px; width:150px; height:25px; text-align:center; vertical-align:middle; border-style:sunken; ">
- <choices>
- <item>
- <label>예</label>
- <value>Y</value>
- </item>
- <item>
- <label>아니오</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption3" style="left:15px; top:195px; width:440px; height:28px; ">
- <![CDATA[본인(법정대리인)은 [2]고유식별 정보(주민등록번호)의 제공, 이용에 동의
- 합니다.]]>
- </caption>
- <caption id="caption4" style="left:15px; top:249px; width:372px; height:20px; ">본인(법정대리인)은 [3]민감(진료) 정보의 제공, 이용에 동의합니다.</caption>
- <select1 id="radio2" ref="/root/send/save/question2" appearance="full" cellspacing="50" cols="2" overflow="visible" style="left:256px; top:212px; width:150px; height:25px; text-align:center; vertical-align:middle; border-style:sunken; ">
- <choices>
- <item>
- <label>예</label>
- <value>Y</value>
- </item>
- <item>
- <label>아니오</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <select1 id="radio3" ref="/root/send/save/question3" appearance="full" cellspacing="50" cols="2" overflow="visible" style="left:256px; top:268px; width:150px; height:25px; text-align:center; vertical-align:middle; border-style:sunken; ">
- <choices>
- <item>
- <label>예</label>
- <value>Y</value>
- </item>
- <item>
- <label>아니오</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <group id="group2" style="left:5px; top:10px; width:410px; height:115px; background-color:#cce8ff; ">
- <caption id="caption5" class="cell_1" style="left:10px; top:30px; width:70px; height:23px; vertical-align:middle; ">관계</caption>
- <caption id="caption6" class="cell_1" style="left:10px; top:55px; width:70px; height:23px; vertical-align:middle; ">성명</caption>
- <select1 id="cmb_relationship" ref="/root/send/save/relationship" class="input_essential" appearance="minimal" style="left:85px; top:30px; width:285px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/relationshipinfo/list">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- //var relationship = cmb_relationship.value ;
- var relationship = model.getValue("/root/send/save/relationship");
-
- if(relationship == "MYSELF"){
- fSetConsenterComponent(false);
-
- }else{
- fSetConsenterComponent(true);
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption7" class="cell_1" style="left:10px; top:80px; width:70px; height:23px; vertical-align:middle; ">전화번호</caption>
- <input id="ipt_guardianname" ref="/root/send/save/guardianname" class="input_essential" navindex="2" style="left:85px; top:56px; width:285px; height:19px; "/>
- <input id="ipt_guardiantelcom" ref="/root/send/save/guardiantelcom" navindex="2" style="left:85px; top:80px; width:285px; height:19px; "/>
- <caption id="caption8" class="tit_2" style="left:10px; top:10px; width:196px; height:14px; ">동의자정보</caption>
- </group>
- </case>
- <case id="case2" selected="true">
- <group id="group3" style="left:5px; top:35px; width:410px; height:135px; background-color:#cce8ff; ">
- <caption id="caption9" class="cell_1" style="left:10px; top:30px; width:70px; height:23px; vertical-align:middle; ">관계</caption>
- <caption id="caption10" class="cell_1" style="left:10px; top:55px; width:70px; height:23px; vertical-align:middle; ">성명</caption>
- <select1 id="cmb_relationship2" ref="/root/send/save/relationship" class="input_essential" appearance="minimal" style="left:85px; top:30px; width:285px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/relationshipinfo/list">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //var relationship = cmb_relationship.value ;
- var relationship = model.getValue("/root/send/save/relationship");
-
- if(relationship == "MYSELF"){
- fSetConsenterComponent(false);
-
- }else{
- fSetConsenterComponent(true);
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption12" class="cell_1" style="left:10px; top:80px; width:70px; height:23px; vertical-align:middle; ">전화번호</caption>
- <input id="ipt_guardianname2" ref="/root/send/save/guardianname" class="input_essential" navindex="2" imemode="hangul" style="left:85px; top:56px; width:285px; height:19px; "/>
- <input id="ipt_guardiantelcom2" ref="/root/send/save/guardiantelcom" navindex="2" style="left:85px; top:80px; width:285px; height:19px; "/>
- <caption id="caption13" class="tit_2" style="left:10px; top:10px; width:196px; height:14px; ">동의자정보</caption>
- <input id="input1" ref="/root/send/save/reason" class="input_essential" navindex="2" style="left:85px; top:105px; width:285px; height:19px; "/>
- <caption id="caption16" class="cell_1" style="left:10px; top:105px; width:70px; height:23px; vertical-align:middle; ">철회사유</caption>
- </group>
- <select1 id="radio4" ref="/root/send/save/policytype" appearance="full" cellspacing="50" cols="2" vcellspacing="5" overflow="visible" style="left:5px; top:5px; width:220px; height:25px; text-align:center; vertical-align:middle; border-color:#c0c0c0; border-style:solid; ">
- <choices>
- <item>
- <label>전체 철회서</label>
- <value>ENTIRE_WITHDRAWAL</value>
- </item>
- <item>
- <label>부분 철회서</label>
- <value>PARTIAL_WITHDRAWAL</value>
- </item>
- </choices>
- </select1>
- <group id="group5" style="left:5px; top:175px; width:410px; height:250px; ">
- <caption id="caption14" class="tit_2" style="left:10px; top:10px; width:196px; height:14px; ">철회 요청 병원</caption>
- <datagrid id="grd_withdrawhosp" nodeset="/root/main/patientinfo/withdrawhosplist" scroll="auto" caption="병원명^주소" colsep="^" colwidth="180, 178" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:25px; width:409px; height:220px; ">
- <col disabled="false" ref="partwithdrawalorg" type="combo">
- <choices>
- <itemset nodeset="/root/main/patientinfo/hosplist">
- <label ref="mdins_nm"/>
- <value ref="mdins_oid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="partwithdrawalorg" type="combo">
- <choices>
- <itemset nodeset="/root/main/patientinfo/hosplist">
- <label ref="mdins_addr"/>
- <value ref="mdins_oid"/>
- </itemset>
- </choices>
- </col>
- </datagrid>
- <button id="button1" class="btn2_letter2" style="left:315px; top:5px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
-
- model.removeNodeset("/root/hidden/popup/withdrawhosp/list");
- clearParameter("SPARH00500_PARAM");
- modal("SPARH00500");
- var param = getParameter("SPARH00500_PARAM");
- if(isNull(param)){
- return;
- }
-
- setCSVToNode("/root/hidden/popup/withdrawhosp", param);
-
- var cnt = 0; // 추가된 개수 계산
- for(var i=1;i<=instance1.selectNodes("/root/hidden/popup/withdrawhosp/list").length;i++){
- var organizationoid = model.getValue("/root/hidden/popup/withdrawhosp/list["+(i)+"]/organizationoid");
-
- if(instance1.selectNodes("/root/main/patientinfo/withdrawhosplist[partwithdrawalorg='"+organizationoid+"']").length > 0){
- continue;
- }
-
- grd_withdrawhosp.addRow();
-
- var row = grd_withdrawhosp.row;
- model.setValue("/root/main/patientinfo/withdrawhosplist["+(row)+"]/partwithdrawalorg", organizationoid);
-
- cnt++;
- }
-
- // 추가된게 있으면
- //if(cnt > 0){
- // fAddConsent("C");
- //}
-
- model.refresh();
-
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter2" style="left:360px; top:5px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var row = grd_withdrawhosp.row;
-
- grd_withdrawhosp.deleteRow(row);
-
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <group id="group6" style="left:5px; top:430px; width:410px; height:225px; ">
- <caption id="caption15" class="tit_2" style="left:10px; top:10px; width:196px; height:14px; ">철회 요청 진료과</caption>
- <datagrid id="grd_withdrawdept" nodeset="/root/main/patientinfo/withdrawdeptlist" caption="부서명" colsep="^" colwidth="246" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:27px; width:410px; height:195px; ">
- <col disabled="true" ref="partwithdrawaldep" type="combo">
- <choices>
- <itemset nodeset="/root/main/patientinfo/deptlist">
- <label ref="dept_nm"/>
- <value ref="dept_cd"/>
- </itemset>
- </choices>
- </col>
- </datagrid>
- <button id="button2" class="btn2_letter2" style="left:314px; top:5px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- clearParameter("SPARH00600_PARAM");
- modal("SPARH00600");
- var param = getParameter("SPARH00600_PARAM");
- if(isNull(param)){
- return;
- }
-
- model.removeNodeset("/root/hidden/popup/withdrawdept/list");
- setCSVToNode("/root/hidden/popup/withdrawdept", param);
-
- for(var i=1;i<=instance1.selectNodes("/root/hidden/popup/withdrawdept/list").length;i++){
- var departmentcode = model.getValue("/root/hidden/popup/withdrawdept/list["+(i)+"]/commoncode");
-
- grd_withdrawdept.addRow();
-
- var row = grd_withdrawdept.row;
- model.setValue("/root/main/patientinfo/withdrawdeptlist["+(row)+"]/partwithdrawaldep", departmentcode);
-
-
- }
-
- //fAddConsent("C");
- model.refresh();
-
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter2" style="left:359px; top:5px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
-
- var row = grd_withdrawdept.row;
-
- grd_withdrawdept.deleteRow(row);
-
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- </case>
- </switch>
- <group id="group1" disabled="true" style="left:0px; top:35px; width:425px; height:165px; ">
- <caption id="caption81" class="cell_1" style="left:2px; top:58px; width:135px; height:23px; vertical-align:middle; ">주민번호</caption>
- <caption id="caption82" class="cell_1" style="left:2px; top:8px; width:135px; height:23px; vertical-align:middle; ">등록번호</caption>
- <caption id="caption83" class="cell_1" style="left:271px; top:8px; width:65px; height:23px; vertical-align:middle; ">성별/나이</caption>
- <caption id="caption84" class="cell_1" style="left:271px; top:58px; width:65px; height:23px; vertical-align:middle; ">생년월일</caption>
- <input id="ipt_tel" ref="/root/main/patientinfo/patient/telecomnumber" class="input_default" navindex="6" maxlength="13" style="left:140px; top:85px; width:282px; height:19px; text-align:left; "/>
- <input id="ipt_pid" ref="/root/send/searchpatient/pid" accesskey="ctrl+keyCode(48)" navindex="1" imemode="disabled" maxlength="10" format="#" appearance="input" style="left:140px; top:10px; width:128px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- //무조건 재조회 할수 있도록 clear 후에 조회 호출 필요
- if (event.keyCode == "13"){
-
-
- var pid = ipt_pid.currentText;
- if(isNull(pid)){
- messageBox("등록번호는","I003");
- model.setFocus("ipt_pid");
- return;
- }
- model.setValue("/root/send/searchpatient/pid",pid);
- fSearch();
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_rrgstno" ref="/root/main/patientinfo/patient/ssnnumber" navindex="3" format="999999-9999999" style="left:140px; top:60px; width:128px; height:19px; "/>
- <caption id="caption85" class="cell_1" style="left:2px; top:83px; width:135px; height:23px; vertical-align:middle; ">전화번호</caption>
- <caption id="caption11" class="cell_1" style="left:2px; top:108px; width:135px; height:49px; vertical-align:middle; ">주소</caption>
- <input id="ipt_age" ref="/root/main/patientinfo/patient/age" class="input_default" style="left:397px; top:10px; width:25px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (fAgeVeri() == false) return;
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13"){
- //setInputNodeCurText();
- if (fAgeVeri() == false) return;
- }
- ]]>
- </script>
- </input>
- <input id="ipt_hngnm" ref="/root/main/patientinfo/patient/patientname" navindex="2" imemode="hangul" style="left:140px; top:35px; width:128px; height:19px; "/>
- <caption id="caption79" class="cell_1" style="left:2px; top:33px; width:135px; height:23px; vertical-align:middle; ">성명</caption>
- <input id="ipt_brthdd" ref="/root/main/patientinfo/patient/dateofbirth" class="input_default" navindex="5" format="yyyy-mm-dd" style="left:339px; top:60px; width:83px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(fBrthddVeri(model.getValue("/root/main/ptbs/ptbs_brthdd"),ipt_brthdd) == false) return; //2010-01-18 김주희 DUR관련 생년월일체크
- ]]>
- </script>
- </input>
- <line id="line2" class="line_2" style="x1:2px; y1:105px; x2:422px; y2:105px; "/>
- <select1 id="cmb_sex" ref="/root/main/patientinfo/patient/gender" class="combo_default" appearance="minimal" style="left:339px; top:10px; width:55px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/genderinfo/list">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <textarea id="textarea1" ref="/root/main/patientinfo/patient/address" style="left:140px; top:107px; width:282px; height:53px; "/>
- <line id="line102" class="line_1" style="x1:2px; y1:3px; x2:422px; y2:3px; "/>
- <line id="line103" class="line_2" style="x1:2px; y1:32px; x2:422px; y2:32px; "/>
- <line id="line158" class="line_3" style="x1:2px; y1:162px; x2:422px; y2:162px; "/>
- <line id="line104" class="line_2" style="x1:2px; y1:57px; x2:422px; y2:57px; "/>
- <line id="line105" class="line_2" style="x1:2px; y1:82px; x2:422px; y2:82px; "/>
- </group>
- <button id="bbt_withdrawal" class="btn_sw" group="tab" selected="false" style="left:89px; top:205px; width:89px; height:22px; ">
- <caption>철회서작성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var consentstatus = model.getValue("/root/main/patientinfo/consentlist/consentstatus");
- var pid = model.getValue("/root/send/searchpatient/pid");
- var hngnm = model.getValue("/root/main/patientinfo/patient/name");
-
- // 동의 등록되지 않은 경우에는 리턴
- if(consentstatus == "NOTREGISTERED"){
- messageBox("동의서작성을 먼저 작성 후 ","I006");
- bbt_consent.selected = true;
- bbt_withdrawal.selected = false;
- return;
- }
-
- model.toggle("case2");
- model.setValue("/root/hidden/pageflag","2");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="bbt_consent" class="btn_sw" group="tab" selected="true" style="left:0px; top:205px; width:89px; height:22px; ">
- <caption>동의서작성</caption>
- <toggle case="case1" ev:event="DOMActivate"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/hidden/pageflag","1");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button8" class="btn4_letter2" style="left:1116px; top:7px; width:56px; height:22px; ">
- <caption>등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pageflag = model.getValue("/root/hidden/pageflag");
- var relationship = model.getValue("/root/send/save/relationship");
- if(isNull(relationship)){
- messageBox("동의자정보 관계는","I003");
- return;
- }
-
- var guardianname = model.getValue("/root/send/save/guardianname");
- if(isNull(guardianname)){
- messageBox("동의자정보 성명은","I003");
- return;
- }
-
- if(pageflag == "1"){ // 동의서 작성인 경우
- var question1 = model.getValue("/root/send/save/question1");
- var question2 = model.getValue("/root/send/save/question2");
- var question3 = model.getValue("/root/send/save/question3");
-
- if(question1 != "Y" || question2 != "Y" || question3 != "Y"){
- messageBox("동의하지 않은 항목이","I010");
- return;
- }
-
- model.setValue("/root/send/save/documenttype","1.2.410.100110.40.2.2.1.1");
-
- }else if(pageflag == "2"){ // 철회서 작성인 경우
-
- var policytype = model.getValue("/root/send/save/policytype");
- if(isNull(policytype)){
- messageBox("전체 철회서인지 부분 철회서인지 선택","I008");
- return;
- }
-
- var consentstatus = model.getValue("/root/main/patientinfo/consentlist/consentstatus");
- if(consentstatus == "1.2.410.100110.40.2.2.2.4"){ // 현재 전체 철회 상태라면
- messageBox("전체 철회 상태이므로 동의서 작성 후 부분철회 가능합니다.","E999");
- return;
- }
-
- var reason = model.getValue("/root/send/save/reason");
- if(isNull(reason)){
- messageBox("동의자정보 철회사유는","I003");
- return;
- }
-
- model.setValue("/root/send/save/documenttype","1.2.410.100110.40.2.2.1.2");
- }
-
- /*
- var consentgb = model.getValue("/root/hidden/consentgb");
- if(consentgb == "L"){ // 법정대리인 체크된 경우
- var name = model.getValue("/root/main/consenter/name");
- if(isNull(name)){
- messageBox("법정대리인 이름은 필수입니다.","E999");
- return;
- }
-
- var ssn = model.getValue("/root/main/consenter/ssn");
- if(isNull(ssn)){
- messageBox("법정대리인 주민번호는 필수입니다.","E999");
- return;
- }
-
- var relationship = model.getValue("/root/main/consenter/relationship");
- if(isNull(relationship)){
- messageBox("법정대리인 이름은 필수입니다.","E999");
- return;
- }
-
- }
-
- if(!fCheckExistsConsent("A") && !fCheckExistsConsent("B")){
- messageBox("동의철회내역이 존재하지 않습니다.","E999");
- return;
- }
-
- // 부분철회가 있을 경우 체크
- if(fCheckExistsConsent("C") || fCheckExistsConsent("B")){
- var reason = model.getValue("/root/main/consenter/reason");
- if(isNull(reason)){
- messageBox("철회 시 철회사유를 입력하셔야 합니다.","E999");
- return;
- }
-
- if(fCheckExistsConsent("C")) {
- if(grd_withdrawhosp.rows-1 <= 0 && grd_withdrawdept.rows-1 <= 0){
- messageBox("부분철회내역이 존재하지 않습니다.","E999");
- return;
- }
- }
-
- }
- */
-
- setAlertOn();
- fSave();
-
- //window.close();
-
- ]]>
- </script>
- </button>
- <group id="group4" style="left:430px; top:35px; width:765px; height:855px; background-color:#c0c0c0; ">
- <object id="object1" clsid="{8856f961-340a-11d0-a96b-00c04fd705a2}" AddressBar="false" MenuBar="false" StatusBar="false" Resizable="false" style="left:8px; top:33px; width:750px; height:817px; ">
- <script type="javascript" ev:event="TitleChange(Text)">
- <![CDATA[
- /*
- if( chk != Text ) {
- chk = Text;
-
- if( Text == "about:blank" ) {
- alert("2");
- var doc = object1.Document;
- var objDom = doc.body;
- objDom.innerHTML = model.getValue("/root/main/cdainfo/cdalist/cdaxml");
-
- window.activate();
- }
- }
- */
- ]]>
- </script>
- <script type="javascript" ev:event="NavigateComplete2(pDisp, URL)">
- <![CDATA[
- //fSearch();
- ]]>
- </script>
- </object>
- <caption id="cap_consentstatus" style="left:5px; top:2px; width:755px; height:30px; font-weight:bold; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|