SMMND00300_투석간호정보조사.xfdl 142 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMND00300" position="absolute 0 0 1210 768" titletext="투석간호정보조사" oninit="SMMND00300_oninit" onload="SMMND00300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="투석간호정보조사" class="tit_1" position="absolute 0 0 189 23"/>
  8. <MaskEdit id="opt_bfrectm" taborder="1" readonly="true" mask="hh:nn" visible="false" position="absolute 186 59 236 78"/>
  9. <Calendar id="ipt_bfrecdd" taborder="2" class="input_default" enable="false" visible="false" position="absolute 83 59 183 78"/>
  10. <Tab id="switch1" taborder="3" tabindex="0" position="absolute 0 59 1202 761" anchor="all">
  11. <Tabpages>
  12. <Tabpage id="case1" text="투석정보">
  13. <Layouts>
  14. <Layout>
  15. <Div id="import1" taborder="0" url="emr_wardcarexp::SMMNW08400_투석정보.xfdl" position="absolute 1 2 1195 664"/>
  16. </Layout>
  17. </Layouts>
  18. </Tabpage>
  19. <Tabpage id="case2" text="병력">
  20. <Layouts>
  21. <Layout>
  22. <Div id="import4" taborder="0" url="emr_wardcarexp::SMMNW08800_병력.xfdl" position="absolute 0 0 1194 662"/>
  23. </Layout>
  24. </Layouts>
  25. </Tabpage>
  26. <Tabpage id="case_edurec" text="교육요구도">
  27. <Layouts>
  28. <Layout>
  29. <Div id="ivw_edurec" taborder="0" position="absolute 0 0 1194 662"/>
  30. </Layout>
  31. </Layouts>
  32. </Tabpage>
  33. </Tabpages>
  34. </Tab>
  35. <Shape id="line64" class="line_3" position="absolute 0 51 1194 57" anchor="left top right"/>
  36. <Shape id="line13" class="line_10" position="absolute 0 24 1194 30" anchor="left top right"/>
  37. <Static id="cap_bfrecdt" text="이전기록일시" class="cell_1" position="absolute 0 29 88 52"/>
  38. <Static id="cap_bfrecuser" text="이전기록자" class="cell_1" position="absolute 245 29 325 52"/>
  39. <Edit id="opt_bfrecuser" taborder="4" readonly="true" autoselect="true" autoskip="true" position="absolute 328 31 426 50"/>
  40. <Static id="cap_recdt" text="기록일시" class="cell_1" position="absolute 430 29 510 52"/>
  41. <Calendar id="ipt_recdd" taborder="5" autoselect="true" autoskip="true" class="input_default" position="absolute 513 31 613 50" dateformat="yyyy-MM-dd" value="null"/>
  42. <MaskEdit id="ipt_rectm" taborder="6" type="string" mask="##:##" maskchar=" " trimtype="both" autoselect="true" autoskip="true" class="input_default" position="absolute 616 31 666 50" style="align:left middle;"/>
  43. <Static id="cap_recuser" text="기록자" class="cell_1" position="absolute 669 29 749 52"/>
  44. <Edit id="opt_recuser" taborder="7" readonly="true" autoselect="true" autoskip="true" position="absolute 752 31 850 50"/>
  45. <Static id="cap_infodnor" text="정보제공자" class="cell_1" position="absolute 853 29 933 52"/>
  46. <Edit id="ipt_infodnor" taborder="8" autoselect="true" autoskip="true" class="input_default" position="absolute 936 31 1036 50"/>
  47. <Button id="btn_save" taborder="9" text="임시저장" class="btn2" visible="false" position="absolute 1062 61 1126 80"/>
  48. <Button id="button2" taborder="10" text="인증저장" class="btn5" position="absolute 1129 61 1193 80" anchor="top right" onclick="button2_onclick"/>
  49. <Combo id="cmb_bfrecddtm" taborder="11" innerdataset="@ds_hidden_paminfo_recinfo" codecolumn="recpkspec" datacolumn="bfrecddtm" class="combo_default" position="absolute 89 31 244 50" onitemchanged="cmb_bfrecddtm_onitemchanged"/>
  50. <Div id="grp_patinfo" taborder="12" position="absolute 107 59 746 82" style="background:#ffffffff;">
  51. <Layouts>
  52. <Layout>
  53. <Static id="caption1" position="absolute 58 1 110 21" anchor="default"/>
  54. <Static id="caption2" position="absolute 185 1 245 21" anchor="default"/>
  55. <Static id="caption3" text="환자명:" class="search_name" position="absolute 117 2 185 19" anchor="default"/>
  56. <Static id="caption4" position="absolute 313 1 345 21" anchor="default"/>
  57. <Static id="caption68" text="병실:" class="search_name" position="absolute 5 2 60 19" anchor="default"/>
  58. <Static id="caption5" text="성별:" class="search_name" position="absolute 255 2 313 19" anchor="default"/>
  59. <Static id="caption7" position="absolute 413 1 450 21" anchor="default"/>
  60. <Static id="caption8" text="나이:" class="search_name" position="absolute 355 2 413 19" anchor="default"/>
  61. <Static id="caption9" text="등록번호:" class="search_name" position="absolute 455 2 536 19" anchor="default"/>
  62. <Static id="caption10" position="absolute 527 1 631 21" anchor="default"/>
  63. </Layout>
  64. </Layouts>
  65. </Div>
  66. <Button id="button1" taborder="13" text="전체기록삭제" class="btn2" position="absolute 1040 61 1126 80" anchor="top right" onclick="button1_onclick"/>
  67. </Layout>
  68. </Layouts>
  69. <Objects>
  70. <Dataset id="ds_main_wardrecinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  71. <ColumnInfo>
  72. <Column id="bfrecddtm" type="STRING" size="256"/>
  73. <Column id="bfrecdd" type="STRING" size="256"/>
  74. <Column id="bfrecuser" type="STRING" size="256"/>
  75. <Column id="bfrectm" type="STRING" size="256"/>
  76. <Column id="recdd" type="STRING" size="256"/>
  77. <Column id="rectm" type="STRING" size="256"/>
  78. <Column id="recuser" type="STRING" size="256"/>
  79. <Column id="infooffer" type="STRING" size="256"/>
  80. <Column id="patinfo" type="STRING" size="256"/>
  81. <Column id="signno" type="STRING" size="256"/>
  82. <Column id="room" type="STRING" size="256"/>
  83. <Column id="patnm" type="STRING" size="256"/>
  84. <Column id="sex" type="STRING" size="256"/>
  85. <Column id="age" type="STRING" size="256"/>
  86. <Column id="pid" type="STRING" size="256"/>
  87. <Column id="jobcd" type="STRING" size="256"/>
  88. <Column id="educgrdecd" type="STRING" size="256"/>
  89. <Column id="educgrdenm" type="STRING" size="256"/>
  90. <Column id="baptnm" type="STRING" size="256"/>
  91. <Column id="relignreq" type="STRING" size="256"/>
  92. <Column id="marystatcd" type="STRING" size="256"/>
  93. <Column id="marystatnm" type="STRING" size="256"/>
  94. <Column id="tel" type="STRING" size="256"/>
  95. <Column id="mphone" type="STRING" size="256"/>
  96. <Column id="etcphone1" type="STRING" size="256"/>
  97. <Column id="etcphone2" type="STRING" size="256"/>
  98. <Column id="highbp" type="STRING" size="256"/>
  99. <Column id="lowbp" type="STRING" size="256"/>
  100. <Column id="bdht" type="STRING" size="256"/>
  101. <Column id="pulse" type="STRING" size="256"/>
  102. <Column id="bdwt" type="STRING" size="256"/>
  103. <Column id="breth" type="STRING" size="256"/>
  104. <Column id="bdbtype" type="STRING" size="256"/>
  105. <Column id="bdtp" type="STRING" size="256"/>
  106. <Column id="bdtppartcd" type="STRING" size="256"/>
  107. <Column id="spo2" type="STRING" size="256"/>
  108. <Column id="viralmarker" type="STRING" size="256"/>
  109. <Column id="fstdialdd" type="STRING" size="256"/>
  110. <Column id="fstdialkind" type="STRING" size="256"/>
  111. <Column id="chosdd" type="STRING" size="256"/>
  112. <Column id="roomhospdialdd" type="STRING" size="256"/>
  113. <Column id="reqhosp" type="STRING" size="256"/>
  114. <Column id="bdbtyperh" type="STRING" size="256"/>
  115. <Column id="relignnm" type="STRING" size="256"/>
  116. </ColumnInfo>
  117. <Rows>
  118. <Row>
  119. <Col id="bfrecddtm"/>
  120. <Col id="bfrecdd"/>
  121. <Col id="bfrecuser"/>
  122. <Col id="bfrectm"/>
  123. <Col id="recdd"/>
  124. <Col id="rectm"/>
  125. <Col id="recuser"/>
  126. <Col id="infooffer"/>
  127. <Col id="patinfo"/>
  128. <Col id="signno"/>
  129. <Col id="room"/>
  130. <Col id="patnm"/>
  131. <Col id="sex"/>
  132. <Col id="age"/>
  133. <Col id="pid"/>
  134. </Row>
  135. </Rows>
  136. </Dataset>
  137. <Dataset id="ds_hidden_paminfo_recinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  138. <ColumnInfo>
  139. <Column id="bfrecddtm" type="STRING" size="256"/>
  140. <Column id="recpkspec" type="STRING" size="256"/>
  141. </ColumnInfo>
  142. </Dataset>
  143. <Dataset id="ds_init_mlist_M0068" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  144. <Dataset id="ds_init_mlist_M00" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  145. <ColumnInfo>
  146. <Column id="cdid" type="STRING" size="256"/>
  147. <Column id="cdnm" type="STRING" size="256"/>
  148. </ColumnInfo>
  149. <Rows>
  150. <Row>
  151. <Col id="cdid"/>
  152. <Col id="cdnm"/>
  153. </Row>
  154. </Rows>
  155. </Dataset>
  156. <Dataset id="ds_init_mlist_M0069" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  157. <ColumnInfo>
  158. <Column id="cdid" type="STRING" size="256"/>
  159. <Column id="cdnm" type="STRING" size="256"/>
  160. </ColumnInfo>
  161. <Rows>
  162. <Row>
  163. <Col id="cdid"/>
  164. <Col id="cdnm"/>
  165. </Row>
  166. </Rows>
  167. </Dataset>
  168. <Dataset id="ds_init_mlist_M0070" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  169. <ColumnInfo>
  170. <Column id="cdid" type="STRING" size="256"/>
  171. <Column id="cdnm" type="STRING" size="256"/>
  172. </ColumnInfo>
  173. <Rows>
  174. <Row>
  175. <Col id="cdid"/>
  176. <Col id="cdnm"/>
  177. </Row>
  178. </Rows>
  179. </Dataset>
  180. <Dataset id="ds_init_mlist_M0071" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  181. <ColumnInfo>
  182. <Column id="cdid" type="STRING" size="256"/>
  183. <Column id="cdnm" type="STRING" size="256"/>
  184. </ColumnInfo>
  185. <Rows>
  186. <Row>
  187. <Col id="cdid"/>
  188. <Col id="cdnm"/>
  189. </Row>
  190. </Rows>
  191. </Dataset>
  192. <Dataset id="ds_init_mlist_M0151" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  193. <Dataset id="ds_init_mlist_M0072" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  194. <ColumnInfo>
  195. <Column id="cdid" type="STRING" size="256"/>
  196. <Column id="cdnm" type="STRING" size="256"/>
  197. </ColumnInfo>
  198. <Rows>
  199. <Row>
  200. <Col id="cdid"/>
  201. <Col id="cdnm"/>
  202. </Row>
  203. </Rows>
  204. </Dataset>
  205. <Dataset id="ds_init_mlist_M0073" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  206. <ColumnInfo>
  207. <Column id="cdid" type="STRING" size="256"/>
  208. <Column id="cdnm" type="STRING" size="256"/>
  209. </ColumnInfo>
  210. <Rows>
  211. <Row>
  212. <Col id="cdid"/>
  213. <Col id="cdnm"/>
  214. </Row>
  215. </Rows>
  216. </Dataset>
  217. <Dataset id="ds_init_mlist_M0376" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  218. <Dataset id="ds_init_mlist_M0075" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  219. <Dataset id="ds_init_mlist_M0079" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  220. <Dataset id="ds_init_mlist_P0008" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  221. <Dataset id="ds_init_mlist_M0081" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  222. <Dataset id="ds_init_mlist_M0082" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  223. <Dataset id="ds_init_mlist_M0083" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  224. <Dataset id="ds_init_mlist_M0088" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  225. <Dataset id="ds_init_mlist_M0090" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  226. <Dataset id="ds_init_mlist_M0091" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  227. <Dataset id="ds_init_mlist_M0092" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  228. <Dataset id="ds_init_mlist_M0093" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  229. <Dataset id="ds_init_mlist_M0098" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  230. <Dataset id="ds_init_mlist_M0100" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  231. <Dataset id="ds_init_mlist_M0102" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  232. <Dataset id="ds_init_mlist_M0103" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  233. <Dataset id="ds_init_mlist_M0104" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  234. <Dataset id="ds_init_mlist_M0105" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  235. <Dataset id="ds_init_mlist_M0106" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  236. <Dataset id="ds_init_mlist_M0107" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  237. <Dataset id="ds_init_mlist_M0109" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  238. <Dataset id="ds_init_mlist_M0110" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  239. <Dataset id="ds_init_mlist_M0411" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  240. <Dataset id="ds_init_mlist_M0210" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  241. <Dataset id="ds_init_mlist_M0375" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  242. <ColumnInfo>
  243. <Column id="cdnm" type="STRING" size="256"/>
  244. <Column id="cdid" type="STRING" size="256"/>
  245. </ColumnInfo>
  246. <Rows>
  247. <Row/>
  248. </Rows>
  249. </Dataset>
  250. <Dataset id="ds_init_mlist_M0368" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  251. <Dataset id="ds_init_mlist_M0532" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  252. <Dataset id="ds_temp_cond_list" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  253. <ColumnInfo>
  254. <Column id="roomcd" type="STRING" size="256"/>
  255. <Column id="hngnm" type="STRING" size="256"/>
  256. <Column id="sex" type="STRING" size="256"/>
  257. <Column id="age" type="STRING" size="256"/>
  258. <Column id="pid" type="STRING" size="256"/>
  259. <Column id="instcd" type="STRING" size="256"/>
  260. <Column id="orddeptcd" type="STRING" size="256"/>
  261. <Column id="orddd" type="STRING" size="256"/>
  262. <Column id="indd" type="STRING" size="256"/>
  263. </ColumnInfo>
  264. </Dataset>
  265. <Dataset id="ds_main_enrcarecomrecinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  266. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  267. <ColumnInfo>
  268. <Column id="req" type="STRING" size="256"/>
  269. <Column id="patgnrlinfo" type="STRING" size="256"/>
  270. <Column id="wardrecinfo" type="STRING" size="256"/>
  271. <Column id="bodyases" type="STRING" size="256"/>
  272. </ColumnInfo>
  273. <Rows>
  274. <Row>
  275. <Col id="req"/>
  276. <Col id="patgnrlinfo"/>
  277. <Col id="wardrecinfo"/>
  278. <Col id="bodyases"/>
  279. </Row>
  280. </Rows>
  281. </Dataset>
  282. <Dataset id="ds_send_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  283. <Dataset id="ds_hidden_paminfo_paminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  284. <Dataset id="ds_main_famyfact" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  285. <ColumnInfo>
  286. <Column id="stat" type="STRING" size="256"/>
  287. <Column id="rela" type="STRING" size="256"/>
  288. <Column id="hngnm" type="STRING" size="256"/>
  289. <Column id="addr" type="STRING" size="256"/>
  290. <Column id="detladdr" type="STRING" size="256"/>
  291. <Column id="tel" type="STRING" size="256"/>
  292. <Column id="mpphone" type="STRING" size="256"/>
  293. <Column id="remfact" type="STRING" size="256"/>
  294. <Column id="fmlyseq" type="STRING" size="256"/>
  295. </ColumnInfo>
  296. </Dataset>
  297. <Dataset id="ds_send_wardrecinfo" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  298. <ColumnInfo>
  299. <Column id="bfrecddtm" type="STRING" size="256"/>
  300. <Column id="bfrecdd" type="STRING" size="256"/>
  301. <Column id="bfrecuser" type="STRING" size="256"/>
  302. <Column id="bfrectm" type="STRING" size="256"/>
  303. <Column id="recdd" type="STRING" size="256"/>
  304. <Column id="rectm" type="STRING" size="256"/>
  305. <Column id="recuser" type="STRING" size="256"/>
  306. <Column id="infooffer" type="STRING" size="256"/>
  307. <Column id="patinfo" type="STRING" size="256"/>
  308. <Column id="signno" type="STRING" size="256"/>
  309. <Column id="room" type="STRING" size="256"/>
  310. <Column id="patnm" type="STRING" size="256"/>
  311. <Column id="sex" type="STRING" size="256"/>
  312. <Column id="age" type="STRING" size="256"/>
  313. <Column id="pid" type="STRING" size="256"/>
  314. <Column id="indd" type="STRING" size="256"/>
  315. </ColumnInfo>
  316. <Rows>
  317. <Row>
  318. <Col id="bfrecddtm"/>
  319. <Col id="bfrecdd"/>
  320. <Col id="bfrecuser"/>
  321. <Col id="bfrectm"/>
  322. <Col id="recdd"/>
  323. <Col id="rectm"/>
  324. <Col id="recuser"/>
  325. <Col id="infooffer"/>
  326. <Col id="patinfo"/>
  327. <Col id="signno"/>
  328. <Col id="room"/>
  329. <Col id="patnm"/>
  330. <Col id="sex"/>
  331. <Col id="age"/>
  332. <Col id="pid"/>
  333. </Row>
  334. </Rows>
  335. </Dataset>
  336. <Dataset id="ds_signinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  337. <Dataset id="ds_main_histinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  338. <Dataset id="ds_hidden_cominfo_histinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  339. <ColumnInfo>
  340. <Column id="pasthistinfo" type="STRING" size="256" sumtext="과거력"/>
  341. <Column id="famyhistinfo" type="STRING" size="256" sumtext="가족력"/>
  342. <Column id="inhistinfo" type="STRING" size="256" sumtext="입원이력"/>
  343. <Column id="ophistinfo" type="STRING" size="256" sumtext="수술이력"/>
  344. <Column id="rectmedistatinfo" type="STRING" size="256" sumtext="최근투약상태"/>
  345. <Column id="allghistinfo" type="STRING" size="256" sumtext="알러지"/>
  346. <Column id="smokinfo" type="STRING" size="256" sumtext="흡연정보"/>
  347. <Column id="drunkinfo" type="STRING" size="256" sumtext="음주정보"/>
  348. <Column id="gustofoodinfo" type="STRING" size="256" sumtext="기호식품정보"/>
  349. <Column id="tnsseffcinfo" type="STRING" size="256" sumtext="수혈부작용"/>
  350. <Column id="vacnhistinfo" type="STRING" size="256" sumtext="예방접종이력"/>
  351. <Column id="existyn" type="STRING" size="256" sumtext="이력존재여부"/>
  352. </ColumnInfo>
  353. </Dataset>
  354. <Dataset id="ds_hidden_cominfo_famyinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  355. <ColumnInfo>
  356. <Column id="genogrmnm" type="STRING" size="256" sumtext="이력존재여부"/>
  357. <Column id="existfamyinfo" type="STRING" size="256" sumtext="가계도존재여부"/>
  358. </ColumnInfo>
  359. </Dataset>
  360. <Dataset id="ds_hidden_cominfo_famyfact" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  361. <ColumnInfo>
  362. <Column id="stat" type="STRING" size="256" sumtext="상태"/>
  363. <Column id="rela" type="STRING" size="256" sumtext="관계"/>
  364. <Column id="hngnm" type="STRING" size="256" sumtext="한글명"/>
  365. <Column id="addr" type="STRING" size="256" sumtext="주소(동까지)"/>
  366. <Column id="detladdr" type="STRING" size="256" sumtext="상세주소"/>
  367. <Column id="tel" type="STRING" size="256" sumtext="전화번호"/>
  368. <Column id="mpphone" type="STRING" size="256" sumtext="휴대전화"/>
  369. <Column id="remfact" type="STRING" size="256" sumtext="비고"/>
  370. <Column id="fmlyseq" type="STRING" size="256" sumtext="가족순번"/>
  371. </ColumnInfo>
  372. </Dataset>
  373. <Dataset id="ds_data_famytree" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  374. <ColumnInfo>
  375. <Column id="existyn" type="STRING" size="256"/>
  376. </ColumnInfo>
  377. </Dataset>
  378. <Dataset id="ds_data_smokinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  379. <ColumnInfo>
  380. <Column id="smokinfoyn" type="STRING" size="256"/>
  381. <Column id="smokinfocnt" type="STRING" size="256"/>
  382. <Column id="nosmokcnstyn" type="STRING" size="256"/>
  383. <Column id="nosmokcnst" type="STRING" size="256"/>
  384. <Column id="nosmokcnstnm" type="STRING" size="256"/>
  385. </ColumnInfo>
  386. <Rows>
  387. <Row>
  388. <Col id="smokinfoyn">1</Col>
  389. <Col id="smokinfocnt"/>
  390. <Col id="nosmokcnstyn"/>
  391. <Col id="nosmokcnst"/>
  392. <Col id="nosmokcnstnm"/>
  393. </Row>
  394. </Rows>
  395. </Dataset>
  396. <Dataset id="ds_data_drunkinfo" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  397. <ColumnInfo>
  398. <Column id="drunkinfoyn" type="STRING" size="256"/>
  399. <Column id="drunkinfokind" type="STRING" size="256"/>
  400. <Column id="drunkinfoterm" type="STRING" size="256"/>
  401. </ColumnInfo>
  402. <Rows>
  403. <Row>
  404. <Col id="drunkinfoyn">1</Col>
  405. <Col id="drunkinfokind"/>
  406. <Col id="drunkinfoterm"/>
  407. </Row>
  408. </Rows>
  409. </Dataset>
  410. <Dataset id="ds_data_gustofood" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  411. <ColumnInfo>
  412. <Column id="gustofoodinclyn" type="STRING" size="256"/>
  413. <Column id="kind" type="STRING" size="256"/>
  414. <Column id="dose" type="STRING" size="256"/>
  415. <Column id="tims" type="STRING" size="256"/>
  416. <Column id="term" type="STRING" size="256"/>
  417. </ColumnInfo>
  418. </Dataset>
  419. <Dataset id="ds_data_tnsseffc" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  420. <ColumnInfo>
  421. <Column id="tnsseffcinclyn" type="STRING" size="256"/>
  422. <Column id="tnsyn" type="STRING" size="256"/>
  423. <Column id="tnsdetl" type="STRING" size="256"/>
  424. <Column id="tnsseffcyn" type="STRING" size="256"/>
  425. <Column id="dsvaluepath" type="STRING" size="256"/>
  426. </ColumnInfo>
  427. </Dataset>
  428. <Dataset id="ds_data_bodyases" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  429. <ColumnInfo>
  430. <Column id="soulstat" type="STRING" size="256"/>
  431. <Column id="comustat" type="STRING" size="256"/>
  432. <Column id="emotstat" type="STRING" size="256"/>
  433. <Column id="emotstatnm" type="STRING" size="256"/>
  434. </ColumnInfo>
  435. <Rows>
  436. <Row>
  437. <Col id="soulstat"/>
  438. <Col id="comustat"/>
  439. <Col id="emotstat"/>
  440. <Col id="emotstatnm"/>
  441. </Row>
  442. </Rows>
  443. </Dataset>
  444. <Dataset id="ds_data_dialcomn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  445. <ColumnInfo>
  446. <Column id="chosresn" type="STRING" size="256"/>
  447. <Column id="cassickkind" type="STRING" size="256"/>
  448. <Column id="cassick" type="STRING" size="256"/>
  449. <Column id="kidnfaluryn" type="STRING" size="256"/>
  450. <Column id="medigrant" type="STRING" size="256"/>
  451. <Column id="healcntrprofitkind" type="STRING" size="256"/>
  452. <Column id="healcntrprofit" type="STRING" size="256"/>
  453. <Column id="economystat" type="STRING" size="256"/>
  454. </ColumnInfo>
  455. <Rows>
  456. <Row>
  457. <Col id="chosresn"/>
  458. <Col id="cassickkind"/>
  459. <Col id="cassick"/>
  460. <Col id="kidnfaluryn"/>
  461. <Col id="medigrant"/>
  462. <Col id="healcntrprofitkind"/>
  463. <Col id="healcntrprofit"/>
  464. <Col id="economystat"/>
  465. </Row>
  466. </Rows>
  467. </Dataset>
  468. <Dataset id="ds_data_dialcarer" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  469. <ColumnInfo>
  470. <Column id="dialkind" type="STRING" size="256"/>
  471. <Column id="fstdd" type="STRING" size="256"/>
  472. <Column id="enddd" type="STRING" size="256"/>
  473. <Column id="remfact" type="STRING" size="256"/>
  474. </ColumnInfo>
  475. <Rows>
  476. <Row>
  477. <Col id="dialkind"/>
  478. <Col id="fstdd"/>
  479. <Col id="enddd"/>
  480. <Col id="remfact"/>
  481. </Row>
  482. </Rows>
  483. </Dataset>
  484. <Dataset id="ds_data_trans" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  485. <ColumnInfo>
  486. <Column id="kidntransinclyn" type="STRING" size="256"/>
  487. <Column id="selfstat" type="STRING" size="256"/>
  488. <Column id="impsiresn" type="STRING" size="256"/>
  489. <Column id="possresn" type="STRING" size="256"/>
  490. <Column id="possresnetc" type="STRING" size="256"/>
  491. <Column id="rgstdd" type="STRING" size="256"/>
  492. <Column id="rgsthosp" type="STRING" size="256"/>
  493. </ColumnInfo>
  494. <Rows>
  495. <Row>
  496. <Col id="kidntransinclyn"/>
  497. <Col id="selfstat">01</Col>
  498. <Col id="impsiresn"/>
  499. <Col id="possresn"/>
  500. <Col id="possresnetc"/>
  501. <Col id="rgstdd"/>
  502. <Col id="rgsthosp"/>
  503. </Row>
  504. </Rows>
  505. </Dataset>
  506. <Dataset id="ds_data_selfcare" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  507. <ColumnInfo>
  508. <Column id="selfcareyn" type="STRING" size="256"/>
  509. <Column id="helpdnor" type="STRING" size="256"/>
  510. <Column id="resn" type="STRING" size="256"/>
  511. </ColumnInfo>
  512. <Rows>
  513. <Row>
  514. <Col id="selfcareyn"/>
  515. <Col id="helpdnor"/>
  516. <Col id="resn"/>
  517. </Row>
  518. </Rows>
  519. </Dataset>
  520. <Dataset id="ds_data_rgstdial" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  521. <ColumnInfo>
  522. <Column id="rgstdialinfoinclyn" type="STRING" size="256"/>
  523. <Column id="dialkind" type="STRING" size="256"/>
  524. <Column id="veslkind" type="STRING" size="256"/>
  525. <Column id="vesltype" type="STRING" size="256"/>
  526. </ColumnInfo>
  527. <Rows>
  528. <Row>
  529. <Col id="rgstdialinfoinclyn"/>
  530. <Col id="dialkind"/>
  531. <Col id="veslkind"/>
  532. <Col id="vesltype"/>
  533. </Row>
  534. </Rows>
  535. </Dataset>
  536. <Dataset id="ds_data_progrec" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  537. <ColumnInfo>
  538. <Column id="progrecinclyn" type="STRING" size="256"/>
  539. <Column id="progrec" type="STRING" size="256"/>
  540. </ColumnInfo>
  541. <Rows>
  542. <Row>
  543. <Col id="progrecinclyn"/>
  544. <Col id="progrec"/>
  545. </Row>
  546. </Rows>
  547. </Dataset>
  548. <Dataset id="ds_data_pasthist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  549. <Dataset id="ds_data_famyhist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  550. <Dataset id="ds_data_inhist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  551. <Dataset id="ds_data_ophist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  552. <Dataset id="ds_data_allghist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  553. <Dataset id="ds_data_vacnhist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  554. <ColumnInfo>
  555. <Column id="vacnhistinfoinclyn" type="STRING" size="256"/>
  556. <Column id="dpttims" type="STRING" size="256"/>
  557. <Column id="infparaltims" type="STRING" size="256"/>
  558. <Column id="ahptstims" type="STRING" size="256"/>
  559. <Column id="bhptstims" type="STRING" size="256"/>
  560. <Column id="bhptsdrugnm" type="STRING" size="256"/>
  561. <Column id="bcgyn" type="STRING" size="256"/>
  562. <Column id="mmrtims" type="STRING" size="256"/>
  563. <Column id="alivvacntims" type="STRING" size="256"/>
  564. <Column id="deadvaccntims" type="STRING" size="256"/>
  565. <Column id="brnmeningitistims" type="STRING" size="256"/>
  566. <Column id="lungcoccustims" type="STRING" size="256"/>
  567. <Column id="chickenpoxtims" type="STRING" size="256"/>
  568. </ColumnInfo>
  569. <Rows>
  570. <Row>
  571. <Col id="vacnhistinfoinclyn"/>
  572. <Col id="dpttims"/>
  573. <Col id="infparaltims"/>
  574. <Col id="ahptstims"/>
  575. <Col id="bhptstims"/>
  576. <Col id="bhptsdrugnm"/>
  577. <Col id="bcgyn"/>
  578. <Col id="mmrtims"/>
  579. <Col id="alivvacntims"/>
  580. <Col id="deadvaccntims"/>
  581. <Col id="brnmeningitistims"/>
  582. <Col id="lungcoccustims"/>
  583. <Col id="chickenpoxtims"/>
  584. </Row>
  585. </Rows>
  586. </Dataset>
  587. <Dataset id="ds_data_rectmedistat" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  588. <Dataset id="ds_data_dialcarer1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  589. <ColumnInfo>
  590. <Column id="dialcareinclyn" type="STRING" size="256"/>
  591. </ColumnInfo>
  592. <Rows>
  593. <Row/>
  594. </Rows>
  595. </Dataset>
  596. <Dataset id="ds_data_dialcarer2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  597. <ColumnInfo>
  598. <Column id="dialkind" type="STRING" size="256"/>
  599. <Column id="fstdd" type="STRING" size="256"/>
  600. <Column id="enddd" type="STRING" size="256"/>
  601. <Column id="remfact" type="STRING" size="256"/>
  602. </ColumnInfo>
  603. <Rows>
  604. <Row>
  605. <Col id="dialkind"/>
  606. <Col id="fstdd"/>
  607. <Col id="enddd"/>
  608. <Col id="remfact"/>
  609. </Row>
  610. </Rows>
  611. </Dataset>
  612. <Dataset id="ds_data_famyhist1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  613. <ColumnInfo>
  614. <Column id="famyhistinclyn" type="STRING" size="256"/>
  615. </ColumnInfo>
  616. <Rows>
  617. <Row/>
  618. </Rows>
  619. </Dataset>
  620. <Dataset id="ds_data_famyhist2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  621. <ColumnInfo>
  622. <Column id="famyrel" type="STRING" size="256"/>
  623. <Column id="existyn" type="STRING" size="256"/>
  624. <Column id="histspec" type="STRING" size="256"/>
  625. <Column id="remfact" type="STRING" size="256"/>
  626. </ColumnInfo>
  627. <Rows>
  628. <Row>
  629. <Col id="famyrel"/>
  630. <Col id="existyn"/>
  631. <Col id="histspec"/>
  632. <Col id="remfact"/>
  633. </Row>
  634. </Rows>
  635. </Dataset>
  636. <Dataset id="ds_data_inhist1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  637. <ColumnInfo>
  638. <Column id="inhistinclyn" type="STRING" size="256"/>
  639. </ColumnInfo>
  640. <Rows>
  641. <Row/>
  642. </Rows>
  643. </Dataset>
  644. <Dataset id="ds_data_inhist2" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  645. <ColumnInfo>
  646. <Column id="indd" type="STRING" size="256"/>
  647. <Column id="dschdd" type="STRING" size="256"/>
  648. <Column id="illnm" type="STRING" size="256"/>
  649. <Column id="orddept" type="STRING" size="256"/>
  650. <Column id="inhistpk" type="STRING" size="256"/>
  651. </ColumnInfo>
  652. <Rows>
  653. <Row>
  654. <Col id="indd"/>
  655. <Col id="dschdd"/>
  656. <Col id="illnm"/>
  657. <Col id="orddept"/>
  658. <Col id="inhistpk"/>
  659. </Row>
  660. </Rows>
  661. </Dataset>
  662. <Dataset id="ds_data_ophist1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  663. <ColumnInfo>
  664. <Column id="ophistinclyn" type="STRING" size="256"/>
  665. </ColumnInfo>
  666. <Rows>
  667. <Row/>
  668. </Rows>
  669. </Dataset>
  670. <Dataset id="ds_data_ophist2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  671. <ColumnInfo>
  672. <Column id="opdd" type="STRING" size="256"/>
  673. <Column id="opnm" type="STRING" size="256"/>
  674. <Column id="orddept" type="STRING" size="256"/>
  675. <Column id="ophistpk" type="STRING" size="256"/>
  676. </ColumnInfo>
  677. <Rows>
  678. <Row>
  679. <Col id="opdd"/>
  680. <Col id="opnm"/>
  681. <Col id="orddept"/>
  682. <Col id="ophistpk"/>
  683. </Row>
  684. </Rows>
  685. </Dataset>
  686. <Dataset id="ds_data_allghist1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  687. <ColumnInfo>
  688. <Column id="allghistinclyn" type="STRING" size="256"/>
  689. </ColumnInfo>
  690. <Rows>
  691. <Row>
  692. <Col id="allghistinclyn">1</Col>
  693. </Row>
  694. </Rows>
  695. </Dataset>
  696. <Dataset id="ds_data_allghist2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  697. <ColumnInfo>
  698. <Column id="genrdd" type="STRING" size="256"/>
  699. <Column id="flag" type="STRING" size="256"/>
  700. <Column id="allergespec" type="STRING" size="256"/>
  701. </ColumnInfo>
  702. <Rows>
  703. <Row/>
  704. </Rows>
  705. </Dataset>
  706. <Dataset id="ds_data_pasthist1" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  707. <ColumnInfo>
  708. <Column id="pasthistinclyn" type="STRING" size="256"/>
  709. </ColumnInfo>
  710. <Rows>
  711. <Row/>
  712. </Rows>
  713. </Dataset>
  714. <Dataset id="ds_data_pasthist2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  715. <ColumnInfo>
  716. <Column id="genrdd" type="STRING" size="256"/>
  717. <Column id="histspec" type="STRING" size="256"/>
  718. <Column id="remfact" type="STRING" size="256"/>
  719. </ColumnInfo>
  720. <Rows>
  721. <Row>
  722. <Col id="genrdd"/>
  723. <Col id="histspec"/>
  724. <Col id="remfact"/>
  725. </Row>
  726. </Rows>
  727. </Dataset>
  728. <Dataset id="ds_data_smok1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  729. <ColumnInfo>
  730. <Column id="smokinclyn" type="STRING" size="256"/>
  731. </ColumnInfo>
  732. <Rows>
  733. <Row/>
  734. </Rows>
  735. </Dataset>
  736. <Dataset id="ds_data_smok2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  737. <ColumnInfo>
  738. <Column id="dosetoday" type="STRING" size="256"/>
  739. <Column id="term" type="STRING" size="256"/>
  740. </ColumnInfo>
  741. <Rows>
  742. <Row>
  743. <Col id="dosetoday"/>
  744. <Col id="term"/>
  745. </Row>
  746. </Rows>
  747. </Dataset>
  748. <Dataset id="ds_data_drunk1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  749. <ColumnInfo>
  750. <Column id="drunkinclyn" type="STRING" size="256"/>
  751. </ColumnInfo>
  752. <Rows>
  753. <Row>
  754. <Col id="drunkinclyn">1</Col>
  755. </Row>
  756. </Rows>
  757. </Dataset>
  758. <Dataset id="ds_data_drunk2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  759. <ColumnInfo>
  760. <Column id="kind" type="STRING" size="256"/>
  761. <Column id="dose" type="STRING" size="256"/>
  762. <Column id="tims" type="STRING" size="256"/>
  763. <Column id="term" type="STRING" size="256"/>
  764. </ColumnInfo>
  765. <Rows>
  766. <Row>
  767. <Col id="kind"/>
  768. <Col id="dose"/>
  769. <Col id="tims"/>
  770. <Col id="term"/>
  771. </Row>
  772. </Rows>
  773. </Dataset>
  774. <Dataset id="ds_data_gustofood1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  775. <ColumnInfo>
  776. <Column id="gustofoodinclyn" type="STRING" size="256"/>
  777. </ColumnInfo>
  778. <Rows>
  779. <Row/>
  780. </Rows>
  781. </Dataset>
  782. <Dataset id="ds_data_gustofood2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  783. <ColumnInfo>
  784. <Column id="kind" type="STRING" size="256"/>
  785. <Column id="dose" type="STRING" size="256"/>
  786. <Column id="tims" type="STRING" size="256"/>
  787. <Column id="term" type="STRING" size="256"/>
  788. </ColumnInfo>
  789. <Rows>
  790. <Row>
  791. <Col id="kind"/>
  792. <Col id="dose"/>
  793. <Col id="tims"/>
  794. <Col id="term"/>
  795. </Row>
  796. </Rows>
  797. </Dataset>
  798. <Dataset id="ds_data_tnsseffc1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  799. <ColumnInfo>
  800. <Column id="tnsseffcinclyn" type="STRING" size="256"/>
  801. </ColumnInfo>
  802. <Rows>
  803. <Row/>
  804. </Rows>
  805. </Dataset>
  806. <Dataset id="ds_data_tnsseffc2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  807. <ColumnInfo>
  808. <Column id="tnsyn" type="STRING" size="256"/>
  809. <Column id="tnsdetl" type="STRING" size="256"/>
  810. </ColumnInfo>
  811. <Rows>
  812. <Row>
  813. <Col id="tnsyn"/>
  814. <Col id="tnsdetl"/>
  815. </Row>
  816. </Rows>
  817. </Dataset>
  818. <Dataset id="ds_data_gustofoodinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  819. <ColumnInfo>
  820. <Column id="gustofoodyn" type="STRING" size="256"/>
  821. <Column id="gustofooddetl" type="STRING" size="256"/>
  822. </ColumnInfo>
  823. <Rows>
  824. <Row>
  825. <Col id="gustofoodyn">1</Col>
  826. <Col id="gustofooddetl"/>
  827. </Row>
  828. </Rows>
  829. </Dataset>
  830. <Dataset id="ds_data_tnsseffcinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  831. <Dataset id="ds_data_smok" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  832. <Dataset id="ds_data_rectmedistat1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  833. <ColumnInfo>
  834. <Column id="rectmedistatinfoinclyn" type="STRING" size="256"/>
  835. <Column id="antibiodrugyn" type="STRING" size="256"/>
  836. </ColumnInfo>
  837. <Rows>
  838. <Row/>
  839. </Rows>
  840. </Dataset>
  841. <Dataset id="ds_data_rectmedistat2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  842. <ColumnInfo>
  843. <Column id="drugnm" type="STRING" size="256"/>
  844. <Column id="direc" type="STRING" size="256"/>
  845. <Column id="orddept" type="STRING" size="256"/>
  846. </ColumnInfo>
  847. <Rows>
  848. <Row>
  849. <Col id="drugnm"/>
  850. <Col id="direc"/>
  851. <Col id="orddept"/>
  852. </Row>
  853. </Rows>
  854. </Dataset>
  855. <Dataset id="ds_codeinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  856. <Dataset id="ds_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  857. <Dataset id="ds_parentFormId" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  858. <ColumnInfo>
  859. <Column id="cd" type="STRING" size="256"/>
  860. </ColumnInfo>
  861. <Rows>
  862. <Row>
  863. <Col id="cd">SMMND00300</Col>
  864. </Row>
  865. </Rows>
  866. </Dataset>
  867. <Dataset id="ds_send_famyfact" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  868. <Dataset id="ds_send_histinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  869. <Dataset id="ds_send_allginfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  870. <ColumnInfo>
  871. <Column id="m" type="STRING" size="256" sumtext="구분"/>
  872. <Column id="sympmnftdd" type="STRING" size="256" sumtext="발생일자"/>
  873. <Column id="symp" type="STRING" size="256" sumtext="allergy내역"/>
  874. <Column id="clscd" type="STRING" size="256" sumtext="allergy구분"/>
  875. <Column id="hosoutyn" type="STRING" size="256" sumtext="원내구분"/>
  876. <Column id="comclscd" type="STRING" size="256" sumtext="콤보구분"/>
  877. <Column id="drugcd" type="STRING" size="256" sumtext="약품코드"/>
  878. <Column id="drugnm" type="STRING" size="256" sumtext="약품명"/>
  879. <Column id="rgstdt" type="STRING" size="256" sumtext="등록일"/>
  880. <Column id="rgster" type="STRING" size="256" sumtext="등록자"/>
  881. <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
  882. </ColumnInfo>
  883. </Dataset>
  884. <Dataset id="ds_data_drunk" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  885. <ColumnInfo>
  886. <Column id="drunkinclyn" type="STRING" size="256"/>
  887. <Column id="kind" type="STRING" size="256"/>
  888. <Column id="dose" type="STRING" size="256"/>
  889. <Column id="tims" type="STRING" size="256"/>
  890. <Column id="term" type="STRING" size="256"/>
  891. </ColumnInfo>
  892. </Dataset>
  893. <Dataset id="ds_temp_signdata_edurecinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  894. <Dataset id="ds_main_famyfactinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  895. <Dataset id="ds_sign_wardrecinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  896. <Dataset id="ds_sign_histinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  897. <Dataset id="ds_sign_famyfact" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  898. <Dataset id="ds_sign_bodyases" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  899. <Dataset id="ds_sign_dialcomn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  900. <Dataset id="ds_sign_dialcarer" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  901. <Dataset id="ds_sign_trans" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  902. <Dataset id="ds_sign_selfcare" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  903. <Dataset id="ds_sign_rgstdial" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  904. <Dataset id="ds_sign_pasthist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  905. <Dataset id="ds_sign_famyhist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  906. <Dataset id="ds_sign_allghist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  907. <Dataset id="ds_sign_smokinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  908. <Dataset id="ds_sign_drunkinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  909. <Dataset id="ds_sign_gustofoodinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  910. <Dataset id="ds_sign_tnsseffcinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  911. <Dataset id="ds_send_comparam" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  912. <Dataset id="ds_send_famyinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  913. <Dataset id="ds_send_signinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  914. <Dataset id="ds_send_dialcarer" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  915. </Objects>
  916. <Bind>
  917. <BindItem id="item4" compid="grp_patinfo.caption10" propid="text" datasetid="ds_main_wardrecinfo" columnid="pid"/>
  918. <BindItem id="item0" compid="grp_patinfo.caption1" propid="text" datasetid="ds_temp_cond_list" columnid="roomcd"/>
  919. <BindItem id="item1" compid="grp_patinfo.caption2" propid="text" datasetid="ds_temp_cond_list" columnid="hngnm"/>
  920. <BindItem id="item2" compid="grp_patinfo.caption4" propid="text" datasetid="ds_temp_cond_list" columnid="sex"/>
  921. <BindItem id="item3" compid="grp_patinfo.caption7" propid="text" datasetid="ds_temp_cond_list" columnid="age"/>
  922. <BindItem id="item5" compid="cmb_bfrecddtm" propid="value" datasetid="ds_main_wardrecinfo" columnid="bfrecddtm"/>
  923. <BindItem id="item6" compid="opt_bfrecuser" propid="value" datasetid="ds_main_wardrecinfo" columnid="bfrecuser"/>
  924. <BindItem id="item7" compid="ipt_recdd" propid="value" datasetid="ds_main_wardrecinfo" columnid="recdd"/>
  925. <BindItem id="item8" compid="ipt_rectm" propid="value" datasetid="ds_main_wardrecinfo" columnid="rectm"/>
  926. <BindItem id="item9" compid="opt_recuser" propid="value" datasetid="ds_main_wardrecinfo" columnid="recuser"/>
  927. <BindItem id="item10" compid="ipt_infodnor" propid="value" datasetid="ds_main_wardrecinfo" columnid="infooffer"/>
  928. </Bind>
  929. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  930. * System Name :
  931. * Job Name :
  932. * Creator :
  933. * Make Date : 2015-11-13
  934. * Description :
  935. *---------------------------------------------------------------------------------------
  936. * Modify Date Modifier Modify Description
  937. *---------------------------------------------------------------------------------------
  938. * 2015-11-13 Live Converter TF->XP
  939. *
  940. *---------------------------------------------------------------------------------------
  941. ****************************************************************************************/
  942. include "com_commonxp::comm_main.xjs";
  943. include "emr_carecomxp::CareCom.xjs";
  944. include "com_commodulexp::SSZFM00901.xjs";
  945. include "com_commodulexp::SSZFM01001.xjs";
  946. include "emr_carerecxp::CareRec.xjs";
  947. include "emr_carecomxp::ENRSignEngine.xjs";
  948. include "emr_prcpmngtxp::MMO001.xjs";
  949. var allgInsYN = "Y";
  950. var bolsign = false;
  951. var status = "select";
  952. function SMMND00300_oninit(obj:Form, e:InitEventInfo)
  953. {
  954. frmf_initForm(obj);
  955. }
  956. function SMMND00300_onload(obj:Form, e:LoadEventInfo)
  957. {
  958. Sign.init();
  959. fGetCmbList();
  960. fInit();
  961. fGetInitRecInfo();
  962. fInitEvent();
  963. }
  964. function fMake_SignData()
  965. {
  966. var instUseYN = "";
  967. var arrSignPath = new Array();
  968. var arrSignDs = new Array();
  969. fSetSignData();
  970. if ( instUseYN =="Y" )
  971. {
  972. arrSignPath[0] = "/edurecinfo";
  973. arrSignPath[1] = "/wardrecinfo";
  974. arrSignPath[2] = "/histinfo";
  975. arrSignDs[0] = ds_temp_signdata_edurecinfo.saveXML();
  976. arrSignDs[1] = ds_main_wardrecinfo.saveXML();
  977. arrSignDs[2] = ds_main_histinfo.saveXML();
  978. }
  979. else
  980. {
  981. arrSignPath[0] = "/wardrecinfo";
  982. arrSignPath[1] = "/histinfo";
  983. arrSignDs[0] = ds_send_wardrecinfo.saveXML();
  984. arrSignDs[1] = ds_send_histinfo.saveXML();
  985. }
  986. ds_main_famyfactinfo.clearData();
  987. for(var i = 0; i < ds_main_famyfact.rowcount; i++)
  988. {
  989. if(!utlf_isNull(ds_main_famyfact.getColumn(i, "rela")))
  990. {
  991. var row = ds_main_famyfactinfo.addRow();
  992. ds_main_famyfactinfo.copyRow(row, ds_main_famyfact, i);
  993. }
  994. }
  995. Sign.addnodeset(arrSignPath, arrSignDs, true);
  996. arrSignPath = new Array();
  997. arrSignDs = new Array();
  998. arrSignPath[0] = "/famyfactinfo/famyfact";
  999. arrSignDs[0] = ds_main_famyfactinfo.saveXML();
  1000. Sign.addnodeset(arrSignPath, arrSignDs, true);
  1001. }
  1002. function fSetSignData()
  1003. {
  1004. var pParam = new Object();
  1005. pParam.cDataYN = "N";
  1006. ds_sign_wardrecinfo.clearData();
  1007. ds_sign_histinfo.clearData();
  1008. ds_sign_wardrecinfo.copyData(ds_send_wardrecinfo);
  1009. ds_sign_histinfo.copyData(ds_send_histinfo);
  1010. ds_sign_famyfact.copyData(ds_main_famyfact);
  1011. ds_sign_bodyases.copyData(ds_data_bodyases);
  1012. ds_sign_dialcomn.copyData(ds_data_dialcomn);
  1013. ds_sign_dialcarer.copyData(ds_data_dialcarer2);
  1014. ds_sign_trans.copyData(ds_data_trans);
  1015. ds_sign_selfcare.copyData(ds_data_selfcare);
  1016. ds_sign_rgstdial.copyData(ds_data_rgstdial);
  1017. ds_sign_pasthist.copyData(ds_data_pasthist2);
  1018. ds_sign_famyhist.copyData(ds_data_famyhist2);
  1019. ds_sign_allghist.copyData(ds_data_allghist2);
  1020. ds_sign_smokinfo.copyData(ds_data_smokinfo);
  1021. ds_sign_gustofoodinfo.copyData(ds_data_gustofoodinfo)
  1022. ds_sign_drunkinfo.copyData(ds_data_drunkinfo);
  1023. ds_sign_tnsseffcinfo.copyData(ds_data_tnsseffc);
  1024. var xWardRecPath = ds_sign_wardrecinfo; //Sign.XPATH_SIGNINFO + "/wardrecinfo";
  1025. var xHistPath = ds_sign_histinfo;//Sign.XPATH_SIGNINFO + "/histinfo";
  1026. var xFamyPath = ds_sign_famyfact;
  1027. var jobcd = xWardRecPath.getColumn(0, "jobcd");
  1028. if(!utlf_isNull(jobcd))
  1029. {
  1030. if(jobcd == "10")
  1031. {
  1032. if(utlf_isNull(xWardRecPath.getColumn(0, "jobnm")))
  1033. {
  1034. xWardRecPath.setColumn(0, "jobcd", switch1.case1.import1.cmb_job.text);
  1035. }
  1036. else
  1037. {
  1038. xWardRecPath.setColumn(0, "jobcd", xWardRecPath.getColumn(0, "jobnm"));
  1039. }
  1040. }
  1041. else
  1042. {
  1043. xWardRecPath.setColumn(0, "jobcd", switch1.case1.import1.cmb_job.text);
  1044. }
  1045. }
  1046. var educgrde = xWardRecPath.getColumn(0, "educgrdecd");
  1047. if(!utlf_isNull(educgrde))
  1048. {
  1049. if(educgrde == "15")
  1050. {
  1051. if(!utlf_isNull(xWardRecPath.getColumn(0, "educgrdenm")))
  1052. {
  1053. xWardRecPath.setColumn(0, "educgrdecd", xWardRecPath.getColumn(0, "educgrdenm"));
  1054. }
  1055. else
  1056. {
  1057. xWardRecPath.setColumn(0, "educgrdecd", switch1.case1.import1.cmb_educgrde.text);
  1058. }
  1059. }
  1060. else
  1061. {
  1062. xWardRecPath.setColumn(0, "educgrdecd", switch1.case1.import1.cmb_educgrde.text);
  1063. }
  1064. }
  1065. var relign = xWardRecPath.getColumn(0, "religncd");
  1066. if(!utlf_isNull(relign))
  1067. {
  1068. if(relign == "01")
  1069. {
  1070. xWardRecPath.setColumn(0, "religncd", switch1.case1.import1.cmb_relign.text);
  1071. if(!utlf_isNull(xWardRecPath.getColumn(0, "baptnm")))
  1072. {
  1073. xWardRecPath.setColumn(0, "religncd", xWardRecPath.getColumn(0, "religncd") + "(" + xWardRecPath.getColumn(0, "baptnm") + ")");
  1074. }
  1075. }
  1076. else if( relign == "09")
  1077. {
  1078. if(utlf_isNull(xWardRecPath.getColumn(0, "relignnm")))
  1079. {
  1080. xWardRecPath.setColumn(0, "religncd", switch1.case1.import1.cmb_relign.text);
  1081. }
  1082. else
  1083. {
  1084. xWardRecPath.setColumn(0, "religncd", xWardRecPath.getColumn(0, "relignnm"));
  1085. }
  1086. }
  1087. else
  1088. {
  1089. xWardRecPath.setColumn(0, "religncd", switch1.case1.import1.cmb_relign.text);
  1090. }
  1091. }
  1092. var relignreq = xWardRecPath.getColumn(0, "relignreq");
  1093. if (!utlf_isNull(relignreq))
  1094. {
  1095. xWardRecPath.setColumn(0, "relignreq", switch1.case1.import1.cmb_relignreq.text);
  1096. }
  1097. var marystat = xWardRecPath.getColumn(0, "marystatcd");
  1098. if(!utlf_isNull(marystat))
  1099. {
  1100. if(marystat == "06")
  1101. {
  1102. if(!utlf_isNull(xWardRecPath.getColumn(0, "marystatnm")))
  1103. {
  1104. xWardRecPath.setColumn(0, "marystatcd", xWardRecPath.getColumn(0, "marystatnm"));
  1105. }
  1106. else
  1107. {
  1108. xWardRecPath.setColumn(0, "marystatcd", switch1.case1.import1.cmb_marystat.text);
  1109. }
  1110. }
  1111. else
  1112. {
  1113. xWardRecPath.setColumn(0, "marystatcd", switch1.case1.import1.cmb_marystat.text);
  1114. }
  1115. }
  1116. var rows = ds_main_famyfact.rowcount;
  1117. var rela;
  1118. for(var i = 0 ; i < rows; i++)
  1119. {
  1120. rela = ds_sign_famyfact.getColumn(i, "rela");
  1121. if(!utlf_isNull(rela))
  1122. {
  1123. ds_sign_famyfact.setColumn(i, "rela", switch1.case1.import1.grd_famyfact.getCellText(i, switch1.case1.import1.grd_famyfact.getBindCellIndex("Body", "rela")));
  1124. }
  1125. }
  1126. var bdbtype = xWardRecPath.getColumn(0, "bdbtype");
  1127. if(!utlf_isNull(bdbtype))
  1128. {
  1129. xWardRecPath.setColumn(0, "bdbtype", switch1.case1.import1.cmb_bdbtype.text);
  1130. }
  1131. var bdtppart = xWardRecPath.getColumn(0, "bdtppartcd");
  1132. if(!utlf_isNull(bdtppart))
  1133. {
  1134. xWardRecPath.setColumn(0, "bdtppartcd", switch1.case1.import1.cmb_bdtp.text);
  1135. }
  1136. var soulstat = ds_data_bodyases.getColumn(0, "soulstat")
  1137. if(!utlf_isNull(soulstat))
  1138. {
  1139. ds_sign_bodyases.setColumn(0, "soulstat", switch1.case1.import1.cmb_soulstat.text);
  1140. }
  1141. var comustat = ds_data_bodyases.getColumn(0, "comustat")
  1142. if(!utlf_isNull(comustat))
  1143. {
  1144. ds_sign_bodyases.setColumn(0, "comustat", switch1.case1.import1.rdo_comustat.text);
  1145. }
  1146. var emotstat = ds_data_bodyases.getColumn(0, "emotstat")
  1147. var emotstatnm = ds_data_bodyases.getColumn(0, "emotstatnm")
  1148. str = switch1.case1.import1.cmb_emotstat.text;
  1149. if(!utlf_isNull(emotstat))
  1150. {
  1151. if(emotstat == "07")
  1152. {
  1153. if(!utlf_isNull(emotstatnm))
  1154. {
  1155. str += "(" + emotstatnm + ")";
  1156. }
  1157. }
  1158. ds_sign_bodyases.setColumn(0, "emotstat", str);
  1159. }
  1160. DataSet_XMLChangeName = "";
  1161. DataSet_XMLChangeName = DataSet_XMLChange( ds_sign_bodyases,
  1162. "ds_sign_bodyases",
  1163. "bodyases",
  1164. "<bodyases><soulstat/><comustat/><emotstat/><emotstatnm/></bodyases>");
  1165. dsf_makeValue(ds_sign_wardrecinfo, "bodyases", "string", DataSet_XMLChangeName);
  1166. var viralmarker = ds_main_wardrecinfo.getColumn(0, "viralmarker");
  1167. if(!utlf_isNull(viralmarker))
  1168. {
  1169. arr = String(switch1.case1.import1.chk_viralmarker.getData()).split(" ");
  1170. dsf_makeValue(ds_sign_wardrecinfo, "viralmarker", "string", arr, 0);
  1171. }
  1172. var fstdialkind = ds_main_wardrecinfo.getColumn(0, "fstdialkind");
  1173. if(!utlf_isNull(fstdialkind))
  1174. {
  1175. dsf_makeValue(ds_sign_wardrecinfo, "fstdialkind", "string", switch1.case1.import1.cmb_fstdialkind.text, 0);
  1176. }
  1177. var cassickkind = ds_data_dialcomn.getColumn(0, "cassickkind");
  1178. var cassick = ds_data_dialcomn.getColumn(0, "cassick");
  1179. str = switch1.case1.import1.cmb_cassickkind.text;
  1180. if(!utlf_isNull(cassickkind))
  1181. {
  1182. if(cassickkind == "08")
  1183. {
  1184. if(!utlf_isNull(cassick))
  1185. {
  1186. str += "(" + cassick + ")";
  1187. }
  1188. }
  1189. ds_sign_dialcomn.setColumn(0, "cassickkind", str);
  1190. }
  1191. var kidnfaluryn = ds_data_dialcomn.getColumn(0, "kidnfaluryn");
  1192. if(!utlf_isNull(kidnfaluryn))
  1193. {
  1194. ds_sign_dialcomn.setColumn(0, "kidnfaluryn", switch1.case1.import1.rdo_kidnfaluryn.text);
  1195. }
  1196. var medigrant = ds_data_dialcomn.getColumn(0, "medigrant");
  1197. if(!utlf_isNull(medigrant))
  1198. {
  1199. ds_sign_dialcomn.setColumn(0, "medigrant", switch1.case1.import1.cmb_medigrant.text);
  1200. }
  1201. var healcntrprofitkind = ds_data_dialcomn.getColumn(0, "healcntrprofitkind");
  1202. var healcntrprofit = ds_data_dialcomn.getColumn(0, "healcntrprofit");
  1203. str = switch1.case1.import1.cmb_healcntrprofitkind.text;
  1204. if(!utlf_isNull(healcntrprofitkind))
  1205. {
  1206. if(healcntrprofitkind == "2")
  1207. {
  1208. if(!utlf_isNull(healcntrprofit))
  1209. {
  1210. str += "(" + healcntrprofit + ")";
  1211. }
  1212. }
  1213. ds_sign_dialcomn.setColumn(0, "healcntrprofitkind", str);
  1214. }
  1215. var economystat = ds_data_dialcomn.getColumn(0, "economystat");
  1216. if(!utlf_isNull(economystat))
  1217. {
  1218. ds_sign_dialcomn.setColumn(0, "economystat", switch1.case1.import1.cmb_economystat.text);
  1219. }
  1220. DataSet_XMLChangeName = "";
  1221. DataSet_XMLChangeName = DataSet_XMLChange( ds_sign_dialcomn,
  1222. "ds_sign_dialcomn",
  1223. "dialcomn",
  1224. "<dialcomn><chosresn/><cassickkind/><kidnfaluryn/><medigrant/><healcntrprofitkind/><economystat/><cassick/><healcntrprofit/></dialcomn>");
  1225. dsf_makeValue(ds_sign_wardrecinfo, "dialcomninfoetc", "string", DataSet_XMLChangeName);
  1226. var rows = ds_sign_dialcarer.rowcount;
  1227. var dialkind;
  1228. for(var i = 0 ; i < rows; i++)
  1229. {
  1230. dialkind = ds_sign_dialcarer.getColumn(i, "dialkind");
  1231. if(!utlf_isNull(dialkind))
  1232. {
  1233. ds_sign_dialcarer.setColumn(i, "dialkind", switch1.case1.import1.grd_dialcare.getCellText(i, switch1.case1.import1.grd_dialcare.getBindCellIndex("Body", "dialkind")));
  1234. }
  1235. }
  1236. DataSet_XMLChangeName = "";
  1237. DataSet_XMLChangeName = DataSet_XMLChange2( ds_data_dialcarer1,
  1238. ds_sign_dialcarer,
  1239. "ds_data_dialcarer1",
  1240. "ds_sign_dialcarer",
  1241. "dialcareinclyn",
  1242. "dialcarercms",
  1243. "dialcarer1",
  1244. "dialcarer1/dialcarercms",
  1245. "<dialcarer1><dialcareinclyn/><dialcarercms><dialkind/><fstdd/><enddd/><remfact/></dialcarercms></dialcarer1>");
  1246. DataSet_XMLChangeName = DataSet_XMLChangeName.replace("dialcarercms","dialcarer");
  1247. DataSet_XMLChangeName = DataSet_XMLChangeName.replace("dialcarer1","dialcarer");
  1248. dsf_makeValue(ds_sign_wardrecinfo, "dialcarer", "string", DataSet_XMLChangeName);
  1249. //
  1250. // DataSet_XMLChangeName = "";
  1251. // DataSet_XMLChangeName = DataSet_XMLChange( ds_sign_dialcarer,
  1252. // "ds_sign_dialcarer",
  1253. // "dialcarer",
  1254. // "<dialcarer><dialcareinclyn/><dialkind/><fstdd/><enddd/><remfact/></dialcarer>");
  1255. // dsf_makeValue(ds_sign_wardrecinfo, "dialcarer", "string", DataSet_XMLChangeName);
  1256. var selfstat = ds_sign_trans.getColumn(0, "selfstat");
  1257. var selfstatcnt = "";
  1258. var selfstat_arr = "";
  1259. if(!utlf_isNull(selfstat))
  1260. {
  1261. selfstatcnt = switch1.case1.import1.rdo_selfstat.text;
  1262. }
  1263. if(selfstat == "01")
  1264. {
  1265. selfstatcnt = selfstatcnt;
  1266. }
  1267. else if(selfstat == "02")
  1268. {
  1269. if(!utlf_isNull(ds_sign_trans.getColumn(0, "impsiresn")))
  1270. {
  1271. selfstatcnt = selfstatcnt + " (사유 : " + ds_data_trans.getColumn(0, "impsiresn") + ")";
  1272. }
  1273. }
  1274. else if(selfstat == "03")
  1275. {
  1276. selfstat_arr = String(switch1.case1.import1.chk_possresn.getData()).split(" ");
  1277. if(!utlf_isNull(ds_sign_trans.getColumn(0, "possresnetc")))
  1278. {
  1279. selfstatcnt = selfstatcnt + " (" + selfstat_arr + ":" + ds_data_trans.getColumn(0, "possresnetc")+ ")";
  1280. }
  1281. else
  1282. {
  1283. selfstatcnt = selfstatcnt + " (" +selfstat_arr + ")";
  1284. }
  1285. }
  1286. ds_sign_trans.setColumn(0, "selfstat", selfstatcnt);
  1287. DataSet_XMLChangeName = "";
  1288. DataSet_XMLChangeName = DataSet_XMLChange( ds_sign_trans,
  1289. "ds_sign_trans",
  1290. "trans",
  1291. "<trans><kidntransinclyn/><selfstat/><rgstdd/><rgsthosp/><possresn/><impsiresn/><possresnetc/></trans>");
  1292. dsf_makeValue(ds_sign_wardrecinfo, "trans", "string", DataSet_XMLChangeName);
  1293. var selfcareyn = ds_sign_selfcare.getColumn(0, "selfcareyn");
  1294. if(!utlf_isNull(selfcareyn))
  1295. {
  1296. ds_sign_selfcare.setColumn(0, "selfcareyn", switch1.case1.import1.rdo_selfcareyn.text);
  1297. }
  1298. DataSet_XMLChangeName = "";
  1299. DataSet_XMLChangeName = DataSet_XMLChange( ds_sign_selfcare,
  1300. "ds_sign_selfcare",
  1301. "selfcare",
  1302. "<selfcare><selfcareyn/><helpdnor/><resn/></selfcare>");
  1303. dsf_makeValue(ds_sign_wardrecinfo, "selfcareinfo", "string", DataSet_XMLChangeName);
  1304. var dialkind = ds_sign_rgstdial.getColumn(0, "dialkind");
  1305. if(!utlf_isNull(dialkind))
  1306. {
  1307. ds_sign_rgstdial.setColumn(0, "dialkind", switch1.case1.import1.rdo_dialkind.text);
  1308. }
  1309. var veslkind = ds_sign_rgstdial.getColumn(0, "veslkind");
  1310. if(!utlf_isNull(veslkind))
  1311. {
  1312. ds_sign_rgstdial.setColumn(0, "veslkind", switch1.case1.import1.cmb_veslkind.text);
  1313. }
  1314. var vesltype = ds_sign_rgstdial.getColumn(0, "vesltype");
  1315. if(!utlf_isNull(vesltype))
  1316. {
  1317. ds_sign_rgstdial.setColumn(0, "vesltype", switch1.case1.import1.cmb_vesltype.text);
  1318. }
  1319. DataSet_XMLChangeName = "";
  1320. DataSet_XMLChangeName = DataSet_XMLChange( ds_sign_rgstdial,
  1321. "ds_sign_rgstdial",
  1322. "rgstdial",
  1323. "<rgstdial><rgstdialinfoinclyn/><dialkind/><veslkind/><vesltype/></rgstdial>");
  1324. dsf_makeValue(ds_sign_wardrecinfo, "rgstdialinfo", "string", DataSet_XMLChangeName);
  1325. var rows = ds_sign_pasthist.rowcount;
  1326. var histspec;
  1327. for(var i = 0 ; i < rows; i++)
  1328. {
  1329. histspec = ds_sign_pasthist.getColumn(i, "histspec");
  1330. if(!utlf_isNull(histspec))
  1331. {
  1332. ds_sign_pasthist.setColumn(i, "histspec", switch1.case2.import4.grd_pasthist.getCellText(i, switch1.case2.import4.grd_pasthist.getBindCellIndex("Body", "histspec")));
  1333. }
  1334. }
  1335. DataSet_XMLChangeName = "";
  1336. DataSet_XMLChangeName = DataSet_XMLChange2( ds_data_pasthist1,
  1337. ds_sign_pasthist,
  1338. "ds_data_pasthist1",
  1339. "ds_sign_pasthist",
  1340. "pasthistinclyn",
  1341. "pasthistcms",
  1342. "pasthist1",
  1343. "pasthist1/pasthistcms",
  1344. "<pasthist1><pasthistinclyn/><pasthistcms><genrdd/><histspec/><remfact/></pasthistcms></pasthist1>");
  1345. DataSet_XMLChangeName = DataSet_XMLChangeName.replace("pasthistcms","pasthist");
  1346. DataSet_XMLChangeName = DataSet_XMLChangeName.replace("pasthist1","pasthist");
  1347. dsf_makeValue(ds_sign_wardrecinfo, "pasthistinfo", "string", DataSet_XMLChangeName);
  1348. var famyrel;
  1349. var existyn;
  1350. rows = ds_sign_famyhist.rowcount;
  1351. for(var i = 0; i < rows; i++)
  1352. {
  1353. famyrel = ds_sign_famyhist.getColumn(i, "famyrel");
  1354. existyn = ds_sign_famyhist.getColumn(i, "existyn");
  1355. histspec = ds_sign_famyhist.getColumn(i, "histspec");
  1356. if(!utlf_isNull(famyrel))
  1357. {
  1358. ds_sign_famyhist.setColumn(i, "famyrel", switch1.case2.import4.grd_famyhist.getCellText(i, switch1.case2.import4.grd_famyhist.getBindCellIndex("Body", "famyrel")));
  1359. }
  1360. if(!utlf_isNull(existyn))
  1361. {
  1362. ds_sign_famyhist.setColumn(i, "existyn", switch1.case2.import4.grd_famyhist.getCellText(i, switch1.case2.import4.grd_famyhist.getBindCellIndex("Body", "existyn")));
  1363. }
  1364. if(!utlf_isNull(histspec))
  1365. {
  1366. ds_sign_famyhist.setColumn(i, "histspec", switch1.case2.import4.grd_famyhist.getCellText(i, switch1.case2.import4.grd_famyhist.getBindCellIndex("Body", "histspec")));
  1367. }
  1368. }
  1369. DataSet_XMLChangeName = "";
  1370. DataSet_XMLChangeName = DataSet_XMLChange2( ds_data_famyhist1,
  1371. ds_sign_famyhist,
  1372. "ds_data_famyhist1",
  1373. "ds_sign_famyhist",
  1374. "famyhistinclyn",
  1375. "famyhistcms",
  1376. "famyhist1",
  1377. "famyhist1/famyhistcms",
  1378. "<famyhist1><famyhistinclyn/><famyhistcms><famyrel/><existyn/><histspec/><remfact/></famyhistcms></famyhist1>");
  1379. DataSet_XMLChangeName = DataSet_XMLChangeName.replace("famyhistcms","famyhist");
  1380. DataSet_XMLChangeName = DataSet_XMLChangeName.replace("famyhist1","famyhist");
  1381. dsf_makeValue(ds_sign_wardrecinfo, "famyhistinfo", "string", DataSet_XMLChangeName);
  1382. // rows = ds_sign_allghist.rowcount;
  1383. // var flag;
  1384. //
  1385. // for(var i = 0 ; i < rows; i++)
  1386. // {
  1387. // flag = ds_sign_allghist.getColumn(i, "flag");
  1388. // if(!utlf_isNull(flag))
  1389. // {
  1390. // ds_sign_allghist.setColumn(i, "flag", switch1.case2.import4.grd_allghist.getCellText(i, switch1.case2.import4.grd_allghist.getBindCellIndex("Body", "histspec")));
  1391. // }
  1392. // }
  1393. //
  1394. // DataSet_XMLChangeName = "";
  1395. // DataSet_XMLChangeName = DataSet_XMLChange2( ds_data_allghist1,
  1396. // ds_sign_allghist,
  1397. // "ds_data_allghist1",
  1398. // "ds_sign_allghist",
  1399. // "allghistinclyn",
  1400. // "allghistcms",
  1401. // "allghist",
  1402. // "allghist/allghistcms",
  1403. // "<allghist><allghistinclyn/><allghist/><genrdd/><flag/><allergespec/><hosoutyn/><comclscd/><drugcd/><drugnm/><symp/><rgstdt/><rgster/><cretno/></allghist><tnsseffcyn/><tnsseffcdetl/></allghist>");
  1404. // DataSet_XMLChangeName = DataSet_XMLChangeName.replace("allghistcms","allghist");
  1405. // DataSet_XMLChangeName = DataSet_XMLChangeName.replace("allghist1","allghist");
  1406. // dsf_makeValue(ds_sign_wardrecinfo, "allghistinfo", "string", DataSet_XMLChangeName);
  1407. var smokinfoyn = ds_sign_smokinfo.getColumn(0, "smokinfoyn");
  1408. var smokinfocnt = ds_sign_smokinfo.getColumn(0, "smokinfocnt");
  1409. if(!utlf_isNull(smokinfoyn))
  1410. {
  1411. if(smokinfoyn == "2" && !utlf_isNull(smokinfocnt))
  1412. {
  1413. ds_sign_smokinfo.setColumn(0, "smokinfoyn", switch1.case2.import4.rdo_smokinfo.text+"("+smokinfocnt+")");
  1414. }
  1415. else
  1416. {
  1417. ds_sign_smokinfo.setColumn(0, "smokinfoyn", switch1.case2.import4.rdo_smokinfo.text);
  1418. }
  1419. }
  1420. var drunkinfoyn = ds_sign_drunkinfo.getColumn(0, "drunkinfoyn");
  1421. if(!utlf_isNull(drunkinfoyn))
  1422. {
  1423. if(drunkinfoyn == "2")
  1424. {
  1425. if(!utlf_isNull(ds_sign_drunkinfo.getColumn(0, "drunkinfokind")))
  1426. {
  1427. if(!utlf_isNull(ds_sign_drunkinfo.getColumn(0, "drunkinfoterm")))
  1428. {
  1429. ds_sign_drunkinfo.setColumn(0, "drunkinfoyn", ds_sign_drunkinfo.getColumn(0, "drunkinfokind")+ " " + ds_sign_drunkinfo.getColumn(0, "drunkinfoterm") + switch1.case2.import4.cap_drunkinfoterm.text);
  1430. }
  1431. else
  1432. {
  1433. ds_sign_drunkinfo.setColumn(0, "drunkinfoyn", ds_sign_drunkinfo.getColumn(0, "drunkinfokind"));
  1434. }
  1435. }
  1436. else
  1437. {
  1438. if(!utlf_isNull(ds_sign_drunkinfo.getColumn(0, "drunkinfoterm")))
  1439. {
  1440. ds_sign_drunkinfo.setColumn(0, "drunkinfoyn", ds_sign_drunkinfo.getColumn(0, "drunkinfoterm") + switch1.case2.import4.cap_drunkinfoterm.text);
  1441. }
  1442. else
  1443. {
  1444. ds_sign_drunkinfo.setColumn(0, "drunkinfoyn", switch1.case2.import4.rdo_drunkinfo.text);
  1445. }
  1446. }
  1447. }
  1448. else
  1449. {
  1450. ds_sign_drunkinfo.setColumn(0, "drunkinfoyn", switch1.case2.import4.rdo_drunkinfo.text);
  1451. }
  1452. }
  1453. var gustofoodyn = ds_sign_gustofoodinfo.getColumn(0, "gustofoodyn");
  1454. if(!utlf_isNull(gustofoodyn))
  1455. {
  1456. if(gustofoodyn == "2")
  1457. {
  1458. if(!utlf_isNull(ds_sign_gustofoodinfo.getColumn(0, "gustofooddetl")))
  1459. {
  1460. ds_sign_gustofoodinfo.setColumn(0, "gustofoodyn", ds_sign_gustofoodinfo.getColumn(0, "gustofooddetl"))
  1461. }
  1462. else
  1463. {
  1464. ds_sign_gustofoodinfo.setColumn(0, "gustofoodyn", switch1.case2.import4.rdo_gustofoodyn.text);
  1465. }
  1466. }
  1467. else
  1468. {
  1469. ds_sign_gustofoodinfo.setColumn(0, "gustofoodyn", switch1.case2.import4.rdo_gustofoodyn.text);
  1470. }
  1471. }
  1472. var tnsseffcyn = ds_sign_tnsseffcinfo.getColumn(0, "tnsseffcyn");
  1473. if(!utlf_isNull(tnsseffcyn))
  1474. {
  1475. if(tnsseffcyn == "2")
  1476. {
  1477. if(!utlf_isNull(ds_sign_tnsseffcinfo.getColumn(0, "tnsseffcdetl")))
  1478. {
  1479. ds_sign_tnsseffcinfo.setColumn(0, "tnsseffcyn", ds_sign_tnsseffcinfo.getColumn(0, "tnsseffcdetl"));
  1480. }
  1481. else
  1482. {
  1483. ds_sign_tnsseffcinfo.setColumn(0, "tnsseffcyn", switch1.case2.import4.rdo_tnsseffcyn.text);
  1484. }
  1485. }
  1486. else
  1487. {
  1488. ds_sign_tnsseffcinfo.setColumn(0, "tnsseffcyn", ds_sign_tnsseffcinfo.getColumn(0, "tnsseffcdetl"));
  1489. }
  1490. }
  1491. sParamObjArr = [{ds: "ds_sign_smokinfo", path:"/gusto/smokinfo", filter: ""},
  1492. {ds: "ds_sign_drunkinfo", path:"/gusto/drunkinfo", filter: ""},
  1493. {ds: "ds_sign_gustofoodinfo", path:"/gusto/gustofoodinfo", filter: ""},
  1494. {ds: "ds_sign_tnsseffcinfo", path:"/gusto/tnsseffcinfo", filter: ""}];
  1495. DataSet_XMLChangeName = lf_convertDsToXml(sParamObjArr,"<gusto><smokinfo><smokinfoyn/><bfsmokinfoyn/><nosmokcnstyn/><nosmokcnst/><nosmokcnstnm/><smokinfocnt/></smokinfo><drunkinfo><drunkinfoyn/><drunkinfokind/><drunkinfoterm/></drunkinfo><gustofoodinfo><gustofoodyn/><gustofooddetl/></gustofoodinfo><tnsseffcinfo><tnsseffcyn/><tnsseffcdetl/></tnsseffcinfo></gusto>", pParam);
  1496. dsf_makeValue(ds_sign_wardrecinfo, "gustoinfo", "string", DataSet_XMLChangeName);
  1497. }
  1498. function fGetCmbList()
  1499. {
  1500. fGetNursHardCdInfo("'077','172','177'", utlf_getCurrentDate());
  1501. var arrParam = [{dsNm: "ds_init_mlist_M0068" ,cdGrpId: "M0068" }, //직업
  1502. {dsNm: "ds_init_mlist_M0069" ,cdGrpId: "M0069" }, //교육정도
  1503. {dsNm: "ds_init_mlist_M0070" ,cdGrpId: "M0070" }, //종교
  1504. {dsNm: "ds_init_mlist_M0071" ,cdGrpId: "M0071" }, //결혼상태
  1505. {dsNm: "ds_init_mlist_M0151" ,cdGrpId: "M0151" }, //결혼상태
  1506. {dsNm: "ds_init_mlist_M0072" ,cdGrpId: "M0072" }, //관계
  1507. {dsNm: "ds_init_mlist_M0073" ,cdGrpId: "M0073" }, //부위
  1508. {dsNm: "ds_init_mlist_M0376" ,cdGrpId: "M0376" }, //혈액형
  1509. {dsNm: "ds_init_mlist_M0075" ,cdGrpId: "M0075" }, //의식상태
  1510. {dsNm: "ds_init_mlist_M0079" ,cdGrpId: "M0079" }, //원인질환
  1511. {dsNm: "ds_init_mlist_P0008" ,cdGrpId: "P0008" }, //보험유형 //,"M0080" //의료보장
  1512. {dsNm: "ds_init_mlist_M0081" ,cdGrpId: "M0081" }, //경제상태
  1513. {dsNm: "ds_init_mlist_M0082" ,cdGrpId: "M0082" }, //투석경력종류
  1514. {dsNm: "ds_init_mlist_M0083" ,cdGrpId: "M0083" }, //혈관종류
  1515. {dsNm: "ds_init_mlist_M0084" ,cdGrpId: "M0084" }, //유형
  1516. {dsNm: "ds_init_mlist_M0088" ,cdGrpId: "M0088" }, //생존여부
  1517. {dsNm: "ds_init_mlist_M0090" ,cdGrpId: "M0090" }, //알러지
  1518. {dsNm: "ds_init_mlist_M0091" ,cdGrpId: "M0091" }, //흡연량
  1519. {dsNm: "ds_init_mlist_M0092" ,cdGrpId: "M0092" }, //음주종류
  1520. {dsNm: "ds_init_mlist_M0093" ,cdGrpId: "M0093" }, //기호식품
  1521. {dsNm: "ds_init_mlist_M0098" ,cdGrpId: "M0098" }, //동반자
  1522. {dsNm: "ds_init_mlist_M0100" ,cdGrpId: "M0100" }, //지남력
  1523. {dsNm: "ds_init_mlist_M0102" ,cdGrpId: "M0102" }, //요흔
  1524. {dsNm: "ds_init_mlist_M0103" ,cdGrpId: "M0103" }, //부착기구
  1525. {dsNm: "ds_init_mlist_M0104" ,cdGrpId: "M0104" }, //소변색깔
  1526. {dsNm: "ds_init_mlist_M0105" ,cdGrpId: "M0105" }, //소변증상
  1527. {dsNm: "ds_init_mlist_M0106" ,cdGrpId: "M0106" }, //대변색깔
  1528. {dsNm: "ds_init_mlist_M0107" ,cdGrpId: "M0107" }, //대변종류
  1529. {dsNm: "ds_init_mlist_M0109" ,cdGrpId: "M0109" }, //동공빛반사여부
  1530. {dsNm: "ds_init_mlist_M0110" ,cdGrpId: "M0110" }, //동공수치
  1531. {dsNm: "ds_init_mlist_M0411" ,cdGrpId: "M0411" }, //영적요구
  1532. {dsNm: "ds_init_mlist_M0210" ,cdGrpId: "M0210" }, //입원방법
  1533. {dsNm: "ds_init_mlist_M0375" ,cdGrpId: "M0375" }, //체온부위
  1534. {dsNm: "ds_init_mlist_M0368" ,cdGrpId: "M0368" }, //가족병력내역
  1535. {dsNm: "ds_init_mlist_M0532" ,cdGrpId: "M0532" }]; //과거병력내역_20090406_SMY추가
  1536. appf_getCodeList(arrParam);
  1537. }
  1538. function fInitEvent()
  1539. {
  1540. switch1.case1.import1.cmb_vesltype.innerdataset = "ds_init_mlist_M0084";
  1541. switch1.case1.import1.cmb_vesltype.datacolumn = "cdnm";
  1542. switch1.case1.import1.cmb_vesltype.codecolumn = "cdid";
  1543. switch1.case1.import1.fInitEventDialInfo();
  1544. switch1.case2.import4.fInitEventHistInfo();
  1545. }
  1546. function fInit()
  1547. {
  1548. ds_temp_cond_list.clearData();
  1549. appf_getPatientInfoDetails("ds_temp_cond_list");
  1550. var pid;
  1551. var room;
  1552. var patnm;
  1553. var sex;
  1554. var age;
  1555. var instcd;
  1556. var orddeptcd;
  1557. var indd;
  1558. var ioflag = ds_temp_cond_list.getColumn(0, "ioflag");
  1559. if(ioflag == "O")
  1560. {
  1561. indd = ds_temp_cond_list.getColumn(0, "orddd");
  1562. }
  1563. else
  1564. {
  1565. indd = ds_temp_cond_list.getColumn(0, "indd");
  1566. room = ds_temp_cond_list.getColumn(0, "roomcd");
  1567. }
  1568. patnm = ds_temp_cond_list.getColumn(0, "hngnm");
  1569. sex = ds_temp_cond_list.getColumn(0, "sex");
  1570. age = ds_temp_cond_list.getColumn(0, "age");
  1571. pid = ds_temp_cond_list.getColumn(0, "pid");
  1572. instcd = ds_temp_cond_list.getColumn(0, "instcd");
  1573. orddetpcd = ds_temp_cond_list.getColumn(0, "orddeptcd");
  1574. cretno = ds_temp_cond_list.getColumn(0, "cretno");
  1575. ioflag = ds_temp_cond_list.getColumn(0, "ioflag");
  1576. dsf_makeValue(ds_main_wardrecinfo, "room", "string", room, 0);
  1577. dsf_makeValue(ds_main_wardrecinfo, "patnm", "string", patnm, 0);
  1578. dsf_makeValue(ds_main_wardrecinfo, "sex", "string", sex, 0);
  1579. dsf_makeValue(ds_main_wardrecinfo, "age", "string", age, 0);
  1580. dsf_makeValue(ds_main_wardrecinfo, "pid", "string", pid, 0);
  1581. var scrnid = frmf_getScreenID();
  1582. var param = "pid▦orddd▦cretno▦ordtype▦scrnid" +"▩" + pid+"▦" +indd+"▦"+cretno+"▦"+ioflag+"▦"+scrnid+"▩";
  1583. fEnrCareComRecInfo_SPMNZ002(param, ds_main_enrcarecomrecinfo);
  1584. }
  1585. function SetchkList()
  1586. {
  1587. var getData = utlf_transNullToEmpty(ds_main_wardrecinfo.getColumn(0, "viralmarker")).split(" ");
  1588. switch1.case1.import1.chk_viralmarker.setData(getData,null,false);
  1589. }
  1590. //조회
  1591. function fGetInitRecInfo()
  1592. {
  1593. var pid = ds_temp_cond_list.getColumn(0, "pid");
  1594. var indd = "";
  1595. var instcd = ds_temp_cond_list.getColumn(0, "instcd");
  1596. var orddeptcd = ds_temp_cond_list.getColumn(0, "orddeptcd");
  1597. var ioflag = ds_temp_cond_list.getColumn(0, "ioflag");
  1598. if(ioflag == "O")
  1599. {
  1600. indd = ds_temp_cond_list.getColumn(0, "orddd");
  1601. }
  1602. else
  1603. {
  1604. indd = ds_temp_cond_list.getColumn(0, "indd");
  1605. }
  1606. var cretno = ds_temp_cond_list.getColumn(0, "cretno");
  1607. var instUseYN ="";
  1608. dsf_makeValue( ds_send_req, "pid", "string", pid, 0);
  1609. dsf_makeValue( ds_send_req, "indd", "string", indd, 0);
  1610. dsf_makeValue( ds_send_req, "instcd", "string", instcd, 0);
  1611. dsf_makeValue( ds_send_req, "recflag", "string", "08", 0);
  1612. dsf_makeValue( ds_send_req, "docucode", "string", "0000002437", 0);
  1613. dsf_makeValue( ds_send_req, "deptcd", "string", orddeptcd, 0);
  1614. if(utlf_isNull(pid))
  1615. {
  1616. sysf_messageBox("환자를 선택하지 ", "E007");
  1617. this.close();
  1618. }
  1619. else
  1620. {
  1621. if(instUseYN == "Y")
  1622. {
  1623. grp_patinfo.position.x = 539;
  1624. frmf_setParameter("SPMRJ00300_pid", pid);
  1625. frmf_setParameter("SPMRJ00300_orddd", indd);
  1626. frmf_setParameter("SPMRJ00300_cretno", cretno);
  1627. group3.switch1.case_edurec.ivw_edurec.url = "emr_jcimngtxp::SPMRJ00300_교육요구도사정.xfdl";
  1628. group3.switch1.case_edurec.ivw_edurec.group2.visible = false;
  1629. }
  1630. else
  1631. {
  1632. grp_patinfo.position.x = 107;
  1633. //grp_patinfo.style = "left:210px; top:50px; width:640px; height:20px;" ;
  1634. //btn_edurec.visible = false;
  1635. }
  1636. var oParam = {};
  1637. oParam.id = "TRMND00301";
  1638. oParam.service = "wardcareapp.WardCareRec";
  1639. oParam.method = "reqGetRecInfo";
  1640. oParam.inds = "reqlist=ds_send_req";
  1641. oParam.outds = "ds_hidden_paminfo_paminfo=paminfo ds_hidden_paminfo_recinfo=recinfo";
  1642. oParam.async = false;
  1643. tranf_submit(oParam);
  1644. var exeflag = ds_hidden_paminfo_paminfo.getColumn(0, "exeflag");
  1645. if(exeflag == "U")
  1646. {
  1647. var oParam = {};
  1648. oParam.id = "TRMND00302";
  1649. oParam.service = "wardcareapp.WardCareRec";
  1650. oParam.method = "reqGetAllRecInfo";
  1651. oParam.inds = "reqlist=ds_send_req";
  1652. oParam.outds = "ds_main_famyfact=famyfact ds_main_histinfo=histinfo ds_main_wardrecinfo=wardrecinfo";
  1653. oParam.async = false;
  1654. tranf_submit(oParam);
  1655. ds_signinfo.setColumn(0, "signno", ds_main_wardrecinfo.getColumn(0, "signno"));
  1656. var existfamyinfo = ds_main_wardrecinfo.getColumn(0, "existfamyinfo");
  1657. //frmf_setParameter("SPMMR04711_shape", fGetXmlToStr("ds_main_wardrecinfo", "/root/main/wardrecinfo"));
  1658. dsf_makeValue( ds_main_wardrecinfo, "bfrecddtm", "string", ds_hidden_paminfo_recinfo.lookupExpr("recflag == '08' && indd == '"+indd+"'", "recpkspec"), 0);
  1659. dsf_makeValue( ds_main_wardrecinfo, "bfrecuser", "string", ds_hidden_paminfo_recinfo.lookupExpr("recflag == '08' && indd == '"+indd+"'", "bfrecuser"), 0);
  1660. var pParamObj = new Object();
  1661. pParamObj.pathYN = "Y";
  1662. pParamObj.nullColumnYN = "Y";
  1663. convertXmlToDsNull(ds_main_wardrecinfo.getColumn(0, "famytree"));
  1664. convertXmlToDsNull(ds_main_wardrecinfo.getColumn(0, "gustoinfo"));
  1665. convertXmlToDsNull(ds_main_wardrecinfo.getColumn(0, "bodyases"));
  1666. convertXmlToDsNull(ds_main_wardrecinfo.getColumn(0, "dialcomninfoetc"));
  1667. convertXmlToDsNull(ds_main_wardrecinfo.getColumn(0, "dialcarer"));
  1668. convertXmlToDsNull(ds_main_wardrecinfo.getColumn(0, "trans"));
  1669. convertXmlToDsNull(ds_main_wardrecinfo.getColumn(0, "selfcareinfo"));
  1670. convertXmlToDsNull(ds_main_wardrecinfo.getColumn(0, "rgstdialinfo"));
  1671. convertXmlToDsNull(ds_main_wardrecinfo.getColumn(0, "progrec"));
  1672. convertXmlToDsNull(ds_main_histinfo.getColumn(0, "pasthistinfo"));
  1673. convertXmlToDsNull(ds_main_histinfo.getColumn(0, "famyhistinfo"));
  1674. convertXmlToDsNull(ds_main_histinfo.getColumn(0, "inhistinfo"));
  1675. convertXmlToDsNull(ds_main_histinfo.getColumn(0, "ophistinfo"));
  1676. convertXmlToDsNull(ds_main_histinfo.getColumn(0, "allghistinfo"));
  1677. convertXmlToDsNull(ds_main_histinfo.getColumn(0, "vacnhistinfo"));
  1678. convertXmlToDsNull(ds_main_histinfo.getColumn(0, "rectmedistatinfo"));
  1679. convertXmlToDsNull(ds_main_histinfo.getColumn(0, "smokinfo"));
  1680. //convertXmlToDsNull(ds_main_histinfo.getColumn(0, "drunkinfo"));
  1681. convertXmlToDsNull(ds_main_histinfo.getColumn(0, "gustofoodinfo"));
  1682. //convertXmlToDsNull(ds_main_histinfo.getColumn(0, "tnsseffcinfo"));
  1683. dsf_setDefaultVal(ds_data_drunkinfo, "drunkinfoyn:1");
  1684. filterDs(ds_data_dialcarer, ds_data_dialcarer1, ds_data_dialcarer2, "/dialcarer", "/dialcarer/dialcarer");
  1685. filterDs(ds_data_famyhist, ds_data_famyhist1, ds_data_famyhist2, "/famyhist", "/famyhist/famyhist");
  1686. filterDs(ds_data_inhist, ds_data_inhist1, ds_data_inhist2, "/inhist", "/inhist/inhist");
  1687. filterDs(ds_data_ophist, ds_data_ophist1, ds_data_ophist2, "/ophist", "/ophist/ophist");
  1688. filterDs(ds_data_allghist, ds_data_allghist1, ds_data_allghist2, "/allghist", "/allghist/allghist");
  1689. filterDs(ds_data_pasthist, ds_data_pasthist1, ds_data_pasthist2, "/pasthist", "/pasthist/pasthist");
  1690. filterDs(ds_data_smok, ds_data_smok1, ds_data_smok2, "/smok", "/smok/smok");
  1691. //filterDs(ds_data_drunkinfo, ds_data_drunk1, ds_data_drunk2, "/drunk", "/drunk/drunk");
  1692. filterDs(ds_data_gustofood, ds_data_gustofood1, ds_data_gustofood2, "/gustofood", "/gustofood/gustofood");
  1693. filterDs(ds_data_tnsseffc, ds_data_tnsseffc1, ds_data_tnsseffc2, "/tnsseffc", "/tnsseffc/tnsseffc");
  1694. filterDs(ds_data_rectmedistat, ds_data_rectmedistat1, ds_data_rectmedistat2, "/rectmedistat", "/rectmedistat/rectmedistat");
  1695. filterDs(ds_data_gustofood, ds_data_gustofood1, ds_data_gustofood2, "/gustofood", "/gustofood/gustofood");
  1696. if(!utlf_isNull(ds_data_pasthist2.getColumnInfo("genrdd")))
  1697. {
  1698. grdDateType(ds_data_pasthist2, "genrdd", 0, switch1.case2.import4.grd_pasthist);
  1699. }
  1700. if(!utlf_isNull(ds_data_inhist2.getColumnInfo("indd")))
  1701. {
  1702. grdDateType(ds_data_inhist2, "indd", 0, switch1.case2.import4.grd_inhist);
  1703. }
  1704. if(!utlf_isNull(ds_data_ophist2.getColumnInfo("opdd")))
  1705. {
  1706. grdDateType(ds_data_ophist2, "opdd", 0, switch1.case2.import4.grd_ophist);
  1707. }
  1708. if(!utlf_isNull(ds_data_allghist2.getColumnInfo("genrdd")))
  1709. {
  1710. grdDateType(ds_data_allghist2, "genrdd", 0, switch1.case2.import4.grd_allghist);
  1711. }
  1712. SetchkList();
  1713. }
  1714. else
  1715. {
  1716. if(!utlf_isNull(ds_hidden_paminfo_recinfo.getColumn(0, "recpkspec")))
  1717. {
  1718. dsf_makeValue( ds_main_wardrecinfo, "bfrecddtm", "string", ds_hidden_paminfo_recinfo.getColumn(0, "recpkspec"), 0);
  1719. fChgRecHistInfo();
  1720. }
  1721. else
  1722. {
  1723. var oParam = {};
  1724. oParam.id = "TRMND00304";
  1725. oParam.service = "wardcareapp.WardCareRec";
  1726. oParam.method = "reqGetComRecInfo";
  1727. oParam.inds = "reqlist=ds_send_req";
  1728. oParam.outds = "ds_hidden_cominfo_famyfact=famyfact ds_hidden_cominfo_histinfo=histinfo ds_hidden_cominfo_famyinfo=famyinfo";
  1729. oParam.async = false;
  1730. //oParam.callback = "cf_TRMND00304";
  1731. tranf_submit(oParam);
  1732. var exist = ds_hidden_cominfo_histinfo.getColumn(0, "existyn");
  1733. var existfamyinfo = ds_hidden_cominfo_famyinfo.getColumn(0, "existfamyinfo");
  1734. //setParameter("SPMMR04711_shape", fGetXmlToStr("/root/hidden/cominfo/famyinfo/genogrmnm/XMD"));
  1735. ds_main_famyfact.clearData();
  1736. if(ds_hidden_cominfo_famyfact.rowcount > 0)
  1737. {
  1738. for(var i = 0; i < ds_hidden_cominfo_famyfact.rowcount; i++)
  1739. {
  1740. if(!utlf_isNull(ds_hidden_cominfo_famyfact.getColumn(i, "rela")))
  1741. {
  1742. var addRow = ds_main_famyfact.addRow();
  1743. ds_main_famyfact.copyRow(addRow, ds_hidden_cominfo_famyfact, i);
  1744. }
  1745. }
  1746. }
  1747. if(exist == "N")
  1748. {
  1749. dsf_makeValue( ds_data_pasthist1, "pasthistinclyn", "string", "", 0);
  1750. dsf_makeValue( ds_data_famyhist1, "famyhistinclyn", "string", "", 0);
  1751. dsf_makeValue( ds_data_inhist1, "inhistinclyn", "string", "", 0);
  1752. dsf_makeValue( ds_data_ophist1, "ophistinclyn", "string", "", 0);
  1753. dsf_makeValue( ds_data_rectmedistat1, "rectmedistatinfoinclyn", "string", "", 0);
  1754. dsf_makeValue( ds_data_allghist1, "allghistinclyn", "string", "", 0);
  1755. dsf_makeValue( ds_data_vacnhist, "vacnhistinfoinclyn", "string", "", 0);
  1756. dsf_makeValue( ds_data_smokinfo, "smokinfoyn", "string", "1", 0);
  1757. dsf_makeValue( ds_data_drunkinfo, "drunkinfoyn", "string", "1", 0);
  1758. dsf_makeValue( ds_data_gustofoodinfo, "gustofoodyn", "string", "1", 0);
  1759. dsf_makeValue( ds_data_tnsseffcinfo, "tnsseffcyn", "string", "1", 0);
  1760. }
  1761. else
  1762. {
  1763. ds_main_histinfo.copyData(ds_hidden_cominfo_histinfo);
  1764. }
  1765. dsf_makeValue( ds_main_wardrecinfo, "religncd", "string", ds_hidden_paminfo_paminfo.getColumn(0, "religncd"), 0);
  1766. dsf_makeValue( ds_main_wardrecinfo, "baptnm", "string", ds_hidden_paminfo_paminfo.getColumn(0, "baptnm"), 0);
  1767. dsf_makeValue( ds_main_wardrecinfo, "tel", "string", ds_hidden_paminfo_paminfo.getColumn(0, "tel"), 0);
  1768. dsf_makeValue( ds_main_wardrecinfo, "mphone", "string", ds_hidden_paminfo_paminfo.getColumn(0, "mphone"), 0);
  1769. dsf_makeValue( ds_main_wardrecinfo, "etcphone1", "string", ds_hidden_paminfo_paminfo.getColumn(0, "etcphone1"), 0);
  1770. dsf_makeValue( ds_main_wardrecinfo, "etcphone2", "string", ds_hidden_paminfo_paminfo.getColumn(0, "etcphone2"), 0);
  1771. dsf_makeValue( ds_main_wardrecinfo, "recdd", "string", ds_hidden_paminfo_paminfo.getColumn(0, "recdd"), 0);
  1772. dsf_makeValue( ds_main_wardrecinfo, "rectm", "string", ds_hidden_paminfo_paminfo.getColumn(0, "rectm"), 0);
  1773. dsf_makeValue( ds_main_wardrecinfo, "recuser", "string", ds_hidden_paminfo_paminfo.getColumn(0, "recuser"), 0);
  1774. }
  1775. }
  1776. fNotExistsNodeCreate();
  1777. if(existfamyinfo == "Y")
  1778. {
  1779. ds_data_famytree.getColumn(0, "existyn", "Y");
  1780. }
  1781. }
  1782. if(ds_data_bodyases.rowcount == 0)
  1783. {
  1784. ds_data_bodyases.addRow();
  1785. }
  1786. if(ds_data_dialcomn.rowcount == 0)
  1787. {
  1788. ds_data_dialcomn.addRow();
  1789. }
  1790. if(ds_data_dialcarer1.rowcount == 0)
  1791. {
  1792. ds_data_dialcarer1.addRow();
  1793. }
  1794. if(ds_data_trans.rowcount == 0)
  1795. {
  1796. ds_data_trans.addRow();
  1797. }
  1798. if(ds_data_selfcare.rowcount == 0)
  1799. {
  1800. ds_data_selfcare.addRow();
  1801. }
  1802. if(ds_data_progrec.rowcount == 0)
  1803. {
  1804. ds_data_progrec.addRow();
  1805. }
  1806. if(ds_data_rgstdial.rowcount == 0)
  1807. {
  1808. ds_data_rgstdial.addRow();
  1809. }
  1810. status = "select";
  1811. if(ds_data_allghist2.rowcount > 0)
  1812. {
  1813. for(var i = 0; i < ds_data_allghist2.getColCount(); i++)
  1814. {
  1815. if(!utlf_isNull(ds_data_allghist2.getColumn(0, i)))
  1816. {
  1817. allgInsYN = "N";
  1818. }
  1819. }
  1820. }
  1821. }
  1822. function filterDs(DsSet, DsSet_1, DsSet_2, strpath_1, strpath_2)
  1823. {
  1824. var iCol = 0;
  1825. var Gubun = false;
  1826. var len = 0;
  1827. // if(DsSet == ds_data_nvesys)
  1828. // {
  1829. // DasetCountClear(ds_data_nvesysdsordinfo);
  1830. // }
  1831. if(DsSet.colcount == 1 && !utlf_isNull(DsSet.getColumnInfo("dsvaluepath")))
  1832. {
  1833. return;
  1834. }
  1835. if(DsSet.rowcount > 0)
  1836. {
  1837. DsSet.filter("dsvaluepath == '" + strpath_1 +"'");
  1838. DsSet_1.copyData(DsSet, true);
  1839. DsSet.filter("");
  1840. //len = strpath_2.length();
  1841. if(DsSet.rowcount > 1)
  1842. {
  1843. DsSet.getColumn(1)
  1844. }
  1845. DsSet.filter("dsvaluepath != '" + strpath_1 +"'");// /ophist
  1846. DsSet_2.copyData(DsSet, true);
  1847. DsSet.filter("");
  1848. }
  1849. if(DsSet_2.rowcount == 1)
  1850. {
  1851. for(iCol = 0 ; iCol < DsSet_2.colcount ;iCol++)
  1852. {
  1853. if(utlf_isNull(DsSet_2.getColumn(0, iCol)))
  1854. {
  1855. Gubun = true;
  1856. }
  1857. else
  1858. {
  1859. if(DsSet_2.getColID(iCol) == "dsvaluepath")
  1860. {
  1861. Gubun = true;
  1862. }
  1863. else
  1864. {
  1865. Gubun = false;
  1866. break;
  1867. }
  1868. }
  1869. }
  1870. if(Gubun == true)
  1871. {
  1872. DsSet_2.clearData();
  1873. }
  1874. }
  1875. else if (DsSet_2.rowcount == 0)
  1876. {
  1877. DsSet_2.clearData();
  1878. }
  1879. }
  1880. function convertXmlToDsNull(strWardrecinfo)//null값 있는지 확인
  1881. {
  1882. var pParamObj = new Object();
  1883. pParamObj.pathYN = "Y";
  1884. pParamObj.nullColumnYN = "Y";
  1885. if(!utlf_isNull(strWardrecinfo))
  1886. {
  1887. lf_convertXmlToDs2(strWardrecinfo, pParamObj);
  1888. }
  1889. }
  1890. function fNotExistsNodeCreate()
  1891. {
  1892. var spo2 = ""
  1893. if(!utlf_isNull(ds_main_wardrecinfo.getColumnInfo("spo2")))
  1894. {
  1895. spo2 = ds_main_wardrecinfo.getColumn(0, "spo2");
  1896. }
  1897. if(utlf_isNull(spo2))
  1898. {
  1899. dsf_makeValue( ds_main_wardrecinfo, "spo2", "string", "", 0);
  1900. }
  1901. if(utlf_isNull(ds_data_pasthist1.getColumnInfo("pasthistinclyn")))
  1902. {
  1903. dsf_makeValue(ds_data_pasthist1, "pasthistinclyn", "string", "", 0);
  1904. }
  1905. if(utlf_isNull(ds_data_famyhist1.getColumnInfo("famyhistinclyn")))
  1906. {
  1907. dsf_makeValue(ds_data_famyhist1, "famyhistinclyn", "string", "", 0);
  1908. }
  1909. if(utlf_isNull(ds_data_inhist1.getColumnInfo("inhistinclyn")))
  1910. {
  1911. dsf_makeValue(ds_data_inhist1, "inhistinclyn", "string", "", 0);
  1912. }
  1913. if(utlf_isNull(ds_data_ophist1.getColumnInfo("ophistinclyn")))
  1914. {
  1915. dsf_makeValue(ds_data_ophist1, "ophistinclyn", "string", "", 0);
  1916. }
  1917. if(utlf_isNull(ds_data_rectmedistat1.getColumnInfo("rectmedistatinfoinclyn")))
  1918. {
  1919. dsf_makeValue(ds_data_rectmedistat1, "rectmedistatinfoinclyn", "string", "", 0);
  1920. }
  1921. if(utlf_isNull(ds_main_wardrecinfo.getColumnInfo("bfrecddtm")))
  1922. {
  1923. dsf_makeValue(ds_main_wardrecinfo, "bfrecddtm", "string", "", 0);
  1924. }
  1925. }
  1926. function button1_onclick(obj:Button, e:ClickEventInfo)
  1927. {
  1928. var oParam = {};
  1929. oParam.id = "TXMND00301";
  1930. oParam.service = "wardcareapp.WardCareRec";
  1931. oParam.method = "reqSetRecInfo";
  1932. oParam.inds = "famyfact=ds_main_famyfact:A gnrlinfo=ds_send_wardrecinfo histinfo=ds_send_histinfo dialinfo=ds_send_wardrecinfo famyinfo=ds_send_wardrecinfo comparam=ds_send_comparam signinfo=ds_sign_wardrecinfo allginfo=ds_send_allginfo";
  1933. oParam.outds = "";
  1934. oParam.async = false;
  1935. oParam.callback = "SubmitCallBack";
  1936. setCareInfoDel(oParam);
  1937. clearDataSet();
  1938. DasetAddRow();
  1939. fGetInitRecInfo(); //재조회
  1940. fInitEvent();
  1941. }
  1942. function DasetAddRow()
  1943. {
  1944. if(ds_data_bodyases.rowcount == 0)
  1945. {
  1946. ds_data_bodyases.addRow();
  1947. }
  1948. if(ds_data_dialcomn.rowcount == 0)
  1949. {
  1950. ds_data_dialcomn.addRow();
  1951. }
  1952. if(ds_data_dialcarer1.rowcount == 0)
  1953. {
  1954. ds_data_dialcarer1.addRow();
  1955. }
  1956. if(ds_data_trans.rowcount == 0)
  1957. {
  1958. ds_data_trans.addRow();
  1959. }
  1960. if(ds_data_selfcare.rowcount == 0)
  1961. {
  1962. ds_data_selfcare.addRow();
  1963. }
  1964. if(ds_data_progrec.rowcount == 0)
  1965. {
  1966. ds_data_progrec.addRow();
  1967. }
  1968. if(ds_data_rgstdial.rowcount == 0)
  1969. {
  1970. ds_data_rgstdial.addRow();
  1971. }
  1972. }
  1973. function clearDataSet()
  1974. {
  1975. ds_data_allghist.clearData();
  1976. ds_data_allghist1.clearData();
  1977. ds_data_allghist2.clearData();
  1978. ds_data_bodyases.clearData();
  1979. ds_data_dialcarer.clearData();
  1980. ds_data_dialcarer1.clearData();
  1981. ds_data_dialcarer2.clearData();
  1982. ds_data_dialcomn.clearData();
  1983. ds_data_drunk.clearData();
  1984. ds_data_drunk1.clearData();
  1985. ds_data_drunk2.clearData();
  1986. ds_data_drunkinfo.clearData();
  1987. ds_data_famyhist.clearData();
  1988. ds_data_famyhist1.clearData();
  1989. ds_data_famyhist2.clearData();
  1990. ds_data_famytree.clearData();
  1991. ds_data_gustofood.clearData();
  1992. ds_data_gustofood1.clearData();
  1993. ds_data_gustofood2.clearData();
  1994. ds_data_gustofoodinfo.clearData();
  1995. ds_data_inhist.clearData();
  1996. ds_data_inhist1.clearData();
  1997. ds_data_inhist2.clearData();
  1998. ds_data_ophist.clearData();
  1999. ds_data_ophist1.clearData();
  2000. ds_data_ophist2.clearData();
  2001. ds_data_pasthist.clearData();
  2002. ds_data_pasthist1.clearData();
  2003. ds_data_pasthist2.clearData();
  2004. ds_data_progrec.clearData();
  2005. ds_data_rectmedistat.clearData();
  2006. ds_data_rectmedistat1.clearData();
  2007. ds_data_rectmedistat2.clearData();
  2008. ds_data_rgstdial.clearData();
  2009. ds_data_selfcare.clearData();
  2010. ds_data_smok.clearData();
  2011. ds_data_smok1.clearData();
  2012. ds_data_smok2.clearData();
  2013. ds_data_smokinfo.clearData();
  2014. ds_data_tnsseffc.clearData();
  2015. ds_data_tnsseffc1.clearData();
  2016. ds_data_tnsseffc2.clearData();
  2017. ds_data_tnsseffcinfo.clearData();
  2018. ds_data_trans.clearData();
  2019. ds_data_vacnhist.clearData();
  2020. switch1.case1.import1.chk_possresn.setCheckAll(false);
  2021. switch1.case1.import1.chk_viralmarker.setCheckAll(false);
  2022. }
  2023. // function setCareInfoDel_1()
  2024. // {
  2025. // if(utlf_isNull(ds_main_wardrecinfo.getColumn(0, "bfrecuser")) && utlf_isNull(ds_main_wardrecinfo.getColumn(0, "bfrecddtm")))
  2026. // {
  2027. // sysf_messageBox("삭제가능한 간호정보조사지가 없습니다","I");
  2028. // return;
  2029. // }
  2030. // if(sysf_getUserName() != ds_main_wardrecinfo.getColumn(0, "bfrecuser"))
  2031. // {
  2032. // sysf_messageBox("타인의 기록은 삭제할 수 없습니다","I");
  2033. // return;
  2034. // }
  2035. //
  2036. // ds_codeinfo.clearData();
  2037. // ds_codeinfo.addRow();
  2038. //
  2039. // fGetNursHardCdInfo("'REC'", utlf_getCurrentDate());
  2040. //
  2041. // for(var i = 0; i < ds_codelist.rowcount; i++)
  2042. // {
  2043. // if(ds_codelist.getColumn(i, "cdnm") == frmf_getScreenID())
  2044. // {
  2045. // var formcd = ds_codelist.getColumn(i, "cdid");
  2046. // var recflag = String(ds_codelist.getColumn(i, "supcdid")).substr(4,2);
  2047. // }
  2048. // }
  2049. //
  2050. // var aa = sysf_messageBox("작성한 간호정보조사 전체 기록내역이 삭제됩니다. 정말","Q001");
  2051. //
  2052. // if(aa == "7")
  2053. // {
  2054. // return;
  2055. // }
  2056. //
  2057. // fPatgnrlInfo("X");
  2058. //
  2059. // dsf_makeValue( ds_send_wardrecinfo, "exeflag", "string", "D", 0);
  2060. //
  2061. // Sign.certreload = true ;
  2062. //
  2063. // if (Sign.signprocess() == true)
  2064. // {
  2065. // dsf_makeValue( ds_send_wardrecinfo, "pid", "string", ds_temp_cond_list.getColumn(0, "pid"), 0);
  2066. //
  2067. // if(recflag == "08")
  2068. // {
  2069. // dsf_makeValue( ds_send_wardrecinfo, "indd", "string", ds_temp_cond_list.getColumn(0, "orddd"), 0);
  2070. // }
  2071. // else
  2072. // {
  2073. // dsf_makeValue( ds_send_wardrecinfo, "indd", "string", ds_temp_cond_list.getColumn(0, "indd"), 0);
  2074. // }
  2075. //
  2076. // dsf_makeValue( ds_send_wardrecinfo, "cretno", "string", ds_temp_cond_list.getColumn(0, "cretno"), 0);
  2077. // dsf_makeValue( ds_send_wardrecinfo, "signno", "string", ds_signinfo.getColumn(0, "signno"), 0);
  2078. // dsf_makeValue( ds_send_wardrecinfo, "recdd", "string", ds_main_wardrecinfo.getColumn(0, "recdd"), 0);
  2079. // dsf_makeValue( ds_send_wardrecinfo, "rectm", "string", ds_main_wardrecinfo.getColumn(0, "rectm"), 0);
  2080. // dsf_makeValue( ds_send_wardrecinfo, "recsaveflag", "string", "Y", 0);
  2081. // dsf_makeValue( ds_send_wardrecinfo, "signflag", "string", "02", 0);
  2082. // dsf_makeValue( ds_send_wardrecinfo, "signgenrflag", "string", ds_temp_cond_list.getColumn(0, "ioflag"), 0);
  2083. // dsf_makeValue( ds_send_wardrecinfo, "formcd", "string", formcd, 0);
  2084. // dsf_makeValue( ds_send_wardrecinfo, "orddeptcd", "string", ds_temp_cond_list.getColumn(0, "orddeptcd"), 0);
  2085. // dsf_makeValue( ds_send_wardrecinfo, "orddrid", "string", ds_temp_cond_list.getColumn(0, "orddrid"), 0);
  2086. //
  2087. // var oParam = {};
  2088. // oParam.id = "TXMND00301";
  2089. // oParam.service = "wardcareapp.WardCareRec";
  2090. // oParam.method = "reqSetRecInfo";
  2091. // oParam.inds = "famyfact=ds_main_famyfact:A gnrlinfo=ds_send_wardrecinfo histinfo=ds_send_histinfo dialinfo=ds_send_wardrecinfo famyinfo=ds_send_wardrecinfo comparam=ds_send_comparam signinfo=ds_sign_wardrecinfo allginfo=ds_send_allginfo";
  2092. // oParam.outds = "";
  2093. // oParam.async = false;
  2094. // //oParam.callback = "cf_TXMND00301";
  2095. //
  2096. // tranf_submit(oParam);
  2097. // }
  2098. // }
  2099. //
  2100. // function cf_TXMND00301(sSvcId, nErrorCode, sErrorMsg)
  2101. // {
  2102. // if(nErrorCode < 0)
  2103. // {
  2104. // sysf_messageBox("저장이 실패하였습니다. ", "E");
  2105. // return;
  2106. // }
  2107. // else
  2108. // {
  2109. // if(recflag != "06" && recflag != "07" && recflag != "10")
  2110. // {
  2111. // grd_famyfact.clearStatus();
  2112. // }
  2113. //
  2114. // model.setValue("/root/send/wardrecinfo", "");
  2115. //
  2116. // ds_main_histinfo.clearData();
  2117. // ds_main_histinfo.addRow();
  2118. //
  2119. // ds_main_wardrecinfo.clearData();
  2120. // ds_main_wardrecinfo.addRow();
  2121. //
  2122. // ds_codeinfo.clearData();
  2123. // ds_codeinfo.addRow();
  2124. // model.resetInstanceNode("/root/main/inbfinfo");
  2125. // model.resetInstanceNode("/root/main/famyfactinfo");
  2126. //
  2127. // fGetCmbList();
  2128. // fInit();
  2129. // fGetInitRecInfo();
  2130. // fInitEvent();
  2131. //
  2132. // if(ds_data_bodyases.rowcount == 0)
  2133. // {
  2134. // ds_data_bodyases.addRow();
  2135. // }
  2136. // if(ds_data_famyfree.rowcount == 0)
  2137. // {
  2138. // ds_data_famyfree.addRow();
  2139. // }
  2140. // if(ds_data_dialcomn.rowcount == 0)
  2141. // {
  2142. // ds_data_dialcomn.addRow();
  2143. // }
  2144. // if(ds_data_dialcarer1.rowcount == 0)
  2145. // {
  2146. // ds_data_dialcarer1.addRow();
  2147. // }
  2148. // if(ds_data_trans.rowcount == 0)
  2149. // {
  2150. // ds_data_trans.addRow();
  2151. // }
  2152. // if(ds_data_selfcare.rowcount == 0)
  2153. // {
  2154. // ds_data_selfcare.addRow();
  2155. // }
  2156. // if(ds_data_progrec.rowcount == 0)
  2157. // {
  2158. // ds_data_progrec.addRow();
  2159. // }
  2160. // if(ds_data_rgstdial.rowcount == 0)
  2161. // {
  2162. // ds_data_rgstdial.addRow();
  2163. // }
  2164. //
  2165. // sysf_messageBox("저장이 ", "I001");
  2166. // }
  2167. // }
  2168. function DataSet_XMLChange2(DataSet, DataSet2, DataSetName, DataSetName2, DelPath, DataSetChangePath, pathName, pathName2, ds_infectspec_XML)
  2169. {
  2170. var ds_infectspec_XML_RSLT;
  2171. var bolDel = false;
  2172. var pParam = new Object();
  2173. pParam.cDataYN = "N";
  2174. if(bolsign == true)
  2175. {
  2176. pParam.nullNodeYN = "N";
  2177. }
  2178. if(DataSet.rowcount == 0)
  2179. {
  2180. DataSet.addRow();
  2181. }
  2182. DataSet.enableevent = false;
  2183. DataSet.updatecontrol = false;
  2184. if(DataSetChangePath == "uriorgncms")
  2185. {
  2186. if(!utlf_isNull(DataSet.getColumnInfo("symp")))
  2187. {
  2188. DataSet.deleteColumn("symp");
  2189. }
  2190. if(!utlf_isNull(DataSet.getColumnInfo("cate")))
  2191. {
  2192. DataSet.deleteColumn("cate");
  2193. }
  2194. if(!utlf_isNull(DataSet.getColumnInfo("list")))
  2195. {
  2196. DataSet.deleteColumn("list");
  2197. }
  2198. if(!utlf_isNull(DataSet.getColumnInfo("urinecolor")))
  2199. {
  2200. DataSet.deleteColumn("urinecolor");
  2201. }
  2202. if(!utlf_isNull(DataSet.getColumnInfo("dsvaluepath")))
  2203. {
  2204. DataSet.deleteColumn("dsvaluepath");
  2205. }
  2206. }
  2207. else if(DataSetChangePath == "allghistcms")
  2208. {
  2209. if(!utlf_isNull(DataSet.getColumnInfo("dsvaluepath")))
  2210. {
  2211. DataSet.deleteColumn("dsvaluepath");
  2212. }
  2213. if(!utlf_isNull(DataSet.getColumnInfo("genrdd")))
  2214. {
  2215. DataSet.deleteColumn("genrdd");
  2216. }
  2217. if(!utlf_isNull(DataSet.getColumnInfo("flag")))
  2218. {
  2219. DataSet.deleteColumn("flag");
  2220. }
  2221. if(!utlf_isNull(DataSet.getColumnInfo("allergespec")))
  2222. {
  2223. DataSet.deleteColumn("allergespec");
  2224. }
  2225. if(!utlf_isNull(DataSet.getColumnInfo("hosoutyn")))
  2226. {
  2227. DataSet.deleteColumn("hosoutyn");
  2228. }
  2229. if(!utlf_isNull(DataSet.getColumnInfo("comclscd")))
  2230. {
  2231. DataSet.deleteColumn("comclscd");
  2232. }
  2233. if(!utlf_isNull(DataSet.getColumnInfo("drugcd")))
  2234. {
  2235. DataSet.deleteColumn("drugcd");
  2236. }
  2237. if(!utlf_isNull(DataSet.getColumnInfo("drugnm")))
  2238. {
  2239. DataSet.deleteColumn("drugnm");
  2240. }
  2241. if(!utlf_isNull(DataSet.getColumnInfo("symp")))
  2242. {
  2243. DataSet.deleteColumn("symp");
  2244. }
  2245. if(!utlf_isNull(DataSet.getColumnInfo("rgstdt")))
  2246. {
  2247. DataSet.deleteColumn("rgstdt");
  2248. }
  2249. if(!utlf_isNull(DataSet.getColumnInfo("rgster")))
  2250. {
  2251. DataSet.deleteColumn("rgster");
  2252. }
  2253. if(!utlf_isNull(DataSet.getColumnInfo("cretno")))
  2254. {
  2255. DataSet.deleteColumn("cretno");
  2256. }
  2257. }
  2258. else
  2259. {
  2260. for(var j = 0; j < DataSet.colcount ;j++)
  2261. {
  2262. if(DataSet.getColID(j) != DelPath)
  2263. {
  2264. if(DataSetChangePath == "rectmedistatcms" && DataSet.getColID(j) == "antibiodrugyn")
  2265. {
  2266. continue;
  2267. }
  2268. if(DataSetChangePath == "femalecms" && DataSet.getColID(j) == "femaleaddinfoyn")
  2269. {
  2270. continue;
  2271. }
  2272. else
  2273. {
  2274. DataSet.deleteColumn(DataSet.getColID(j));
  2275. j--;
  2276. }
  2277. }
  2278. }
  2279. }
  2280. DataSet.updatecontrol = true;
  2281. DataSet.enableevent = true;
  2282. DataSet2.enableevent = false;
  2283. DataSet2.updatecontrol = false;
  2284. if(DataSetChangePath == "uriorgncms")
  2285. {
  2286. if(!utlf_isNull(DataSet2.getColumnInfo("dsvaluepath")))
  2287. {
  2288. DataSet2.deleteColumn("dsvaluepath");
  2289. }
  2290. if(!utlf_isNull(DataSet2.getColumnInfo("urinetims")))
  2291. {
  2292. DataSet2.deleteColumn("urinetims");
  2293. }
  2294. if(!utlf_isNull(DataSet2.getColumnInfo("urineday")))
  2295. {
  2296. DataSet2.deleteColumn("urineday");
  2297. }
  2298. if(!utlf_isNull(DataSet2.getColumnInfo("urinevol")))
  2299. {
  2300. DataSet2.deleteColumn("urinevol");
  2301. }
  2302. if(!utlf_isNull(DataSet2.getColumnInfo("urinesmell")))
  2303. {
  2304. DataSet2.deleteColumn("urinesmell");
  2305. }
  2306. if(!utlf_isNull(DataSet2.getColumnInfo("urinecateyn")))
  2307. {
  2308. DataSet2.deleteColumn("urinecateyn");
  2309. }
  2310. if(!utlf_isNull(DataSet2.getColumnInfo("urinevoldaytime")))
  2311. {
  2312. DataSet2.deleteColumn("urinevoldaytime");
  2313. }
  2314. }
  2315. else if(DataSetChangePath == "allghistcms")
  2316. {
  2317. if(!utlf_isNull(DataSet2.getColumnInfo("dsvaluepath")))
  2318. {
  2319. DataSet2.deleteColumn("dsvaluepath");
  2320. }
  2321. if(!utlf_isNull(DataSet2.getColumnInfo("allghistinclyn")))
  2322. {
  2323. DataSet2.deleteColumn("allghistinclyn");
  2324. }
  2325. if(!utlf_isNull(DataSet2.getColumnInfo("tnsseffcyn")))
  2326. {
  2327. DataSet2.deleteColumn("tnsseffcyn");
  2328. }
  2329. if(!utlf_isNull(DataSet2.getColumnInfo("tnsseffcdetl")))
  2330. {
  2331. DataSet2.deleteColumn("tnsseffcdetl");
  2332. }
  2333. }
  2334. else
  2335. {
  2336. if(!utlf_isNull(DataSet2.getColumnInfo("dsvaluepath")))
  2337. {
  2338. DataSet2.deleteColumn("dsvaluepath");
  2339. }
  2340. if(!utlf_isNull(DataSet2.getColumnInfo(DelPath)))
  2341. {
  2342. DataSet2.deleteColumn(DelPath);
  2343. }
  2344. if(DataSetChangePath == "rectmedistatcms" && !utlf_isNull(DataSet2.getColumnInfo("antibiodrugyn")))
  2345. {
  2346. DataSet2.deleteColumn("antibiodrugyn");
  2347. }
  2348. if(DataSetChangePath == "femalecms" && !utlf_isNull(DataSet2.getColumnInfo("femaleaddinfoyn")))
  2349. {
  2350. DataSet2.deleteColumn("femaleaddinfoyn");
  2351. }
  2352. }
  2353. for(var i = 0; i < DataSet2.rowcount ;i++)
  2354. {
  2355. for(var j = 0; j < DataSet2.colcount ;j++)
  2356. {
  2357. if(!utlf_isNull(DataSet2.getColumn(i, j)))
  2358. {
  2359. bolDel = true;
  2360. }
  2361. }
  2362. if(bolDel == false)
  2363. {
  2364. DataSet2.deleteRow(i);
  2365. i--;
  2366. }
  2367. bolDel = false;
  2368. }
  2369. DataSet2.updatecontrol = true;
  2370. DataSet2 .enableevent = true;
  2371. dsf_createDs("ds_data_" + DataSetChangePath);
  2372. var DasetCreate = objects["ds_data_" + DataSetChangePath];
  2373. DasetCreate.copyData(DataSet2);
  2374. if(DataSetChangePath == "nvesyscms")
  2375. {
  2376. if(!utlf_isNull(ds_data_nvesysdsordinfo.getColumnInfo("dsvaluepath")))
  2377. {
  2378. ds_data_nvesysdsordinfo.enableevent = false;
  2379. ds_data_nvesysdsordinfo.updatecontrol = false;
  2380. ds_data_nvesysdsordinfo.deleteColumn("dsvaluepath");
  2381. ds_data_nvesysdsordinfo.updatecontrol = true;
  2382. ds_data_nvesysdsordinfo.enableevent = true;
  2383. }
  2384. sParamObjArr = [{ds: DataSetName, path:pathName, filter: ""},
  2385. {ds: DasetCreate.name, path:pathName2, filter: ""},
  2386. {ds: "ds_data_nvesysdsordinfo", path:"nvesys1/nvesysdsordinfo", filter: ""}];
  2387. ds_infectspec_XML_RSLT= lf_convertDsToXml(sParamObjArr,ds_infectspec_XML, pParam);
  2388. }
  2389. else
  2390. {
  2391. sParamObjArr = [{ds: DataSetName, path:pathName, filter: ""},
  2392. {ds: DasetCreate.name, path:pathName2, filter: ""}];
  2393. ds_infectspec_XML_RSLT= lf_convertDsToXml(sParamObjArr,ds_infectspec_XML, pParam);
  2394. }
  2395. return ds_infectspec_XML_RSLT;
  2396. }
  2397. function button2_onclick(obj:Button, e:ClickEventInfo)
  2398. {
  2399. var instUseYN ="";
  2400. bolsign = true;
  2401. for(var i = 0 ; i < ds_main_famyfact.rowcount; i++)
  2402. {
  2403. var rela = ds_main_famyfact.getColumn(i, "rela");
  2404. if(utlf_isNull(rela))
  2405. {
  2406. sysf_messageBox("[가족사항 - 관계]는 필수 입력사항입니다.", "I");
  2407. return;
  2408. }
  2409. }
  2410. fPatgnrlInfo("C");//send
  2411. if ( instUseYN =="Y")
  2412. {
  2413. //model.removenode('/root/temp/signdata');
  2414. // if ( !switch1.case1.import1.fSave())
  2415. // {
  2416. // return;
  2417. // }
  2418. //var xEduRecPath = '/root/temp/signdata/edurecinfo';
  2419. //fMNWCareInfoRecMakeForJCI(xEduRecPath, ivw_edurec, "Y");//carecom.js (srcPath, destObj , 응급간호정보조사여부 구분 erYn 'Y' 이어야 퇴원교육요구도가 안보임.)
  2420. }
  2421. Sign.certreload = true ;
  2422. if (Sign.signprocess() == true)
  2423. {
  2424. var ioflag = ds_temp_cond_list.getColumn(0, "ioflag");
  2425. if(ioflag == "O")
  2426. {
  2427. indd = ds_temp_cond_list.getColumn(0, "orddd");
  2428. }
  2429. else
  2430. {
  2431. indd = ds_temp_cond_list.getColumn(0, "indd");
  2432. }
  2433. dsf_makeValue( ds_send_signinfo, "pid", "string", ds_temp_cond_list.getColumn(0, "pid"));
  2434. dsf_makeValue( ds_send_signinfo, "orddd", "string", indd);
  2435. dsf_makeValue( ds_send_signinfo, "signno", "string", ds_signinfo.getColumn(0, "signno"));
  2436. dsf_makeValue( ds_send_signinfo, "cretno", "string", ds_temp_cond_list.getColumn(0, "cretno"));
  2437. dsf_makeValue( ds_send_signinfo, "recdd", "string", ds_main_wardrecinfo.getColumn(0, "recdd"));
  2438. dsf_makeValue( ds_send_signinfo, "rectm", "string", ds_main_wardrecinfo.getColumn(0, "rectm"));
  2439. dsf_makeValue( ds_send_signinfo, "recsaveflag", "string", "Y");
  2440. dsf_makeValue( ds_send_signinfo, "signflag", "string", "02");
  2441. dsf_makeValue( ds_send_signinfo, "signgenrflag", "string", ds_temp_cond_list.getColumn(0, "ioflag"));
  2442. dsf_makeValue( ds_send_signinfo, "formcd", "string", "0000002437");
  2443. dsf_makeValue( ds_send_signinfo, "orddeptcd", "string", ds_temp_cond_list.getColumn(0, "orddeptcd"));
  2444. dsf_makeValue( ds_send_signinfo, "orddrid", "string", ds_temp_cond_list.getColumn(0, "orddrid"));
  2445. dsf_makeValue( ds_send_signinfo, "signbfcnts", "string", Sign.signedInfos[1]);
  2446. dsf_makeValue( ds_send_signinfo, "signaftcnts", "string", Sign.signedInfos[2]);
  2447. dsf_makeValue( ds_send_signinfo, "wardcd", "string", ds_temp_cond_list.getColumn(0, "wardcd"));
  2448. dsf_makeValue( ds_send_signinfo, "roomcd", "string", ds_temp_cond_list.getColumn(0, "roomcd"));
  2449. dsf_makeValue( ds_send_signinfo, "instcd", "string", ds_temp_cond_list.getColumn(0, "instcd"));
  2450. ds_send_wardrecinfo.addColumn("spo", "string");
  2451. ds_send_wardrecinfo.setColumn(0, "spo", ds_main_wardrecinfo.getColumn(0, "spo2"));
  2452. var oParam = {};
  2453. oParam.id = "TXMND00301";
  2454. oParam.service = "wardcareapp.WardCareRec";
  2455. oParam.method = "reqSetRecInfo";
  2456. oParam.inds = "famyfact=ds_main_famyfact:A gnrlinfo=ds_send_wardrecinfo histinfo=ds_send_histinfo dialinfo=ds_send_wardrecinfo famyinfo=ds_send_famyinfo comparam=ds_send_comparam signinfo=ds_send_signinfo allginfo=ds_send_allginfo";
  2457. oParam.outds = "";
  2458. oParam.async = false;
  2459. oParam.callback = "cf_TXMND00301";
  2460. tranf_submit(oParam);
  2461. }
  2462. }
  2463. function cf_TXMND00301(sSvcId, nErrorCode, sErrorMsg)
  2464. {
  2465. if(nErrorCode < 0)
  2466. {
  2467. sysf_messageBox("저장에 실패하였습니다", "E");
  2468. return;
  2469. }
  2470. else
  2471. {
  2472. ds_send.setColumn(0, "wardrecinfo", ""); //model.setValue("/root/send/wardrecinfo", "");
  2473. sysf_messageBox("저장이 ", "I001");
  2474. dsf_makeValue( ds_hidden_paminfo_paminfo, "exeflag", "string", "U");
  2475. fGetInitRecInfo(); //재조회
  2476. fInitEvent();
  2477. }
  2478. }
  2479. function fPatgnrlInfo(certFlag)
  2480. {
  2481. var userid = sysf_getUserId();
  2482. ds_send_wardrecinfo.clearData();
  2483. var pParam = new Object();
  2484. pParam.cDataYN = "N";
  2485. dsf_makeValue( ds_send_wardrecinfo, "basebdinfoinclyn", "string", ds_main_wardrecinfo.getColumn(0, "basebdinfoinclyn"));
  2486. dsf_makeValue( ds_send_wardrecinfo, "lowbp", "string", ds_main_wardrecinfo.getColumn(0, "lowbp"));
  2487. dsf_makeValue( ds_send_wardrecinfo, "highbp", "string", ds_main_wardrecinfo.getColumn(0, "highbp"));
  2488. dsf_makeValue( ds_send_wardrecinfo, "pulse", "string", ds_main_wardrecinfo.getColumn(0, "pulse"));
  2489. dsf_makeValue( ds_send_wardrecinfo, "breth", "string", ds_main_wardrecinfo.getColumn(0, "breth"));
  2490. dsf_makeValue( ds_send_wardrecinfo, "bdtp", "string", ds_main_wardrecinfo.getColumn(0, "bdtp"));
  2491. dsf_makeValue( ds_send_wardrecinfo, "bdtppartcd", "string", ds_main_wardrecinfo.getColumn(0, "bdtppartcd"));
  2492. dsf_makeValue( ds_send_wardrecinfo, "bdht", "string", ds_main_wardrecinfo.getColumn(0, "bdht"));
  2493. dsf_makeValue( ds_send_wardrecinfo, "bdwt", "string", ds_main_wardrecinfo.getColumn(0, "bdwt"));
  2494. dsf_makeValue( ds_send_wardrecinfo, "bdbtype", "string", ds_main_wardrecinfo.getColumn(0, "bdbtype"));
  2495. dsf_makeValue( ds_send_wardrecinfo, "bdbtyperh", "string", ds_main_wardrecinfo.getColumn(0, "bdbtyperh"));
  2496. dsf_makeValue( ds_send_wardrecinfo, "jobcd", "string", ds_main_wardrecinfo.getColumn(0, "jobcd"));
  2497. dsf_makeValue( ds_send_wardrecinfo, "jobnm", "string", ds_main_wardrecinfo.getColumn(0, "jobnm"));
  2498. dsf_makeValue( ds_send_wardrecinfo, "educgrdecd", "string", ds_main_wardrecinfo.getColumn(0, "educgrdecd"));
  2499. dsf_makeValue( ds_send_wardrecinfo, "educgrdenm", "string", ds_main_wardrecinfo.getColumn(0, "educgrdenm"));
  2500. dsf_makeValue( ds_send_wardrecinfo, "religncd", "string", ds_main_wardrecinfo.getColumn(0, "religncd"));
  2501. dsf_makeValue( ds_send_wardrecinfo, "relignnm", "string", ds_main_wardrecinfo.getColumn(0, "relignnm"));
  2502. dsf_makeValue( ds_send_wardrecinfo, "marystatcd", "string", ds_main_wardrecinfo.getColumn(0, "marystatcd"));
  2503. dsf_makeValue( ds_send_wardrecinfo, "marystatnm", "string", ds_main_wardrecinfo.getColumn(0, "marystatnm"));
  2504. dsf_makeValue( ds_send_wardrecinfo, "baptnm", "string", ds_main_wardrecinfo.getColumn(0, "baptnm"));
  2505. dsf_makeValue( ds_send_wardrecinfo, "famytree", "string", "");
  2506. dsf_makeValue( ds_send_wardrecinfo, "spo", "string", ds_main_wardrecinfo.getColumn(0, "spo2"));
  2507. dsf_makeValue( ds_send_wardrecinfo, "relignreq", "string", ds_main_wardrecinfo.getColumn(0, "relignreq"));
  2508. dsf_makeValue( ds_send_wardrecinfo, "tel", "string", ds_main_wardrecinfo.getColumn(0, "tel"));
  2509. dsf_makeValue( ds_send_wardrecinfo, "mphone", "string", ds_main_wardrecinfo.getColumn(0, "mphone"));
  2510. dsf_makeValue( ds_send_wardrecinfo, "etcphone1", "string", ds_main_wardrecinfo.getColumn(0, "etcphone1"));
  2511. dsf_makeValue( ds_send_wardrecinfo, "etcphone2", "string", ds_main_wardrecinfo.getColumn(0, "etcphone2"));
  2512. dsf_makeValue( ds_send_wardrecinfo, "viralmarker", "string", ds_main_wardrecinfo.getColumn(0, "viralmarker"));
  2513. dsf_makeValue( ds_send_wardrecinfo, "fstdialdd", "string", ds_main_wardrecinfo.getColumn(0, "fstdialdd"));
  2514. dsf_makeValue( ds_send_wardrecinfo, "fstdialkind", "string", ds_main_wardrecinfo.getColumn(0, "fstdialkind"));
  2515. dsf_makeValue( ds_send_wardrecinfo, "roomhospdialdd", "string", ds_main_wardrecinfo.getColumn(0, "roomhospdialdd"));
  2516. dsf_makeValue( ds_send_wardrecinfo, "chosdd", "string", ds_main_wardrecinfo.getColumn(0, "chosdd"));
  2517. dsf_makeValue( ds_send_wardrecinfo, "reqhosp", "string", ds_main_wardrecinfo.getColumn(0, "reqhosp"));
  2518. ds_data_smokinfo.updatecontrol = false;
  2519. ds_data_smokinfo.enableevent = false;
  2520. if(!utlf_isNull(ds_data_smokinfo.getColumnInfo("dsvaluepath")))
  2521. {
  2522. ds_data_smokinfo.deleteColumn("dsvaluepath");
  2523. }
  2524. ds_data_smokinfo.updatecontrol = true;
  2525. ds_data_smokinfo.enableevent = true;
  2526. ds_data_drunkinfo.enableevent = false;
  2527. ds_data_drunkinfo.updatecontrol = false;
  2528. if(!utlf_isNull(ds_data_drunkinfo.getColumnInfo("dsvaluepath")))
  2529. {
  2530. ds_data_drunkinfo.deleteColumn("dsvaluepath");
  2531. }
  2532. ds_data_drunkinfo.updatecontrol = true;
  2533. ds_data_drunkinfo.enableevent = true;
  2534. if( !utlf_isNull(ds_data_gustofoodinfo.getColumnInfo("dsvaluepath")))
  2535. {
  2536. ds_data_gustofoodinfo.enableevent = false;
  2537. ds_data_gustofoodinfo.updatecontrol = false;
  2538. ds_data_gustofoodinfo.deleteColumn("dsvaluepath");
  2539. ds_data_gustofoodinfo.updatecontrol = true;
  2540. ds_data_gustofoodinfo.enableevent = true;
  2541. }
  2542. if( !utlf_isNull(ds_data_tnsseffcinfo.getColumnInfo("dsvaluepath")))
  2543. {
  2544. ds_data_tnsseffcinfo.enableevent = false;
  2545. ds_data_tnsseffcinfo.updatecontrol = false;
  2546. ds_data_tnsseffcinfo.deleteColumn("dsvaluepath");
  2547. ds_data_tnsseffcinfo.updatecontrol = true;
  2548. ds_data_tnsseffcinfo.enableevent = true;
  2549. }
  2550. sParamObjArr = [{ds: "ds_data_smokinfo", path:"/gusto/smokinfo", filter: ""},
  2551. {ds: "ds_data_drunkinfo", path:"/gusto/drunkinfo", filter: ""},
  2552. {ds: "ds_data_gustofoodinfo", path:"/gusto/gustofoodinfo", filter: ""},
  2553. {ds: "ds_data_tnsseffcinfo", path:"/gusto/tnsseffcinfo", filter: ""}];
  2554. DataSet_XMLChangeName = lf_convertDsToXml(sParamObjArr,"<gusto><smokinfo><smokinfoyn/><bfsmokinfoyn/><nosmokcnstyn/><nosmokcnst/><nosmokcnstnm/><smokinfocnt/></smokinfo><drunkinfo><drunkinfoyn/><drunkinfokind/><drunkinfoterm/></drunkinfo><gustofoodinfo><gustofoodyn/><gustofooddetl/></gustofoodinfo><tnsseffcinfo><tnsseffcyn/><tnsseffcdetl/></tnsseffcinfo></gusto>", pParam);
  2555. dsf_makeValue(ds_send_wardrecinfo, "gustoinfo", "string", DataSet_XMLChangeName);
  2556. DataSet_XMLChangeName = "";
  2557. DataSet_XMLChangeName = DataSet_XMLChange2( ds_data_pasthist1,
  2558. ds_data_pasthist2,
  2559. "ds_data_pasthist1",
  2560. "ds_data_pasthist2",
  2561. "pasthistinclyn",
  2562. "pasthistcms",
  2563. "pasthist1",
  2564. "pasthist1/pasthistcms",
  2565. "<pasthist1><pasthistinclyn/><pasthistcms><genrdd/><histspec/><remfact/></pasthistcms></pasthist1>");
  2566. DataSet_XMLChangeName = DataSet_XMLChangeName.replace("pasthistcms","pasthist");
  2567. DataSet_XMLChangeName = DataSet_XMLChangeName.replace("pasthist1","pasthist");
  2568. dsf_makeValue(ds_send_histinfo, "pasthistinfo", "string", DataSet_XMLChangeName);
  2569. DataSet_XMLChangeName = "";
  2570. DataSet_XMLChangeName = DataSet_XMLChange2( ds_data_famyhist1,
  2571. ds_data_famyhist2,
  2572. "ds_data_famyhist1",
  2573. "ds_send_famyhist",
  2574. "famyhistinclyn",
  2575. "famyhistcms",
  2576. "famyhist1",
  2577. "famyhist1/famyhistcms",
  2578. "<famyhist1><famyhistinclyn/><famyhistcms><famyrel/><existyn/><histspec/><remfact/></famyhistcms></famyhist1>");
  2579. DataSet_XMLChangeName = DataSet_XMLChangeName.replace("famyhistcms","famyhist");
  2580. DataSet_XMLChangeName = DataSet_XMLChangeName.replace("famyhist1","famyhist");
  2581. dsf_makeValue(ds_send_histinfo, "famyhistinfo", "string", DataSet_XMLChangeName);
  2582. DataSet_XMLChangeName = "";
  2583. DataSet_XMLChangeName = DataSet_XMLChange2( ds_data_inhist1,
  2584. ds_data_inhist2,
  2585. "ds_data_inhist1",
  2586. "ds_data_inhist2",
  2587. "inhistinclyn",
  2588. "inhistcms",
  2589. "inhist1",
  2590. "inhist1/inhistcms",
  2591. "<inhist1><inhistinclyn/><inhistcms><indd/><dschdd/><illnm/><orddept/><inhistpk/></inhistcms></inhist1>");
  2592. DataSet_XMLChangeName = DataSet_XMLChangeName.replace("inhistcms","inhist");
  2593. DataSet_XMLChangeName = DataSet_XMLChangeName.replace("inhist1","inhist");
  2594. dsf_makeValue(ds_send_histinfo, "inhistinfo", "string", DataSet_XMLChangeName);
  2595. DataSet_XMLChangeName = "";
  2596. DataSet_XMLChangeName = DataSet_XMLChange2( ds_data_ophist1,
  2597. ds_data_ophist2,
  2598. "ds_data_ophist1",
  2599. "ds_data_ophist2",
  2600. "ophistinclyn",
  2601. "ophistcms",
  2602. "ophist1",
  2603. "ophist1/ophistcms",
  2604. "<ophist1><ophistinclyn/><ophistcms><opdd/><opnm/><orddept/><ophistpk/></ophistcms></ophist1>");
  2605. DataSet_XMLChangeName = DataSet_XMLChangeName.replace("ophistcms","ophist");
  2606. DataSet_XMLChangeName = DataSet_XMLChangeName.replace("ophist1","ophist");
  2607. dsf_makeValue(ds_send_histinfo, "ophistinfo", "string", DataSet_XMLChangeName);
  2608. DataSet_XMLChangeName = "";
  2609. DataSet_XMLChangeName = DataSet_XMLChange2( ds_data_rectmedistat1,
  2610. ds_data_rectmedistat2,
  2611. "ds_data_rectmedistat1",
  2612. "ds_data_rectmedistat2",
  2613. "rectmedistatinfoinclyn",
  2614. "rectmedistatcms",
  2615. "rectmedistat1",
  2616. "rectmedistat1/rectmedistatcms",
  2617. "<rectmedistat1><rectmedistatinfoinclyn/><antibiodrugyn/><rectmedistatcms><drugnm/><direc/><orddept/></rectmedistatcms></rectmedistat1>");
  2618. DataSet_XMLChangeName = DataSet_XMLChangeName.replace("rectmedistatcms","rectmedistat");
  2619. DataSet_XMLChangeName = DataSet_XMLChangeName.replace("rectmedistat1","rectmedistat");
  2620. dsf_makeValue(ds_send_histinfo, "rectmedistatinfo", "string", DataSet_XMLChangeName);
  2621. ds_data_allghist1.enableevent = false;
  2622. ds_data_allghist1.updatecontrol = false;
  2623. if(!utlf_isNull(ds_data_allghist1.getColumnInfo("genrdd")))
  2624. {
  2625. ds_data_allghist1.deleteColumn("genrdd");
  2626. }
  2627. if(!utlf_isNull(ds_data_allghist1.getColumnInfo("flag")))
  2628. {
  2629. ds_data_allghist1.deleteColumn("flag");
  2630. }
  2631. if(!utlf_isNull(ds_data_allghist1.getColumnInfo("allergespec")))
  2632. {
  2633. ds_data_allghist1.deleteColumn("allergespec");
  2634. }
  2635. if(!utlf_isNull(ds_data_allghist1.getColumnInfo("tnsseffcyn")))
  2636. {
  2637. ds_data_allghist1.deleteColumn("tnsseffcyn");
  2638. }
  2639. if(!utlf_isNull(ds_data_allghist1.getColumnInfo("tnsseffcdetl")))
  2640. {
  2641. ds_data_allghist1.deleteColumn("tnsseffcdetl");
  2642. }
  2643. if(!utlf_isNull(ds_data_allghist1.getColumnInfo("hosoutyn")))
  2644. {
  2645. ds_data_allghist1.deleteColumn("hosoutyn");
  2646. }
  2647. if(!utlf_isNull(ds_data_allghist1.getColumnInfo("comclscd")))
  2648. {
  2649. ds_data_allghist1.deleteColumn("comclscd");
  2650. }
  2651. if(!utlf_isNull(ds_data_allghist1.getColumnInfo("drugcd")))
  2652. {
  2653. ds_data_allghist1.deleteColumn("drugcd");
  2654. }
  2655. if(!utlf_isNull(ds_data_allghist1.getColumnInfo("drugnm")))
  2656. {
  2657. ds_data_allghist1.deleteColumn("drugnm");
  2658. }
  2659. if(!utlf_isNull(ds_data_allghist1.getColumnInfo("symp")))
  2660. {
  2661. ds_data_allghist1.deleteColumn("symp");
  2662. }
  2663. if(!utlf_isNull(ds_data_allghist1.getColumnInfo("rgstdt")))
  2664. {
  2665. ds_data_allghist1.deleteColumn("rgstdt");
  2666. }
  2667. if(!utlf_isNull(ds_data_allghist1.getColumnInfo("rgster")))
  2668. {
  2669. ds_data_allghist1.deleteColumn("rgster");
  2670. }
  2671. if(!utlf_isNull(ds_data_allghist1.getColumnInfo("cretno")))
  2672. {
  2673. ds_data_allghist1.deleteColumn("cretno");
  2674. }
  2675. ds_data_allghist1.updatecontrol = true;
  2676. ds_data_allghist1.enableevent = true;
  2677. ds_data_allghist2.enableevent = false;
  2678. ds_data_allghist2.updatecontrol = false;
  2679. if(!utlf_isNull(ds_data_allghist2.getColumnInfo("allghistinclyn")))
  2680. {
  2681. ds_data_allghist2.deleteColumn("allghistinclyn");
  2682. }
  2683. if(!utlf_isNull(ds_data_allghist2.getColumnInfo("tnsseffcyn")))
  2684. {
  2685. ds_data_allghist2.deleteColumn("tnsseffcyn");
  2686. }
  2687. if(!utlf_isNull(ds_data_allghist2.getColumnInfo("tnsseffcdetl")))
  2688. {
  2689. ds_data_allghist2.deleteColumn("tnsseffcdetl");
  2690. }
  2691. // 알러지
  2692. DataSet_XMLChangeName = "";
  2693. DataSet_XMLChangeName = DataSet_XMLChange2( ds_data_allghist1,
  2694. ds_data_allghist2,
  2695. "ds_data_allghist1",
  2696. "ds_data_allghist2",
  2697. "allghistinclyn",
  2698. "allghistcms",
  2699. "allghist1",
  2700. "allghist1/allghistcms",
  2701. "<allghist1><allghistinclyn/><allghistcms><genrdd/><flag/><allergespec/><hosoutyn/><comclscd/><drugcd/><drugnm/><symp/><rgstdt/><rgster/><cretno/></allghistcms></allghist1>");
  2702. DataSet_XMLChangeName = DataSet_XMLChangeName.replace("allghistcms","allghist");
  2703. DataSet_XMLChangeName = DataSet_XMLChangeName.replace("allghist1","allghist");
  2704. dsf_makeValue(ds_send_histinfo, "allghistinfo", "string", DataSet_XMLChangeName);
  2705. // <allghist><allghistinclyn/><allghist><genrdd/><flag/><allergespec/><hosoutyn/><comclscd/><drugcd/><drugnm/><symp/><rgstdt/><rgster/><cretno/></allghist><tnsseffcyn/><tnsseffcdetl/></allghist>
  2706. // <allghist><allghistinclyn>2</allghistinclyn><allghist><genrdd/><flag/><allergespec>음식 : 복숭아</allergespec><hosoutyn/><comclscd/><drugcd/><drugnm/><symp/><rgstdt/><rgster/><cretno/></allghist><tnsseffcyn>1</tnsseffcyn><tnsseffcdetl/></allghist>
  2707. DataSet_XMLChangeName = "";
  2708. DataSet_XMLChangeName = DataSet_XMLChange( ds_data_vacnhist,
  2709. "ds_data_vacnhist",
  2710. "vacnhist",
  2711. "<vacnhist><vacnhistinfoinclyn/><dpttims/><infparaltims/><ahptstims/><bhptstims/><bhptsdrugnm/><bcgyn/><mmrtims/><alivvacntims/><deadvaccntims/><brnmeningitistims/><lungcoccustims/><chickenpoxtims/><vacnchecketc/><vacncheckyn/><vacnchecketc/></vacnhist>");
  2712. dsf_makeValue(ds_send_histinfo, "vacnhistinfo", "string", DataSet_XMLChangeName); //DataSet_XMLChange()
  2713. DataSet_XMLChangeName = "";
  2714. DataSet_XMLChangeName = DataSet_XMLChange( ds_data_smok,
  2715. "ds_data_smok",
  2716. "smok",
  2717. "<smok><smokinclyn/><smok><dosetoday/><term/></smok></smok>");
  2718. dsf_makeValue(ds_send_histinfo, "smokinfo", "string", DataSet_XMLChangeName);
  2719. DataSet_XMLChangeName = "";
  2720. DataSet_XMLChangeName = DataSet_XMLChange( ds_data_drunk,
  2721. "ds_data_drunk",
  2722. "drunk",
  2723. "<drunk><drunkinclyn/><drunkinfo><kind/><dose/><tims/><term/></drunkinfo></drunk>");
  2724. dsf_makeValue(ds_send_histinfo, "drunkinfo", "string", DataSet_XMLChangeName);
  2725. DataSet_XMLChangeName = "";
  2726. DataSet_XMLChangeName = DataSet_XMLChange( ds_data_gustofood,
  2727. "ds_data_gustofood",
  2728. "gustofood",
  2729. "<gustofood><gustofoodinclyn/><gustofood><kind/><dose/><tims/><term/></gustofood></gustofood>");
  2730. dsf_makeValue(ds_send_histinfo, "gustofoodinfo", "string", DataSet_XMLChangeName);
  2731. DataSet_XMLChangeName = "";
  2732. DataSet_XMLChangeName = DataSet_XMLChange( ds_data_tnsseffc,
  2733. "ds_data_tnsseffc",
  2734. "tnsseffc",
  2735. "<tnsseffc><tnsseffcinclyn/><tnsseffc><tnsyn/><tnsdetl/></tnsseffc></tnsseffc>");
  2736. dsf_makeValue(ds_send_histinfo, "tnsseffcinfo", "string", DataSet_XMLChangeName);
  2737. DataSet_XMLChangeName = "";
  2738. DataSet_XMLChangeName = DataSet_XMLChange( ds_data_bodyases,
  2739. "ds_data_bodyases",
  2740. "bodyases",
  2741. "<bodyases><soulstat/><comustat/><emotstat/><emotstatnm/></bodyases>");
  2742. dsf_makeValue(ds_send_wardrecinfo, "bodyases", "string", DataSet_XMLChangeName);
  2743. DataSet_XMLChangeName = "";
  2744. DataSet_XMLChangeName = DataSet_XMLChange( ds_data_dialcomn,
  2745. "ds_data_dialcomn",
  2746. "dialcomn",
  2747. "<dialcomn><chosresn/><cassickkind/><kidnfaluryn/><medigrant/><healcntrprofitkind/><economystat/><cassick/><healcntrprofit/></dialcomn>");
  2748. dsf_makeValue(ds_send_wardrecinfo, "dialcomninfoetc", "string", DataSet_XMLChangeName);
  2749. DataSet_XMLChangeName = "";
  2750. DataSet_XMLChangeName = DataSet_XMLChange2( ds_data_dialcarer1,
  2751. ds_data_dialcarer2,
  2752. "ds_data_dialcarer1",
  2753. "ds_data_dialcarer2",
  2754. "dialcareinclyn",
  2755. "dialcarercms",
  2756. "dialcarer1",
  2757. "dialcarer1/dialcarercms",
  2758. "<dialcarer1><dialcareinclyn/><dialcarercms><dialkind/><fstdd/><enddd/><remfact/></dialcarercms></dialcarer1>");
  2759. DataSet_XMLChangeName = DataSet_XMLChangeName.replace("dialcarercms","dialcarer");
  2760. DataSet_XMLChangeName = DataSet_XMLChangeName.replace("dialcarer1","dialcarer");
  2761. dsf_makeValue(ds_send_wardrecinfo, "dialcarer", "string", DataSet_XMLChangeName);
  2762. // DataSet_XMLChangeName = "";
  2763. // DataSet_XMLChangeName = DataSet_XMLChange( ds_data_dialcarer2,
  2764. // "ds_data_dialcarer2",
  2765. // "dialcarer",
  2766. // "<dialcarer><dialkind/><fstdd/><enddd/><remfact/></dialcarer>");
  2767. // dsf_makeValue(ds_send_wardrecinfo, "dialcarer", "string", DataSet_XMLChangeName);
  2768. DataSet_XMLChangeName = "";
  2769. DataSet_XMLChangeName = DataSet_XMLChange( ds_data_trans,
  2770. "ds_data_trans",
  2771. "trans",
  2772. "<trans><kidntransinclyn/><selfstat/><rgstdd/><rgsthosp/><possresn/><impsiresn/><possresnetc/></trans>");
  2773. dsf_makeValue(ds_send_wardrecinfo, "trans", "string", DataSet_XMLChangeName);
  2774. DataSet_XMLChangeName = "";
  2775. DataSet_XMLChangeName = DataSet_XMLChange( ds_data_selfcare,
  2776. "ds_data_selfcare",
  2777. "selfcare",
  2778. "<selfcare><selfcareyn/><helpdnor/><resn/></selfcare>");
  2779. dsf_makeValue(ds_send_wardrecinfo, "selfcareinfo", "string", DataSet_XMLChangeName);
  2780. DataSet_XMLChangeName = "";
  2781. DataSet_XMLChangeName = DataSet_XMLChange( ds_data_rgstdial,
  2782. "ds_data_rgstdial",
  2783. "rgstdial",
  2784. "<rgstdial><rgstdialinfoinclyn/><dialkind/><veslkind/><vesltype/></rgstdial>");
  2785. dsf_makeValue(ds_send_wardrecinfo, "rgstdialinfo", "string", DataSet_XMLChangeName);
  2786. DataSet_XMLChangeName = "";
  2787. DataSet_XMLChangeName = DataSet_XMLChange( ds_data_progrec,
  2788. "ds_data_progrec",
  2789. "progrec",
  2790. "<progrec><progrecinclyn/><progrec/></progrec>");
  2791. dsf_makeValue(ds_send_wardrecinfo, "progrec", "string", DataSet_XMLChangeName);
  2792. if(ds_data_allghist2.rowcount > 0)
  2793. {
  2794. if(allgInsYN == "Y")
  2795. {
  2796. ds_data_allghist2.updatecontrol = false;
  2797. ds_data_allghist2.setRowType(0, "i");
  2798. ds_data_allghist2.updatecontrol = true;
  2799. }
  2800. }
  2801. var grddata = grdf_getGridUpdateData(switch1.case2.import4.grd_allghist, "all");
  2802. grdf_setStatusColumn(grddata, "m");
  2803. ds_send_allginfo.copyData(grddata);
  2804. var ioflag = ds_temp_cond_list.getColumn(0, "ioflag");
  2805. dsf_makeValue( ds_send_wardrecinfo, "pid", "string", ds_temp_cond_list.getColumn(0, "pid"));
  2806. if(ioflag == "O")
  2807. {
  2808. dsf_makeValue( ds_send_wardrecinfo, "indd", "string", ds_temp_cond_list.getColumn(0, "orddd"));
  2809. dsf_makeValue(ds_send_famyinfo, "indd", "string", ds_temp_cond_list.getColumn(0, "orddd"));
  2810. dsf_makeValue(ds_send_comparam, "indd", "string", ds_temp_cond_list.getColumn(0, "orddd"));
  2811. }
  2812. else
  2813. {
  2814. dsf_makeValue(ds_send_wardrecinfo, "indd", "string", ds_temp_cond_list.getColumn(0, "indd"));
  2815. dsf_makeValue(ds_send_famyinfo, "indd", "string", ds_temp_cond_list.getColumn(0, "indd"));
  2816. dsf_makeValue(ds_send_comparam, "indd", "string", ds_temp_cond_list.getColumn(0, "indd"));
  2817. }
  2818. dsf_makeValue(ds_send_famyinfo, "pid", "string", ds_temp_cond_list.getColumn(0, "pid"));
  2819. dsf_makeValue(ds_send_famyinfo, "instcd", "string", ds_temp_cond_list.getColumn(0, "instcd"));
  2820. dsf_makeValue(ds_send_famyinfo, "deptcd", "string", ds_temp_cond_list.getColumn(0, "orddeptcd"));
  2821. dsf_makeValue(ds_send_famyinfo, "docucode", "string", "0000002437");
  2822. dsf_makeValue(ds_send_famyinfo, "genogrmnm", "string", "");
  2823. dsf_makeValue(ds_send_comparam, "userid", "string", sysf_getUserId());
  2824. dsf_makeValue(ds_send_comparam, "pid", "string", ds_temp_cond_list.getColumn(0, "pid"));
  2825. dsf_makeValue(ds_send_comparam, "instcd", "string", ds_temp_cond_list.getColumn(0, "instcd"));
  2826. dsf_makeValue(ds_send_comparam, "exeflag", "string", ds_hidden_paminfo_paminfo.getColumn(0, "exeflag"));
  2827. dsf_makeValue(ds_send_comparam, "certflag", "string", certFlag);
  2828. dsf_makeValue(ds_send_comparam, "recflag", "string", "08");
  2829. dsf_makeValue( ds_send_wardrecinfo, "infooffer", "string", ds_main_wardrecinfo.getColumn(0, "infooffer"));
  2830. dsf_makeValue( ds_send_wardrecinfo, "recdd", "string", utlf_transEmptyToNull(ds_main_wardrecinfo.getColumn(0, "recdd")));
  2831. dsf_makeValue( ds_send_wardrecinfo, "rectm", "string", utlf_transEmptyToNull(ds_main_wardrecinfo.getColumn(0, "rectm")));
  2832. dsf_makeValue( ds_send_wardrecinfo, "recdt", "string", utlf_transEmptyToNull(ds_main_wardrecinfo.getColumn(0, "recdd")) + utlf_transEmptyToNull(ds_main_wardrecinfo.getColumn(0, "rectm")));
  2833. }
  2834. function DataSet_XMLChange(DataSet, DataSetName, pathName, ds_infectspec_XML)
  2835. {
  2836. var ds_infectspec_XML_RSLT;
  2837. var bolDel = false;
  2838. var pParam = new Object();
  2839. pParam.cDataYN = "N";
  2840. if(bolsign == true)
  2841. {
  2842. pParam.nullNodeYN = "N";
  2843. }
  2844. DataSet.enableevent = false;
  2845. DataSet.updatecontrol = false;
  2846. if(!utlf_isNull(DataSet.getColumnInfo("dsvaluepath")))
  2847. {
  2848. DataSet.deleteColumn("dsvaluepath");
  2849. }
  2850. DataSet.updatecontrol = true;
  2851. DataSet.enableevent = true;
  2852. for(var i = 0; i < DataSet.rowcount ;i++)
  2853. {
  2854. for(var j = 0; j < DataSet.colcount ;j++)
  2855. {
  2856. if(!utlf_isNull(DataSet.getColumn(i, j)))
  2857. {
  2858. bolDel = true;
  2859. }
  2860. }
  2861. if(bolDel == false)
  2862. {
  2863. DataSet.deleteRow(i);
  2864. i--;
  2865. }
  2866. bolDel = false;
  2867. }
  2868. sParamObjArr = [{ds: DataSetName, path:pathName, filter: ""}];
  2869. ds_infectspec_XML_RSLT= lf_convertDsToXml(sParamObjArr,ds_infectspec_XML, pParam);
  2870. return ds_infectspec_XML_RSLT;
  2871. }
  2872. function fChkInclYN()
  2873. {
  2874. var pasthistyn = ds_data_pasthist1.getColumn(0, "pasthistinclyn");
  2875. var famyhistyn = ds_data_famyhist1.getColumn(0, "famyhistinclyn");
  2876. var inhistyn = ds_data_inhist1.getColumn(0, "inhistinclyn");
  2877. var ophistyn = ds_data_ophist1.getColumn(0, "ophistinclyn");
  2878. var rectmedistatyn = ds_data_rectmedistat1.getColumn(0, "rectmedistatinfoinclyn");
  2879. var allhistinclyn = ds_data_allghist1.getColumn(0, "allghistinclyn");
  2880. var vacnhistinclyn = ds_data_vacnhist.getColumn(0, "vacnhistinfoinclyn");
  2881. var smokinclyn = ds_data_smok1.getColumn(0, "smokinclyn");
  2882. var drunkinclyn = ds_data_drunk1.getColumn(0, "drunkinclyn");
  2883. var gustofoodinclyn = ds_data_gustofood1.getColumn(0, "gustofoodinclyn");
  2884. var tnsseffcinfoyn = ds_data_tnsseffc1.getColumn(0, "tnsseffcinclyn");
  2885. if(pasthistyn == "1")
  2886. {
  2887. DataSet_XMLChangeName = "";
  2888. DataSet_XMLChangeName = DataSet_XMLChange2( ds_data_pasthist1,
  2889. ds_data_pasthist2,
  2890. "ds_data_pasthist1",
  2891. "ds_data_pasthist2",
  2892. "pasthistinclyn",
  2893. "pasthistcms",
  2894. "pasthist1",
  2895. "pasthist1/pasthistcms",
  2896. "<pasthist1><pasthistinclyn/><pasthistcms><genrdd/><histspec/><remfact/></pasthistcms></pasthist1>");
  2897. DataSet_XMLChangeName = DataSet_XMLChangeName.replace("pasthistcms","pasthist");
  2898. DataSet_XMLChangeName = DataSet_XMLChangeName.replace("pasthist1","pasthist");
  2899. dsf_makeValue(ds_send_wardrecinfo, "pasthistinfo", "string", DataSet_XMLChangeName);
  2900. }
  2901. else
  2902. {
  2903. DataSet_XMLChangeName = "";
  2904. DataSet_XMLChangeName = DataSet_XMLChange2( ds_data_pasthist1,
  2905. ds_data_pasthist2,
  2906. "ds_data_pasthist1",
  2907. "ds_data_pasthist2",
  2908. "pasthistinclyn",
  2909. "pasthistcms",
  2910. "pasthist1",
  2911. "pasthist1/pasthistcms",
  2912. "<pasthist1><pasthistinclyn/><pasthistcms><genrdd/><histspec/><remfact/></pasthistcms></pasthist1>");
  2913. DataSet_XMLChangeName = DataSet_XMLChangeName.replace("pasthistcms","pasthist");
  2914. DataSet_XMLChangeName = DataSet_XMLChangeName.replace("pasthist1","pasthist");
  2915. dsf_makeValue(ds_send_wardrecinfo, "pasthistinfo", "string", DataSet_XMLChangeName);
  2916. }
  2917. if(famyhistyn == "1")
  2918. {
  2919. dsf_makeValue( ds_send_wardrecinfo, "famyhistinfo", "string", fGetXmlToStr("/root/hidden/histinfo/famyhistinfo/famyhist"));
  2920. }
  2921. else
  2922. {
  2923. dsf_makeValue( ds_send_wardrecinfo, "famyhistinfo", "string", fGetXmlToStr("/root/hidden/histinfo/famyhistinfo/famyhist"));
  2924. }
  2925. if(inhistyn == "1")
  2926. {
  2927. model.makeValue("/root/send/wardrecinfo/inhistinfo", fGetXmlToStr("/root/hidden/histinfo/inhistinfo/inhist"));
  2928. }
  2929. else
  2930. {
  2931. model.makeValue("/root/send/wardrecinfo/inhistinfo", fGetXmlToStr("/root/main/histinfo/inhistinfo/inhist"));
  2932. }
  2933. if(ophistyn == "1")
  2934. {
  2935. model.makeValue("/root/send/wardrecinfo/ophistinfo", fGetXmlToStr("/root/hidden/histinfo/ophistinfo/ophist"));
  2936. }
  2937. else
  2938. {
  2939. model.makeValue("/root/send/wardrecinfo/ophistinfo", fGetXmlToStr("/root/main/histinfo/ophistinfo/ophist"));
  2940. }
  2941. if(rectmedistatyn == "1")
  2942. {
  2943. model.makeValue("/root/send/wardrecinfo/rectmedistatinfo", fGetXmlToStr("/root/hidden/histinfo/rectmedistatinfo/rectmedistat"));
  2944. }
  2945. else
  2946. {
  2947. model.makeValue("/root/send/wardrecinfo/rectmedistatinfo", fGetXmlToStr("/root/main/histinfo/rectmedistatinfo/rectmedistat"));
  2948. }
  2949. if(allhistinclyn == "1")
  2950. {
  2951. model.makeValue("/root/send/wardrecinfo/allghistinfo", fGetXmlToStr("/root/hidden/histinfo/allghistinfo/allghist"));
  2952. }
  2953. else
  2954. {
  2955. model.makeValue("/root/send/wardrecinfo/allghistinfo", fGetXmlToStr("/root/main/histinfo/allghistinfo/allghist"));
  2956. }
  2957. // model.makeValue("/root/send/wardrecinfo/vacnhistinfo", fGetXmlToStr("/root/main/histinfo/vacnhistinfo/vacnhist"));
  2958. // model.makeValue("/root/send/wardrecinfo/smokinfo", fGetXmlToStr("/root/main/histinfo/smokinfo/smok"));
  2959. // model.makeValue("/root/send/wardrecinfo/drunkinfo", fGetXmlToStr("/root/main/histinfo/drunkinfo/drunk"));
  2960. // model.makeValue("/root/send/wardrecinfo/gustofoodinfo", fGetXmlToStr("/root/main/histinfo/gustofoodinfo/gustofood"));
  2961. // model.makeValue("/root/send/wardrecinfo/tnsseffcinfo", fGetXmlToStr("/root/main/histinfo/tnsseffcinfo/tnsseffc"));
  2962. }
  2963. function grdDateType(dataName, colName, colIndex, grdName)
  2964. {
  2965. var i = 0;
  2966. var boltype = false;
  2967. var bolNull = false;
  2968. var Expr = "EXPR("
  2969. if(dataName.rowcount > 0)
  2970. {
  2971. for(i = 0; i < dataName.rowcount; i++)
  2972. {
  2973. if(utlf_transNullToEmpty(dataName.getColumn(i, colName)).isNumber() == true && dataName.getColumn(i, colName).length == 8)
  2974. {
  2975. Expr += "currow == " + i + " ? 'date' : ";
  2976. boltype = true;
  2977. }
  2978. if(!utlf_isNull(dataName.getColumn(i, colName)))
  2979. {
  2980. bolNull = true;
  2981. }
  2982. }
  2983. if(bolNull == false)
  2984. {
  2985. grdName.setCellProperty("Body", colIndex, "displaytype", "normal");
  2986. }
  2987. if(boltype == true)
  2988. {
  2989. Expr += "'normal')";
  2990. grdName.setCellProperty("Body", colIndex, "displaytype", Expr);
  2991. }
  2992. }
  2993. else
  2994. {
  2995. grdName.setCellProperty("Body", colIndex, "displaytype", "normal");
  2996. }
  2997. }
  2998. function fChgRecHistInfo()
  2999. {
  3000. var recpkspec = String(ds_main_wardrecinfo.getColumn(0, "bfrecddtm")).split("|");
  3001. var bfrecpid = recpkspec[0];
  3002. var bfrecindd = recpkspec[1];
  3003. var bfreccretno = recpkspec[2];
  3004. var bfrecflag = recpkspec[3];
  3005. var bfrecinstcd = recpkspec[4];
  3006. ds_send_req.clearData();
  3007. ds_send_req.addRow();
  3008. dsf_makeValue( ds_send_req, "pid", "string", bfrecpid, 0);
  3009. dsf_makeValue( ds_send_req, "indd", "string", bfrecindd, 0);
  3010. dsf_makeValue( ds_send_req, "cretno", "string", bfreccretno, 0);
  3011. dsf_makeValue( ds_send_req, "instcd", "string", bfrecinstcd, 0);
  3012. dsf_makeValue( ds_send_req, "recflag", "string", bfrecflag, 0);
  3013. var oParam = {};
  3014. oParam.id = "TRMND00302";
  3015. oParam.service = "wardcareapp.WardCareRec";
  3016. oParam.method = "reqGetAllRecInfo";
  3017. oParam.inds = "reqlist=ds_send_req";
  3018. oParam.outds = "ds_main_famyfact=famyfact ds_main_histinfo=histinfo ds_main_wardrecinfo=wardrecinfo";
  3019. oParam.async = false;
  3020. //oParam.callback = "cf_TRMND00302";
  3021. tranf_submit(oParam);
  3022. dsf_makeValue( ds_main_wardrecinfo, "bfrecddtm", "string", "", 0);
  3023. cmb_bfrecddtm.index = 0;
  3024. convertXmlToDsNull(ds_main_wardrecinfo.getColumn(0, "famytree"));
  3025. convertXmlToDsNull(ds_main_wardrecinfo.getColumn(0, "gustoinfo"));
  3026. convertXmlToDsNull(ds_main_wardrecinfo.getColumn(0, "bodyases"));
  3027. convertXmlToDsNull(ds_main_wardrecinfo.getColumn(0, "dialcomninfoetc"));
  3028. convertXmlToDsNull(ds_main_wardrecinfo.getColumn(0, "dialcarer"));
  3029. convertXmlToDsNull(ds_main_wardrecinfo.getColumn(0, "trans"));
  3030. convertXmlToDsNull(ds_main_wardrecinfo.getColumn(0, "selfcareinfo"));
  3031. convertXmlToDsNull(ds_main_wardrecinfo.getColumn(0, "rgstdialinfo"));
  3032. convertXmlToDsNull(ds_main_wardrecinfo.getColumn(0, "progrec"));
  3033. convertXmlToDsNull(ds_main_histinfo.getColumn(0, "pasthistinfo"));
  3034. convertXmlToDsNull(ds_main_histinfo.getColumn(0, "famyhistinfo"));
  3035. convertXmlToDsNull(ds_main_histinfo.getColumn(0, "inhistinfo"));
  3036. convertXmlToDsNull(ds_main_histinfo.getColumn(0, "ophistinfo"));
  3037. convertXmlToDsNull(ds_main_histinfo.getColumn(0, "allghistinfo"));
  3038. convertXmlToDsNull(ds_main_histinfo.getColumn(0, "vacnhistinfo"));
  3039. convertXmlToDsNull(ds_main_histinfo.getColumn(0, "rectmedistatinfo"));
  3040. convertXmlToDsNull(ds_main_histinfo.getColumn(0, "smokinfo"));
  3041. //convertXmlToDsNull(ds_main_histinfo.getColumn(0, "drunkinfo"));
  3042. convertXmlToDsNull(ds_main_histinfo.getColumn(0, "gustofoodinfo"));
  3043. convertXmlToDsNull(ds_main_histinfo.getColumn(0, "tnsseffcinfo"));
  3044. dsf_setDefaultVal(ds_data_drunkinfo, "drunkinfoyn:1");
  3045. filterDs(ds_data_dialcarer, ds_data_dialcarer1, ds_data_dialcarer2, "/dialcarer", "/dialcarer/dialcarer");
  3046. filterDs(ds_data_famyhist, ds_data_famyhist1, ds_data_famyhist2, "/famyhist", "/famyhist/famyhist");
  3047. filterDs(ds_data_inhist, ds_data_inhist1, ds_data_inhist2, "/inhist", "/inhist/inhist");
  3048. filterDs(ds_data_ophist, ds_data_ophist1, ds_data_ophist2, "/ophist", "/ophist/ophist");
  3049. filterDs(ds_data_allghist, ds_data_allghist1, ds_data_allghist2, "/allghist", "/allghist/allghist");
  3050. filterDs(ds_data_pasthist, ds_data_pasthist1, ds_data_pasthist2, "/pasthist", "/pasthist/pasthist");
  3051. filterDs(ds_data_smok, ds_data_smok1, ds_data_smok2, "/smok", "/smok/smok");
  3052. //filterDs(ds_data_drunkinfo, ds_data_drunk1, ds_data_drunk2, "/drunk", "/drunk/drunk");
  3053. filterDs(ds_data_gustofood, ds_data_gustofood1, ds_data_gustofood2, "/gustofood", "/gustofood/gustofood");
  3054. filterDs(ds_data_tnsseffc, ds_data_tnsseffc1, ds_data_tnsseffc2, "/tnsseffc", "/tnsseffc/tnsseffc");
  3055. filterDs(ds_data_rectmedistat, ds_data_rectmedistat1, ds_data_rectmedistat2, "/rectmedistat", "/rectmedistat/rectmedistat");
  3056. filterDs(ds_data_gustofood, ds_data_gustofood1, ds_data_gustofood2, "/gustofood", "/gustofood/gustofood");
  3057. filterDs(ds_data_tnsseffc, ds_data_tnsseffc1, ds_data_tnsseffc2, "/tnsseffc", "/tnsseffc/tnsseffc");
  3058. if(!utlf_isNull(ds_data_pasthist2.getColumnInfo("genrdd")))
  3059. {
  3060. grdDateType(ds_data_pasthist2, "genrdd", 0, switch1.case2.import4.grd_pasthist);
  3061. }
  3062. if(!utlf_isNull(ds_data_inhist2.getColumnInfo("indd")))
  3063. {
  3064. grdDateType(ds_data_inhist2, "indd", 0, switch1.case2.import4.grd_inhist);
  3065. }
  3066. if(!utlf_isNull(ds_data_ophist2.getColumnInfo("opdd")))
  3067. {
  3068. grdDateType(ds_data_ophist2, "opdd", 0, switch1.case2.import4.grd_ophist);
  3069. }
  3070. if(!utlf_isNull(ds_data_allghist2.getColumnInfo("genrdd")))
  3071. {
  3072. grdDateType(ds_data_allghist2, "genrdd", 0, switch1.case2.import4.grd_allghist);
  3073. }
  3074. SetchkList();
  3075. //frmf_setParameter("SPMMR04711_shape", ds_hidden_wardrecinfo.getColumn(0, "genogrmnm")); //fGetXmlToStr("ds_main_wardrecinfo_genogrmnm_XMD"));
  3076. }
  3077. function cmb_bfrecddtm_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  3078. {
  3079. var index = cmb_bfrecddtm.index;
  3080. clearDataSet();
  3081. DasetAddRow();
  3082. fChgRecHistInfo();
  3083. dsf_makeValue(ds_main_wardrecinfo, "bfrecddtm", "string", ds_hidden_paminfo_recinfo.getColumn(index, "recpkspec"));
  3084. grp_patinfo.caption1.text = utlf_transNullToEmpty(ds_temp_cond_list.getColumn(0, "roomcd"));
  3085. grp_patinfo.caption2.text = utlf_transNullToEmpty(ds_temp_cond_list.getColumn(0, "hngnm"));
  3086. grp_patinfo.caption4.text = utlf_transNullToEmpty(ds_temp_cond_list.getColumn(0, "sex"));
  3087. grp_patinfo.caption7.text = utlf_transNullToEmpty(ds_temp_cond_list.getColumn(0, "age"));
  3088. fInitEvent();
  3089. fMNWCareComFstdtSet( "01", "SRCH" );//recflag : 간호정보조사 플래그 CareCom.js 간호정보조사 최초기록일시 및 사용자 세팅
  3090. }
  3091. function ds_data_ophist2_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  3092. {
  3093. grdDateType(ds_data_ophist2, "opdd", 0, group3.switch1.case1.import1.grd_ophist);
  3094. }
  3095. function ds_data_inhist2_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  3096. {
  3097. grdDateType(ds_data_inhist2, "indd", 0, group3.switch1.case1.import1.grd_inhist);
  3098. grdDateType(ds_data_inhist2, "dschdd", 1, group3.switch1.case1.import1.grd_inhist);
  3099. }]]></Script>
  3100. </Form>
  3101. </FDL>