SMPMI01600_전과전실승인.xfdl 224 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPMI01600" position="absolute 0 0 1256 805" titletext="전과전실승인" oninit="SMPMI01600_oninit" onload="SMPMI01600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Combo position="absolute 189 609 274 628" id="cmb_2atdoctid" class="combo_default" innerdataset="@ds_init_orddrid" datacolumn="nm" codecolumn="cd" enable="false"/>
  8. <Combo position="absolute 789 635 874 654" id="cmb_atdoctid" class="combo_default" innerdataset="@fds_orddrid" datacolumn="nm" codecolumn="cd"/>
  9. <Combo position="absolute 1062 561 1126 580" id="cmb_roomcd" class="combo_default" enable="false" innerdataset="@ds_init_roomcd" datacolumn="nm" codecolumn="cd"/>
  10. <Static text="전과전실 이력" position="absolute 5 295 175 311" align="align:center middle;" id="caption2" class="tit_2"/>
  11. <Static text="현재 과/병실 정보" position="absolute 4 537 174 553" align="align:center middle;" id="caption3" class="tit_2"/>
  12. <Static text="변경후 과/병실 정보" position="absolute 602 537 792 553" align="align:center middle;" id="caption4" class="tit_2"/>
  13. <Button position="absolute 892 761 948 783" id="btn_save" class="btn4" text="승인" enable="false" onclick="btn_save_onclick"/>
  14. <Static text="재원내역" position="absolute 5 68 119 84" align="align:center middle;" id="caption40" class="tit_2"/>
  15. <Shape position="absolute 0 28 1195 63" id="roundrect1" class="roundrect_search" type="roundrectangle"/>
  16. <Static text="조회구분 :" position="absolute 15 37 105 54" id="caption1" class="search_name"/>
  17. <Button position="absolute 1125 35 1181 57" id="btn_srch" class="btn1" text="조회" onclick="btn_srch_onclick"/>
  18. <Combo position="absolute 92 36 244 55" id="cmb_srchcond1" class="combo_search" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="cmb_srchcond1_onitemchanged" value="1" text="환자번호" index="0">
  19. <Dataset id="innerdataset">
  20. <ColumnInfo>
  21. <Column id="codecolumn" size="256"/>
  22. <Column id="datacolumn" size="256"/>
  23. </ColumnInfo>
  24. <Rows>
  25. <Row>
  26. <Col id="codecolumn">1</Col>
  27. <Col id="datacolumn">환자번호</Col>
  28. </Row>
  29. <Row>
  30. <Col id="codecolumn">13</Col>
  31. <Col id="datacolumn">환자성명</Col>
  32. </Row>
  33. <Row>
  34. <Col id="codecolumn">2</Col>
  35. <Col id="datacolumn">진료과</Col>
  36. </Row>
  37. <Row>
  38. <Col id="codecolumn">3</Col>
  39. <Col id="datacolumn">담당교수</Col>
  40. </Row>
  41. <Row>
  42. <Col id="codecolumn">4</Col>
  43. <Col id="datacolumn">주치의</Col>
  44. </Row>
  45. <Row>
  46. <Col id="codecolumn">5</Col>
  47. <Col id="datacolumn">병동</Col>
  48. </Row>
  49. <Row>
  50. <Col id="codecolumn">10</Col>
  51. <Col id="datacolumn">응급실결정서신청</Col>
  52. </Row>
  53. <Row>
  54. <Col id="codecolumn">11</Col>
  55. <Col id="datacolumn">DSC입원결정서</Col>
  56. </Row>
  57. <Row>
  58. <Col id="codecolumn">12</Col>
  59. <Col id="datacolumn">전실승인(간호확인전)</Col>
  60. </Row>
  61. <Row>
  62. <Col id="codecolumn">0</Col>
  63. <Col id="datacolumn">전체</Col>
  64. </Row>
  65. <Row>
  66. <Col id="codecolumn">9</Col>
  67. <Col id="datacolumn">전과전실신청</Col>
  68. </Row>
  69. </Rows>
  70. </Dataset>
  71. </Combo>
  72. <Combo position="absolute 262 36 364 55" id="cmb_srchcond2" class="combo_default" visible="false" innerdataset="@ds_srch_cmb" datacolumn="nm" codecolumn="cd"/>
  73. <Edit position="absolute 262 36 364 55" id="ipt_srchcond2" class="input_default" onkeydown="ipt_srchcond2_onkeydown"/>
  74. <Grid position="absolute 0 89 1195 289" id="grd_inhosplist" class="datagrid2" binddataset="ds_grd_inhosplist" anchor="left top right" oncelldblclick="grd_inhosplist_oncelldblclick" oncellclick="grd_inhosplist_oncellclick" cellsizingtype="both">
  75. <Formats>
  76. <Format id="default">
  77. <Columns>
  78. <Column size="25" band="left"/>
  79. <Column size="24" band="left"/>
  80. <Column size="40" band="left"/>
  81. <Column size="55" band="left"/>
  82. <Column size="73" band="left"/>
  83. <Column size="50" band="left"/>
  84. <Column size="50" band="left"/>
  85. <Column size="30" band="left"/>
  86. <Column size="30" band="left"/>
  87. <Column size="55" band="left"/>
  88. <Column size="60" band="left"/>
  89. <Column size="55"/>
  90. <Column size="67"/>
  91. <Column size="28"/>
  92. <Column size="40"/>
  93. <Column size="200"/>
  94. <Column size="86"/>
  95. <Column size="70"/>
  96. <Column size="47"/>
  97. <Column size="80"/>
  98. <Column size="40"/>
  99. <Column size="72"/>
  100. <Column size="72"/>
  101. <Column size="65"/>
  102. <Column size="80"/>
  103. <Column size="80"/>
  104. <Column size="90"/>
  105. <Column size="80"/>
  106. <Column size="80"/>
  107. <Column size="100"/>
  108. <Column size="90"/>
  109. <Column size="83"/>
  110. <Column size="116"/>
  111. <Column size="90"/>
  112. <Column size="121"/>
  113. <Column size="0"/>
  114. <Column size="0"/>
  115. <Column size="0"/>
  116. <Column size="0"/>
  117. <Column size="0"/>
  118. <Column size="0"/>
  119. <Column size="0"/>
  120. <Column size="0"/>
  121. <Column size="0"/>
  122. <Column size="0"/>
  123. <Column size="0"/>
  124. <Column size="0"/>
  125. <Column size="0"/>
  126. <Column size="0"/>
  127. <Column size="0"/>
  128. <Column size="0"/>
  129. <Column size="0"/>
  130. <Column size="0"/>
  131. <Column size="0"/>
  132. <Column size="0"/>
  133. <Column size="0"/>
  134. <Column size="0"/>
  135. <Column size="0"/>
  136. <Column size="0"/>
  137. <Column size="0"/>
  138. <Column size="0"/>
  139. <Column size="0"/>
  140. <Column size="0"/>
  141. <Column size="0"/>
  142. <Column size="0"/>
  143. <Column size="0"/>
  144. <Column size="0"/>
  145. <Column size="0"/>
  146. <Column size="0"/>
  147. <Column size="0"/>
  148. <Column size="0"/>
  149. <Column size="0"/>
  150. <Column size="0"/>
  151. <Column size="0"/>
  152. <Column size="0"/>
  153. <Column size="0"/>
  154. <Column size="0"/>
  155. <Column size="0"/>
  156. <Column size="0"/>
  157. <Column size="0"/>
  158. <Column size="0"/>
  159. <Column size="0"/>
  160. <Column size="0"/>
  161. <Column size="0"/>
  162. <Column size="0"/>
  163. <Column size="0"/>
  164. <Column size="0"/>
  165. <Column size="0"/>
  166. <Column size="0"/>
  167. <Column size="0"/>
  168. <Column size="0"/>
  169. <Column size="0"/>
  170. <Column size="0"/>
  171. <Column size="0"/>
  172. <Column size="0"/>
  173. <Column size="0"/>
  174. <Column size="0"/>
  175. <Column size="0"/>
  176. <Column size="0"/>
  177. <Column size="0"/>
  178. <Column size="0"/>
  179. <Column size="0"/>
  180. <Column size="0"/>
  181. <Column size="0"/>
  182. <Column size="0"/>
  183. <Column size="0"/>
  184. <Column size="0"/>
  185. <Column size="0"/>
  186. <Column size="0"/>
  187. <Column size="0"/>
  188. <Column size="0"/>
  189. <Column size="0"/>
  190. <Column size="0"/>
  191. <Column size="0"/>
  192. <Column size="0"/>
  193. <Column size="0"/>
  194. <Column size="0"/>
  195. <Column size="0"/>
  196. <Column size="0"/>
  197. <Column size="0"/>
  198. <Column size="0"/>
  199. <Column size="0"/>
  200. <Column size="0"/>
  201. <Column size="0"/>
  202. <Column size="0"/>
  203. <Column size="0"/>
  204. <Column size="0"/>
  205. <Column size="0"/>
  206. <Column size="0"/>
  207. <Column size="0"/>
  208. <Column size="0"/>
  209. <Column size="0"/>
  210. <Column size="0"/>
  211. <Column size="0"/>
  212. <Column size="0"/>
  213. <Column size="0"/>
  214. <Column size="0"/>
  215. <Column size="0"/>
  216. <Column size="0"/>
  217. <Column size="0"/>
  218. <Column size="0"/>
  219. <Column size="0"/>
  220. <Column size="0"/>
  221. <Column size="0"/>
  222. <Column size="0"/>
  223. <Column size="0"/>
  224. <Column size="0"/>
  225. <Column size="0"/>
  226. <Column size="0"/>
  227. <Column size="0"/>
  228. <Column size="0"/>
  229. <Column size="0"/>
  230. <Column size="0"/>
  231. <Column size="0"/>
  232. <Column size="0"/>
  233. <Column size="0"/>
  234. <Column size="0"/>
  235. <Column size="0"/>
  236. <Column size="0"/>
  237. <Column size="0"/>
  238. <Column size="0"/>
  239. <Column size="0"/>
  240. <Column size="0"/>
  241. <Column size="0"/>
  242. <Column size="0"/>
  243. <Column size="0"/>
  244. <Column size="0"/>
  245. <Column size="0"/>
  246. <Column size="0"/>
  247. <Column size="0"/>
  248. <Column size="0"/>
  249. <Column size="0"/>
  250. </Columns>
  251. <Rows>
  252. <Row size="24" band="head"/>
  253. <Row size="24"/>
  254. </Rows>
  255. <Band id="head">
  256. <Cell/>
  257. <Cell col="1" text="O"/>
  258. <Cell col="2" text="상태"/>
  259. <Cell col="3" text="입원경로"/>
  260. <Cell col="4" text="병동"/>
  261. <Cell col="5" text="병실"/>
  262. <Cell col="6" text="병상"/>
  263. <Cell col="7" text="O2"/>
  264. <Cell col="8" text="Suc"/>
  265. <Cell col="9" text="감염승인"/>
  266. <Cell col="10" text="환자번호"/>
  267. <Cell col="11" text="환자성명"/>
  268. <Cell col="12" text="생년월일"/>
  269. <Cell col="13" text="나이"/>
  270. <Cell col="14" text="성별"/>
  271. <Cell col="15" text="참고사항"/>
  272. <Cell col="16" text="진료과"/>
  273. <Cell col="17" text="응급주과"/>
  274. <Cell col="18" text="주/부"/>
  275. <Cell col="19" text="입원일자"/>
  276. <Cell col="20" text="시간"/>
  277. <Cell col="21" text="퇴원예고"/>
  278. <Cell col="22" text="퇴원통보"/>
  279. <Cell col="23" text="보험유형"/>
  280. <Cell col="24" text="보험보조유형"/>
  281. <Cell col="25" text="소급일자"/>
  282. <Cell col="26" text="진료비계산일자"/>
  283. <Cell col="27" text="심사"/>
  284. <Cell col="28" text="최종정산일"/>
  285. <Cell col="29" text="연구용"/>
  286. <Cell col="30" text="생년월일"/>
  287. <Cell col="31" text="최초접수자"/>
  288. <Cell col="32" text="최초접수일시"/>
  289. <Cell col="33" text="최종수정담당자"/>
  290. <Cell col="34" text="최종수정일시"/>
  291. <Cell col="35" text="caption1"/>
  292. <Cell col="36" text="caption2"/>
  293. <Cell col="37" text="caption3"/>
  294. <Cell col="38" text="caption4"/>
  295. <Cell col="39" text="caption5"/>
  296. <Cell col="40" text="caption6"/>
  297. <Cell col="41" text="caption7"/>
  298. <Cell col="42" text="caption8"/>
  299. <Cell col="43" text="caption9"/>
  300. <Cell col="44" text="caption10"/>
  301. <Cell col="45" text="caption11"/>
  302. <Cell col="46" text="caption12"/>
  303. <Cell col="47" text="caption13"/>
  304. <Cell col="48" text="caption14"/>
  305. <Cell col="49" text="caption15"/>
  306. <Cell col="50" text="caption16"/>
  307. <Cell col="51" text="caption17"/>
  308. <Cell col="52" text="caption18"/>
  309. <Cell col="53" text="caption19"/>
  310. <Cell col="54" text="caption20"/>
  311. <Cell col="55" text="caption21"/>
  312. <Cell col="56" text="caption22"/>
  313. <Cell col="57" text="caption23"/>
  314. <Cell col="58" text="caption24"/>
  315. <Cell col="59" text="caption25"/>
  316. <Cell col="60" text="caption26"/>
  317. <Cell col="61" text="caption27"/>
  318. <Cell col="62" text="caption28"/>
  319. <Cell col="63" text="caption29"/>
  320. <Cell col="64" text="caption30"/>
  321. <Cell col="65" text="caption31"/>
  322. <Cell col="66" text="caption32"/>
  323. <Cell col="67" text="caption33"/>
  324. <Cell col="68" text="caption34"/>
  325. <Cell col="69" text="caption35"/>
  326. <Cell col="70" text="caption36"/>
  327. <Cell col="71" text="caption37"/>
  328. <Cell col="72" text="caption38"/>
  329. <Cell col="73" text="caption39"/>
  330. <Cell col="74" text="caption40"/>
  331. <Cell col="75" text="caption41"/>
  332. <Cell col="76" text="caption42"/>
  333. <Cell col="77" text="caption43"/>
  334. <Cell col="78" text="caption44"/>
  335. <Cell col="79" text="caption45"/>
  336. <Cell col="80" text="caption46"/>
  337. <Cell col="81" text="caption47"/>
  338. <Cell col="82" text="caption48"/>
  339. <Cell col="83" text="caption49"/>
  340. <Cell col="84" text="caption50"/>
  341. <Cell col="85" text="caption51"/>
  342. <Cell col="86" text="caption52"/>
  343. <Cell col="87" text="caption53"/>
  344. <Cell col="88" text="caption54"/>
  345. <Cell col="89" text="caption55"/>
  346. <Cell col="90" text="caption56"/>
  347. <Cell col="91" text="caption57"/>
  348. <Cell col="92" text="caption58"/>
  349. <Cell col="93" text="caption59"/>
  350. <Cell col="94" text="caption60"/>
  351. <Cell col="95" text="caption61"/>
  352. <Cell col="96" text="caption62"/>
  353. <Cell col="97" text="caption63"/>
  354. <Cell col="98" text="caption64"/>
  355. <Cell col="99" text="caption65"/>
  356. <Cell col="100" text="caption66"/>
  357. <Cell col="101" text="caption67"/>
  358. <Cell col="102" text="caption68"/>
  359. <Cell col="103" text="caption69"/>
  360. <Cell col="104" text="caption70"/>
  361. <Cell col="105" text="caption71"/>
  362. <Cell col="106" text="caption72"/>
  363. <Cell col="107" text="caption73"/>
  364. <Cell col="108" text="caption74"/>
  365. <Cell col="109" text="caption75"/>
  366. <Cell col="110" text="caption76"/>
  367. <Cell col="111" text="caption77"/>
  368. <Cell col="112" text="caption78"/>
  369. <Cell col="113" text="caption79"/>
  370. <Cell col="114" text="caption80"/>
  371. <Cell col="115" text="caption81"/>
  372. <Cell col="116" text="caption82"/>
  373. <Cell col="117" text="caption83"/>
  374. <Cell col="118" text="caption84"/>
  375. <Cell col="119" text="caption85"/>
  376. <Cell col="120" text="caption86"/>
  377. <Cell col="121" text="caption87"/>
  378. <Cell col="122" text="caption88"/>
  379. <Cell col="123" text="caption89"/>
  380. <Cell col="124" text="caption90"/>
  381. <Cell col="125" text="caption91"/>
  382. <Cell col="126" text="caption92"/>
  383. <Cell col="127" text="caption93"/>
  384. <Cell col="128" text="caption94"/>
  385. <Cell col="129" text="caption95"/>
  386. <Cell col="130" text="caption96"/>
  387. <Cell col="131" text="caption97"/>
  388. <Cell col="132" text="caption98"/>
  389. <Cell col="133" text="caption99"/>
  390. <Cell col="134" text="caption100"/>
  391. <Cell col="135" text="caption101"/>
  392. <Cell col="136" text="caption102"/>
  393. <Cell col="137" text="caption103"/>
  394. <Cell col="138" text="caption104"/>
  395. <Cell col="139" text="caption105"/>
  396. <Cell col="140" text="caption106"/>
  397. <Cell col="141" text="caption107"/>
  398. <Cell col="142" text="caption108"/>
  399. <Cell col="143" text="caption109"/>
  400. <Cell col="144" text="caption110"/>
  401. <Cell col="145" text="caption111"/>
  402. <Cell col="146" text="caption112"/>
  403. <Cell col="147" text="caption113"/>
  404. <Cell col="148" text="caption114"/>
  405. <Cell col="149" text="caption115"/>
  406. <Cell col="150" text="caption116"/>
  407. <Cell col="151" text="caption117"/>
  408. <Cell col="152" text="caption118"/>
  409. <Cell col="153" text="caption119"/>
  410. <Cell col="154" text="caption120"/>
  411. <Cell col="155" text="caption121"/>
  412. <Cell col="156" text="caption122"/>
  413. <Cell col="157" text="caption123"/>
  414. <Cell col="158" text="caption124"/>
  415. <Cell col="159" text="caption125"/>
  416. <Cell col="160" text="caption126"/>
  417. <Cell col="161" text="caption127"/>
  418. <Cell col="162" text="caption128"/>
  419. <Cell col="163" text="caption129"/>
  420. <Cell col="164" text="caption130"/>
  421. <Cell col="165" text="caption131"/>
  422. <Cell col="166" text="caption132"/>
  423. <Cell col="167" text="caption133"/>
  424. <Cell col="168" text="caption134"/>
  425. <Cell col="169" text="caption135"/>
  426. <Cell col="170" text="caption136"/>
  427. <Cell col="171"/>
  428. </Band>
  429. <Band id="body">
  430. <Cell celltype="head" expr="expr:currow + 1"/>
  431. <Cell col="1" displaytype="text" edittype="text" expandshow="show" expandsize="20"/>
  432. <Cell col="2" displaytype="combo" edittype="none" text="bind:indschacptstat" combodataset="ds_P0019" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  433. <Cell col="3" displaytype="combo" edittype="none" text="bind:inpath" combodataset="ds_P0002" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  434. <Cell col="4" displaytype="combo" edittype="none" text="bind:wardcd" combodataset="ds_init_wardcd" combocodecol="cd" combodatacol="nm" enable="false"/>
  435. <Cell col="5" displaytype="combo" edittype="none" text="bind:roomcd" combodataset="ds_init_roomcd" combocodecol="cd" combodatacol="nm" enable="false"/>
  436. <Cell col="6" displaytype="combo" edittype="none" text="bind:bedcd" combodataset="ds_init_bedcd" combocodecol="cd" combodatacol="nm" enable="false"/>
  437. <Cell col="7" text="bind:oxyyn"/>
  438. <Cell col="8" text="bind:suctyn"/>
  439. <Cell col="9" displaytype="normal" edittype="none" text="bind:cnstcnfm" enable="false"/>
  440. <Cell col="10" text="bind:pid"/>
  441. <Cell col="11" text="bind:hngnm"/>
  442. <Cell col="12" text="bind:rrgstno" mask="99/99/99"/>
  443. <Cell col="13" text="bind:age"/>
  444. <Cell col="14" displaytype="combo" edittype="none" text="bind:sex" combodataset="ds_P0313" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  445. <Cell col="15" displaytype="text" edittype="text" text="bind:remfact" expandshow="show" expandsize="13"/>
  446. <Cell col="16" displaytype="text" text="bind:orddeptnm" enable="false"/>
  447. <Cell col="17" displaytype="combo" edittype="none" text="bind:erorddeptcd" combodataset="ds_init_orddeptcd" combocodecol="cd" combodatacol="nm" enable="false"/>
  448. <Cell col="18" displaytype="combo" edittype="none" text="bind:mskind" combodataset="ds_P0006" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  449. <Cell col="19" text="bind:indd" mask="expr:utlf_isNull(indd) ? '' : '####-##-##'"/>
  450. <Cell col="20" text="bind:intm" mask="expr:utlf_isNull(intm) ? '' : '##:##'"/>
  451. <Cell col="21" text="bind:dschdclrdt" mask="expr:(utlf_isNull(dschdclrdt) || '-') ? '' : '####-##-## ##:##:##'"/>
  452. <Cell col="22" text="bind:dschnotidt" mask="expr:(utlf_isNull(dschnotidt) || '-') ? '' : '####-##-## ##:##:##'"/>
  453. <Cell col="23" displaytype="combo" edittype="none" text="bind:insukind" combodataset="ds_init_insukind" combocodecol="cd" combodatacol="nm" enable="false"/>
  454. <Cell col="24" displaytype="combo" edittype="none" text="bind:suppkind" combodataset="ds_init_suppkind" combocodecol="cd" combodatacol="nm" enable="false"/>
  455. <Cell col="25" text="bind:ordcostretcdd" mask="expr:utlf_isNull(ordcostretcdd) ? '' : '####-##-##'"/>
  456. <Cell col="26" text="bind:ordcostcalcdd" mask="expr:(utlf_isNull(ordcostcalcdd) || '-') ? '' : '####-##-##'"/>
  457. <Cell col="27" displaytype="combo" edittype="none" text="bind:dschjudgprcsstat" combodataset="ds_P0363" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  458. <Cell col="28" text="bind:calclastdd" mask="expr:(utlf_isNull(calclastdd) || '-') ? '' : '####-##-##'"/>
  459. <Cell col="29" displaytype="text" edittype="text" text="bind:clincstdycd" enable="false"/>
  460. <Cell col="30" text="bind:brthdd" mask="expr:utlf_isNull(brthdd) ? '' : '####-##-##'"/>
  461. <Cell col="31" text="bind:fstrgstrnm"/>
  462. <Cell col="32" text="bind:fstrgstdt" mask="expr:utlf_isNull(fstrgstdt) ? '' : '####-##-## ##:##:##'"/>
  463. <Cell col="33" text="bind:lastupdtrnm"/>
  464. <Cell col="34" text="bind:lastupdtdt" mask="expr:utlf_isNull(lastupdtdt) ? '' : '####-##-## ##:##:##'"/>
  465. <Cell col="35" text="bind:cretno"/>
  466. <Cell col="36" text="bind:hngnm"/>
  467. <Cell col="37" text="bind:rrgstno"/>
  468. <Cell col="38" text="bind:sex"/>
  469. <Cell col="39" text="bind:age"/>
  470. <Cell col="40" text="bind:brthdd"/>
  471. <Cell col="41" text="bind:pid"/>
  472. <Cell col="42" text="bind:indd"/>
  473. <Cell col="43" text="bind:cretno"/>
  474. <Cell col="44" text="bind:seqno"/>
  475. <Cell col="45" text="bind:instcd"/>
  476. <Cell col="46" text="bind:mskind"/>
  477. <Cell col="47" text="bind:histstat"/>
  478. <Cell col="48" text="bind:intm"/>
  479. <Cell col="49" text="bind:inpath"/>
  480. <Cell col="50" text="bind:arvpath"/>
  481. <Cell col="51" text="bind:ordrslt"/>
  482. <Cell col="52" text="bind:hospbrthyn"/>
  483. <Cell col="53" text="bind:rsrvinyn"/>
  484. <Cell col="54" text="bind:dschdd"/>
  485. <Cell col="55" text="bind:dschtm"/>
  486. <Cell col="56" text="bind:dschtype"/>
  487. <Cell col="57" text="bind:dethdt"/>
  488. <Cell col="58" text="bind:indschacptstat"/>
  489. <Cell col="59" text="bind:medcostestmflag"/>
  490. <Cell col="60" text="bind:fsexamflag"/>
  491. <Cell col="61" text="bind:fsexammanlyn"/>
  492. <Cell col="62" text="bind:medamtpostyn"/>
  493. <Cell col="63" text="bind:medamtfreeresn"/>
  494. <Cell col="64" text="bind:holiflag"/>
  495. <Cell col="65" text="bind:brateflag"/>
  496. <Cell col="66" text="bind:ordtype"/>
  497. <Cell col="67" text="bind:ermngtamtcalcyn"/>
  498. <Cell col="68" text="bind:erbrthflag"/>
  499. <Cell col="69" text="bind:erchospath"/>
  500. <Cell col="70" text="bind:erorddeptcd"/>
  501. <Cell col="71" text="bind:hosoutexptresncd"/>
  502. <Cell col="72" text="bind:insukind"/>
  503. <Cell col="73" text="bind:suppkind"/>
  504. <Cell col="74" text="bind:centcd"/>
  505. <Cell col="75" text="bind:dutdeptcd"/>
  506. <Cell col="76" text="bind:suporddeptcd"/>
  507. <Cell col="77" text="bind:orddeptcd"/>
  508. <Cell col="78" text="bind:orddeptnm"/>
  509. <Cell col="79" text="bind:medispclid"/>
  510. <Cell col="80" text="bind:medispclnm"/>
  511. <Cell col="81" text="bind:atdoctid"/>
  512. <Cell col="82" text="bind:atdoctnm"/>
  513. <Cell col="83" text="bind:specordyn"/>
  514. <Cell col="84" text="bind:wardcd"/>
  515. <Cell col="85" text="bind:roomcd"/>
  516. <Cell col="86" text="bind:roomgrdecd"/>
  517. <Cell col="87" text="bind:roomtypecd"/>
  518. <Cell col="88" text="bind:rqsthospcd"/>
  519. <Cell col="89" text="bind:rqstdrid"/>
  520. <Cell col="90" text="bind:hospiceyn"/>
  521. <Cell col="91" text="bind:drgyn"/>
  522. <Cell col="92" text="bind:bmtyn"/>
  523. <Cell col="93" text="bind:clincstdyyn"/>
  524. <Cell col="94" text="bind:clincstdycd"/>
  525. <Cell col="95" text="bind:batlockid"/>
  526. <Cell col="96" text="bind:batlockyn"/>
  527. <Cell col="97" text="bind:prcplockid"/>
  528. <Cell col="98" text="bind:ordcostretcdd"/>
  529. <Cell col="99" text="bind:ordcostcalcdd"/>
  530. <Cell col="100" text="bind:inacptdt"/>
  531. <Cell col="101" text="bind:inacptchrgid"/>
  532. <Cell col="102" text="bind:eroutdt"/>
  533. <Cell col="103" text="bind:careinrmdd"/>
  534. <Cell col="104" text="bind:careinrmtm"/>
  535. <Cell col="105" text="bind:careinrmrgstrid"/>
  536. <Cell col="106" text="bind:dietprcpcopyflag"/>
  537. <Cell col="107" text="bind:incncldt"/>
  538. <Cell col="108" text="bind:incnclchrgid"/>
  539. <Cell col="109" text="bind:inoutcvrtyn"/>
  540. <Cell col="110" text="bind:dschcnclyn"/>
  541. <Cell col="111" text="bind:dschcnclresn"/>
  542. <Cell col="112" text="bind:dschcncldt"/>
  543. <Cell col="113" text="bind:dschcnclcharid"/>
  544. <Cell col="114" text="bind:dschdclrtyn"/>
  545. <Cell col="115" text="bind:dschdclrdt"/>
  546. <Cell col="116" text="bind:dschdclrtrgstid"/>
  547. <Cell col="117" text="bind:dschdclrtrgstdt"/>
  548. <Cell col="118" text="bind:dschrgstacptdt"/>
  549. <Cell col="119" text="bind:dschrgstacptcharid"/>
  550. <Cell col="120" text="bind:dschnotiyn"/>
  551. <Cell col="121" text="bind:dschnotidt"/>
  552. <Cell col="122" text="bind:dschnotirgstid"/>
  553. <Cell col="123" text="bind:dschnotirgstdt"/>
  554. <Cell col="124" text="bind:visitrefyn"/>
  555. <Cell col="125" text="bind:keepdschcnclresn"/>
  556. <Cell col="126" text="bind:calclastdd"/>
  557. <Cell col="127" text="bind:dschjudgprcsstat"/>
  558. <Cell col="128" text="bind:lastjudgdt"/>
  559. <Cell col="129" text="bind:lastmdlclamdd"/>
  560. <Cell col="130" text="bind:lastjudgendid"/>
  561. <Cell col="131" text="bind:spcljudgflag"/>
  562. <Cell col="132" text="bind:probjudgflag"/>
  563. <Cell col="133" text="bind:mainjudgid"/>
  564. <Cell col="134" text="bind:medcaredayno"/>
  565. <Cell col="135" text="bind:dschcntcyn"/>
  566. <Cell col="136" text="bind:dscharngmnmemo"/>
  567. <Cell col="137" text="bind:ownbmaxbadd"/>
  568. <Cell col="138" text="bind:nblsyn"/>
  569. <Cell col="139" text="bind:fstrgstrid"/>
  570. <Cell col="140" text="bind:fstrgstdt"/>
  571. <Cell col="141" text="bind:lastupdtrid"/>
  572. <Cell col="142" text="bind:lastupdtdt"/>
  573. <Cell col="143" text="bind:recovwardcd"/>
  574. <Cell col="144" text="bind:recovmovedd"/>
  575. <Cell col="145" text="bind:recovinrmdt"/>
  576. <Cell col="146" text="bind:recovoutdt"/>
  577. <Cell col="147" text="bind:ordreqformflag"/>
  578. <Cell col="148" text="bind:handicaprbookpossnyn"/>
  579. <Cell col="149" text="bind:undersixageyn"/>
  580. <Cell col="150" text="bind:spclcd"/>
  581. <Cell col="151" text="bind:calcdd"/>
  582. <Cell col="152" text="bind:calctm"/>
  583. <Cell col="153" text="bind:badcd"/>
  584. <Cell col="154" text="bind:ermedispclid"/>
  585. <Cell col="155" text="bind:emplno"/>
  586. <Cell col="156" text="bind:suppkindsubyn"/>
  587. <Cell col="157" text="bind:ownbflag"/>
  588. <Cell col="158" text="bind:opertodd"/>
  589. <Cell col="159" text="bind:onlnno"/>
  590. <Cell col="160" text="bind:careoutrmdt"/>
  591. <Cell col="161" text="bind:careoutrmdelyresn"/>
  592. <Cell col="162" text="bind:careoutrmrgstid"/>
  593. <Cell col="163" text="bind:etcordflag"/>
  594. <Cell col="164" text="bind:spclsuppkind"/>
  595. <Cell col="165" text="bind:orgordtype"/>
  596. <Cell col="166" text="bind:subdeptcd"/>
  597. <Cell col="167" text="bind:cnstcnfm"/>
  598. <Cell col="168" text="bind:cnstfromdd"/>
  599. <Cell col="169" text="bind:cnsttodd"/>
  600. <Cell col="170" text="bind:preroomcd"/>
  601. <Cell col="171" text="bind:cnstroomcd"/>
  602. </Band>
  603. </Format>
  604. </Formats>
  605. </Grid>
  606. <Grid position="absolute 0 317 595 531" id="grd_icdrlist" class="datagrid" binddataset="ds_grd_icdrlist" anchor="left top right">
  607. <Formats>
  608. <Format id="default">
  609. <Columns>
  610. <Column size="70"/>
  611. <Column size="70"/>
  612. <Column size="80"/>
  613. <Column size="60"/>
  614. <Column size="60"/>
  615. <Column size="70"/>
  616. <Column size="80"/>
  617. <Column size="100"/>
  618. <Column size="70"/>
  619. <Column size="70"/>
  620. <Column size="30"/>
  621. <Column size="70"/>
  622. <Column size="130"/>
  623. </Columns>
  624. <Rows>
  625. <Row size="24" band="head"/>
  626. <Row size="24"/>
  627. </Rows>
  628. <Band id="head">
  629. <Cell text="시작일자"/>
  630. <Cell col="1" text="종료일자"/>
  631. <Cell col="2" text="병동"/>
  632. <Cell col="3" text="병실"/>
  633. <Cell col="4" text="병상"/>
  634. <Cell col="5" text="형태"/>
  635. <Cell col="6" text="등급"/>
  636. <Cell col="7" text="진료과"/>
  637. <Cell col="8" text="담당교수"/>
  638. <Cell col="9" text="담당의"/>
  639. <Cell col="10" text="선택"/>
  640. <Cell col="11" text="최종수정자"/>
  641. <Cell col="12" text="최종수정일시"/>
  642. </Band>
  643. <Band id="body">
  644. <Cell text="bind:fromdd" mask="expr:utlf_isNull(fromdd) ? '' : '####-##-##'"/>
  645. <Cell col="1" text="bind:todd" mask="expr:utlf_isNull(todd) ? '' : '####-##-##'"/>
  646. <Cell col="2" displaytype="combo" edittype="none" text="bind:wardcd" combodataset="ds_init_wardcd" combocodecol="cd" combodatacol="nm" enable="false"/>
  647. <Cell col="3" displaytype="combo" edittype="none" text="bind:roomcd" combodataset="ds_init_roomcd" combocodecol="cd" combodatacol="nm" enable="false"/>
  648. <Cell col="4" displaytype="combo" edittype="none" text="bind:bedcd" combodataset="ds_init_bedcd" combocodecol="cd" combodatacol="nm" enable="false"/>
  649. <Cell col="5" displaytype="combo" edittype="none" text="bind:roomtypecd" combodataset="ds_init_roomtypecd" combocodecol="cd" combodatacol="nm" enable="false"/>
  650. <Cell col="6" displaytype="combo" edittype="none" text="bind:roomgrdecd" combodataset="ds_init_roomgrdelist" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  651. <Cell col="7" displaytype="normal" edittype="none" text="bind:orddeptnm" enable="false"/>
  652. <Cell col="8" displaytype="normal" edittype="none" text="bind:medispclnm" enable="false"/>
  653. <Cell col="9" displaytype="normal" edittype="none" text="bind:atdoctnm" enable="false"/>
  654. <Cell col="10" text="bind:specordyn"/>
  655. <Cell col="11" text="bind:lastupdtridnm"/>
  656. <Cell col="12" text="bind:lastupdtdt" mask="expr:utlf_isNull(lastupdtdt) ? '' : '####-##-## ##:##:##'"/>
  657. </Band>
  658. </Format>
  659. </Formats>
  660. </Grid>
  661. <Static text="적용/종료일자" position="absolute 0 558 99 581" align="align:center middle;" id="caption61" class="cell_1" style="font:Dotum,9;"/>
  662. <Static text="형태/등급" position="absolute 279 583 382 606" align="align:center middle;" id="caption30" class="cell_1" onclick="caption30_onclick"/>
  663. <Static text="진료과" position="absolute 0 583 99 606" align="align:center middle;" id="caption21" class="cell_1"/>
  664. <Calendar position="absolute 101 559 186 578" id="ipt_2fromdd" class="input_default" enable="false"/>
  665. <Static text="담당교수/담당의" position="absolute 0 608 99 631" align="align:center middle;" id="caption22" class="cell_1" style="font:Dotum,8;"/>
  666. <Calendar position="absolute 189 559 274 578" id="ipt_2todd" class="input_default" enable="false"/>
  667. <Combo position="absolute 101 609 186 628" id="cmb_2medispclid" class="combo_default" innerdataset="@ds_init_orddrid" datacolumn="nm" codecolumn="cd" enable="false"/>
  668. <Static text="선택진료" position="absolute 0 633 99 656" align="align:center middle;" id="caption24" class="cell_1"/>
  669. <Combo position="absolute 384 559 459 578" id="cmb_2wardcd" class="combo_default" innerdataset="@ds_init_wardcd" datacolumn="nm" codecolumn="cd" enable="false"/>
  670. <Combo position="absolute 101 585 274 604" id="cmb_2orddeptcd" class="combo_default" innerdataset="@ds_init_orddeptcd" datacolumn="nm" codecolumn="cd" enable="false"/>
  671. <Combo position="absolute 490 585 595 604" id="cmb_2roomgrdecd" class="combo_default" innerdataset="@ds_init_roomgrdelist" datacolumn="cdnm" codecolumn="cdid" enable="false"/>
  672. <Static text="병동/병실/병상" position="absolute 279 558 382 581" align="align:center middle;" id="caption29" class="cell_1" onclick="caption29_onclick"/>
  673. <Combo position="absolute 384 585 487 604" id="cmb_2roomtypecd" class="combo_default" innerdataset="@ds_init_roomtypecd" datacolumn="nm" codecolumn="cd" enable="false"/>
  674. <Radio position="absolute 101 634 186 654" id="rdo_2specordyn" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn" enable="false">
  675. <Dataset id="innerdataset">
  676. <ColumnInfo>
  677. <Column id="codecolumn" size="256"/>
  678. <Column id="datacolumn" size="256"/>
  679. </ColumnInfo>
  680. <Rows>
  681. <Row>
  682. <Col id="codecolumn">Y</Col>
  683. <Col id="datacolumn">Yes</Col>
  684. </Row>
  685. <Row>
  686. <Col id="codecolumn">N</Col>
  687. <Col id="datacolumn">No</Col>
  688. </Row>
  689. </Rows>
  690. </Dataset>
  691. </Radio>
  692. <Static text="적용/종료일자" position="absolute 600 558 699 581" align="align:center middle;" id="caption5" class="cell_1"/>
  693. <Static text="형태/등급" position="absolute 880 583 983 606" align="align:center middle;" id="caption6" class="cell_1"/>
  694. <Static text="진료과" position="absolute 600 583 699 606" align="align:center middle;" id="caption8" class="cell_1"/>
  695. <Static text="담당의 여부" position="absolute 600 608 699 631" align="align:center middle;" id="caption15" class="cell_1"/>
  696. <Static text="담당교수/담당의" position="absolute 600 633 699 656" align="align:center middle;" id="caption10" class="cell_1" style="font:Dotum,8;"/>
  697. <Combo position="absolute 701 585 874 604" id="cmb_orddeptcd" class="combo_default" innerdataset="@ds_init_orddeptcd" datacolumn="nm" codecolumn="cd" onitemchanged="cmb_orddeptcd_onitemchanged" enable="true" readonly="false"/>
  698. <Static text="선택진료" position="absolute 600 658 699 681" align="align:center middle;" id="caption11" class="cell_1"/>
  699. <Radio position="absolute 701 609 801 628" id="rdo_attend" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="rdo_attend_onitemchanged">
  700. <Dataset id="innerdataset">
  701. <ColumnInfo>
  702. <Column id="codecolumn"/>
  703. <Column id="datacolumn"/>
  704. </ColumnInfo>
  705. <Rows>
  706. <Row>
  707. <Col id="codecolumn">Y</Col>
  708. <Col id="datacolumn">Yes</Col>
  709. </Row>
  710. <Row>
  711. <Col id="codecolumn">N</Col>
  712. <Col id="datacolumn">No</Col>
  713. </Row>
  714. </Rows>
  715. </Dataset>
  716. </Radio>
  717. <Radio position="absolute 701 660 801 679" id="rdo_specordyn" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn">
  718. <Dataset id="innerdataset">
  719. <ColumnInfo>
  720. <Column id="codecolumn"/>
  721. <Column id="datacolumn"/>
  722. </ColumnInfo>
  723. <Rows>
  724. <Row>
  725. <Col id="codecolumn">Y</Col>
  726. <Col id="datacolumn">Yes</Col>
  727. </Row>
  728. <Row>
  729. <Col id="codecolumn">N</Col>
  730. <Col id="datacolumn">No</Col>
  731. </Row>
  732. </Rows>
  733. </Dataset>
  734. </Radio>
  735. <Combo position="absolute 701 635 786 654" id="cmb_medispclid" class="combo_default" innerdataset="@fds_orddrid" datacolumn="nm" codecolumn="cd" enable="true"/>
  736. <Combo position="absolute 985 561 1060 580" id="cmb_wardcd" class="combo_default" enable="false" innerdataset="@ds_init_wardcd" datacolumn="nm" codecolumn="cd" readonly="false" type="dropdown"/>
  737. <Combo position="absolute 1088 585 1193 604" id="cmb_roomgrdecd" class="combo_default" innerdataset="@ds_init_roomgrdelist" datacolumn="cdnm" codecolumn="cdid"/>
  738. <Calendar position="absolute 701 561 786 580" id="ipt_fromdd" class="input_default" enable="false"/>
  739. <Combo position="absolute 985 585 1087 604" id="cmb_roomtypecd" class="combo_default" innerdataset="@ds_init_roomtypecd" datacolumn="nm" codecolumn="cd" onitemchanged="cmb_roomtypecd_onitemchanged"/>
  740. <Calendar position="absolute 789 561 874 580" id="ipt_todd" class="input_default" enable="false"/>
  741. <Static text="병동/병실/병상" position="absolute 880 558 983 581" align="align:center middle;" id="caption12" class="cell_1"/>
  742. <Static text="전과전실승인" position="absolute 0 0 132 26" align="align:center middle;" id="caption26" class="tit_1"/>
  743. <Static text="비고1" position="absolute 880 633 983 656" align="align:center middle;" id="caption13" class="cell_1"/>
  744. <Static text="비고2" position="absolute 880 658 983 681" align="align:center middle;" id="caption14" class="cell_1"/>
  745. <Edit position="absolute 985 660 1193 679" id="input1"/>
  746. <CheckBox position="absolute 701 683 757 703" id="bool2" text="사용" truevalue="Y"/>
  747. <CheckBox position="absolute 789 683 845 703" id="bool3" text="사용" truevalue="Y"/>
  748. <Static text="O2 /Suct사용" position="absolute 600 683 699 706" id="caption16" class="cell_1"/>
  749. <Button position="absolute 69 761 137 783" id="button20" class="btn3" text="약정서" onclick="button20_onclick"/>
  750. <Button position="absolute 190 761 237 783" id="button11" class="btn3" text="팔찌" onclick="button11_onclick"/>
  751. <Button position="absolute 239 761 314 783" id="button14" class="btn3" visible="true" text="입원카드" enable="false" onclick="button14_onclick"/>
  752. <Button position="absolute 623 761 723 783" id="btn_SMASB02100" class="btn3" visible="true" text="격리신청현황" onclick="btn_SMASB02100_onclick"/>
  753. <Button position="absolute 950 761 1030 783" id="btn_cancel" class="btn4" text="승인취소" enable="false" onclick="btn_cancel_onclick"/>
  754. <Button position="absolute 1032 761 1112 783" id="btn_cancel2" class="btn4" text="신청취소" enable="false" onclick="btn_cancel2_onclick"/>
  755. <Button position="absolute 517 761 621 783" id="button1" class="btn3" text="환자기본정보" onclick="button1_onclick"/>
  756. <Static text="감염내과승인여부" position="absolute 0 709 125 732" align="align:center middle;" id="caption18" class="cell_1"/>
  757. <Static text="격리개시일" position="absolute 127 709 212 732" align="align:center middle;" id="caption19" class="cell_1"/>
  758. <Static text="격리종료일" position="absolute 214 709 294 732" align="align:center middle;" id="caption20" class="cell_1"/>
  759. <Static text="이전병실" position="absolute 296 709 376 732" align="align:center middle;" id="caption25" class="cell_1"/>
  760. <Static text="격리병실" position="absolute 378 709 458 732" align="align:center middle;" id="caption27" class="cell_1"/>
  761. <Edit position="absolute 0 734 125 753" align="align:center middle;" id="input2" class="input_default" enable="false"/>
  762. <MaskEdit position="absolute 127 734 212 753" align="align:center middle;" id="input3" class="input_default" enable="false" mask="yyyy-mm-dd"/>
  763. <MaskEdit position="absolute 214 734 294 753" align="align:center middle;" id="input4" class="input_default" enable="false" mask="yyyy-mm-dd"/>
  764. <Edit position="absolute 296 734 376 753" align="align:center middle;" id="input5" class="input_default" enable="false"/>
  765. <Edit position="absolute 378 734 458 753" align="align:center middle;" id="input6" class="input_default" enable="false"/>
  766. <Static text="신청정보" position="absolute 608 294 778 310" align="align:center middle;" id="caption28" class="tit_2" anchor="top right"/>
  767. <Grid position="absolute 600 317 1195 531" id="grd_cdcrlist" class="datagrid" binddataset="ds_grd_cdcrlist" anchor="top right" oncellclick="grd_cdcrlist_oncellclick">
  768. <Formats>
  769. <Format id="default">
  770. <Columns>
  771. <Column size="33"/>
  772. <Column size="60"/>
  773. <Column size="70"/>
  774. <Column size="70"/>
  775. <Column size="80"/>
  776. <Column size="60"/>
  777. <Column size="60"/>
  778. <Column size="66"/>
  779. <Column size="80"/>
  780. <Column size="100"/>
  781. <Column size="60"/>
  782. <Column size="60"/>
  783. <Column size="30"/>
  784. <Column size="30"/>
  785. <Column size="30"/>
  786. <Column size="60"/>
  787. <Column size="114"/>
  788. <Column size="100"/>
  789. <Column size="100"/>
  790. <Column size="70"/>
  791. <Column size="130"/>
  792. <Column size="70"/>
  793. <Column size="130"/>
  794. <Column size="30"/>
  795. </Columns>
  796. <Rows>
  797. <Row size="24" band="head"/>
  798. <Row size="24"/>
  799. </Rows>
  800. <Band id="head">
  801. <Cell text="상태"/>
  802. <Cell col="1" text="신청구분"/>
  803. <Cell col="2" text="신청일자"/>
  804. <Cell col="3" text="완료일자"/>
  805. <Cell col="4" text="병동"/>
  806. <Cell col="5" text="병실"/>
  807. <Cell col="6" text="병상"/>
  808. <Cell col="7" text="형태"/>
  809. <Cell col="8" text="등급"/>
  810. <Cell col="9" text="진료과"/>
  811. <Cell col="10" text="담당교수"/>
  812. <Cell col="11" text="담당의"/>
  813. <Cell col="12" text="선택"/>
  814. <Cell col="13" text="O2"/>
  815. <Cell col="14" text="Suc"/>
  816. <Cell col="15" text="승인자"/>
  817. <Cell col="16" text="승인일시"/>
  818. <Cell col="17" text="비고1"/>
  819. <Cell col="18" text="비고2"/>
  820. <Cell col="19" text="최초등록자"/>
  821. <Cell col="20" text="최초등록일시"/>
  822. <Cell col="21" text="최종수정자"/>
  823. <Cell col="22" text="최종수정일시"/>
  824. <Cell col="23" text="SNo"/>
  825. </Band>
  826. <Band id="body">
  827. <Cell displaytype="combo" edittype="none" style="align:center;" text="bind:acptflagcd" combodataset="ds_acptflagcd" combocodecol="cd" combodatacol="nm" enable="false"/>
  828. <Cell col="1" displaytype="combo" edittype="none" style="align:center;" text="bind:appflagcd" combodataset="ds_appflagcd" combocodecol="cd" combodatacol="nm" enable="false"/>
  829. <Cell col="2" text="bind:appdd" mask="expr:utlf_isNull(appdd) ? '' : '####-##-##'"/>
  830. <Cell col="3" text="bind:enddd" mask="expr:utlf_isNull(enddd) ? '' : '####-##-##'"/>
  831. <Cell col="4" displaytype="combo" edittype="none" text="bind:chngwardcd" combodataset="ds_init_wardcd" combocodecol="cd" combodatacol="nm" enable="false"/>
  832. <Cell col="5" displaytype="combo" edittype="none" text="bind:chngroomcd" combodataset="ds_init_roomcd" combocodecol="cd" combodatacol="nm" enable="false"/>
  833. <Cell col="6" displaytype="combo" edittype="none" text="bind:chngbedcd" combodataset="ds_init_bedcd" combocodecol="cd" combodatacol="nm" enable="false"/>
  834. <Cell col="7" displaytype="combo" edittype="none" text="bind:chngroomtype" combodataset="ds_init_roomtypecd" combocodecol="cd" combodatacol="nm" enable="false"/>
  835. <Cell col="8" displaytype="combo" edittype="none" text="bind:chngroomgrde" combodataset="ds_init_roomgrdelist" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  836. <Cell col="9" displaytype="normal" edittype="none" text="bind:chngorddeptnm" enable="false"/>
  837. <Cell col="10" displaytype="normal" edittype="none" text="bind:chngmedispclnm" enable="false"/>
  838. <Cell col="11" displaytype="normal" edittype="none" text="bind:chngatdoctnm" enable="false"/>
  839. <Cell col="12" text="bind:specordyn"/>
  840. <Cell col="13" text="bind:oxyyn"/>
  841. <Cell col="14" text="bind:suctyn"/>
  842. <Cell col="15" text="bind:pamacptnm"/>
  843. <Cell col="16" text="bind:pamacptdt" mask="expr:utlf_isNull(pamacptdt) ? '' : '####-##-## ##:##'"/>
  844. <Cell col="17" displaytype="combo" edittype="none" text="bind:prestremcd" combodataset="ds_P0360" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  845. <Cell col="18" text="bind:chngprestrem"/>
  846. <Cell col="19" text="bind:fstrgstridnm"/>
  847. <Cell col="20" text="bind:fstrgstdt" mask="expr:utlf_isNull(fstrgstdt) ? '' : '####-##-## ##:##:##'"/>
  848. <Cell col="21" text="bind:lastupdtridnm"/>
  849. <Cell col="22" text="bind:lastupdtdt" mask="expr:utlf_isNull(lastupdtdt) ? '' : '####-##-## ##:##:##'"/>
  850. <Cell col="23" text="bind:icdr_seqno"/>
  851. </Band>
  852. </Format>
  853. </Formats>
  854. </Grid>
  855. <Button position="absolute 1114 761 1194 783" id="btn_recovery" class="btn4" text="완료취소" enable="false" onclick="btn_recovery_onclick"/>
  856. <Button position="absolute 386 761 433 783" id="button23" class="btn3" text="선택" onclick="button23_onclick"/>
  857. <Combo position="absolute 1128 561 1194 580" id="cmb_bedcd" class="combo_default" enable="false" innerdataset="@ds_init_bedcd" datacolumn="nm" codecolumn="cd"/>
  858. <Button position="absolute 0 761 67 783" id="button2" class="btn3" text="결정서" visible="true" enable="false" onclick="button2_onclick"/>
  859. <Button position="absolute 316 761 384 783" id="button12" class="btn3" text="진단서" onclick="button12_onclick"/>
  860. <Static text="병실차액/전담전문" position="absolute 880 608 999 631" align="align:center middle;" id="caption33" class="cell_1"/>
  861. <Combo position="absolute 1001 609 1126 628" id="combo3" class="combo_default" innerdataset="@ds_init_roomgrdecd" datacolumn="cdamt" codecolumn="cd" enable="true"/>
  862. <Button position="absolute 435 761 515 783" id="button28" class="btn3" text="보호자증" onclick="button28_onclick"/>
  863. <Button position="absolute 139 761 188 783" id="button3" class="btn3" text="상급" onclick="button3_onclick"/>
  864. <Calendar position="absolute 344 36 444 55" id="ipt_appddfrom" class="input_search" visible="false" mask="yyyy-mm-dd"/>
  865. <Static text="승인일자 :" position="absolute 268 37 358 54" id="caption17" class="search_name" visible="false"/>
  866. <Calendar position="absolute 464 36 564 55" id="ipt_appddto" class="input_search" visible="false" mask="yyyy-mm-dd"/>
  867. <Static id="cpt_line" text="~" visible="false" position="absolute 448 39 459 56" style="align:center;"/>
  868. <Shape id="Shape00" position="absolute 0 555 595 557" class="line_3" style="strokepen:3 solid #33bbbbff;"/>
  869. <Shape id="Shape01" class="line_3" position="absolute 600 555 1195 557" style="strokepen:3 solid #33bbbbff;"/>
  870. <Shape id="Shape02" class="line_3" position="absolute 600 315 1195 317" style="strokepen:3 solid #33bbbbff;" anchor="top right"/>
  871. <Shape id="Shape03" class="line_3" position="absolute 0 315 595 317" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  872. <Shape id="Shape04" class="line_3" position="absolute 0 87 1195 89" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  873. <Shape id="Shape05" position="absolute 0 754 458 756" style="strokepen:1 solid #33bbbbff;"/>
  874. <Shape id="Shape06" position="absolute 600 707 1195 709" style="strokepen:1 solid #33bbbbff;"/>
  875. <Shape id="Shape07" position="absolute 0 682 595 684" style="strokepen:1 solid #33bbbbff;"/>
  876. <Static id="caption00" text="격리병실승인정보" class="tit_2" position="absolute 4 688 140 704" onclick="caption00_onclick"/>
  877. <Shape id="Shape08" class="line_3" position="absolute 0 706 458 708" style="strokepen:3 solid #33bbbbff;"/>
  878. <Static id="caption07" text="O2 /Suct사용" class="cell_1" position="absolute 0 658 99 681"/>
  879. <Static id="caption09" text="병실차액" class="cell_1" position="absolute 279 608 382 631"/>
  880. <Static id="caption31" text="비고2" class="cell_1" position="absolute 279 658 382 681"/>
  881. <Static id="caption32" text="비고1" class="cell_1" position="absolute 279 633 382 656"/>
  882. <CheckBox id="bool4" taborder="1" position="absolute 101 658 157 678" onclick="CheckBox00_onclick" text="사용" enable="false"/>
  883. <CheckBox id="bool5" taborder="2" position="absolute 189 658 245 678" text="사용" enable="false"/>
  884. <Combo id="Combo00" taborder="3" position="absolute 384 609 595 628" index="-1" enable="false" innerdataset="@ds_init_roomgrdecd" codecolumn="cd" datacolumn="cdamt"/>
  885. <Combo id="Combo02" taborder="4" position="absolute 384 635 595 654" enable="false" innerdataset="ds_P0360" codecolumn="cdid" datacolumn="cdnm"/>
  886. <Edit id="Edit00" taborder="5" position="absolute 384 660 595 679" enable="false"/>
  887. <Combo id="cmb_2wardcd00" taborder="6" innerdataset="@ds_init_roomcd" codecolumn="cd" datacolumn="nm" class="combo_default" enable="false" position="absolute 461 559 527 578"/>
  888. <Combo id="cmb_2wardcd01" taborder="7" innerdataset="@ds_init_bedcd" codecolumn="cd" datacolumn="nm" class="combo_default" enable="false" position="absolute 529 559 595 578"/>
  889. <Combo id="Combo01" taborder="8" position="absolute 985 635 1193 654" index="-1" codecolumn="cdid" datacolumn="cdnm" innerdataset="ds_P0360"/>
  890. <Button id="Button00" taborder="9" text="통지" position="absolute 725 761 773 783" class="btn3" onclick="Button00_onclick"/>
  891. <Button id="Button04" taborder="10" text="수령" position="absolute 775 761 824 783" class="btn3" onclick="Button04_onclick"/>
  892. <Combo id="Combo04" taborder="11" position="absolute 1128 609 1194 628" innerdataset="@ds_init_roomcd" codecolumn="cd" datacolumn="hospitalistyn" style="align:center;" enable="false" index="-1"/>
  893. <Button id="Button05" taborder="12" text="전담" position="absolute 826 761 875 783" class="btn3" onclick="Button05_onclick"/>
  894. <Button id="btn_srch_room" taborder="13" class="icon_search" position="absolute 1200 563 1216 576" anchor="left top" onclick="btn_srch_room_onclick"/>
  895. </Layout>
  896. </Layouts>
  897. <Objects>
  898. <Dataset id="ds_init_insukind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  899. <ColumnInfo>
  900. <Column id="cd" type="STRING" size="256" sumtext="보험유형코드"/>
  901. <Column id="nm" type="STRING" size="256" sumtext="보험유형명"/>
  902. </ColumnInfo>
  903. </Dataset>
  904. <Dataset id="ds_init_suppkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  905. <ColumnInfo>
  906. <Column id="up" type="STRING" size="256" sumtext="보험유형코드"/>
  907. <Column id="cd" type="STRING" size="256" sumtext="보조유형코드"/>
  908. <Column id="nm" type="STRING" size="256" sumtext="보조유형명"/>
  909. <Column id="io" type="STRING" size="256" sumtext="입원외래구분"/>
  910. <Column id="amt" type="STRING" size="256" sumtext="본인부담상한금액"/>
  911. </ColumnInfo>
  912. </Dataset>
  913. <Dataset id="ds_init_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  914. <ColumnInfo>
  915. <Column id="cd" type="STRING" size="256" sumtext="진료과코드"/>
  916. <Column id="nm" type="STRING" size="256" sumtext="진료과명"/>
  917. <Column id="deptengabbr" type="STRING" size="256" sumtext="영문약어"/>
  918. <Column id="deptengabbr2" type="STRING" size="256" sumtext="영문약어"/>
  919. <Column id="reqdeptno" type="STRING" size="256" sumtext="과번호"/>
  920. <Column id="orddeptflag" type="STRING" size="256" sumtext="처방사용구분"/>
  921. </ColumnInfo>
  922. </Dataset>
  923. <Dataset id="ds_init_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  924. <ColumnInfo>
  925. <Column id="cd" type="STRING" size="256" sumtext="진료의사ID"/>
  926. <Column id="nm" type="STRING" size="256" sumtext="진료의사명"/>
  927. <Column id="dp" type="STRING" size="256" sumtext="진료과명"/>
  928. <Column id="sp" type="STRING" size="256" sumtext="선택진료"/>
  929. <Column id="nmspecyn" type="STRING" size="256" sumtext="이름 선택진료여부"/>
  930. <Column id="drengabbr" type="STRING" size="256" sumtext="의사영문약어"/>
  931. <Column id="jobposcd" type="STRING" size="256" sumtext="직위"/>
  932. </ColumnInfo>
  933. </Dataset>
  934. <Dataset id="ds_init_wardcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  935. <ColumnInfo>
  936. <Column id="cd" type="STRING" size="256" sumtext="병동코드"/>
  937. <Column id="nm" type="STRING" size="256" sumtext="병동명"/>
  938. <Column id="ofg" type="STRING" size="256" sumtext="병동구분"/>
  939. <Column id="build" type="STRING" size="256" sumtext="건물구분"/>
  940. <Column id="deptplce" type="STRING" size="256" sumtext="병동위치"/>
  941. <Column id="deptplce2" type="STRING" size="256" sumtext="병동위치(단축)"/>
  942. </ColumnInfo>
  943. </Dataset>
  944. <Dataset id="ds_init_roomcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  945. <ColumnInfo>
  946. <Column id="cd" type="STRING" size="256" sumtext="병실코드"/>
  947. <Column id="nm" type="STRING" size="256" sumtext="병실명"/>
  948. <Column id="wd" type="STRING" size="256" sumtext="병동코드"/>
  949. <Column id="gr" type="STRING" size="256" sumtext="병동등급"/>
  950. <Column id="ty" type="STRING" size="256" sumtext="병동타입"/>
  951. <Column id="sex" type="STRING" size="256" sumtext="성별"/>
  952. </ColumnInfo>
  953. </Dataset>
  954. <Dataset id="ds_init_bedcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  955. <ColumnInfo>
  956. <Column id="cd" type="STRING" size="256" sumtext="병상코드"/>
  957. <Column id="nm" type="STRING" size="256" sumtext="병상명"/>
  958. <Column id="wd" type="STRING" size="256" sumtext="병동코드"/>
  959. <Column id="rm" type="STRING" size="256" sumtext="병실코드"/>
  960. </ColumnInfo>
  961. </Dataset>
  962. <Dataset id="ds_init_roomgrdecd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  963. <ColumnInfo>
  964. <Column id="cd" type="STRING" size="256" sumtext="병실등급코드"/>
  965. <Column id="nm" type="STRING" size="256" sumtext="병실등급코드명"/>
  966. <Column id="typecd" type="STRING" size="256" sumtext="병실등급코드약어"/>
  967. <Column id="cdamt" type="STRING" size="256" sumtext="병실차액"/>
  968. </ColumnInfo>
  969. </Dataset>
  970. <Dataset id="ds_init_roomgrdelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  971. <ColumnInfo>
  972. <Column id="cdid" type="STRING" size="256" sumtext="등급코드"/>
  973. <Column id="cdnm" type="STRING" size="256" sumtext="등급명"/>
  974. <Column id="newcdid" type="STRING" size="256" sumtext="살아있는코드"/>
  975. <Column id="typecd" type="STRING" size="256" sumtext="형태"/>
  976. <Column id="yn" type="STRING" size="256" sumtext="yn"/>
  977. <Column id="cdyn" type="STRING" size="256" sumtext="cdyn"/>
  978. </ColumnInfo>
  979. </Dataset>
  980. <Dataset id="ds_init_roomtypecd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  981. <ColumnInfo>
  982. <Column id="cd" type="STRING" size="256" sumtext="병실형태코드"/>
  983. <Column id="nm" type="STRING" size="256" sumtext="병실형태코드명"/>
  984. </ColumnInfo>
  985. </Dataset>
  986. <Dataset id="ds_grd_inhosplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  987. <ColumnInfo>
  988. <Column id="status" type="STRING" size="256" sumtext="상태"/>
  989. <Column id="hngnm" type="STRING" size="256" sumtext="성명"/>
  990. <Column id="rrgstno" type="STRING" size="256" sumtext="주민등록번호"/>
  991. <Column id="sex" type="STRING" size="256" sumtext="성별"/>
  992. <Column id="age" type="STRING" size="256" sumtext="나이"/>
  993. <Column id="brthdd" type="STRING" size="256" sumtext="생년월일"/>
  994. <Column id="remfact" type="STRING" size="256" sumtext="참고사항"/>
  995. <Column id="pid" type="STRING" size="256" sumtext="환자 등록번호"/>
  996. <Column id="indd" type="STRING" size="256" sumtext="입원 일자"/>
  997. <Column id="cretno" type="INT" size="256" sumtext="생성번호"/>
  998. <Column id="seqno" type="INT" size="256" sumtext="이력 일련번호"/>
  999. <Column id="instcd" type="STRING" size="256" sumtext="병원별 기관코드"/>
  1000. <Column id="mskind" type="STRING" size="256" sumtext="주부유형"/>
  1001. <Column id="histstat" type="STRING" size="256" sumtext="이력 상태"/>
  1002. <Column id="intm" type="STRING" size="256" sumtext="입원 시간"/>
  1003. <Column id="inpath" type="STRING" size="256" sumtext="입원 경로"/>
  1004. <Column id="arvpath" type="STRING" size="256" sumtext="도착경로"/>
  1005. <Column id="ordrslt" type="STRING" size="256" sumtext="진료결과"/>
  1006. <Column id="hospbrthyn" type="STRING" size="256" sumtext="본원 출생여부"/>
  1007. <Column id="rsrvinyn" type="STRING" size="256" sumtext="입원예약 여부"/>
  1008. <Column id="dschdd" type="STRING" size="256" sumtext="퇴원 일자"/>
  1009. <Column id="dschtm" type="STRING" size="256" sumtext="퇴원 시간"/>
  1010. <Column id="dschtype" type="STRING" size="256" sumtext="퇴원 형태"/>
  1011. <Column id="dethdt" type="STRING" size="256" sumtext="사망 일시"/>
  1012. <Column id="indschacptstat" type="STRING" size="256" sumtext="입퇴원접수상태"/>
  1013. <Column id="medcostestmflag" type="STRING" size="256" sumtext="진찰료 산정"/>
  1014. <Column id="fsexamflag" type="STRING" size="256" sumtext="초재진 구분"/>
  1015. <Column id="fsexammanlyn" type="STRING" size="256" sumtext="초재진구분 수동부여여부"/>
  1016. <Column id="medamtpostyn" type="STRING" size="256" sumtext="진찰료 후불여부"/>
  1017. <Column id="medamtfreeresn" type="STRING" size="256" sumtext="진찰료 면제 사유"/>
  1018. <Column id="holiflag" type="STRING" size="256" sumtext="공휴일구분"/>
  1019. <Column id="brateflag" type="STRING" size="256" sumtext="외래부담률 O, 입원부담률 I"/>
  1020. <Column id="ordtype" type="STRING" size="256" sumtext="진료형태(외래 O, 응급 E ,입원 I)"/>
  1021. <Column id="ermngtamtcalcyn" type="STRING" size="256" sumtext="응급의학관리료산정여부"/>
  1022. <Column id="erbrthflag" type="STRING" size="256" sumtext="응급분만구분"/>
  1023. <Column id="erchospath" type="STRING" size="256" sumtext="응급내원경로"/>
  1024. <Column id="erorddeptcd" type="STRING" size="256" sumtext="응급진료과코드"/>
  1025. <Column id="hosoutexptresncd" type="STRING" size="256" sumtext="원외예외사유코드"/>
  1026. <Column id="insukind" type="STRING" size="256" sumtext="환자의 보험유형"/>
  1027. <Column id="suppkind" type="STRING" size="256" sumtext="환자의 보조유형"/>
  1028. <Column id="centcd" type="STRING" size="256" sumtext="센터코드"/>
  1029. <Column id="dutdeptcd" type="STRING" size="256" sumtext="근무 부서 코드"/>
  1030. <Column id="suporddeptcd" type="STRING" size="256" sumtext="상위 진료과 코드"/>
  1031. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과 코드"/>
  1032. <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과 코드"/>
  1033. <Column id="medispclid" type="STRING" size="256" sumtext="담당교수 ID"/>
  1034. <Column id="medispclnm" type="STRING" size="256" sumtext="담당교수명"/>
  1035. <Column id="atdoctid" type="STRING" size="256" sumtext="주치의 ID"/>
  1036. <Column id="atdoctnm" type="STRING" size="256" sumtext="주치의 ID"/>
  1037. <Column id="specordyn" type="STRING" size="256" sumtext="선택 진료 여부"/>
  1038. <Column id="wardcd" type="STRING" size="256" sumtext="병동 코드"/>
  1039. <Column id="roomcd" type="STRING" size="256" sumtext="병실 코드"/>
  1040. <Column id="bedcd" type="STRING" size="256" sumtext="병상 코드"/>
  1041. <Column id="roomgrdecd" type="STRING" size="256" sumtext="병실등급 코드"/>
  1042. <Column id="roomtypecd" type="STRING" size="256" sumtext="병실형태 코드"/>
  1043. <Column id="rqsthospcd" type="STRING" size="256" sumtext="협력의뢰 병원코드"/>
  1044. <Column id="rqstdrid" type="STRING" size="256" sumtext="협력의뢰 의사 ID"/>
  1045. <Column id="hospiceyn" type="STRING" size="256" sumtext="호스피스여부"/>
  1046. <Column id="drgyn" type="STRING" size="256" sumtext="DRG 사용 여부"/>
  1047. <Column id="bmtyn" type="STRING" size="256" sumtext="BMT 환자 여부"/>
  1048. <Column id="clincstdyyn" type="STRING" size="256" sumtext="임상연구여부"/>
  1049. <Column id="clincstdycd" type="STRING" size="256" sumtext="임상연구 코드"/>
  1050. <Column id="batlockid" type="STRING" size="256" sumtext="Batch작업시 처리 ID"/>
  1051. <Column id="batlockyn" type="STRING" size="256" sumtext="Batch작업 여부"/>
  1052. <Column id="prcplockid" type="STRING" size="256" sumtext="처방잠김ID"/>
  1053. <Column id="ordcostretcdd" type="STRING" size="256" sumtext="진료비 소급일자"/>
  1054. <Column id="ordcostcalcdd" type="STRING" size="256" sumtext="진료비 계산일자"/>
  1055. <Column id="inacptdt" type="STRING" size="256" sumtext="입원접수 일시"/>
  1056. <Column id="inacptchrgid" type="STRING" size="256" sumtext="입원접수 담당자"/>
  1057. <Column id="eroutdt" type="STRING" size="256" sumtext="응급실 퇴실 일시"/>
  1058. <Column id="careinrmdd" type="STRING" size="256" sumtext="간호입실일자"/>
  1059. <Column id="careinrmtm" type="STRING" size="256" sumtext="간호입실시간"/>
  1060. <Column id="careinrmrgstrid" type="STRING" size="256" sumtext="간호입실등록자ID"/>
  1061. <Column id="dietprcpcopyflag" type="STRING" size="256" sumtext="식이처방복사구분"/>
  1062. <Column id="incncldt" type="STRING" size="256" sumtext="입원취소 일시"/>
  1063. <Column id="incnclchrgid" type="STRING" size="256" sumtext="입원취소 담당자"/>
  1064. <Column id="inoutcvrtyn" type="STRING" size="256" sumtext="입원후 외래전환 여부"/>
  1065. <Column id="dschcnclyn" type="STRING" size="256" sumtext="퇴원취소 여부"/>
  1066. <Column id="dschcnclresn" type="STRING" size="256" sumtext="퇴원취소 사유"/>
  1067. <Column id="dschcncldt" type="STRING" size="256" sumtext="퇴원취소 일시"/>
  1068. <Column id="dschcnclcharid" type="STRING" size="256" sumtext="퇴원취소담당자"/>
  1069. <Column id="dschdclrtyn" type="STRING" size="256" sumtext="퇴원예고 여부"/>
  1070. <Column id="dschdclrdt" type="STRING" size="256" sumtext="퇴원예고 일시"/>
  1071. <Column id="dschdclrtrgstid" type="STRING" size="256" sumtext="퇴원예고 등록자"/>
  1072. <Column id="dschdclrtrgstdt" type="STRING" size="256" sumtext="퇴원예고 등록일시"/>
  1073. <Column id="dschrgstacptdt" type="STRING" size="256" sumtext="퇴원등록 접수일시"/>
  1074. <Column id="dschrgstacptcharid" type="STRING" size="256" sumtext="퇴원등록 접수담당자"/>
  1075. <Column id="dschnotiyn" type="STRING" size="256" sumtext="퇴원통보 여부"/>
  1076. <Column id="dschnotidt" type="STRING" size="256" sumtext="퇴원통보 일시"/>
  1077. <Column id="dschnotirgstid" type="STRING" size="256" sumtext="퇴원통보 등록자"/>
  1078. <Column id="dschnotirgstdt" type="STRING" size="256" sumtext="퇴원통보 등록일시"/>
  1079. <Column id="visitrefyn" type="STRING" size="256" sumtext="방문객용 적용 여부"/>
  1080. <Column id="keepdschcnclresn" type="STRING" size="256" sumtext="가퇴원취소 사유"/>
  1081. <Column id="calclastdd" type="STRING" size="256" sumtext="정산 최종일자"/>
  1082. <Column id="dschjudgprcsstat" type="STRING" size="256" sumtext="퇴원심사진행 상태"/>
  1083. <Column id="lastjudgdt" type="STRING" size="256" sumtext="최종심사 일자"/>
  1084. <Column id="lastmdlclamdd" type="STRING" size="256" sumtext="최종중간청구 일자"/>
  1085. <Column id="lastjudgendid" type="STRING" size="256" sumtext="최종심사 완료자"/>
  1086. <Column id="spcljudgflag" type="STRING" size="256" sumtext="선별심사여부"/>
  1087. <Column id="probjudgflag" type="STRING" size="256" sumtext="재원 심사시 문제환자 체크"/>
  1088. <Column id="mainjudgid" type="STRING" size="256" sumtext="주심사자"/>
  1089. <Column id="medcaredayno" type="STRING" size="256" sumtext="요양일수(보험사용)"/>
  1090. <Column id="dschcntcyn" type="STRING" size="256" sumtext="퇴원시 환자에게 연락여부"/>
  1091. <Column id="dscharngmnmemo" type="STRING" size="256" sumtext="퇴원정리메모(간호)"/>
  1092. <Column id="ownbmaxbadd" type="STRING" size="256" sumtext="본인부담상한 기준일자"/>
  1093. <Column id="nblsyn" type="STRING" size="256" sumtext="노블레스 여부"/>
  1094. <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초등록자 ID"/>
  1095. <Column id="fstrgstrnm" type="STRING" size="256" sumtext="최초등록자 ID"/>
  1096. <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일시"/>
  1097. <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종수정자 ID"/>
  1098. <Column id="lastupdtrnm" type="STRING" size="256" sumtext="최종수정자 ID"/>
  1099. <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종수정일시"/>
  1100. <Column id="recovwardcd" type="STRING" size="256" sumtext="회복병동코드"/>
  1101. <Column id="recovmovedd" type="STRING" size="256" sumtext="회복이동일자"/>
  1102. <Column id="recovinrmdt" type="STRING" size="256" sumtext="회복입실일시"/>
  1103. <Column id="recovoutdt" type="STRING" size="256" sumtext="회복퇴실일시"/>
  1104. <Column id="ordreqformflag" type="STRING" size="256" sumtext="진료의뢰서구분"/>
  1105. <Column id="handicaprbookpossnyn" type="STRING" size="256" sumtext="장애인수첩소지"/>
  1106. <Column id="undersixageyn" type="STRING" size="256" sumtext="6세미만여부"/>
  1107. <Column id="spclcd" type="STRING" size="256" sumtext="특례코드"/>
  1108. <Column id="calcdd" type="STRING" size="256" sumtext="계산입실기준일자"/>
  1109. <Column id="calctm" type="STRING" size="256" sumtext="계산입실기준시간"/>
  1110. <Column id="badcd" type="STRING" size="256" sumtext="병상코드"/>
  1111. <Column id="ermedispclid" type="STRING" size="256" sumtext="응급담당교수ID"/>
  1112. <Column id="emplno" type="STRING" size="256" sumtext="직원사번"/>
  1113. <Column id="suppkindsubyn" type="STRING" size="256" sumtext="보조유형 주과여부"/>
  1114. <Column id="ownbflag" type="STRING" size="256" sumtext="본인부담구분"/>
  1115. <Column id="opertodd" type="STRING" size="256" sumtext="중증수술 보조유형 적용종료예정일"/>
  1116. <Column id="onlnno" type="STRING" size="256" sumtext="통장입금 계좌번호"/>
  1117. <Column id="careoutrmdt" type="STRING" size="256" sumtext="간호퇴실일시"/>
  1118. <Column id="careoutrmdelyresn" type="STRING" size="256" sumtext="간호퇴실지연사유"/>
  1119. <Column id="careoutrmrgstid" type="STRING" size="256" sumtext="간호퇴실등록자ID"/>
  1120. <Column id="etcordflag" type="STRING" size="256" sumtext="(코드군 P0022 참조) J:주사"/>
  1121. <Column id="spclsuppkind" type="STRING" size="256" sumtext="6시간미만환자 산정특례보조유형"/>
  1122. <Column id="orgordtype" type="STRING" size="256" sumtext="최초 ordtype"/>
  1123. <Column id="subdeptcd" type="STRING" size="256" sumtext="세부진료과"/>
  1124. <Column id="cnstcnfm" type="STRING" size="256" sumtext="세부진료과"/>
  1125. <Column id="cnstfromdd" type="STRING" size="256" sumtext="세부진료과"/>
  1126. <Column id="cnsttodd" type="STRING" size="256" sumtext="세부진료과"/>
  1127. <Column id="preroomcd" type="STRING" size="256" sumtext="세부진료과"/>
  1128. <Column id="cnstroomcd" type="STRING" size="256" sumtext="세부진료과"/>
  1129. <Column id="oxyyn" type="STRING" size="256" sumtext="O2여부"/>
  1130. <Column id="suctyn" type="STRING" size="256" sumtext="Suction여부"/>
  1131. <Column id="detladdr" type="STRING" size="256" sumtext="상세주소"/>
  1132. <Column id="hometel" type="STRING" size="256" sumtext="연락처(집)"/>
  1133. <Column id="agmttype" type="STRING" size="256" sumtext="약정서구분"/>
  1134. <Column id="specordtype" type="STRING" size="256" sumtext="KTAS등급"/>
  1135. <Column id="cctvscanyn" type="STRING" size="256" sumtext="영상정보처리기기 수집/이용 동의서 스캔여부"/>
  1136. <Column id="scanyn" type="STRING" size="256" sumtext="개인정보이용동의서 스캔여부"/>
  1137. </ColumnInfo>
  1138. </Dataset>
  1139. <Dataset id="ds_grd_icdrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1140. <ColumnInfo>
  1141. <Column id="pid" type="STRING" size="256" sumtext="환자 등록번호"/>
  1142. <Column id="indd" type="STRING" size="256" sumtext="입원 일자"/>
  1143. <Column id="cretno" type="STRING" size="256" sumtext="환자 일자별 일련번호"/>
  1144. <Column id="fromdd" type="STRING" size="256" sumtext="재원이력 시작일자"/>
  1145. <Column id="seqno" type="STRING" size="256" sumtext="이력 일련번호"/>
  1146. <Column id="instcd" type="STRING" size="256" sumtext="병원기관코드"/>
  1147. <Column id="mskind" type="STRING" size="256" sumtext="주부유형"/>
  1148. <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
  1149. <Column id="histstat" type="STRING" size="256" sumtext="이력 상태"/>
  1150. <Column id="indschacptstat" type="STRING" size="256" sumtext="입퇴원접수상태"/>
  1151. <Column id="ordtype" type="STRING" size="256" sumtext="진료형태"/>
  1152. <Column id="acptflagcd" type="STRING" size="256" sumtext="접수구분 코드"/>
  1153. <Column id="appflagcd" type="STRING" size="256" sumtext="신청구분 코드"/>
  1154. <Column id="centcd" type="STRING" size="256" sumtext="센터코드"/>
  1155. <Column id="dutdeptcd" type="STRING" size="256" sumtext="근무 부서 코드"/>
  1156. <Column id="suporddeptcd" type="STRING" size="256" sumtext="상위 진료과 코드"/>
  1157. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과 코드"/>
  1158. <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과 코드"/>
  1159. <Column id="medispclid" type="STRING" size="256" sumtext="담당교수 ID"/>
  1160. <Column id="medispclnm" type="STRING" size="256" sumtext="담당교수명"/>
  1161. <Column id="atdoctid" type="STRING" size="256" sumtext="주치의 ID"/>
  1162. <Column id="atdoctnm" type="STRING" size="256" sumtext="주치의 ID"/>
  1163. <Column id="specordyn" type="STRING" size="256" sumtext="선택 진료여부"/>
  1164. <Column id="wardcd" type="STRING" size="256" sumtext="병동코드"/>
  1165. <Column id="roomcd" type="STRING" size="256" sumtext="병실코드"/>
  1166. <Column id="bedcd" type="STRING" size="256" sumtext="병상코드"/>
  1167. <Column id="roomgrdecd" type="STRING" size="256" sumtext="병실등급 코드"/>
  1168. <Column id="roomtypecd" type="STRING" size="256" sumtext="병실형태 코드"/>
  1169. <Column id="wardcd2" type="STRING" size="256" sumtext="병동코드2"/>
  1170. <Column id="roomcd2" type="STRING" size="256" sumtext="병실코드2"/>
  1171. <Column id="bedcd2" type="STRING" size="256" sumtext="병상코드2"/>
  1172. <Column id="roomgrdecd2" type="STRING" size="256" sumtext="병실등급 코드2"/>
  1173. <Column id="roomtypecd2" type="STRING" size="256" sumtext="병실형태 코드2"/>
  1174. <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초 등록자 ID"/>
  1175. <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초 등록일시"/>
  1176. <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종 수정자 ID"/>
  1177. <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종 수정일시"/>
  1178. <Column id="lastupdtridnm" type="STRING" size="256" sumtext="최종 수정자명"/>
  1179. <Column id="subdeptcd" type="STRING" size="256" sumtext="세부진료과코드"/>
  1180. </ColumnInfo>
  1181. </Dataset>
  1182. <Dataset id="ds_icdrinfo" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1183. <ColumnInfo>
  1184. <Column id="status" type="STRING" size="256" sumtext="상태"/>
  1185. <Column id="pid" type="STRING" size="256" sumtext="환자 등록번호"/>
  1186. <Column id="indd" type="STRING" size="256" sumtext="입원 일자"/>
  1187. <Column id="cretno" type="STRING" size="256" sumtext="환자 일자별 일련번호"/>
  1188. <Column id="fromdd" type="STRING" size="256" sumtext="재원이력 시작일자"/>
  1189. <Column id="seqno" type="STRING" size="256" sumtext="이력 일련번호"/>
  1190. <Column id="instcd" type="STRING" size="256" sumtext="병원기관코드"/>
  1191. <Column id="mskind" type="STRING" size="256" sumtext="주부유형"/>
  1192. <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
  1193. <Column id="histstat" type="STRING" size="256" sumtext="이력 상태"/>
  1194. <Column id="indschacptstat" type="STRING" size="256" sumtext="입퇴원접수상태"/>
  1195. <Column id="ordtype" type="STRING" size="256" sumtext="접수구분 코드"/>
  1196. <Column id="acptflagcd" type="STRING" size="256" sumtext="접수구분 코드"/>
  1197. <Column id="appflagcd" type="STRING" size="256" sumtext="신청구분 코드"/>
  1198. <Column id="centcd" type="STRING" size="256" sumtext="센터코드"/>
  1199. <Column id="dutdeptcd" type="STRING" size="256" sumtext="근무 부서 코드"/>
  1200. <Column id="suporddeptcd" type="STRING" size="256" sumtext="상위 진료과 코드"/>
  1201. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과 코드"/>
  1202. <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과 코드"/>
  1203. <Column id="medispclid" type="STRING" size="256" sumtext="담당교수 ID"/>
  1204. <Column id="medispclnm" type="STRING" size="256" sumtext="담당교수명"/>
  1205. <Column id="atdoctid" type="STRING" size="256" sumtext="주치의 ID"/>
  1206. <Column id="atdoctnm" type="STRING" size="256" sumtext="주치의 ID"/>
  1207. <Column id="specordyn" type="STRING" size="256" sumtext="선택 진료여부"/>
  1208. <Column id="wardcd" type="STRING" size="256" sumtext="병동코드"/>
  1209. <Column id="roomcd" type="STRING" size="256" sumtext="병실코드"/>
  1210. <Column id="bedcd" type="STRING" size="256" sumtext="병상코드"/>
  1211. <Column id="roomgrdecd" type="STRING" size="256" sumtext="병실등급 코드"/>
  1212. <Column id="roomtypecd" type="STRING" size="256" sumtext="병실형태 코드"/>
  1213. <Column id="wardcd2" type="STRING" size="256" sumtext="병동코드2"/>
  1214. <Column id="roomcd2" type="STRING" size="256" sumtext="병실코드2"/>
  1215. <Column id="bedcd2" type="STRING" size="256" sumtext="병상코드2"/>
  1216. <Column id="roomgrdecd2" type="STRING" size="256" sumtext="병실등급 코드2"/>
  1217. <Column id="roomtypecd2" type="STRING" size="256" sumtext="병실형태 코드2"/>
  1218. <Column id="oxyyn" type="STRING" size="256" sumtext="O2여부"/>
  1219. <Column id="suctyn" type="STRING" size="256" sumtext="suction 여부"/>
  1220. <Column id="prestremcd" type="STRING" size="256" sumtext="참고사항코드"/>
  1221. <Column id="chngprestrem" type="STRING" size="256" sumtext="참고사항"/>
  1222. <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초 등록자 ID"/>
  1223. <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초 등록일시"/>
  1224. <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종 수정자 ID"/>
  1225. <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종 수정일시"/>
  1226. <Column id="subdeptcd" type="STRING" size="256" sumtext="세부진료과코드"/>
  1227. <Column id="cnstcnfm" type="STRING" size="256" sumtext="승인여부"/>
  1228. <Column id="cnstfromdd" type="STRING" size="256" sumtext="격리개시일"/>
  1229. <Column id="cnsttodd" type="STRING" size="256" sumtext="격리종료일"/>
  1230. <Column id="preroomcd" type="STRING" size="256" sumtext="이전병실"/>
  1231. <Column id="cnstroomcd" type="STRING" size="256" sumtext="격리병실"/>
  1232. </ColumnInfo>
  1233. </Dataset>
  1234. <Dataset id="ds_grd_cdcrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1235. <ColumnInfo>
  1236. <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
  1237. <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
  1238. <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
  1239. <Column id="seqno" type="STRING" size="256" sumtext="일련번호"/>
  1240. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  1241. <Column id="mskind" type="STRING" size="256" sumtext="주부유형"/>
  1242. <Column id="histstat" type="STRING" size="256" sumtext="이력상태"/>
  1243. <Column id="acptflagcd" type="STRING" size="256" sumtext="접수상태"/>
  1244. <Column id="appflagcd" type="STRING" size="256" sumtext="신청상태"/>
  1245. <Column id="appdd" type="STRING" size="256" sumtext="신청일자"/>
  1246. <Column id="apptm" type="STRING" size="256" sumtext="신청시간"/>
  1247. <Column id="appid" type="STRING" size="256" sumtext="신청자"/>
  1248. <Column id="pamacptdd" type="STRING" size="256" sumtext="원무접수일자"/>
  1249. <Column id="pamacpttm" type="STRING" size="256" sumtext="원무접수시간"/>
  1250. <Column id="pamacptdt" type="STRING" size="256" sumtext="원무접수일시"/>
  1251. <Column id="pamacptid" type="STRING" size="256" sumtext="원무접수자"/>
  1252. <Column id="pamacptnm" type="STRING" size="256" sumtext="원무접수자명"/>
  1253. <Column id="prestwardcd" type="STRING" size="256" sumtext="현재병동코드"/>
  1254. <Column id="prestroomcd" type="STRING" size="256" sumtext="현재병실코드"/>
  1255. <Column id="prestbedcd" type="STRING" size="256" sumtext="현재병상코드"/>
  1256. <Column id="prestroomgrde" type="STRING" size="256" sumtext="현재병실등급"/>
  1257. <Column id="prestroomtype" type="STRING" size="256" sumtext="현재병실형태"/>
  1258. <Column id="prestcentcd" type="STRING" size="256" sumtext="현재센터코드"/>
  1259. <Column id="prestsuporddeptcd" type="STRING" size="256" sumtext="현재상위부서코드"/>
  1260. <Column id="prestorddeptcd" type="STRING" size="256" sumtext="현재진료과코드"/>
  1261. <Column id="prestmedispclid" type="STRING" size="256" sumtext="현재담당교수"/>
  1262. <Column id="prestatdoctid" type="STRING" size="256" sumtext="현재주치의"/>
  1263. <Column id="presubdeptcd" type="STRING" size="256" sumtext="세부진료과코드"/>
  1264. <Column id="chngwardcd" type="STRING" size="256" sumtext="변경병동코드"/>
  1265. <Column id="chngroomcd" type="STRING" size="256" sumtext="변경병실코드"/>
  1266. <Column id="chngbedcd" type="STRING" size="256" sumtext="변경병상코드"/>
  1267. <Column id="chngroomgrde" type="STRING" size="256" sumtext="변경병실등급"/>
  1268. <Column id="chngroomtype" type="STRING" size="256" sumtext="변경병실형태"/>
  1269. <Column id="oxyyn" type="STRING" size="256" sumtext="O2여부"/>
  1270. <Column id="suctyn" type="STRING" size="256" sumtext="Suction여부"/>
  1271. <Column id="chngcentcd" type="STRING" size="256" sumtext="변경센터코드"/>
  1272. <Column id="chngsuporddeptcd" type="STRING" size="256" sumtext="변경상위진료과코드"/>
  1273. <Column id="chngorddeptcd" type="STRING" size="256" sumtext="변경진료과코드"/>
  1274. <Column id="chngorddeptnm" type="STRING" size="256" sumtext="변경진료과명"/>
  1275. <Column id="chngmedispclid" type="STRING" size="256" sumtext="변경담당교수아이디"/>
  1276. <Column id="chngmedispclnm" type="STRING" size="256" sumtext="변경담당교수명"/>
  1277. <Column id="chngatdoctid" type="STRING" size="256" sumtext="변경주치의아이디"/>
  1278. <Column id="chngatdoctnm" type="STRING" size="256" sumtext="변경주치의명"/>
  1279. <Column id="specordyn" type="STRING" size="256" sumtext="변경선택진료여부"/>
  1280. <Column id="chngsubdeptcd" type="STRING" size="256" sumtext="세부진료과코드"/>
  1281. <Column id="enddd" type="STRING" size="256" sumtext="완료일자"/>
  1282. <Column id="endtm" type="STRING" size="256" sumtext="완료시간"/>
  1283. <Column id="endid" type="STRING" size="256" sumtext="완료자"/>
  1284. <Column id="prestremcd" type="STRING" size="256" sumtext="참고사항코드"/>
  1285. <Column id="chngprestrem" type="STRING" size="256" sumtext="참고사항"/>
  1286. <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초접수자아이디"/>
  1287. <Column id="fstrgstridnm" type="STRING" size="256" sumtext="최초접수자아이디"/>
  1288. <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초접수일시"/>
  1289. <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종수정자아이디"/>
  1290. <Column id="lastupdtridnm" type="STRING" size="256" sumtext="최종수정자명"/>
  1291. <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종수정일시"/>
  1292. </ColumnInfo>
  1293. </Dataset>
  1294. <Dataset id="ds_srch_cmb" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1295. <ColumnInfo>
  1296. <Column id="cd" type="STRING" size="256"/>
  1297. <Column id="nm" type="STRING" size="256"/>
  1298. </ColumnInfo>
  1299. </Dataset>
  1300. <Dataset id="ds_hdn_printers" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1301. <ColumnInfo>
  1302. <Column id="deci_printer" type="STRING" size="256" sumtext="입원약정서"/>
  1303. <Column id="card_printer" type="STRING" size="256" sumtext="입원등록카드"/>
  1304. <Column id="value" type="STRING" size="256" sumtext="프린트트레이"/>
  1305. <Column id="printflag" type="STRING" size="256" sumtext="입퇴원결정서"/>
  1306. </ColumnInfo>
  1307. <Rows>
  1308. <Row/>
  1309. </Rows>
  1310. </Dataset>
  1311. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1312. <ColumnInfo>
  1313. <Column id="sess_posinstcd" type="STRING" size="256" sumtext="공통코드_기관코드"/>
  1314. <Column id="ioflag" type="STRING" size="256" sumtext="공통코드_구분"/>
  1315. <Column id="dridsorttype" type="STRING" size="256" sumtext="공통코드_의사구분"/>
  1316. <Column id="ipatflag" type="STRING" size="256" sumtext="재원상태"/>
  1317. <Column id="srchcond1" type="STRING" size="256" sumtext="검색조건1"/>
  1318. <Column id="srchcond2" type="STRING" size="256" sumtext="검색조건2"/>
  1319. <Column id="mskind" type="STRING" size="256" sumtext="주부유형"/>
  1320. <Column id="mycheck" type="STRING" size="256" sumtext="내환자여부(병동간호)"/>
  1321. <Column id="appddfrom" type="STRING" size="256" sumtext="원무승인일자"/>
  1322. <Column id="appddto" type="STRING" size="256" sumtext="원무승인일자"/>
  1323. <!-- 전과전실 승인/신청정보 -->
  1324. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  1325. <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
  1326. <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
  1327. <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
  1328. <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
  1329. <Column id="mskind" type="STRING" size="256" sumtext="주부유형"/>
  1330. <Column id="insukind" type="STRING" size="256" sumtext="보험유형"/>
  1331. <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
  1332. <Column id="flag" type="STRING" size="256" sumtext="구분"/>
  1333. <Column id="seqno" type="STRING" size="256" sumtext="연번"/>
  1334. <!-- 입원결정서 조회용 -->
  1335. <Column id="inrsrvacptdd" type="STRING" size="256" sumtext="입원결정일자"/>
  1336. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
  1337. <Column id="ordtype" type="STRING" size="256" sumtext="진료형태"/>
  1338. <Column id="aprv_flag" type="STRING" size="256" sumtext="진료형태"/>
  1339. <!-- 빈병상 조회용 -->
  1340. <Column id="wardcd" type="STRING" size="256" sumtext="병동"/>
  1341. <Column id="roomcd" type="STRING" size="256" sumtext="병실"/>
  1342. <Column id="bedcd" type="STRING" size="256" sumtext="병상"/>
  1343. <!-- 입원약정서 조회용 -->
  1344. <Column id="medispclid" type="STRING" size="256" sumtext="담당교수"/>
  1345. <Column id="deciflag" type="STRING" size="256" sumtext="출력화면구분"/>
  1346. <!-- 승인취소용 -->
  1347. <Column id="appflag" type="STRING" size="256" sumtext="신청구분"/>
  1348. <Column id="acptflag" type="STRING" size="256" sumtext="상태"/>
  1349. </ColumnInfo>
  1350. <Rows>
  1351. <Row/>
  1352. </Rows>
  1353. </Dataset>
  1354. <Dataset id="ds_acptflagcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1355. <ColumnInfo>
  1356. <Column id="cd" type="STRING" size="256"/>
  1357. <Column id="nm" type="STRING" size="256"/>
  1358. </ColumnInfo>
  1359. <Rows>
  1360. <Row>
  1361. <Col id="cd">1</Col>
  1362. <Col id="nm">신청</Col>
  1363. </Row>
  1364. <Row>
  1365. <Col id="cd">2</Col>
  1366. <Col id="nm">접수</Col>
  1367. </Row>
  1368. <Row>
  1369. <Col id="cd">3</Col>
  1370. <Col id="nm">확인</Col>
  1371. </Row>
  1372. </Rows>
  1373. </Dataset>
  1374. <Dataset id="ds_appflagcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1375. <ColumnInfo>
  1376. <Column id="cd" type="STRING" size="256"/>
  1377. <Column id="nm" type="STRING" size="256"/>
  1378. </ColumnInfo>
  1379. <Rows>
  1380. <Row>
  1381. <Col id="cd">1</Col>
  1382. <Col id="nm">전실</Col>
  1383. </Row>
  1384. <Row>
  1385. <Col id="cd">2</Col>
  1386. <Col id="nm">전과</Col>
  1387. </Row>
  1388. <Row>
  1389. <Col id="cd">3</Col>
  1390. <Col id="nm">전과+전실</Col>
  1391. </Row>
  1392. </Rows>
  1393. </Dataset>
  1394. <Dataset id="ds_send_inpt" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1395. <Dataset id="ds_send_inpt_org" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1396. <ColumnInfo>
  1397. <Column id="status" type="STRING" size="256" sumtext="상태Flag"/>
  1398. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  1399. <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
  1400. <Column id="cretno" type="INT" size="256" sumtext="환자일련별번호번호"/>
  1401. <Column id="seqno" type="INT" size="256" sumtext="이력일련번호"/>
  1402. <Column id="instcd" type="STRING" size="256" sumtext="병원기관코드"/>
  1403. <Column id="mskind" type="STRING" size="256" sumtext="주부유형"/>
  1404. <Column id="histstat" type="STRING" size="256" sumtext="이력상태"/>
  1405. <Column id="intm" type="STRING" size="256" sumtext="입원시간"/>
  1406. <Column id="inpath" type="STRING" size="256" sumtext="입원경로"/>
  1407. <Column id="arvpath" type="STRING" size="256" sumtext="도착경로"/>
  1408. <Column id="ordrslt" type="STRING" size="256" sumtext="진료결과"/>
  1409. <Column id="hospbrthyn" type="STRING" size="256" sumtext="본원출생여부"/>
  1410. <Column id="rsrvinyn" type="STRING" size="256" sumtext="입원예약여부"/>
  1411. <Column id="dschdd" type="STRING" size="256" sumtext="퇴원일자"/>
  1412. <Column id="dschtm" type="STRING" size="256" sumtext="퇴원시간"/>
  1413. <Column id="dschtype" type="STRING" size="256" sumtext="퇴원형태"/>
  1414. <Column id="dethdt" type="STRING" size="256" sumtext="사망일시"/>
  1415. <Column id="indschacptstat" type="STRING" size="256" sumtext="입퇴원접수상태"/>
  1416. <Column id="medcostestmflag" type="STRING" size="256" sumtext="진찰료산정"/>
  1417. <Column id="fsexamflag" type="STRING" size="256" sumtext="초재진구분"/>
  1418. <Column id="fsexammanlyn" type="STRING" size="256" sumtext="초재진수동부여여부"/>
  1419. <Column id="medamtpostyn" type="STRING" size="256" sumtext="진찰료후불여부"/>
  1420. <Column id="medamtfreeresn" type="STRING" size="256" sumtext="진찰료면제사유"/>
  1421. <Column id="holiflag" type="STRING" size="256" sumtext="공휴일구분"/>
  1422. <Column id="brateflag" type="STRING" size="256" sumtext="외래부담률"/>
  1423. <Column id="ordtype" type="STRING" size="256" sumtext="진료형태"/>
  1424. <Column id="ermngtamtcalcyn" type="STRING" size="256" sumtext="응급의학관리료산정여부"/>
  1425. <Column id="erbrthflag" type="STRING" size="256" sumtext="응급분만구분"/>
  1426. <Column id="erchospath" type="STRING" size="256" sumtext="응급내원경로"/>
  1427. <Column id="erorddeptcd" type="STRING" size="256" sumtext="응급진료과코드"/>
  1428. <Column id="insukind" type="STRING" size="256" sumtext="보험유형"/>
  1429. <Column id="suppkind" type="STRING" size="256" sumtext="보조유형"/>
  1430. <Column id="centcd" type="STRING" size="256" sumtext="센터코드"/>
  1431. <Column id="dutdeptcd" type="STRING" size="256" sumtext="근무부서코드"/>
  1432. <Column id="suporddeptcd" type="STRING" size="256" sumtext="상위진료과코드"/>
  1433. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과코드"/>
  1434. <Column id="medispclid" type="STRING" size="256" sumtext="담당교수"/>
  1435. <Column id="atdoctid" type="STRING" size="256" sumtext="주치의"/>
  1436. <Column id="specordyn" type="STRING" size="256" sumtext="선택진료여부"/>
  1437. <Column id="wardcd" type="STRING" size="256" sumtext="병동코드"/>
  1438. <Column id="roomcd" type="STRING" size="256" sumtext="병실코드"/>
  1439. <Column id="bedcd" type="STRING" size="256" sumtext="병상코드"/>
  1440. <Column id="roomgrdecd" type="STRING" size="256" sumtext="병실등급코드"/>
  1441. <Column id="roomtypecd" type="STRING" size="256" sumtext="병실형태코드"/>
  1442. <Column id="rqsthospcd" type="STRING" size="256" sumtext="협력의뢰병원코드"/>
  1443. <Column id="rqstdrid" type="STRING" size="256" sumtext="협력의뢰의사ID"/>
  1444. <Column id="hospiceyn" type="STRING" size="256" sumtext="호스피스여부"/>
  1445. <Column id="drgyn" type="STRING" size="256" sumtext="DRG여부"/>
  1446. <Column id="drgno" type="STRING" size="256" sumtext="DRG번호"/>
  1447. <Column id="bmtyn" type="STRING" size="256" sumtext="BMT여부"/>
  1448. <Column id="clincstdyyn" type="STRING" size="256" sumtext="임상연구여부"/>
  1449. <Column id="clincstdycd" type="STRING" size="256" sumtext="임상연구코드"/>
  1450. <Column id="batlockid" type="STRING" size="256" sumtext="Batch작업시처리ID"/>
  1451. <Column id="batlockyn" type="STRING" size="256" sumtext="Batch작업여부"/>
  1452. <Column id="ordcostretcdd" type="STRING" size="256" sumtext="진료비소급일자"/>
  1453. <Column id="ordcostcalcdd" type="STRING" size="256" sumtext="진료비계산일자"/>
  1454. <Column id="inacptdt" type="STRING" size="256" sumtext="입원접수일시"/>
  1455. <Column id="inacptchrgid" type="STRING" size="256" sumtext="입원접수담당자"/>
  1456. <Column id="eroutdt" type="STRING" size="256" sumtext="응급실퇴실일시"/>
  1457. <Column id="careinrmdd" type="STRING" size="256" sumtext="간호입실일자"/>
  1458. <Column id="careinrmtm" type="STRING" size="256" sumtext="간호입실시간"/>
  1459. <Column id="careinrmrgstrid" type="STRING" size="256" sumtext="간호입실등록자ID"/>
  1460. <Column id="dietprcpcopyflag" type="STRING" size="256" sumtext="식이처방복사구분"/>
  1461. <Column id="incncldt" type="STRING" size="256" sumtext="입원취소일시"/>
  1462. <Column id="incnclchrgid" type="STRING" size="256" sumtext="입원취소담당자"/>
  1463. <Column id="inoutcvrtyn" type="STRING" size="256" sumtext="입원후외래전환여부"/>
  1464. <Column id="dschcnclyn" type="STRING" size="256" sumtext="퇴원취소여부"/>
  1465. <Column id="dschcnclresn" type="STRING" size="256" sumtext="퇴원취소사유"/>
  1466. <Column id="dschcncldt" type="STRING" size="256" sumtext="퇴원취소일시"/>
  1467. <Column id="dschcnclcharid" type="STRING" size="256" sumtext="퇴원취소담당자ID"/>
  1468. <Column id="dschdclrtyn" type="STRING" size="256" sumtext="퇴원예고여부"/>
  1469. <Column id="dschdclrdt" type="STRING" size="256" sumtext="퇴원예고일시"/>
  1470. <Column id="dschdclrtrgstid" type="STRING" size="256" sumtext="퇴원예고등록자"/>
  1471. <Column id="dschdclrtrgstdt" type="STRING" size="256" sumtext="퇴원예고등록일시"/>
  1472. <Column id="dschrgstacptdt" type="STRING" size="256" sumtext="퇴원등록접수일시"/>
  1473. <Column id="dschrgstacptcharid" type="STRING" size="256" sumtext="퇴원등록접수담당자"/>
  1474. <Column id="dschnotiyn" type="STRING" size="256" sumtext="퇴원통보여부"/>
  1475. <Column id="dschnotidt" type="STRING" size="256" sumtext="퇴원통보일시"/>
  1476. <Column id="dschnotirgstid" type="STRING" size="256" sumtext="퇴원통보등록자"/>
  1477. <Column id="dschnotirgstdt" type="STRING" size="256" sumtext="퇴원통보등록일시"/>
  1478. <Column id="visitrefyn" type="STRING" size="256" sumtext="방문객용재원환자조회기능적용여부"/>
  1479. <Column id="keepdschcnclresn" type="STRING" size="256" sumtext="가퇴원취소사유"/>
  1480. <Column id="calclastdd" type="STRING" size="256" sumtext="정산최종일자"/>
  1481. <Column id="dschjudgprcsstat" type="STRING" size="256" sumtext="퇴원심사진행상태"/>
  1482. <Column id="lastjudgdt" type="STRING" size="256" sumtext="최종심사일자"/>
  1483. <Column id="lastmdlclamdd" type="STRING" size="256" sumtext="최종중간청구일자"/>
  1484. <Column id="lastjudgendid" type="STRING" size="256" sumtext="최종심사완료자"/>
  1485. <Column id="spcljudgflag" type="STRING" size="256" sumtext="선별심사여부"/>
  1486. <Column id="probjudgflag" type="STRING" size="256" sumtext="재원심사시 문제환자체크"/>
  1487. <Column id="mainjudgid" type="STRING" size="256" sumtext="주심사자재원등록시 보험에서 할당"/>
  1488. <Column id="dschcntcyn" type="STRING" size="256" sumtext="퇴원시 환자에게 연락여부"/>
  1489. <Column id="ownbmaxbadd" type="STRING" size="256" sumtext="본인부담상한기준일자"/>
  1490. <Column id="nblsyn" type="STRING" size="256" sumtext="노블레스여부"/>
  1491. <Column id="hosoutexptresncd" type="STRING" size="256" sumtext="원외예외코드"/>
  1492. <Column id="prcplockrid" type="STRING" size="256" sumtext="처방작업자ID"/>
  1493. <Column id="recovwardcd" type="STRING" size="256" sumtext="회복병동코드 "/>
  1494. <Column id="recovmovedd" type="STRING" size="256" sumtext="회복이동일자"/>
  1495. <Column id="recovinrmdt" type="STRING" size="256" sumtext="회복입실일시 "/>
  1496. <Column id="recovoutdt" type="STRING" size="256" sumtext="회복퇴실일시 "/>
  1497. <Column id="ordreqformflag" type="STRING" size="256" sumtext="진료의뢰서구분"/>
  1498. <Column id="handicaprbookpossnyn" type="STRING" size="256" sumtext="장애인수첩소지 "/>
  1499. <Column id="undersixageyn" type="STRING" size="256" sumtext="6세미만여부 "/>
  1500. <Column id="spclcd" type="STRING" size="256" sumtext="특례코드 "/>
  1501. <Column id="ermedispclid" type="STRING" size="256" sumtext="응급진료과담당교수"/>
  1502. <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초등록자ID"/>
  1503. <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일시"/>
  1504. <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종수정자ID"/>
  1505. <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종수정일시"/>
  1506. <Column id="suppkindsubyn" type="STRING" size="256" sumtext="보조유형의 주과 여부"/>
  1507. <Column id="ownbflag" type="STRING" size="256" sumtext="본인부담여부"/>
  1508. <Column id="opertodd" type="STRING" size="256" sumtext="중증수술일자"/>
  1509. <Column id="onlnno" type="STRING" size="256" sumtext="통장계좌"/>
  1510. <Column id="careoutrmdt" type="STRING" size="256" sumtext="간호퇴실일시"/>
  1511. <Column id="careoutrmdelyresn" type="STRING" size="256" sumtext="간호퇴실지연사유"/>
  1512. <Column id="careoutrmrgstid" type="STRING" size="256" sumtext="간호퇴실등록자ID"/>
  1513. <Column id="etcordflag" type="STRING" size="256" sumtext="기타진료구분"/>
  1514. <Column id="spclsuppkind" type="STRING" size="256" sumtext="산정특례보조유형"/>
  1515. <Column id="orgordtype" type="STRING" size="256" sumtext="최초ordtype"/>
  1516. <Column id="calcdd" type="STRING" size="256" sumtext="계산입실기준일자 "/>
  1517. <Column id="calctm" type="STRING" size="256" sumtext="계산입실기준시간 "/>
  1518. <Column id="badcd" type="STRING" size="256" sumtext="병상코드 "/>
  1519. <Column id="ermedispclid" type="STRING" size="256" sumtext="응급담당교수ID"/>
  1520. <Column id="dscharngmnmemo" type="STRING" size="256" sumtext="메모 "/>
  1521. <Column id="medcaredayno" type="INT" size="256" sumtext="번호 "/>
  1522. <Column id="subdeptcd" type="STRING" size="256" sumtext="세부진료과 "/>
  1523. <Column id="specordtype" type="STRING" size="256" sumtext="KTAS등급"/>
  1524. </ColumnInfo>
  1525. <Rows>
  1526. <Row/>
  1527. </Rows>
  1528. </Dataset>
  1529. <Dataset id="ds_send_icdr" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1530. <ColumnInfo>
  1531. <Column id="status" type="STRING" size="256" sumtext="상태"/>
  1532. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  1533. <Column id="indd" type="STRING" size="256" sumtext="입원 일자"/>
  1534. <Column id="cretno" type="INT" size="256" sumtext="환자 일자별 일련번호"/>
  1535. <Column id="fromdd" type="STRING" size="256" sumtext="시작일자"/>
  1536. <Column id="seqno" type="INT" size="256" sumtext="이력 일련번호"/>
  1537. <Column id="instcd" type="STRING" size="256" sumtext="병원기관코드"/>
  1538. <Column id="mskind" type="STRING" size="256" sumtext="주부유형"/>
  1539. <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
  1540. <Column id="histstat" type="STRING" size="256" sumtext="이력 상태"/>
  1541. <Column id="indschacptstat" type="STRING" size="256" sumtext="입퇴원접수상태"/>
  1542. <Column id="ordtype" type="STRING" size="256" sumtext="진료형태"/>
  1543. <Column id="acptflagcd" type="STRING" size="256" sumtext="접수구분 코드"/>
  1544. <Column id="appflagcd" type="STRING" size="256" sumtext="신청구분 코드"/>
  1545. <Column id="centcd" type="STRING" size="256" sumtext="센터코드"/>
  1546. <Column id="dutdeptcd" type="STRING" size="256" sumtext="근무 부서 코드"/>
  1547. <Column id="suporddeptcd" type="STRING" size="256" sumtext="상위 진료과 코드"/>
  1548. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과 코드"/>
  1549. <Column id="medispclid" type="STRING" size="256" sumtext="담당교수 ID"/>
  1550. <Column id="atdoctid" type="STRING" size="256" sumtext="주치의 ID"/>
  1551. <Column id="specordyn" type="STRING" size="256" sumtext="선택 진료여부"/>
  1552. <Column id="wardcd" type="STRING" size="256" sumtext="병동코드"/>
  1553. <Column id="roomcd" type="STRING" size="256" sumtext="병실코드"/>
  1554. <Column id="bedcd" type="STRING" size="256" sumtext="병상코드"/>
  1555. <Column id="roomgrdecd" type="STRING" size="256" sumtext="병실등급 코드"/>
  1556. <Column id="roomtypecd" type="STRING" size="256" sumtext="병실형태 코드"/>
  1557. <Column id="wardcd2" type="STRING" size="256" sumtext="병동코드"/>
  1558. <Column id="roomcd2" type="STRING" size="256" sumtext="병실코드"/>
  1559. <Column id="bedcd2" type="STRING" size="256" sumtext="병상코드"/>
  1560. <Column id="roomgrdecd2" type="STRING" size="256" sumtext="병실등급 코드"/>
  1561. <Column id="roomtypecd2" type="STRING" size="256" sumtext="병실형태 코드"/>
  1562. <Column id="oxyyn" type="STRING" size="256" sumtext="산소여부"/>
  1563. <Column id="suctyn" type="STRING" size="256" sumtext="suct여부"/>
  1564. <Column id="prestremcd" type="STRING" size="256" sumtext="참고사항1"/>
  1565. <Column id="chngprestrem" type="STRING" size="256" sumtext="참고사항2"/>
  1566. <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초 등록자 ID"/>
  1567. <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초 등록일시"/>
  1568. <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종 수정자 ID"/>
  1569. <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종 수정일시"/>
  1570. <Column id="subdeptcd" type="STRING" size="256" sumtext="세부진료과코드"/>
  1571. </ColumnInfo>
  1572. <Rows>
  1573. <Row/>
  1574. </Rows>
  1575. </Dataset>
  1576. <Dataset id="ds_send_icdr_org" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1577. <ColumnInfo>
  1578. <Column id="status" type="STRING" size="256" sumtext="상태"/>
  1579. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  1580. <Column id="indd" type="STRING" size="256" sumtext="입원 일자"/>
  1581. <Column id="cretno" type="INT" size="256" sumtext="환자 일자별 일련번호"/>
  1582. <Column id="fromdd" type="STRING" size="256" sumtext="시작일자"/>
  1583. <Column id="seqno" type="INT" size="256" sumtext="이력 일련번호"/>
  1584. <Column id="instcd" type="STRING" size="256" sumtext="병원기관코드"/>
  1585. <Column id="mskind" type="STRING" size="256" sumtext="주부유형"/>
  1586. <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
  1587. <Column id="histstat" type="STRING" size="256" sumtext="이력 상태"/>
  1588. <Column id="indschacptstat" type="STRING" size="256" sumtext="입퇴원접수상태"/>
  1589. <Column id="ordtype" type="STRING" size="256" sumtext="진료형태"/>
  1590. <Column id="acptflagcd" type="STRING" size="256" sumtext="접수구분 코드"/>
  1591. <Column id="appflagcd" type="STRING" size="256" sumtext="신청구분 코드"/>
  1592. <Column id="centcd" type="STRING" size="256" sumtext="센터코드"/>
  1593. <Column id="dutdeptcd" type="STRING" size="256" sumtext="근무 부서 코드"/>
  1594. <Column id="suporddeptcd" type="STRING" size="256" sumtext="상위 진료과 코드"/>
  1595. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과 코드"/>
  1596. <Column id="medispclid" type="STRING" size="256" sumtext="담당교수명"/>
  1597. <Column id="atdoctid" type="STRING" size="256" sumtext="주치의 ID"/>
  1598. <Column id="specordyn" type="STRING" size="256" sumtext="선택 진료여부"/>
  1599. <Column id="wardcd" type="STRING" size="256" sumtext="병동코드"/>
  1600. <Column id="roomcd" type="STRING" size="256" sumtext="병실코드"/>
  1601. <Column id="bedcd" type="STRING" size="256" sumtext="병상코드"/>
  1602. <Column id="roomgrdecd" type="STRING" size="256" sumtext="병실등급 코드"/>
  1603. <Column id="roomtypecd" type="STRING" size="256" sumtext="병실형태 코드"/>
  1604. <Column id="wardcd2" type="STRING" size="256" sumtext="병동코드"/>
  1605. <Column id="roomcd2" type="STRING" size="256" sumtext="병실코드"/>
  1606. <Column id="bedcd2" type="STRING" size="256" sumtext="병상코드"/>
  1607. <Column id="roomgrdecd2" type="STRING" size="256" sumtext="병실등급 코드"/>
  1608. <Column id="roomtypecd2" type="STRING" size="256" sumtext="병실형태 코드"/>
  1609. <Column id="oxyyn" type="STRING" size="256" sumtext="산소여부"/>
  1610. <Column id="suctyn" type="STRING" size="256" sumtext="suct여부"/>
  1611. <Column id="prestremcd" type="STRING" size="256" sumtext="참고사항1"/>
  1612. <Column id="chngprestrem" type="STRING" size="256" sumtext="참고사항2"/>
  1613. <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초 등록자 ID"/>
  1614. <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초 등록일시"/>
  1615. <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종 수정자 ID"/>
  1616. <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종 수정일시"/>
  1617. <Column id="subdeptcd" type="STRING" size="256" sumtext="세부진료과코드"/>
  1618. </ColumnInfo>
  1619. <Rows>
  1620. <Row/>
  1621. </Rows>
  1622. </Dataset>
  1623. <Dataset id="ds_send_adrv" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1624. <ColumnInfo>
  1625. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  1626. <Column id="inrsrvacptdd" type="STRING" size="256" sumtext="예약접수일자"/>
  1627. <Column id="inrsrvacptseqno" type="INT" size="256" sumtext="예약접수순서"/>
  1628. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
  1629. <Column id="inpt_indd" type="STRING" size="256" sumtext="입원일자"/>
  1630. <Column id="inpt_cretno" type="INT" size="256" sumtext="생성번호"/>
  1631. <Column id="inpt_drgyn" type="STRING" size="256" sumtext="DRG여부"/>
  1632. <Column id="inpt_drgno" type="STRING" size="256" sumtext="DRG번호"/>
  1633. </ColumnInfo>
  1634. </Dataset>
  1635. <FilteredDataset id="fds_orddrid" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" binddataset="@ds_init_orddrid"/>
  1636. <Dataset id="ds_inhpdecilist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1637. <ColumnInfo>
  1638. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  1639. <Column id="status" type="STRING" size="256" sumtext="상태값"/>
  1640. <Column id="inrsrvacptdd" type="STRING" size="256" sumtext="접수일자"/>
  1641. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
  1642. <Column id="inrsrvacptseqno" type="INT" size="256" sumtext="입원예약접수번호"/>
  1643. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  1644. <Column id="inrsrvacpttm" type="STRING" size="256" sumtext="접수시간"/>
  1645. <Column id="inrsrvstat" type="STRING" size="256" sumtext="입원예약Flag"/>
  1646. <Column id="insukind" type="STRING" size="256" sumtext="환자유형"/>
  1647. <Column id="indirecdrid" type="STRING" size="256" sumtext="지시의사"/>
  1648. <Column id="indirecdd" type="STRING" size="256" sumtext="지시일자"/>
  1649. <Column id="orddrid" type="STRING" size="256" sumtext="담당교수"/>
  1650. <Column id="patinhopedd" type="STRING" size="256" sumtext="환자희망일자"/>
  1651. <Column id="inhopedd" type="STRING" size="256" sumtext="희망입원일"/>
  1652. <Column id="scheopdd" type="STRING" size="256" sumtext="입원예약병실형태"/>
  1653. <Column id="inhopeward" type="STRING" size="256" sumtext="희망병동"/>
  1654. <Column id="inhoperoomgrdefrom" type="STRING" size="256" sumtext="희망병실등급FROM"/>
  1655. <Column id="inhoperoomgrdeto" type="STRING" size="256" sumtext="희망병실등급TO"/>
  1656. <Column id="inrsrvrem" type="STRING" size="256" sumtext="입원예약참고사항"/>
  1657. <Column id="inrsrvgrad" type="STRING" size="256" sumtext="우선순위"/>
  1658. <Column id="drgyn" type="STRING" size="256" sumtext="DRG여부"/>
  1659. <Column id="drgno" type="STRING" size="256" sumtext="DRG번호"/>
  1660. <Column id="erreglyn" type="STRING" size="256" sumtext="응급정규여부"/>
  1661. <Column id="isolroomyn" type="STRING" size="256" sumtext="격리실사용여부"/>
  1662. <Column id="oxyyn" type="STRING" size="256" sumtext="O2여부"/>
  1663. <Column id="suctyn" type="STRING" size="256" sumtext="suction 여부"/>
  1664. <Column id="specroomyn" type="STRING" size="256" sumtext="특실사용여부"/>
  1665. <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종수정일시"/>
  1666. <Column id="inflag" type="STRING" size="256" sumtext="입원상태"/>
  1667. <Column id="hngnm" type="STRING" size="256" sumtext="환자성명"/>
  1668. <Column id="chngwardcd" type="STRING" size="256" sumtext="승인병동"/>
  1669. <Column id="chngroomcd" type="STRING" size="256" sumtext="승인병실"/>
  1670. <Column id="chngbedcd" type="STRING" size="256" sumtext="승인병상"/>
  1671. <Column id="chngroomgrde" type="STRING" size="256" sumtext="승인병상"/>
  1672. <Column id="chngroomtype" type="STRING" size="256" sumtext="승인병상"/>
  1673. <Column id="assgward" type="STRING" size="256" sumtext="승인병동"/>
  1674. <Column id="assgroom" type="STRING" size="256" sumtext="승인병실"/>
  1675. <Column id="assgbed" type="STRING" size="256" sumtext="승인병상"/>
  1676. <Column id="assgroomgrde" type="STRING" size="256" sumtext="승인병상"/>
  1677. <Column id="assgroomtype" type="STRING" size="256" sumtext="승인병상"/>
  1678. <Column id="drrem" type="STRING" size="256" sumtext="진료참고사항"/>
  1679. <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
  1680. <Column id="intm" type="STRING" size="256" sumtext="입원시간"/>
  1681. <Column id="ampmflag" type="STRING" size="256" sumtext="DCC오전오후구분"/>
  1682. <Column id="rsrvprcsstat" type="STRING" size="256" sumtext="입원예약진행상태"/>
  1683. <Column id="specordtype" type="STRING" size="256" sumtext="선택진료형태"/>
  1684. <Column id="subdeptcd" type="STRING" size="256" sumtext="세부진료과코드"/>
  1685. </ColumnInfo>
  1686. </Dataset>
  1687. <FilteredDataset id="fds_orddeptcd" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1688. <FilteredDataset id="fds_roomgrdecd" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1689. <FilteredDataset id="fds_roomtypecd" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1690. <Dataset id="ds_rsltroom" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1691. <ColumnInfo>
  1692. <Column id="bedstat" type="STRING" size="256" sumtext="병상체크"/>
  1693. <Column id="bedstatmsg" type="STRING" size="256" sumtext="병상체크"/>
  1694. </ColumnInfo>
  1695. </Dataset>
  1696. <Dataset id="ds_saveresult" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1697. <ColumnInfo>
  1698. <Column id="inpt_count" type="INT" size="256" sumtext="건수"/>
  1699. <Column id="icdr_count" type="INT" size="256" sumtext="건수"/>
  1700. <Column id="adrv_count" type="INT" size="256" sumtext="건수"/>
  1701. </ColumnInfo>
  1702. </Dataset>
  1703. <Dataset id="ds_autoprintinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1704. <ColumnInfo>
  1705. <Column id="ptbs_hngnm" type="STRING" size="256"/>
  1706. <Column id="ptbs_pid" type="STRING" size="256"/>
  1707. </ColumnInfo>
  1708. <Rows>
  1709. <Row/>
  1710. </Rows>
  1711. </Dataset>
  1712. <Dataset id="ds_deciprintinfo" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1713. <ColumnInfo>
  1714. <Column id="indd" type="STRING" size="256" sumtext="입원일자년"/>
  1715. <Column id="inpath" type="STRING" size="256" sumtext="입원경로"/>
  1716. <Column id="roomcd" type="STRING" size="256" sumtext="병실코드"/>
  1717. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
  1718. <Column id="orddrid" type="STRING" size="256" sumtext="담당교수"/>
  1719. <Column id="specordyn" type="STRING" size="256" sumtext="선택진료여부"/>
  1720. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  1721. <Column id="hngnm" type="STRING" size="256" sumtext="한글성명"/>
  1722. <Column id="rrgstno" type="STRING" size="256" sumtext="주민번호"/>
  1723. <Column id="sex" type="STRING" size="256" sumtext="성별1"/>
  1724. <Column id="religncd" type="STRING" size="256" sumtext="종교"/>
  1725. <Column id="address" type="STRING" size="256" sumtext="주소"/>
  1726. <Column id="hometel" type="STRING" size="256" sumtext="연락처"/>
  1727. <Column id="mpphontel" type="STRING" size="256" sumtext="핸드폰"/>
  1728. <Column id="insukind" type="STRING" size="256" sumtext="영문약어"/>
  1729. <Column id="insucd" type="STRING" size="256" sumtext="선택여부"/>
  1730. <Column id="insuno" type="STRING" size="256" sumtext="일련번호"/>
  1731. <Column id="insdnm" type="STRING" size="256" sumtext="바코드"/>
  1732. <Column id="diagcd" type="STRING" size="256" sumtext="상병코드"/>
  1733. <Column id="termhngnm" type="STRING" size="256" sumtext="상병명"/>
  1734. <Column id="inschedd" type="STRING" size="256" sumtext="입원예정일"/>
  1735. <Column id="opschedd" type="STRING" size="256" sumtext="수술예정일"/>
  1736. <Column id="indirecdrnm" type="STRING" size="256" sumtext="의뢰자"/>
  1737. <Column id="inrsrvacptdt" type="STRING" size="256" sumtext="의뢰일시"/>
  1738. <Column id="handicapryn1" type="STRING" size="256" sumtext="장애인유무1"/>
  1739. <Column id="handicapryn2" type="STRING" size="256" sumtext="장애인유무2"/>
  1740. <Column id="inrsrvrem" type="STRING" size="256" sumtext="원무참고사항"/>
  1741. <Column id="cnstyn" type="STRING" size="256" sumtext="의뢰서제출여부"/>
  1742. <Column id="rareobstflag" type="STRING" size="256" sumtext="희귀난치"/>
  1743. <Column id="disregprson3" type="STRING" size="256" sumtext="차상위"/>
  1744. <Column id="ocrtag" type="STRING" size="256" sumtext="OCRTag"/>
  1745. <Column id="insukindcd" type="STRING" size="256" sumtext="보험유형코드"/>
  1746. <Column id="bedcnt" type="STRING" size="256" sumtext="병상수"/>
  1747. <Column id="wardnm" type="STRING" size="256" sumtext="병동명"/>
  1748. <Column id="rrgstno1" type="STRING" size="256" sumtext="주민번호앞자리"/>
  1749. <Column id="rrgstno2" type="STRING" size="256" sumtext="주민번호뒷자리"/>
  1750. <Column id="grnternm" type="STRING" size="256" sumtext="보증인명"/>
  1751. <Column id="grntertel" type="STRING" size="256" sumtext="보증인전화번호"/>
  1752. <Column id="realcd" type="STRING" size="256" sumtext="관계"/>
  1753. <Column id="addr" type="STRING" size="256" sumtext="주소"/>
  1754. <Column id="grnterrrgstno1" type="STRING" size="256" sumtext="보증인주민번호앞"/>
  1755. <Column id="grnterrrgstno2" type="STRING" size="256" sumtext="보증인주민번호뒤"/>
  1756. <Column id="grntermpphontel" type="STRING" size="256" sumtext="휴대전화번호"/>
  1757. <Column id="worknm" type="STRING" size="256" sumtext="직장명"/>
  1758. <Column id="worktel" type="STRING" size="256" sumtext="직장전화번호"/>
  1759. <Column id="grnternm1" type="STRING" size="256" sumtext="보증인명1"/>
  1760. <Column id="grntertel1" type="STRING" size="256" sumtext="보증인전화번호1"/>
  1761. <Column id="real1" type="STRING" size="256" sumtext="관계1"/>
  1762. <Column id="addr1" type="STRING" size="256" sumtext="주소1"/>
  1763. <Column id="grnterrrgstno11" type="STRING" size="256" sumtext="보증인주민번호앞1"/>
  1764. <Column id="grnterrrgstno12" type="STRING" size="256" sumtext="보증인주민번호뒤1"/>
  1765. <Column id="grntermpphontel1" type="STRING" size="256" sumtext="휴대전화번호1"/>
  1766. <Column id="worknm1" type="STRING" size="256" sumtext="직장명1"/>
  1767. <Column id="worktel1" type="STRING" size="256" sumtext="직장전화번호1"/>
  1768. <Column id="centcd" type="STRING" size="256" sumtext="센터명"/>
  1769. <Column id="instcd" type="STRING" size="256" sumtext="병원명"/>
  1770. <Column id="hosptel" type="STRING" size="256" sumtext="병원전화번호"/>
  1771. <!-- 보호자증 -->
  1772. <Column id="deptplce" type="STRING" size="256" sumtext="병동위치"/>
  1773. </ColumnInfo>
  1774. </Dataset>
  1775. <Dataset id="ds_init_prncd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1776. <Dataset id="oDsRsltRef" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1777. <FilteredDataset id="fds_wardcd" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1778. <Dataset id="ds_specrgst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1779. <ColumnInfo>
  1780. <Column id="rgstyn" type="STRING" size="256" sumtext="등록여부"/>
  1781. </ColumnInfo>
  1782. </Dataset>
  1783. <Dataset id="ds_cnclresult" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1784. <ColumnInfo>
  1785. <Column id="aprv_cnt" type="STRING" size="256" sumtext="건수"/>
  1786. <Column id="result_cnt" type="STRING" size="256" sumtext="건수"/>
  1787. </ColumnInfo>
  1788. </Dataset>
  1789. <Dataset id="ds_send_spif" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1790. <ColumnInfo>
  1791. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  1792. <Column id="ocrtag" type="STRING" size="256" sumtext="OCRTAG"/>
  1793. <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
  1794. <Column id="orddd" type="STRING" size="256" sumtext="진료일자"/>
  1795. <Column id="cretno" type="STRING" size="256" sumtext="순번"/>
  1796. <Column id="ioflag" type="STRING" size="256" sumtext="진료형태"/>
  1797. <Column id="msflag" type="STRING" size="256" sumtext="주부구분"/>
  1798. <Column id="orddeptkind" type="STRING" size="256" sumtext="진료과"/>
  1799. <Column id="seqno" type="STRING" size="256" sumtext="순번"/>
  1800. <Column id="histstat" type="STRING" size="256" sumtext="상태"/>
  1801. <Column id="fromdd" type="STRING" size="256" sumtext="시작일자"/>
  1802. <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
  1803. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
  1804. <Column id="orddrid" type="STRING" size="256" sumtext="진료의"/>
  1805. <Column id="specordyn" type="STRING" size="256" sumtext="선택구분"/>
  1806. <Column id="choiflag" type="STRING" size="256" sumtext="선택구분"/>
  1807. <Column id="specorddeptcd" type="STRING" size="256" sumtext="특진여부"/>
  1808. <Column id="specdrid" type="STRING" size="256" sumtext="특진여부"/>
  1809. <Column id="appdd" type="STRING" size="256" sumtext="적용일"/>
  1810. <Column id="signflag" type="STRING" size="256" sumtext="사인구분"/>
  1811. <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초등록자"/>
  1812. <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일시"/>
  1813. <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종수정자"/>
  1814. <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종수정일시"/>
  1815. <Column id="remfact" type="STRING" size="256" sumtext="참고사항"/>
  1816. <Column id="returnyn" type="STRING" size="256" sumtext="회신여부"/>
  1817. <Column id="returnrid" type="STRING" size="256" sumtext="회신여부"/>
  1818. <Column id="returntm" type="STRING" size="256" sumtext="회신여부"/>
  1819. <Column id="hngnm" type="STRING" size="256" sumtext="환자성명"/>
  1820. <Column id="rrgstno1" type="STRING" size="256" sumtext="주민번호1"/>
  1821. <Column id="rrgstno2" type="STRING" size="256" sumtext="주민번호2"/>
  1822. <Column id="list1specdrid" type="STRING" size="256" sumtext="선택진료의"/>
  1823. <Column id="list1choiflag" type="STRING" size="256" sumtext="위임여부"/>
  1824. <Column id="list2specdrid" type="STRING" size="256" sumtext="선택진료의"/>
  1825. <Column id="list2choiflag" type="STRING" size="256" sumtext="위임여부"/>
  1826. <Column id="list3specdrid" type="STRING" size="256" sumtext="선택진료의"/>
  1827. <Column id="list3choiflag" type="STRING" size="256" sumtext="위임여부"/>
  1828. <Column id="list4specdrid" type="STRING" size="256" sumtext="선택진료의"/>
  1829. <Column id="list4choiflag" type="STRING" size="256" sumtext="위임여부"/>
  1830. <Column id="list5specdrid" type="STRING" size="256" sumtext="선택진료의"/>
  1831. <Column id="list5choiflag" type="STRING" size="256" sumtext="위임여부"/>
  1832. <Column id="list6specdrid" type="STRING" size="256" sumtext="선택진료의"/>
  1833. <Column id="list6choiflag" type="STRING" size="256" sumtext="위임여부"/>
  1834. <Column id="list7specdrid" type="STRING" size="256" sumtext="선택진료의"/>
  1835. <Column id="list7choiflag" type="STRING" size="256" sumtext="위임여부"/>
  1836. <Column id="list8specdrid" type="STRING" size="256" sumtext="선택진료의"/>
  1837. <Column id="list8choiflag" type="STRING" size="256" sumtext="위임여부"/>
  1838. </ColumnInfo>
  1839. </Dataset>
  1840. <Dataset id="ds_spifptbs" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1841. <ColumnInfo>
  1842. <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
  1843. <Column id="hngnm" type="STRING" size="256" sumtext="환자성명"/>
  1844. <Column id="rrgstno1" type="STRING" size="256" sumtext="주민번호1"/>
  1845. <Column id="rrgstno2" type="STRING" size="256" sumtext="주민번호2"/>
  1846. <Column id="zipcdaddr" type="STRING" size="256" sumtext="상위주소"/>
  1847. <Column id="detladdr" type="STRING" size="256" sumtext="하위주소"/>
  1848. <Column id="hometel" type="STRING" size="256" sumtext="전화번호"/>
  1849. <Column id="mpphontel" type="STRING" size="256" sumtext="전화번호"/>
  1850. </ColumnInfo>
  1851. </Dataset>
  1852. <Dataset id="ds_spifinfo" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1853. <ColumnInfo>
  1854. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  1855. <Column id="ocrtag" type="STRING" size="256" sumtext="OCRTAG"/>
  1856. <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
  1857. <Column id="orddd" type="STRING" size="256" sumtext="진료일자"/>
  1858. <Column id="cretno" type="STRING" size="256" sumtext="순번"/>
  1859. <Column id="ioflag" type="STRING" size="256" sumtext="진료형태"/>
  1860. <Column id="msflag" type="STRING" size="256" sumtext="주부구분"/>
  1861. <Column id="orddeptkind" type="STRING" size="256" sumtext="진료과"/>
  1862. <Column id="seqno" type="STRING" size="256" sumtext="순번"/>
  1863. <Column id="histstat" type="STRING" size="256" sumtext="상태"/>
  1864. <Column id="fromdd" type="STRING" size="256" sumtext="시작일자"/>
  1865. <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
  1866. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
  1867. <Column id="orddrid" type="STRING" size="256" sumtext="진료의"/>
  1868. <Column id="specordyn" type="STRING" size="256" sumtext="선택구분"/>
  1869. <Column id="choiflag" type="STRING" size="256" sumtext="선택구분"/>
  1870. <Column id="specorddeptcd" type="STRING" size="256" sumtext="특진여부"/>
  1871. <Column id="specdrid" type="STRING" size="256" sumtext="특진여부"/>
  1872. <Column id="appdd" type="STRING" size="256" sumtext="적용일"/>
  1873. <Column id="signflag" type="STRING" size="256" sumtext="사인구분"/>
  1874. <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초등록자"/>
  1875. <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일시"/>
  1876. <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종수정자"/>
  1877. <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종수정일시"/>
  1878. <Column id="remfact" type="STRING" size="256" sumtext="참고사항"/>
  1879. <Column id="returnyn" type="STRING" size="256" sumtext="회신여부"/>
  1880. <Column id="returnrid" type="STRING" size="256" sumtext="회신여부"/>
  1881. <Column id="returntm" type="STRING" size="256" sumtext="회신여부"/>
  1882. <Column id="hngnm" type="STRING" size="256" sumtext="환자성명"/>
  1883. <Column id="rrgstno1" type="STRING" size="256" sumtext="주민번호1"/>
  1884. <Column id="rrgstno2" type="STRING" size="256" sumtext="주민번호2"/>
  1885. <Column id="list1specdrid" type="STRING" size="256" sumtext="선택진료의"/>
  1886. <Column id="list1choiflag" type="STRING" size="256" sumtext="위임여부"/>
  1887. <Column id="list2specdrid" type="STRING" size="256" sumtext="선택진료의"/>
  1888. <Column id="list2choiflag" type="STRING" size="256" sumtext="위임여부"/>
  1889. <Column id="list3specdrid" type="STRING" size="256" sumtext="선택진료의"/>
  1890. <Column id="list3choiflag" type="STRING" size="256" sumtext="위임여부"/>
  1891. <Column id="list4specdrid" type="STRING" size="256" sumtext="선택진료의"/>
  1892. <Column id="list4choiflag" type="STRING" size="256" sumtext="위임여부"/>
  1893. <Column id="list5specdrid" type="STRING" size="256" sumtext="선택진료의"/>
  1894. <Column id="list5choiflag" type="STRING" size="256" sumtext="위임여부"/>
  1895. <Column id="list6specdrid" type="STRING" size="256" sumtext="선택진료의"/>
  1896. <Column id="list6choiflag" type="STRING" size="256" sumtext="위임여부"/>
  1897. <Column id="list7specdrid" type="STRING" size="256" sumtext="선택진료의"/>
  1898. <Column id="list7choiflag" type="STRING" size="256" sumtext="위임여부"/>
  1899. <Column id="list8specdrid" type="STRING" size="256" sumtext="선택진료의"/>
  1900. <Column id="list8choiflag" type="STRING" size="256" sumtext="위임여부"/>
  1901. </ColumnInfo>
  1902. </Dataset>
  1903. <Dataset id="ds_spifprintinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1904. <ColumnInfo>
  1905. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  1906. <Column id="hngnm" type="STRING" size="256" sumtext="성명"/>
  1907. <Column id="zipcdaddr" type="STRING" size="256" sumtext="우편번호주소"/>
  1908. <Column id="detladdr" type="STRING" size="256" sumtext="상세주소"/>
  1909. <Column id="tel" type="STRING" size="256" sumtext="전화번호"/>
  1910. <Column id="rrgstno1" type="STRING" size="256" sumtext="주민번호1"/>
  1911. <Column id="rrgstno2" type="STRING" size="256" sumtext="주민번호2"/>
  1912. <Column id="usernm" type="STRING" size="256" sumtext="사용자성명"/>
  1913. <Column id="hospnm" type="STRING" size="256" sumtext="병원명"/>
  1914. <Column id="ocrtag" type="STRING" size="256" sumtext="OCRTAG"/>
  1915. <Column id="seq" type="STRING" size="256" sumtext="seq"/>
  1916. <Column id="orddd" type="STRING" size="256" sumtext="진료일자"/>
  1917. <Column id="appdd" type="STRING" size="256" sumtext="적용일자"/>
  1918. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과코드"/>
  1919. <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과명"/>
  1920. <Column id="orddrid" type="STRING" size="256" sumtext="진료의사번"/>
  1921. <Column id="orddrnm" type="STRING" size="256" sumtext="진료의성명"/>
  1922. <Column id="maindrnm" type="STRING" size="256" sumtext="진료의성명"/>
  1923. <Column id="ioflag" type="STRING" size="256" sumtext="구분"/>
  1924. <Column id="deptengabbr" type="STRING" size="256" sumtext="진료과약어"/>
  1925. <Column id="specordyn" type="STRING" size="256" sumtext="선택진료여부"/>
  1926. </ColumnInfo>
  1927. </Dataset>
  1928. <Dataset id="ds_temp_consent" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1929. <Dataset id="ds_send_cdcr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1930. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1931. <ColumnInfo>
  1932. <Column id="popupendflag" type="STRING" size="256"/>
  1933. </ColumnInfo>
  1934. </Dataset>
  1935. <Dataset id="ds_init_PK018list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1936. <ColumnInfo>
  1937. <Column id="cdid" type="STRING" size="256"/>
  1938. <Column id="cdnm" type="STRING" size="256"/>
  1939. </ColumnInfo>
  1940. </Dataset>
  1941. <Dataset id="ds_hidden_grdbedspec" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1942. </Objects>
  1943. <Bind>
  1944. <BindItem id="item0" compid="ipt_2fromdd" propid="value" datasetid="ds_icdrinfo" columnid="fromdd"/>
  1945. <BindItem id="item1" compid="ipt_2todd" propid="value" datasetid="ds_icdrinfo" columnid="todd"/>
  1946. <BindItem id="item5" compid="cmb_2orddeptcd" propid="value" datasetid="ds_icdrinfo" columnid="orddeptcd"/>
  1947. <BindItem id="item6" compid="cmb_2medispclid" propid="value" datasetid="ds_icdrinfo" columnid="medispclid"/>
  1948. <BindItem id="item7" compid="cmb_2atdoctid" propid="value" datasetid="ds_icdrinfo" columnid="atdoctid"/>
  1949. <BindItem id="item8" compid="cmb_2roomgrdecd" propid="value" datasetid="ds_icdrinfo" columnid="roomgrdecd"/>
  1950. <BindItem id="item9" compid="cmb_2roomtypecd" propid="value" datasetid="ds_icdrinfo" columnid="roomtypecd"/>
  1951. <BindItem id="item10" compid="Combo00" propid="value" datasetid="ds_icdrinfo" columnid="roomgrdecd"/>
  1952. <BindItem id="item11" compid="bool4" propid="value" datasetid="ds_icdrinfo" columnid="oxyyn"/>
  1953. <BindItem id="item12" compid="bool5" propid="value" datasetid="ds_icdrinfo" columnid="suctyn"/>
  1954. <BindItem id="item13" compid="rdo_2specordyn" propid="value" datasetid="ds_icdrinfo" columnid="specordyn"/>
  1955. <BindItem id="item2" compid="cmb_2wardcd" propid="value" datasetid="ds_icdrinfo" columnid="wardcd"/>
  1956. <BindItem id="item3" compid="cmb_2wardcd00" propid="value" datasetid="ds_icdrinfo" columnid="roomcd"/>
  1957. <BindItem id="item4" compid="cmb_2wardcd01" propid="value" datasetid="ds_icdrinfo" columnid="bedcd"/>
  1958. <BindItem id="item14" compid="ipt_fromdd" propid="value" datasetid="ds_send_icdr" columnid="fromdd"/>
  1959. <BindItem id="item15" compid="ipt_todd" propid="value" datasetid="ds_send_icdr" columnid="todd"/>
  1960. <BindItem id="item16" compid="cmb_orddeptcd" propid="value" datasetid="ds_send_icdr" columnid="orddeptcd"/>
  1961. <BindItem id="item17" compid="cmb_medispclid" propid="value" datasetid="ds_send_icdr" columnid="medispclid"/>
  1962. <BindItem id="item18" compid="cmb_atdoctid" propid="value" datasetid="ds_send_icdr" columnid="atdoctid"/>
  1963. <BindItem id="item19" compid="rdo_specordyn" propid="value" datasetid="ds_send_icdr" columnid="specordyn"/>
  1964. <BindItem id="item20" compid="bool2" propid="value" datasetid="ds_send_icdr" columnid="oxyyn"/>
  1965. <BindItem id="item21" compid="bool3" propid="value" datasetid="ds_send_icdr" columnid="suctyn"/>
  1966. <BindItem id="item22" compid="cmb_wardcd" propid="value" datasetid="ds_send_icdr" columnid="wardcd"/>
  1967. <BindItem id="item23" compid="cmb_roomcd" propid="value" datasetid="ds_send_icdr" columnid="roomcd"/>
  1968. <BindItem id="item24" compid="cmb_bedcd" propid="value" datasetid="ds_send_icdr" columnid="bedcd"/>
  1969. <BindItem id="item25" compid="cmb_roomgrdecd" propid="value" datasetid="ds_send_icdr" columnid="roomgrdecd"/>
  1970. <BindItem id="item26" compid="cmb_roomtypecd" propid="value" datasetid="ds_send_icdr" columnid="roomtypecd"/>
  1971. <BindItem id="item27" compid="combo3" propid="value" datasetid="ds_send_icdr" columnid="roomgrdecd"/>
  1972. <BindItem id="item29" compid="input1" propid="value" datasetid="ds_send_icdr" columnid="chngprestrem"/>
  1973. <BindItem id="item30" compid="input2" propid="value" datasetid="ds_icdrinfo" columnid="cnstcnfm"/>
  1974. <BindItem id="item31" compid="input3" propid="value" datasetid="ds_icdrinfo" columnid="cnstfromdd"/>
  1975. <BindItem id="item32" compid="input4" propid="value" datasetid="ds_icdrinfo" columnid="cnsttodd"/>
  1976. <BindItem id="item33" compid="input5" propid="value" datasetid="ds_icdrinfo" columnid="preroomcd"/>
  1977. <BindItem id="item34" compid="input6" propid="value" datasetid="ds_icdrinfo" columnid="cnstroomcd"/>
  1978. <BindItem id="item28" compid="Combo01" propid="value" datasetid="ds_send_icdr" columnid="prestremcd"/>
  1979. <BindItem id="item35" compid="Combo04" propid="value" datasetid="ds_send_icdr" columnid="roomcd"/>
  1980. <BindItem id="item36" compid="ipt_srchcond2" propid="value" datasetid="ds_send" columnid="srchcond2"/>
  1981. </Bind>
  1982. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  1983. * System Name :
  1984. * Job Name :
  1985. * Creator :
  1986. * Make Date : 2015-10-27
  1987. * Description :
  1988. *---------------------------------------------------------------------------------------
  1989. * Modify Date Modifier Modify Description
  1990. *---------------------------------------------------------------------------------------
  1991. * 2015-10-27 Live Converter TF->XP
  1992. *
  1993. *---------------------------------------------------------------------------------------
  1994. ****************************************************************************************/
  1995. include "com_commonxp::comm_main.xjs";
  1996. include "pam_pamcomnxp::PAM001.xjs";
  1997. include "emr_prcpmngtxp::MMOCommon.xjs";
  1998. include "pam_ipatmngtxp::PMI001.xjs";
  1999. include 'pam_pamcomnxp::PAM.xjs';
  2000. var arErrorCode = new HashArray();
  2001. var cmcnuprinter_path = system.convertRealPath("%MYDOCUMENT%") + "\\KU20\\cmcnuprinter";
  2002. var inpt_flag = null;
  2003. var icdr_flag = null;
  2004. var ipaddress;
  2005. function SMPMI01600_oninit(obj:Form, e:InitEventInfo)
  2006. {
  2007. frmf_initForm(obj); // 화면공통
  2008. }
  2009. function SMPMI01600_onload(obj:Form, e:LoadEventInfo)
  2010. {
  2011. var extObj = new ExtCommon();
  2012. ipaddress = extObj.getIPAddress();
  2013. // 프린터설정 확인
  2014. fSetPrinterTray();
  2015. // 그리드 초기화
  2016. grdf_initGrid(grd_inhosplist);
  2017. grdf_initGrid(grd_icdrlist);
  2018. grdf_initGrid(grd_cdcrlist);
  2019. // 공통코드 조회
  2020. var arrComParam = [{dsNm:"ds_P0002", cdGrpId:"P0002"},{dsNm:"ds_P0006", cdGrpId:"P0006"},{dsNm:"ds_P0015", cdGrpId:"P0015"},
  2021. {dsNm:"ds_P0016", cdGrpId:"P0016"},{dsNm:"ds_P0019", cdGrpId:"P0019"},{dsNm:"ds_P0021", cdGrpId:"P0021"},
  2022. {dsNm:"ds_P0023", cdGrpId:"P0023"},{dsNm:"ds_P0025", cdGrpId:"P0025"},{dsNm:"ds_P0026", cdGrpId:"P0026"},
  2023. {dsNm:"ds_P0032", cdGrpId:"P0032"},{dsNm:"ds_P0149", cdGrpId:"P0149"},{dsNm:"ds_P0158", cdGrpId:"P0158"},
  2024. {dsNm:"ds_P0160", cdGrpId:"P0160"},{dsNm:"ds_P0360", cdGrpId:"P0360"},{dsNm:"ds_P0363", cdGrpId:"P0363"},
  2025. {dsNm:"ds_P0313", cdGrpId:"P0313"}];
  2026. appf_getCodeList(arrComParam, true, false, "");
  2027. // 동적 dataset 컨트롤 적용
  2028. Combo01.innerdataset = "";
  2029. Combo01.innerdataset = "ds_P0360";
  2030. // 원무공통코드 조회
  2031. var arrPamParam = [{dsNm:"ds_pP0018", cdGrpId:"P0018"}, {dsNm:"ds_pP0022", cdGrpId:"P0022"},
  2032. {dsNm:"ds_pP0041", cdGrpId:"P0041"}, {dsNm:"ds_pPK018", cdGrpId:"PK018"},
  2033. {dsNm:"ds_pP0032", cdGrpId:"P0032"}];
  2034. pamfGetCodeList(arrPamParam, false);
  2035. ds_init_PK018list.copyData(ds_pPK018);
  2036. // 개인정보이용동의서 출력을 위한 서식코드 취득
  2037. lf_reqHardCodeInfo(ds_init_prncd, '5604');
  2038. lf_reqHardCodeInfo(oDsRsltRef, "5604"); // oDsRsltRef.getColumn(0, "hardcd")
  2039. // 입원약정서, 입원환자카드 프린터명
  2040. ds_pP0018.filter("cdid=='1'");
  2041. ds_hdn_printers.setColumn(0, "deci_printer", ds_pP0018.getColumn(0, "cdnm"));
  2042. ds_pP0018.filter("cdid=='2'");
  2043. ds_hdn_printers.setColumn(0, "card_printer", ds_pP0018.getColumn(0, "cdnm"));
  2044. ds_pP0018.filter(""); // reset filter
  2045. ds_send.setColumn(0, "ioflag", "I");
  2046. ds_send.setColumn(0, "sess_posinstcd", sysf_getUserInfo("dutplceinstcd"));
  2047. // 원무 공통코드 설정(진료과, 진료의, 병동, 병실, 병상, 병실등급, 병실형태 etc)
  2048. var oParam = {};
  2049. oParam.id = "TRPMI00106";
  2050. oParam.service = "pamcomnapp.PamComn";
  2051. oParam.method = "reqGetComCD";
  2052. oParam.inds = "req=ds_send";
  2053. oParam.outds = "ds_init_insukind=insukind ds_init_suppkind=suppkind ds_init_orddeptcd=orddeptcd ds_init_orddrid=orddrid ds_init_wardcd=wardcd ds_init_roomcd=roomcd ds_init_bedcd=bedcd ds_init_roomgrdecd=roomgrdecd ds_init_roomtypecd=roomtypecd ds_init_roomgrdelist=roomgrdelist";
  2054. oParam.async = false;
  2055. tranf_submit(oParam);
  2056. // FilterdDataSet 설정
  2057. fds_orddrid.binddataset = ds_init_orddrid; // 의사정보
  2058. fds_wardcd.binddataset = ds_init_wardcd; // 병동정보
  2059. fds_orddeptcd.binddataset = ds_init_orddeptcd; // 진료과정보
  2060. // 컨트롤 초기화
  2061. fInit();
  2062. // 버튼 설정
  2063. fSetButton();
  2064. // opener 검증
  2065. if (frmf_checkOpener()) {
  2066. //PID 값 받아오는 거 수정 20200207 임승주
  2067. var pid = opener.frmf_getParameter("SMPMI01600_PID");
  2068. ds_send.setColumn(0, "ipatflag", '1');
  2069. ds_send.setColumn(0, "srchcond1", '1');
  2070. ds_send.setColumn(0, "srchcond2", pid);
  2071. btn_srch.click();
  2072. }
  2073. //병실변경버튼 히든처리(2019/01/28 이정택)
  2074. btn_srch_room.visible = false;
  2075. // 담당의 존재 여부 구분 임승주 추가 19.08.26
  2076. rdo_attend.value= "Y";
  2077. }
  2078. /** 조회구분 변경 */
  2079. function cmb_srchcond1_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  2080. {
  2081. var ipatrefflag = obj.value;
  2082. // 조회구분에 따른 검색조건 동적처리
  2083. fipatrefchlind(ipatrefflag);
  2084. // 자동조회 실시
  2085. // 0:전체, 9:전과전실신청, 10:응급실 입원결정서 신청자, 11:DSC 입원결정서 신청자, 12:전실승인
  2086. if (ipatrefflag == '0'||ipatrefflag == '9'||ipatrefflag == '10'||ipatrefflag == '11' ||ipatrefflag == '12' ){
  2087. btn_srch.click();
  2088. }
  2089. }
  2090. /** 검색조건 활성/비활성 처리 */
  2091. function fipatrefchlind(ipatrefflag)
  2092. {
  2093. // default 설정
  2094. ipt_srchcond2.visible = false; // 입력항목
  2095. cmb_srchcond2.visible = false; // 풀다운
  2096. caption17.visible = false; // 전실승인(타이틀)
  2097. ipt_appddfrom.visible = false; // 전실승인(시작)
  2098. cpt_line.visible = false; // 전실승인(하이픈)
  2099. ipt_appddto.visible = false; // 전실승인(종료)
  2100. // 1:환자번호, 13:환자성명
  2101. if (ipatrefflag == '1' || ipatrefflag == '13') {
  2102. ipt_srchcond2.visible = true;
  2103. ipt_srchcond2.setFocus();
  2104. ipt_srchcond2.position.width = 270;
  2105. // 2:진료과
  2106. } else if (ipatrefflag == '2') {
  2107. cmb_srchcond2.visible = true;
  2108. cmb_srchcond2.position.width = 270;
  2109. ds_srch_cmb.copyData(ds_init_orddeptcd);
  2110. // 3:주치의
  2111. } else if (ipatrefflag == '3') {
  2112. cmb_srchcond2.visible = true;
  2113. cmb_srchcond2.position.width = 270;
  2114. ds_srch_cmb.copyData(ds_init_orddrid);
  2115. // 4:담당의
  2116. } else if (ipatrefflag == '4') {
  2117. cmb_srchcond2.visible = true;
  2118. cmb_srchcond2.position.width = 270;
  2119. ds_srch_cmb.copyData(ds_init_orddrid);
  2120. // 5:병동
  2121. } else if (ipatrefflag == '5') {
  2122. cmb_srchcond2.visible = true;
  2123. cmb_srchcond2.position.width = 270;
  2124. ds_srch_cmb.copyData(ds_init_wardcd);
  2125. // 9:전과전실신청
  2126. } else if (ipatrefflag == '9') {
  2127. grd_inhosplist.setFormatColProperty(6, "size", 50);
  2128. grd_inhosplist.setFormatColProperty(7, "size", 30);
  2129. // do nothing
  2130. // 10:응급실 입원결정서 신청자
  2131. } else if (ipatrefflag == '10') {
  2132. // do nothing
  2133. grd_inhosplist.setFormatColProperty(6, "size", 50);
  2134. grd_inhosplist.setFormatColProperty(7, "size", 30);
  2135. // 11:DSC 입원결정서 신청자
  2136. } else if (ipatrefflag == '11') {
  2137. // do nothing
  2138. grd_inhosplist.setFormatColProperty(6, "size", 50);
  2139. grd_inhosplist.setFormatColProperty(7, "size", 30);
  2140. // 12:전실승인
  2141. }else if (ipatrefflag == '12') {
  2142. caption17.visible = true;
  2143. ipt_appddfrom.visible = true;
  2144. ipt_appddto.visible = true;
  2145. cpt_line.visible = true;
  2146. ipt_appddfrom.value = utlf_getCurrentDate(); // 시작일자 설정
  2147. ipt_appddto.value = utlf_getCurrentDate(); // 종료일자 설정
  2148. grd_inhosplist.setFormatColProperty(6, "size", 50);
  2149. grd_inhosplist.setFormatColProperty(7, "size", 30);
  2150. // 0:전체
  2151. }else if (ipatrefflag == '0') {
  2152. // do nothing
  2153. grd_inhosplist.setFormatColProperty(6, "size", 0);
  2154. grd_inhosplist.setFormatColProperty(7, "size", 0);
  2155. }
  2156. }
  2157. // 2009년 03월 20일, JHP
  2158. // 서울성모이전으로 프린터를 2tray와 1tray짜리를 동시에 사용한다. 수납쪽(영수증, 중간계산서)은 1tray, 등록쪽(약정서, 입원카드)은 2tray를 쓰는데
  2159. // 1트레이는 기본이므로 수납쪽은 그냥 둔다. 근데 2트레이는 렉스퍼트 출력시 트레이번호를 셋팅값으로 박아줘야하는데 프린터 정보는 동적으로 가지고 올수 없기때문에
  2160. // 임의의 경로에 txt파일을 만들어 트레이값을 설정하여 저장하여놓고 불러와서 트레이번호를 매겨준다.
  2161. // 이때 해당 파일이 없으면 해당파일을 사용자가 만들어준다.
  2162. function fSetPrinterTray(){
  2163. // 프린터 트레이 설정을 위한 ini파일 조회
  2164. var printerfileno = "X";
  2165. var vFile = new VirtualFile(cmcnuprinter_path + "\\printer.ini", VirtualFile.openRead | VirtualFile.openText);
  2166. var sLine = "";
  2167. // 파일읽기
  2168. if (vFile.readLine() != null) {
  2169. while((sLine = vFile.readLine()).length > 0) {
  2170. if (sLine.indexOf("=") > -1) {
  2171. printerfileno = sLine.charAt(sLine.indexOf("=") + 1);
  2172. }
  2173. }
  2174. }
  2175. // 파일 존재하지 않는 경우 파일생성
  2176. if ( printerfileno == "X") {
  2177. if (sysf_messageBox("프린터 트레이정보가 존재하지 않습니다. ''예 = 트레이1개'', ''아니오 = 트레이2개'' ","Q003") == "6") {
  2178. printerfileno = "1";
  2179. } else {
  2180. printerfileno = "2";
  2181. }
  2182. // 폴더생성
  2183. if( VirtualFile.isExist(cmcnuprinter_path) == false ) {
  2184. VirtualFile.createDirectory(cmcnuprinter_path);
  2185. }
  2186. // 파일쓰기
  2187. var vFileNew = new VirtualFile(cmcnuprinter_path + "\\printer.ini", VirtualFile.openWrite | VirtualFile.openText);
  2188. vFileNew.write("[Tray]");
  2189. vFileNew.write("\r\n");
  2190. vFileNew.write("trayno=" + printerfileno);
  2191. vFileNew.close();
  2192. }
  2193. ds_hdn_printers.setColumn(0, "value", printerfileno);
  2194. }
  2195. /** 컨트롤 초기화 처리 */
  2196. function fInit() {
  2197. // 기본 비활성화 처리시켰음 필요시 복원로직 추가
  2198. }
  2199. /** 버튼 설정 */
  2200. function fSetButton(pParam) {
  2201. var sOrgOrdType = "";
  2202. var sAppflagcd = ds_grd_cdcrlist.getColumn(ds_grd_cdcrlist.rowposition, "appflagcd");
  2203. // 재원내역
  2204. var iRows = ds_grd_inhosplist.rowcount;
  2205. if (iRows == 1) {
  2206. sOrgOrdType = ds_grd_inhosplist.getColumn(0, "orgordtype");
  2207. } else {
  2208. sOrgOrdType = ds_grd_inhosplist.getColumn(ds_grd_inhosplist.rowposition, "orgordtype");
  2209. }
  2210. // 1:전실
  2211. if (pParam == "1") {
  2212. btn_save.enable = true; // 승인
  2213. btn_cancel.enable = false; // 승인취소
  2214. btn_cancel2.enable = true; // 신청취소
  2215. btn_recovery.enable = false; // 완료취소
  2216. // 2:전과
  2217. } else if (pParam == "2") {
  2218. btn_save.enable = false; // 승인
  2219. btn_cancel.enable = true; // 승인취소
  2220. btn_cancel2.enable = false; // 신청취소
  2221. btn_recovery.enable = false; // 완료취소
  2222. // 3:전실+전과
  2223. } else if (pParam == "3") {
  2224. btn_save.enable = false; // 승인
  2225. btn_cancel.enable = false; // 승인취소
  2226. btn_cancel2.enable = false; // 신청취소
  2227. // 2009.05.07 - 전과+전실 완료취소 시에는 응급실일 때만 취소할 수 있도록 조건 추가
  2228. if(sAppflagcd == "3") {
  2229. if (sOrgOrdType == "E") {
  2230. btn_recovery.enable = true; // 완료취소
  2231. } else {
  2232. btn_recovery.enable = false; // 완료취소
  2233. }
  2234. } else if(sAppflagcd == "2" && sOrgOrdType == "E") { //응급실 전과취소 없음!!!!
  2235. btn_recovery.enable = false; // 완료취소
  2236. }else{
  2237. btn_recovery.enable = true; // 완료취소
  2238. }
  2239. // 입원결정서
  2240. } else if (pParam == "ED") {
  2241. btn_save.enable = true; // 승인
  2242. btn_cancel.enable = false; // 승인취소
  2243. btn_cancel2.enable = false; // 신청취소
  2244. btn_recovery.enable = false; // 완료취소
  2245. // 그외의 경우
  2246. } else {
  2247. btn_save.enable = false; // 승인
  2248. btn_cancel.enable = false; // 승인취소
  2249. btn_cancel2.enable = false; // 신청취소
  2250. btn_recovery.enable = false; // 완료취소
  2251. }
  2252. }
  2253. // 재원내역 조회
  2254. function fQuery1(){
  2255. // dataset 초기화
  2256. ds_grd_inhosplist.clearData(); // 재원내역
  2257. ds_grd_inhosplist.addRow();
  2258. ds_grd_icdrlist.clearData(); // 전과전실 이력
  2259. ds_grd_icdrlist.addRow();
  2260. ds_icdrinfo.clearData(); // 현재 과/병실 정보
  2261. ds_icdrinfo.addRow();
  2262. ds_grd_cdcrlist.clearData(); // 신청정보
  2263. ds_grd_cdcrlist.addRow();
  2264. ds_send_inpt.clearData(); // 승인정보_inpt
  2265. ds_send_inpt.addRow();
  2266. ds_send_inpt_org.clearData(); // 승인정보_inpt
  2267. ds_send_inpt_org.addRow();
  2268. ds_send_icdr.clearData(); // 승인정보_icdr
  2269. ds_send_icdr.addRow();
  2270. ds_send_icdr_org.clearData(); // 승인정보_icdr
  2271. ds_send_icdr_org.addRow();
  2272. ds_send_adrv.clearData(); // 승인정보_adrv
  2273. ds_send_adrv.addRow();
  2274. ds_inhpdecilist.clearData(); // 입원결정서
  2275. ds_inhpdecilist.addRow();
  2276. // 조회조건 설정
  2277. ds_send.setColumn(0, "ipatflag", "1"); // 1 고정
  2278. ds_send.setColumn(0, "srchcond1", cmb_srchcond1.value);
  2279. // 1.등록번호, 13:환자성명
  2280. if (cmb_srchcond1.value == "1" || cmb_srchcond1.value == "13") {
  2281. ds_send.setColumn(0, "srchcond2", ipt_srchcond2.value);
  2282. // 2:진료과, 3:주치의, 4:담당의, 5:병동
  2283. } else if (cmb_srchcond1.value == "2" || cmb_srchcond1.value == "3" || cmb_srchcond1.value == "4" || cmb_srchcond1.value == "5") {
  2284. ds_send.setColumn(0, "srchcond2", cmb_srchcond2.value);
  2285. }
  2286. ds_send.setColumn(0, "appddfrom", ipt_appddfrom.value);
  2287. ds_send.setColumn(0, "appddto", ipt_appddto.value);
  2288. ds_send.setColumn(0, "mskind", "M"); // 주유형만 점검
  2289. var oParam = {};
  2290. oParam.id = "TRPMI01602";
  2291. oParam.service = "ipatmngtapp.InhospUpdt";
  2292. oParam.method = "reqGetIpatListRef";
  2293. oParam.inds = "req=ds_send";
  2294. oParam.outds = "ds_grd_inhosplist=inpt";
  2295. oParam.async = false;
  2296. tranf_submit(oParam);
  2297. dsf_setTypeFormat(ds_grd_inhosplist, "cretno:INT^seqno:INT"); // 데이터형 설정
  2298. //조회된건이 한건이면 전과전실이력을 자동으로 조회한다.
  2299. if(ds_grd_inhosplist.rowcount == 1) {
  2300. // 첫번째 row 기준으로 재원정보/전과전실정보 조회
  2301. fQuery(ds_grd_inhosplist.rowposition);
  2302. // 감염내과정보 셋팅
  2303. fCnstSet(ds_grd_inhosplist.rowposition);
  2304. fComboNodeSet(0);
  2305. }
  2306. //조회시 담당의가 없으면 그 값 그대로 가져오기 19.08.26 임승주
  2307. if(cmb_2atdoctid.value == "-")
  2308. {
  2309. rdo_attend.value="N";// 담당의 여부
  2310. cmb_atdoctid.enable =false;
  2311. ds_send_icdr.setColumn(0,"atdoctid", "-" );
  2312. }
  2313. else
  2314. {
  2315. rdo_attend.value="Y";// 담당의 여부
  2316. }
  2317. }
  2318. /** 조회버튼 */
  2319. function btn_srch_onclick(obj:Button, e:ClickEventInfo)
  2320. {
  2321. fQuery1();
  2322. }
  2323. /** 메인그리드 클릭이벤트 */
  2324. function grd_inhosplist_oncellclick(obj:Grid, e:GridClickEventInfo)
  2325. {
  2326. // remark 클릭 시
  2327. if (e.cell == "15") {
  2328. ds_grd_inhosplist.setColumn(e.row, "remfact", fCallSpecPopUp_remfact(ds_grd_inhosplist.getColumn(e.row, "pid"), ds_grd_inhosplist.getColumn(e.row, "remfact")));
  2329. }
  2330. }
  2331. /** 메인그리드 더블클릭이벤트 */
  2332. function grd_inhosplist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  2333. {
  2334. //버튼 초기화
  2335. fSetButton();
  2336. // ds을 기준으로한 row 정보
  2337. var currentrow = ds_grd_inhosplist.rowposition;
  2338. // 재원정보 및 전과전실정보 조회
  2339. fQuery(currentrow);
  2340. fComboNodeSet(0);
  2341. // 감염내과정보 셋팅
  2342. fCnstSet(currentrow);
  2343. }
  2344. /** 진료과,병동,병실 콤보값 설정 */
  2345. function fComboNodeSet(arg1){
  2346. // 0:자동조회, 1:진료과변경
  2347. if (arg1 == 0 || arg1 == 1) {
  2348. var sorddeptcd = ds_send_icdr.getColumn(0, "orddeptcd");
  2349. // 전문의
  2350. // 담당의
  2351. }
  2352. // 0:자동조회, 2:병동변경
  2353. if (arg1 == 0 || arg1 == 2) {
  2354. var swardcd = ds_send_icdr.getColumn(0, "wardcd");
  2355. }
  2356. // 4:전문의변경
  2357. if (arg1 == 4) {
  2358. var sOrddeptcd = ds_send_icdr.getColumn(0, "orddeptcd");
  2359. var sMedispclid = ds_send_icdr.getColumn(0, "medispclid");
  2360. var sSpecOrdYN = ds_send_icdr.getColumn(0, "specordyn");
  2361. }
  2362. // 0:자동조회, 6:병실형태변경
  2363. if (arg1 == 0 || arg1 == 6) {
  2364. var sroomtypecd = ds_send_icdr.getColumn(0, "roomtypecd");
  2365. }
  2366. }
  2367. /** 재원정보 및 전과전실정보 조회 */
  2368. function fQuery(curruntrow)
  2369. {
  2370. ds_send.setColumn(0, "pid", ds_grd_inhosplist.getColumn(curruntrow, "pid"));
  2371. ds_send.setColumn(0, "indd", ds_grd_inhosplist.getColumn(curruntrow, "indd"));
  2372. ds_send.setColumn(0, "todd", ds_grd_inhosplist.getColumn(curruntrow, "dschdd"));
  2373. ds_send.setColumn(0, "instcd", ds_grd_inhosplist.getColumn(curruntrow, "instcd"));
  2374. ds_send.setColumn(0, "cretno", ds_grd_inhosplist.getColumn(curruntrow, "cretno"));
  2375. ds_send.setColumn(0, "mskind", ds_grd_inhosplist.getColumn(curruntrow, "mskind"));
  2376. ds_send.setColumn(0, "insukind", ds_grd_inhosplist.getColumn(curruntrow, "insukind"));
  2377. ds_send.setColumn(0, "flag", "2");
  2378. var oParam = {};
  2379. oParam.id = "TRPMI01601";
  2380. oParam.service = "ipatmngtapp.InhospUpdt";
  2381. oParam.method = "reqGetInhospHist2";
  2382. oParam.inds = "req=ds_send";
  2383. oParam.outds = "ds_grd_icdrlist=icdr ds_grd_cdcrlist=cdcr ds_icdrinfo=icdr2";
  2384. oParam.async = false;
  2385. tranf_submit(oParam); // 전과전실내역을 조회한다.
  2386. var sordtype = ds_grd_inhosplist.getColumn(curruntrow, "ordtype");
  2387. // INPT backup(변경사항 비교용)
  2388. ds_send_inpt.copyData(ds_grd_inhosplist);
  2389. ds_send_inpt.clearData();
  2390. ds_send_inpt.addRow();
  2391. ds_send_inpt.copyRow(0, ds_grd_inhosplist, curruntrow);
  2392. ds_send_inpt_org.copyData(ds_grd_inhosplist);
  2393. ds_send_inpt_org.clearData();
  2394. ds_send_inpt_org.addRow();
  2395. ds_send_inpt_org.copyRow(0, ds_grd_inhosplist, curruntrow);
  2396. // ER / CHEMO / DSC
  2397. if (sordtype == 'E' || sordtype == 'D'){
  2398. ds_send.setColumn(0, "ordtype", sordtype);
  2399. var oParam = {};
  2400. oParam.id = "TRPMI00805";
  2401. oParam.service = "ipatmngtapp.InhospUpdt";
  2402. oParam.method = "reqGetInHpDeciRefList";
  2403. oParam.inds = "req=ds_send";
  2404. oParam.outds = "ds_inhpdecilist=inhpdecilist";
  2405. oParam.async = false;
  2406. tranf_submit(oParam);
  2407. dsf_setTypeFormat(ds_inhpdecilist, "inrsrvacptseqno:INT");
  2408. var sadrv_pid = ds_inhpdecilist.getColumn(0, "pid");
  2409. // 입원경정서 존재 시 입원결정서 기준으로 전과전실 신청데이터 생성
  2410. if (sadrv_pid != null && sadrv_pid != "") {
  2411. fSetButton("ED");
  2412. ds_send_icdr.setColumn(0, "pid", ds_grd_inhosplist.getColumn(curruntrow, "pid"));
  2413. ds_send_icdr.setColumn(0, "indd", ds_grd_inhosplist.getColumn(curruntrow, "indd"));
  2414. ds_send_icdr.setColumn(0, "cretno", ds_grd_inhosplist.getColumn(curruntrow, "cretno"));
  2415. ds_send_icdr.setColumn(0, "fromdd", utlf_getCurrentDate());
  2416. ds_send_icdr.setColumn(0, "instcd", ds_grd_inhosplist.getColumn(curruntrow, "instcd"));
  2417. ds_send_icdr.setColumn(0, "mskind", ds_grd_inhosplist.getColumn(curruntrow, "mskind"));
  2418. ds_send_icdr.setColumn(0, "todd", "99991231");
  2419. ds_send_icdr.setColumn(0, "histstat", "Y");
  2420. ds_send_icdr.setColumn(0, "indschacptstat", "A");
  2421. ds_send_icdr.setColumn(0, "ordtype", sordtype);
  2422. ds_send_icdr.setColumn(0, "acptflagcd", "1");
  2423. ds_send_icdr.setColumn(0, "appflagcd", "3");
  2424. ds_send_icdr.setColumn(0, "centcd", "-");
  2425. ds_send_icdr.setColumn(0, "dutdeptcd", "-");
  2426. ds_send_icdr.setColumn(0, "suporddeptcd", "-");
  2427. ds_send_icdr.setColumn(0, "orddeptcd", ds_inhpdecilist.getColumn(0, "orddeptcd"));
  2428. ds_send_icdr.setColumn(0, "medispclid", ds_inhpdecilist.getColumn(0, "orddrid"));
  2429. ds_send_icdr.setColumn(0, "atdoctid", "-");
  2430. ds_send_icdr.setColumn(0, "subdeptcd", ds_inhpdecilist.getColumn(0, "subdeptcd"));
  2431. fds_orddrid.filter("cd == '" + ds_send_icdr.getColumn(0, "medispclid") + "'");
  2432. var sspecordyn = fds_orddrid.getColumn(0, "sp");
  2433. fds_orddrid.filter(""); // 필터 초기화
  2434. ds_send_icdr.setColumn(0, "specordyn", sspecordyn);
  2435. ds_send_icdr.setColumn(0, "wardcd", ds_inhpdecilist.getColumn(0, "assgward"));
  2436. ds_send_icdr.setColumn(0, "roomcd", ds_inhpdecilist.getColumn(0, "assgroom"));
  2437. ds_send_icdr.setColumn(0, "bedcd", ds_inhpdecilist.getColumn(0, "assgbed"));
  2438. ds_send_icdr.setColumn(0, "roomgrdecd", ds_inhpdecilist.getColumn(0, "assgroomgrde"));
  2439. ds_send_icdr.setColumn(0, "roomtypecd", ds_inhpdecilist.getColumn(0, "assgroomtype"));
  2440. ds_send_icdr.setColumn(0, "wardcd2", "-");
  2441. ds_send_icdr.setColumn(0, "roomcd2", "-");
  2442. ds_send_icdr.setColumn(0, "roomgrdecd2", "-");
  2443. ds_send_icdr.setColumn(0, "roomtypecd2", "-");
  2444. ds_send_icdr.setColumn(0, "oxyyn", ds_inhpdecilist.getColumn(0, "oxyyn"));
  2445. ds_send_icdr.setColumn(0, "suctyn", ds_inhpdecilist.getColumn(0, "suctyn"));
  2446. ds_send_icdr.setColumn(0, "chngprestrem", ds_inhpdecilist.getColumn(0, "inrsrvrem"));
  2447. // ICDR backup(변경사항 비교용)
  2448. ds_send_icdr_org.copyRow(0, ds_send_icdr, 0);
  2449. var sMsg = "입원결정서가 있는 [응급실] 또는 [DSC]환자입니다. " + "\n"
  2450. + "전과전실 승인후 간호퇴실시 입원등록 됩니다. ";
  2451. sysf_messageBox(sMsg, "I");
  2452. // 응급수납에서 병상정보 수정할 수 있도록 프로그램수정(2019/01/28 이정택)
  2453. var e_wardcd = ds_inhpdecilist.getColumn(0, "assgward");
  2454. if(sordtype=='E' && (e_wardcd=='3060100000' || e_wardcd=='3060200000' || e_wardcd=='3060300000')){ //MICU(3060100000), SICU(3060200000), NSICU(3060300000)
  2455. btn_srch_room.visible = true;
  2456. }
  2457. // 응급수납에서 병상정보 수정할 수 있도록 프로그램수정(2019/01/28 이정택)
  2458. // 입원약정서 존재하지 않을 경우
  2459. } else {
  2460. // 최종 재원정보 복사
  2461. ds_send_icdr.copyData(ds_icdrinfo);
  2462. ds_send_icdr.setColumn(0, "ordtype", sordtype);
  2463. ds_send_icdr.setColumn(0, "indschacptstat", "A");
  2464. ds_send_icdr.setColumn(0, "fromdd", utlf_getCurrentDate());
  2465. // ICDR backup(변경사항 비교용)
  2466. ds_send_icdr_org.copyRow(0, ds_send_icdr, 0);
  2467. // 신청정보 클릭이벤트
  2468. grd_cdcrlist_oncellclick(null, null);
  2469. }
  2470. // ER / CHEMO / DSC 이외
  2471. } else {
  2472. // 최종 재원정보 복사
  2473. ds_send_icdr.copyData(ds_icdrinfo);
  2474. ds_send_icdr.setColumn(0, "ordtype", sordtype);
  2475. ds_send_icdr.setColumn(0, "indschacptstat", "A");
  2476. ds_send_icdr.setColumn(0, "fromdd", utlf_getCurrentDate());
  2477. // ICDR backup(변경사항 비교용)
  2478. ds_send_icdr_org.copyRow(0, ds_send_icdr, 0);
  2479. // 신청정보 클릭이벤트
  2480. grd_cdcrlist_oncellclick(null, null);
  2481. }
  2482. // 응급수납에서 병상정보 수정할 수 있도록 프로그램수정(2019/01/28 이정택)
  2483. var e_wardcd = ds_inhpdecilist.getColumn(0, "assgward");
  2484. if(sordtype!='E'){
  2485. btn_srch_room.visible = false;
  2486. }else if(sordtype=='E' && (e_wardcd!='3060100000' && e_wardcd!='3060200000' && e_wardcd!='3060300000')){ //MICU(3060100000), SICU(3060200000), NSICU(3060300000))
  2487. btn_srch_room.visible = false;
  2488. }
  2489. // 응급수납에서 병상정보 수정할 수 있도록 프로그램수정(2019/01/28 이정택)
  2490. }
  2491. /** 전과전실 데이터 검증 및 설정 */
  2492. function fChangeSave(){
  2493. // 필수입력항목체크
  2494. var sValCheck = fValCheck();
  2495. if (sValCheck != 'Y') {
  2496. if (sValCheck != 'N'){
  2497. sysf_messageBox(sValCheck,"I004");
  2498. }
  2499. return;
  2500. }
  2501. // 퇴원예고환자는 전과전실 승인되지 않도록 수정
  2502. if (ds_grd_inhosplist.getColumn(ds_grd_inhosplist.rowposition, "dschdclrtyn") == "Y") {
  2503. sysf_messageBox("의사에 의해 퇴원예고된 환자입니다. 전과전실 승인할 수 없습니다.", "C000");
  2504. return;
  2505. }
  2506. // 1. INPT 처리 start
  2507. // 입원등록정보 설정 : 전과 + 신청상태의 경우에만 INPT에 바로반영 (전실 or 전과+전실은 간호 확인후 원무IF로 반영)
  2508. // 단, ICDR의 내역중 가장 최근내용이 수정되었을때만 반영해야 한다. ( TODD가 99991231인경우만 )
  2509. if ( ds_send_icdr.getColumn(0, "acptflagcd") == "1" && ds_send_icdr.getColumn(0, "appflagcd") == "2" ) {
  2510. if ( ds_send_icdr.getColumn(0, "todd") == '99991231' ){
  2511. ds_send_inpt.setColumn(0, "orddeptcd", ds_send_icdr.getColumn(0, "orddeptcd"));
  2512. ds_send_inpt.setColumn(0, "medispclid", ds_send_icdr.getColumn(0, "medispclid"));
  2513. ds_send_inpt.setColumn(0, "atdoctid", ds_send_icdr.getColumn(0, "atdoctid"));
  2514. ds_send_inpt.setColumn(0, "specordyn", ds_send_icdr.getColumn(0, "specordyn"));
  2515. // 응급실 정보 설정
  2516. if( ds_send_icdr.getColumn(0, "ordtype") == 'E' ){
  2517. ds_send_inpt.setColumn(0, "erorddeptcd", ds_send_icdr.getColumn(0, "orddeptcd"));
  2518. ds_send_inpt.setColumn(0, "ermedispclid", ds_send_icdr.getColumn(0, "medispclid"));
  2519. }
  2520. ds_send_inpt.setColumn(0, "wardcd", ds_send_icdr.getColumn(0, "wardcd"));
  2521. ds_send_inpt.setColumn(0, "roomcd", ds_send_icdr.getColumn(0, "roomcd"));
  2522. ds_send_inpt.setColumn(0, "bedcd", ds_send_icdr.getColumn(0, "bedcd"));
  2523. ds_send_inpt.setColumn(0, "roomgrdecd", ds_send_icdr.getColumn(0, "roomgrdecd"));
  2524. ds_send_inpt.setColumn(0, "roomtypecd", ds_send_icdr.getColumn(0, "roomtypecd"));
  2525. }
  2526. }
  2527. // INPT 변경여부 설정
  2528. if (lf_compareNodeVal(ds_send_inpt, ds_send_inpt_org) == true) {
  2529. inpt_flag = 'U';
  2530. } else {
  2531. inpt_flag = null;
  2532. }
  2533. ds_send_inpt.addColumn("status", "string", 256);
  2534. ds_send_inpt.setColumn(0, "status", inpt_flag);
  2535. // 1. INPT 처리 end
  2536. // 2. ICDR 처리 start
  2537. // 병동,병실,등급,형태,진료과,전문의,주치의,특진여부를 비교해서 최종이력과 변경승인하려는 내역이 모두 같으면 승인처리하지 않는다. 2007.09.04 홍영표
  2538. // Start-----------------------------------------------------------------
  2539. var schngflag = 'N'; // 주요항목변경여부
  2540. // 변경후 병실정보
  2541. var sicdr_wardcd = ds_send_icdr.getColumn(0, "wardcd");
  2542. var sicdr_roomcd = ds_send_icdr.getColumn(0, "roomcd");
  2543. var sicdr_bedcd = ds_send_icdr.getColumn(0, "bedcd");
  2544. var sicdr_roomgrdecd = ds_send_icdr.getColumn(0, "roomgrdecd");
  2545. var sicdr_roomtypecd = ds_send_icdr.getColumn(0, "roomtypecd");
  2546. // 변경후 진료과정보
  2547. var sicdr_orddeptcd = ds_send_icdr.getColumn(0, "orddeptcd");
  2548. var sicdr_medispclid = ds_send_icdr.getColumn(0, "medispclid");
  2549. var sicdr_atdoctid = ds_send_icdr.getColumn(0, "atdoctid");
  2550. var sicdr_specordyn = ds_send_icdr.getColumn(0, "specordyn");
  2551. // 변경전 병실정보
  2552. var sicdr2_wardcd = ds_icdrinfo.getColumn(0, "wardcd");
  2553. var sicdr2_roomcd = ds_icdrinfo.getColumn(0, "roomcd");
  2554. var sicdr2_bedcd = ds_icdrinfo.getColumn(0, "bedcd");
  2555. var sicdr2_roomgrdecd = ds_icdrinfo.getColumn(0, "roomgrdecd");
  2556. var sicdr2_roomtypecd = ds_icdrinfo.getColumn(0, "roomtypecd");
  2557. // 변경전 진료과정보
  2558. var sicdr2_orddeptcd = ds_icdrinfo.getColumn(0, "orddeptcd");
  2559. var sicdr2_medispclid = ds_icdrinfo.getColumn(0, "medispclid");
  2560. var sicdr2_atdoctid = ds_icdrinfo.getColumn(0, "atdoctid");
  2561. var sicdr2_specordyn = ds_icdrinfo.getColumn(0, "specordyn");
  2562. if (sicdr_wardcd != sicdr2_wardcd){
  2563. schngflag = 'Y';
  2564. } else if (sicdr_roomcd != sicdr2_roomcd){
  2565. schngflag = 'Y';
  2566. } else if (sicdr_bedcd != sicdr2_bedcd){
  2567. schngflag = 'Y';
  2568. } else if (sicdr_roomgrdecd != sicdr2_roomgrdecd){
  2569. schngflag = 'Y';
  2570. } else if (sicdr_roomtypecd != sicdr2_roomtypecd){
  2571. schngflag = 'Y';
  2572. } else if (sicdr_orddeptcd != sicdr2_orddeptcd){
  2573. schngflag = 'Y';
  2574. } else if (sicdr_medispclid != sicdr2_medispclid){
  2575. schngflag = 'Y';
  2576. } else if (sicdr_atdoctid != sicdr2_atdoctid){
  2577. schngflag = 'Y';
  2578. } else if (sicdr_specordyn != sicdr2_specordyn){
  2579. schngflag = 'Y';
  2580. }
  2581. if (schngflag == 'N'){
  2582. sysf_messageBox("필수 변경내역(병동,병실,병상,등급,형태,진료과,담당교수,주치의,특진여부)중 \n변경된 내역이 ","I004");
  2583. return;
  2584. }
  2585. // ICDR변경내역은 상기로직에 의해 무조건 존재
  2586. icdr_flag = 'I';
  2587. ds_send_icdr.setColumn(0, "status", icdr_flag);
  2588. // 전실신청일 경우 빈병상 체크 한번 더 함
  2589. if ( ds_send_icdr.getColumn(0, "appflagcd") == "1" || ds_send_icdr.getColumn(0, "appflagcd") == "3") {
  2590. // 병동 -> 응급실 전실의 경우 응급실의료진 승인처리필요
  2591. if (ds_send_icdr.getColumn(0, "appflagcd") == "1"
  2592. && ds_send_icdr.getColumn(0, "wardcd") == "2280200000") {
  2593. sysf_messageBox("병동 → 응급실 전실의 경우 의료진의 승인이 필요합니다. \r\n(원무팀 승인불가)", "C000");
  2594. return false;
  2595. }
  2596. //빈병상 체크
  2597. var pid = ds_send_icdr.getColumn(0, "pid");
  2598. var wardcd = ds_send_icdr.getColumn(0, "wardcd");
  2599. var roomcd = ds_send_icdr.getColumn(0, "roomcd");
  2600. var bedcd = ds_send_icdr.getColumn(0, "bedcd");
  2601. var roomtypecd = ds_send_icdr.getColumn(0, "roomtypecd");
  2602. if (fRoomBedCntCheck(pid, wardcd, roomcd, bedcd, roomtypecd) == false) {
  2603. return false;
  2604. }
  2605. }
  2606. var adrv_pid = ds_inhpdecilist.getColumn(0, "pid");
  2607. var adrv_erreglyn = ds_inhpdecilist.getColumn(0, "erreglyn");
  2608. if (adrv_pid != null){
  2609. ds_send_adrv.setColumn(0, "pid", ds_inhpdecilist.getColumn(0, "pid"));
  2610. ds_send_adrv.setColumn(0, "inrsrvacptdd", ds_inhpdecilist.getColumn(0, "inrsrvacptdd"));
  2611. ds_send_adrv.setColumn(0, "inrsrvacptseqno", ds_inhpdecilist.getColumn(0, "inrsrvacptseqno"));
  2612. ds_send_adrv.setColumn(0, "orddeptcd", ds_inhpdecilist.getColumn(0, "orddeptcd"));
  2613. ds_send_adrv.setColumn(0, "inpt_indd", ds_send_icdr.getColumn(0, "indd"));
  2614. ds_send_adrv.setColumn(0, "inpt_cretno", ds_send_icdr.getColumn(0, "cretno"));
  2615. ds_send_adrv.setColumn(0, "inpt_drgyn", ds_inhpdecilist.getColumn(0, "drgyn"));
  2616. ds_send_adrv.setColumn(0, "inpt_drgno", ds_inhpdecilist.getColumn(0, "drgno"));
  2617. }
  2618. var inpt_hngnm = ds_grd_inhosplist.getColumn(ds_grd_inhosplist.rowposition, "hngnm");
  2619. var icdr_fromdd = ds_send_icdr.getColumn(0, "fromdd");
  2620. // 응급실이나 DSC환자의 입원일경우 사용자에게 메세지로 최종 확인한다.
  2621. if (adrv_erreglyn != null ){
  2622. var smsgparm = "";
  2623. if (adrv_erreglyn == "E") {
  2624. smsgparm = "응급실";
  2625. } else if (adrv_erreglyn == "D") {
  2626. smsgparm = "DSC/CHEMO/DIC";
  2627. }
  2628. var smsgrtn = sysf_messageBox("[" + inpt_hngnm + " (" + smsgparm + ")]환자를 " + "[" + icdr_fromdd + "]일자로 입원등록 하시겠습니까?", "Q");
  2629. if (smsgrtn == "6"){
  2630. fSaveSubmit(); // 저장sumit
  2631. } else {
  2632. return;
  2633. }
  2634. } else {
  2635. fSaveSubmit(); // 저장sumit
  2636. }
  2637. // 버튼초기화
  2638. fSetButton();
  2639. }
  2640. /** 신청정보 클릭 */
  2641. function grd_cdcrlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  2642. {
  2643. var iCurrentRow = grd_cdcrlist.currentrow;
  2644. var sAppflagcd = ds_grd_cdcrlist.getColumn(iCurrentRow, "appflagcd");
  2645. var sAcptflagcd = ds_grd_cdcrlist.getColumn(iCurrentRow, "acptflagcd");
  2646. // 공통정보
  2647. ds_send_icdr.setColumn(0, "appflagcd", sAppflagcd);
  2648. ds_send_icdr.setColumn(0, "acptflagcd", sAcptflagcd);
  2649. ds_send_icdr.setColumn(0, "seqno", ds_grd_cdcrlist.getColumn(iCurrentRow, "seqno"));
  2650. // 전과정보 defalut
  2651. ds_send_icdr.setColumn(0, "orddeptcd", ds_icdrinfo.getColumn(0, "orddeptcd"));
  2652. ds_send_icdr.setColumn(0, "medispclid", ds_icdrinfo.getColumn(0, "medispclid"));
  2653. ds_send_icdr.setColumn(0, "atdoctid", ds_icdrinfo.getColumn(0, "atdoctid"));
  2654. ds_send_icdr.setColumn(0, "specordyn", ds_icdrinfo.getColumn(0, "specordyn"));
  2655. // 전실정보 default
  2656. ds_send_icdr.setColumn(0, "wardcd", ds_icdrinfo.getColumn(0, "wardcd"));
  2657. ds_send_icdr.setColumn(0, "roomcd", ds_icdrinfo.getColumn(0, "roomcd"));
  2658. ds_send_icdr.setColumn(0, "bedcd", ds_icdrinfo.getColumn(0, "bedcd"));
  2659. ds_send_icdr.setColumn(0, "roomgrdecd", ds_icdrinfo.getColumn(0, "roomgrdecd"));
  2660. ds_send_icdr.setColumn(0, "roomtypecd", ds_icdrinfo.getColumn(0, "roomtypecd"));
  2661. if (sAppflagcd == "1") { // 전실신청 - 진료과 정보는 original을 사용하고 병실정보만 셋팅
  2662. ds_send_icdr.setColumn(0, "wardcd", ds_grd_cdcrlist.getColumn(iCurrentRow, "chngwardcd"));
  2663. ds_send_icdr.setColumn(0, "roomcd", ds_grd_cdcrlist.getColumn(iCurrentRow, "chngroomcd"));
  2664. ds_send_icdr.setColumn(0, "bedcd", ds_grd_cdcrlist.getColumn(iCurrentRow, "chngbedcd"));
  2665. ds_send_icdr.setColumn(0, "roomgrdecd", ds_grd_cdcrlist.getColumn(iCurrentRow, "chngroomgrde"));
  2666. ds_send_icdr.setColumn(0, "roomtypecd", ds_grd_cdcrlist.getColumn(iCurrentRow, "chngroomtype"));
  2667. ds_send_icdr.setColumn(0, "oxyyn", ds_grd_cdcrlist.getColumn(iCurrentRow, "oxyyn"));
  2668. ds_send_icdr.setColumn(0, "suctyn", ds_grd_cdcrlist.getColumn(iCurrentRow, "suctyn"));
  2669. ds_send_icdr.setColumn(0, "prestremcd", ds_grd_cdcrlist.getColumn(iCurrentRow, "prestremcd"));
  2670. ds_send_icdr.setColumn(0, "chngprestrem", ds_grd_cdcrlist.getColumn(iCurrentRow, "chngprestrem"));
  2671. }
  2672. if (sAppflagcd == "2") { // 전과신청 - 병실정보는 original을 사용하고 진료과정보만 셋팅
  2673. ds_send_icdr.setColumn(0, "orddeptcd", ds_grd_cdcrlist.getColumn(iCurrentRow, "chngorddeptcd"));
  2674. ds_send_icdr.setColumn(0, "medispclid", ds_grd_cdcrlist.getColumn(iCurrentRow, "chngmedispclid"));
  2675. //담당의 구분 조건 추가 19.08.29 임승주
  2676. if(ds_grd_cdcrlist.getColumn(iCurrentRow, "chngatdoctid") == "-")
  2677. {
  2678. rdo_attend.value="N";
  2679. cmb_atdoctid.enable=false;
  2680. }
  2681. else
  2682. {
  2683. rdo_attend.value="Y";
  2684. cmb_atdoctid.enable= true;
  2685. }
  2686. ds_send_icdr.setColumn(0, "atdoctid", ds_grd_cdcrlist.getColumn(iCurrentRow, "chngatdoctid"));
  2687. ds_send_icdr.setColumn(0, "specordyn", ds_grd_cdcrlist.getColumn(iCurrentRow, "specordyn"));
  2688. }
  2689. if (sAppflagcd == "3") { // 전과+전실신청
  2690. ds_send_icdr.setColumn(0, "orddeptcd", ds_grd_cdcrlist.getColumn(iCurrentRow, "chngorddeptcd"));
  2691. ds_send_icdr.setColumn(0, "medispclid", ds_grd_cdcrlist.getColumn(iCurrentRow, "chngmedispclid"));
  2692. //담당의 구분 조건 추가 19.08.29 임승주
  2693. if(ds_grd_cdcrlist.getColumn(iCurrentRow, "chngatdoctid") == "-")
  2694. {
  2695. rdo_attend.value="N";
  2696. cmb_atdoctid.enable=false;
  2697. }
  2698. else
  2699. {
  2700. rdo_attend.value="Y";
  2701. cmb_atdoctid.enable= true;
  2702. }
  2703. ds_send_icdr.setColumn(0, "atdoctid", ds_grd_cdcrlist.getColumn(iCurrentRow, "chngatdoctid"));
  2704. ds_send_icdr.setColumn(0, "specordyn", ds_grd_cdcrlist.getColumn(iCurrentRow, "specordyn"));
  2705. ds_send_icdr.setColumn(0, "wardcd", ds_grd_cdcrlist.getColumn(iCurrentRow, "chngwardcd"));
  2706. ds_send_icdr.setColumn(0, "roomcd", ds_grd_cdcrlist.getColumn(iCurrentRow, "chngroomcd"));
  2707. ds_send_icdr.setColumn(0, "bedcd", ds_grd_cdcrlist.getColumn(iCurrentRow, "chngbedcd"));
  2708. ds_send_icdr.setColumn(0, "roomgrdecd", ds_grd_cdcrlist.getColumn(iCurrentRow, "chngroomgrde"));
  2709. ds_send_icdr.setColumn(0, "roomtypecd", ds_grd_cdcrlist.getColumn(iCurrentRow, "chngroomtype"));
  2710. ds_send_icdr.setColumn(0, "oxyyn", ds_grd_cdcrlist.getColumn(iCurrentRow, "oxyyn"));
  2711. ds_send_icdr.setColumn(0, "suctyn", ds_grd_cdcrlist.getColumn(iCurrentRow, "suctyn"));
  2712. ds_send_icdr.setColumn(0, "prestremcd", ds_grd_cdcrlist.getColumn(iCurrentRow, "prestremcd"));
  2713. ds_send_icdr.setColumn(0, "chngprestrem", ds_grd_cdcrlist.getColumn(iCurrentRow, "chngprestrem"));
  2714. }
  2715. fComboNodeSet(0);
  2716. fSetButton(sAcptflagcd);
  2717. }
  2718. /** 조회조건 입력 시 */
  2719. function ipt_srchcond2_onkeydown(obj:Edit, e:KeyEventInfo)
  2720. {
  2721. // 조회버튼 클릭 이벤트 발생
  2722. if (e.keycode == "13") {
  2723. btn_srch.click();
  2724. }
  2725. }
  2726. /** 감염내과 승인여부 설정 */
  2727. function fCnstSet(curruntrow){
  2728. ds_icdrinfo.setColumn(0, "cnstcnfm", ds_grd_inhosplist.getColumn(curruntrow, "cnstcnfm"));
  2729. ds_icdrinfo.setColumn(0, "cnstfromdd", ds_grd_inhosplist.getColumn(curruntrow, "cnstfromdd"));
  2730. ds_icdrinfo.setColumn(0, "cnsttodd", ds_grd_inhosplist.getColumn(curruntrow, "cnsttodd"));
  2731. ds_icdrinfo.setColumn(0, "preroomcd", ds_grd_inhosplist.getColumn(curruntrow, "preroomcd"));
  2732. ds_icdrinfo.setColumn(0, "cnstroomcd", ds_grd_inhosplist.getColumn(curruntrow, "cnstroomcd"));
  2733. }
  2734. /** 진료과 변경 시 */
  2735. function cmb_orddeptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  2736. {
  2737. fComboNodeSet(1);
  2738. }
  2739. /** 병실형태 변경 시 */
  2740. function cmb_roomtypecd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  2741. {
  2742. fComboNodeSet(6);
  2743. }
  2744. /** 승인 시 필수입력값 체크 */
  2745. function fValCheck(){
  2746. var rtn = "Y";
  2747. // 가퇴원자나 퇴원자는 유형변경을 막는다.
  2748. var sindschacptstat = ds_grd_inhosplist.getColumn(ds_grd_inhosplist.rowposition, "indschacptstat");
  2749. if (sindschacptstat == "D" || sindschacptstat == "T" ){
  2750. sysf_messageBox("가퇴원이나 퇴원중인 환자는 재원변경을 ","E001");
  2751. rtn = "N";
  2752. return rtn;
  2753. }
  2754. // 퇴원심사진행상태 체크. 2007.09.03 홍영표
  2755. var sdschjudgprcsstat = ds_grd_inhosplist.getColumn(ds_grd_inhosplist.rowposition, "dschjudgprcsstat");
  2756. if (sdschjudgprcsstat != "A" ){
  2757. sysf_messageBox("퇴원심사가 진행중이거나 완료되어 재원변경을 ","E001");
  2758. rtn = "N";
  2759. return rtn;
  2760. }
  2761. // 전과전실적용일자는 오늘보다 클수 없다..
  2762. if(ds_send_icdr.getColumn(0, "fromdd") > utlf_getCurrentDate()){
  2763. sysf_messageBox("적용일자는 오늘일자보다 클수 ", "I004");
  2764. rtn = "N";
  2765. return rtn;
  2766. }
  2767. // 최종중간청구일자 이전 데이터는 수정할수 없다. 2007.09.03 홍영표
  2768. var slastmdlclamdd = ds_grd_inhosplist.getColumn(ds_grd_inhosplist.rowposition, "lastmdlclamdd");
  2769. if (slastmdlclamdd != null && slastmdlclamdd != "" && slastmdlclamdd != "-" && slastmdlclamdd != "00000000"){
  2770. if (ds_send_icdr.getColumn(0, "fromdd") <= slastmdlclamdd){
  2771. sysf_messageBox("최종중간청구일자 이전 데이터는 수정 할수 ", "I004");
  2772. rtn = "N";
  2773. return rtn;
  2774. }
  2775. }
  2776. var icdr_pid = ds_send_icdr.getColumn(0, "pid");
  2777. var icdr_indd = ds_send_icdr.getColumn(0, "indd");
  2778. var icdr_cretno = ds_send_icdr.getColumn(0, "cretno");
  2779. var icdr_mskind = ds_send_icdr.getColumn(0, "mskind");
  2780. var icdr_histstat = ds_send_icdr.getColumn(0, "histstat");
  2781. var icdr_wardcd = ds_send_icdr.getColumn(0, "wardcd");
  2782. var icdr_roomcd = ds_send_icdr.getColumn(0, "roomcd");
  2783. var icdr_bedcd = ds_send_icdr.getColumn(0, "bedcd");
  2784. var icdr_roomgrdecd = ds_send_icdr.getColumn(0, "roomgrdecd");
  2785. var icdr_roomtypecd = ds_send_icdr.getColumn(0, "roomtypecd");
  2786. var icdr_orddeptcd = ds_send_icdr.getColumn(0, "orddeptcd");
  2787. var icdr_medispclid = ds_send_icdr.getColumn(0, "medispclid");
  2788. var icdr_atdoctid = ds_send_icdr.getColumn(0, "atdoctid");
  2789. var icdr_specordyn = ds_send_icdr.getColumn(0, "specordyn");
  2790. var icdr_fromdd = ds_send_icdr.getColumn(0, "fromdd");
  2791. var icdr_todd = ds_send_icdr.getColumn(0, "todd");
  2792. if (icdr_pid == null || icdr_pid == "") {
  2793. rtn = "환자등록번호가";
  2794. } else if (icdr_indd == null || icdr_indd == "") {
  2795. rtn = "입원일자가";
  2796. } else if (icdr_cretno == null || icdr_cretno == "") {
  2797. rtn = "입원등록키가";
  2798. } else if (icdr_mskind == null || icdr_mskind == "") {
  2799. rtn = "주부유형이";
  2800. } else if (icdr_histstat == null || icdr_histstat == "") {
  2801. rtn = "상태값이";
  2802. } else if (icdr_wardcd == null || icdr_wardcd == "" || icdr_wardcd == "-" || icdr_wardcd == "0000000000") {
  2803. rtn = "병동정보가";
  2804. } else if (icdr_roomcd == null || icdr_roomcd == "" || icdr_roomcd == "-" || icdr_roomcd == "000000" ) {
  2805. rtn = "병실정보가";
  2806. } else if (icdr_bedcd == null || icdr_bedcd == "" || icdr_bedcd == "-" || (icdr_bedcd == "000000" && (icdr_roomcd != "ERBD" && icdr_roomcd != "DSC") ) ) { //응급실/DSC 전과일땐 병상이 000000 이어도 체크 제외
  2807. rtn = "병상정보가";
  2808. } else if (icdr_roomgrdecd == null || icdr_roomgrdecd == "" || icdr_roomgrdecd == "-") {
  2809. rtn = "병실등급이";
  2810. } else if (icdr_roomtypecd == null || icdr_roomtypecd == "" || icdr_roomtypecd == "-") {
  2811. rtn = "병실형태가";
  2812. } else if (icdr_orddeptcd == null || icdr_orddeptcd == "") {
  2813. rtn = "진료부서코드가";
  2814. } else if (icdr_medispclid == null || icdr_medispclid == ""){
  2815. rtn = "담당교수코드가";
  2816. } else if (icdr_specordyn == null || icdr_specordyn == ""){
  2817. rtn = "특진여부가";
  2818. } else if (icdr_fromdd == null || icdr_fromdd == ""){
  2819. rtn = "적용일자가";
  2820. } else if (icdr_todd == null || icdr_todd == ""){
  2821. rtn = "종료일자가";
  2822. }
  2823. return rtn;
  2824. }
  2825. /** 저장 */
  2826. function fSaveSubmit(){
  2827. // INPT / ICDR 변경내역이 있는 경우
  2828. if (inpt_flag == 'U' || icdr_flag == 'U' || icdr_flag == 'I' ) {
  2829. // 데이터형 지정
  2830. dsf_setTypeFormat(ds_send_inpt, "cretno:INT^seqno:INT^medcaredayno:INT");
  2831. dsf_setTypeFormat(ds_send_icdr, "cretno:INT^seqno:INT");
  2832. dsf_setTypeFormat(ds_send_adrv, "inrsrvacptseqno:INT^inpt_cretno:INT");
  2833. // 저장
  2834. var oParam = {};
  2835. oParam.id = "TXPMI01601";
  2836. oParam.service = "ipatmngtapp.InhospUpdt";
  2837. oParam.method = "reqSetInhospUpdt2";
  2838. oParam.inds = "s_inpt=ds_send_inpt s_icdr=ds_send_icdr s_adrv=ds_send_adrv";
  2839. oParam.outds = "ds_saveresult=result";
  2840. oParam.async = false;
  2841. oParam.callback = "callback"
  2842. tranf_submit(oParam);
  2843. // 정상처리된 경우
  2844. if (arErrorCode.pop("TXPMI01601") > -1) {
  2845. var adrv_erreglyn = ds_inhpdecilist.getColumn(0, "erreglyn");
  2846. // 응급실/DSC/CHEMO/DIC에서 병동으로 입원결정승인시 각종 출력물 출력
  2847. if (adrv_erreglyn == "D" || adrv_erreglyn == "E") {
  2848. // 입퇴원 결정서
  2849. ds_hdn_printers.setColumn(0, "printflag", "Y");
  2850. //자보환자안내문
  2851. fAutoPrint();
  2852. // 약정서 존재하지 않을 경우에만 출력하도록 설정
  2853. if (ds_send_inpt.getColumn(0, "agmttype") != "2") {
  2854. //입원약정서
  2855. button20.click();
  2856. }
  2857. // 정신건강의학과 처리 시 통지서 / 수령확인서 출력
  2858. if (ds_send_icdr.getColumn(0, "orddeptcd") == "2030000000") {
  2859. // 입원통지서 출력
  2860. fPrintInNoti(ds_send_inpt.getColumn(0, "pid"),
  2861. ds_send_inpt.getColumn(0, "indd"),
  2862. ds_send_inpt.getColumn(0, "cretno"));
  2863. // 입원통지서 수령확인서 출력
  2864. fPrintInNotiConfirm(ds_send_inpt.getColumn(0, "pid"),
  2865. ds_send_inpt.getColumn(0, "indd"),
  2866. ds_send_inpt.getColumn(0, "cretno"),
  2867. ds_send_inpt.getColumn(0, "hngnm"));
  2868. }
  2869. //개인정보이용동의서가 출력되지 않았을 경우 동의서 자동출력 by 조중래 20171121
  2870. if (ds_send_inpt.getColumn(0, 'scanyn') == 'X') {
  2871. //개인정보이용 동의서 전자동의서를 위한 처리로직 추가 by 조중래 20130305
  2872. var ocrtype = 'O';
  2873. if (ds_pPK018.getColumn(ds_pPK018.findRow('cdid', ipaddress), 'cdnm') == 'Y') {
  2874. if (sysf_messageBox('개인정보이용동의서', 'Q017') == '6') {
  2875. ocrtype = 'S';
  2876. }
  2877. }
  2878. //구분에 맞춰 폼코드 처리(1:일반약정서 / 2:기간약정서 / 3:개인정보이용동의서)
  2879. var formcd = oDsRsltRef.getColumn(oDsRsltRef.findRow('cdseqno', '3'), "hardcd");
  2880. fPerPrintOCR(formcd,
  2881. ds_send_inpt.getColumn(0, 'pid'),
  2882. ds_send_inpt.getColumn(0, 'indd'),
  2883. ds_send_inpt.getColumn(0, 'cretno'),
  2884. ds_send_inpt.getColumn(0, 'ordtype'),
  2885. ocrtype);
  2886. }
  2887. //영상정보처리기기 수집/이용 동의서 출력되지 않았을 경우 동의서 자동출력 by 조중래 20160928
  2888. if (sysf_getUserInfo('dutplceinstcd') == '031') {
  2889. if (ds_send_inpt.getColumn(0, 'cctvscanyn') == 'X') {
  2890. var ocrtype = "O";
  2891. if (ds_pPK018.getColumn(ds_pPK018.findRow('cdid', ipaddress), 'cdnm') == 'Y') {
  2892. if (sysf_messageBox('영상정보처리기기수집/이용동의서', 'Q017') == '6') {
  2893. ocrtype = 'S';
  2894. }
  2895. }
  2896. //구분에 맞춰 폼코드 처리(1:일반약정서 / 2:기간약정서 / 3:개인정보이용동의서 / 12:영상정보처리기기수집/이용동의서)
  2897. var formcd = oDsRsltRef.getColumn(oDsRsltRef.findRow('cdseqno', '12'), 'hardcd');
  2898. // COR 출력의 경우
  2899. if (ocrtype == "O") {
  2900. fPerPrintOCR(formcd,
  2901. ds_send_inpt.getColumn(0, 'pid'),
  2902. ds_send_inpt.getColumn(0, 'indd'),
  2903. ds_send_inpt.getColumn(0, 'cretno'),
  2904. ds_send_inpt.getColumn(0, 'ordtype'),
  2905. ocrtype);
  2906. }
  2907. else {
  2908. ds_temp_consent.clearData();
  2909. dsf_makeValue(ds_temp_consent, 'pid', 'string',ds_send_inpt.getColumn(0, 'pid'));
  2910. dsf_makeValue(ds_temp_consent, 'orddd', 'string',ds_send_inpt.getColumn(0, 'indd'));
  2911. dsf_makeValue(ds_temp_consent, 'cretno', 'string',ds_send_inpt.getColumn(0, 'cretno'));
  2912. dsf_makeValue(ds_temp_consent, 'ordtype', 'string', ds_send_inpt.getColumn(0, 'ordtype'));
  2913. dsf_makeValue(ds_temp_consent, 'flag', 'string', 'C');
  2914. dsf_makeValue(ds_temp_consent, 'formcd', 'string', formcd);
  2915. dsf_makeValue(ds_temp_consent, 'tag1', 'string',ds_send_inpt.getColumn(0, 'hngnm'));
  2916. var birthdd = String(ds_send_inpt.getColumn(0, 'rrgstno'));
  2917. // 19xx
  2918. if (birthdd.substr(7, 1) == "1" ||
  2919. birthdd.substr(7, 1) == "2" ||
  2920. birthdd.substr(7, 1) == "5" ||
  2921. birthdd.substr(7, 1) == "6") {
  2922. birthdd = "19" + birthdd.substr(0, 2) + "년 " + birthdd.substr(2, 2) + "월 " +
  2923. birthdd.substr(4, 2) + "일";
  2924. // 20xx
  2925. }
  2926. else {
  2927. birthdd = "20" + birthdd.substr(0, 2) + "년 " + birthdd.substr(2, 2) + "월 " +
  2928. birthdd.substr(4, 2) + "일";
  2929. }
  2930. dsf_makeValue(ds_temp_consent, 'tag2', 'string', birthdd);
  2931. fPrintOcrConsent(ds_temp_consent);
  2932. }
  2933. }
  2934. // 응급병동 입원시 응급입원실 입실 안내문 받도록 수정 ( 2019/03/12 이정택 )
  2935. if(ds_send_icdr.getColumn(0, "wardcd")=='3050170000'){
  2936. var ocrtype = 'O';
  2937. if (ds_pPK018.getColumn(ds_pPK018.findRow('cdid', ipaddress), 'cdnm') == 'Y') {
  2938. if (sysf_messageBox('응급입원실 입실 안내문', 'Q017') == '6') {
  2939. ocrtype = 'S';
  2940. }
  2941. }
  2942. //구분에 맞춰 폼코드 처리(19 : K- 응급입원실 입실 안내문)
  2943. var formcd = oDsRsltRef.getColumn(oDsRsltRef.findRow('cdseqno', '19'), "hardcd");
  2944. fPerPrintOCR(formcd,
  2945. ds_send_inpt.getColumn(0, 'pid'),
  2946. ds_send_inpt.getColumn(0, 'indd'),
  2947. ds_send_inpt.getColumn(0, 'cretno'),
  2948. ds_send_inpt.getColumn(0, 'ordtype'),
  2949. ocrtype);
  2950. }
  2951. // 응급병동 입원시 응급입원실 입실 안내문 받도록 수정 ( 2019/03/12 이정택 )
  2952. }
  2953. }
  2954. // 전실/전과전실의 경우 상급병실신청용 팝업표시
  2955. if (ds_send_icdr.getColumn(0, "appflagcd") == "1"
  2956. || ds_send_icdr.getColumn(0, "appflagcd") == "3") {
  2957. // 간호간병통합서비스 병동 입원 시 동의서 출력
  2958. if (ds_send_icdr.getColumn(0, "roomtypecd") == "G02") {
  2959. var ocrtype = "O";
  2960. if (ds_pPK018.getColumn(ds_pPK018.findRow('cdid', ipaddress), 'cdnm') == "Y") {
  2961. if (sysf_messageBox("간호간병통합서비스 병동 입원동의서", "Q017") == "6") {
  2962. ocrtype = "S";
  2963. }
  2964. }
  2965. //구분에 맞춰 폼코드 처리(14 : 간호간병통합서비스 병동 입원동의서 )
  2966. var formcd = oDsRsltRef.getColumn(oDsRsltRef.findRow('cdseqno', '14'), "hardcd");
  2967. // COR 출력의 경우
  2968. if (ocrtype == "O") {
  2969. fPerPrintOCR(formcd,
  2970. ds_send_inpt.getColumn(0, 'pid'),
  2971. ds_send_inpt.getColumn(0, 'indd'),
  2972. ds_send_inpt.getColumn(0, 'cretno'),
  2973. 'I',
  2974. ocrtype);
  2975. }
  2976. else {
  2977. ds_temp_consent.clearData();
  2978. dsf_makeValue(ds_temp_consent, "pid", 'string', ds_send_inpt.getColumn(0, "pid"));
  2979. dsf_makeValue(ds_temp_consent, "orddd", 'string', ds_send_inpt.getColumn(0, "indd"));
  2980. dsf_makeValue(ds_temp_consent, "cretno", 'string', ds_send_inpt.getColumn(0, "cretno"));
  2981. dsf_makeValue(ds_temp_consent, "ordtype", 'string', ds_send_inpt.getColumn(0, 'ordtype'));
  2982. dsf_makeValue(ds_temp_consent, "flag", 'string', "W"); // W:간호간병통합서비스 병동 입원동의서
  2983. dsf_makeValue(ds_temp_consent, "formcd", 'string', formcd);
  2984. var currentDate = utlf_getCurrentDate();
  2985. dsf_makeValue(ds_temp_consent, "tag1", 'string', currentDate.substr(0, 4));
  2986. dsf_makeValue(ds_temp_consent, "tag2", 'string', currentDate.substr(4, 2));
  2987. dsf_makeValue(ds_temp_consent, "tag3", 'string', currentDate.substr(6, 2));
  2988. fPrintOcrConsent(ds_temp_consent);
  2989. }
  2990. }
  2991. var diffamt = 0;
  2992. var roomgrdecd = ds_send_icdr.getColumn(0, "roomgrdecd");
  2993. // 병실등급으로 병실차액을 가져옴
  2994. for ( i = 0; i < ds_init_roomgrdecd.rowcount; i++) {
  2995. if (ds_init_roomgrdecd.getColumn(i, "cd") == roomgrdecd) {
  2996. // 병실차액 설정
  2997. diffamt = ds_init_roomgrdecd.getColumn(i, "cdamt");
  2998. break;
  2999. }
  3000. }
  3001. // 실료차가 있는 병실이거나, 격리병실의 경우에는 상급병실신청팝업
  3002. if (diffamt > 0 || roomgrdecd == 'S0701') {
  3003. fUpRoomSignMngt(ds_send_icdr.getColumn(0, "pid"), ds_send_icdr.getColumn(0, "indd"), "Y");
  3004. }
  3005. // 입원전담전문의 병동 입원동의서 처리 by 조중래 20180911
  3006. // 45병동 입원전담전문의 병동 입원동의서는 팝업 안뜨게 수정 임승주 20200323
  3007. if (Combo04.text == "Y"
  3008. && ds_send_inpt.getColumn(0, "insukind") == "11" && ds_send_icdr.getColumn(0, "wardcd") != "3050314000") {
  3009. var ocrtype = "O";
  3010. if (ds_pPK018.getColumn(ds_pPK018.findRow('cdid', ipaddress), 'cdnm') == "Y") {
  3011. if (sysf_messageBox("입원전담전문의 병동 입원동의서", "Q017") == "6") {
  3012. ocrtype = "S";
  3013. }
  3014. }
  3015. //구분에 맞춰 폼코드 처리(18 : 입원전담전문의 병동 입원동의서 )
  3016. var formcd = oDsRsltRef.getColumn(oDsRsltRef.findRow('cdseqno', '18'), "hardcd");
  3017. // COR 출력의 경우
  3018. if (ocrtype == "O") {
  3019. fPerPrintOCR(formcd,
  3020. ds_send_inpt.getColumn(0, 'pid'),
  3021. ds_send_inpt.getColumn(0, 'indd'),
  3022. ds_send_inpt.getColumn(0, 'cretno'),
  3023. 'I',
  3024. ocrtype);
  3025. }
  3026. else {
  3027. ds_temp_consent.clearData();
  3028. dsf_makeValue(ds_temp_consent, "pid", 'string', ds_send_inpt.getColumn(0, "pid"));
  3029. dsf_makeValue(ds_temp_consent, "orddd", 'string', ds_send_inpt.getColumn(0, "indd"));
  3030. dsf_makeValue(ds_temp_consent, "cretno", 'string', ds_send_inpt.getColumn(0, "cretno"));
  3031. dsf_makeValue(ds_temp_consent, "ordtype", 'string', ds_send_inpt.getColumn(0, 'ordtype'));
  3032. dsf_makeValue(ds_temp_consent, "flag", 'string', "H"); // H:입원전담전문의 병동 입원동의서
  3033. dsf_makeValue(ds_temp_consent, "formcd", 'string', formcd);
  3034. var currentDate = utlf_getCurrentDate();
  3035. dsf_makeValue(ds_temp_consent, "tag1", 'string', ds_send_inpt.getColumn(0, "pid")); // 등록번호
  3036. dsf_makeValue(ds_temp_consent, "tag2", 'string', cmb_orddeptcd.text); // 진료과
  3037. dsf_makeValue(ds_temp_consent, "tag3", 'string', cmb_medispclid.text); // 진료의
  3038. dsf_makeValue(ds_temp_consent, "tag4", 'string', ds_send_inpt.getColumn(0, "hngnm")); // 환자성명
  3039. dsf_makeValue(ds_temp_consent, "tag5", 'string', cmb_wardcd.text + " / " + ds_send_icdr.getColumn(0, "roomcd")); // 입원병동/병실
  3040. dsf_makeValue(ds_temp_consent, "tag6", 'string', ds_send_inpt.getColumn(0, "brthdd").substr(2,2) + "/" + ds_send_inpt.getColumn(0, "brthdd").substr(4,2) + "/" + ds_send_inpt.getColumn(0, "brthdd").substr(6,2)); // 생년월일
  3041. dsf_makeValue(ds_temp_consent, "tag7", 'string', ds_send_inpt.getColumn(0, "mpphontel")); // 전화번호
  3042. dsf_makeValue(ds_temp_consent, "tag8", 'string', currentDate.substr(0, 4));
  3043. dsf_makeValue(ds_temp_consent, "tag9", 'string', currentDate.substr(4, 2));
  3044. dsf_makeValue(ds_temp_consent, "tag10", 'string', currentDate.substr(6, 2));
  3045. fPrintOcrConsent(ds_temp_consent);
  3046. }
  3047. }
  3048. }
  3049. // 전과전실의 경우 병실이 변경되므로 보호자증 / 팔찌 자동출력
  3050. if (ds_send_icdr.getColumn(0, "appflagcd") == "3") {
  3051. // 보호자증 출력
  3052. fPrintGuardianPaper("Y");
  3053. // 팔찌의 경우 자체적으로 전과전실에 대한 처리로직이 있음
  3054. button11.click();
  3055. }
  3056. // 선택진료신청서 출력로직 호출으로 변경 by 조중래 20151019
  3057. // 선택진료폐지일자 이전의 진료에 대해서만 선택진료신청서 출력 by 조중래 20171227
  3058. if (ds_pP0032.getColumn(ds_pP0032.findRowExpr("cdid == '150'"), "cdnm") > utlf_getCurrentDate()) {
  3059. fCheckSpecOrdApp();
  3060. }
  3061. // 신종코로나 관련 응급->병동 입실 환자에 대해서 문자 발송처리(2020/02/02 이정택)
  3062. if(ds_pP0032.getColumn(ds_pP0032.findRowExpr("cdid == '6620'"), "cdnm") == 'Y' && adrv_erreglyn == 'E'){
  3063. var dutplceinstcd = sysf_getUserInfo("dutplceinstcd");
  3064. var msg = "코로나-19 감염증 확산에 따른 면회금지 안내입니다.\r" +
  3065. "대구지역에 코로나-19 감염증 확진 환자가 다수 발생함에 따라 병문안객 면회를 전면 통제합니다.\r"+
  3066. "적극적인 협조를 당부드리며, 보호자도 병원 출입시 출입대장 명부를 반드시 작성하셔야 합니다.\r"+
  3067. "아래의 출입증을 발급 받으시면 내원 명부 작성이 편리하오니 협조바랍니다.\r";
  3068. var mpphontel = ds_grd_inhosplist.getColumn(ds_grd_inhosplist.rowposition, "mpphontel");
  3069. var hngnm = ds_grd_inhosplist.getColumn(ds_grd_inhosplist.rowposition, "hngnm");
  3070. var cntctel = "";
  3071. if(dutplceinstcd == '031'){
  3072. msg = msg + "경북대병원은 감염증 확산방지 및 예방을 위하여 최선을 다하겠습니다. 감사합니다.";
  3073. cntctel = "053-420-6441";
  3074. }else if(dutplceinstcd == '032'){
  3075. msg = msg + "칠곡경북대병원은 감염증 확산방지 및 예방을 위하여 최선을 다하겠습니다. 감사합니다.";
  3076. cntctel = "053-200-2114";
  3077. }
  3078. dsf_createDsRow("ds_send_recvr", [
  3079. {col:"usernm", type:"STRING", size:256, val: hngnm}
  3080. , {col:"userid", type:"STRING", size:256, val: "-"}
  3081. , {col:"mpphonno", type:"STRING", size:256, val: mpphontel}
  3082. , {col:"pid", type:"STRING", size:256, val: "-"}
  3083. , {col:"deptcd", type:"STRING", size:256, val: "-"}
  3084. ]);
  3085. dsf_createDsRow("ds_send_req", [
  3086. {col:"calltype", type:"STRING", size:256, val: ""}
  3087. , {col:"msgcnts", type:"STRING", size:256, val: msg}
  3088. , {col:"insuflag", type:"STRING", size:256, val: "-"}
  3089. , {col:"calltelno", type:"STRING", size:256, val: cntctel}
  3090. , {col:"lmstitle", type:"STRING", size:256, val: "[코로나-19 감염증 확산에 따른 면회금지 안내]"}
  3091. ]);
  3092. var oParam = {};
  3093. oParam.id = "TXZMI00402";
  3094. oParam.service = "instantmsgapp.InstantMsg";
  3095. oParam.method = "reqExeSendUserLongMessage";
  3096. oParam.inds = "recvr=ds_send_recvr req=ds_send_req";
  3097. oParam.outds = "";
  3098. oParam.async = false;
  3099. tranf_submit(oParam);
  3100. }
  3101. // 신종코로나 관련 응급->병동 입실 환자에 대해서 문자 발송처리(2020/02/02 이정택)
  3102. fQuery1();
  3103. }
  3104. } else {
  3105. sysf_messageBox("변경된 내역이 ","I004");
  3106. return;
  3107. }
  3108. }
  3109. /** 승인 */
  3110. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  3111. {
  3112. fChangeSave();
  3113. }
  3114. /** 빈병상 체크 */
  3115. function fRoomBedCntCheck(pid, wardcd, roomcd, bedcd, roomtypecd) {
  3116. if( roomtypecd == 'S01' || roomtypecd == 'S02' || roomtypecd == 'S09' ){
  3117. return true;
  3118. }
  3119. ds_send.setColumn(0, "pid", pid);
  3120. ds_send.setColumn(0, "wardcd", wardcd);
  3121. ds_send.setColumn(0, "roomcd", roomcd);
  3122. ds_send.setColumn(0, "bedcd", bedcd);
  3123. var oParam = {};
  3124. oParam.id = "TRPMI00111";
  3125. oParam.service = "ipatmngtapp.InRgst";
  3126. oParam.method = "reqGetRoomCheckInfo";
  3127. oParam.inds = "req=ds_send";
  3128. oParam.outds = "ds_rsltroom=rsltroom";
  3129. oParam.async = false;
  3130. tranf_submit(oParam);
  3131. var stat = ds_rsltroom.getColumn(0, "bedstat");
  3132. var msg = ds_rsltroom.getColumn(0, "bedstatmsg");
  3133. if( stat == 'I' || stat == 'D' || stat == 'A' || stat == 'C' ){
  3134. var retVal = sysf_messageBox("현재 입원[전실]하시려는 병상이 이미 사용중입니다. \n병상 사용여부를 확인하세요! [사유 : " + msg + "]\n계속 진행하시겠습니까? ", "Q999", "");
  3135. if( retVal == '6' ){
  3136. return true;
  3137. }
  3138. return false;
  3139. }
  3140. return true;
  3141. }
  3142. /** 자보안내문 출력 */
  3143. function fAutoPrint() {
  3144. if (ds_send_inpt.getColumn(0, "insukind") == "31") {
  3145. var print_name = sysf_getGlobalVariable("SPPAO00100_P0045_100_nm","p");
  3146. var print_tray = sysf_getGlobalVariable("SPPAO00100_P0045_100_tray","p");
  3147. //호출끝
  3148. //디폴트 프린터
  3149. if(print_name != "false"){
  3150. var inhosplistrow = ds_grd_inhosplist.rowposition
  3151. //자보환자안내문 출력
  3152. ds_autoprintinfo.setColumn(0, "ptbs_pid", ds_send_inpt.getColumn(0, "pid"));
  3153. ds_autoprintinfo.setColumn(0, "ptbs_hngnm", ds_send_inpt.getColumn(0, "hngnm"));
  3154. // 출력용 데이터 설정
  3155. var obj = new Object();
  3156. obj.user_data_XML1 = rptf_getCSVString(ds_autoprintinfo, ["ptbs_pid", "ptbs_hngnm"]);
  3157. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0;";
  3158. rptf_exeReportPreview30(["RPPMI01203"],[obj], option);
  3159. }
  3160. }
  3161. }
  3162. /** 결정서 */
  3163. function button2_onclick(obj:Button, e:ClickEventInfo)
  3164. {
  3165. // 사용안함
  3166. }
  3167. /** 입원카드재발행 */
  3168. function button14_onclick(obj:Button, e:ClickEventInfo)
  3169. {
  3170. // 사용안함
  3171. }
  3172. /** 약정서 */
  3173. function button20_onclick(obj:Button, e:ClickEventInfo)
  3174. {
  3175. var inpt_pid = ds_grd_inhosplist.getColumn(ds_grd_inhosplist.rowposition, "pid");
  3176. var inpt_orgordtype = ds_grd_inhosplist.getColumn(ds_grd_inhosplist.rowposition, "orgordtype");
  3177. if ( inpt_pid != null && inpt_pid != " " && inpt_pid != "") {
  3178. frmf_setParameter("SPPMI03200_PARM_PID", ds_grd_inhosplist.getColumn(ds_grd_inhosplist.rowposition, "pid"));
  3179. frmf_setParameter("SPPMI03200_PARM_ORDDD", ds_grd_inhosplist.getColumn(ds_grd_inhosplist.rowposition, "indd"));
  3180. frmf_setParameter("SPPMI03200_PARM_AGMTTYPE", ds_grd_inhosplist.getColumn(ds_grd_inhosplist.rowposition, "agmttype"));
  3181. frmf_setParameter("SPPMI03200_PARM_ORDDEPTCD", ds_send_icdr.getColumn(0, "orddeptcd"));
  3182. frmf_setParameter("SPPMI03200_PARM_ORDDRID", ds_send_icdr.getColumn(0, "medispclid"));
  3183. frmf_setParameter("SPPMI03200_PARM_CRETNO", ds_grd_inhosplist.getColumn(ds_grd_inhosplist.rowposition, "cretno"));
  3184. frmf_setParameter("SPPMI03200_PARM_ORDTYPE", ds_grd_inhosplist.getColumn(ds_grd_inhosplist.rowposition, "ordtype"));
  3185. frmf_modal("SPPMI03200", "SPPMI03200", '', "", '', '', '', "", "", "", "", "", "M");
  3186. } else {
  3187. sysf_messageBox("재원 중인 환자가 아닙니다.!","E999","");
  3188. return false;
  3189. }
  3190. }
  3191. /** 상급병실 */
  3192. function button3_onclick(obj:Button, e:ClickEventInfo)
  3193. {
  3194. fUpRoomSignMngt(ds_send_inpt.getColumn(0, "pid"), ds_send_inpt.getColumn(0, "indd"), "N"); // PMI001.js
  3195. }
  3196. /** 환자팔찌 */
  3197. function button11_onclick(obj:Button, e:ClickEventInfo)
  3198. {
  3199. var pid = utlf_transNullToEmpty(ds_send_inpt.getColumn(0, "pid"));
  3200. var indd = utlf_transNullToEmpty(ds_send_inpt.getColumn(0, "indd"));
  3201. var cretno = utlf_transNullToEmpty(ds_send_inpt.getColumn(0, "cretno"));
  3202. var mskind = utlf_transNullToEmpty(ds_send_inpt.getColumn(0, "mskind"));
  3203. var histstat = utlf_transNullToEmpty(ds_send_inpt.getColumn(0, "histstat"));
  3204. ds_pP0041.filter("cdid=='A02'");
  3205. var sRoomcdYN = ds_pP0041.getColumn(0, "cdnm");
  3206. ds_pP0041.filter("cdid=='A03'");
  3207. var sIsNEW = ds_pP0041.getColumn(0, "cdnm");
  3208. ds_pP0041.filter(""); // reset filter
  3209. sysf_setGlobalVariable("SPPAO00100_강제출력여부", "Y" ,"p");
  3210. lf_pmifPrintBarCode(pid,
  3211. indd,
  3212. cretno,
  3213. mskind,
  3214. histstat,
  3215. "Y",
  3216. "SMPMI00100",
  3217. "",
  3218. sRoomcdYN,
  3219. sIsNEW,
  3220. '');
  3221. sysf_setGlobalVariable("SPPAO00100_강제출력여부", "" ,"p");
  3222. }
  3223. /** 진단서 */
  3224. function button12_onclick(obj:Button, e:ClickEventInfo)
  3225. {
  3226. frmf_modal("SMMMR02300", "SMMMR02300", '', "", '', '', '', "", "", "", "", "", "M");
  3227. }
  3228. /** 선택진료 */
  3229. function button23_onclick(obj:Button, e:ClickEventInfo)
  3230. {
  3231. var inhosplistrow = ds_grd_inhosplist.rowposition;
  3232. var s_pid = ds_grd_inhosplist.getColumn(inhosplistrow, "pid");
  3233. var s_ordtype = "I";
  3234. var s_orddd = ds_send_icdr.getColumn(0, "indd");
  3235. var s_orddeptcd = ds_send_icdr.getColumn(0, "orddeptcd");
  3236. var s_orddrid = ds_send_icdr.getColumn(0, "medispclid");
  3237. var s_fromdd = ds_send_icdr.getColumn(0, "fromdd");
  3238. var s_cretno = ds_send_icdr.getColumn(0, "cretno");
  3239. var s_hngnm = ds_grd_inhosplist.getColumn(inhosplistrow, "hngnm");
  3240. var rrgstno = String(ds_grd_inhosplist.getColumn(inhosplistrow, "rrgstno"));
  3241. var s_rrgstno1 = rrgstno.substr(0,6);
  3242. var s_rrgstno2 = rrgstno.substr(6,7);
  3243. fCallSpecPopUp(s_pid,s_ordtype,s_orddd,s_orddeptcd,s_orddrid,s_fromdd,s_hngnm,s_rrgstno1,s_rrgstno2,s_cretno); // PAM.js
  3244. }
  3245. /** 환자기초정보 */
  3246. function button1_onclick(obj:Button, e:ClickEventInfo)
  3247. {
  3248. var inpt_pid = ds_send_inpt.getColumn(0, "pid");
  3249. if (!utlf_isNull(inpt_pid)) {
  3250. frmf_setParameter("SMPMC01400_PARM_PID", inpt_pid);
  3251. frmf_setParameter("SMPMC01400_PARM_SRCHCOND", "1");
  3252. }
  3253. frmf_modal("SMPMC01400", "SMPMC01400", '', "", '', '', '', "", "", "", "", "", "M");
  3254. }
  3255. /** 격리병실신청현황 */
  3256. function btn_SMASB02100_onclick(obj:Button, e:ClickEventInfo)
  3257. {
  3258. frmf_modal("SMASB02100", "SMASB02100", '', "", '', '', '', "", "", "", "", "", "M");
  3259. }
  3260. /** 보호자증 */
  3261. function button28_onclick(obj:Button, e:ClickEventInfo)
  3262. {
  3263. fPrintGuardianPaper();
  3264. }
  3265. /** 보호자증 출력용 함수 */
  3266. function fPrintGuardianPaper(aprvYN) {
  3267. var inpt_pid = ds_send_inpt.getColumn(0, "pid");
  3268. if (!utlf_isNull(inpt_pid)) {
  3269. // RFID 출력
  3270. if(ds_pP0022.getColumn(ds_pP0022.findRow('cdid', '99'), 'cdnm') == 'Y' ) {
  3271. frmf_setParameter("SPPMC06600_PID", inpt_pid);
  3272. frmf_setParameter("SPPMC06600_INDD", ds_send_inpt.getColumn(0, 'indd'));
  3273. frmf_modal("SPPMC06600", "SPPMC06600", '', "", '', '', '', "", "", "", "", "", "M");
  3274. return;
  3275. // 기존출력
  3276. } else {
  3277. //공통코드 P0045에서 프린터 명칭과 트레이 호출 - 입원보호자증
  3278. sysf_setGlobalVariable("SPPAO00100_강제출력여부", "Y" ,"p");
  3279. fGetPrintName();
  3280. sysf_setGlobalVariable("SPPAO00100_강제출력여부", "" ,"p");
  3281. var print_name = sysf_getGlobalVariable("SPPAO00100_P0045_7_nm","p");
  3282. var print_tray = sysf_getGlobalVariable("SPPAO00100_P0045_7_tray","p");
  3283. //호출끝
  3284. // 입원보호자증 출력 추후 바코드 프린터로 설정 바꿔야함
  3285. if(print_name != "false"){
  3286. ds_deciprintinfo.setColumn(0, "pid", inpt_pid);
  3287. ds_deciprintinfo.setColumn(0, "hngnm", ds_send_inpt.getColumn(0, "hngnm"));
  3288. ds_deciprintinfo.setColumn(0, "indd", ds_send_inpt.getColumn(0, "indd"));
  3289. if (aprvYN != null && aprvYN == "Y") {
  3290. ds_deciprintinfo.setColumn(0, "roomcd", ds_send_icdr.getColumn(0, "roomcd"));
  3291. fds_wardcd.filter("cd == '" + ds_send_icdr.getColumn(0, "wardcd") + "'");
  3292. var sdeptplce = fds_wardcd.getColumn(0, "deptplce2");
  3293. fds_wardcd.filter(""); // 필터 초기화
  3294. ds_deciprintinfo.setColumn(0, "deptplce", sdeptplce);
  3295. } else {
  3296. ds_deciprintinfo.setColumn(0, "roomcd", ds_send_inpt.getColumn(0, "roomcd"));
  3297. fds_wardcd.filter("cd == '" + ds_send_inpt.getColumn(0, "wardcd") + "'");
  3298. var sdeptplce = fds_wardcd.getColumn(0, "deptplce2");
  3299. fds_wardcd.filter(""); // 필터 초기화
  3300. ds_deciprintinfo.setColumn(0, "deptplce", sdeptplce);
  3301. }
  3302. // 출력용 데이터 설정
  3303. var obj = new Object();
  3304. obj.user_data_CSV1 = rptf_getCSVString(ds_deciprintinfo, ["pid", "hngnm", "indd", "roomcd", "deptplce"]);
  3305. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0;";
  3306. rptf_exeReportPreview30(["RPPMI01202"],[obj], option);
  3307. }
  3308. }
  3309. } else {
  3310. sysf_messageBox("검색된 입원환자가 없습니다.","E");
  3311. return false;
  3312. }
  3313. }
  3314. /** 선택진료신청 */
  3315. function fCheckSpecOrdApp(){
  3316. ds_send.setColumn(0, "instcd", ds_send.getColumn(0, "sess_posinstcd")); //기관코드
  3317. ds_send.setColumn(0, "pid", ds_send_icdr.getColumn(0, "pid")); //환자번호
  3318. ds_send.setColumn(0, "indd", ds_send_icdr.getColumn(0, "indd")); //입원일자
  3319. ds_send.setColumn(0, "orddeptcd", ds_send_icdr.getColumn(0, "orddeptcd")); //진료과
  3320. ds_send.setColumn(0, "medispclid", ds_send_icdr.getColumn(0, "medispclid")); //주치의
  3321. if(ds_send_icdr.getColumn(0, "ordtype") == "E"){
  3322. ds_send.setColumn(0, "ordtype", "I"); //진료형태
  3323. }
  3324. else{
  3325. ds_send.setColumn(0, "ordtype", ds_send_icdr.getColumn(0, "ordtype"));
  3326. }
  3327. // 선택진료신청서 작성유무 조회
  3328. var oParam = {};
  3329. oParam.id = "TRPMI00406";
  3330. oParam.service = "ipatmngtapp.InhospUpdt";
  3331. oParam.method = "reqGetSpecOrdAppYN";
  3332. oParam.inds = "req=ds_send";
  3333. oParam.outds = "ds_specrgst=rgst";
  3334. oParam.async = false;
  3335. tranf_submit(oParam);
  3336. if (ds_specrgst.getColumn(0, "rgstyn") == "N") {
  3337. // 진료과명 설정
  3338. fds_orddeptcd.filter("cd == '" + ds_send_icdr.getColumn(0, "orddeptcd") + "'");
  3339. var sOrddeptcdnm = fds_orddeptcd.getColumn(0, "nm");
  3340. fds_orddeptcd.filter(""); // 필터 초기화
  3341. if (sOrddeptcdnm != null) {
  3342. sOrddeptcdnm = "[" + sOrddeptcdnm + "]";
  3343. }
  3344. // 주치의명 설정
  3345. fds_orddrid.filter("cd == '" + ds_send_icdr.getColumn(0, "medispclid") + "'");
  3346. var sOrddrnm = fds_orddrid.getColumn(0, "nm");
  3347. fds_orddrid.filter(""); // 필터 초기화
  3348. if (sOrddrnm != null) {
  3349. sOrddrnm = " [" + sOrddrnm + "]";
  3350. }
  3351. var sMsg = sOrddeptcdnm + sOrddrnm
  3352. if( sysf_messageBox(sMsg + " 선택진료 등록이 되어 있지 않습니다. 등록하시겠습니까?", "Q999", "") == 6 ){
  3353. ds_pPK018.filter("cdid == '" + ipaddress + "'");
  3354. var tabYN = ds_pPK018.getColumn(0, "cdnm");
  3355. ds_pPK018.filter("");
  3356. if (tabYN == "Y" && sysf_messageBox("선택진료신청서", "Q017") == "6") {
  3357. var s_instcd = sysf_getUserInfo("dutplceinstcd");
  3358. var s_pid = ds_send_icdr.getColumn(0, "pid");
  3359. var s_ordtype = "I";
  3360. var s_orddd = ds_send_icdr.getColumn(0, "indd");
  3361. var s_cretno = ds_send_icdr.getColumn(0, "cretno");
  3362. var s_orddeptcd = ds_send_icdr.getColumn(0, "orddeptcd");
  3363. var s_orddrid = ds_send_icdr.getColumn(0, "medispclid");
  3364. var s_fromdd = ds_send_icdr.getColumn(0, "fromdd");
  3365. var s_hngnm = ds_grd_inhosplist.getColumn(ds_grd_inhosplist.rowposition, "hngnm");
  3366. var rrgstno = ds_grd_inhosplist.getColumn(ds_grd_inhosplist.rowposition, "rrgstno");
  3367. var s_rrgstno1 = rrgstno.substr(0,6);
  3368. var s_rrgstno2 = rrgstno.substr(6,7);
  3369. var s_detladdr = ds_grd_inhosplist.getColumn(ds_grd_inhosplist.rowposition, "detladdr");
  3370. var s_hometel = ds_grd_inhosplist.getColumn(ds_grd_inhosplist.rowposition, "hometel");
  3371. // 전자동의서 파라미터 설정
  3372. frmf_setParameter("SSMRC03160_param_patid", s_pid);
  3373. frmf_setParameter("SSMRC03160_param_cretno", s_cretno);
  3374. frmf_setParameter("SSMRC03160_param_indate", s_orddd);
  3375. frmf_setParameter("SSMRC03160_param_instcd", s_instcd);
  3376. frmf_setParameter("SSMRC03160_param_class", s_ordtype);
  3377. oDsRsltRef.filter("cdseqno = '4'");
  3378. var hardcd = oDsRsltRef.getColumn(0, "hardcd"); // 1300013647 선택진료신청서(원무)
  3379. oDsRsltRef.filter(""); // 필터해제
  3380. frmf_setParameter("SSMRC03160_param_docucd", hardcd); // 1300013647 선택진료신청서(원무)
  3381. frmf_setParameter("SSMRC03160_param_cuser", sysf_getUserId());
  3382. frmf_setParameter("SSMRC03160_param_flag", "S"); // S : 선택진료신청서, A : 입원약정서, T : 기간약정서
  3383. // 환자 기본정보 설정
  3384. frmf_setParameter("SSMRC03160_param_pathngnm", s_hngnm);
  3385. frmf_setParameter("SSMRC03160_param_pataddr", s_detladdr);
  3386. frmf_setParameter("SSMRC03160_param_pattelno", s_hometel);
  3387. frmf_setParameter("SSMRC03160_param_patrrgstno", s_rrgstno1 + "-" + s_rrgstno2);
  3388. // 주진료과정보 설정 진료과/의사
  3389. // 이부분은 전자동의서와 함께 수정되어야함..
  3390. // model.makeValue("/root/main/inform/orddeptnm", model.getValue("/root/hidden/init/orddeptcd[cd = '" + s_orddeptcd + "']/nm"));
  3391. // model.makeValue("/root/main/inform/orddrnm", model.getValue("/root/hidden/init/orddrid[dp='"+ s_orddeptcd +"' and cd='" + s_orddrid + "']/nm"));
  3392. // model.makeValue("/root/main/inform/specordyn", model.getValue("/root/hidden/init/orddrid[dp='"+ s_orddeptcd +"' and cd='" + s_orddrid + "']/sp"));
  3393. // model.makeValue("/root/main/inform/appdd", utlf_getCurrentDate());
  3394. // 전자동의서 팝업 호출
  3395. frmf_modal("SSMRC03160", "SSMRC03160", '', "", '', '', '', "", "", "", "", "", "M");
  3396. } else {
  3397. // 전과전실 승인의 경우 화면호출 없이 직접출력 하도록 수정
  3398. fCheckSpecOrdSign_Print();
  3399. }
  3400. return true;
  3401. }
  3402. }
  3403. }
  3404. /** 응급등록 시 선택진료신청서 출력 타이밍에 프로그램 비정상 종료문제 해결위해
  3405. 선택진료신청관리화면 호출없이 출력 + 저장만 가능하도록 기능 추출 by 조중래 20151005 */
  3406. function fCheckSpecOrdSign_Print() {
  3407. var p_pid = ds_send_icdr.getColumn(0, "pid");
  3408. var p_ioflag = "I";
  3409. var p_orddeptcd = ds_send_icdr.getColumn(0, "orddeptcd");
  3410. var p_orddrid = ds_send_icdr.getColumn(0, "medispclid");
  3411. var p_orddd = ds_send_icdr.getColumn(0, "indd");
  3412. var p_fromdd = ds_send_icdr.getColumn(0, "indd");
  3413. var p_specordyn = ds_send_icdr.getColumn(0, "specordyn");
  3414. // 저장로직
  3415. ds_send_spif.clearData();
  3416. ds_send_spif.addRow();
  3417. ds_send_spif.setColumn(0, "pid" , p_pid);
  3418. ds_send_spif.setColumn(0, "ioflag" , p_ioflag);
  3419. ds_send_spif.setColumn(0, "orddeptcd" , p_orddeptcd);
  3420. ds_send_spif.setColumn(0, "orddrid" , p_orddrid);
  3421. ds_send_spif.setColumn(0, "orddd" , p_orddd);
  3422. ds_send_spif.setColumn(0, "fromdd" , p_fromdd);
  3423. ds_send_spif.setColumn(0, "todd" , "99991231");
  3424. ds_send_spif.setColumn(0, "remfact" , "");
  3425. ds_send_spif.setColumn(0, "appdd" , p_orddd);
  3426. ds_send_spif.setColumn(0, "returnyn" , "Y"); // 제출확인상태 설정
  3427. ds_send_spif.setColumn(0, "specordyn" , p_specordyn);
  3428. ds_send_spif.setColumn(0, "choiflag" , "B");
  3429. ds_send_spif.setColumn(0, "list1choiflag" , "B");
  3430. ds_send_spif.setColumn(0, "list2choiflag" , "B");
  3431. ds_send_spif.setColumn(0, "list3choiflag" , "B");
  3432. ds_send_spif.setColumn(0, "list4choiflag" , "B");
  3433. ds_send_spif.setColumn(0, "list5choiflag" , "B");
  3434. ds_send_spif.setColumn(0, "list6choiflag" , "B");
  3435. ds_send_spif.setColumn(0, "list7choiflag" , "B");
  3436. ds_send_spif.setColumn(0, "list8choiflag" , "B");
  3437. var oParam = {};
  3438. oParam.id = "TXPMC06571";
  3439. oParam.service = "patinfomngtapp.SpecAppFrm";
  3440. oParam.method = "reqSetSpifList_ins";
  3441. oParam.inds = "spif=ds_send_spif";
  3442. oParam.outds = "ds_spifptbs=ptbs ds_spifinfo=sasm";
  3443. oParam.async = false;
  3444. tranf_submit(oParam);
  3445. // 출력로직
  3446. ds_spifprintinfo.clearData();
  3447. ds_spifprintinfo.addRow();
  3448. ds_spifprintinfo.setColumn(0, "pid", ds_spifptbs.getColumn(0, "pid"));
  3449. ds_spifprintinfo.setColumn(0, "hngnm", ds_spifptbs.getColumn(0, "hngnm"));
  3450. ds_spifprintinfo.setColumn(0, "zipcdaddr", ds_spifptbs.getColumn(0, "zipcdaddr"));
  3451. ds_spifprintinfo.setColumn(0, "detladdr", ds_spifptbs.getColumn(0, "detladdr"));
  3452. ds_spifprintinfo.setColumn(0, "tel", ds_spifptbs.getColumn(0, "hometel"));
  3453. ds_spifprintinfo.setColumn(0, "rrgstno1", ds_spifptbs.getColumn(0, "rrgstno1"));
  3454. ds_spifprintinfo.setColumn(0, "rrgstno2", ds_spifptbs.getColumn(0, "rrgstno2"));
  3455. ds_spifprintinfo.setColumn(0, "usernm", sysf_getUserInfo("usernm"));
  3456. ds_spifprintinfo.setColumn(0, "hospnm", sysf_getUserInfo("dutplceinstnm"));
  3457. ds_spifprintinfo.setColumn(0, "ocrtag", ds_spifinfo.getColumn(0, "ocrtag"));
  3458. ds_spifprintinfo.setColumn(0, "orddd", ds_spifinfo.getColumn(0, "orddd"));
  3459. ds_spifprintinfo.setColumn(0, "appdd", ds_spifinfo.getColumn(0, "appdd"));
  3460. var orddeptcd = ds_spifinfo.getColumn(0, "orddeptcd");
  3461. ds_spifprintinfo.setColumn(0, "orddeptcd", orddeptcd);
  3462. fds_orddeptcd.filter("cd == '" + orddeptcd + "'");
  3463. var orddeptnm = fds_orddeptcd.getColumn(0, "nm");
  3464. fds_orddeptcd.filter(""); // 필터 초기화
  3465. ds_spifprintinfo.setColumn(0, "orddeptnm", orddeptnm);
  3466. var orddrid = ds_spifinfo.getColumn(0, "orddrid");
  3467. ds_spifprintinfo.setColumn(0, "orddrid", orddrid);
  3468. fds_orddrid.filter("cd == '" + orddrid + "'");
  3469. var orddrnm = fds_orddrid.getColumn(0, "nm");
  3470. fds_orddrid.filter(""); // 필터 초기화
  3471. ds_spifprintinfo.setColumn(0, "orddrnm", orddrnm);
  3472. ds_spifprintinfo.setColumn(0, "ioflag", ds_spifinfo.getColumn(0, "ioflag"));
  3473. ds_spifprintinfo.setColumn(0, "specordyn", ds_spifinfo.getColumn(0, "specordyn"));
  3474. fds_orddeptcd.filter("cd == '" + orddeptcd + "'");
  3475. var deptengabbr = fds_orddeptcd.getColumn(0, "deptengabbr2");
  3476. fds_orddeptcd.filter(""); // 필터 초기화
  3477. ds_spifprintinfo.setColumn(0, "deptengabbr", deptengabbr);
  3478. ds_spifprintinfo.setColumn(0, "seq", ds_spifinfo.getColumn(0, "ocrtag"));
  3479. ds_spifprintinfo.setColumn(0, "orddeptabbr", deptengabbr);
  3480. // 출력용 데이터 설정
  3481. var objDOM = rptf_createDOM();
  3482. rptf_setNodeListToDOM(objDOM, "/root/main/rexpert/patappinfo1", ds_spifprintinfo);
  3483. var objParam = new Object();
  3484. objParam.xml_data_XML1 = objDOM.documentElement.source;
  3485. rptf_exeReportPreview30(["RPPMC06504"],[objParam], "open=1;save=1;directprint=1;print=1;zoom=0;printdialog=0;");
  3486. }
  3487. /** 승인취소 */
  3488. function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  3489. {
  3490. // 병동 -> 응급실 전실의 경우 의료진의 승인으로 처리되므로 승인취소 금지 by 조중래 20131125
  3491. if (ds_send_icdr.getColumn(0, "appflagcd") == "1"
  3492. && ds_send_icdr.getColumn(0, "wardcd") == "2280200000") {
  3493. sysf_messageBox("병동 → 응급실 전실의 경우 의료진의 승인취소가 필요합니다. \r\n(원무팀 승인취소불가)", "C000");
  3494. return false;
  3495. }
  3496. var result = sysf_messageBox("승인취소 하시겠습니까?", "Q");
  3497. if (result == "6") {
  3498. var s_ordtype = ds_send_icdr.getColumn(0, "ordtype");
  3499. // ER / CHEMO / DSC / DIC
  3500. if (s_ordtype == "E" || s_ordtype == "D") {
  3501. if ( ds_send_icdr.getColumn(0, "appflagcd") == "3"
  3502. && ds_send_icdr.getColumn(0, "acptflagcd") == "2" ) {
  3503. ds_send.setColumn(0, "ioflag", s_ordtype);
  3504. ds_send.setColumn(0, "appflag", "3");
  3505. ds_send.setColumn(0, "acptflag", "2");
  3506. var oParam = {};
  3507. oParam.id = "TXPMI01602";
  3508. oParam.service = "ipatmngtapp.InhospUpdt";
  3509. oParam.method = "reqSetInhospUpdt6";
  3510. oParam.inds = "req=ds_send";
  3511. oParam.outds = "ds_cnclresult=result";
  3512. oParam.async = false;
  3513. oParam.callback = "callback"
  3514. tranf_submit(oParam);
  3515. if (arErrorCode.pop("TXPMI01602") > -1) {
  3516. fQuery1();
  3517. }
  3518. } else {
  3519. sysf_messageBox("응급실/DSC 재원환자가 아니거나 전실신청 정보가 없습니다.!","E999","");
  3520. return false;
  3521. }
  3522. } else if (s_ordtype == "I") {
  3523. if ( ds_send_icdr.getColumn(0, "acptflagcd") == "2" ) {
  3524. ds_send.setColumn(0, "ioflag", "I");
  3525. ds_send.setColumn(0, "appflag", "1");
  3526. ds_send.setColumn(0, "acptflag", "2");
  3527. var oParam = {};
  3528. oParam.id = "TXPMI01602";
  3529. oParam.service = "ipatmngtapp.InhospUpdt";
  3530. oParam.method = "reqSetInhospUpdt6";
  3531. oParam.inds = "req=ds_send";
  3532. oParam.outds = "ds_cnclresult=result";
  3533. oParam.async = false;
  3534. oParam.callback = "callback"
  3535. tranf_submit(oParam);
  3536. if (arErrorCode.pop("TXPMI01602") > -1) {
  3537. fQuery1();
  3538. }
  3539. } else {
  3540. sysf_messageBox("승인 정보가 없습니다.!","E999","");
  3541. return false;
  3542. }
  3543. }
  3544. }
  3545. }
  3546. /** 신청취소 */
  3547. function btn_cancel2_onclick(obj:Button, e:ClickEventInfo)
  3548. {
  3549. if ( ds_send_icdr.getColumn(0, "acptflagcd") == "1") {
  3550. var result = sysf_messageBox("전과전실신청 취소하시겠습니까?", "Q");
  3551. if (result == "6") {
  3552. ds_send.setColumn(0, "ioflag", "I");
  3553. ds_send.setColumn(0, "appflag", ds_send_icdr.getColumn(0, "appflagcd")); // 전실
  3554. ds_send.setColumn(0, "acptflag", ds_send_icdr.getColumn(0, "acptflagcd")); // 신청
  3555. ds_send.setColumn(0, "seqno", ds_send_icdr.getColumn(0, "seqno")); // 신청
  3556. var oParam = {};
  3557. oParam.id = "TXPMI01602";
  3558. oParam.service = "ipatmngtapp.InhospUpdt";
  3559. oParam.method = "reqSetInhospUpdt6";
  3560. oParam.inds = "req=ds_send";
  3561. oParam.outds = "ds_cnclresult=result";
  3562. oParam.async = false;
  3563. oParam.callback = "callback"
  3564. tranf_submit(oParam);
  3565. if (arErrorCode.pop("TXPMI01602") > -1) {
  3566. fQuery1();
  3567. }
  3568. }
  3569. } else {
  3570. sysf_messageBox("신청 정보가 없습니다.!","E999","");
  3571. return false;
  3572. }
  3573. }
  3574. /** 완료취소 */
  3575. function btn_recovery_onclick(obj:Button, e:ClickEventInfo)
  3576. {
  3577. // 완료일자가 icdr.todd = '99991231'인 내역의 icdr.fromdd와 같은 내역만 복원하도록 체크해야함
  3578. var iCurrentRow = ds_grd_cdcrlist.rowposition;
  3579. var sCdcrEnddd = ds_grd_cdcrlist.getColumn(iCurrentRow, "enddd");
  3580. var sIcdrFromdd = ds_icdrinfo.getColumn(0, "fromdd");
  3581. var sAppFlagCd = ds_grd_cdcrlist.getColumn(iCurrentRow, "appflagcd");
  3582. var sIcdrwardcd = ds_icdrinfo.getColumn(0, "wardcd");
  3583. // 병동 -> 응급실 전실의 경우 의료진의 승인으로 처리되므로 승인취소 금지 by 조중래 20131125
  3584. if (sAppFlagCd == '1' && sIcdrwardcd == "2280200000") {
  3585. sysf_messageBox("병동 → 응급실 전실의 경우 의료진의 승인취소가 필요합니다. \r\n(원무팀 승인취소불가)", "C000");
  3586. return false;
  3587. }
  3588. if (sCdcrEnddd == sIcdrFromdd) {
  3589. // 전과전실완료취소는 당일만 가능하도록 제어
  3590. if (sAppFlagCd == "3" && sCdcrEnddd != utlf_getCurrentDate()) {
  3591. sysf_messageBox("전과+전실 완료취소는 완료 당일만 처리가능합니다.", "C000");
  3592. return false;
  3593. }
  3594. var sMsg = "선택한 내역 이후의 전과전실 변경사항들이 사라집니다.!!" + "\n"
  3595. + "완료 이전으로 복원하시겠습니까?";
  3596. var result = sysf_messageBox(sMsg, "Q");
  3597. if (result == "6") {
  3598. ds_send_cdcr.copyData(ds_grd_cdcrlist);
  3599. ds_send_cdcr.clearData();
  3600. ds_send_cdcr.addRow();
  3601. ds_send_cdcr.copyRow(0, ds_grd_cdcrlist, iCurrentRow);
  3602. var oParam = {};
  3603. oParam.id = "TXPMI01603";
  3604. oParam.service = "ipatmngtapp.InhospUpdt";
  3605. oParam.method = "reqSetChngRecovery";
  3606. oParam.inds = "icdr=ds_send_icdr cdcr=ds_send_cdcr adrv=ds_send_adrv";
  3607. oParam.outds = "ds_cnclresult=result";
  3608. oParam.async = false;
  3609. oParam.callback = "callback"
  3610. tranf_submit(oParam);
  3611. if (arErrorCode.pop("TXPMI01603") > -1) {
  3612. // 복원 후 재 조회
  3613. fQuery1();
  3614. // 버튼초기화
  3615. fSetButton();
  3616. }
  3617. }
  3618. } else {
  3619. sysf_messageBox("신청정보의 완료일자가 전과전실이력의 최종시작일자와 같은 항목만 복원할 수 있습니다!!", "I");
  3620. }
  3621. }
  3622. function Button00_onclick(obj:Button, e:ClickEventInfo)
  3623. {
  3624. if(ds_send_inpt.getColumn(0, 'orddeptcd') == '2030000000'){
  3625. fPrintInNoti(ds_send_inpt.getColumn(0, 'pid'),
  3626. ds_send_inpt.getColumn(0, 'indd'),
  3627. ds_send_inpt.getColumn(0, 'cretno'));
  3628. }
  3629. }
  3630. function Button04_onclick(obj:Button, e:ClickEventInfo)
  3631. {
  3632. if(ds_send_inpt.getColumn(0, 'orddeptcd') == '2030000000'){
  3633. fPrintInNotiConfirm(ds_send_inpt.getColumn(0, 'pid'),
  3634. ds_send_inpt.getColumn(0, 'indd'),
  3635. ds_send_inpt.getColumn(0, 'cretno'),
  3636. ds_send_inpt.getColumn(0, 'hngnm'));
  3637. }
  3638. }
  3639. /* 콜백 공통처리용*/
  3640. function callback(sSvcId, nErrorCode, sErrorMsg){
  3641. arErrorCode.push(sSvcId, nErrorCode);
  3642. }
  3643. /* 입원전담전문의 병동 입원동의서 출력 버튼 */
  3644. function Button05_onclick(obj:Button, e:ClickEventInfo)
  3645. {
  3646. // 입원전담전문의 병동 입원동의서 처리 by 조중래 20180911
  3647. if (Combo04.text == "Y"
  3648. && ds_send_inpt.getColumn(0, "insukind") == "11") {
  3649. var ocrtype = "O";
  3650. if (ds_pPK018.getColumn(ds_pPK018.findRow('cdid', ipaddress), 'cdnm') == "Y") {
  3651. if (sysf_messageBox("입원전담전문의 병동 입원동의서", "Q017") == "6") {
  3652. ocrtype = "S";
  3653. }
  3654. }
  3655. //구분에 맞춰 폼코드 처리(18 : 입원전담전문의 병동 입원동의서 )
  3656. var formcd = oDsRsltRef.getColumn(oDsRsltRef.findRow('cdseqno', '18'), "hardcd");
  3657. // COR 출력의 경우
  3658. if (ocrtype == "O") {
  3659. fPerPrintOCR(formcd,
  3660. ds_send_inpt.getColumn(0, 'pid'),
  3661. ds_send_inpt.getColumn(0, 'indd'),
  3662. ds_send_inpt.getColumn(0, 'cretno'),
  3663. 'I',
  3664. ocrtype);
  3665. }
  3666. else {
  3667. ds_temp_consent.clearData();
  3668. dsf_makeValue(ds_temp_consent, "pid", 'string', ds_send_inpt.getColumn(0, "pid"));
  3669. dsf_makeValue(ds_temp_consent, "orddd", 'string', ds_send_inpt.getColumn(0, "indd"));
  3670. dsf_makeValue(ds_temp_consent, "cretno", 'string', ds_send_inpt.getColumn(0, "cretno"));
  3671. dsf_makeValue(ds_temp_consent, "ordtype", 'string', ds_send_inpt.getColumn(0, 'ordtype'));
  3672. dsf_makeValue(ds_temp_consent, "flag", 'string', "H"); // H:입원전담전문의 병동 입원동의서
  3673. dsf_makeValue(ds_temp_consent, "formcd", 'string', formcd);
  3674. var currentDate = utlf_getCurrentDate();
  3675. dsf_makeValue(ds_temp_consent, "tag1", 'string', ds_send_inpt.getColumn(0, "pid")); // 등록번호
  3676. dsf_makeValue(ds_temp_consent, "tag2", 'string', cmb_orddeptcd.text); // 진료과
  3677. dsf_makeValue(ds_temp_consent, "tag3", 'string', cmb_medispclid.text); // 진료의
  3678. dsf_makeValue(ds_temp_consent, "tag4", 'string', ds_send_inpt.getColumn(0, "hngnm")); // 환자성명
  3679. dsf_makeValue(ds_temp_consent, "tag5", 'string', cmb_wardcd.text + " / " + ds_send_icdr.getColumn(0, "roomcd")); // 입원병동/병실
  3680. dsf_makeValue(ds_temp_consent, "tag6", 'string', ds_send_inpt.getColumn(0, "brthdd").substr(2,2) + "/" + ds_send_inpt.getColumn(0, "brthdd").substr(4,2) + "/" + ds_send_inpt.getColumn(0, "brthdd").substr(6,2)); // 생년월일
  3681. dsf_makeValue(ds_temp_consent, "tag7", 'string', ds_send_inpt.getColumn(0, "mpphontel")); // 전화번호
  3682. dsf_makeValue(ds_temp_consent, "tag8", 'string', currentDate.substr(0, 4));
  3683. dsf_makeValue(ds_temp_consent, "tag9", 'string', currentDate.substr(4, 2));
  3684. dsf_makeValue(ds_temp_consent, "tag10", 'string', currentDate.substr(6, 2));
  3685. fPrintOcrConsent(ds_temp_consent);
  3686. }
  3687. }
  3688. }
  3689. function btn_srch_room_onclick(obj:Button, e:ClickEventInfo)
  3690. {
  3691. frmf_modal("SPPMI02001", "SPPMI02001", "", "", '', '', '', "", "", "", "", "", "M");
  3692. ds_send_icdr.setColumn(0, "wardcd", ds_hidden_grdbedspec.getColumn(0, "wardcd"));
  3693. ds_send_icdr.setColumn(0, "roomcd", ds_hidden_grdbedspec.getColumn(0, "roomcd"));
  3694. ds_send_icdr.setColumn(0, "bedcd", ds_hidden_grdbedspec.getColumn(0, "bedcd"));
  3695. ds_send_icdr.setColumn(0, "roomtypecd", ds_hidden_grdbedspec.getColumn(0, "roomtypecd"));
  3696. ds_send_icdr.setColumn(0, "roomgrdecd", ds_hidden_grdbedspec.getColumn(0, "roomgrdecd"));
  3697. ds_hidden_grdbedspec.clearData();
  3698. }
  3699. //담당의 존재 여분 구분 임승주 추가 19.08.26
  3700. function rdo_attend_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  3701. {
  3702. if(rdo_attend.value == "Y")
  3703. {
  3704. cmb_atdoctid.enable =true;
  3705. }
  3706. else
  3707. {
  3708. ds_send_icdr.setColumn(0,"atdoctid", "-" );
  3709. cmb_atdoctid.enable =false;
  3710. }
  3711. }
  3712. ]]></Script>
  3713. </Form>
  3714. </FDL>