CDA_StyleSheet_Total_ver8.xsl 113 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:n1="urn:hl7-org:v3" xmlns:in="urn:inline-variable-data">
  3. <xsl:output method="html" indent="yes" version="4.01" encoding="ISO-8859-1" doctype-system="http://www.w3.org/TR/html4/strict.dtd" doctype-public="-//W3C//DTD HTML 4.01//EN"/>
  4. <xsl:param name="limit-external-images" select="'yes'"/>
  5. <!-- ##################### variable ##################### -->
  6. <xsl:variable name="lc" select="'abcdefghijklmnopqrstuvwxyz'" />
  7. <xsl:variable name="uc" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'" />
  8. <xsl:variable name="simple-sanitizer-match">
  9. <xsl:text>&#10;&#13;&#34;&#39;&#58;&#59;&#63;&#96;&#123;&#125;&#8220;&#8221;&#8222;&#8218;&#8217;</xsl:text>
  10. </xsl:variable>
  11. <xsl:variable name="simple-sanitizer-replace" select="'***************'"/>
  12. <xsl:variable name="javascript-injection-warning">WARNING: Javascript injection attempt detected in source CDA document. Terminating</xsl:variable>
  13. <xsl:variable name="malicious-content-warning">WARNING: Potentially malicious content found in CDA document.</xsl:variable>
  14. <!--section counting variable-->
  15. <xsl:variable name="totalCount" select="count(/n1:ClinicalDocument/n1:component/n1:structuredBody/n1:component[n1:section])"/>
  16. <xsl:variable name="medicationCount" select="count(/n1:ClinicalDocument/n1:component/n1:structuredBody/n1:component[n1:section/n1:code/@code='10160-0']/n1:section/n1:text/n1:table/n1:tbody/n1:tr)"/>
  17. <xsl:variable name="procedureCount" select="count(/n1:ClinicalDocument/n1:component/n1:structuredBody/n1:component[n1:section/n1:code/@code='47519-4']/n1:section/n1:text/n1:table/n1:tbody/n1:tr)"/>
  18. <xsl:variable name="specimenCount" select="count(/n1:ClinicalDocument/n1:component/n1:structuredBody/n1:component[n1:section/n1:code/@code='30954-2']/n1:section/n1:entry[n1:organizer/n1:id/@extension='Specimen'])"/>
  19. <xsl:variable name="pathologyCount" select="count(/n1:ClinicalDocument/n1:component/n1:structuredBody/n1:component[n1:section/n1:code/@code='30954-2']/n1:section/n1:entry[n1:organizer/n1:id/@extension='Pathology'])"/>
  20. <xsl:variable name="radiologyCount" select="count(/n1:ClinicalDocument/n1:component/n1:structuredBody/n1:component[n1:section/n1:code/@code='30954-2']/n1:section/n1:entry[n1:organizer/n1:id/@extension='Radiology'])"/>
  21. <xsl:variable name="functionalCount" select="count(/n1:ClinicalDocument/n1:component/n1:structuredBody/n1:component[n1:section/n1:code/@code='30954-2']/n1:section/n1:entry[n1:organizer/n1:id/@extension='Functional'])"/>
  22. <xsl:variable name="documentType" select="/n1:ClinicalDocument/n1:code/@code"/>
  23. <xsl:variable name="organizationOid" select="/n1:ClinicalDocument/n1:custodian/n1:assignedCustodian/n1:representedCustodianOrganization/n1:id/@root"/>
  24. <!--BPPC variable-->
  25. <xsl:variable name="consentSubjectRelationship">
  26. <xsl:call-template name="getGuardianRelationship">
  27. <xsl:with-param name="code" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:patient/n1:guardian/n1:code/@code"/>
  28. </xsl:call-template>
  29. </xsl:variable>
  30. <xsl:variable name="consentSubjectName">
  31. <xsl:choose>
  32. <xsl:when test="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:patient/n1:guardian/n1:guardianPerson/n1:name/n1:given != '' or /n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:patient/n1:guardian/n1:guardianPerson/n1:name/n1:family !=''">
  33. <xsl:call-template name="show-name-kr">
  34. <xsl:with-param name="name" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:patient/n1:guardian/n1:guardianPerson/n1:name"/>
  35. </xsl:call-template>
  36. </xsl:when>
  37. <xsl:when test="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:patient/n1:name/n1:given != '' or /n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:patient/n1:name/n1:family">
  38. <xsl:call-template name="show-name-kr">
  39. <xsl:with-param name="name" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:patient/n1:name"/>
  40. </xsl:call-template>
  41. </xsl:when>
  42. <xsl:otherwise></xsl:otherwise>
  43. </xsl:choose>
  44. </xsl:variable>
  45. <xsl:variable name="consentSubjectTelecom">
  46. <xsl:choose>
  47. <xsl:when test="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:patient/n1:guardian/n1:telecom/@value != ''">
  48. <xsl:call-template name="show-telecom-kr">
  49. <xsl:with-param name="telecom" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:patient/n1:guardian/n1:telecom"/>
  50. </xsl:call-template>
  51. </xsl:when>
  52. <xsl:when test="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:telecom/@value != ''">
  53. <xsl:call-template name="show-telecom-kr">
  54. <xsl:with-param name="telecom" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:telecom"/>
  55. </xsl:call-template>
  56. </xsl:when>
  57. <xsl:otherwise></xsl:otherwise>
  58. </xsl:choose>
  59. </xsl:variable>
  60. <xsl:variable name="isBppc">
  61. <xsl:choose>
  62. <xsl:when test="count(/n1:ClinicalDocument/n1:templateId[@root='1.2.410.100110.40.2.2.1.1'])&gt;0">
  63. <xsl:value-of select="1"/>
  64. </xsl:when>
  65. <xsl:when test="count(/n1:ClinicalDocument/n1:templateId[@root='1.2.410.100110.40.2.2.1.2'])&gt;0">
  66. <xsl:value-of select="2"/>
  67. </xsl:when>
  68. <xsl:otherwise>
  69. <xsl:value-of select="0"/>
  70. </xsl:otherwise>
  71. </xsl:choose>
  72. </xsl:variable>
  73. <xsl:variable name="consentMethod" select="/n1:ClinicalDocument/n1:component/n1:structuredBody/n1:component/n1:section[n1:templateId/@root='2.16.840.1.113883.3.445.17']/n1:text/n1:paragraph[@ID='consentMethod']"/>
  74. <xsl:variable name="withdrawalMethod" select="/n1:ClinicalDocument/n1:component/n1:structuredBody/n1:component/n1:section[n1:templateId/@root='2.16.840.1.113883.3.445.17']/n1:text/n1:paragraph[@ID='withdrawalMethod']"/>
  75. <!-- document title -->
  76. <xsl:variable name="title">
  77. <xsl:choose>
  78. <xsl:when test="string-length(/n1:ClinicalDocument/n1:title) &gt;= 1">
  79. <xsl:value-of select="/n1:ClinicalDocument/n1:title"/>
  80. </xsl:when>
  81. <xsl:when test="/n1:ClinicalDocument/n1:code/@displayName">
  82. <xsl:value-of select="/n1:ClinicalDocument/n1:code/@displayName"/>
  83. </xsl:when>
  84. <xsl:otherwise>
  85. <xsl:text>Clinical Document</xsl:text>
  86. </xsl:otherwise>
  87. </xsl:choose>
  88. </xsl:variable>
  89. <!-- /##################### variable ##################### -->
  90. <!-- Main -->
  91. <xsl:template match="/">
  92. <xsl:apply-templates select="n1:ClinicalDocument"/>
  93. </xsl:template>
  94. <xsl:template match="n1:ClinicalDocument">
  95. <html xml:lang="ko">
  96. <head>
  97. <meta http-equiv='X-UA-Compatible' content='IE=8'/>
  98. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  99. <meta http-equiv="Content-Script-Type" content="text/javascript" />
  100. <meta http-equiv="Content-Style-Type" content="text/css" />
  101. <title>
  102. <xsl:value-of select="$title"/>
  103. </title>
  104. <xsl:call-template name="chooseCSS"/>
  105. </head>
  106. <body>
  107. <xsl:call-template name="chooseBody"/>
  108. <script type="text/javascript">
  109. <xsl:comment>
  110. <![CDATA[
  111. function Expend(spn) {
  112. var img = spn.firstChild;
  113. var div = spn.parentNode.parentNode.lastChild;
  114. if (div.style.display == "none") {
  115. div.style.display = "";
  116. img.src = "data:image/gif;base64,R0lGODlhDQAIAIABAGZmZv///yH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4zLWMwMTEgNjYuMTQ1NjYxLCAyMDEyLzAyLzA2LTE0OjU2OjI3ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M2IChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCQjRBQUMxQzM3NTUxMUU2OTcxNUQ5MkMyMDQwMjgxMSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCQjRBQUMxRDM3NTUxMUU2OTcxNUQ5MkMyMDQwMjgxMSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkJCNEFBQzFBMzc1NTExRTY5NzE1RDkyQzIwNDAyODExIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkJCNEFBQzFCMzc1NTExRTY5NzE1RDkyQzIwNDAyODExIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+Af/+/fz7+vn49/b19PPy8fDv7u3s6+rp6Ofm5eTj4uHg397d3Nva2djX1tXU09LR0M/OzczLysnIx8bFxMPCwcC/vr28u7q5uLe2tbSzsrGwr66trKuqqainpqWko6KhoJ+enZybmpmYl5aVlJOSkZCPjo2Mi4qJiIeGhYSDgoGAf359fHt6eXh3dnV0c3JxcG9ubWxramloZ2ZlZGNiYWBfXl1cW1pZWFdWVVRTUlFQT05NTEtKSUhHRkVEQ0JBQD8+PTw7Ojk4NzY1NDMyMTAvLi0sKyopKCcmJSQjIiEgHx4dHBsaGRgXFhUUExIREA8ODQwLCgkIBwYFBAMCAQAAIfkEAQAAAQAsAAAAAA0ACAAAAhIEgpnGuhaakhEieiF+e1o3gQUAOw==";
  117. }
  118. else {
  119. div.style.display = "none";
  120. img.src = "data:image/gif;base64,R0lGODlhDQAIAIABAGZmZv///yH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4zLWMwMTEgNjYuMTQ1NjYxLCAyMDEyLzAyLzA2LTE0OjU2OjI3ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M2IChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpFNUM2NDM2QTM3NTUxMUU2QjQ5MUVBMkYxN0E2MzQ2OSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpFNUM2NDM2QjM3NTUxMUU2QjQ5MUVBMkYxN0E2MzQ2OSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkU1QzY0MzY4Mzc1NTExRTZCNDkxRUEyRjE3QTYzNDY5IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkU1QzY0MzY5Mzc1NTExRTZCNDkxRUEyRjE3QTYzNDY5Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+Af/+/fz7+vn49/b19PPy8fDv7u3s6+rp6Ofm5eTj4uHg397d3Nva2djX1tXU09LR0M/OzczLysnIx8bFxMPCwcC/vr28u7q5uLe2tbSzsrGwr66trKuqqainpqWko6KhoJ+enZybmpmYl5aVlJOSkZCPjo2Mi4qJiIeGhYSDgoGAf359fHt6eXh3dnV0c3JxcG9ubWxramloZ2ZlZGNiYWBfXl1cW1pZWFdWVVRTUlFQT05NTEtKSUhHRkVEQ0JBQD8+PTw7Ojk4NzY1NDMyMTAvLi0sKyopKCcmJSQjIiEgHx4dHBsaGRgXFhUUExIREA8ODQwLCgkIBwYFBAMCAQAAIfkEAQAAAQAsAAAAAA0ACAAAAhOMD6cKvdzci4HCZGyVyOnLTUABADs=";
  121. }
  122. }
  123. function popupView(page)
  124. {
  125. try{
  126. window.open(page, "", "width=1024px,height=768px,alwaysRaised=yes,resizable=yes,center=yes,status=no");
  127. }
  128. catch(exception){
  129. }
  130. }
  131. function popupViewNew(url, kosUid, oragnizationOid)
  132. {
  133. try{
  134. var page = url;
  135. var mapForm = document.createElement("form");
  136. var milliseconds = new Date().getTime();
  137. var windowName = page + milliseconds;
  138. var enc = "";
  139. mapForm.target = windowName;
  140. mapForm.method = "POST";
  141. mapForm.action = page;
  142. var mapInput = document.createElement("input");
  143. mapInput.type = "hidden";
  144. mapInput.name = "document_uid";
  145. mapInput.value = kosUid;
  146. mapForm.appendChild(mapInput);
  147. var mapInput2 = document.createElement("input");
  148. mapInput2.type = "hidden";
  149. mapInput2.name = "hospital_oid"
  150. mapInput2.value = oragnizationOid;
  151. mapForm.appendChild(mapInput2);
  152. var mapInput3 = document.createElement("input");
  153. mapInput3.type = "hidden";
  154. mapInput3.name = "mpi_id";
  155. mapInput3.value = null;
  156. mapForm.appendChild(mapInput3);
  157. document.body.appendChild(mapForm);
  158. mapForm.submit();
  159. }
  160. catch(exception)
  161. { }
  162. }
  163. ]]>
  164. </xsl:comment>
  165. </script>
  166. </body>
  167. </html>
  168. </xsl:template>
  169. <!-- CSS -->
  170. <!-- New-version CSS-->
  171. <xsl:template name="chooseCSS">
  172. <xsl:choose>
  173. <!--BPPC-->
  174. <xsl:when test="$documentType = &apos;57016-8&apos;">
  175. <xsl:call-template name="addBpccCSS"/>
  176. </xsl:when>
  177. <xsl:otherwise>
  178. <xsl:call-template name="addCSS"/>
  179. </xsl:otherwise>
  180. </xsl:choose>
  181. </xsl:template>
  182. <xsl:template name="addBpccCSS">
  183. <style type="text/css">
  184. <xsl:text>
  185. /* Reset */
  186. *{margin:0;padding:0}
  187. html, body {width:100%; height:100%; margin:0; padding:0; font-family:'맑은 고딕', '맑은고딕',Nanum Gothic, NanumGothic, '나눔고딕', '나눔 고딕', 'Nanum Gothic', 'NanumGothic', Dotum, '돋움', Gulim, '굴림',sans-serif;}
  188. body{font-size:12px; word-break:break-all;-ms-word-break:break-all;}
  189. a, address, blockquote, br, fieldset, legend, label, form, input, select, textarea, button, table, th, td caption, cite, code, dl, dt, dd, h1, h2, h3, h4, h5, h6, p, div, iframe, ul, ol, li, hr, form, img{margin:0; padding:0;}
  190. h1, h2, h3, h4, h5, h6 {font-size:12px; text-align:left;}
  191. ul, ol, li {list-style:none;}
  192. abbr,acronym {border:0;}
  193. img{vertical-align:middle; border:none;}
  194. img, fieldset{border:none;}
  195. iframe{border-style: none;
  196. border-color: inherit;
  197. border-width: 0;}
  198. em, address{font-style:normal;}
  199. textarea{overflow:auto;}
  200. table{border-collapse:collapse; border-spacing:0;}
  201. input, select, textarea{font-size:100%; vertical-align:middle; box-sizing:border-box;}
  202. /* Hyper Link */
  203. a,
  204. a:link,
  205. a:visited{text-decoration:none !important;}
  206. a:active,
  207. a:hover{text-decoration:none !important;}
  208. /* Hidden Content */
  209. .skip{font-size: 1px; height: 1px; line-height: 1px; overflow: hidden; position: absolute; text-indent: 4px; white-space: nowrap; width: 1px;}
  210. /* hr , legend , caption */
  211. hr, legend, caption{clear:both; display:none; list-style:none; position:absolute; top:0; left:0; width:0; height:0; margin:0; padding:0; border:0; background:none; font-size:0px; line-height:0; visibility:hidden;}
  212. /* Png IE6 */
  213. * html .png24{tmp:expression(setPng24(this));}
  214. /* fix */
  215. .fix{*zoom:1;}
  216. .fix:after{content:""; clear:both; display:block;}
  217. /* Lang Exchange */
  218. .en{ime-mode:disabled; }
  219. .kr{ime-mode:active; }
  220. /* Cursor */
  221. .hand{cursor:pointer;}
  222. /* float */
  223. .fl{float:left;}
  224. .fr{float:right;}
  225. .clear{clear:both;}
  226. /* margin */
  227. .mgt5{margin-top:5px !important;}
  228. .mgt10{margin-top:10px !important;}
  229. .mgt15{margin-top:15px !important;}
  230. .mgt20{margin-top:20px !important;}
  231. .mgt25{margin-top:25px !important;}
  232. .mgt30{margin-top:30px !important;}
  233. .mgt35{margin-top:35px !important;}
  234. .mgt40{margin-top:40px !important;}
  235. .mgt45{margin-top:45px !important;}
  236. .mgt50{margin-top:50px !important;}
  237. .mgt55{margin-top:55px !important;}
  238. .mgt60{margin-top:60px !important;}
  239. .mgt70{margin-top:70px !important;}
  240. .mgt90{margin-top:90px !important;}
  241. .mgb5{margin-bottom:5px !important;}
  242. .mgb7{margin-bottom:7px !important;}
  243. .mgb10{margin-bottom:10px !important;}
  244. .mgb14{margin-bottom:14px !important;}
  245. .mgb15{margin-bottom:15px !important;}
  246. .mgb17{margin-bottom:17px !important;}
  247. .mgb20{margin-bottom:20px !important;}
  248. .mgb25{margin-bottom:25px !important;}
  249. .mgb30{margin-bottom:30px !important;}
  250. .mgb35{margin-bottom:35px !important;}
  251. .mgb40{margin-bottom:40px !important;}
  252. .mgb45{margin-bottom:45px !important;}
  253. .mgb50{margin-bottom:50px !important;}
  254. .mgb55{margin-bottom:55px !important;}
  255. .mgb60{margin-bottom:60px !important;}
  256. .mgb65{margin-bottom:65px !important;}
  257. .mgb80{margin-bottom:80px !important;}
  258. .mgb90{margin-bottom:90px !important;}
  259. .mgl5{margin-left:5px !important;}
  260. .mgl10{margin-left:10px !important;}
  261. .mgl15{margin-left:15px !important;}
  262. .mgl20{margin-left:20px !important;}
  263. .mgl25{margin-left:25px !important;}
  264. .mgl30{margin-left:30px !important;}
  265. .mgl35{margin-left:35px !important;}
  266. .mgl40{margin-left:40px !important;}
  267. .mgl45{margin-left:45px !important;}
  268. .mgl50{margin-left:50px !important;}
  269. .mgl55{margin-left:55px !important;}
  270. .mgl60{margin-left:60px !important;}
  271. .mgr5{margin-right:5px !important;}
  272. .mgr10{margin-right:10px !important;}
  273. .mgr15{margin-right:15px !important;}
  274. .mgr20{margin-right:20px !important;}
  275. .mgr25{margin-right:25px !important;}
  276. .mgr30{margin-right:30px !important;}
  277. .mgr35{margin-right:35px !important;}
  278. .mgr40{margin-right:40px !important;}
  279. .mgr45{margin-right:45px !important;}
  280. .mgr50{margin-right:50px !important;}
  281. .mgr55{margin-right:55px !important;}
  282. .mgr60{margin-right:60px !important;}
  283. .center{text-align:center !important;}
  284. .left{text-align:left !important;}
  285. .right{text-align:right !important;}
  286. /*색상 바꾸기*/
  287. .color_bg{text-align:center; position:absolute; top:3px; right:20px; padding:0 !important; margin:0 !important;}
  288. .color_bg li{margin:3px; display:inline-block; width:15px; height:15px;}
  289. .color_bg li a{padding:0 !important; display:inline-block; width:15px; height:15px !important; border-radius:5px; border:1px solid #fff;}
  290. .color_bg .blue{background:#306BBB !important;}
  291. .color_bg .green{background:#189922 !important;}
  292. .color_bg .mint{background:#26cd99 !important;}
  293. .color_bg .orange{background:#ff9900 !important;}
  294. .color_bg .violet{background:#5b39b1 !important;}
  295. body,html{background:#F4F4F4;}
  296. .body_wrap{width:700px; margin:0 auto; }
  297. .wrap{width:690px; margin:17px auto 30px;}
  298. .header h1{border:1px solid #DBDBDB; background:#fff; font-size:24px; font-weight:600; padding:15px; text-align:center;}
  299. .contents{margin-top:17px; border:1px solid #DBDBDB; border-top:2px solid #215fb4; background:#fff; padding:17px 26px 20px 26px;}
  300. .contents h2{font-size:14px; font-weight:600; margin-bottom:16px; line-height:1.4;}
  301. .contents h2 strong{font-weight:600; color:#215fb4;}
  302. .contents .info_agree{ font-size:13px; width:100%;}
  303. .contents .info_agree th{border:1px solid #DBDBDB; font-size:13px; background:#f9f9f9; color:#000; padding:3px 0px; font-weight:600; padding:6px;}
  304. .contents .info_agree td{border:1px solid #DBDBDB; font-size:12px; color:#666; line-height:1.4; padding:6px;}
  305. .agreement{margin:17px 0;}
  306. .agreement div{border:1px solid #DBDBDB; border-left:2px solid #215fb4; background:#fff; margin:4px 0; padding:15px 25px; font-size:13px; font-weight:400; color:#666;}
  307. .agreement div strong{font-weight:500;}
  308. .agreement div p{float:right;}
  309. .agreement div p input{margin-right:5px;}
  310. .agreement div p label{margin-right:5px;}
  311. .contents1{border:1px solid #DBDBDB; border-left:2px solid #215fb4; background:#fff; }
  312. .chk_agree{font-size:13px; font-weight:600; float:left; margin:10px 15px;}
  313. .chk_agree td{padding:1px 10px;}
  314. .chk_agree td input{border:1px solid #cecece; height:25px;}
  315. .date_year{width:41.5px;}
  316. .date_mon{width:41.5px;}
  317. .date_day{width:41.5px;}
  318. .comm_input{width:210px;}
  319. .chk_input{width:200px; height:120px; margin-left:5px;}
  320. .sign{float:right; border-left:1px solid #DBDBDB; padding:16px 0 18px 25px; font-size:15px; font-weight:600; width:150px; height:95px;}
  321. </xsl:text>
  322. </style>
  323. </xsl:template>
  324. <!-- AS-IS CSS -->
  325. <xsl:template name="addCSS">
  326. <style type="text/css">
  327. <xsl:text>
  328. /* Reset */
  329. *{margin:0;padding:0}
  330. html, body {width:100%; height:100%; margin:0; padding:0; font-family:'맑은 고딕', '맑은고딕',Nanum Gothic, NanumGothic, '나눔고딕', '나눔 고딕', 'Nanum Gothic', 'NanumGothic', Dotum, '돋움', Gulim, '굴림',sans-serif;}
  331. body{font-size:12px; word-break:break-all;-ms-word-break:break-all;}
  332. a, address, blockquote, br, fieldset, legend, label, form, input, select, textarea, button, table, th, td caption, cite, code, dl, dt, dd, h1, h2, h3, h4, h5, h6, p, div, iframe, ul, ol, li, hr, form, img{margin:0; padding:0;}
  333. h1, h2, h3, h4, h5, h6 {font-size:12px; text-align:left;}
  334. ul, ol, li {list-style:none;}
  335. abbr,acronym {border:0;}
  336. img{vertical-align:middle; border:none;}
  337. img, fieldset{border:none;}
  338. iframe{border-style: none;
  339. border-color: inherit;
  340. border-width: 0;}
  341. em, address{font-style:normal;}
  342. textarea{overflow:auto;}
  343. table{border-collapse:collapse; border-spacing:0;}
  344. input, select, textarea{font-size:100%; vertical-align:middle; box-sizing:border-box;}
  345. /* Hyper Link */
  346. a,
  347. a:link,
  348. a:visited{text-decoration:none !important;}
  349. a:active,
  350. a:hover{text-decoration:none !important;}
  351. /* Hidden Content */
  352. .skip{font-size: 1px; height: 1px; line-height: 1px; overflow: hidden; position: absolute; text-indent: 4px; white-space: nowrap; width: 1px;}
  353. /* hr , legend , caption */
  354. hr, legend, caption{clear:both; display:none; list-style:none; position:absolute; top:0; left:0; width:0; height:0; margin:0; padding:0; border:0; background:none; font-size:0px; line-height:0; visibility:hidden;}
  355. /* Png IE6 */
  356. * html .png24{tmp:expression(setPng24(this));}
  357. /* fix */
  358. .fix{*zoom:1;}
  359. .fix:after{content:""; clear:both; display:block;}
  360. /* Lang Exchange */
  361. .en{ime-mode:disabled; }
  362. .kr{ime-mode:active; }
  363. /* Cursor */
  364. .hand{cursor:pointer;}
  365. /* float */
  366. .fl{float:left;}
  367. .fr{float:right;}
  368. .clear{clear:both;}
  369. /* margin */
  370. .mgt5{margin-top:5px !important;}
  371. .mgt10{margin-top:10px !important;}
  372. .mgt15{margin-top:15px !important;}
  373. .mgt20{margin-top:20px !important;}
  374. .mgt25{margin-top:25px !important;}
  375. .mgt30{margin-top:30px !important;}
  376. .mgt35{margin-top:35px !important;}
  377. .mgt40{margin-top:40px !important;}
  378. .mgt45{margin-top:45px !important;}
  379. .mgt50{margin-top:50px !important;}
  380. .mgt55{margin-top:55px !important;}
  381. .mgt60{margin-top:60px !important;}
  382. .mgt70{margin-top:70px !important;}
  383. .mgt90{margin-top:90px !important;}
  384. .mgb5{margin-bottom:5px !important;}
  385. .mgb7{margin-bottom:7px !important;}
  386. .mgb10{margin-bottom:10px !important;}
  387. .mgb14{margin-bottom:14px !important;}
  388. .mgb15{margin-bottom:15px !important;}
  389. .mgb17{margin-bottom:17px !important;}
  390. .mgb20{margin-bottom:20px !important;}
  391. .mgb25{margin-bottom:25px !important;}
  392. .mgb30{margin-bottom:30px !important;}
  393. .mgb35{margin-bottom:35px !important;}
  394. .mgb40{margin-bottom:40px !important;}
  395. .mgb45{margin-bottom:45px !important;}
  396. .mgb50{margin-bottom:50px !important;}
  397. .mgb55{margin-bottom:55px !important;}
  398. .mgb60{margin-bottom:60px !important;}
  399. .mgb65{margin-bottom:65px !important;}
  400. .mgb80{margin-bottom:80px !important;}
  401. .mgb90{margin-bottom:90px !important;}
  402. .mgl5{margin-left:5px !important;}
  403. .mgl10{margin-left:10px !important;}
  404. .mgl15{margin-left:15px !important;}
  405. .mgl20{margin-left:20px !important;}
  406. .mgl25{margin-left:25px !important;}
  407. .mgl30{margin-left:30px !important;}
  408. .mgl35{margin-left:35px !important;}
  409. .mgl40{margin-left:40px !important;}
  410. .mgl45{margin-left:45px !important;}
  411. .mgl50{margin-left:50px !important;}
  412. .mgl55{margin-left:55px !important;}
  413. .mgl60{margin-left:60px !important;}
  414. .mgr5{margin-right:5px !important;}
  415. .mgr10{margin-right:10px !important;}
  416. .mgr15{margin-right:15px !important;}
  417. .mgr20{margin-right:20px !important;}
  418. .mgr25{margin-right:25px !important;}
  419. .mgr30{margin-right:30px !important;}
  420. .mgr35{margin-right:35px !important;}
  421. .mgr40{margin-right:40px !important;}
  422. .mgr45{margin-right:45px !important;}
  423. .mgr50{margin-right:50px !important;}
  424. .mgr55{margin-right:55px !important;}
  425. .mgr60{margin-right:60px !important;}
  426. .center{text-align:center !important;}
  427. .left{text-align:left !important;}
  428. .right{text-align:right !important;}
  429. /*색상 바꾸기*/
  430. .color_bg{text-align:center; position:absolute; top:3px; right:20px; padding:0 !important; margin:0 !important;}
  431. .color_bg li{margin:3px; display:inline-block; width:15px; height:15px;}
  432. .color_bg li a{padding:0 !important; display:inline-block; width:15px; height:15px !important; border-radius:5px; border:1px solid #fff;}
  433. .color_bg .blue{background:#306BBB !important;}
  434. .color_bg .green{background:#189922 !important;}
  435. .color_bg .mint{background:#26cd99 !important;}
  436. .color_bg .orange{background:#ff9900 !important;}
  437. .color_bg .violet{background:#5b39b1 !important;}
  438. /* Lay out */
  439. body,html{background:#fff;}
  440. .body_wrap{width:690px; margin:15px auto 0;}
  441. .wrap{width:690px; margin:0 auto; margin-bottom:30px;}
  442. .header{padding:0px 14px; margin-bottom:15px; background:#4468b8; border-radius:6px 6px 0 0;}
  443. .header > div{height:39px; padding:0 27px 0 22px;}
  444. .header h1{font-size:18px; font-weight:700; float:left; font-style:italic; color:#fff; line-height:39px; }
  445. .header .date{float:right; margin-top:15px; font-size:13px; color:#fff; font-style:italic;}
  446. .header .date strong{font-size:13px; font-weight:400;}
  447. .container{}
  448. .cntInfo{border:1px solid #ccc; padding:15px 17px; margin-bottom:17px;
  449. background:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NEQ3NjNGRkI5MDVBMTFFNjlGMTBEMjIzNEI3QzM5MUQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NEQ3NjNGRkM5MDVBMTFFNjlGMTBEMjIzNEI3QzM5MUQiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo0RDc2M0ZGOTkwNUExMUU2OUYxMEQyMjM0QjdDMzkxRCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo0RDc2M0ZGQTkwNUExMUU2OUYxMEQyMjM0QjdDMzkxRCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PjNS/L0AAABFSURBVHjaYvz//z8DJYCJgULAAmOEVl4HO2V1uyYjKWyKXcBItTAAOQnmLGLYVAtE+nqBJumA9l6geVKmjRfomhsBAgwA7ipWg1/hAMUAAAAASUVORK5CYII=') no-repeat 0 0;}
  450. .cntInfo .cnt{margin-bottom:13px; font-size:16px; font-weight:600; font-style:italic;}
  451. .cntInfo .cnt span{color:#666;}
  452. .main_content{background:#fff; border:1px solid #ccc; border-top:3px solid #4892d2; margin-bottom:17px; letter-spacing:-1px; border-radius:6px;}
  453. .main_content p{color:#333;}
  454. .main_content div { padding:15px 17px;}
  455. .main_content li
  456. { background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADRJREFUeNpijI+PV2FgYJgJxGxAXMwCJLqA2IkBApYyAQlOBgRgBqmoBGJRIOYB4lyAAAMA1KgE45THCrwAAAAASUVORK5CYII=) no-repeat 0 5px;
  457. font-size:13px; padding-left:10px; margin: 5px; color:#222;}
  458. .main_content div div { font-size:12px; color:#666; white-space:pre-wrap; word-break:break-all;}
  459. .main_content h3{font-size:13px; font-weight:600; margin-bottom:5px; color:#333;}
  460. .main_content h2{padding:0 17px 0 32px; height:37px; line-height:37px; border-bottom:1px solid #ccc; margin-bottom:0;
  461. background:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QzE5ODQ1QTk5MDY0MTFFNkIxNTJCQjM0ODkyRkQ4QzMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QzE5ODQ1QUE5MDY0MTFFNkIxNTJCQjM0ODkyRkQ4QzMiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpDMTk4NDVBNzkwNjQxMUU2QjE1MkJCMzQ4OTJGRDhDMyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpDMTk4NDVBODkwNjQxMUU2QjE1MkJCMzQ4OTJGRDhDMyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PqL9Ap8AAAA1SURBVHjaYhQJWfufAQperw5ilKtigPOZGPAAvJKM////xy0pW4mQfdTGwCgauo4KdgIEGABVSQ6xMsdZ1AAAAABJRU5ErkJggg==') no-repeat 18px 50%;}
  462. .contents_table { width:100%;}
  463. .contents_table th{font-size:13px; color:#4892d2; font-weight:600; border:1px solid #e7eaec; background:#fcfcfc; padding:6px 10px; }
  464. .contents_table td{font-size:12px; color:#666; border:1px solid #e7eaec; padding:6px;}
  465. .contents_table1{width:100%; margin-top :5px; }
  466. .contents_table1 th{font-size:13px; color:#4892d2; font-weight:600; border:1px solid #e7eaec; border-bottom:2px solid #e7eaec; background:#fcfcfc; padding:6px 6px; }
  467. .contents_table1 td{font-size:12px; color:#666; border:1px solid #e7eaec;padding:6px 10px;}
  468. .expender{cursor:pointer;}
  469. .cnt{font-size:14px; font-weight:700; padding:0 2px 0 0; margin-bottom:6px;}
  470. .cnt img{float:right; margin-top:15px;}
  471. .listWrap{}
  472. .listWrap li{margin-top:5px; color:#666;}
  473. .listWrap li:fisrt-child{margin-top:0;}
  474. .patientInfo{text-align:center; margin-bottom:13px; background:#fcf8e3; height:60px; line-height:30px; border:1px solid #e2e7eb;}
  475. .patientInfo li{display:inline-block; zoom:1; *display:inline; margin-left:60px; font-size:13px; letter-spacing:0; color:#333;}
  476. .patientInfo li:first-child{margin-left:0;}
  477. .patientInfo li.name{font-weight:600;}
  478. .top{position:fixed; top:500px; left:500px;}
  479. .td_left{text-align:left !important;}
  480. <!-- 16.07.05 추가 -->
  481. <!-- PACS 버튼 생성관련 -->
  482. </xsl:text>
  483. </style>
  484. </xsl:template>
  485. <!-- ## Body ##-->
  486. <!-- Choose Body -->
  487. <xsl:template name="chooseBody">
  488. <xsl:choose>
  489. <xsl:when test="$isBppc='1'">
  490. <xsl:call-template name="BPPC"/>
  491. </xsl:when>
  492. <xsl:when test="$isBppc='2'">
  493. <xsl:call-template name="WITHDRAWAL"/>
  494. </xsl:when>
  495. <xsl:otherwise>
  496. <body>
  497. <xsl:call-template name="asisLayout"/>
  498. </body>
  499. </xsl:otherwise>
  500. </xsl:choose>
  501. </xsl:template>
  502. <!-- AS-IS Layout(기존레이아웃) -->
  503. <xsl:template name="asisLayout">
  504. <!-- body_wrap -->
  505. <div class="body_wrap">
  506. <!-- wrap -->
  507. <div class="wrap">
  508. <!-- title -->
  509. <xsl:call-template name="header-fix"/>
  510. <!-- /title -->
  511. <!-- container -->
  512. <!-- top content -->
  513. <div class="container fix">
  514. <div class="cntInfo">
  515. <!--수신자 정보-->
  516. <xsl:call-template name="informationRecipient_custom"/>
  517. <!--<xsl:call-template name="addComment"/>-->
  518. <!-- 환자 정보-->
  519. <xsl:call-template name="recordTarget_custom"/>
  520. <!-- 요양기관 정보 ( 생성기관 / 수신기관 ) -->
  521. <xsl:call-template name="organization_information"/>
  522. </div>
  523. <!-- /top content -->
  524. <!-- body -->
  525. <!-- content -->
  526. <div class="contents">
  527. <xsl:apply-templates select="n1:component/n1:structuredBody|n1:component/n1:nonXMLBody"/>
  528. </div>
  529. </div>
  530. <!-- /container -->
  531. </div>
  532. <!-- wrap -->
  533. </div>
  534. <!-- /body_wrap -->
  535. </xsl:template>
  536. <!-- ##################### AS-IS Header ##################### -->
  537. <!-- header - fix -->
  538. <xsl:template name="header-fix">
  539. <div class="header">
  540. <div class="fix">
  541. <h1>
  542. <xsl:value-of select="$title"/>
  543. </h1>
  544. <p class="date">
  545. 작성일
  546. <strong>
  547. <xsl:call-template name="getDate2">
  548. <xsl:with-param name="date" select="/n1:ClinicalDocument/n1:effectiveTime"/>
  549. </xsl:call-template>
  550. </strong>
  551. <br/>
  552. </p>
  553. </div>
  554. </div>
  555. </xsl:template>
  556. <!-- informantionRecipient-custom -->
  557. <xsl:template name="informationRecipient_custom">
  558. <xsl:if test="count(/n1:ClinicalDocument/n1:informationRecipient) &gt; 0">
  559. <div>
  560. <h3 class="cnt">
  561. <xsl:value-of select="/n1:ClinicalDocument/n1:informationRecipient/n1:intendedRecipient/n1:receivedOrganization/n1:asOrganizationPartOf/n1:wholeOrganization/n1:name"/>&#160;
  562. <span>
  563. <xsl:call-template name="show-name-kr">
  564. <xsl:with-param name="name" select="/n1:ClinicalDocument/n1:informationRecipient/n1:intendedRecipient/n1:informationRecipient/n1:name"/>
  565. </xsl:call-template> 선생님 귀하
  566. </span>
  567. <xsl:choose>
  568. <xsl:when test="/n1:ClinicalDocument/n1:code/@code = '57133-1'">
  569. <span style="float: right; font-size: 12px; font-style: normal;">
  570. 의뢰번호 : <xsl:value-of select="/n1:ClinicalDocument/n1:id/@extension"/>
  571. </span>
  572. </xsl:when>
  573. <xsl:when test="/n1:ClinicalDocument/n1:code/@code = '18761-7'">
  574. <span style="float: right; font-size: 12px; font-style: normal;">
  575. 회송번호 : <xsl:value-of select="/n1:ClinicalDocument/n1:id/@extension"/>
  576. </span>
  577. </xsl:when>
  578. <xsl:otherwise></xsl:otherwise>
  579. </xsl:choose>
  580. </h3>
  581. </div>
  582. </xsl:if>
  583. </xsl:template>
  584. <!-- recordTarget custom -->
  585. <xsl:template name="recordTarget_custom">
  586. <div>
  587. <ul class="patientInfo">
  588. <li class="name">
  589. <xsl:call-template name="show-name-kr">
  590. <xsl:with-param name="name" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:patient/n1:name"/>
  591. </xsl:call-template> / <xsl:call-template name="show-gender-kr">
  592. <xsl:with-param name="gender" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:patient/n1:administrativeGenderCode"/>
  593. </xsl:call-template>
  594. </li>
  595. <li class="birth">
  596. Birth. <xsl:call-template name="getDate">
  597. <xsl:with-param name="date" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:patient/n1:birthTime"/>
  598. </xsl:call-template>
  599. </li>
  600. <li class="tel">
  601. <!--Tel. <xsl:value-of select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:telecom/@value"/>-->
  602. <xsl:call-template name="show-telecom-kr">
  603. <xsl:with-param name="telecom" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:telecom"/>
  604. </xsl:call-template>
  605. </li>
  606. <br></br>
  607. <li class="addr" style="margin-left: 0px;">
  608. Addr.&#160;
  609. <xsl:call-template name="show-address-kr">
  610. <xsl:with-param name="address" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:addr"/>
  611. </xsl:call-template>
  612. </li>
  613. </ul>
  614. </div>
  615. </xsl:template>
  616. <!-- organization_information -->
  617. <xsl:template name="organization_information">
  618. <table class="contents_table">
  619. <colgroup>
  620. <col width="20%" />
  621. <col width="20%" />
  622. <col width="15%" />
  623. <col width="45%" />
  624. </colgroup>
  625. <tbody>
  626. <tr>
  627. <xsl:choose>
  628. <xsl:when test="/n1:ClinicalDocument/n1:code/@code = '57133-1'">
  629. <th>의뢰병원</th>
  630. </xsl:when>
  631. <xsl:when test="/n1:ClinicalDocument/n1:code/@code = '11488-4'">
  632. <th>회신병원</th>
  633. </xsl:when>
  634. <xsl:when test="/n1:ClinicalDocument/n1:code/@code = '18761-7'">
  635. <th>회송병원</th>
  636. </xsl:when>
  637. <xsl:otherwise>
  638. <th>요양기관</th>
  639. </xsl:otherwise>
  640. </xsl:choose>
  641. <td style="text-align:center">
  642. <xsl:value-of select="/n1:ClinicalDocument/n1:custodian/n1:assignedCustodian/n1:representedCustodianOrganization/n1:name"/>
  643. </td>
  644. <td style="text-align: center;">
  645. <xsl:call-template name="show-name-kr">
  646. <xsl:with-param name="name" select="/n1:ClinicalDocument/n1:author/n1:assignedAuthor/n1:assignedPerson/n1:name"/>
  647. </xsl:call-template>
  648. </td>
  649. <td>
  650. <xsl:call-template name="show-address-kr">
  651. <xsl:with-param name="address" select="/n1:ClinicalDocument/n1:custodian/n1:assignedCustodian/n1:representedCustodianOrganization/n1:addr"/>
  652. </xsl:call-template>
  653. </td>
  654. </tr>
  655. <xsl:if test="count(/n1:ClinicalDocument/n1:informationRecipient) &gt; 0">
  656. <tr>
  657. <th>협진병원</th>
  658. <td style="text-align:center">
  659. <xsl:value-of select="/n1:ClinicalDocument/n1:informationRecipient/n1:intendedRecipient/n1:receivedOrganization/n1:asOrganizationPartOf/n1:wholeOrganization/n1:name"/>
  660. </td>
  661. <td style="text-align: center;">
  662. <xsl:call-template name="show-name-kr">
  663. <xsl:with-param name="name" select="/n1:ClinicalDocument/n1:informationRecipient/n1:intendedRecipient/n1:informationRecipient/n1:name"/>
  664. </xsl:call-template>
  665. </td>
  666. <td>
  667. <xsl:call-template name="show-address-kr">
  668. <xsl:with-param name="address" select="/n1:ClinicalDocument/n1:informationRecipient/n1:intendedRecipient/n1:receivedOrganization/n1:asOrganizationPartOf/n1:wholeOrganization/n1:addr"/>
  669. </xsl:call-template>
  670. </td>
  671. </tr>
  672. </xsl:if>
  673. </tbody>
  674. </table>
  675. </xsl:template>
  676. <!-- ##################### AS-IS Header ##################### -->
  677. <!-- ########################################################### -->
  678. <!-- ##################### Narrative Block ##################### -->
  679. <!-- ########################################################### -->
  680. <!-- show StructuredBody -->
  681. <xsl:template match="n1:component/n1:structuredBody">
  682. <xsl:for-each select="n1:component/n1:section">
  683. <xsl:call-template name="section"/>
  684. </xsl:for-each>
  685. </xsl:template>
  686. <!-- Section -->
  687. <xsl:template name="section">
  688. <div class="main_content">
  689. <h2 class="content_title1 cnt">
  690. <xsl:call-template name="section-title">
  691. <xsl:with-param name="title" select="n1:title"/>
  692. </xsl:call-template>
  693. <span class="expender" onclick="javascript: Expend(this);">
  694. <img src="data:image/gif;base64,R0lGODlhDQAIAIABAGZmZv///yH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4zLWMwMTEgNjYuMTQ1NjYxLCAyMDEyLzAyLzA2LTE0OjU2OjI3ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M2IChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCQjRBQUMxQzM3NTUxMUU2OTcxNUQ5MkMyMDQwMjgxMSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCQjRBQUMxRDM3NTUxMUU2OTcxNUQ5MkMyMDQwMjgxMSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkJCNEFBQzFBMzc1NTExRTY5NzE1RDkyQzIwNDAyODExIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkJCNEFBQzFCMzc1NTExRTY5NzE1RDkyQzIwNDAyODExIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+Af/+/fz7+vn49/b19PPy8fDv7u3s6+rp6Ofm5eTj4uHg397d3Nva2djX1tXU09LR0M/OzczLysnIx8bFxMPCwcC/vr28u7q5uLe2tbSzsrGwr66trKuqqainpqWko6KhoJ+enZybmpmYl5aVlJOSkZCPjo2Mi4qJiIeGhYSDgoGAf359fHt6eXh3dnV0c3JxcG9ubWxramloZ2ZlZGNiYWBfXl1cW1pZWFdWVVRTUlFQT05NTEtKSUhHRkVEQ0JBQD8+PTw7Ojk4NzY1NDMyMTAvLi0sKyopKCcmJSQjIiEgHx4dHBsaGRgXFhUUExIREA8ODQwLCgkIBwYFBAMCAQAAIfkEAQAAAQAsAAAAAA0ACAAAAhIEgpnGuhaakhEieiF+e1o3gQUAOw==" alt="" />
  695. </span>
  696. </h2>
  697. <xsl:call-template name="section-text"/>
  698. <xsl:for-each select="n1:component/n1:section">
  699. <xsl:call-template name="nestedSection">
  700. <xsl:with-param name="margin" select="2"/>
  701. </xsl:call-template>
  702. </xsl:for-each>
  703. </div>
  704. </xsl:template>
  705. <!-- section title-->
  706. <xsl:template name="section-title">
  707. <xsl:param name="title"/>
  708. <xsl:value-of select="$title"/>
  709. </xsl:template>
  710. <!-- section title-link-->
  711. <xsl:template name="section-title-Link">
  712. <xsl:param name="title"/>
  713. <xsl:choose>
  714. <xsl:when test="count(/n1:ClinicalDocument/n1:component/n1:structuredBody/n1:component[n1:section]) &gt; 1">
  715. <a name="{generate-id($title)}" href="#toc" style="color:#222;">
  716. <xsl:value-of select="$title"/>
  717. </a>
  718. </xsl:when>
  719. <xsl:otherwise>
  720. <xsl:value-of select="$title"/>
  721. </xsl:otherwise>
  722. </xsl:choose>
  723. </xsl:template>
  724. <!-- section author -->
  725. <!-- top-level section Text -->
  726. <xsl:template name="section-text">
  727. <div>
  728. <xsl:apply-templates select="n1:text"/>
  729. </div>
  730. <!--<div class ="main_content">
  731. <div>
  732. <xsl:apply-templates select="n1:text"/>
  733. </div>
  734. </div>-->
  735. </xsl:template>
  736. <!-- nested component/section -->
  737. <xsl:template name="nestedSection">
  738. <xsl:param name="margin"/>
  739. <h4 style="margin-left : {$margin}em;">
  740. <xsl:value-of select="n1:title"/>
  741. </h4>
  742. <div style="margin-left : {$margin}em;">
  743. <xsl:apply-templates select="n1:text"/>
  744. </div>
  745. <xsl:for-each select="n1:component/n1:section">
  746. <xsl:call-template name="nestedSection">
  747. <xsl:with-param name="margin" select="2*$margin"/>
  748. </xsl:call-template>
  749. </xsl:for-each>
  750. </xsl:template>
  751. <!-- paragraph -->
  752. <xsl:template match="n1:paragraph">
  753. <p>
  754. <xsl:apply-templates/>
  755. </p>
  756. </xsl:template>
  757. <!-- pre format -->
  758. <xsl:template match="n1:pre">
  759. <pre>
  760. <xsl:apply-templates/>
  761. </pre>
  762. </xsl:template>
  763. <!-- Content w/ deleted text is hidden -->
  764. <xsl:template match="n1:content[@revised='delete']"/>
  765. <!-- content -->
  766. <xsl:template match="n1:content">
  767. <span>
  768. <xsl:apply-templates select="@styleCode"/>
  769. <xsl:apply-templates/>
  770. </span>
  771. </xsl:template>
  772. <!-- line break -->
  773. <xsl:template match="n1:br">
  774. <xsl:element name='br'>
  775. <xsl:apply-templates/>
  776. </xsl:element>
  777. </xsl:template>
  778. <!-- list -->
  779. <xsl:template match="n1:list">
  780. <xsl:if test="n1:caption">
  781. <p>
  782. <strong>
  783. <xsl:apply-templates select="n1:caption"/>
  784. </strong>
  785. </p>
  786. </xsl:if>
  787. <ul>
  788. <xsl:for-each select="n1:item">
  789. <li>
  790. <xsl:apply-templates/>
  791. </li>
  792. </xsl:for-each>
  793. </ul>
  794. </xsl:template>
  795. <xsl:template match="n1:list[@listType='ordered']">
  796. <xsl:if test="n1:caption">
  797. <span style="font-weight:bold; ">
  798. <xsl:apply-templates select="n1:caption"/>
  799. </span>
  800. </xsl:if>
  801. <ol>
  802. <xsl:for-each select="n1:item">
  803. <li>
  804. <xsl:apply-templates/>
  805. </li>
  806. </xsl:for-each>
  807. </ol>
  808. </xsl:template>
  809. <!-- caption -->
  810. <xsl:template match="n1:caption">
  811. <xsl:apply-templates/>
  812. <xsl:text>: </xsl:text>
  813. </xsl:template>
  814. <!-- Tables -->
  815. <xsl:variable name="table-elem-attrs">
  816. <in:tableElems>
  817. <in:elem name="table">
  818. <in:attr name="ID"/>
  819. <in:attr name="language"/>
  820. <in:attr name="styleCode"/>
  821. <in:attr name="summary"/>
  822. <in:attr name="width"/>
  823. <in:attr name="border"/>
  824. <in:attr name="frame"/>
  825. <in:attr name="rules"/>
  826. <in:attr name="cellspacing"/>
  827. <in:attr name="cellpadding"/>
  828. </in:elem>
  829. <in:elem name="thead">
  830. <in:attr name="ID"/>
  831. <in:attr name="language"/>
  832. <in:attr name="styleCode"/>
  833. <in:attr name="align"/>
  834. <in:attr name="char"/>
  835. <in:attr name="charoff"/>
  836. <in:attr name="valign"/>
  837. </in:elem>
  838. <in:elem name="tfoot">
  839. <in:attr name="ID"/>
  840. <in:attr name="language"/>
  841. <in:attr name="styleCode"/>
  842. <in:attr name="align"/>
  843. <in:attr name="char"/>
  844. <in:attr name="charoff"/>
  845. <in:attr name="valign"/>
  846. </in:elem>
  847. <in:elem name="tbody">
  848. <in:attr name="ID"/>
  849. <in:attr name="language"/>
  850. <in:attr name="styleCode"/>
  851. <in:attr name="align"/>
  852. <in:attr name="char"/>
  853. <in:attr name="charoff"/>
  854. <in:attr name="valign"/>
  855. </in:elem>
  856. <in:elem name="colgroup">
  857. <in:attr name="ID"/>
  858. <in:attr name="language"/>
  859. <in:attr name="styleCode"/>
  860. <in:attr name="span"/>
  861. <in:attr name="width"/>
  862. <in:attr name="align"/>
  863. <in:attr name="char"/>
  864. <in:attr name="charoff"/>
  865. <in:attr name="valign"/>
  866. </in:elem>
  867. <in:elem name="col">
  868. <in:attr name="ID"/>
  869. <in:attr name="language"/>
  870. <in:attr name="styleCode"/>
  871. <in:attr name="span"/>
  872. <in:attr name="width"/>
  873. <in:attr name="align"/>
  874. <in:attr name="char"/>
  875. <in:attr name="charoff"/>
  876. <in:attr name="valign"/>
  877. </in:elem>
  878. <in:elem name="tr">
  879. <in:attr name="ID"/>
  880. <in:attr name="language"/>
  881. <in:attr name="styleCode"/>
  882. <in:attr name="align"/>
  883. <in:attr name="char"/>
  884. <in:attr name="charoff"/>
  885. <in:attr name="valign"/>
  886. </in:elem>
  887. <in:elem name="th">
  888. <in:attr name="ID"/>
  889. <in:attr name="language"/>
  890. <in:attr name="styleCode"/>
  891. <in:attr name="abbr"/>
  892. <in:attr name="axis"/>
  893. <in:attr name="headers"/>
  894. <in:attr name="scope"/>
  895. <in:attr name="rowspan"/>
  896. <in:attr name="colspan"/>
  897. <in:attr name="align"/>
  898. <in:attr name="char"/>
  899. <in:attr name="charoff"/>
  900. <in:attr name="valign"/>
  901. </in:elem>
  902. <in:elem name="td">
  903. <in:attr name="ID"/>
  904. <in:attr name="language"/>
  905. <in:attr name="styleCode"/>
  906. <in:attr name="abbr"/>
  907. <in:attr name="axis"/>
  908. <in:attr name="headers"/>
  909. <in:attr name="scope"/>
  910. <in:attr name="rowspan"/>
  911. <in:attr name="colspan"/>
  912. <in:attr name="align"/>
  913. <in:attr name="char"/>
  914. <in:attr name="charoff"/>
  915. <in:attr name="valign"/>
  916. </in:elem>
  917. </in:tableElems>
  918. </xsl:variable>
  919. <xsl:template name="output-attrs">
  920. <xsl:variable name="elem-name" select="local-name(.)"/>
  921. <xsl:for-each select="@*">
  922. <xsl:variable name="attr-name" select="local-name(.)"/>
  923. <xsl:variable name="source" select="."/>
  924. <xsl:variable name="lcSource" select="translate($source, $uc, $lc)"/>
  925. <xsl:variable name="scrubbedSource" select="translate($source, $simple-sanitizer-match, $simple-sanitizer-replace)"/>
  926. <xsl:choose>
  927. <xsl:when test="contains($lcSource,'javascript')">
  928. <p>
  929. <xsl:value-of select="$javascript-injection-warning"/>
  930. </p>
  931. <xsl:message terminate="yes">
  932. <xsl:value-of select="$javascript-injection-warning"/>
  933. </xsl:message>
  934. </xsl:when>
  935. <xsl:when test="$attr-name='styleCode'">
  936. <xsl:apply-templates select="."/>
  937. </xsl:when>
  938. <!--<xsl:when test="not(document('')/xsl:stylesheet/xsl:variable[@name='table-elem-attrs']/in:tableElems/in:elem[@name=$elem-name]/in:attr[@name=$attr-name])">
  939. <xsl:message>
  940. <xsl:value-of select="$attr-name"/> is not legal in <xsl:value-of select="$elem-name"/>
  941. </xsl:message>
  942. </xsl:when>-->
  943. <xsl:when test="not($source = $scrubbedSource)">
  944. <p>
  945. <xsl:value-of select="$malicious-content-warning"/>
  946. </p>
  947. <xsl:message>
  948. <xsl:value-of select="$malicious-content-warning"/>
  949. </xsl:message>
  950. </xsl:when>
  951. <xsl:otherwise>
  952. <xsl:copy-of select="."/>
  953. </xsl:otherwise>
  954. </xsl:choose>
  955. </xsl:for-each>
  956. </xsl:template>
  957. <!-- 16. 06 .22 추가-->
  958. <xsl:template match="n1:table">
  959. <xsl:element name="{local-name()}">
  960. <xsl:attribute name="class">contents_table1</xsl:attribute>
  961. <xsl:call-template name="output-attrs"/>
  962. <xsl:apply-templates/>
  963. </xsl:element>
  964. </xsl:template>
  965. <xsl:template match="n1:thead | n1:tfoot | n1:tbody | n1:colgroup | n1:col | n1:tr | n1:th | n1:td">
  966. <xsl:element name="{local-name()}">
  967. <xsl:call-template name="output-attrs"/>
  968. <xsl:apply-templates/>
  969. </xsl:element>
  970. </xsl:template>
  971. <xsl:template match="n1:table/n1:caption">
  972. <span style="font-weight:bold; ">
  973. <xsl:apply-templates/>
  974. </span>
  975. </xsl:template>
  976. <!-- RenderMultiMedia -->
  977. <!-- Stylecode -->
  978. <xsl:template match="//n1:*[@styleCode]">
  979. <xsl:if test="@styleCode='Bold'">
  980. <b>
  981. <xsl:apply-templates/>
  982. </b>
  983. </xsl:if>
  984. <xsl:if test="@styleCode='Italics'">
  985. <xsl:element name="i">
  986. <xsl:apply-templates/>
  987. </xsl:element>
  988. </xsl:if>
  989. <xsl:if test="@styleCode='Underline'">
  990. <xsl:element name="u">
  991. <xsl:apply-templates/>
  992. </xsl:element>
  993. </xsl:if>
  994. <xsl:if test="contains(@styleCode,'Bold') and contains(@styleCode,'Italics') and not (contains(@styleCode, 'Underline'))">
  995. <xsl:element name="b">
  996. <xsl:element name="i">
  997. <xsl:apply-templates/>
  998. </xsl:element>
  999. </xsl:element>
  1000. </xsl:if>
  1001. <xsl:if test="contains(@styleCode,'Bold') and contains(@styleCode,'Underline') and not (contains(@styleCode, 'Italics'))">
  1002. <xsl:element name="b">
  1003. <xsl:element name="u">
  1004. <xsl:apply-templates/>
  1005. </xsl:element>
  1006. </xsl:element>
  1007. </xsl:if>
  1008. <xsl:if test="contains(@styleCode,'Italics') and contains(@styleCode,'Underline') and not (contains(@styleCode, 'Bold'))">
  1009. <xsl:element name="i">
  1010. <xsl:element name="u">
  1011. <xsl:apply-templates/>
  1012. </xsl:element>
  1013. </xsl:element>
  1014. </xsl:if>
  1015. <xsl:if test="contains(@styleCode,'Italics') and contains(@styleCode,'Underline') and contains(@styleCode, 'Bold')">
  1016. <xsl:element name="b">
  1017. <xsl:element name="i">
  1018. <xsl:element name="u">
  1019. <xsl:apply-templates/>
  1020. </xsl:element>
  1021. </xsl:element>
  1022. </xsl:element>
  1023. </xsl:if>
  1024. <xsl:if test="not (contains(@styleCode,'Italics') or contains(@styleCode,'Underline') or contains(@styleCode, 'Bold'))">
  1025. <xsl:apply-templates/>
  1026. </xsl:if>
  1027. </xsl:template>
  1028. <!-- Superscript or Subscript -->
  1029. <xsl:template match="n1:sup">
  1030. <xsl:element name="sup">
  1031. <xsl:apply-templates/>
  1032. </xsl:element>
  1033. </xsl:template>
  1034. <xsl:template match="n1:sub">
  1035. <xsl:element name="sub">
  1036. <xsl:apply-templates/>
  1037. </xsl:element>
  1038. </xsl:template>
  1039. <!-- linkHtml -->
  1040. <xsl:template match="n1:linkHtml">
  1041. <xsl:choose>
  1042. <!-- 06.28 PACS ICON 관련 부분 추가-->
  1043. <xsl:when test="contains(./@ID, 'PACS')">
  1044. <xsl:call-template name="addPacsIcon">
  1045. <xsl:with-param name="href" select="./@href"/>
  1046. </xsl:call-template>
  1047. </xsl:when>
  1048. <xsl:otherwise>
  1049. <xsl:variable name="linkTargetContainsJavaScript">
  1050. <xsl:call-template name="containsJavaScript">
  1051. <xsl:with-param name="reference" select="./@href"></xsl:with-param>
  1052. </xsl:call-template>
  1053. </xsl:variable>
  1054. <xsl:if test="$linkTargetContainsJavaScript != 'true'">
  1055. <xsl:if test="string-length(./@href) &gt; 0 or string-length(./text()) &gt; 0">
  1056. <xsl:variable name="linkText">
  1057. <xsl:choose>
  1058. <xsl:when test="string-length(./text()) &gt; 0">
  1059. <xsl:value-of select="./text()"/>
  1060. </xsl:when>
  1061. <xsl:otherwise>
  1062. <xsl:value-of select="concat('link:',./@href)"/>
  1063. </xsl:otherwise>
  1064. </xsl:choose>
  1065. </xsl:variable>
  1066. <xsl:variable name="linkTarget">
  1067. <xsl:choose>
  1068. <xsl:when test="string-length(./@href) &gt; 1 and starts-with(./@href, '#')">
  1069. <xsl:variable name="referenceId" select="substring-after(./@href, '#')"/>
  1070. <xsl:variable name="attachmentReference">
  1071. <xsl:choose>
  1072. <xsl:when test="//n1:observationMedia/@ID=$referenceId">true</xsl:when>
  1073. <xsl:otherwise>false</xsl:otherwise>
  1074. </xsl:choose>
  1075. </xsl:variable>
  1076. <xsl:choose>
  1077. <xsl:when test="$attachmentReference='true'">
  1078. <xsl:if test="//n1:observationMedia/@ID=$referenceId">
  1079. <xsl:value-of select="//n1:observationMedia[@ID=$referenceId]/n1:value/n1:reference/@value"/>
  1080. </xsl:if>
  1081. </xsl:when>
  1082. <xsl:otherwise>
  1083. <xsl:value-of select="concat('#', $referenceId)"/>
  1084. </xsl:otherwise>
  1085. </xsl:choose>
  1086. </xsl:when>
  1087. <xsl:when test="not(starts-with(./@href, '#')) and string-length(./@href) &gt; 0">
  1088. <xsl:value-of select="./@href"/>
  1089. </xsl:when>
  1090. </xsl:choose>
  1091. </xsl:variable>
  1092. <xsl:choose>
  1093. <xsl:when test="string-length($linkTarget)=0">
  1094. <xsl:element name="a">
  1095. <xsl:value-of select="$linkText"/>
  1096. </xsl:element>
  1097. </xsl:when>
  1098. <xsl:otherwise>
  1099. <xsl:element name="a">
  1100. <xsl:attribute name="href">
  1101. <xsl:value-of select="$linkTarget"/>
  1102. </xsl:attribute>
  1103. <xsl:value-of select="$linkText"/>
  1104. </xsl:element>
  1105. </xsl:otherwise>
  1106. </xsl:choose>
  1107. </xsl:if>
  1108. </xsl:if>
  1109. </xsl:otherwise>
  1110. </xsl:choose>
  1111. </xsl:template>
  1112. <xsl:template name="containsJavaScript">
  1113. <xsl:param name="reference"/>
  1114. <xsl:variable name="upperCaseReference">
  1115. <xsl:call-template name="caseUp">
  1116. <xsl:with-param name="data" select="$reference"/>
  1117. </xsl:call-template>
  1118. </xsl:variable>
  1119. <xsl:choose>
  1120. <xsl:when test="contains($upperCaseReference, 'JAVASCRIPT') or contains($upperCaseReference, 'JSCRIPT')">true</xsl:when>
  1121. <xsl:otherwise>false</xsl:otherwise>
  1122. </xsl:choose>
  1123. </xsl:template>
  1124. <!-- PACS ICON-->
  1125. <xsl:template name="addPacsIcon">
  1126. <xsl:param name="href"/>
  1127. <xsl:element name="a">
  1128. <xsl:attribute name="onclick">javascript: popupViewNew('<xsl:value-of select="./@href"/>', '<xsl:value-of select="./@rev"/>', '<xsl:value-of select="$organizationOid"/>'); return false;</xsl:attribute>
  1129. <xsl:element name="img">
  1130. <xsl:attribute name="width">50</xsl:attribute>
  1131. <xsl:attribute name="height">20</xsl:attribute>
  1132. <xsl:attribute name="class">main_section_button</xsl:attribute>
  1133. <xsl:attribute name="src">data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAAUCAYAAADcHS5uAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABGFJREFUeNrcV9srvGsUXjPGmd84bqfIhXM5JsSFK8QmaeeCKxHu9l/AlXLhVtnlQm7cUC6IKJKcDzkTyvkwjkVjnI39Pqver+H3zZ6pfTNZ9TXfe/zWs9aznvcdzefnJ6Wlpf3h6uo6bzabfegHmVarNb28vKSK1ysdOjQajaG0tFTr5ub2k3DS6+urvqen5+Tj4yNQJ7JZFBISYvTx8dHTDzMkLjw8/OXw8PBPZNTdyclJI1A7lJNbW1u0vr5OFxcXSp+npyfFxcWh1MjDw8OufQQ2LTAydVGnjgIUvqyurjKohoYGBibt7u6OhoeHaXp6mrKyssjd3d2u/WAK0Pf3d4cAenZ2RsHBwVRXV8d+7e/v0/39PQmxpLCwMCovL6eoqCjq7e2l1NRUm/sJgbUNtKCggJKTk5X23NwcjY+PK22MYU57eztH29pajPX19TENMzMzKTc3l/vR7u7upufnZ2Xd29sb1dbW0u3tLW1sbNDV1ZWSlb29PYqPj6ekpCQ6Pj7m9b6+vv8/o4jG2NgYzczMcJQrKys5wgcHBzweExPDIKKjo3mOtLKyMnagra2NxxF5IQrk7e3N4GV/YWEhBQYGKvvBUlJS+HdtbY0MBsMXf5BZ0NrZ2ZmD1dXVZZOJdgFFP8Bi7PT0lM7Pz9lZtIVS8zMyMkI5OTk0MTHBaxISEjgora2tyj4LCwv8CxHBHjc3N9zu7+//7ZuoSaGSdHl5qeqT0Wik7e1tZoafnx8zwB7qamUDC74/6IdI4T0iIoKBnZyccBsOgVqgM2Qc4+gPCgrifrX9dnd3eY+ioiLVcTwuLi6cOdDS2hzQWZyRXLfW5lhiUIDKjH5/MCk/P5+ampqoqqqKhoaGuDYwlp6ezjTC+/z8PGdSrpEs+P5cX19zpjGOPcEEtTleXl6cdbU9QGcosjwl1OZYPr9RV40CcGhgYIDr1NJQZ5D2mpoape/p6Ymp+PDwwNKvRkspNhAgjNfX1/P82dlZZfzo6IjFBplfXFzk+gdj4AsUWVzpOKgoJQTFXuraFCOZHUtLTEyk0dHRL2AaGxspIyODpqamGCiOh87OTnp8fKTs7OwvZx7WotbwXdDPcn8ACA0NpeLiYtxVOciSggBYUVHBwHGZQO2jD/PsEiM1MN/FSBpuJFDGlpaWL/2Tk5OsrjjQQU841NzczGOge0dHB79XV1dTSUkJv+/s7LCIWe4DNV5aWuJvoGwQJBw1oGtAQICiGcg6ggI9QNatgZUZ1Qjn/tLr9R2xsbG/HOkKiDqNjIwkf39/0ul07DBYADVGxkFt2ODgIG1ubjJYNRNnr0kE6m+HuxlZZnZlZYWpDSVGJlEGMAgSMo5jLC8vT1FYu85RR7vUSwM4CVCayWRioYIoIrOgOG5etoDei2yaHRXofwVgeXmZgYDm1vwX2DDwoMFEcSYaBA2CITTiT/iP+C8KXAiGoLlRvP+Sqpssivwf0ZEr6fwDzCySNiEw1aLxrwADAGsuee+PNkkCAAAAAElFTkSuQmCC</xsl:attribute>
  1134. </xsl:element>
  1135. </xsl:element>
  1136. </xsl:template>
  1137. <!-- BPPC Body-->
  1138. <xsl:template name="BPPC">
  1139. <body>
  1140. <!-- body_wrap -->
  1141. <div class="body_wrap">
  1142. <!-- wrap -->
  1143. <div class="wrap">
  1144. <div class="header">
  1145. <h1>
  1146. <xsl:value-of select="/n1:ClinicalDocument/n1:title"/>
  1147. </h1>
  1148. </div>
  1149. <div class="contents">
  1150. <h2>
  1151. 본인은 원활한 진료서비스 제공을 위하여 의료기관에서 작성한 본인의 개인정보 및 의무기록 등 진료정보를 타 의료기관 내원 진료 시 활용(이하 “진료정보교류서비스”라 한다)하고,
  1152. 진료정보교류서비스 평가 및 분석 자료로 활용될 수 있다는 사실에 대해 충분한 설명을 듣고 이해하였으며, 이에 아래와 같이 동의합니다.<br/>
  1153. ※ 동의서 보관방법 : 서면으로 제출한 본 동의서는 개별 의료기관에서 보관하지 않고, 전자적으로 변환하여 진료정보교류시스템(보건복지부)에서 보관합니다.
  1154. </h2>
  1155. <table class="info_agree" border="0" cellpadding="0" cellspacing="0">
  1156. <colgroup>
  1157. <col width="20%" />
  1158. <col width="20%" />
  1159. <col width="20%" />
  1160. <col width="20%" />
  1161. <col width="20%" />
  1162. </colgroup>
  1163. <tr>
  1164. <th rowspan="3">동의주체</th>
  1165. <th style="text-align: left;">성 명</th>
  1166. <td>
  1167. <xsl:call-template name="show-name-kr">
  1168. <xsl:with-param name="name" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:patient/n1:name"/>
  1169. </xsl:call-template>
  1170. </td>
  1171. <th style="text-align: left;">전화번호</th>
  1172. <td>
  1173. <xsl:call-template name="show-telecom-kr">
  1174. <xsl:with-param name="telecom" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:telecom"/>
  1175. </xsl:call-template>
  1176. </td>
  1177. </tr>
  1178. <tr>
  1179. <th style="text-align: left;">생년월일(주민등록번호)</th>
  1180. <td colspan="4">
  1181. <xsl:call-template name="getDate">
  1182. <xsl:with-param name="date" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:patient/n1:birthTime"/>
  1183. </xsl:call-template>
  1184. </td>
  1185. </tr>
  1186. <tr>
  1187. <th style="text-align: left;">주 소</th>
  1188. <td colspan="4">
  1189. <xsl:call-template name="show-address-kr">
  1190. <xsl:with-param name="address" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:addr"/>
  1191. </xsl:call-template>
  1192. </td>
  1193. </tr>
  1194. </table>
  1195. <table class="info_agree" border="0" cellpadding="0" cellspacing="0">
  1196. <colgroup>
  1197. <col width="20%" />
  1198. <col width="20%" />
  1199. <col width="60%" />
  1200. </colgroup>
  1201. <caption>개인정보 제공 동의서 양식</caption>
  1202. <tr>
  1203. <th rowspan="3" width="17%">제공하는 정보 항목</th>
  1204. <th style="text-align: left;">[1] 개인정보</th>
  1205. <td>성명, 연락처(법정대리인의 성명, 연락처),주소</td>
  1206. </tr>
  1207. <tr>
  1208. <th style="text-align: left;">[2] 고유식별정보</th>
  1209. <td>주민등록번호, 외국인등록번호 </td>
  1210. </tr>
  1211. <tr>
  1212. <th style="text-align: left;">
  1213. [3] 민감정보
  1214. <br />(진료정보)
  1215. </th>
  1216. <td>
  1217. ① 수진일별 처방 내용(약 처방, 검사 내역)<br />
  1218. ② 진단내용<br />
  1219. ③ 수술을 시행하는 경우 수술에 관한 내용(수술일, 수술명 등 진료기록지 등에 기재되는 일체의 수술정보)<br />
  1220. ④ 외래접수 정보(진료과, 진료의·주치의)<br />
  1221. ⑤ 입퇴원정보(입원일, 퇴원일 등 일체의 입퇴원 정보)<br />
  1222. ⑥ 예약정보(일시, 내용 등 일체의 예약정보)<br />
  1223. ⑦ 예방접종 내역 ⑧ 알레르기 및 부작용 정보<br />
  1224. ⑨ 생체신호 정보 및 흡연, 음주상태<br />
  1225. ⑩ 신고된 법정 전염성 감염병 정보<br />
  1226. ⑪ 환자상태 및 회송사유<br/>
  1227. </td>
  1228. </tr>
  1229. <tr>
  1230. <th>제공·이용의 목적</th>
  1231. <td colspan="2">
  1232. ① 진료정보교류시스템을 활용한 의료인간 진료정보 전달로 진료서비스의 원활한 제공<br />
  1233. ② 경제적·의학적 편익분석을 위하여 행해지는 진료정보교류서비스에 대한 평가·분석<br />
  1234. </td>
  1235. </tr>
  1236. <tr>
  1237. <th>제공받는 자</th>
  1238. <td colspan="2">
  1239. ① 본인이 내원하여 진료서비스를 제공받는 의료기관<br/>
  1240. (다만, 진료정보교류시스템을 사용하는 의료기관에 한정)<br/>
  1241. ② 보건복지부 (동의서관리, 진료정보교류서비스 평가자료로 한정)
  1242. </td>
  1243. </tr>
  1244. <tr>
  1245. <th>보유 및 이용기간</th>
  1246. <td colspan="2">
  1247. ① 본 동의서의 유효기간은 “진료정보교류에 관한 개인정보 제공동의(전체) 철회서” 제출 전까지입니다.<br />
  1248. ② 본인(법정대리인)이 진료정보교류에 관한 개인정보 제공동의를 철회하는 경우 개인정보보호법제36조 및 제37조에 의하여 즉시 삭제 및 처리를 정지합니다.<br />
  1249. ③ 다만 위 제①,②항에도 불구하고 법령에 의하여 의무적으로 보존이 필요한 기간 동안에는 해당 정보가 보유됩니다.<br />
  1250. </td>
  1251. </tr>
  1252. <tr>
  1253. <th>
  1254. 동의 거부 권리 및<br/>동의 거부 따른 불이익 또는 제한사항
  1255. </th>
  1256. <td colspan="2">
  1257. ① 귀하는 개인정보 제공 동의를 거부할 권리가 있습니다.<br />
  1258. ② 동의를 거부할 경우 별도의 불이익은 없으며, 다만 진료정보교류시스템을 활용하지 못함으로써 진료를 의뢰하는 경우
  1259. 진료접수 대기시간이 소요될 수 있으며 별도의 의무기록송부절차가 필요함을 알려드립니다.<br />
  1260. </td>
  1261. </tr>
  1262. <tr></tr>
  1263. <tr>
  1264. <th>동의 제외사항</th>
  1265. <th width="17%">진료과</th>
  1266. <td>
  1267. <xsl:for-each select="/n1:ClinicalDocument/n1:component/n1:structuredBody/n1:component/n1:section[n1:templateId/@root='2.16.840.1.113883.3.445.17']/n1:text/n1:table[2]/n1:tbody/n1:tr[7]/n1:td/n1:paragraph">
  1268. <xsl:variable name="position" select="position()"/>
  1269. <xsl:value-of select="/n1:ClinicalDocument/n1:component/n1:structuredBody/n1:component/n1:section[n1:templateId/@root='2.16.840.1.113883.3.445.17']/n1:text/n1:table[2]/n1:tbody/n1:tr[7]/n1:td/n1:paragraph[$position]"/>
  1270. <xsl:text>&#160;</xsl:text>
  1271. </xsl:for-each>
  1272. </td>
  1273. </tr>
  1274. </table>
  1275. </div>
  1276. <div class="agreement">
  1277. <xsl:call-template name="chooseConsentMethodType"/>
  1278. <div class="">
  1279. <strong>본인(법정대리인)은 [1]개인정보의 제공·이용에 동의합니다. (필수)</strong>
  1280. <p>
  1281. <input type="radio" name="agree1" value="yes1" id="yes1" checked="checked"/>
  1282. <label for="yes1">예</label>
  1283. <input type="radio" name="agree1" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1284. <label for="no1">아니오</label>
  1285. </p>
  1286. </div>
  1287. <div class="">
  1288. <strong>본인(법정대리인)은 [2]고유식별정보(주민등록번호)의 제공·이용에 동의합니다. (필수)</strong>
  1289. <p>
  1290. <input type="radio" name="agree2" value="yes2" id="yes2" checked="checked"/>
  1291. <label for="yes2">예</label>
  1292. <input type="radio" name="agree2" value="no2" id="no2" disabled="true" style="pointer-events: none;"/>
  1293. <label for="no2">아니오</label>
  1294. </p>
  1295. </div>
  1296. <div class="">
  1297. <strong>본인(법정대리인)은 [3]민감(진료)정보의 제공·이용에 동의합니다. (필수)</strong>
  1298. <p>
  1299. <input type="radio" name="agree3" value="yes3" id="yes3" checked="checked"/>
  1300. <label for="yes3">예</label>
  1301. <input type="radio" name="agree3" value="no3" id="no3" disabled="true" style="pointer-events: none;"/>
  1302. <label for="no3">아니오</label>
  1303. </p>
  1304. </div>
  1305. </div>
  1306. <div class="contents1 fix">
  1307. <table class="chk_agree" border="0" cellpadding="0" cellspacing="0">
  1308. <colgroup>
  1309. <col width=""/>
  1310. <col width=""/>
  1311. </colgroup>
  1312. <tr>
  1313. <td>작성일자</td>
  1314. <td>
  1315. : 20
  1316. <input type="text" class="date_year" value="{substring(/n1:ClinicalDocument/n1:effectiveTime/@value,3,2)}" readonly="readonly"/> 년
  1317. <input type="text" class="date_mon" value="{substring(/n1:ClinicalDocument/n1:effectiveTime/@value,5,2)}" readonly="readonly"/> 월
  1318. <input type="text" class="date_day" value="{substring(/n1:ClinicalDocument/n1:effectiveTime/@value,7,2)}" readonly="readonly"/> 일
  1319. </td>
  1320. </tr>
  1321. <tr>
  1322. <td>환자(대리인 또는 보호자) 이름</td>
  1323. <td>
  1324. : <input type="text" class="comm_input" value="{substring-after(/n1:ClinicalDocument/n1:component/n1:structuredBody/n1:component/n1:section[n1:templateId/@root='2.16.840.1.113883.3.445.17']/n1:text/n1:paragraph[@ID='personname'], ': ')}" readonly="readonly" />
  1325. </td>
  1326. <td></td>
  1327. </tr>
  1328. <tr>
  1329. <td>환자와의관계</td>
  1330. <td>
  1331. : <input type="text" class="comm_input" value="{substring-after(/n1:ClinicalDocument/n1:component/n1:structuredBody/n1:component/n1:section[n1:templateId/@root='2.16.840.1.113883.3.445.17']/n1:text/n1:paragraph[@ID='relationship'], ': ')}" readonly="readonly"/>
  1332. </td>
  1333. <td></td>
  1334. </tr>
  1335. <tr>
  1336. <td>신청인(법정대리인) 연락처</td>
  1337. <td >
  1338. : <input type="text" class="comm_input" value="{substring-after(/n1:ClinicalDocument/n1:component/n1:structuredBody/n1:component/n1:section[n1:templateId/@root='2.16.840.1.113883.3.445.17']/n1:text/n1:paragraph[@ID='persontelecom'], ': ')}" readonly="readonly"/>
  1339. </td>
  1340. <td></td>
  1341. </tr>
  1342. </table>
  1343. <div class="sign">
  1344. 서명 :
  1345. <br/>
  1346. <xsl:if test="/n1:ClinicalDocument/n1:component/n1:structuredBody/n1:component/n1:section/n1:entry/n1:observationMedia/n1:entryRelationship/n1:observation[n1:templateId/@root='2.16.840.1.113883.3.445.19']/n1:value !=''">
  1347. <xsl:call-template name="show-signature">
  1348. <xsl:with-param name="signature" select="/n1:ClinicalDocument/n1:component/n1:structuredBody/n1:component/n1:section/n1:entry/n1:observationMedia/n1:entryRelationship/n1:observation[n1:templateId/@root='2.16.840.1.113883.3.445.19']/n1:value"/>
  1349. </xsl:call-template>
  1350. </xsl:if>
  1351. </div>
  1352. </div>
  1353. </div>
  1354. <!-- /wrap -->
  1355. </div>
  1356. <!-- /body_wrap -->
  1357. </body>
  1358. </xsl:template>
  1359. <!-- WITHDRAWAL Body-->
  1360. <xsl:template name="WITHDRAWAL">
  1361. <body>
  1362. <!-- body_wrap -->
  1363. <div class="body_wrap">
  1364. <!-- wrap -->
  1365. <div class="wrap">
  1366. <div class="header">
  1367. <h1>
  1368. 진료정보교류 개인정보 제공 동의(
  1369. <xsl:choose>
  1370. <!--전체철회-->
  1371. <xsl:when test="/n1:ClinicalDocument/n1:documentationOf/n1:serviceEvent/n1:code/@code = '1.2.410.100110.40.2.2.2.4'">
  1372. <input id="chk001" type="checkbox" onclick="return false;" height="60 px;" />부분
  1373. <input id="chk002" type="checkbox" checked="checked" onclick="return false;" />전체 ) 철회서
  1374. </xsl:when>
  1375. <!--부분철회-->
  1376. <xsl:when test="/n1:ClinicalDocument/n1:documentationOf/n1:serviceEvent/n1:code/@code = '1.2.410.100110.40.2.2.2.5'">
  1377. <input id="chk001" type="checkbox" checked="checked" onclick="return false;" height="60 px;" />부분
  1378. <input id="chk002" type="checkbox" onclick="return false;" />전체 ) 철회서
  1379. </xsl:when>
  1380. <xsl:otherwise>
  1381. <input id="chk001" type="checkbox" onclick="return false;" height="60 px;" />부분
  1382. <input id="chk002" type="checkbox" onclick="return false;" />전체 ) 철회서
  1383. </xsl:otherwise>
  1384. </xsl:choose>
  1385. </h1>
  1386. </div>
  1387. <div class="contents">
  1388. <table class="info_agree" border="0" cellpadding="0" cellspacing="0">
  1389. <caption>개인정보 제공 동의 철회서 양식</caption>
  1390. <colgroup>
  1391. <col width="15%" />
  1392. <col width="15%" />
  1393. <col width="15%" />
  1394. <col width="30%" />
  1395. <col width="25%" />
  1396. </colgroup>
  1397. <tr>
  1398. <th style="text-align: center;">접수일</th>
  1399. <td>
  1400. <xsl:call-template name="getDate">
  1401. <xsl:with-param name="date" select="/n1:ClinicalDocument/n1:effectiveTime"/>
  1402. </xsl:call-template>
  1403. </td>
  1404. <th style="text-align: center;">접수기관</th>
  1405. <td>
  1406. <xsl:value-of select="/n1:ClinicalDocument/n1:custodian/n1:assignedCustodian/n1:representedCustodianOrganization/n1:name"/>
  1407. </td>
  1408. <th style="text-align: left;">
  1409. 처리기간 10일 이내<br/>
  1410. </th>
  1411. </tr>
  1412. </table>
  1413. <table class="info_agree" border="0" cellpadding="0" cellspacing="0" style="margin-top: 10px;">
  1414. <colgroup>
  1415. <col width="20%" />
  1416. <col width="20%" />
  1417. <col width="20%" />
  1418. <col width="20%" />
  1419. <col width="20%" />
  1420. </colgroup>
  1421. <!--동의주체-->
  1422. <tr>
  1423. <th rowspan="3">동의주체</th>
  1424. <th style="text-align: left;">성 명</th>
  1425. <td>
  1426. <xsl:call-template name="show-name-kr">
  1427. <xsl:with-param name="name" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:patient/n1:name"/>
  1428. </xsl:call-template>
  1429. </td>
  1430. <th style="text-align: left;">전화번호</th>
  1431. <td>
  1432. <xsl:call-template name="show-telecom-kr">
  1433. <xsl:with-param name="telecom" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:telecom"/>
  1434. </xsl:call-template>
  1435. </td>
  1436. </tr>
  1437. <tr>
  1438. <th style="text-align: left;">
  1439. 생년월일<br/>(주민등록번호)
  1440. </th>
  1441. <td colspan="4">
  1442. <xsl:call-template name="getDate">
  1443. <xsl:with-param name="date" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:patient/n1:birthTime"/>
  1444. </xsl:call-template>
  1445. </td>
  1446. </tr>
  1447. <tr>
  1448. <th style="text-align: left;">주 소</th>
  1449. <td colspan="4">
  1450. <xsl:call-template name="show-address-kr">
  1451. <xsl:with-param name="address" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:addr"/>
  1452. </xsl:call-template>
  1453. </td>
  1454. </tr>
  1455. <tr>
  1456. <td colspan="5"></td>
  1457. </tr>
  1458. <tr>
  1459. <th rowspan="5">철회내용</th>
  1460. <th rowspan="2">
  1461. 부분<br/> 의료기관
  1462. </th>
  1463. <th>
  1464. 의료기관명<br>(동의 철회 요구)</br>
  1465. </th>
  1466. <td colspan="2">
  1467. <xsl:for-each select="/n1:ClinicalDocument/n1:component/n1:structuredBody/n1:component/n1:section[n1:templateId/@root='2.16.840.1.113883.3.445.17']/n1:text/n1:table[2]/n1:tbody/n1:tr[4]/n1:td[1]/n1:paragraph">
  1468. <xsl:variable name="position" select="position()"/>
  1469. <xsl:value-of select="/n1:ClinicalDocument/n1:component/n1:structuredBody/n1:component/n1:section[n1:templateId/@root='2.16.840.1.113883.3.445.17']/n1:text/n1:table[2]/n1:tbody/n1:tr[4]/n1:td/n1:paragraph[$position]"/>&#160;
  1470. </xsl:for-each>
  1471. </td>
  1472. </tr>
  1473. <!--10-->
  1474. <tr>
  1475. <td colspan="3">
  1476. <xsl:value-of select="/n1:ClinicalDocument/n1:component/n1:structuredBody/n1:component/n1:section[n1:templateId/@root='2.16.840.1.113883.3.445.17']/n1:text/n1:table[2]/n1:tbody/n1:tr[6]/n1:td[1]"/>
  1477. </td>
  1478. </tr>
  1479. <!--11-->
  1480. <tr>
  1481. <th rowspan="2">
  1482. 부분<br/> 진료과
  1483. </th>
  1484. <th>
  1485. 진료과명<br/>(동의 철회 요구)
  1486. </th>
  1487. <td colspan="2">
  1488. <xsl:for-each select="/n1:ClinicalDocument/n1:component/n1:structuredBody/n1:component/n1:section[n1:templateId/@root='2.16.840.1.113883.3.445.17']/n1:text/n1:table[2]/n1:tbody/n1:tr[7]/n1:td/n1:paragraph">
  1489. <xsl:variable name="position" select="position()"/>
  1490. <xsl:value-of select="/n1:ClinicalDocument/n1:component/n1:structuredBody/n1:component/n1:section[n1:templateId/@root='2.16.840.1.113883.3.445.17']/n1:text/n1:table[2]/n1:tbody/n1:tr[7]/n1:td/n1:paragraph[$position]"/>
  1491. <xsl:text>&#160;</xsl:text>
  1492. </xsl:for-each>
  1493. </td>
  1494. </tr>
  1495. <!--12-->
  1496. <tr>
  1497. <td colspan="3">
  1498. <xsl:value-of select="/n1:ClinicalDocument/n1:component/n1:structuredBody/n1:component/n1:section[n1:templateId/@root='2.16.840.1.113883.3.445.17']/n1:text/n1:table[2]/n1:tbody/n1:tr[9]/n1:td[1]"/>
  1499. </td>
  1500. </tr>
  1501. <tr>
  1502. <th>전체</th>
  1503. <td colspan="3">
  1504. <xsl:value-of select="/n1:ClinicalDocument/n1:component/n1:structuredBody/n1:component/n1:section[n1:templateId/@root='2.16.840.1.113883.3.445.17']/n1:text/n1:table[2]/n1:tbody/n1:tr[10]/n1:td[1]"/>
  1505. </td>
  1506. </tr>
  1507. </table>
  1508. <br/>
  1509. <p>개인정보보호법 등에 따라 위와 같이 요구합니다.</p>
  1510. </div>
  1511. <div class="agreement">
  1512. <xsl:call-template name="chooseWithdrawalMethodType"/>
  1513. </div>
  1514. <div class="contents1 fix" style="margin-top: 10px;">
  1515. <table class="chk_agree" border="0" cellpadding="0" cellspacing="0">
  1516. <colgroup>
  1517. <col width=""/>
  1518. <col width=""/>
  1519. </colgroup>
  1520. <tr>
  1521. <td>작성일자</td>
  1522. <td>
  1523. : 20
  1524. <input type="text" class="date_year" value="{substring(/n1:ClinicalDocument/n1:effectiveTime/@value,3,2)}" readonly="readonly"/> 년
  1525. <input type="text" class="date_mon" value="{substring(/n1:ClinicalDocument/n1:effectiveTime/@value,5,2)}" readonly="readonly"/> 월
  1526. <input type="text" class="date_day" value="{substring(/n1:ClinicalDocument/n1:effectiveTime/@value,7,2)}" readonly="readonly"/> 일
  1527. </td>
  1528. </tr>
  1529. <tr>
  1530. <td>환자(대리인 또는 보호자) 이름</td>
  1531. <td>
  1532. : <input type="text" class="comm_input" value="{substring-after(/n1:ClinicalDocument/n1:component/n1:structuredBody/n1:component/n1:section[n1:templateId/@root='2.16.840.1.113883.3.445.17']/n1:text/n1:paragraph[@ID='personname'], ': ')}" readonly="readonly" />
  1533. </td>
  1534. <td></td>
  1535. </tr>
  1536. <tr>
  1537. <td>연락처</td>
  1538. <td >
  1539. : <input type="text" class="comm_input" value="{substring-after(/n1:ClinicalDocument/n1:component/n1:structuredBody/n1:component/n1:section[n1:templateId/@root='2.16.840.1.113883.3.445.17']/n1:text/n1:paragraph[@ID='persontelecom'], ': ')}" readonly="readonly"/>
  1540. </td>
  1541. <td></td>
  1542. </tr>
  1543. <tr>
  1544. <td>환자와의관계</td>
  1545. <td>
  1546. : <input type="text" class="comm_input" value="{substring-after(/n1:ClinicalDocument/n1:component/n1:structuredBody/n1:component/n1:section[n1:templateId/@root='2.16.840.1.113883.3.445.17']/n1:text/n1:paragraph[@ID='relationship'], ': ')}" readonly="readonly"/>
  1547. </td>
  1548. <td></td>
  1549. </tr>
  1550. </table>
  1551. <div class="sign">
  1552. 서명 :
  1553. <br/>
  1554. <xsl:if test="/n1:ClinicalDocument/n1:component/n1:structuredBody/n1:component/n1:section/n1:entry/n1:observationMedia/n1:entryRelationship/n1:observation[n1:templateId/@root='2.16.840.1.113883.3.445.19']/n1:value !=''">
  1555. <xsl:call-template name="show-signature">
  1556. <xsl:with-param name="signature" select="/n1:ClinicalDocument/n1:component/n1:structuredBody/n1:component/n1:section/n1:entry/n1:observationMedia/n1:entryRelationship/n1:observation[n1:templateId/@root='2.16.840.1.113883.3.445.19']/n1:value"/>
  1557. </xsl:call-template>
  1558. </xsl:if>
  1559. </div>
  1560. </div>
  1561. <div class="contents" style="border: 1px solid #DBDBDB; border-left: 2px solid #215fb4;">
  1562. <ol>
  1563. <li>1. ‘법정대리인’란은 대리인이 요구인일 때에만 적습니다.</li>
  1564. <li>2. 진료정보교류에 대해 일부 의료기관에 대해서만 동의를 철회하는 경우, ‘부분 의료기관’란에[ √ ]표시를 하고, 의료기관명에 철회하고자 하는 의료기관 명칭을 나열하여야 합니다. [ √ ]를 하지 않거나 의료기관명을 나열하지 않으면 동의를 철회하지 않은 것으로 처리됩니다.</li>
  1565. <li>3. 진료정보교류에 대해 일부 진료과에 대해서만 동의를 철회하는 경우, ‘부분 진료과’란에[ √ ]표시를 하고, 진료과명에 철회하고자 하는 진료과명을 나열하여야 합니다. [ √ ]를 하지 않거나 진료과명을 나열하지 않으면 동의를 철회하지 않은 것으로 처리됩니다.</li>
  1566. <li>4. 진료교류정보 전체에 대해 철회를 요구하는 경우 ‘전체’ 란에 [ √ ] 표시를 하고 그 사유를 적습니다.</li>
  1567. </ol>
  1568. </div>
  1569. </div>
  1570. <!-- /wrap -->
  1571. </div>
  1572. <!-- /body_wrap -->
  1573. </body>
  1574. </xsl:template>
  1575. <!-- ## Body ##-->
  1576. <!-- show nonXMLBody -->
  1577. <xsl:template match='n1:component/n1:nonXMLBody'>
  1578. <xsl:choose>
  1579. <!-- if there is a reference, use that in an IFRAME -->
  1580. <xsl:when test='n1:text/n1:reference'>
  1581. <xsl:variable name="source" select="string(n1:text/n1:reference/@value)"/>
  1582. <xsl:variable name="lcSource" select="translate($source, $uc, $lc)"/>
  1583. <xsl:variable name="scrubbedSource" select="translate($source, $simple-sanitizer-match, $simple-sanitizer-replace)"/>
  1584. <xsl:message>
  1585. <xsl:value-of select="$source"/>, <xsl:value-of select="$lcSource"/>
  1586. </xsl:message>
  1587. <xsl:choose>
  1588. <xsl:when test="contains($lcSource,'javascript')">
  1589. <p>
  1590. <xsl:value-of select="$javascript-injection-warning"/>
  1591. </p>
  1592. <xsl:message>
  1593. <xsl:value-of select="$javascript-injection-warning"/>
  1594. </xsl:message>
  1595. </xsl:when>
  1596. <xsl:when test="not($source = $scrubbedSource)">
  1597. <p>
  1598. <xsl:value-of select="$malicious-content-warning"/>
  1599. </p>
  1600. <xsl:message>
  1601. <xsl:value-of select="$malicious-content-warning"/>
  1602. </xsl:message>
  1603. </xsl:when>
  1604. <xsl:otherwise>
  1605. <iframe name='nonXMLBody' id='nonXMLBody' WIDTH='80%' HEIGHT='600' src='{$source}' sandbox=""/>
  1606. </xsl:otherwise>
  1607. </xsl:choose>
  1608. </xsl:when>
  1609. <xsl:when test='n1:text/@mediaType="text/plain"'>
  1610. <pre>
  1611. <xsl:value-of select='n1:text/text()'/>
  1612. </pre>
  1613. </xsl:when>
  1614. <xsl:otherwise>
  1615. <pre>Cannot display the text</pre>
  1616. </xsl:otherwise>
  1617. </xsl:choose>
  1618. </xsl:template>
  1619. <xsl:template name="chooseConsentMethodType">
  1620. <xsl:choose>
  1621. <xsl:when test="$consentMethod = &apos;0&apos;">
  1622. <div class="">
  1623. <strong>동의수단</strong>
  1624. <p>
  1625. <input type="radio" name="electronic" value="yes1" id="yes1" checked="checked"/>
  1626. <label for="electronic">서명패드</label>
  1627. <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1628. <label for="document">서면동의</label>
  1629. <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1630. <label for="record">온라인동의</label>
  1631. <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1632. <label for="record">녹취</label>
  1633. <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1634. <label for="record">전자동의서</label>
  1635. <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1636. <label for="record">마우스서명</label>
  1637. </p>
  1638. </div>
  1639. </xsl:when>
  1640. <xsl:when test="$consentMethod = &apos;1&apos;">
  1641. <div class="">
  1642. <strong>동의수단</strong>
  1643. <p>
  1644. <input type="radio" name="electronic" value="yes1" id="yes1" disabled="true" style="pointer-events: none;"/>
  1645. <label for="electronic">서명패드</label>
  1646. <input type="radio" name="document" value="no1" id="no1" checked="checked"/>
  1647. <label for="document">서면동의</label>
  1648. <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1649. <label for="record">온라인동의</label>
  1650. <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1651. <label for="record">녹취</label>
  1652. <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1653. <label for="record">전자동의서</label>
  1654. <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1655. <label for="record">마우스서명</label>
  1656. </p>
  1657. </div>
  1658. </xsl:when>
  1659. <xsl:when test="$consentMethod = &apos;2&apos;">
  1660. <div class="">
  1661. <strong>동의수단</strong>
  1662. <p>
  1663. <input type="radio" name="electronic" value="yes1" id="yes1" disabled="true" style="pointer-events: none;"/>
  1664. <label for="electronic">서명패드</label>
  1665. <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1666. <label for="document">서면동의</label>
  1667. <input type="radio" name="record" value="no1" id="no1" checked="checked" />
  1668. <label for="record">온라인동의</label>
  1669. <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1670. <label for="document">녹취</label>
  1671. <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1672. <label for="document">전자동의서</label>
  1673. <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1674. <label for="document">마우스서명</label>
  1675. </p>
  1676. </div>
  1677. </xsl:when>
  1678. <xsl:when test="$consentMethod = &apos;3&apos;">
  1679. <div class="">
  1680. <strong>동의수단</strong>
  1681. <p>
  1682. <input type="radio" name="electronic" value="yes1" id="yes1" disabled="true" style="pointer-events: none;"/>
  1683. <label for="electronic">서명패드</label>
  1684. <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1685. <label for="document">서면동의</label>
  1686. <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1687. <label for="record">온라인동의</label>
  1688. <input type="radio" name="document" value="no1" id="no1" checked="checked"/>
  1689. <label for="document">녹취</label>
  1690. <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1691. <label for="document">전자동의서</label>
  1692. <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1693. <label for="document">마우스서명</label>
  1694. </p>
  1695. </div>
  1696. </xsl:when>
  1697. <xsl:when test="$consentMethod = &apos;4&apos;">
  1698. <div class="">
  1699. <strong>동의수단</strong>
  1700. <p>
  1701. <input type="radio" name="electronic" value="yes1" id="yes1" disabled="true" style="pointer-events: none;"/>
  1702. <label for="electronic">서명패드</label>
  1703. <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1704. <label for="document">서면동의</label>
  1705. <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1706. <label for="record">온라인동의</label>
  1707. <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1708. <label for="document">녹취</label>
  1709. <input type="radio" name="document" value="no1" id="no1" checked="checked" />
  1710. <label for="document">전자동의서</label>
  1711. <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1712. <label for="document">마우스서명</label>
  1713. </p>
  1714. </div>
  1715. </xsl:when>
  1716. <xsl:when test="$consentMethod = &apos;5&apos;">
  1717. <div class="">
  1718. <strong>동의수단</strong>
  1719. <p>
  1720. <input type="radio" name="electronic" value="yes1" id="yes1" disabled="true" style="pointer-events: none;"/>
  1721. <label for="electronic">서명패드</label>
  1722. <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1723. <label for="document">서면동의</label>
  1724. <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1725. <label for="record">온라인동의</label>
  1726. <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1727. <label for="document">녹취</label>
  1728. <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1729. <label for="document">전자동의서</label>
  1730. <input type="radio" name="document" value="no1" id="no1" checked="checked" />
  1731. <label for="document">마우스서명</label>
  1732. </p>
  1733. </div>
  1734. </xsl:when>
  1735. <xsl:otherwise>
  1736. <div class="">
  1737. <strong>동의수단</strong>
  1738. <p>
  1739. <input type="radio" name="electronic" value="yes1" id="yes1" disabled="true" style="pointer-events: none;"/>
  1740. <label for="electronic">서명패드</label>
  1741. <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1742. <label for="document">서면동의</label>
  1743. <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1744. <label for="record">온라인동의</label>
  1745. <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1746. <label for="document">녹취</label>
  1747. <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1748. <label for="document">전자동의서</label>
  1749. <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1750. <label for="document">마우스서명</label>
  1751. </p>
  1752. </div>
  1753. </xsl:otherwise>
  1754. </xsl:choose>
  1755. </xsl:template>
  1756. <xsl:template name="chooseWithdrawalMethodType">
  1757. <xsl:choose>
  1758. <xsl:when test="$withdrawalMethod = &apos;0&apos;">
  1759. <div class="">
  1760. <strong>철회수단</strong>
  1761. <p>
  1762. <input type="radio" name="electronic" value="yes1" id="yes1" checked="checked"/>
  1763. <label for="electronic">서명패드</label>
  1764. <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1765. <label for="document">서면동의</label>
  1766. <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1767. <label for="record">온라인동의</label>
  1768. <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1769. <label for="record">녹취</label>
  1770. <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1771. <label for="record">전자동의서</label>
  1772. <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1773. <label for="record">마우스서명</label>
  1774. </p>
  1775. </div>
  1776. </xsl:when>
  1777. <xsl:when test="$withdrawalMethod = &apos;1&apos;">
  1778. <div class="">
  1779. <strong>철회수단</strong>
  1780. <p>
  1781. <input type="radio" name="electronic" value="yes1" id="yes1" disabled="true" style="pointer-events: none;"/>
  1782. <label for="electronic">서명패드</label>
  1783. <input type="radio" name="document" value="no1" id="no1" checked="checked"/>
  1784. <label for="document">서면동의</label>
  1785. <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1786. <label for="record">온라인동의</label>
  1787. <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1788. <label for="record">녹취</label>
  1789. <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1790. <label for="record">전자동의서</label>
  1791. <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1792. <label for="record">마우스서명</label>
  1793. </p>
  1794. </div>
  1795. </xsl:when>
  1796. <xsl:when test="$withdrawalMethod = &apos;2&apos;">
  1797. <div class="">
  1798. <strong>철회수단</strong>
  1799. <p>
  1800. <input type="radio" name="electronic" value="yes1" id="yes1" disabled="true" style="pointer-events: none;"/>
  1801. <label for="electronic">서명패드</label>
  1802. <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1803. <label for="document">서면동의</label>
  1804. <input type="radio" name="record" value="no1" id="no1" checked="checked" />
  1805. <label for="record">온라인동의</label>
  1806. <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1807. <label for="document">녹취</label>
  1808. <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1809. <label for="document">전자동의서</label>
  1810. <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1811. <label for="record">마우스서명</label>
  1812. </p>
  1813. </div>
  1814. </xsl:when>
  1815. <xsl:when test="$withdrawalMethod = &apos;3&apos;">
  1816. <div class="">
  1817. <strong>철회수단</strong>
  1818. <p>
  1819. <input type="radio" name="electronic" value="yes1" id="yes1" disabled="true" style="pointer-events: none;"/>
  1820. <label for="electronic">서명패드</label>
  1821. <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1822. <label for="document">서면동의</label>
  1823. <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1824. <label for="record">온라인동의</label>
  1825. <input type="radio" name="document" value="no1" id="no1" checked="checked"/>
  1826. <label for="document">녹취</label>
  1827. <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1828. <label for="document">전자동의서</label>
  1829. <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1830. <label for="record">마우스서명</label>
  1831. </p>
  1832. </div>
  1833. </xsl:when>
  1834. <xsl:when test="$withdrawalMethod = &apos;4&apos;">
  1835. <div class="">
  1836. <strong>철회수단</strong>
  1837. <p>
  1838. <input type="radio" name="electronic" value="yes1" id="yes1" disabled="true" style="pointer-events: none;"/>
  1839. <label for="electronic">서명패드</label>
  1840. <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1841. <label for="document">서면동의</label>
  1842. <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1843. <label for="record">온라인동의</label>
  1844. <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1845. <label for="document">녹취</label>
  1846. <input type="radio" name="document" value="no1" id="no1" checked="checked" />
  1847. <label for="document">전자동의서</label>
  1848. <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1849. <label for="record">마우스서명</label>
  1850. </p>
  1851. </div>
  1852. </xsl:when>
  1853. <xsl:when test="$withdrawalMethod = &apos;5&apos;">
  1854. <div class="">
  1855. <strong>철회수단</strong>
  1856. <p>
  1857. <input type="radio" name="electronic" value="yes1" id="yes1" disabled="true" style="pointer-events: none;"/>
  1858. <label for="electronic">서명패드</label>
  1859. <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1860. <label for="document">서면동의</label>
  1861. <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1862. <label for="record">온라인동의</label>
  1863. <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1864. <label for="document">녹취</label>
  1865. <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1866. <label for="document">전자동의서</label>
  1867. <input type="radio" name="document" value="no1" id="no1" checked="checked" />
  1868. <label for="record">마우스서명</label>
  1869. </p>
  1870. </div>
  1871. </xsl:when>
  1872. <xsl:otherwise>
  1873. <div class="">
  1874. <strong>철회수단</strong>
  1875. <p>
  1876. <input type="radio" name="electronic" value="yes1" id="yes1" disabled="true" style="pointer-events: none;"/>
  1877. <label for="electronic">서명패드</label>
  1878. <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1879. <label for="document">서면동의</label>
  1880. <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1881. <label for="record">온라인동의</label>
  1882. <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1883. <label for="document">녹취</label>
  1884. <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1885. <label for="document">전자동의서</label>
  1886. <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
  1887. <label for="document">마우스서명</label>
  1888. </p>
  1889. </div>
  1890. </xsl:otherwise>
  1891. </xsl:choose>
  1892. </xsl:template>
  1893. <!-- ##################### Data format ##################### -->
  1894. <!-- show-gender-kr -->
  1895. <xsl:template name="show-gender-kr">
  1896. <xsl:param name="gender"/>
  1897. <xsl:choose>
  1898. <xsl:when test="$gender/@code = &apos;M&apos;">
  1899. <xsl:text>남</xsl:text>
  1900. </xsl:when>
  1901. <xsl:when test="$gender/@code = &apos;F&apos;">
  1902. <xsl:text>여</xsl:text>
  1903. </xsl:when>
  1904. <xsl:when test="$gender/@code = &apos;U&apos;">
  1905. <xsl:text>식별불가</xsl:text>
  1906. </xsl:when>
  1907. </xsl:choose>
  1908. </xsl:template>
  1909. <!-- show signature -->
  1910. <xsl:template name="show-signature">
  1911. <xsl:param name="signature"/>
  1912. <xsl:element name="img">
  1913. <xsl:attribute name="width">140</xsl:attribute>
  1914. <xsl:attribute name="height">85</xsl:attribute>
  1915. <xsl:attribute name="src">data:image/png;base64,<xsl:value-of select="$signature"/></xsl:attribute>
  1916. </xsl:element>
  1917. </xsl:template>
  1918. <!-- show date ( format : yyyy-MM-dd )-->
  1919. <xsl:template name="getDate">
  1920. <xsl:param name="date"/>
  1921. <xsl:choose>
  1922. <xsl:when test="$date/@value">
  1923. <xsl:value-of select="concat(substring($date/@value,1,4),'-',substring($date/@value,5,2),'-',substring($date/@value,7,2))"/>
  1924. <xsl:text> </xsl:text>
  1925. </xsl:when>
  1926. <xsl:otherwise>
  1927. <xsl:value-of select="$date"/>
  1928. </xsl:otherwise>
  1929. </xsl:choose>
  1930. </xsl:template>
  1931. <!-- show date ( format : yyyy.MM.dd )-->
  1932. <xsl:template name="getDate2">
  1933. <xsl:param name="date"/>
  1934. <xsl:choose>
  1935. <xsl:when test="$date/@value">
  1936. <xsl:value-of select="concat(substring($date/@value,1,4),'.',substring($date/@value,5,2),'.',substring($date/@value,7,2),'.')"/>
  1937. <xsl:text> </xsl:text>
  1938. </xsl:when>
  1939. <xsl:otherwise>
  1940. <xsl:value-of select="$date"/>
  1941. </xsl:otherwise>
  1942. </xsl:choose>
  1943. </xsl:template>
  1944. <!-- show date ( format : yyyy년 MM월 dd일 )-->
  1945. <xsl:template name="getDate3">
  1946. <xsl:param name="date"/>
  1947. <xsl:choose>
  1948. <xsl:when test="$date/@value">
  1949. <xsl:value-of select="concat(substring($date/@value,1,4),'년 ',substring($date/@value,5,2),'월 ',substring($date/@value,7,2),'일')"/>
  1950. <xsl:text> </xsl:text>
  1951. </xsl:when>
  1952. <xsl:otherwise>
  1953. <xsl:value-of select="$date"/>
  1954. </xsl:otherwise>
  1955. </xsl:choose>
  1956. </xsl:template>
  1957. <!-- show-name-kr -->
  1958. <xsl:template name="show-name-kr">
  1959. <xsl:param name="name"/>
  1960. <xsl:choose>
  1961. <xsl:when test="$name/n1:family">
  1962. <xsl:if test="$name/n1:prefix">
  1963. <xsl:value-of select="$name/n1:prefix"/>
  1964. <xsl:text> </xsl:text>
  1965. </xsl:if>
  1966. <xsl:value-of select="$name/n1:family"/>
  1967. <!--<xsl:text> </xsl:text>-->
  1968. <xsl:value-of select="$name/n1:given"/>
  1969. <xsl:if test="$name/n1:suffix">
  1970. <xsl:text>, </xsl:text>
  1971. <xsl:value-of select="$name/n1:suffix"/>
  1972. </xsl:if>
  1973. </xsl:when>
  1974. <xsl:otherwise>
  1975. <xsl:value-of select="$name"/>
  1976. </xsl:otherwise>
  1977. </xsl:choose>
  1978. </xsl:template>
  1979. <!-- show-telecom-kr -->
  1980. <xsl:template name="show-telecom-kr">
  1981. <xsl:param name="telecom"/>
  1982. <xsl:choose>
  1983. <xsl:when test="$telecom">
  1984. <xsl:variable name="type" select="substring-before($telecom/@value, ':')"/>
  1985. <xsl:variable name="value" select="substring-after($telecom/@value, ':')"/>
  1986. <xsl:if test="$type">
  1987. <xsl:call-template name="translateTelecomCode">
  1988. <xsl:with-param name="code" select="$type"/>
  1989. </xsl:call-template>
  1990. <xsl:if test="@use">
  1991. <xsl:text> (</xsl:text>
  1992. <xsl:call-template name="translateTelecomCode">
  1993. <xsl:with-param name="code" select="@use"/>
  1994. </xsl:call-template>
  1995. <xsl:text>)</xsl:text>
  1996. </xsl:if>
  1997. <xsl:text>: </xsl:text>
  1998. <xsl:text> </xsl:text>
  1999. <xsl:value-of select="$value"/>
  2000. </xsl:if>
  2001. </xsl:when>
  2002. <xsl:otherwise>
  2003. <xsl:value-of select="$telecom/@value"/>
  2004. </xsl:otherwise>
  2005. </xsl:choose>
  2006. <br/>
  2007. </xsl:template>
  2008. <!-- Convert Telecom URL to display text -->
  2009. <xsl:template name="translateTelecomCode">
  2010. <xsl:param name="code"/>
  2011. <xsl:choose>
  2012. <!-- lookup table Telecom URI -->
  2013. <xsl:when test="$code='tel'">
  2014. <xsl:text>Tel</xsl:text>
  2015. </xsl:when>
  2016. <xsl:when test="$code='fax'">
  2017. <xsl:text>Fax</xsl:text>
  2018. </xsl:when>
  2019. <xsl:when test="$code='http'">
  2020. <xsl:text>Web</xsl:text>
  2021. </xsl:when>
  2022. <xsl:when test="$code='mailto'">
  2023. <xsl:text>Mail</xsl:text>
  2024. </xsl:when>
  2025. <xsl:when test="$code='H'">
  2026. <xsl:text>Home</xsl:text>
  2027. </xsl:when>
  2028. <xsl:when test="$code='HV'">
  2029. <xsl:text>Vacation Home</xsl:text>
  2030. </xsl:when>
  2031. <xsl:when test="$code='HP'">
  2032. <xsl:text>Primary Home</xsl:text>
  2033. </xsl:when>
  2034. <xsl:when test="$code='WP'">
  2035. <xsl:text>Work Place</xsl:text>
  2036. </xsl:when>
  2037. <xsl:when test="$code='PUB'">
  2038. <xsl:text>Pub</xsl:text>
  2039. </xsl:when>
  2040. <xsl:otherwise>
  2041. <xsl:text>{$code='</xsl:text>
  2042. <xsl:value-of select="$code"/>
  2043. <xsl:text>'?}</xsl:text>
  2044. </xsl:otherwise>
  2045. </xsl:choose>
  2046. </xsl:template>
  2047. <!-- show-address-kr-->
  2048. <xsl:template name="show-address-kr">
  2049. <xsl:param name="address"/>
  2050. <xsl:choose>
  2051. <xsl:when test="$address">
  2052. <xsl:if test="$address/@use">
  2053. <xsl:text> </xsl:text>
  2054. <xsl:call-template name="translateTelecomCode">
  2055. <xsl:with-param name="code" select="$address/@use"/>
  2056. </xsl:call-template>
  2057. <xsl:text>:</xsl:text>
  2058. <br/>
  2059. </xsl:if>
  2060. <xsl:if test="string-length($address/n1:country)>0">
  2061. <xsl:value-of select="$address/n1:country"/>
  2062. <xsl:text> </xsl:text>
  2063. </xsl:if>
  2064. <xsl:if test="string-length($address/n1:state)>0">
  2065. <xsl:value-of select="$address/n1:state"/>
  2066. <xsl:text> </xsl:text>
  2067. </xsl:if>
  2068. <xsl:if test="string-length($address/n1:city)>0">
  2069. <xsl:value-of select="$address/n1:city"/>
  2070. <xsl:text> </xsl:text>
  2071. </xsl:if>
  2072. <xsl:if test="string-length($address/n1:additionalLocator)>0">
  2073. <xsl:value-of select="$address/n1:additionalLocator"/>
  2074. <xsl:text> </xsl:text>
  2075. </xsl:if>
  2076. <xsl:for-each select="$address/n1:streetAddressLine">
  2077. <xsl:value-of select="."/>
  2078. <xsl:text> </xsl:text>
  2079. </xsl:for-each>
  2080. <xsl:if test="$address/n1:streetName">
  2081. <xsl:value-of select="$address/n1:streetName"/>
  2082. <xsl:text> </xsl:text>
  2083. <xsl:value-of select="$address/n1:houseNumber"/>
  2084. </xsl:if>
  2085. <xsl:if test="string-length($address/n1:postalCode)>0">
  2086. <xsl:text>&#160;</xsl:text>
  2087. <xsl:value-of select="$address/n1:postalCode"/>
  2088. </xsl:if>
  2089. </xsl:when>
  2090. <xsl:otherwise>
  2091. <xsl:text>유효하지 않은 주소정보</xsl:text>
  2092. </xsl:otherwise>
  2093. </xsl:choose>
  2094. <br/>
  2095. </xsl:template>
  2096. <!--BPPC-->
  2097. <xsl:template name="getGuardianRelationship">
  2098. <xsl:param name="code"/>
  2099. <xsl:choose>
  2100. <xsl:when test="$code='FTH'">
  2101. <xsl:text>부</xsl:text>
  2102. </xsl:when>
  2103. <xsl:when test="$code='MTH'">
  2104. <xsl:text>모</xsl:text>
  2105. </xsl:when>
  2106. <xsl:when test="$code='GRMTH'">
  2107. <xsl:text>조모</xsl:text>
  2108. </xsl:when>
  2109. <xsl:when test="$code='GRFTH'">
  2110. <xsl:text>조부</xsl:text>
  2111. </xsl:when>
  2112. <xsl:when test="$code='WIFE'">
  2113. <xsl:text>부인</xsl:text>
  2114. </xsl:when>
  2115. <xsl:when test="$code='HUSB'">
  2116. <xsl:text>남편</xsl:text>
  2117. </xsl:when>
  2118. <xsl:when test="$code='FAMMEMB'">
  2119. <xsl:text>가족</xsl:text>
  2120. </xsl:when>
  2121. <xsl:when test="$code='SONC'">
  2122. <xsl:text>자</xsl:text>
  2123. </xsl:when>
  2124. <xsl:when test="$code='DAUC'">
  2125. <xsl:text>딸</xsl:text>
  2126. </xsl:when>
  2127. <xsl:when test="$code='GRNDDAU'">
  2128. <xsl:text>손녀</xsl:text>
  2129. </xsl:when>
  2130. <xsl:when test="$code='GRNDSON'">
  2131. <xsl:text>손자</xsl:text>
  2132. </xsl:when>
  2133. <xsl:when test="$code='NBOR'">
  2134. <xsl:text>이웃</xsl:text>
  2135. </xsl:when>
  2136. <xsl:when test="$code='ROOM'">
  2137. <xsl:text>동거인</xsl:text>
  2138. </xsl:when>
  2139. <xsl:when test="$code='ONESELF'">
  2140. <xsl:text>본인</xsl:text>
  2141. </xsl:when>
  2142. <xsl:otherwise>
  2143. <xsl:text></xsl:text>
  2144. </xsl:otherwise>
  2145. </xsl:choose>
  2146. </xsl:template>
  2147. <!-- convert to lower case -->
  2148. <xsl:template name="caseDown">
  2149. <xsl:param name="data"/>
  2150. <xsl:if test="$data">
  2151. <xsl:value-of select="translate($data, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')"/>
  2152. </xsl:if>
  2153. </xsl:template>
  2154. <!-- convert to upper case -->
  2155. <xsl:template name="caseUp">
  2156. <xsl:param name="data"/>
  2157. <xsl:if test="$data">
  2158. <xsl:value-of select="translate($data,'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>
  2159. </xsl:if>
  2160. </xsl:template>
  2161. <!-- convert first character to upper case -->
  2162. <xsl:template name="firstCharCaseUp">
  2163. <xsl:param name="data"/>
  2164. <xsl:if test="$data">
  2165. <xsl:call-template name="caseUp">
  2166. <xsl:with-param name="data" select="substring($data,1,1)"/>
  2167. </xsl:call-template>
  2168. <xsl:value-of select="substring($data,2)"/>
  2169. </xsl:if>
  2170. </xsl:template>
  2171. <!-- show-noneFlavor -->
  2172. <xsl:template name="show-noneFlavor">
  2173. <xsl:param name="nf"/>
  2174. <xsl:choose>
  2175. <xsl:when test=" $nf = 'NI' ">
  2176. <xsl:text>no information</xsl:text>
  2177. </xsl:when>
  2178. <xsl:when test=" $nf = 'INV' ">
  2179. <xsl:text>invalid</xsl:text>
  2180. </xsl:when>
  2181. <xsl:when test=" $nf = 'MSK' ">
  2182. <xsl:text>masked</xsl:text>
  2183. </xsl:when>
  2184. <xsl:when test=" $nf = 'NA' ">
  2185. <xsl:text>not applicable</xsl:text>
  2186. </xsl:when>
  2187. <xsl:when test=" $nf = 'UNK' ">
  2188. <xsl:text>unknown</xsl:text>
  2189. </xsl:when>
  2190. <xsl:when test=" $nf = 'OTH' ">
  2191. <xsl:text>other</xsl:text>
  2192. </xsl:when>
  2193. </xsl:choose>
  2194. </xsl:template>
  2195. <!-- /##################### Data format ##################### -->
  2196. <!-- ##################### Comment ##################### -->
  2197. <!-- 상단 문구-->
  2198. <xsl:template name="addComment">
  2199. <xsl:choose>
  2200. <!-- 진료회신서 / 진료회송서 의 경우 해당문구 출력.-->
  2201. <!-- 회송서 문구 : 회송 환자의 진료결과를 다음과 같이 알려드리오니 향후 진료에 참고하시기 바랍니다. -->
  2202. <!-- 진료회송서 -->
  2203. <xsl:when test="/n1:ClinicalDocument/n1:code/@code = '18761-7'">
  2204. <h3>
  2205. <xsl:value-of select="/n1:ClinicalDocument/n1:informationRecipient/n1:intendedRecipient/n1:receivedOrganization/n1:asOrganizationPartOf/n1:wholeOrganization/n1:name"/>
  2206. <xsl:text> </xsl:text>
  2207. <xsl:call-template name="show-name-kr">
  2208. <xsl:with-param name="name" select="/n1:ClinicalDocument/n1:informationRecipient/n1:intendedRecipient/n1:informationRecipient/n1:name"/>
  2209. </xsl:call-template>
  2210. 선생님 귀하
  2211. </h3>
  2212. <p>회송 환자의 진료결과를 다음과 같이 알려드리오니 향후 진료에 참고하시기 바랍니다.</p>
  2213. <p>귀원의 무궁한 발전을 기원합니다.</p>
  2214. <br/>
  2215. </xsl:when>
  2216. <xsl:when test="/n1:ClinicalDocument/n1:code/@code = '11488-4'">
  2217. <h3>
  2218. <xsl:value-of select="/n1:ClinicalDocument/n1:informationRecipient/n1:intendedRecipient/n1:receivedOrganization/n1:asOrganizationPartOf/n1:wholeOrganization/n1:name"/>
  2219. <xsl:text> </xsl:text>
  2220. <xsl:call-template name="show-name-kr">
  2221. <xsl:with-param name="name" select="/n1:ClinicalDocument/n1:informationRecipient/n1:intendedRecipient/n1:informationRecipient/n1:name"/>
  2222. </xsl:call-template>
  2223. 선생님 귀하
  2224. </h3>
  2225. <p>선생님께서 의뢰해주신 환자의 진료결과를 다음과 같이 알려드리오니 향후 진료에 참고하시기 바랍니다.</p>
  2226. <p>귀원의 무궁한 발전을 기원합니다.</p>
  2227. <br/>
  2228. </xsl:when>
  2229. <!-- 진료의뢰서 -->
  2230. <xsl:when test="/n1:ClinicalDocument/n1:code/@code = '57133-1' ">
  2231. <h3>
  2232. <xsl:value-of select="/n1:ClinicalDocument/n1:informationRecipient/n1:intendedRecipient/n1:receivedOrganization/n1:asOrganizationPartOf/n1:wholeOrganization/n1:name"/>
  2233. <xsl:text> </xsl:text>
  2234. <xsl:call-template name="show-name-kr">
  2235. <xsl:with-param name="name" select="/n1:ClinicalDocument/n1:informationRecipient/n1:intendedRecipient/n1:informationRecipient/n1:name"/>
  2236. </xsl:call-template>
  2237. 선생님 귀하
  2238. </h3>
  2239. <br/>
  2240. </xsl:when>
  2241. <xsl:otherwise></xsl:otherwise>
  2242. </xsl:choose>
  2243. </xsl:template>
  2244. <!-- 하단 문구 -->
  2245. <xsl:template name="addBottomComment">
  2246. <!--회신서 / 회송서 문구-->
  2247. <xsl:choose>
  2248. <xsl:when test="/n1:ClinicalDocument/n1:code/@code = '18761-7' or /n1:ClinicalDocument/n1:code/@code ='11488-4'">
  2249. <div class ="main_content">
  2250. <h3 style="text-align : center;">
  2251. 향후 귀병원에서 치료를 계속하실 계획이 있으시거나 더 궁금하신 사항은<br/>
  2252. 전화(000-000-0000) 또는 팩스(000-000-0000) 로 연락주시면 곧 회답하여 드리겠습니다.
  2253. </h3>
  2254. <br/>
  2255. <table border="0">
  2256. <tbody>
  2257. <tr>
  2258. <td width="50%"></td>
  2259. <td width="10%">
  2260. <h6>진료과</h6>
  2261. </td>
  2262. <td width="20%">
  2263. <xsl:value-of select="/n1:ClinicalDocument/n1:author/n1:assignedAuthor/n1:representedOrganization/n1:name"/>
  2264. </td>
  2265. <td width="10%">
  2266. <h6>진료의</h6>
  2267. </td>
  2268. <td width="10%">
  2269. <xsl:value-of select="/n1:ClinicalDocument/n1:author/n1:assignedAuthor/n1:assignedPerson/n1:name/n1:family"/>
  2270. <xsl:value-of select="/n1:ClinicalDocument/n1:author/n1:assignedAuthor/n1:assignedPerson/n1:name/n1:given"/>
  2271. </td>
  2272. </tr>
  2273. <tr>
  2274. <td></td>
  2275. <td colspan="2">
  2276. <h6>A 병원 진료협력센터</h6>
  2277. </td>
  2278. <td>
  2279. <h6>담당자</h6>
  2280. </td>
  2281. <td>
  2282. <xsl:value-of select="/n1:ClinicalDocument/n1:participant[@typeCode='AUT']/n1:associatedEntity/n1:associatedPerson/n1:name/n1:family"/>
  2283. <xsl:value-of select="/n1:ClinicalDocument/n1:participant[@typeCode='AUT']/n1:associatedEntity/n1:associatedPerson/n1:name/n1:given"/>
  2284. </td>
  2285. </tr>
  2286. </tbody>
  2287. </table>
  2288. <br/>
  2289. <h3 style="text-align : center;">
  2290. 이 기록은 의무기록에 근거하여 작성되었습니다.
  2291. </h3>
  2292. <br/>
  2293. <p style="text-align : right;">
  2294. 문의전화 : 000-000-0000 (A병원 진료협력센터)
  2295. </p>
  2296. </div>
  2297. </xsl:when>
  2298. <xsl:otherwise></xsl:otherwise>
  2299. </xsl:choose>
  2300. </xsl:template>
  2301. <!-- /##################### Comment ##################### -->
  2302. </xsl:stylesheet>