123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMMR06801" position="absolute 0 0 595 684" titletext="DischargeNoteJCI" oninit="SMMMR06801_oninit" onload="SMMMR06801_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 595 684" id="grup_base" anchor="all">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 477 593 483" linetype="horizontal" id="line2" class="line_2" anchor="left top right"/>
- <Shape position="absolute 0 273 593 279" linetype="horizontal" id="line1" class="line_2" anchor="left top right"/>
- <Static text="치료과정 " position="absolute 0 84 65 274" align="align:center middle;" id="lbl_0001052001" class="cell_1" style="font:Dotum,9,bold;" anchor="left top" onclick="Static_onclick"/>
- <Static text="추후계획 " position="absolute 0 277 65 477" align="align:center middle;" id="lbl_0000080001" class="cell_1" style="font:Dotum,9,bold;" anchor="left top" onclick="Static_onclick"/>
- <Static text="퇴실시 환자상태 " position="absolute 0 482 65 682" align="align:center middle;" id="lbl_0022829001" class="cell_1" style="font:Dotum,9,bold;" anchor="left top bottom" onclick="Static_onclick"/>
- <Div position="absolute 67 84 593 274" id="ivw_0001052001" visible="false" class="div_DA_cell" anchor="left top right"/>
- <Div position="absolute 67 277 593 477" id="ivw_0000080001" visible="false" class="div_DA_cell" anchor="left top right"/>
- <Div position="absolute 67 482 593 682" id="ivw_0022829001" visible="false" class="div_DA_cell" anchor="all"/>
- <Static position="absolute 67 84 593 274" align="align:center middle;" id="cap_0001052001" class="sta_DA_Imgcaption" anchor="left top right"/>
- <Static position="absolute 67 277 593 477" align="align:center middle;" id="cap_0000080001" class="sta_DA_Imgcaption" anchor="left top right"/>
- <TextArea position="absolute 67 84 593 274" id="tar_0001052001" ontextchanged="fComnFormMtxChanged" anchor="left top right"/>
- <TextArea position="absolute 67 277 593 477" id="tar_0000080001" ontextchanged="fComnFormMtxChanged" anchor="left top right"/>
- <TextArea position="absolute 67 482 593 682" id="tar_0022829001" ontextchanged="fComnFormMtxChanged" anchor="all"/>
- <Button position="absolute 43 251 63 271" id="btn_imge_0001052001" class="btn_picture" text="" tooltiptext="이미지편집창 열기"/>
- <Shape id="line3" class="line_2" position="absolute 0 80 593 86" anchor="left top right"/>
- <Static id="lbl_0001013001" text="진단명 " onclick="Static_onclick" class="cell_1" position="absolute 0 0 65 81" anchor="left top" style="font:Dotum,9,bold;"/>
- <Div id="ivw_0001013001" anchor="left top right" taborder="1" class="div_DA_cell" position="absolute 67 0 593 81"/>
- <TextArea id="tar_0001013001" taborder="2" ontextchanged="fComnFormMtxChanged" position="absolute 67 0 593 81" anchor="left top right"/>
- <Button id="Button00" taborder="3" text="S&O" position="absolute 9 184 56 207" class="btn2" tooltiptext="최초 경과기록 S&O 항목연동" onclick="grup_base_Button00_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_cbo_0001052001" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="formnminfo" type="STRING"/>
- <Column id="formdegnseq" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cbo_0000080001" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="formnminfo" type="STRING"/>
- <Column id="formdegnseq" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_data_fmyrecItemRef" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="fstlevlitemcd" type="STRING" size="256"/>
- <Column id="formcd" type="STRING" size="256"/>
- <Column id="reccnts" type="STRING" size="256"/>
- <Column id="recimge" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_temp_unitrecitem" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="rechistseq" type="STRING" size="256"/>
- <Column id="recitemno" type="STRING" size="256"/>
- <Column id="fstlevlitemcd" type="STRING" size="256"/>
- <Column id="formcd" type="STRING" size="256"/>
- <Column id="formdegnseq" type="STRING" size="256"/>
- <Column id="degnitemno" type="STRING" size="256"/>
- <Column id="degnitemcd" type="STRING" size="256"/>
- <Column id="degnitemkind" type="STRING" size="256"/>
- <Column id="degnitemlevlno" type="STRING" size="256"/>
- <Column id="degnitemnm" type="STRING" size="256"/>
- <Column id="degnitemlevlcd" type="STRING" size="256"/>
- <Column id="rectermcd" type="STRING" size="256"/>
- <Column id="rectermnm" type="STRING" size="256"/>
- <Column id="recrefcd" type="STRING" size="256"/>
- <Column id="recitemnm" type="STRING" size="256"/>
- <Column id="reccnts" type="STRING" size="256"/>
- <Column id="unitnm" type="STRING" size="256"/>
- <Column id="recimge" type="BLOB"/>
- <Column id="srcimge" type="BLOB"/>
- <Column id="rowno" type="STRING" size="256"/>
- <Column id="colno" type="STRING" size="256"/>
- <Column id="supdegnitemno" type="STRING" size="256"/>
- <Column id="extdegnitemlevlcd" type="STRING" size="256"/>
- <Column id="rectermflag" type="STRING" size="256"/>
- <Column id="degnunitcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset firefirstcount="0" firenextcount="0" id="ds_data_recitem">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="rechistseq" type="STRING" size="256"/>
- <Column id="recitemno" type="STRING" size="256"/>
- <Column id="fstlevlitemcd" type="STRING" size="256"/>
- <Column id="formcd" type="STRING" size="256"/>
- <Column id="formdegnseq" type="STRING" size="256"/>
- <Column id="degnitemno" type="STRING" size="256"/>
- <Column id="degnitemcd" type="STRING" size="256"/>
- <Column id="degnitemkind" type="STRING" size="256"/>
- <Column id="degnitemlevlno" type="STRING" size="256"/>
- <Column id="degnitemnm" type="STRING" size="256"/>
- <Column id="degnitemlevlcd" type="STRING" size="256"/>
- <Column id="rectermcd" type="STRING" size="256"/>
- <Column id="rectermnm" type="STRING" size="256"/>
- <Column id="recrefcd" type="STRING" size="256"/>
- <Column id="recitemnm" type="STRING" size="256"/>
- <Column id="reccnts" type="STRING" size="256"/>
- <Column id="unitnm" type="STRING" size="256"/>
- <Column id="recimge" type="BLOB"/>
- <Column id="srcimge" type="BLOB"/>
- <Column id="rowno" type="STRING" size="256"/>
- <Column id="colno" type="STRING" size="256"/>
- <Column id="supdegnitemno" type="STRING" size="256"/>
- <Column id="extdegnitemlevlcd" type="STRING" size="256"/>
- <Column id="rectermflag" type="STRING" size="256"/>
- <Column id="degnunitcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-04-10
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-04-10 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"
- include "emr_commonxp::EMRCommon.xjs"
- include "emr_prcpmngtxp::MMO001.xjs"
- include "emr_medirecxp::MMRCommon.xjs"
- include "emr_medirecxp::MMRBind.xjs"
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- var gb_sms = false;
-
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description : 부분서식 완료시 fOnLoadComplete 호출
- ****************************************************************************************/
- function lf_onloadcomplete(){
- fOnLoadComplete();
- }
-
- /****************************************************************************************
- * Function : lf_getUnitFormRecData
- * Description : 기록정보 조합
- ****************************************************************************************/
- function lf_getUnitFormRecData(mode, tmp)
- {
- // MMRcommon.xjs
- return lf_getRecDS(gItemCds, mode, tmp);
- }
- //=======================================================================================
- // Transaction Callback
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : 01.sSvcId : 서비스 ID
- * : 02.nErrorCode : 에러코드
- * : 03.sErrorMsg : 에러메시지
- * Description : cf_의 콜백함수
- ****************************************************************************************/
- function cf_(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- //sysf_trace("***** cf_ *****");
- }
-
- /**
- * @desc : [item코드목록]
- * "0001013001"//진단명
- * "0001052001"//치료과정
- * "0000080001"//추후계획
- * "0022829001"//퇴원시환자상태
- * [버튼목록]
- * "btn_imge_0001052001"//치료과정 이미지버튼
- */
- var gItemCds = new Array( "0001013001"//진단명
- , "0001052001"//치료과정
- , "0000080001"//추후계획
- , "0022829001"//퇴원시환자상태
- );
- var gItemCdsTextArea = new Array( "0001013001"//진단명
- , "0001052001"//치료과정 text
- , "0000080001"//추후계획 text
- , "0022829001"//퇴원시환자상태
- );
- /**
- * @desc : 확장버튼(이미지,가계도,추가기록)을 기록여부에 따라 표시를 위한 버튼목록
- * @id :
- * @authur : 안치원
- * @history : 2009.09.09 신규 안치원 ACW_090909A
- */
- var gExtnBtnIds = new Array("btn_imge_0001052001");//치료과정 이미지버튼
- /*******************************************************************
- * Function : fFormReady
- * Description : 화면 로드시 초기화 작업을 수행
- *******************************************************************/
- function fFormReady()
- {
- this.ComnFormObj = this.grup_base;
- dsf_createDsRow("ds_temp_mainrecitem",
- [{col:"formxrw", val:""}]);
- // 공통서식의 초기 recitem 정보. 기록 데이터 조합시 사용
- ds_temp_mainrecitem.assign(ds_data_recitem);
- lf_setSectionSize(gItemCds, "grup_base.tar_0001013001", "grup_base.tar_0022829001");
-
- //dispOnLoadComplete(COMN_FORM);
- // lf_checkUnitForm(gItemCds); // 부분서식 로딩
- lf_AllLoadUnitFormExpand(gItemCds); // 전체 로딩
-
- //InitBtnComn(gItemCds);
- InitBtnImge(gItemCds);
-
- //2010.01.21, hkjoo
- //initCmbExtnList(gItemCds);
-
- lf_setRecData(gItemCds);
-
- }
- /*******************************************************************
- * Function : initFormAtLast_MMR01100I
- * Description : MMR01100.js에서 서식load를 완료한 후에 호출한다.
- *******************************************************************/
- function initFormAtLast_MMR01100I(){
- //2010.01.19 dhkim - 통합기록조회용 JCI구분자추가
- //parent.window.javascript.fSetFormRec("xsltflag", "JCI");
- parent.fSetFormRec("xsltflag", "JCI2");
- }
- /*******************************************************************
- * Function : getSubmitID_MMR01300I
- * Description : MMR01300.js에서 submit직전에 submitID를 설정하기 위해서 호출한다.
- *******************************************************************/
- function getSubmitID_MMR01300I() {
- //parent.fSetFormRec("xsltflag", "JCI");//통합기록조회용 JCI구분자추가
-
- return TX_SUBMIT_EXTN_FORM;
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMMR06801
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 초기화
- ****************************************************************************************/
- function SMMMR06801_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMMR06801
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 초기화
- ****************************************************************************************/
- function SMMMR06801_onload(obj:Form, e:LoadEventInfo)
- {
-
- lf_makeRecitem();
-
- fFormReady();
- //parent.lf_oncomnformloadcomplete;
-
- initFormAtLast_MMR01100I();
-
-
- //우클릭 메뉴보이기 기능(Grid인 경우는 해당 Form OnLoad에 선언한다.)
- fCompRightMenuInit(grup_base.tar_0001052001); //치료과정 text
- fCompRightMenuInit(grup_base.tar_0000080001); //추후계획 text
- fCompRightMenuInit(grup_base.tar_0022829001); //퇴원시환자상태
- }
- /****************************************************************************************
- * Components : Static
- * Components ID : Common Static
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 선택된 Label의 부분서식을 로드하고 펼치거나 접는다.
- ****************************************************************************************/
- function Static_onclick(obj:Static, e:ClickEventInfo)
- {
- expandSection(gItemCds, obj);
- }
- //저장전 체크
- function fChkPreSave(signedYn)
- {
- //진단 부분서식
- var nRow = ds_data_formdegn.findRow("degnitemcd", "0001013001");
- var itemNm = ds_data_formdegn.getColumn(nRow, "itemnm");
- var rtnVal = grup_base.ivw_0001013001.fChkGrdPreSave(true,itemNm);
- if(rtnVal == false){
- return rtnVal;
- }
- trace("SSU_6.value:"+grup_base.ivw_0000080001.SSU_6.value);
-
- if ( parent.fGetFormRec("status") == "C"
- && grup_base.ivw_0000080001.SSU_6.value == "0020899001"
- && lf_ContainsHardCD("7131", "Y") ) {
- gb_sms = true;
- }
-
- }
- function fSaveAfter()
- {
-
- if ( gb_sms ) {
-
- var objArgs = new Object();
- objArgs.arg_ds_data_formrec = parent.ds_data_formrec;
- frmf_modal("SPMMR09300", "SPMMR09300", objArgs, null, null, null, null, null, null, null, null, null, "M");
- gb_sms = false;
-
- // if(frmf_getParameter("SPMMR09300_processyn") != "Y"){
- // sysf_messageBox("진행할 수 없습니다","I");
- // return false;
- // }
- }
- }
- function grup_base_Button00_onclick(obj:Button, e:ClickEventInfo)
- {
-
- var paminfo = sysf_getGlobalVariable("paminfo");
- if(paminfo.length <1){ //환자 원무 정보를 찾을 수 없는 경우
- sysf_messageBox("선택된 환자 정보를 찾을 수", "I004");
- return;
- }else{
- dsf_setCSVToDs("ds_paminfo", paminfo);
- var pid = ds_paminfo.getColumn(0, "pid");
- var indd = ds_paminfo.getColumn(0, "indd");
- var cretno = ds_paminfo.getColumn(0, "cretno");
- var orddeptcd = ds_paminfo.getColumn(0, "orddeptcd");
- }
-
- var val = grup_base.tar_0001052001.value;
-
- if (6 != sysf_messageBox("최초 경과기록 [S&O] 내용을 가져오시겠습니까?", "Q")) return;
-
- if (!utlf_isNull(val)) {
- if (6 != sysf_messageBox("치료과정에 이미 내용이 있습니다 계속 진행할까요?", "Q")) return;
- }
-
- dsf_createDsRow("ds_send_reqdata", [{col:"pid", type:"string", size:256, val:pid},
- {col:"indd", type:"string", size:256, val:indd},
- {col:"orddeptcd", type:"string", size:256, val:orddeptcd},
- {col:"cretno", type:"string", size:256, val:cretno}]);
- dsf_createDs("ds_result_data");
-
- var oParam = {};
- oParam.id = "reqGetProgSnOData_1";
- oParam.service = "medirecapp.ExtnMediRec";
- oParam.method = "reqGetProgSnOData";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_result_data=snoinfo";
- oParam.async = false;
- //oParam.callback = "";
- tranf_submit(oParam);
-
- if ( ds_result_data.rowcount > 0) {
- var obj = grup_base.tar_0001052001;
- obj.value = ds_result_data.getColumn(0,"reccnts");
- var ev = new TextChangedEventInfo();
- obj.ontextchanged.fireEvent(obj, ev);
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|