123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMMO03100" position="absolute 0 0 1178 529" titletext="진단" oninit="SPMMO03100_oninit" onload="SPMMO03100_onload">
- <Layouts>
- <Layout>
- <Static text="진단" position="absolute 0 0 56 20" align="align:center middle;" id="caption2" class="tit_2"/>
- <Tab position="absolute 0 18 530 506" id="switch1" canchange="switch1_canchange">
- <Tabpages>
- <Tabpage text="ICD10색인" id="icd10">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 0 530 460" id="datagrid3" binddataset="ds_datagrid3">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="530"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="levl"/>
- <Cell col="1" text="ICD-10"/>
- <Cell col="2" text="indxcd"/>
- </Band>
- <Band id="body">
- <Cell text="bind:levl"/>
- <Cell col="1" text="bind:chosinfo"/>
- <Cell col="2" text="bind:indxcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid position="absolute 0 26 530 461" treeusecheckbox="false" autofit="col" id="trv_icd10indxcdlist" binddataset="ds_main_indxcdlist" style="border:0 solid #33bbbbff,0 solid #bac5ccff,1 solid #bac5ccff,0 solid #bac5ccff;" selecttype="treecell" oncellclick="switch1_icd10_trv_icd10indxcdlist_oncellclick" oncelldblclick="switch1_icd10_trv_icd10indxcdlist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="530"/>
- </Columns>
- <Rows>
- <Row size="24"/>
- </Rows>
- <Band id="body">
- <Cell displaytype="tree" edittype="tree" style="line:0 none #808080ff ;background:white;background2:white;" text="bind:hngnm" treestartlevel="1" treelevel="bind:levl"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage text="과색인" id="deptindx">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 0 530 461" id="datagrid1" binddataset="ds_datagrid1">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="530"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="levl"/>
- <Cell col="1" text="과색인"/>
- <Cell col="2" text="indxcd"/>
- </Band>
- <Band id="body">
- <Cell text="bind:levl"/>
- <Cell col="1" text="bind:chosinfo"/>
- <Cell col="2" text="bind:indxcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid position="absolute 0 26 530 461" treeusecheckbox="false" autofit="col" id="trv_deptindxcdlist" binddataset="ds_main_deptindxcdlist" style="border:0 solid #33bbbbff,0 solid #bac5ccff,1 solid #bac5ccff,0 solid #bac5ccff;" selecttype="treecell" treeinitstatus="expand,null" oncellclick="switch1_deptindx_trv_deptindxcdlist_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="530"/>
- </Columns>
- <Rows>
- <Row size="24"/>
- </Rows>
- <Band id="body">
- <Cell displaytype="tree" edittype="tree" style="line:0 none #808080ff ;background:white;background2:white;" text="bind:deptindxnm" treestartlevel="1" treelevel="bind:levl"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage text="개인SET" id="indset">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 0 530 458" id="grd_indset" binddataset="ds_grd_indset">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="530"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="개인SET"/>
- </Band>
- <Band id="body">
- <Cell text="bind:setnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid position="absolute 0 26 530 461" treeusecheckbox="false" autofit="col" id="trv_prmsprcpsetlist" binddataset="ds_main_prmsprcpsetlist" style="border:0 solid #33bbbbff,0 solid #bac5ccff,1 solid #bac5ccff,0 solid #bac5ccff;" treeinitstatus="expand,null" selecttype="treecell" oncellclick="switch1_indset_trv_prmsprcpsetlist_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="530"/>
- </Columns>
- <Rows>
- <Row size="24"/>
- </Rows>
- <Band id="body">
- <Cell displaytype="tree" edittype="tree" style="line:0 none #808080ff ;background:white;background2:white;" text="bind:setnm" treestartlevel="1" treelevel="bind:levl"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage text="상병력" position="absolute 0 0 533 486" id="snwhist">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 0 530 461" align="align:center middle;" id="grd_snwhistinfo" binddataset="ds_main_snwhistlist" oncelldblclick="switch1_snwhist_grd_snwhistinfo_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="85"/>
- <Column size="55"/>
- <Column size="80"/>
- <Column size="130"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="80"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="진료과"/>
- <Cell col="1" text="진료의"/>
- <Cell col="2" text="진단코드"/>
- <Cell col="3" text="영문명"/>
- <Cell col="4" text="한글명"/>
- <Cell col="5" text="dispdiagcd"/>
- <Cell col="6" text="orgdiagcd"/>
- <Cell col="7" text="최초진단일"/>
- </Band>
- <Band id="body">
- <Cell style="align:left middle;" text="bind:deptnm"/>
- <Cell col="1" text="bind:orddrnm"/>
- <Cell col="2" text="bind:dispdiagcd"/>
- <Cell col="3" style="align:left middle;" text="bind:diagengnm"/>
- <Cell col="4" style="align:left middle;" text="bind:diaghngnm"/>
- <Cell col="5" text="bind:dispdiagcd"/>
- <Cell col="6" text="bind:orgdiagcd"/>
- <Cell col="7" text="bind:fstrgstdd" mask="####-##-##"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage text="다빈도(개인)" id="multifreq">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 0 530 461" id="grd_multifreq" binddataset="ds_main_multifreqlist" oncelldblclick="switch1_multifreq_grd_multifreq_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="100"/>
- <Column size="200"/>
- <Column size="200"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="진단코드"/>
- <Cell col="1" text="영문명"/>
- <Cell col="2" text="한글명"/>
- <Cell col="3"/>
- <Cell col="4"/>
- <Cell col="5"/>
- </Band>
- <Band id="body">
- <Cell style="align:left middle;" text="bind:diagcd"/>
- <Cell col="1" style="align:left middle;" text="bind:diagengnm"/>
- <Cell col="2" style="align:left middle;" text="bind:diaghngnm"/>
- <Cell col="3" text="bind:spclinfo"/>
- <Cell col="4" text="bind:icd10cd"/>
- <Cell col="5" text="bind:dispdiagcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage text="내원정보" id="choshist">
- <Layouts>
- <Layout>
- <Combo position="absolute 96 9 198 29" id="cmb_deptlist" innerdataset="@ds_orddept" datacolumn="depthngnm" codecolumn="deptcd" onitemchanged="switch1_choshist_cmb_deptlist_onitemchanged"/>
- <Combo position="absolute 199 9 288 29" id="cmb_drlist" visible="false" innerdataset="ds_userlist" datacolumn="usernm" codecolumn="userid"/>
- <Grid position="absolute 0 40 530 461" id="grd_chosinfo" binddataset="ds_main_choshistlist" oncelldblclick="switch1_choshist_grd_chosinfo_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="76"/>
- <Column size="122"/>
- <Column size="208"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="124"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="levl"/>
- <Cell col="1" text="구분"/>
- <Cell col="2" text="진단일"/>
- <Cell col="3" text="진단과"/>
- <Cell col="4" text="pid"/>
- <Cell col="5" text="orddd"/>
- <Cell col="6" text="cretno"/>
- <Cell col="7" text="진단의사"/>
- <Cell col="8" text="pid"/>
- <Cell col="9" text="orddd"/>
- <Cell col="10" text="cretno"/>
- <Cell col="11" text="indxcd"/>
- </Band>
- <Band id="body">
- <Cell text="bind:ioflag"/>
- <Cell col="1" displaytype="combo" edittype="none" style="align:left middle;" text="bind:ioflag" combodataset="ds_ioflag" combocodecol="value" combodatacol="label"/>
- <Cell col="2" style="align:left middle;" text="bind:diagdd" mask="####-##-##"/>
- <Cell col="3" style="align:left middle;" text="bind:orddeptnm"/>
- <Cell col="4" style="align:left middle;" text="bind:pid"/>
- <Cell col="5" style="align:left middle;" text="bind:orddd"/>
- <Cell col="6" style="align:left middle;" text="bind:cretno"/>
- <Cell col="7" style="align:left middle;" text="bind:orddrnm"/>
- <Cell col="8" text="bind:pid"/>
- <Cell col="9" text="bind:orddd"/>
- <Cell col="10" text="bind:cretno"/>
- <Cell col="11" text="bind:indxcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Combo position="absolute 7 9 95 29" id="cmb_choscond" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="switch1_choshist_cmb_choscond_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">diagdd</Col>
- <Col id="datacolumn">진단일</Col>
- </Row>
- <Row>
- <Col id="codecolumn">orddept</Col>
- <Col id="datacolumn">진료과</Col>
- </Row>
- <Row>
- <Col id="codecolumn">orddr</Col>
- <Col id="datacolumn">진단의사</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Button position="absolute 292 9 346 29" id="btn_srch" class="btn1" text="검색" onclick="switch1_choshist_btn_srch_onclick"/>
- <Calendar position="absolute 100 9 184 29" id="ipt_diagfromdd" dateformat="yyyy-MM-dd" value="null" autoselect="true" onkeydown="switch1_choshist_ipt_diagfromdd_onkeydown"/>
- <Calendar position="absolute 199 9 283 29" id="ipt_diagtodd" dateformat="yyyy-MM-dd" value="null" autoselect="true" onkeydown="switch1_choshist_ipt_diagtodd_onkeydown"/>
- <Static text="~" position="absolute 185 9 202 29" id="caption5"/>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- <Static text="진단내역" position="absolute 539 341 619 361" align="align:center middle;" id="caption1" class="tit_2"/>
- <Button position="absolute 1059 332 1112 352" id="btn_init" class="btn2" text="초기화" onclick="btn_init_onclick" tooltiptext="조회된 진단코드를 화면에서 지웁니다" tooltiptype="hover"/>
- <Button position="absolute 1114 332 1178 352" id="btn_adddiag" class="btn2" text="진단추가" onclick="btn_adddiag_onclick"/>
- <Button position="absolute 1065 509 1121 529" id="btn_savediag" class="btn4" text="확인" onclick="btn_savediag_onclick"/>
- <Button position="absolute 1122 509 1178 529" id="btn_diagcncl" class="btn4" text="삭제" onclick="btn_diagcncl_onclick"/>
- <Grid position="absolute 539 45 1178 329" id="grd_diagcdlist" binddataset="ds_main_diagcdlist" autofittype="none" oncelldblclick="grd_diagcdlist_oncelldblclick" oncellclick="grd_diagcdlist_oncellclick" onrbuttondown="grd_diagcdlist_onrbuttondown" selecttype="multirow" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="28"/>
- <Column size="0"/>
- <Column size="96"/>
- <Column size="175"/>
- <Column size="175"/>
- <Column size="55"/>
- <Column size="27"/>
- <Column size="32"/>
- <Column size="50"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="진단코드"/>
- <Cell col="2" text="진단코드"/>
- <Cell col="3" text="영문명"/>
- <Cell col="4" text="한글명"/>
- <Cell col="5" text="참고"/>
- <Cell col="6" text="특례"/>
- <Cell col="7" text="경증"/>
- <Cell col="8" text="치식"/>
- </Band>
- <Band id="body">
- <Cell displaytype="checkbox" edittype="checkbox" style="background:white;background2:white;" text="bind:status"/>
- <Cell col="1" style="background:white;background2:white;" text="bind:icd10cd"/>
- <Cell col="2" style="align:left middle;background:white;background2:white;" text="bind:dispdiagcd"/>
- <Cell col="3" style="align:left middle;background:white;background2:white;" text="bind:diagengnm"/>
- <Cell col="4" style="align:left middle;background:white;background2:white;" text="bind:diaghngnm"/>
- <Cell col="5" style="align:left middle;background:white;background2:white;" text="bind:refval"/>
- <Cell col="6" displaytype="combo" edittype="none" style="align:center middle;background:white;background2:white;" text="bind:spclinfo" combodataset="ds_combo_spclinfo" combocodecol="value" combodatacol="label"/>
- <Cell col="7" style="align:center middle;background:white;background2:white;color:expr:drginfo=="경증" ? "#0000ff" : "default";color2:expr:drginfo=="경증" ? "#0000ff" : "default";" text="bind:lightcase"/>
- <Cell col="8" displaytype="combo" edittype="none" style="align:left middle;background:white;background2:white;" text="bind:tootflagcd" combodataset="ds_combo_tootflagcd" combocodecol="value" combodatacol="label"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 544 51 560 67" id="btn_expand" class="icon_pre_year" text="" onclick="btn_expand_onclick"/>
- <Grid position="absolute 539 362 1178 506" id="grd_diaghist" binddataset="ds_param_diagcdlist" cellclickbound="cell" autofittype="col" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="92"/>
- <Column size="245"/>
- <Column size="212"/>
- <Column size="0"/>
- <Column size="27"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="32"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="진단코드"/>
- <Cell col="2" text="영문명"/>
- <Cell col="3" text="한글명"/>
- <Cell col="4" text="유사/동의어"/>
- <Cell col="5" text="특례"/>
- <Cell col="6" text="orgdiagcd"/>
- <Cell col="7" text="tootfact"/>
- <Cell col="8" text="icd10cd"/>
- <Cell col="9" text="diagcd"/>
- <Cell col="10" text="경증"/>
- </Band>
- <Band id="body">
- <Cell displaytype="combo" edittype="combo" text="bind:status" expr="expr:(status == "I" || status == 1) ? 1 : 0"/>
- <Cell col="1" style="align:left middle;" text="bind:dispdiagcd"/>
- <Cell col="2" style="align:left middle;" text="bind:diagengnm"/>
- <Cell col="3" style="align:left middle;" text="bind:diaghngnm"/>
- <Cell col="4" text="bind:orgdiagnm"/>
- <Cell col="5" text="bind:spclinfo"/>
- <Cell col="6" text="bind:orgdiagcd"/>
- <Cell col="7" text="bind:tootfact"/>
- <Cell col="8" text="bind:icd10cd"/>
- <Cell col="9" text="bind:diagcd"/>
- <Cell col="10" style="color:expr:drginfo=="경증" ? "#0000ff" : "default";color2:expr:drginfo=="경증" ? "#0000ff" : "default";" text="bind:lightcase"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="Div00" taborder="1" text="Div00" position="absolute 539 3 1178 39" class="div_SA2">
- <Layouts>
- <Layout>
- <Shape id="line1" linetype="vertical" position="absolute 559 6 565 28" anchor="default"/>
- <Button id="btn_req" taborder="1" text="조회" class="btn1" position="absolute 574 8 630 28" anchor="default" onclick="Div00_btn_req_onclick"/>
- <CheckBox id="checkbox1" taborder="2" position="absolute 315 8 369 28" anchor="default" text="전체" truevalue="all" tooltiptext="대표어를 포함한 전체 진단조회" tooltiptype="hover"/>
- <Edit id="ipt_search" taborder="3" position="absolute 94 8 303 28" anchor="default" autoselect="true" onkeydown="Div00_ipt_search_onkeydown"/>
- <Static id="caption3" text="검색어 :" class="search_name" position="absolute 13 8 83 28" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <PopupMenu id="pmn_menu" innerdataset="@ds_menu" idcolumn="func" captioncolumn="name" levelcolumn="level" onmenuclick="pmn_menu_onmenuclick" position="absolute 1183 74 1272 96"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_paminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_patflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_prmsprcpsetlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="levl" type="INT" size="256" sumtext="level값"/>
- <Column id="setno" type="STRING" size="256" sumtext="set번호"/>
- <Column id="settypecd" type="STRING" size="256" sumtext="set종류코드"/>
- <Column id="supsetno" type="STRING" size="256" sumtext="상위set번호"/>
- <Column id="setkindcd" type="STRING" size="256" sumtext="set종류코드"/>
- <Column id="setclscd" type="STRING" size="256" sumtext="set분류코드"/>
- <Column id="settrgtcd" type="STRING" size="256" sumtext="대상코드(과,개인)"/>
- <Column id="prtlno" type="STRING" size="256" sumtext="프로토콜번호"/>
- <Column id="setnm" type="STRING" size="256" sumtext="set명"/>
- <Column id="ioflag" type="STRING" size="256" sumtext="외래입원구분"/>
- <Column id="setrefseq" type="STRING" size="256" sumtext="순서"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_indxcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="levl" type="STRING" size="256" sumtext="레벨"/>
- <Column id="indxcd" type="STRING" size="256" sumtext="index코드"/>
- <Column id="upindxcd" type="STRING" size="256" sumtext="상위index코드"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="index한글명"/>
- <Column id="engnm" type="STRING" size="256" sumtext="index영문명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_snwhistlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="deptnm" type="STRING" size="256" sumtext="부서명"/>
- <Column id="orddrnm" type="STRING" size="256" sumtext="진료의명"/>
- <Column id="diagcd" type="STRING" size="256" sumtext="진단코드"/>
- <Column id="diagengnm" type="STRING" size="256" sumtext="진단영문명"/>
- <Column id="diaghngnm" type="STRING" size="256" sumtext="진단한글명"/>
- <Column id="fstrgstdd" type="STRING" size="256" sumtext="최초등록일"/>
- <Column id="orgdiagcd" type="STRING" size="256" sumtext="원진단코드"/>
- <Column id="dispdiagcd" type="STRING" size="256" sumtext="display진단코드"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_deptindxcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="levl" type="STRING" size="256" sumtext="level값"/>
- <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
- <Column id="deptindxcd" type="STRING" size="256" sumtext="부서index코드"/>
- <Column id="deptupindxcd" type="STRING" size="256" sumtext="부서상위index코드"/>
- <Column id="deptindxnm" type="STRING" size="256" sumtext="부서index명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_multifreqlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="diagcd" type="STRING" size="256" sumtext="진단코드"/>
- <Column id="diagengnm" type="STRING" size="256" sumtext="진단영문명"/>
- <Column id="diaghngnm" type="STRING" size="256" sumtext="진단한글명"/>
- <Column id="spclinfo" type="STRING" size="256" sumtext="특례정보"/>
- <Column id="icd10cd" type="STRING" size="256" sumtext="특례정보"/>
- <Column id="dispdiagcd" type="STRING" size="256" sumtext="특례정보"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_choscond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cmbflag" type="STRING" size="256"/>
- <Column id="diagfromdd" type="STRING" size="256"/>
- <Column id="drid" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="diagtodd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cmbflag">diagdd</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_orddept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_choshistlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="ioflag" type="STRING" size="256" sumtext="진료구분"/>
- <Column id="diagdd" type="STRING" size="256" sumtext="진단일자"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="부서코드"/>
- <Column id="orddeptnm" type="STRING" size="256" sumtext="부서명"/>
- <Column id="orddrid" type="STRING" size="256" sumtext="의사ID"/>
- <Column id="orddrnm" type="STRING" size="256" sumtext="의사명"/>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="orddd" type="STRING" size="256" sumtext="진료일자"/>
- <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_diagcdlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256" sumtext="status"/>
- <Column id="diagdd" type="STRING" size="256" sumtext="진단일자"/>
- <Column id="diagno" type="STRING" size="256" sumtext="진단번호"/>
- <Column id="diaghistno" type="STRING" size="256" sumtext="진단이력번호"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="orddd" type="STRING" size="256" sumtext="진료일자"/>
- <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과코드"/>
- <Column id="orddrid" type="STRING" size="256" sumtext="진료의ID"/>
- <Column id="genrflagcd" type="STRING" size="256" sumtext="발생구분코드"/>
- <Column id="diaghistcd" type="STRING" size="256" sumtext="진단이력코드"/>
- <Column id="diagcd" type="STRING" size="256" sumtext="진단코드"/>
- <Column id="diagtypecd" type="STRING" size="256" sumtext="진단형태코드"/>
- <Column id="diagkindcd" type="STRING" size="256" sumtext="진단종류코드"/>
- <Column id="diagkindcdflag" type="STRING" size="256" sumtext="진단종류코드구분"/>
- <Column id="anamneflag" type="STRING" size="256" sumtext="기왕증구분"/>
- <Column id="tootflagcd" type="STRING" size="256" sumtext="치식구분코드"/>
- <Column id="diagsignflag" type="STRING" size="256" sumtext="진단서명구분"/>
- <Column id="tootfact" type="STRING" size="256" sumtext="치식사항"/>
- <Column id="diagengnm" type="STRING" size="256" sumtext="진단영문명"/>
- <Column id="diaghngnm" type="STRING" size="256" sumtext="진단한글명"/>
- <Column id="icd10cd" type="STRING" size="256" sumtext="ICD10코드"/>
- <Column id="spclinfo" type="STRING" size="256" sumtext="특례정보"/>
- <Column id="dispdiagcd" type="STRING" size="256" sumtext="전시진단코드"/>
- <Column id="lightcase" type="STRING" size="256" sumtext="경증유무"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_param_diagcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_param_diagcdlist_oncolumnchanged">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256"/>
- <Column id="dispdiagcd" type="STRING" size="256"/>
- <Column id="diagengnm" type="STRING" size="256"/>
- <Column id="diaghngnm" type="STRING" size="256"/>
- <Column id="orgdiagnm" type="STRING" size="256"/>
- <Column id="spclinfo" type="STRING" size="256"/>
- <Column id="orgdiagcd" type="STRING" size="256"/>
- <Column id="tootfact" type="STRING" size="256"/>
- <Column id="icd10cd" type="STRING" size="256"/>
- <Column id="diagcd" type="STRING" size="256"/>
- <Column id="lightcase" type="STRING" size="256" sumtext="경증"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_userlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_ioflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">외래</Col>
- <Col id="value">O</Col>
- </Row>
- <Row>
- <Col id="label">입원</Col>
- <Col id="value">I</Col>
- </Row>
- <Row>
- <Col id="label">응급</Col>
- <Col id="value">E</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="reqdata" type="STRING" size="256"/>
- <Column id="reqflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_menu" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="name" type="STRING" size="256"/>
- <Column id="func" type="STRING" size="256"/>
- <Column id="level" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="name">즐겨찾기 추가</Col>
- <Col id="func">fAddEnjoyPrivate</Col>
- <Col id="level">0</Col>
- </Row>
- </Rows>
- </Dataset>
- <PropertyAnimation id="PropertyAnimation00" endingmode="to" repeat="1" repeattype="normal" duration="0" starttime="0"/>
- <Dataset id="ds_combo_spclinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">Y</Col>
- <Col id="value">Y</Col>
- </Row>
- <Row>
- <Col id="label">N</Col>
- <Col id="value">N</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_combo_tootflagcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">Y</Col>
- <Col id="value">Y</Col>
- </Row>
- <Row>
- <Col id="label">N</Col>
- <Col id="value">N</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="switch1.choshist.cmb_choscond" propid="value" datasetid="ds_main_choscond" columnid="cmbflag"/>
- <BindItem id="item1" compid="switch1.choshist.ipt_diagfromdd" propid="value" datasetid="ds_main_choscond" columnid="diagfromdd"/>
- <BindItem id="item2" compid="switch1.choshist.ipt_diagtodd" propid="value" datasetid="ds_main_choscond" columnid="diagtodd"/>
- <BindItem id="item3" compid="switch1.choshist.cmb_deptlist" propid="value" datasetid="ds_main_choscond" columnid="orddeptcd"/>
- <BindItem id="item4" compid="switch1.choshist.cmb_drlist" propid="value" datasetid="ds_main_choscond" columnid="drid"/>
- <BindItem id="item5" compid="Div00.ipt_search" propid="value" datasetid="ds_main_cond" columnid="reqdata"/>
- <BindItem id="item6" compid="Div00.checkbox1" propid="value" datasetid="ds_main_cond" columnid="reqflag"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2014-12-10
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2014-12-10 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "emr_prcpmngtxp::MMO001.xjs";
- var exndflag = true; //진단화면의 grid 확대, 축소 상태값
- var gPRCPDD = ""; //처방일자(입원환자 상단정보 조회를 위한)
- var gPID = "";
- var gORDDD = "";
- var sORDERBY = "desc";
- function SPMMO03100_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
-
- grdf_initGrid(switch1.snwhist.grd_snwhistinfo);
- grdf_initGrid(grd_diagcdlist);
- grdf_initGrid(grd_diaghist);
- }
- function SPMMO03100_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setToolTipBind(switch1.snwhist.grd_snwhistinfo);
- grdf_setToolTipBind(switch1.multifreq.grd_multifreq);
- grdf_setToolTipBind(grd_diagcdlist);
- grdf_setToolTipBind(grd_diaghist);
-
- fInitialize_SPMMO03100();
- }
- function switch1_canchange(obj:Tab, e:TabIndexChangeEventInfo)
- {
- fChngDiagScrn(obj.components[e.postindex].name);
- }
- function switch1_indset_trv_prmsprcpsetlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- fSelectPrmsSET();
- }
- function ds_param_diagcdlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "status")
- obj.setColumn(e.row, e.columnid, (e.newvalue == "I" || e.newvalue == 1) ? "I" : "N");
- }
- function switch1_snwhist_grd_snwhistinfo_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if(e.row < 0 || e.col < 0) return;
-
- var currow = e.row;
- var diagcd = ds_main_snwhistlist.getColumn(currow, "orgdiagcd");
-
- dsf_createDsRow("ds_send_reqdata", [{col:"cond1", type:"string", size:256, val:1} //코드로 조회
- ,{col:"cond2", type:"string", size:256, val:1} //코드로 조회
- ,{col:"cond3", type:"string", size:256, val:"E"}
- ,{col:"cond4", type:"string", size:256, val:utlf_getCurrentDate()}
- ,{col:"cond5", type:"string", size:256, val:diagcd}]);
-
- var oParam = {};
- oParam.id = "TRMMO03103";
- oParam.service = "prcpmngtapp.PatDiagMngt";
- oParam.method = "reqGetDiagTermSrch";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_diagcdlist=diagcdlist";
- oParam.async = true;
- oParam.callback = "cf_TRMMO03103";
- tranf_submit(oParam); // 코드로 검색 하여 결과가 있으면 바로 진단 내역으로 추가 한다.
- }
- function cf_TRMMO03103(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
-
- for(var i = 0; i < ds_main_diagcdlist.rowcount; i++) {
- fAddDiagHist(i);
- }
- }
- function switch1_icd10_trv_icd10indxcdlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- fSelectICD10(e.row);
- }
- function switch1_icd10_trv_icd10indxcdlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var row = obj.getTreeRow(e.row);
- if(obj.getTreeStatus(row) == 0)
- obj.setTreeStatus(row, true);
- else if(obj.getTreeStatus(row) == 1)
- obj.setTreeStatus(row, false);
- }
- function switch1_choshist_cmb_deptlist_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- if(obj.value != "-"){
- lf_mmbfGetUserComboList(ds_userlist, obj.value, "0330");
- frmf_addComboItem("switch1.choshist.cmb_drlist"); //의사콤보(담당교수) 전체항목 추가
- }else{
- ds_main_choscond.setColumn(0, "drid", "");
- }
- }
- function switch1_choshist_grd_chosinfo_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if(e.row < 0 || e.col < 0) return;
-
- var currow = e.row;
-
- var pid = ds_main_choshistlist.getColumn(currow, "pid");
- var orddd = ds_main_choshistlist.getColumn(currow, "orddd");
- var cretno = ds_main_choshistlist.getColumn(currow, "cretno");
- var orddeptcd = ds_main_choshistlist.getColumn(currow, "orddeptcd");
-
- dsf_createDsRow("ds_send_reqdata", [{col:"pid", type:"string", size:256, val:pid}
- ,{col:"orddd", type:"string", size:256, val:orddd}
- ,{col:"cretno", type:"string", size:256, val:cretno}
- ,{col:"orddeptcd", type:"string", size:256, val:orddeptcd}]);
-
- var oParam = {};
- oParam.id = "TRMMO03114";
- oParam.service = "prcpmngtapp.PatDiagMngt";
- oParam.method = "reqGetPatChosDiagList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_diagcdlist=diagcdlist";
- oParam.async = true;
- tranf_submit(oParam);
- }
- function switch1_choshist_cmb_choscond_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fChngChosCond();
- }
- function switch1_choshist_btn_srch_onclick(obj:Button, e:ClickEventInfo)
- {
- fReqPatChosHistList();
- }
- function switch1_choshist_ipt_diagfromdd_onkeydown(obj:Calendar, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- switch1.choshist.btn_srch.onclick.fireEvent(switch1.choshist.btn_srch, new ClickEventInfo());
- }
- function switch1_choshist_ipt_diagtodd_onkeydown(obj:Calendar, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- switch1.choshist.btn_srch.onclick.fireEvent(switch1.choshist.btn_srch, new ClickEventInfo());
- }
- function switch1_deptindx_trv_deptindxcdlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- fSelectDeptIndx(e.row);
- }
- function switch1_multifreq_grd_multifreq_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if(e.row < 0 || e.col < 0) return;
-
- var currow = e.row;
- var diagcd = ds_main_multifreqlist.getColumn(currow, "diagcd");
-
- dsf_createDsRow("ds_send_reqdata", [{col:"cond1", type:"string", size:256, val:1} //코드로 조회
- ,{col:"cond2", type:"string", size:256, val:1} //코드로 조회
- ,{col:"cond3", type:"string", size:256, val:"E"}
- ,{col:"cond4", type:"string", size:256, val:utlf_getCurrentDate()}
- ,{col:"cond5", type:"string", size:256, val:diagcd}]);
-
- var oParam = {};
- oParam.id = "TRMMO03103";
- oParam.service = "prcpmngtapp.PatDiagMngt";
- oParam.method = "reqGetDiagTermSrch";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_diagcdlist=diagcdlist";
- oParam.async = true;
- oParam.callback = "cf_TRMMO03103";
- tranf_submit(oParam); // 코드로 검색 하여 결과가 있으면 바로 진단 내역으로 추가 한다.
- }
- function btn_init_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_diagcdlist.clearData();
- }
- function btn_adddiag_onclick(obj:Button, e:ClickEventInfo)
- {
- var totrow = ds_main_diagcdlist.rowcount;
- for(var i = 0; i < totrow; i++){
- var status = ds_main_diagcdlist.getColumn(i, "status");
- if(status == "true"){
- fAddDiagHist(i);
- }
- }
- }
- function btn_savediag_onclick(obj:Button, e:ClickEventInfo)
- {
- var rtn1 = dsf_getDsCSV(ds_param_diagcdlist, null, "N", "status:I", "Y");
- if ( rtn1 == "N" ) {
- sysf_messageBox ( "선택된 진단이", "I004" );
- } else {
- opener.frmf_setParameter( "SPMMO03100_rtn", rtn1 );
- opener.frmf_setParameter( "SPMMO03100_rtn_useyn", "Y");
- close();
- }
- }
- function btn_diagcncl_onclick(obj:Button, e:ClickEventInfo)
- {
- fClkBtnDel();
- }
- function Div00_btn_req_onclick(obj:Button, e:ClickEventInfo)
- {
- fReqDiagInfo();
- }
- function grd_diagcdlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- fAddDiagHist(e.row);
- }
- function grd_diagcdlist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
- {
- if(e.row < 0) return;
-
- grdf_setSelectedCell(obj, e);
-
- pmn_menu.trackPopup(e.screenX,e.screenY);
- }
- function pmn_menu_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
- {
- eval(e.id + "()");
- }
- function grd_diagcdlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- if(e.row < 0 || e.col < 0) return;
-
- if(e.col != grd_diagcdlist.getBindCellIndex("body", "status")){
- var status = ds_main_diagcdlist.getColumn(e.row, "status");
- if(status == "true"){
- ds_main_diagcdlist.setColumn(e.row, "status", "false");
- }else{
- ds_main_diagcdlist.setColumn(e.row, "status", "true");
- }
- }
- }
- function btn_expand_onclick(obj:Button, e:ClickEventInfo)
- {
- fCtrlSizeDiagList();
- }
- function Div00_ipt_search_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- ds_main_cond.setColumn(0, "reqdata", Div00.ipt_search.value);
- //Div00.btn_req.onclick.fireEvent(Div00.btn_req, new ClickEventInfo());
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("Div00.btn_req", "onclick", ev );
- }
- }
- /**
- * @desc : 화면 초기화
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fInitialize_SPMMO03100(){
- ds_main_diagcdlist.clearData();
- ds_param_diagcdlist.clearData();
- ds_main_snwhistlist.clearData();
- ds_main_choshistlist.clearData();
-
- var patinfo = opener.frmf_getParameter("SPMMO03100_patinfo");
- if(!utlf_isNull(patinfo) && patinfo.length > 0){ // parameter가 있는 경우
- patinfo = patinfo.split("▦");
- gPID = patinfo[0];
- gORDDD = patinfo[1];
-
- }else{ // parameter가 없는 경우
- var paminfo = sysf_getGlobalVariable("paminfo");
- var patflag = sysf_getGlobalVariable("patflag");
- if(paminfo.length <1){ //환자 원무 정보를 찾을 수 없는 경우
- sysf_messageBox("선택된 환자 정보를 찾을 수", "I004");
- close();
- return;
- }else{
- dsf_setCSVToDs("ds_paminfo", paminfo);
- dsf_setCSVToDs("ds_patflag", patflag);
-
- gPID = ds_paminfo.getColumn(0, "pid");
- var ioflag = ds_patflag.getColumn(0, "prcpgenrflag");
- if(ioflag == "O" || ioflag == "S"){
- gORDDD= ds_paminfo.getColumn(0, "orddd");
- }else{
- gORDDD= ds_paminfo.getColumn(0, "indd");
- }
- }
- }
-
- // 2009. 02.10 pymi
- if(opener.frmf_getParameter("SPMMO03100_param") == "Y") {
- //fChngDiagScrn("deptindx");
- switch1.tabindex = 1; // 과색인
- } else {
- //fChngDiagScrn("snwhist"); //default로 상병력코드 탭을 설정
- switch1.tabindex = 3; //default로 상병력코드 탭을 설정
- }
- }
- /**
- * @desc : 복수의 진단코드, 진단내역 등록
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fAddDiagHist(srcRow){
- var diagcd = ds_main_diagcdlist.getColumn(srcRow, "diagcd");
- var diagengnm = ds_main_diagcdlist.getColumn(srcRow, "diagengnm");
- var diaghngnm = ds_main_diagcdlist.getColumn(srcRow, "diaghngnm");
- var icd10cd = ds_main_diagcdlist.getColumn(srcRow, "icd10cd");
- var dispdiagcd= ds_main_diagcdlist.getColumn(srcRow, "dispdiagcd");
- var spclinfo = ds_main_diagcdlist.getColumn(srcRow, "spclinfo");
- //20191015 이돈희 : 4주기 상급종합병원 지정 평가를 위한 경증 정보 추가
- var lightcase = ds_main_diagcdlist.getColumn(srcRow, "lightcase");
-
- var desRow = ds_param_diagcdlist.addRow();
- ds_param_diagcdlist.setColumn(desRow, "status" , "I");
- ds_param_diagcdlist.setColumn(desRow, "dispdiagcd" , dispdiagcd);
- ds_param_diagcdlist.setColumn(desRow, "diagengnm" , diagengnm);
- ds_param_diagcdlist.setColumn(desRow, "diaghngnm" , diaghngnm);
- ds_param_diagcdlist.setColumn(desRow, "spclinfo" , spclinfo);
- ds_param_diagcdlist.setColumn(desRow, "orgdiagcd" , diagcd);
- ds_param_diagcdlist.setColumn(desRow, "icd10cd" , icd10cd);
- ds_param_diagcdlist.setColumn(desRow, "diagcd" , diagcd);
- ds_param_diagcdlist.setColumn(desRow, "lightcase" , lightcase);
- }
- /**
- * @desc : 진단화면 변경
- * @
- * @param : scrnflag - 화면구분 ( indset : 개인SET )
- * ( deptset : 과SET )
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fChngDiagScrn(caseID){
- if(caseID == "indset"){ //개인SET선택
- //switch1.tabindex = 2;
- //grd_indset.caption = "개인SET";
-
- dsf_createDsRow("ds_send_reqdata", [{col:"setkindcd", type:"string", size:256, val:"P"}
- ,{col:"setclscd", type:"string", size:256, val:"D"}
- ,{col:"settypecd", type:"string", size:256, val:"D"}
- ,{col:"ioflag", type:"string", size:256, val:"N"}]);
-
- var oParam = {};
- oParam.id = "TRMMB00601";
- oParam.service = "prcpbaseapp.PrmsPrcpMngt";
- oParam.method = "reqGetPrmsPrcpSetList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_prmsprcpsetlist=prmsprcpsetlist";
- oParam.async = true;
- tranf_submit(oParam);
- }else if(caseID == "icd10"){ //ICD10선택
- //switch1.tabindex = 0;
-
- dsf_createDsRow("ds_send_reqdata", [{col:"indxflag", type:"string", size:256, val:"0"}]);
-
- var oParam = {};
- oParam.id = "TRMMO03101";
- oParam.service = "prcpmngtapp.PatDiagMngt";
- oParam.method = "reqGetIndxList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_indxcdlist=indxcdlist";
- oParam.async = true;
- tranf_submit(oParam);
- }else if(caseID == "snwhist"){ //상병력선택
- //switch1.tabindex = 3;
-
- dsf_createDsRow("ds_send_reqdata", [{col:"pid", type:"string", size:256, val:gPID}]);
-
- var oParam = {};
- oParam.id = "TRMMO03107";
- oParam.service = "prcpmngtapp.PatDiagMngt";
- oParam.method = "reqGetPatSnwHistInfo";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_snwhistlist=snwhistlist";
- oParam.async = true;
- tranf_submit(oParam);
- }else if(caseID == "choshist"){ //내원이력선택
- //switch1.tabindex = 5;
-
- ds_main_choscond.setColumn(0, "diagtodd", utlf_getCurrentDate());
- var dd = ds_main_choscond.getColumn(0, "diagtodd");
- var diagfromdd = (dd.toDate()).getAddDate(-7);
- diagfromdd = diagfromdd.getDateFormat();
- ds_main_choscond.setColumn(0, "diagfromdd", diagfromdd);
- switch1.choshist.ipt_diagfromdd.visible = true;
- switch1.choshist.ipt_diagtodd.visible = true;
- switch1.choshist.caption5.visible = true;
- switch1.choshist.cmb_drlist.visible = false;
- switch1.choshist.cmb_deptlist.visible = false;
- lf_mmbfGetDeptCodeComboList(ds_orddept, "A"); //부서코드 콤보
- frmf_addComboItem("switch1.choshist.cmb_deptlist"); //부서콤보 전체항목 추가
- var deptcd = ds_orddept.lookup(deptcd, sysf_getUserInfo("dutplcecd"), "deptcd");
- if(!utlf_isNull(deptcd)){
- ds_main_choscond.setColumn(0, "orddeptcd", deptcd);
- }else{
- ds_main_choscond.setColumn(0, "orddeptcd", "-");
- }
-
- switch1.choshist.btn_srch.onclick.fireEvent(switch1.choshist.btn_srch, new ClickEventInfo());
- }else if(caseID == "deptindx"){ //과색인선택
- //switch1.tabindex = 1;
-
- dsf_createDsRow("ds_send_reqdata", [{col:"deptindxflag", type:"string", size:256, val:"0"}]);
-
- var oParam = {};
- oParam.id = "TRMMO03111";
- oParam.service = "prcpmngtapp.PatDiagMngt";
- oParam.method = "reqGetDeptIndxList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_deptindxcdlist=deptindxcdlist";
- oParam.async = true;
- tranf_submit(oParam); //과색인조회
- } else if(caseID == "multifreq") { // 다빈도(개인)
- //switch1.tabindex = 4;
-
- dsf_createDsRow("ds_send_reqdata", [{col:"instcd", type:"string", size:256, val:sysf_getUserInfo("dutplceinstcd")}
- ,{col:"orddrid", type:"string", size:256, val:sysf_getUserInfo("userid")}]);
- var oParam = {};
- oParam.id = "TRMMO03117";
- oParam.service = "prcpmngtapp.PatDiagMngt";
- oParam.method = "reqGetMultiFreqList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_multifreqlist=multifreqlist";
- oParam.async = true;
- tranf_submit(oParam);
- }
- }
- /**
- * @desc : 진단코드 조회
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fReqDiagInfo(){
- var cond1 = "";
- var cond2 = "";
- ds_main_cond.setColumn(0, "reqdata", Div00.ipt_search.value);
- var cond5 = ds_main_cond.getColumn(0, "reqdata");
-
- if(utlf_isNull(cond5) || cond5.length < 1){ //검색어를 입력하지 않은 경우
- sysf_messageBox("검색어를 ", "C002");
- return;
- }
-
- var cond3 = utlf_isHangul(cond5); //한글, 영문구분
- var cond4 = utlf_getCurrentDate(); //기준일자
-
- if(cond3 == "H"){ //한글인 경우
- cond1 = 2;
- cond2 = 3;
-
- }else if(cond3 == "E"){ //영문인 경우
- if(utlf_isNum(cond5.charAt(1)) == true){ //두번째 자리가 숫자는 영문코드
- cond1 = 1;
- cond2 = 1;
-
- }else{ //두번째 자리가 숫자가 아닌 경우, 영문단어
- cond1 = 2;
- cond2 = 3;
- }
- }
-
- dsf_createDsRow("ds_send_reqdata", [{col:"cond1", type:"string", size:256, val:cond1} //검색구분 1:코드, 2:명
- ,{col:"cond2", type:"string", size:256, val:cond2} //명칭검색구분, 1:코드, 2:단어, 3:문장, 4:첫단어
- ,{col:"cond3", type:"string", size:256, val:cond3} //한영구분(H:한글, E:영문)
- ,{col:"cond4", type:"string", size:256, val:cond4} //기준일자
- ,{col:"cond5", type:"string", size:256, val:cond5}]); //검색내용
-
- /*===============================================================================
- * 진단검색시 조건 추가 (나이/성별)
- * by sonjy 2008-07-21
- ===============================================================================*/
- var vAge = appf_getPatientInfo("age") ;
-
- if( !utlf_isNull(vAge) ){
- dsf_makeValue(ds_send_reqdata, "sexflag", "string", lf_getArrayData (vAge, 0, 0, "^", "/" ));
- dsf_makeValue(ds_send_reqdata, "ageflag", "string", lf_getArrayData (vAge, 0, 1, "^", "/" ));
- }
- var oParam = {};
- oParam.id = "TRMMO03103";
- oParam.service = "prcpmngtapp.PatDiagMngt";
- oParam.method = "reqGetDiagTermSrch";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_diagcdlist=diagcdlist";
- oParam.async = true;
- tranf_submit(oParam);
- }
- /**
- * @desc : ICD10코드로 진단코드 조회
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fSelectICD10(currow){
- var levl = ds_main_indxcdlist.getColumn(currow, "levl");
- if(levl == 1){ //상위index만을 클릭한 경우 return한다.
- return;
- }
-
- var indxcd = ds_main_indxcdlist.getColumn(currow, "indxcd");
-
- dsf_createDsRow("ds_send_reqdata", [{col:"reqflag", type:"string", size:256, val:ds_main_cond.getColumn(0, "reqflag")}
- ,{col:"icd10indxcd", type:"string", size:256, val:indxcd}]);
-
- var oParam = {};
- oParam.id = "TRMMO03102";
- oParam.service = "prcpmngtapp.PatDiagMngt";
- oParam.method = "reqGetICD10CdList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_diagcdlist=diagcdlist";
- oParam.async = true;
- tranf_submit(oParam);
- }
- /**
- * @desc : 환자 내원이력 조회
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fReqPatChosHistList(){
- dsf_createDsRow("ds_send_reqdata", [{col:"pid", type:"string", size:256, val:gPID}
- ,{col:"orddd", type:"string", size:256, val:gORDDD}
- ,{col:"diagfromdd", type:"string", size:256}
- ,{col:"diagtodd", type:"string", size:256}
- ,{col:"orddeptcd", type:"string", size:256}
- ,{col:"orddrid", type:"string", size:256}
- ,{col:"queryflag", type:"string", size:256}]);
- var cmbflag = ds_main_choscond.getColumn(0, "cmbflag");
- if(cmbflag == "diagdd"){ //진단일로 조회할 경우
- ds_send_reqdata.setColumn(0, "queryflag" , "diagdd");
- ds_send_reqdata.setColumn(0, "diagfromdd", ds_main_choscond.getColumn(0, "diagfromdd"));
- ds_send_reqdata.setColumn(0, "diagtodd" , ds_main_choscond.getColumn(0, "diagtodd"));
- }else if(cmbflag == "orddept"){ //진료과로 조회할 경우
- ds_send_reqdata.setColumn(0, "queryflag", "orddept");
- ds_send_reqdata.setColumn(0, "orddeptcd", ds_main_choscond.getColumn(0, "orddeptcd"));
- }else if(cmbflag == "orddr"){ //진료의사로 조회할 경우
- ds_send_reqdata.setColumn(0, "queryflag", "orddr");
- ds_send_reqdata.setColumn(0, "orddrid" , ds_main_choscond.getColumn(0, "drid"));
- }
- var oParam = {};
- oParam.id = "TRMMO03108";
- oParam.service = "prcpmngtapp.PatDiagMngt";
- oParam.method = "reqGetPatChosHistInfo";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_choshistlist=choshistlist";
- oParam.async = true;
- tranf_submit(oParam);
- }
- /**
- * @desc : 진단내역 확장
- * :
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fCtrlSizeDiagList(){
- if(exndflag == true){
- btn_expand.class = "icon_next_year";
- switch1.position.height = 30;
- grd_diagcdlist.position.left = 0;
- grd_diaghist.position.left = 0;
- btn_expand.position.x = 17;
- exndflag = false;
- }else{
- btn_expand.class = "icon_pre_year";
- switch1.position.height = 488;
- grd_diagcdlist.position.left = 539;
- grd_diaghist.position.left = 539;
- btn_expand.position.x = 545;
- exndflag = true;
- }
- }
- /**
- * @desc : 약속SET 선택시 진단 조회
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fSelectPrmsSET(){
- var iRow = ds_main_prmsprcpsetlist.rowposition;
- var iSetNO = ds_main_prmsprcpsetlist.getColumn(iRow, "setno");
- var sSetTypeCD = ds_main_prmsprcpsetlist.getColumn(iRow, "settypecd");
-
- dsf_createDsRow("ds_send_reqdata", [{col:"setno", type:"string", size:256, val:iSetNO}
- ,{col:"settypecd", type:"string", size:256, val:sSetTypeCD}]);
-
- var oParam = {};
- oParam.id = "TRMMO03104";
- oParam.service = "prcpmngtapp.PatDiagMngt";
- oParam.method = "reqGetIndDiagSetList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_diagcdlist=diagcdlist";
- oParam.async = true;
- oParam.callback = "cf_TRMMO03104";
- tranf_submit(oParam); //약속진단SET상세(진단코드) 조회
- }
- function cf_TRMMO03104(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
-
- ds_main_diagcdlist.rowposition = -1;
- }
- /**
- * @desc : 과색인 조회
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fSelectDeptIndx(currow){
- var deptindxcd = ds_main_deptindxcdlist.getColumn(currow, "deptindxcd");
- if(utlf_isNull(deptindxcd)){
- return;
- }
-
- dsf_createDsRow("ds_send_reqdata", [{col:"deptindxflag", type:"string", size:256, val:"0"}
- ,{col:"deptindxcd", type:"string", size:256, val:deptindxcd}
- ,{col:"deptcd", type:"string", size:256, val:sysf_getUserInfo("dutplcecd")}]);
- var oParam = {};
- oParam.id = "TRMMO03112";
- oParam.service = "prcpmngtapp.PatDiagMngt";
- oParam.method = "reqGetDeptIndxDiagTermList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_diagcdlist=diagcdlist";
- oParam.async = true;
- tranf_submit(oParam);
- }
- /**
- * @desc : 내원이력 조회조건 변경
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fChngChosCond(){
- var cmbflag = ds_main_choscond.getColumn(0, "cmbflag");
- if(cmbflag == "diagdd"){
- switch1.choshist.ipt_diagfromdd.visible = true;
- switch1.choshist.ipt_diagtodd.visible = true;
- switch1.choshist.caption5.visible = true;
- switch1.choshist.cmb_drlist.visible = false;
- switch1.choshist.cmb_deptlist.visible = false;
- }else if(cmbflag == "orddept"){
- switch1.choshist.cmb_drlist.enable = false;
- switch1.choshist.cmb_drlist.visible = true;
- switch1.choshist.cmb_deptlist.visible = true;
- switch1.choshist.ipt_diagfromdd.visible = false;
- switch1.choshist.ipt_diagtodd.visible = false;
- switch1.choshist.caption5.visible = false;
-
- ds_main_choscond.setColumn(0, "drid", ""); //진단의사가 선택된 경우 값을 지운다
- }else if(cmbflag == "orddr"){
- switch1.choshist.ipt_diagfromdd.visible = false;
- switch1.choshist.ipt_diagtodd.visible = false;
- switch1.choshist.cmb_drlist.enable = true;
- switch1.choshist.cmb_drlist.visible = true;
- switch1.choshist.cmb_deptlist.visible = true;
- switch1.choshist.caption5.visible = false;
-
- switch1.choshist.cmb_deptlist.onitemchanged.fireEvent(switch1.choshist.cmb_deptlist, new ItemChangeEventInfo());
- }
- }
- /**
- * @desc : 우측상단 진단화면에서 개인진단 즐겨찾기 추가
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fAddEnjoyPrivate(){
- var settrgtcd = sysf_getUserInfo("userid");
- var header = "settypecd▦setkindcd▦setclscd▦settrgtcd▦detlsetcd▩";
- var totRow = ds_main_diagcdlist.rowcount;
-
- for(var i = 0; i < totRow; i++){
- if(ds_main_diagcdlist.getSelect(i)){
- var diagcd = ds_main_diagcdlist.getColumn(i, "diagcd");
- header += "E▦P▦D▦" + settrgtcd + "▦" + diagcd + "▩";
- }
- }
-
- dsf_setCSVToDs("ds_send_savedata", header);
-
- var oParam = {};
- oParam.id = "TXMMB00604";
- oParam.service = "prcpbaseapp.PrmsPrcpMngt";
- oParam.method = "reqInsDirectPrmsDiagEnjoy";
- oParam.inds = "req=ds_send_savedata";
- oParam.async = false;
- tranf_submit(oParam);
- }
- /**
- * @desc : 삭제버튼 클릭
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fClkBtnDel(){
- var currow = ds_param_diagcdlist.rowposition;
- if(currow < 0){
- return;
- }
- var status = ds_param_diagcdlist.getColumn(currow, "status");
- if(status == "I"){
- ds_param_diagcdlist.deleteRow(currow);
- }else{
- ds_param_diagcdlist.setColumn(currow, "status", "D");
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|