123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379 |
- <?xml version="1.0" encoding="UTF-8"?>
- <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">
- <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"/>
- <xsl:param name="limit-external-images" select="'yes'"/>
- <!-- ##################### variable ##################### -->
- <xsl:variable name="lc" select="'abcdefghijklmnopqrstuvwxyz'" />
- <xsl:variable name="uc" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'" />
- <xsl:variable name="simple-sanitizer-match">
- <xsl:text> "':;?`{}“”„‚’</xsl:text>
- </xsl:variable>
- <xsl:variable name="simple-sanitizer-replace" select="'***************'"/>
- <xsl:variable name="javascript-injection-warning">WARNING: Javascript injection attempt detected in source CDA document. Terminating</xsl:variable>
- <xsl:variable name="malicious-content-warning">WARNING: Potentially malicious content found in CDA document.</xsl:variable>
- <!--section counting variable-->
- <xsl:variable name="totalCount" select="count(/n1:ClinicalDocument/n1:component/n1:structuredBody/n1:component[n1:section])"/>
- <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)"/>
- <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)"/>
- <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'])"/>
- <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'])"/>
- <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'])"/>
- <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'])"/>
- <xsl:variable name="documentType" select="/n1:ClinicalDocument/n1:code/@code"/>
- <xsl:variable name="organizationOid" select="/n1:ClinicalDocument/n1:custodian/n1:assignedCustodian/n1:representedCustodianOrganization/n1:id/@root"/>
- <!--BPPC variable-->
- <xsl:variable name="consentSubjectRelationship">
- <xsl:call-template name="getGuardianRelationship">
- <xsl:with-param name="code" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:patient/n1:guardian/n1:code/@code"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="consentSubjectName">
- <xsl:choose>
- <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 !=''">
- <xsl:call-template name="show-name-kr">
- <xsl:with-param name="name" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:patient/n1:guardian/n1:guardianPerson/n1:name"/>
- </xsl:call-template>
- </xsl:when>
- <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">
- <xsl:call-template name="show-name-kr">
- <xsl:with-param name="name" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:patient/n1:name"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="consentSubjectTelecom">
- <xsl:choose>
- <xsl:when test="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:patient/n1:guardian/n1:telecom/@value != ''">
- <xsl:call-template name="show-telecom-kr">
- <xsl:with-param name="telecom" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:patient/n1:guardian/n1:telecom"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:telecom/@value != ''">
- <xsl:call-template name="show-telecom-kr">
- <xsl:with-param name="telecom" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:telecom"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="isBppc">
- <xsl:choose>
- <xsl:when test="count(/n1:ClinicalDocument/n1:templateId[@root='1.2.410.100110.40.2.2.1.1'])>0">
- <xsl:value-of select="1"/>
- </xsl:when>
- <xsl:when test="count(/n1:ClinicalDocument/n1:templateId[@root='1.2.410.100110.40.2.2.1.2'])>0">
- <xsl:value-of select="2"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="0"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <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']"/>
- <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']"/>
-
- <!-- document title -->
- <xsl:variable name="title">
- <xsl:choose>
- <xsl:when test="string-length(/n1:ClinicalDocument/n1:title) >= 1">
- <xsl:value-of select="/n1:ClinicalDocument/n1:title"/>
- </xsl:when>
- <xsl:when test="/n1:ClinicalDocument/n1:code/@displayName">
- <xsl:value-of select="/n1:ClinicalDocument/n1:code/@displayName"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>Clinical Document</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <!-- /##################### variable ##################### -->
- <!-- Main -->
- <xsl:template match="/">
- <xsl:apply-templates select="n1:ClinicalDocument"/>
- </xsl:template>
- <xsl:template match="n1:ClinicalDocument">
- <html xml:lang="ko">
- <head>
- <meta http-equiv='X-UA-Compatible' content='IE=8'/>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
- <meta http-equiv="Content-Style-Type" content="text/css" />
- <title>
- <xsl:value-of select="$title"/>
- </title>
- <xsl:call-template name="chooseCSS"/>
- </head>
- <body>
- <xsl:call-template name="chooseBody"/>
- <script type="text/javascript">
- <xsl:comment>
- <![CDATA[
- function Expend(spn) {
- var img = spn.firstChild;
- var div = spn.parentNode.parentNode.lastChild;
- if (div.style.display == "none") {
- div.style.display = "";
-
- img.src = "data:image/gif;base64,R0lGODlhDQAIAIABAGZmZv///yH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4zLWMwMTEgNjYuMTQ1NjYxLCAyMDEyLzAyLzA2LTE0OjU2OjI3ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M2IChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCQjRBQUMxQzM3NTUxMUU2OTcxNUQ5MkMyMDQwMjgxMSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCQjRBQUMxRDM3NTUxMUU2OTcxNUQ5MkMyMDQwMjgxMSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkJCNEFBQzFBMzc1NTExRTY5NzE1RDkyQzIwNDAyODExIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkJCNEFBQzFCMzc1NTExRTY5NzE1RDkyQzIwNDAyODExIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+Af/+/fz7+vn49/b19PPy8fDv7u3s6+rp6Ofm5eTj4uHg397d3Nva2djX1tXU09LR0M/OzczLysnIx8bFxMPCwcC/vr28u7q5uLe2tbSzsrGwr66trKuqqainpqWko6KhoJ+enZybmpmYl5aVlJOSkZCPjo2Mi4qJiIeGhYSDgoGAf359fHt6eXh3dnV0c3JxcG9ubWxramloZ2ZlZGNiYWBfXl1cW1pZWFdWVVRTUlFQT05NTEtKSUhHRkVEQ0JBQD8+PTw7Ojk4NzY1NDMyMTAvLi0sKyopKCcmJSQjIiEgHx4dHBsaGRgXFhUUExIREA8ODQwLCgkIBwYFBAMCAQAAIfkEAQAAAQAsAAAAAA0ACAAAAhIEgpnGuhaakhEieiF+e1o3gQUAOw==";
- }
- else {
- div.style.display = "none";
- img.src = "data:image/gif;base64,R0lGODlhDQAIAIABAGZmZv///yH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4zLWMwMTEgNjYuMTQ1NjYxLCAyMDEyLzAyLzA2LTE0OjU2OjI3ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M2IChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpFNUM2NDM2QTM3NTUxMUU2QjQ5MUVBMkYxN0E2MzQ2OSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpFNUM2NDM2QjM3NTUxMUU2QjQ5MUVBMkYxN0E2MzQ2OSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkU1QzY0MzY4Mzc1NTExRTZCNDkxRUEyRjE3QTYzNDY5IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkU1QzY0MzY5Mzc1NTExRTZCNDkxRUEyRjE3QTYzNDY5Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+Af/+/fz7+vn49/b19PPy8fDv7u3s6+rp6Ofm5eTj4uHg397d3Nva2djX1tXU09LR0M/OzczLysnIx8bFxMPCwcC/vr28u7q5uLe2tbSzsrGwr66trKuqqainpqWko6KhoJ+enZybmpmYl5aVlJOSkZCPjo2Mi4qJiIeGhYSDgoGAf359fHt6eXh3dnV0c3JxcG9ubWxramloZ2ZlZGNiYWBfXl1cW1pZWFdWVVRTUlFQT05NTEtKSUhHRkVEQ0JBQD8+PTw7Ojk4NzY1NDMyMTAvLi0sKyopKCcmJSQjIiEgHx4dHBsaGRgXFhUUExIREA8ODQwLCgkIBwYFBAMCAQAAIfkEAQAAAQAsAAAAAA0ACAAAAhOMD6cKvdzci4HCZGyVyOnLTUABADs=";
- }
-
- }
- function popupView(page)
- {
- try{
- window.open(page, "", "width=1024px,height=768px,alwaysRaised=yes,resizable=yes,center=yes,status=no");
- }
- catch(exception){
- }
- }
-
- function popupViewNew(url, kosUid, oragnizationOid)
- {
- try{
- var page = url;
- var mapForm = document.createElement("form");
- var milliseconds = new Date().getTime();
- var windowName = page + milliseconds;
- var enc = "";
- mapForm.target = windowName;
- mapForm.method = "POST";
- mapForm.action = page;
-
- var mapInput = document.createElement("input");
- mapInput.type = "hidden";
- mapInput.name = "document_uid";
- mapInput.value = kosUid;
- mapForm.appendChild(mapInput);
- var mapInput2 = document.createElement("input");
- mapInput2.type = "hidden";
- mapInput2.name = "hospital_oid"
- mapInput2.value = oragnizationOid;
- mapForm.appendChild(mapInput2);
-
- var mapInput3 = document.createElement("input");
- mapInput3.type = "hidden";
- mapInput3.name = "mpi_id";
- mapInput3.value = null;
- mapForm.appendChild(mapInput3);
- document.body.appendChild(mapForm);
- mapForm.submit();
- }
- catch(exception)
- { }
- }
- ]]>
- </xsl:comment>
- </script>
- </body>
- </html>
- </xsl:template>
- <!-- CSS -->
- <!-- New-version CSS-->
- <xsl:template name="chooseCSS">
- <xsl:choose>
- <!--BPPC-->
- <xsl:when test="$documentType = '57016-8'">
- <xsl:call-template name="addBpccCSS"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="addCSS"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <xsl:template name="addBpccCSS">
- <style type="text/css">
- <xsl:text>
- /* Reset */
- *{margin:0;padding:0}
- html, body {width:100%; height:100%; margin:0; padding:0; font-family:'맑은 고딕', '맑은고딕',Nanum Gothic, NanumGothic, '나눔고딕', '나눔 고딕', 'Nanum Gothic', 'NanumGothic', Dotum, '돋움', Gulim, '굴림',sans-serif;}
- body{font-size:12px; word-break:break-all;-ms-word-break:break-all;}
- 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;}
- h1, h2, h3, h4, h5, h6 {font-size:12px; text-align:left;}
- ul, ol, li {list-style:none;}
- abbr,acronym {border:0;}
- img{vertical-align:middle; border:none;}
- img, fieldset{border:none;}
- iframe{border-style: none;
- border-color: inherit;
- border-width: 0;}
- em, address{font-style:normal;}
- textarea{overflow:auto;}
- table{border-collapse:collapse; border-spacing:0;}
- input, select, textarea{font-size:100%; vertical-align:middle; box-sizing:border-box;}
- /* Hyper Link */
- a,
- a:link,
- a:visited{text-decoration:none !important;}
- a:active,
- a:hover{text-decoration:none !important;}
- /* Hidden Content */
- .skip{font-size: 1px; height: 1px; line-height: 1px; overflow: hidden; position: absolute; text-indent: 4px; white-space: nowrap; width: 1px;}
- /* hr , legend , caption */
- 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;}
- /* Png IE6 */
- * html .png24{tmp:expression(setPng24(this));}
- /* fix */
- .fix{*zoom:1;}
- .fix:after{content:""; clear:both; display:block;}
- /* Lang Exchange */
- .en{ime-mode:disabled; }
- .kr{ime-mode:active; }
- /* Cursor */
- .hand{cursor:pointer;}
- /* float */
- .fl{float:left;}
- .fr{float:right;}
- .clear{clear:both;}
- /* margin */
- .mgt5{margin-top:5px !important;}
- .mgt10{margin-top:10px !important;}
- .mgt15{margin-top:15px !important;}
- .mgt20{margin-top:20px !important;}
- .mgt25{margin-top:25px !important;}
- .mgt30{margin-top:30px !important;}
- .mgt35{margin-top:35px !important;}
- .mgt40{margin-top:40px !important;}
- .mgt45{margin-top:45px !important;}
- .mgt50{margin-top:50px !important;}
- .mgt55{margin-top:55px !important;}
- .mgt60{margin-top:60px !important;}
- .mgt70{margin-top:70px !important;}
- .mgt90{margin-top:90px !important;}
- .mgb5{margin-bottom:5px !important;}
- .mgb7{margin-bottom:7px !important;}
- .mgb10{margin-bottom:10px !important;}
- .mgb14{margin-bottom:14px !important;}
- .mgb15{margin-bottom:15px !important;}
- .mgb17{margin-bottom:17px !important;}
- .mgb20{margin-bottom:20px !important;}
- .mgb25{margin-bottom:25px !important;}
- .mgb30{margin-bottom:30px !important;}
- .mgb35{margin-bottom:35px !important;}
- .mgb40{margin-bottom:40px !important;}
- .mgb45{margin-bottom:45px !important;}
- .mgb50{margin-bottom:50px !important;}
- .mgb55{margin-bottom:55px !important;}
- .mgb60{margin-bottom:60px !important;}
- .mgb65{margin-bottom:65px !important;}
- .mgb80{margin-bottom:80px !important;}
- .mgb90{margin-bottom:90px !important;}
- .mgl5{margin-left:5px !important;}
- .mgl10{margin-left:10px !important;}
- .mgl15{margin-left:15px !important;}
- .mgl20{margin-left:20px !important;}
- .mgl25{margin-left:25px !important;}
- .mgl30{margin-left:30px !important;}
- .mgl35{margin-left:35px !important;}
- .mgl40{margin-left:40px !important;}
- .mgl45{margin-left:45px !important;}
- .mgl50{margin-left:50px !important;}
- .mgl55{margin-left:55px !important;}
- .mgl60{margin-left:60px !important;}
- .mgr5{margin-right:5px !important;}
- .mgr10{margin-right:10px !important;}
- .mgr15{margin-right:15px !important;}
- .mgr20{margin-right:20px !important;}
- .mgr25{margin-right:25px !important;}
- .mgr30{margin-right:30px !important;}
- .mgr35{margin-right:35px !important;}
- .mgr40{margin-right:40px !important;}
- .mgr45{margin-right:45px !important;}
- .mgr50{margin-right:50px !important;}
- .mgr55{margin-right:55px !important;}
- .mgr60{margin-right:60px !important;}
- .center{text-align:center !important;}
- .left{text-align:left !important;}
- .right{text-align:right !important;}
- /*색상 바꾸기*/
- .color_bg{text-align:center; position:absolute; top:3px; right:20px; padding:0 !important; margin:0 !important;}
- .color_bg li{margin:3px; display:inline-block; width:15px; height:15px;}
- .color_bg li a{padding:0 !important; display:inline-block; width:15px; height:15px !important; border-radius:5px; border:1px solid #fff;}
- .color_bg .blue{background:#306BBB !important;}
- .color_bg .green{background:#189922 !important;}
- .color_bg .mint{background:#26cd99 !important;}
- .color_bg .orange{background:#ff9900 !important;}
- .color_bg .violet{background:#5b39b1 !important;}
- body,html{background:#F4F4F4;}
- .body_wrap{width:700px; margin:0 auto; }
- .wrap{width:690px; margin:17px auto 30px;}
- .header h1{border:1px solid #DBDBDB; background:#fff; font-size:24px; font-weight:600; padding:15px; text-align:center;}
- .contents{margin-top:17px; border:1px solid #DBDBDB; border-top:2px solid #215fb4; background:#fff; padding:17px 26px 20px 26px;}
- .contents h2{font-size:14px; font-weight:600; margin-bottom:16px; line-height:1.4;}
- .contents h2 strong{font-weight:600; color:#215fb4;}
- .contents .info_agree{ font-size:13px; width:100%;}
- .contents .info_agree th{border:1px solid #DBDBDB; font-size:13px; background:#f9f9f9; color:#000; padding:3px 0px; font-weight:600; padding:6px;}
- .contents .info_agree td{border:1px solid #DBDBDB; font-size:12px; color:#666; line-height:1.4; padding:6px;}
- .agreement{margin:17px 0;}
- .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;}
- .agreement div strong{font-weight:500;}
- .agreement div p{float:right;}
- .agreement div p input{margin-right:5px;}
- .agreement div p label{margin-right:5px;}
- .contents1{border:1px solid #DBDBDB; border-left:2px solid #215fb4; background:#fff; }
- .chk_agree{font-size:13px; font-weight:600; float:left; margin:10px 15px;}
- .chk_agree td{padding:1px 10px;}
- .chk_agree td input{border:1px solid #cecece; height:25px;}
- .date_year{width:41.5px;}
- .date_mon{width:41.5px;}
- .date_day{width:41.5px;}
- .comm_input{width:210px;}
- .chk_input{width:200px; height:120px; margin-left:5px;}
- .sign{float:right; border-left:1px solid #DBDBDB; padding:16px 0 18px 25px; font-size:15px; font-weight:600; width:150px; height:95px;}
- </xsl:text>
- </style>
- </xsl:template>
- <!-- AS-IS CSS -->
- <xsl:template name="addCSS">
- <style type="text/css">
- <xsl:text>
- /* Reset */
- *{margin:0;padding:0}
- html, body {width:100%; height:100%; margin:0; padding:0; font-family:'맑은 고딕', '맑은고딕',Nanum Gothic, NanumGothic, '나눔고딕', '나눔 고딕', 'Nanum Gothic', 'NanumGothic', Dotum, '돋움', Gulim, '굴림',sans-serif;}
- body{font-size:12px; word-break:break-all;-ms-word-break:break-all;}
- 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;}
- h1, h2, h3, h4, h5, h6 {font-size:12px; text-align:left;}
- ul, ol, li {list-style:none;}
- abbr,acronym {border:0;}
- img{vertical-align:middle; border:none;}
- img, fieldset{border:none;}
- iframe{border-style: none;
- border-color: inherit;
- border-width: 0;}
- em, address{font-style:normal;}
- textarea{overflow:auto;}
- table{border-collapse:collapse; border-spacing:0;}
- input, select, textarea{font-size:100%; vertical-align:middle; box-sizing:border-box;}
- /* Hyper Link */
- a,
- a:link,
- a:visited{text-decoration:none !important;}
- a:active,
- a:hover{text-decoration:none !important;}
- /* Hidden Content */
- .skip{font-size: 1px; height: 1px; line-height: 1px; overflow: hidden; position: absolute; text-indent: 4px; white-space: nowrap; width: 1px;}
- /* hr , legend , caption */
- 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;}
- /* Png IE6 */
- * html .png24{tmp:expression(setPng24(this));}
- /* fix */
- .fix{*zoom:1;}
- .fix:after{content:""; clear:both; display:block;}
- /* Lang Exchange */
- .en{ime-mode:disabled; }
- .kr{ime-mode:active; }
- /* Cursor */
- .hand{cursor:pointer;}
- /* float */
- .fl{float:left;}
- .fr{float:right;}
- .clear{clear:both;}
- /* margin */
- .mgt5{margin-top:5px !important;}
- .mgt10{margin-top:10px !important;}
- .mgt15{margin-top:15px !important;}
- .mgt20{margin-top:20px !important;}
- .mgt25{margin-top:25px !important;}
- .mgt30{margin-top:30px !important;}
- .mgt35{margin-top:35px !important;}
- .mgt40{margin-top:40px !important;}
- .mgt45{margin-top:45px !important;}
- .mgt50{margin-top:50px !important;}
- .mgt55{margin-top:55px !important;}
- .mgt60{margin-top:60px !important;}
- .mgt70{margin-top:70px !important;}
- .mgt90{margin-top:90px !important;}
- .mgb5{margin-bottom:5px !important;}
- .mgb7{margin-bottom:7px !important;}
- .mgb10{margin-bottom:10px !important;}
- .mgb14{margin-bottom:14px !important;}
- .mgb15{margin-bottom:15px !important;}
- .mgb17{margin-bottom:17px !important;}
- .mgb20{margin-bottom:20px !important;}
- .mgb25{margin-bottom:25px !important;}
- .mgb30{margin-bottom:30px !important;}
- .mgb35{margin-bottom:35px !important;}
- .mgb40{margin-bottom:40px !important;}
- .mgb45{margin-bottom:45px !important;}
- .mgb50{margin-bottom:50px !important;}
- .mgb55{margin-bottom:55px !important;}
- .mgb60{margin-bottom:60px !important;}
- .mgb65{margin-bottom:65px !important;}
- .mgb80{margin-bottom:80px !important;}
- .mgb90{margin-bottom:90px !important;}
- .mgl5{margin-left:5px !important;}
- .mgl10{margin-left:10px !important;}
- .mgl15{margin-left:15px !important;}
- .mgl20{margin-left:20px !important;}
- .mgl25{margin-left:25px !important;}
- .mgl30{margin-left:30px !important;}
- .mgl35{margin-left:35px !important;}
- .mgl40{margin-left:40px !important;}
- .mgl45{margin-left:45px !important;}
- .mgl50{margin-left:50px !important;}
- .mgl55{margin-left:55px !important;}
- .mgl60{margin-left:60px !important;}
- .mgr5{margin-right:5px !important;}
- .mgr10{margin-right:10px !important;}
- .mgr15{margin-right:15px !important;}
- .mgr20{margin-right:20px !important;}
- .mgr25{margin-right:25px !important;}
- .mgr30{margin-right:30px !important;}
- .mgr35{margin-right:35px !important;}
- .mgr40{margin-right:40px !important;}
- .mgr45{margin-right:45px !important;}
- .mgr50{margin-right:50px !important;}
- .mgr55{margin-right:55px !important;}
- .mgr60{margin-right:60px !important;}
- .center{text-align:center !important;}
- .left{text-align:left !important;}
- .right{text-align:right !important;}
- /*색상 바꾸기*/
- .color_bg{text-align:center; position:absolute; top:3px; right:20px; padding:0 !important; margin:0 !important;}
- .color_bg li{margin:3px; display:inline-block; width:15px; height:15px;}
- .color_bg li a{padding:0 !important; display:inline-block; width:15px; height:15px !important; border-radius:5px; border:1px solid #fff;}
- .color_bg .blue{background:#306BBB !important;}
- .color_bg .green{background:#189922 !important;}
- .color_bg .mint{background:#26cd99 !important;}
- .color_bg .orange{background:#ff9900 !important;}
- .color_bg .violet{background:#5b39b1 !important;}
- /* Lay out */
- body,html{background:#fff;}
- .body_wrap{width:690px; margin:15px auto 0;}
- .wrap{width:690px; margin:0 auto; margin-bottom:30px;}
- .header{padding:0px 14px; margin-bottom:15px; background:#4468b8; border-radius:6px 6px 0 0;}
- .header > div{height:39px; padding:0 27px 0 22px;}
- .header h1{font-size:18px; font-weight:700; float:left; font-style:italic; color:#fff; line-height:39px; }
- .header .date{float:right; margin-top:15px; font-size:13px; color:#fff; font-style:italic;}
- .header .date strong{font-size:13px; font-weight:400;}
- .container{}
- .cntInfo{border:1px solid #ccc; padding:15px 17px; margin-bottom:17px;
- background:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NEQ3NjNGRkI5MDVBMTFFNjlGMTBEMjIzNEI3QzM5MUQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NEQ3NjNGRkM5MDVBMTFFNjlGMTBEMjIzNEI3QzM5MUQiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo0RDc2M0ZGOTkwNUExMUU2OUYxMEQyMjM0QjdDMzkxRCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo0RDc2M0ZGQTkwNUExMUU2OUYxMEQyMjM0QjdDMzkxRCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PjNS/L0AAABFSURBVHjaYvz//z8DJYCJgULAAmOEVl4HO2V1uyYjKWyKXcBItTAAOQnmLGLYVAtE+nqBJumA9l6geVKmjRfomhsBAgwA7ipWg1/hAMUAAAAASUVORK5CYII=') no-repeat 0 0;}
- .cntInfo .cnt{margin-bottom:13px; font-size:16px; font-weight:600; font-style:italic;}
- .cntInfo .cnt span{color:#666;}
- .main_content{background:#fff; border:1px solid #ccc; border-top:3px solid #4892d2; margin-bottom:17px; letter-spacing:-1px; border-radius:6px;}
- .main_content p{color:#333;}
- .main_content div { padding:15px 17px;}
- .main_content li
- { background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADRJREFUeNpijI+PV2FgYJgJxGxAXMwCJLqA2IkBApYyAQlOBgRgBqmoBGJRIOYB4lyAAAMA1KgE45THCrwAAAAASUVORK5CYII=) no-repeat 0 5px;
- font-size:13px; padding-left:10px; margin: 5px; color:#222;}
- .main_content div div { font-size:12px; color:#666; white-space:pre-wrap; word-break:break-all;}
- .main_content h3{font-size:13px; font-weight:600; margin-bottom:5px; color:#333;}
- .main_content h2{padding:0 17px 0 32px; height:37px; line-height:37px; border-bottom:1px solid #ccc; margin-bottom:0;
- background:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QzE5ODQ1QTk5MDY0MTFFNkIxNTJCQjM0ODkyRkQ4QzMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QzE5ODQ1QUE5MDY0MTFFNkIxNTJCQjM0ODkyRkQ4QzMiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpDMTk4NDVBNzkwNjQxMUU2QjE1MkJCMzQ4OTJGRDhDMyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpDMTk4NDVBODkwNjQxMUU2QjE1MkJCMzQ4OTJGRDhDMyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PqL9Ap8AAAA1SURBVHjaYhQJWfufAQperw5ilKtigPOZGPAAvJKM////xy0pW4mQfdTGwCgauo4KdgIEGABVSQ6xMsdZ1AAAAABJRU5ErkJggg==') no-repeat 18px 50%;}
- .contents_table { width:100%;}
- .contents_table th{font-size:13px; color:#4892d2; font-weight:600; border:1px solid #e7eaec; background:#fcfcfc; padding:6px 10px; }
- .contents_table td{font-size:12px; color:#666; border:1px solid #e7eaec; padding:6px;}
- .contents_table1{width:100%; margin-top :5px; }
- .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; }
- .contents_table1 td{font-size:12px; color:#666; border:1px solid #e7eaec;padding:6px 10px;}
- .expender{cursor:pointer;}
- .cnt{font-size:14px; font-weight:700; padding:0 2px 0 0; margin-bottom:6px;}
- .cnt img{float:right; margin-top:15px;}
- .listWrap{}
- .listWrap li{margin-top:5px; color:#666;}
- .listWrap li:fisrt-child{margin-top:0;}
- .patientInfo{text-align:center; margin-bottom:13px; background:#fcf8e3; height:60px; line-height:30px; border:1px solid #e2e7eb;}
- .patientInfo li{display:inline-block; zoom:1; *display:inline; margin-left:60px; font-size:13px; letter-spacing:0; color:#333;}
- .patientInfo li:first-child{margin-left:0;}
- .patientInfo li.name{font-weight:600;}
- .top{position:fixed; top:500px; left:500px;}
- .td_left{text-align:left !important;}
- <!-- 16.07.05 추가 -->
- <!-- PACS 버튼 생성관련 -->
- </xsl:text>
- </style>
- </xsl:template>
- <!-- ## Body ##-->
- <!-- Choose Body -->
- <xsl:template name="chooseBody">
- <xsl:choose>
- <xsl:when test="$isBppc='1'">
- <xsl:call-template name="BPPC"/>
- </xsl:when>
- <xsl:when test="$isBppc='2'">
- <xsl:call-template name="WITHDRAWAL"/>
- </xsl:when>
- <xsl:otherwise>
- <body>
- <xsl:call-template name="asisLayout"/>
- </body>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <!-- AS-IS Layout(기존레이아웃) -->
- <xsl:template name="asisLayout">
- <!-- body_wrap -->
- <div class="body_wrap">
- <!-- wrap -->
- <div class="wrap">
- <!-- title -->
- <xsl:call-template name="header-fix"/>
- <!-- /title -->
- <!-- container -->
- <!-- top content -->
- <div class="container fix">
- <div class="cntInfo">
- <!--수신자 정보-->
- <xsl:call-template name="informationRecipient_custom"/>
- <!--<xsl:call-template name="addComment"/>-->
- <!-- 환자 정보-->
- <xsl:call-template name="recordTarget_custom"/>
- <!-- 요양기관 정보 ( 생성기관 / 수신기관 ) -->
- <xsl:call-template name="organization_information"/>
- </div>
- <!-- /top content -->
- <!-- body -->
- <!-- content -->
- <div class="contents">
- <xsl:apply-templates select="n1:component/n1:structuredBody|n1:component/n1:nonXMLBody"/>
- </div>
- </div>
- <!-- /container -->
- </div>
- <!-- wrap -->
- </div>
- <!-- /body_wrap -->
- </xsl:template>
- <!-- ##################### AS-IS Header ##################### -->
- <!-- header - fix -->
- <xsl:template name="header-fix">
- <div class="header">
- <div class="fix">
- <h1>
- <xsl:value-of select="$title"/>
- </h1>
- <p class="date">
- 작성일
- <strong>
- <xsl:call-template name="getDate2">
- <xsl:with-param name="date" select="/n1:ClinicalDocument/n1:effectiveTime"/>
- </xsl:call-template>
- </strong>
- <br/>
- </p>
- </div>
- </div>
- </xsl:template>
- <!-- informantionRecipient-custom -->
- <xsl:template name="informationRecipient_custom">
- <xsl:if test="count(/n1:ClinicalDocument/n1:informationRecipient) > 0">
- <div>
- <h3 class="cnt">
- <xsl:value-of select="/n1:ClinicalDocument/n1:informationRecipient/n1:intendedRecipient/n1:receivedOrganization/n1:asOrganizationPartOf/n1:wholeOrganization/n1:name"/> 
- <span>
- <xsl:call-template name="show-name-kr">
- <xsl:with-param name="name" select="/n1:ClinicalDocument/n1:informationRecipient/n1:intendedRecipient/n1:informationRecipient/n1:name"/>
- </xsl:call-template> 선생님 귀하
- </span>
- <xsl:choose>
- <xsl:when test="/n1:ClinicalDocument/n1:code/@code = '57133-1'">
- <span style="float: right; font-size: 12px; font-style: normal;">
- 의뢰번호 : <xsl:value-of select="/n1:ClinicalDocument/n1:id/@extension"/>
- </span>
- </xsl:when>
- <xsl:when test="/n1:ClinicalDocument/n1:code/@code = '18761-7'">
- <span style="float: right; font-size: 12px; font-style: normal;">
- 회송번호 : <xsl:value-of select="/n1:ClinicalDocument/n1:id/@extension"/>
- </span>
- </xsl:when>
- <xsl:otherwise></xsl:otherwise>
- </xsl:choose>
- </h3>
- </div>
- </xsl:if>
- </xsl:template>
- <!-- recordTarget custom -->
- <xsl:template name="recordTarget_custom">
- <div>
- <ul class="patientInfo">
- <li class="name">
- <xsl:call-template name="show-name-kr">
- <xsl:with-param name="name" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:patient/n1:name"/>
- </xsl:call-template> / <xsl:call-template name="show-gender-kr">
- <xsl:with-param name="gender" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:patient/n1:administrativeGenderCode"/>
- </xsl:call-template>
- </li>
- <li class="birth">
- Birth. <xsl:call-template name="getDate">
- <xsl:with-param name="date" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:patient/n1:birthTime"/>
- </xsl:call-template>
- </li>
- <li class="tel">
- <!--Tel. <xsl:value-of select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:telecom/@value"/>-->
- <xsl:call-template name="show-telecom-kr">
- <xsl:with-param name="telecom" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:telecom"/>
- </xsl:call-template>
- </li>
- <br></br>
- <li class="addr" style="margin-left: 0px;">
- Addr. 
- <xsl:call-template name="show-address-kr">
- <xsl:with-param name="address" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:addr"/>
- </xsl:call-template>
- </li>
- </ul>
- </div>
- </xsl:template>
- <!-- organization_information -->
- <xsl:template name="organization_information">
- <table class="contents_table">
- <colgroup>
- <col width="20%" />
- <col width="20%" />
- <col width="15%" />
- <col width="45%" />
- </colgroup>
- <tbody>
- <tr>
- <xsl:choose>
- <xsl:when test="/n1:ClinicalDocument/n1:code/@code = '57133-1'">
- <th>의뢰병원</th>
- </xsl:when>
- <xsl:when test="/n1:ClinicalDocument/n1:code/@code = '11488-4'">
- <th>회신병원</th>
- </xsl:when>
- <xsl:when test="/n1:ClinicalDocument/n1:code/@code = '18761-7'">
- <th>회송병원</th>
- </xsl:when>
- <xsl:otherwise>
- <th>요양기관</th>
- </xsl:otherwise>
- </xsl:choose>
- <td style="text-align:center">
- <xsl:value-of select="/n1:ClinicalDocument/n1:custodian/n1:assignedCustodian/n1:representedCustodianOrganization/n1:name"/>
- </td>
- <td style="text-align: center;">
- <xsl:call-template name="show-name-kr">
- <xsl:with-param name="name" select="/n1:ClinicalDocument/n1:author/n1:assignedAuthor/n1:assignedPerson/n1:name"/>
- </xsl:call-template>
- </td>
- <td>
- <xsl:call-template name="show-address-kr">
- <xsl:with-param name="address" select="/n1:ClinicalDocument/n1:custodian/n1:assignedCustodian/n1:representedCustodianOrganization/n1:addr"/>
- </xsl:call-template>
- </td>
- </tr>
- <xsl:if test="count(/n1:ClinicalDocument/n1:informationRecipient) > 0">
- <tr>
- <th>협진병원</th>
- <td style="text-align:center">
- <xsl:value-of select="/n1:ClinicalDocument/n1:informationRecipient/n1:intendedRecipient/n1:receivedOrganization/n1:asOrganizationPartOf/n1:wholeOrganization/n1:name"/>
- </td>
- <td style="text-align: center;">
- <xsl:call-template name="show-name-kr">
- <xsl:with-param name="name" select="/n1:ClinicalDocument/n1:informationRecipient/n1:intendedRecipient/n1:informationRecipient/n1:name"/>
- </xsl:call-template>
- </td>
- <td>
- <xsl:call-template name="show-address-kr">
- <xsl:with-param name="address" select="/n1:ClinicalDocument/n1:informationRecipient/n1:intendedRecipient/n1:receivedOrganization/n1:asOrganizationPartOf/n1:wholeOrganization/n1:addr"/>
- </xsl:call-template>
- </td>
- </tr>
- </xsl:if>
- </tbody>
- </table>
- </xsl:template>
- <!-- ##################### AS-IS Header ##################### -->
- <!-- ########################################################### -->
- <!-- ##################### Narrative Block ##################### -->
- <!-- ########################################################### -->
- <!-- show StructuredBody -->
- <xsl:template match="n1:component/n1:structuredBody">
- <xsl:for-each select="n1:component/n1:section">
- <xsl:call-template name="section"/>
- </xsl:for-each>
- </xsl:template>
- <!-- Section -->
- <xsl:template name="section">
- <div class="main_content">
- <h2 class="content_title1 cnt">
- <xsl:call-template name="section-title">
- <xsl:with-param name="title" select="n1:title"/>
- </xsl:call-template>
- <span class="expender" onclick="javascript: Expend(this);">
- <img src="data:image/gif;base64,R0lGODlhDQAIAIABAGZmZv///yH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4zLWMwMTEgNjYuMTQ1NjYxLCAyMDEyLzAyLzA2LTE0OjU2OjI3ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M2IChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCQjRBQUMxQzM3NTUxMUU2OTcxNUQ5MkMyMDQwMjgxMSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCQjRBQUMxRDM3NTUxMUU2OTcxNUQ5MkMyMDQwMjgxMSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkJCNEFBQzFBMzc1NTExRTY5NzE1RDkyQzIwNDAyODExIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkJCNEFBQzFCMzc1NTExRTY5NzE1RDkyQzIwNDAyODExIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+Af/+/fz7+vn49/b19PPy8fDv7u3s6+rp6Ofm5eTj4uHg397d3Nva2djX1tXU09LR0M/OzczLysnIx8bFxMPCwcC/vr28u7q5uLe2tbSzsrGwr66trKuqqainpqWko6KhoJ+enZybmpmYl5aVlJOSkZCPjo2Mi4qJiIeGhYSDgoGAf359fHt6eXh3dnV0c3JxcG9ubWxramloZ2ZlZGNiYWBfXl1cW1pZWFdWVVRTUlFQT05NTEtKSUhHRkVEQ0JBQD8+PTw7Ojk4NzY1NDMyMTAvLi0sKyopKCcmJSQjIiEgHx4dHBsaGRgXFhUUExIREA8ODQwLCgkIBwYFBAMCAQAAIfkEAQAAAQAsAAAAAA0ACAAAAhIEgpnGuhaakhEieiF+e1o3gQUAOw==" alt="" />
- </span>
- </h2>
- <xsl:call-template name="section-text"/>
- <xsl:for-each select="n1:component/n1:section">
- <xsl:call-template name="nestedSection">
- <xsl:with-param name="margin" select="2"/>
- </xsl:call-template>
- </xsl:for-each>
- </div>
- </xsl:template>
- <!-- section title-->
- <xsl:template name="section-title">
- <xsl:param name="title"/>
- <xsl:value-of select="$title"/>
- </xsl:template>
- <!-- section title-link-->
- <xsl:template name="section-title-Link">
- <xsl:param name="title"/>
- <xsl:choose>
- <xsl:when test="count(/n1:ClinicalDocument/n1:component/n1:structuredBody/n1:component[n1:section]) > 1">
- <a name="{generate-id($title)}" href="#toc" style="color:#222;">
- <xsl:value-of select="$title"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$title"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <!-- section author -->
- <!-- top-level section Text -->
- <xsl:template name="section-text">
- <div>
- <xsl:apply-templates select="n1:text"/>
- </div>
- <!--<div class ="main_content">
- <div>
- <xsl:apply-templates select="n1:text"/>
- </div>
- </div>-->
- </xsl:template>
- <!-- nested component/section -->
- <xsl:template name="nestedSection">
- <xsl:param name="margin"/>
- <h4 style="margin-left : {$margin}em;">
- <xsl:value-of select="n1:title"/>
- </h4>
- <div style="margin-left : {$margin}em;">
- <xsl:apply-templates select="n1:text"/>
- </div>
- <xsl:for-each select="n1:component/n1:section">
- <xsl:call-template name="nestedSection">
- <xsl:with-param name="margin" select="2*$margin"/>
- </xsl:call-template>
- </xsl:for-each>
- </xsl:template>
- <!-- paragraph -->
- <xsl:template match="n1:paragraph">
- <p>
- <xsl:apply-templates/>
- </p>
- </xsl:template>
- <!-- pre format -->
- <xsl:template match="n1:pre">
- <pre>
- <xsl:apply-templates/>
- </pre>
- </xsl:template>
- <!-- Content w/ deleted text is hidden -->
- <xsl:template match="n1:content[@revised='delete']"/>
- <!-- content -->
- <xsl:template match="n1:content">
- <span>
- <xsl:apply-templates select="@styleCode"/>
- <xsl:apply-templates/>
- </span>
- </xsl:template>
- <!-- line break -->
- <xsl:template match="n1:br">
- <xsl:element name='br'>
- <xsl:apply-templates/>
- </xsl:element>
- </xsl:template>
- <!-- list -->
- <xsl:template match="n1:list">
- <xsl:if test="n1:caption">
- <p>
- <strong>
- <xsl:apply-templates select="n1:caption"/>
- </strong>
- </p>
- </xsl:if>
- <ul>
- <xsl:for-each select="n1:item">
- <li>
- <xsl:apply-templates/>
- </li>
- </xsl:for-each>
- </ul>
- </xsl:template>
- <xsl:template match="n1:list[@listType='ordered']">
- <xsl:if test="n1:caption">
- <span style="font-weight:bold; ">
- <xsl:apply-templates select="n1:caption"/>
- </span>
- </xsl:if>
- <ol>
- <xsl:for-each select="n1:item">
- <li>
- <xsl:apply-templates/>
- </li>
- </xsl:for-each>
- </ol>
- </xsl:template>
- <!-- caption -->
- <xsl:template match="n1:caption">
- <xsl:apply-templates/>
- <xsl:text>: </xsl:text>
- </xsl:template>
- <!-- Tables -->
- <xsl:variable name="table-elem-attrs">
- <in:tableElems>
- <in:elem name="table">
- <in:attr name="ID"/>
- <in:attr name="language"/>
- <in:attr name="styleCode"/>
- <in:attr name="summary"/>
- <in:attr name="width"/>
- <in:attr name="border"/>
- <in:attr name="frame"/>
- <in:attr name="rules"/>
- <in:attr name="cellspacing"/>
- <in:attr name="cellpadding"/>
- </in:elem>
- <in:elem name="thead">
- <in:attr name="ID"/>
- <in:attr name="language"/>
- <in:attr name="styleCode"/>
- <in:attr name="align"/>
- <in:attr name="char"/>
- <in:attr name="charoff"/>
- <in:attr name="valign"/>
- </in:elem>
- <in:elem name="tfoot">
- <in:attr name="ID"/>
- <in:attr name="language"/>
- <in:attr name="styleCode"/>
- <in:attr name="align"/>
- <in:attr name="char"/>
- <in:attr name="charoff"/>
- <in:attr name="valign"/>
- </in:elem>
- <in:elem name="tbody">
- <in:attr name="ID"/>
- <in:attr name="language"/>
- <in:attr name="styleCode"/>
- <in:attr name="align"/>
- <in:attr name="char"/>
- <in:attr name="charoff"/>
- <in:attr name="valign"/>
- </in:elem>
- <in:elem name="colgroup">
- <in:attr name="ID"/>
- <in:attr name="language"/>
- <in:attr name="styleCode"/>
- <in:attr name="span"/>
- <in:attr name="width"/>
- <in:attr name="align"/>
- <in:attr name="char"/>
- <in:attr name="charoff"/>
- <in:attr name="valign"/>
- </in:elem>
- <in:elem name="col">
- <in:attr name="ID"/>
- <in:attr name="language"/>
- <in:attr name="styleCode"/>
- <in:attr name="span"/>
- <in:attr name="width"/>
- <in:attr name="align"/>
- <in:attr name="char"/>
- <in:attr name="charoff"/>
- <in:attr name="valign"/>
- </in:elem>
- <in:elem name="tr">
- <in:attr name="ID"/>
- <in:attr name="language"/>
- <in:attr name="styleCode"/>
- <in:attr name="align"/>
- <in:attr name="char"/>
- <in:attr name="charoff"/>
- <in:attr name="valign"/>
- </in:elem>
- <in:elem name="th">
- <in:attr name="ID"/>
- <in:attr name="language"/>
- <in:attr name="styleCode"/>
- <in:attr name="abbr"/>
- <in:attr name="axis"/>
- <in:attr name="headers"/>
- <in:attr name="scope"/>
- <in:attr name="rowspan"/>
- <in:attr name="colspan"/>
- <in:attr name="align"/>
- <in:attr name="char"/>
- <in:attr name="charoff"/>
- <in:attr name="valign"/>
- </in:elem>
- <in:elem name="td">
- <in:attr name="ID"/>
- <in:attr name="language"/>
- <in:attr name="styleCode"/>
- <in:attr name="abbr"/>
- <in:attr name="axis"/>
- <in:attr name="headers"/>
- <in:attr name="scope"/>
- <in:attr name="rowspan"/>
- <in:attr name="colspan"/>
- <in:attr name="align"/>
- <in:attr name="char"/>
- <in:attr name="charoff"/>
- <in:attr name="valign"/>
- </in:elem>
- </in:tableElems>
- </xsl:variable>
- <xsl:template name="output-attrs">
- <xsl:variable name="elem-name" select="local-name(.)"/>
- <xsl:for-each select="@*">
- <xsl:variable name="attr-name" select="local-name(.)"/>
- <xsl:variable name="source" select="."/>
- <xsl:variable name="lcSource" select="translate($source, $uc, $lc)"/>
- <xsl:variable name="scrubbedSource" select="translate($source, $simple-sanitizer-match, $simple-sanitizer-replace)"/>
- <xsl:choose>
- <xsl:when test="contains($lcSource,'javascript')">
- <p>
- <xsl:value-of select="$javascript-injection-warning"/>
- </p>
- <xsl:message terminate="yes">
- <xsl:value-of select="$javascript-injection-warning"/>
- </xsl:message>
- </xsl:when>
- <xsl:when test="$attr-name='styleCode'">
- <xsl:apply-templates select="."/>
- </xsl:when>
- <!--<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])">
- <xsl:message>
- <xsl:value-of select="$attr-name"/> is not legal in <xsl:value-of select="$elem-name"/>
- </xsl:message>
- </xsl:when>-->
- <xsl:when test="not($source = $scrubbedSource)">
- <p>
- <xsl:value-of select="$malicious-content-warning"/>
- </p>
- <xsl:message>
- <xsl:value-of select="$malicious-content-warning"/>
- </xsl:message>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </xsl:template>
- <!-- 16. 06 .22 추가-->
- <xsl:template match="n1:table">
- <xsl:element name="{local-name()}">
- <xsl:attribute name="class">contents_table1</xsl:attribute>
- <xsl:call-template name="output-attrs"/>
- <xsl:apply-templates/>
- </xsl:element>
- </xsl:template>
- <xsl:template match="n1:thead | n1:tfoot | n1:tbody | n1:colgroup | n1:col | n1:tr | n1:th | n1:td">
- <xsl:element name="{local-name()}">
- <xsl:call-template name="output-attrs"/>
- <xsl:apply-templates/>
- </xsl:element>
- </xsl:template>
- <xsl:template match="n1:table/n1:caption">
- <span style="font-weight:bold; ">
- <xsl:apply-templates/>
- </span>
- </xsl:template>
- <!-- RenderMultiMedia -->
- <!-- Stylecode -->
- <xsl:template match="//n1:*[@styleCode]">
- <xsl:if test="@styleCode='Bold'">
- <b>
- <xsl:apply-templates/>
- </b>
- </xsl:if>
- <xsl:if test="@styleCode='Italics'">
- <xsl:element name="i">
- <xsl:apply-templates/>
- </xsl:element>
- </xsl:if>
- <xsl:if test="@styleCode='Underline'">
- <xsl:element name="u">
- <xsl:apply-templates/>
- </xsl:element>
- </xsl:if>
- <xsl:if test="contains(@styleCode,'Bold') and contains(@styleCode,'Italics') and not (contains(@styleCode, 'Underline'))">
- <xsl:element name="b">
- <xsl:element name="i">
- <xsl:apply-templates/>
- </xsl:element>
- </xsl:element>
- </xsl:if>
- <xsl:if test="contains(@styleCode,'Bold') and contains(@styleCode,'Underline') and not (contains(@styleCode, 'Italics'))">
- <xsl:element name="b">
- <xsl:element name="u">
- <xsl:apply-templates/>
- </xsl:element>
- </xsl:element>
- </xsl:if>
- <xsl:if test="contains(@styleCode,'Italics') and contains(@styleCode,'Underline') and not (contains(@styleCode, 'Bold'))">
- <xsl:element name="i">
- <xsl:element name="u">
- <xsl:apply-templates/>
- </xsl:element>
- </xsl:element>
- </xsl:if>
- <xsl:if test="contains(@styleCode,'Italics') and contains(@styleCode,'Underline') and contains(@styleCode, 'Bold')">
- <xsl:element name="b">
- <xsl:element name="i">
- <xsl:element name="u">
- <xsl:apply-templates/>
- </xsl:element>
- </xsl:element>
- </xsl:element>
- </xsl:if>
- <xsl:if test="not (contains(@styleCode,'Italics') or contains(@styleCode,'Underline') or contains(@styleCode, 'Bold'))">
- <xsl:apply-templates/>
- </xsl:if>
- </xsl:template>
- <!-- Superscript or Subscript -->
- <xsl:template match="n1:sup">
- <xsl:element name="sup">
- <xsl:apply-templates/>
- </xsl:element>
- </xsl:template>
- <xsl:template match="n1:sub">
- <xsl:element name="sub">
- <xsl:apply-templates/>
- </xsl:element>
- </xsl:template>
- <!-- linkHtml -->
- <xsl:template match="n1:linkHtml">
- <xsl:choose>
- <!-- 06.28 PACS ICON 관련 부분 추가-->
- <xsl:when test="contains(./@ID, 'PACS')">
- <xsl:call-template name="addPacsIcon">
- <xsl:with-param name="href" select="./@href"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="linkTargetContainsJavaScript">
- <xsl:call-template name="containsJavaScript">
- <xsl:with-param name="reference" select="./@href"></xsl:with-param>
- </xsl:call-template>
- </xsl:variable>
- <xsl:if test="$linkTargetContainsJavaScript != 'true'">
- <xsl:if test="string-length(./@href) > 0 or string-length(./text()) > 0">
- <xsl:variable name="linkText">
- <xsl:choose>
- <xsl:when test="string-length(./text()) > 0">
- <xsl:value-of select="./text()"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat('link:',./@href)"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="linkTarget">
- <xsl:choose>
- <xsl:when test="string-length(./@href) > 1 and starts-with(./@href, '#')">
- <xsl:variable name="referenceId" select="substring-after(./@href, '#')"/>
- <xsl:variable name="attachmentReference">
- <xsl:choose>
- <xsl:when test="//n1:observationMedia/@ID=$referenceId">true</xsl:when>
- <xsl:otherwise>false</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="$attachmentReference='true'">
- <xsl:if test="//n1:observationMedia/@ID=$referenceId">
- <xsl:value-of select="//n1:observationMedia[@ID=$referenceId]/n1:value/n1:reference/@value"/>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat('#', $referenceId)"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="not(starts-with(./@href, '#')) and string-length(./@href) > 0">
- <xsl:value-of select="./@href"/>
- </xsl:when>
- </xsl:choose>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="string-length($linkTarget)=0">
- <xsl:element name="a">
- <xsl:value-of select="$linkText"/>
- </xsl:element>
- </xsl:when>
- <xsl:otherwise>
- <xsl:element name="a">
- <xsl:attribute name="href">
- <xsl:value-of select="$linkTarget"/>
- </xsl:attribute>
- <xsl:value-of select="$linkText"/>
- </xsl:element>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <xsl:template name="containsJavaScript">
- <xsl:param name="reference"/>
- <xsl:variable name="upperCaseReference">
- <xsl:call-template name="caseUp">
- <xsl:with-param name="data" select="$reference"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="contains($upperCaseReference, 'JAVASCRIPT') or contains($upperCaseReference, 'JSCRIPT')">true</xsl:when>
- <xsl:otherwise>false</xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <!-- PACS ICON-->
- <xsl:template name="addPacsIcon">
- <xsl:param name="href"/>
- <xsl:element name="a">
- <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>
- <xsl:element name="img">
- <xsl:attribute name="width">50</xsl:attribute>
- <xsl:attribute name="height">20</xsl:attribute>
- <xsl:attribute name="class">main_section_button</xsl:attribute>
- <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>
- </xsl:element>
- </xsl:element>
- </xsl:template>
- <!-- BPPC Body-->
- <xsl:template name="BPPC">
- <body>
- <!-- body_wrap -->
- <div class="body_wrap">
- <!-- wrap -->
- <div class="wrap">
- <div class="header">
- <h1>
- <xsl:value-of select="/n1:ClinicalDocument/n1:title"/>
- </h1>
- </div>
- <div class="contents">
- <h2>
- 본인은 원활한 진료서비스 제공을 위하여 의료기관에서 작성한 본인의 개인정보 및 의무기록 등 진료정보를 타 의료기관 내원 진료 시 활용(이하 “진료정보교류서비스”라 한다)하고,
- 진료정보교류서비스 평가 및 분석 자료로 활용될 수 있다는 사실에 대해 충분한 설명을 듣고 이해하였으며, 이에 아래와 같이 동의합니다.<br/>
- ※ 동의서 보관방법 : 서면으로 제출한 본 동의서는 개별 의료기관에서 보관하지 않고, 전자적으로 변환하여 진료정보교류시스템(보건복지부)에서 보관합니다.
- </h2>
- <table class="info_agree" border="0" cellpadding="0" cellspacing="0">
- <colgroup>
- <col width="20%" />
- <col width="20%" />
- <col width="20%" />
- <col width="20%" />
- <col width="20%" />
- </colgroup>
- <tr>
- <th rowspan="3">동의주체</th>
- <th style="text-align: left;">성 명</th>
- <td>
- <xsl:call-template name="show-name-kr">
- <xsl:with-param name="name" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:patient/n1:name"/>
- </xsl:call-template>
- </td>
- <th style="text-align: left;">전화번호</th>
- <td>
- <xsl:call-template name="show-telecom-kr">
- <xsl:with-param name="telecom" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:telecom"/>
- </xsl:call-template>
- </td>
- </tr>
- <tr>
- <th style="text-align: left;">생년월일(주민등록번호)</th>
- <td colspan="4">
- <xsl:call-template name="getDate">
- <xsl:with-param name="date" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:patient/n1:birthTime"/>
- </xsl:call-template>
- </td>
- </tr>
- <tr>
- <th style="text-align: left;">주 소</th>
- <td colspan="4">
- <xsl:call-template name="show-address-kr">
- <xsl:with-param name="address" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:addr"/>
- </xsl:call-template>
- </td>
- </tr>
- </table>
- <table class="info_agree" border="0" cellpadding="0" cellspacing="0">
- <colgroup>
- <col width="20%" />
- <col width="20%" />
- <col width="60%" />
- </colgroup>
- <caption>개인정보 제공 동의서 양식</caption>
- <tr>
- <th rowspan="3" width="17%">제공하는 정보 항목</th>
- <th style="text-align: left;">[1] 개인정보</th>
- <td>성명, 연락처(법정대리인의 성명, 연락처),주소</td>
- </tr>
- <tr>
- <th style="text-align: left;">[2] 고유식별정보</th>
- <td>주민등록번호, 외국인등록번호 </td>
- </tr>
- <tr>
- <th style="text-align: left;">
- [3] 민감정보
- <br />(진료정보)
- </th>
- <td>
- ① 수진일별 처방 내용(약 처방, 검사 내역)<br />
- ② 진단내용<br />
- ③ 수술을 시행하는 경우 수술에 관한 내용(수술일, 수술명 등 진료기록지 등에 기재되는 일체의 수술정보)<br />
- ④ 외래접수 정보(진료과, 진료의·주치의)<br />
- ⑤ 입퇴원정보(입원일, 퇴원일 등 일체의 입퇴원 정보)<br />
- ⑥ 예약정보(일시, 내용 등 일체의 예약정보)<br />
- ⑦ 예방접종 내역 ⑧ 알레르기 및 부작용 정보<br />
- ⑨ 생체신호 정보 및 흡연, 음주상태<br />
- ⑩ 신고된 법정 전염성 감염병 정보<br />
- ⑪ 환자상태 및 회송사유<br/>
- </td>
- </tr>
- <tr>
- <th>제공·이용의 목적</th>
- <td colspan="2">
- ① 진료정보교류시스템을 활용한 의료인간 진료정보 전달로 진료서비스의 원활한 제공<br />
- ② 경제적·의학적 편익분석을 위하여 행해지는 진료정보교류서비스에 대한 평가·분석<br />
- </td>
- </tr>
- <tr>
- <th>제공받는 자</th>
- <td colspan="2">
- ① 본인이 내원하여 진료서비스를 제공받는 의료기관<br/>
- (다만, 진료정보교류시스템을 사용하는 의료기관에 한정)<br/>
- ② 보건복지부 (동의서관리, 진료정보교류서비스 평가자료로 한정)
- </td>
- </tr>
- <tr>
- <th>보유 및 이용기간</th>
- <td colspan="2">
- ① 본 동의서의 유효기간은 “진료정보교류에 관한 개인정보 제공동의(전체) 철회서” 제출 전까지입니다.<br />
- ② 본인(법정대리인)이 진료정보교류에 관한 개인정보 제공동의를 철회하는 경우 개인정보보호법제36조 및 제37조에 의하여 즉시 삭제 및 처리를 정지합니다.<br />
- ③ 다만 위 제①,②항에도 불구하고 법령에 의하여 의무적으로 보존이 필요한 기간 동안에는 해당 정보가 보유됩니다.<br />
- </td>
- </tr>
- <tr>
- <th>
- 동의 거부 권리 및<br/>동의 거부 따른 불이익 또는 제한사항
- </th>
- <td colspan="2">
- ① 귀하는 개인정보 제공 동의를 거부할 권리가 있습니다.<br />
- ② 동의를 거부할 경우 별도의 불이익은 없으며, 다만 진료정보교류시스템을 활용하지 못함으로써 진료를 의뢰하는 경우
- 진료접수 대기시간이 소요될 수 있으며 별도의 의무기록송부절차가 필요함을 알려드립니다.<br />
- </td>
- </tr>
- <tr></tr>
- <tr>
- <th>동의 제외사항</th>
- <th width="17%">진료과</th>
- <td>
- <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">
- <xsl:variable name="position" select="position()"/>
- <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]"/>
- <xsl:text> </xsl:text>
- </xsl:for-each>
- </td>
- </tr>
- </table>
- </div>
- <div class="agreement">
- <xsl:call-template name="chooseConsentMethodType"/>
- <div class="">
- <strong>본인(법정대리인)은 [1]개인정보의 제공·이용에 동의합니다. (필수)</strong>
- <p>
- <input type="radio" name="agree1" value="yes1" id="yes1" checked="checked"/>
- <label for="yes1">예</label>
- <input type="radio" name="agree1" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="no1">아니오</label>
- </p>
- </div>
- <div class="">
- <strong>본인(법정대리인)은 [2]고유식별정보(주민등록번호)의 제공·이용에 동의합니다. (필수)</strong>
- <p>
- <input type="radio" name="agree2" value="yes2" id="yes2" checked="checked"/>
- <label for="yes2">예</label>
- <input type="radio" name="agree2" value="no2" id="no2" disabled="true" style="pointer-events: none;"/>
- <label for="no2">아니오</label>
- </p>
- </div>
- <div class="">
- <strong>본인(법정대리인)은 [3]민감(진료)정보의 제공·이용에 동의합니다. (필수)</strong>
- <p>
- <input type="radio" name="agree3" value="yes3" id="yes3" checked="checked"/>
- <label for="yes3">예</label>
- <input type="radio" name="agree3" value="no3" id="no3" disabled="true" style="pointer-events: none;"/>
- <label for="no3">아니오</label>
- </p>
- </div>
- </div>
- <div class="contents1 fix">
- <table class="chk_agree" border="0" cellpadding="0" cellspacing="0">
- <colgroup>
- <col width=""/>
- <col width=""/>
- </colgroup>
- <tr>
- <td>작성일자</td>
- <td>
- : 20
- <input type="text" class="date_year" value="{substring(/n1:ClinicalDocument/n1:effectiveTime/@value,3,2)}" readonly="readonly"/> 년
- <input type="text" class="date_mon" value="{substring(/n1:ClinicalDocument/n1:effectiveTime/@value,5,2)}" readonly="readonly"/> 월
- <input type="text" class="date_day" value="{substring(/n1:ClinicalDocument/n1:effectiveTime/@value,7,2)}" readonly="readonly"/> 일
- </td>
- </tr>
- <tr>
- <td>환자(대리인 또는 보호자) 이름</td>
- <td>
- : <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" />
- </td>
- <td></td>
- </tr>
- <tr>
- <td>환자와의관계</td>
- <td>
- : <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"/>
- </td>
- <td></td>
- </tr>
- <tr>
- <td>신청인(법정대리인) 연락처</td>
- <td >
- : <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"/>
- </td>
- <td></td>
- </tr>
- </table>
- <div class="sign">
- 서명 :
- <br/>
- <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 !=''">
- <xsl:call-template name="show-signature">
- <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"/>
- </xsl:call-template>
- </xsl:if>
- </div>
- </div>
- </div>
- <!-- /wrap -->
- </div>
- <!-- /body_wrap -->
- </body>
- </xsl:template>
- <!-- WITHDRAWAL Body-->
- <xsl:template name="WITHDRAWAL">
- <body>
- <!-- body_wrap -->
- <div class="body_wrap">
- <!-- wrap -->
- <div class="wrap">
- <div class="header">
- <h1>
- 진료정보교류 개인정보 제공 동의(
- <xsl:choose>
- <!--전체철회-->
- <xsl:when test="/n1:ClinicalDocument/n1:documentationOf/n1:serviceEvent/n1:code/@code = '1.2.410.100110.40.2.2.2.4'">
- <input id="chk001" type="checkbox" onclick="return false;" height="60 px;" />부분
- <input id="chk002" type="checkbox" checked="checked" onclick="return false;" />전체 ) 철회서
- </xsl:when>
- <!--부분철회-->
- <xsl:when test="/n1:ClinicalDocument/n1:documentationOf/n1:serviceEvent/n1:code/@code = '1.2.410.100110.40.2.2.2.5'">
- <input id="chk001" type="checkbox" checked="checked" onclick="return false;" height="60 px;" />부분
- <input id="chk002" type="checkbox" onclick="return false;" />전체 ) 철회서
- </xsl:when>
- <xsl:otherwise>
- <input id="chk001" type="checkbox" onclick="return false;" height="60 px;" />부분
- <input id="chk002" type="checkbox" onclick="return false;" />전체 ) 철회서
- </xsl:otherwise>
- </xsl:choose>
- </h1>
- </div>
- <div class="contents">
- <table class="info_agree" border="0" cellpadding="0" cellspacing="0">
- <caption>개인정보 제공 동의 철회서 양식</caption>
- <colgroup>
- <col width="15%" />
- <col width="15%" />
- <col width="15%" />
- <col width="30%" />
- <col width="25%" />
- </colgroup>
- <tr>
- <th style="text-align: center;">접수일</th>
- <td>
- <xsl:call-template name="getDate">
- <xsl:with-param name="date" select="/n1:ClinicalDocument/n1:effectiveTime"/>
- </xsl:call-template>
- </td>
- <th style="text-align: center;">접수기관</th>
- <td>
- <xsl:value-of select="/n1:ClinicalDocument/n1:custodian/n1:assignedCustodian/n1:representedCustodianOrganization/n1:name"/>
- </td>
- <th style="text-align: left;">
- 처리기간 10일 이내<br/>
- </th>
- </tr>
- </table>
- <table class="info_agree" border="0" cellpadding="0" cellspacing="0" style="margin-top: 10px;">
- <colgroup>
- <col width="20%" />
- <col width="20%" />
- <col width="20%" />
- <col width="20%" />
- <col width="20%" />
- </colgroup>
- <!--동의주체-->
- <tr>
- <th rowspan="3">동의주체</th>
- <th style="text-align: left;">성 명</th>
- <td>
- <xsl:call-template name="show-name-kr">
- <xsl:with-param name="name" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:patient/n1:name"/>
- </xsl:call-template>
- </td>
- <th style="text-align: left;">전화번호</th>
- <td>
- <xsl:call-template name="show-telecom-kr">
- <xsl:with-param name="telecom" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:telecom"/>
- </xsl:call-template>
- </td>
- </tr>
- <tr>
- <th style="text-align: left;">
- 생년월일<br/>(주민등록번호)
- </th>
- <td colspan="4">
- <xsl:call-template name="getDate">
- <xsl:with-param name="date" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:patient/n1:birthTime"/>
- </xsl:call-template>
- </td>
- </tr>
- <tr>
- <th style="text-align: left;">주 소</th>
- <td colspan="4">
- <xsl:call-template name="show-address-kr">
- <xsl:with-param name="address" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:addr"/>
- </xsl:call-template>
- </td>
- </tr>
- <tr>
- <td colspan="5"></td>
- </tr>
- <tr>
- <th rowspan="5">철회내용</th>
- <th rowspan="2">
- 부분<br/> 의료기관
- </th>
- <th>
- 의료기관명<br>(동의 철회 요구)</br>
- </th>
- <td colspan="2">
- <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">
- <xsl:variable name="position" select="position()"/>
- <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]"/> 
- </xsl:for-each>
- </td>
- </tr>
- <!--10-->
- <tr>
- <td colspan="3">
- <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]"/>
- </td>
- </tr>
- <!--11-->
- <tr>
- <th rowspan="2">
- 부분<br/> 진료과
- </th>
- <th>
- 진료과명<br/>(동의 철회 요구)
- </th>
- <td colspan="2">
- <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">
- <xsl:variable name="position" select="position()"/>
- <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]"/>
- <xsl:text> </xsl:text>
- </xsl:for-each>
- </td>
- </tr>
- <!--12-->
- <tr>
- <td colspan="3">
- <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]"/>
- </td>
- </tr>
- <tr>
- <th>전체</th>
- <td colspan="3">
- <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]"/>
- </td>
- </tr>
- </table>
- <br/>
- <p>개인정보보호법 등에 따라 위와 같이 요구합니다.</p>
- </div>
-
- <div class="agreement">
- <xsl:call-template name="chooseWithdrawalMethodType"/>
- </div>
-
- <div class="contents1 fix" style="margin-top: 10px;">
- <table class="chk_agree" border="0" cellpadding="0" cellspacing="0">
- <colgroup>
- <col width=""/>
- <col width=""/>
- </colgroup>
- <tr>
- <td>작성일자</td>
- <td>
- : 20
- <input type="text" class="date_year" value="{substring(/n1:ClinicalDocument/n1:effectiveTime/@value,3,2)}" readonly="readonly"/> 년
- <input type="text" class="date_mon" value="{substring(/n1:ClinicalDocument/n1:effectiveTime/@value,5,2)}" readonly="readonly"/> 월
- <input type="text" class="date_day" value="{substring(/n1:ClinicalDocument/n1:effectiveTime/@value,7,2)}" readonly="readonly"/> 일
- </td>
- </tr>
- <tr>
- <td>환자(대리인 또는 보호자) 이름</td>
- <td>
- : <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" />
- </td>
- <td></td>
- </tr>
- <tr>
- <td>연락처</td>
- <td >
- : <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"/>
- </td>
- <td></td>
- </tr>
- <tr>
- <td>환자와의관계</td>
- <td>
- : <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"/>
- </td>
- <td></td>
- </tr>
- </table>
- <div class="sign">
- 서명 :
- <br/>
- <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 !=''">
- <xsl:call-template name="show-signature">
- <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"/>
- </xsl:call-template>
- </xsl:if>
- </div>
- </div>
- <div class="contents" style="border: 1px solid #DBDBDB; border-left: 2px solid #215fb4;">
- <ol>
- <li>1. ‘법정대리인’란은 대리인이 요구인일 때에만 적습니다.</li>
- <li>2. 진료정보교류에 대해 일부 의료기관에 대해서만 동의를 철회하는 경우, ‘부분 의료기관’란에[ √ ]표시를 하고, 의료기관명에 철회하고자 하는 의료기관 명칭을 나열하여야 합니다. [ √ ]를 하지 않거나 의료기관명을 나열하지 않으면 동의를 철회하지 않은 것으로 처리됩니다.</li>
- <li>3. 진료정보교류에 대해 일부 진료과에 대해서만 동의를 철회하는 경우, ‘부분 진료과’란에[ √ ]표시를 하고, 진료과명에 철회하고자 하는 진료과명을 나열하여야 합니다. [ √ ]를 하지 않거나 진료과명을 나열하지 않으면 동의를 철회하지 않은 것으로 처리됩니다.</li>
- <li>4. 진료교류정보 전체에 대해 철회를 요구하는 경우 ‘전체’ 란에 [ √ ] 표시를 하고 그 사유를 적습니다.</li>
- </ol>
- </div>
- </div>
- <!-- /wrap -->
- </div>
- <!-- /body_wrap -->
- </body>
- </xsl:template>
- <!-- ## Body ##-->
- <!-- show nonXMLBody -->
- <xsl:template match='n1:component/n1:nonXMLBody'>
- <xsl:choose>
- <!-- if there is a reference, use that in an IFRAME -->
- <xsl:when test='n1:text/n1:reference'>
- <xsl:variable name="source" select="string(n1:text/n1:reference/@value)"/>
- <xsl:variable name="lcSource" select="translate($source, $uc, $lc)"/>
- <xsl:variable name="scrubbedSource" select="translate($source, $simple-sanitizer-match, $simple-sanitizer-replace)"/>
- <xsl:message>
- <xsl:value-of select="$source"/>, <xsl:value-of select="$lcSource"/>
- </xsl:message>
- <xsl:choose>
- <xsl:when test="contains($lcSource,'javascript')">
- <p>
- <xsl:value-of select="$javascript-injection-warning"/>
- </p>
- <xsl:message>
- <xsl:value-of select="$javascript-injection-warning"/>
- </xsl:message>
- </xsl:when>
- <xsl:when test="not($source = $scrubbedSource)">
- <p>
- <xsl:value-of select="$malicious-content-warning"/>
- </p>
- <xsl:message>
- <xsl:value-of select="$malicious-content-warning"/>
- </xsl:message>
- </xsl:when>
- <xsl:otherwise>
- <iframe name='nonXMLBody' id='nonXMLBody' WIDTH='80%' HEIGHT='600' src='{$source}' sandbox=""/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test='n1:text/@mediaType="text/plain"'>
- <pre>
- <xsl:value-of select='n1:text/text()'/>
- </pre>
- </xsl:when>
- <xsl:otherwise>
- <pre>Cannot display the text</pre>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <xsl:template name="chooseConsentMethodType">
- <xsl:choose>
- <xsl:when test="$consentMethod = '0'">
- <div class="">
- <strong>동의수단</strong>
- <p>
- <input type="radio" name="electronic" value="yes1" id="yes1" checked="checked"/>
- <label for="electronic">서명패드</label>
- <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="document">서면동의</label>
- <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="record">온라인동의</label>
- <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="record">녹취</label>
- <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="record">전자동의서</label>
- <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="record">마우스서명</label>
- </p>
- </div>
- </xsl:when>
- <xsl:when test="$consentMethod = '1'">
- <div class="">
- <strong>동의수단</strong>
- <p>
- <input type="radio" name="electronic" value="yes1" id="yes1" disabled="true" style="pointer-events: none;"/>
- <label for="electronic">서명패드</label>
- <input type="radio" name="document" value="no1" id="no1" checked="checked"/>
- <label for="document">서면동의</label>
- <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="record">온라인동의</label>
- <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="record">녹취</label>
- <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="record">전자동의서</label>
- <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="record">마우스서명</label>
- </p>
- </div>
- </xsl:when>
- <xsl:when test="$consentMethod = '2'">
- <div class="">
- <strong>동의수단</strong>
- <p>
- <input type="radio" name="electronic" value="yes1" id="yes1" disabled="true" style="pointer-events: none;"/>
- <label for="electronic">서명패드</label>
- <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="document">서면동의</label>
- <input type="radio" name="record" value="no1" id="no1" checked="checked" />
- <label for="record">온라인동의</label>
- <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="document">녹취</label>
- <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="document">전자동의서</label>
- <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="document">마우스서명</label>
- </p>
- </div>
- </xsl:when>
- <xsl:when test="$consentMethod = '3'">
- <div class="">
- <strong>동의수단</strong>
- <p>
- <input type="radio" name="electronic" value="yes1" id="yes1" disabled="true" style="pointer-events: none;"/>
- <label for="electronic">서명패드</label>
- <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="document">서면동의</label>
- <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="record">온라인동의</label>
- <input type="radio" name="document" value="no1" id="no1" checked="checked"/>
- <label for="document">녹취</label>
- <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="document">전자동의서</label>
- <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="document">마우스서명</label>
- </p>
- </div>
- </xsl:when>
- <xsl:when test="$consentMethod = '4'">
- <div class="">
- <strong>동의수단</strong>
- <p>
- <input type="radio" name="electronic" value="yes1" id="yes1" disabled="true" style="pointer-events: none;"/>
- <label for="electronic">서명패드</label>
- <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="document">서면동의</label>
- <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="record">온라인동의</label>
- <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="document">녹취</label>
- <input type="radio" name="document" value="no1" id="no1" checked="checked" />
- <label for="document">전자동의서</label>
- <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="document">마우스서명</label>
- </p>
- </div>
- </xsl:when>
- <xsl:when test="$consentMethod = '5'">
- <div class="">
- <strong>동의수단</strong>
- <p>
- <input type="radio" name="electronic" value="yes1" id="yes1" disabled="true" style="pointer-events: none;"/>
- <label for="electronic">서명패드</label>
- <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="document">서면동의</label>
- <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="record">온라인동의</label>
- <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="document">녹취</label>
- <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="document">전자동의서</label>
- <input type="radio" name="document" value="no1" id="no1" checked="checked" />
- <label for="document">마우스서명</label>
- </p>
- </div>
- </xsl:when>
- <xsl:otherwise>
- <div class="">
- <strong>동의수단</strong>
- <p>
- <input type="radio" name="electronic" value="yes1" id="yes1" disabled="true" style="pointer-events: none;"/>
- <label for="electronic">서명패드</label>
- <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="document">서면동의</label>
- <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="record">온라인동의</label>
- <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="document">녹취</label>
- <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="document">전자동의서</label>
- <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="document">마우스서명</label>
- </p>
- </div>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <xsl:template name="chooseWithdrawalMethodType">
- <xsl:choose>
- <xsl:when test="$withdrawalMethod = '0'">
- <div class="">
- <strong>철회수단</strong>
- <p>
- <input type="radio" name="electronic" value="yes1" id="yes1" checked="checked"/>
- <label for="electronic">서명패드</label>
- <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="document">서면동의</label>
- <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="record">온라인동의</label>
- <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="record">녹취</label>
- <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="record">전자동의서</label>
- <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="record">마우스서명</label>
- </p>
- </div>
- </xsl:when>
- <xsl:when test="$withdrawalMethod = '1'">
- <div class="">
- <strong>철회수단</strong>
- <p>
- <input type="radio" name="electronic" value="yes1" id="yes1" disabled="true" style="pointer-events: none;"/>
- <label for="electronic">서명패드</label>
- <input type="radio" name="document" value="no1" id="no1" checked="checked"/>
- <label for="document">서면동의</label>
- <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="record">온라인동의</label>
- <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="record">녹취</label>
- <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="record">전자동의서</label>
- <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="record">마우스서명</label>
- </p>
- </div>
- </xsl:when>
- <xsl:when test="$withdrawalMethod = '2'">
- <div class="">
- <strong>철회수단</strong>
- <p>
- <input type="radio" name="electronic" value="yes1" id="yes1" disabled="true" style="pointer-events: none;"/>
- <label for="electronic">서명패드</label>
- <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="document">서면동의</label>
- <input type="radio" name="record" value="no1" id="no1" checked="checked" />
- <label for="record">온라인동의</label>
- <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="document">녹취</label>
- <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="document">전자동의서</label>
- <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="record">마우스서명</label>
- </p>
- </div>
- </xsl:when>
- <xsl:when test="$withdrawalMethod = '3'">
- <div class="">
- <strong>철회수단</strong>
- <p>
- <input type="radio" name="electronic" value="yes1" id="yes1" disabled="true" style="pointer-events: none;"/>
- <label for="electronic">서명패드</label>
- <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="document">서면동의</label>
- <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="record">온라인동의</label>
- <input type="radio" name="document" value="no1" id="no1" checked="checked"/>
- <label for="document">녹취</label>
- <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="document">전자동의서</label>
- <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="record">마우스서명</label>
- </p>
- </div>
- </xsl:when>
- <xsl:when test="$withdrawalMethod = '4'">
- <div class="">
- <strong>철회수단</strong>
- <p>
- <input type="radio" name="electronic" value="yes1" id="yes1" disabled="true" style="pointer-events: none;"/>
- <label for="electronic">서명패드</label>
- <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="document">서면동의</label>
- <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="record">온라인동의</label>
- <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="document">녹취</label>
- <input type="radio" name="document" value="no1" id="no1" checked="checked" />
- <label for="document">전자동의서</label>
- <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="record">마우스서명</label>
- </p>
- </div>
- </xsl:when>
- <xsl:when test="$withdrawalMethod = '5'">
- <div class="">
- <strong>철회수단</strong>
- <p>
- <input type="radio" name="electronic" value="yes1" id="yes1" disabled="true" style="pointer-events: none;"/>
- <label for="electronic">서명패드</label>
- <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="document">서면동의</label>
- <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="record">온라인동의</label>
- <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="document">녹취</label>
- <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="document">전자동의서</label>
- <input type="radio" name="document" value="no1" id="no1" checked="checked" />
- <label for="record">마우스서명</label>
- </p>
- </div>
- </xsl:when>
- <xsl:otherwise>
- <div class="">
- <strong>철회수단</strong>
- <p>
- <input type="radio" name="electronic" value="yes1" id="yes1" disabled="true" style="pointer-events: none;"/>
- <label for="electronic">서명패드</label>
- <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="document">서면동의</label>
- <input type="radio" name="record" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="record">온라인동의</label>
- <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="document">녹취</label>
- <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="document">전자동의서</label>
- <input type="radio" name="document" value="no1" id="no1" disabled="true" style="pointer-events: none;"/>
- <label for="document">마우스서명</label>
- </p>
- </div>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <!-- ##################### Data format ##################### -->
- <!-- show-gender-kr -->
- <xsl:template name="show-gender-kr">
- <xsl:param name="gender"/>
- <xsl:choose>
- <xsl:when test="$gender/@code = 'M'">
- <xsl:text>남</xsl:text>
- </xsl:when>
- <xsl:when test="$gender/@code = 'F'">
- <xsl:text>여</xsl:text>
- </xsl:when>
- <xsl:when test="$gender/@code = 'U'">
- <xsl:text>식별불가</xsl:text>
- </xsl:when>
- </xsl:choose>
- </xsl:template>
- <!-- show signature -->
- <xsl:template name="show-signature">
- <xsl:param name="signature"/>
- <xsl:element name="img">
- <xsl:attribute name="width">140</xsl:attribute>
- <xsl:attribute name="height">85</xsl:attribute>
- <xsl:attribute name="src">data:image/png;base64,<xsl:value-of select="$signature"/></xsl:attribute>
- </xsl:element>
- </xsl:template>
- <!-- show date ( format : yyyy-MM-dd )-->
- <xsl:template name="getDate">
- <xsl:param name="date"/>
- <xsl:choose>
- <xsl:when test="$date/@value">
- <xsl:value-of select="concat(substring($date/@value,1,4),'-',substring($date/@value,5,2),'-',substring($date/@value,7,2))"/>
- <xsl:text> </xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$date"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <!-- show date ( format : yyyy.MM.dd )-->
- <xsl:template name="getDate2">
- <xsl:param name="date"/>
- <xsl:choose>
- <xsl:when test="$date/@value">
- <xsl:value-of select="concat(substring($date/@value,1,4),'.',substring($date/@value,5,2),'.',substring($date/@value,7,2),'.')"/>
- <xsl:text> </xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$date"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <!-- show date ( format : yyyy년 MM월 dd일 )-->
- <xsl:template name="getDate3">
- <xsl:param name="date"/>
- <xsl:choose>
- <xsl:when test="$date/@value">
- <xsl:value-of select="concat(substring($date/@value,1,4),'년 ',substring($date/@value,5,2),'월 ',substring($date/@value,7,2),'일')"/>
- <xsl:text> </xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$date"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <!-- show-name-kr -->
- <xsl:template name="show-name-kr">
- <xsl:param name="name"/>
- <xsl:choose>
- <xsl:when test="$name/n1:family">
- <xsl:if test="$name/n1:prefix">
- <xsl:value-of select="$name/n1:prefix"/>
- <xsl:text> </xsl:text>
- </xsl:if>
- <xsl:value-of select="$name/n1:family"/>
- <!--<xsl:text> </xsl:text>-->
- <xsl:value-of select="$name/n1:given"/>
- <xsl:if test="$name/n1:suffix">
- <xsl:text>, </xsl:text>
- <xsl:value-of select="$name/n1:suffix"/>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$name"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <!-- show-telecom-kr -->
- <xsl:template name="show-telecom-kr">
- <xsl:param name="telecom"/>
- <xsl:choose>
- <xsl:when test="$telecom">
- <xsl:variable name="type" select="substring-before($telecom/@value, ':')"/>
- <xsl:variable name="value" select="substring-after($telecom/@value, ':')"/>
- <xsl:if test="$type">
- <xsl:call-template name="translateTelecomCode">
- <xsl:with-param name="code" select="$type"/>
- </xsl:call-template>
- <xsl:if test="@use">
- <xsl:text> (</xsl:text>
- <xsl:call-template name="translateTelecomCode">
- <xsl:with-param name="code" select="@use"/>
- </xsl:call-template>
- <xsl:text>)</xsl:text>
- </xsl:if>
- <xsl:text>: </xsl:text>
- <xsl:text> </xsl:text>
- <xsl:value-of select="$value"/>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$telecom/@value"/>
- </xsl:otherwise>
- </xsl:choose>
- <br/>
- </xsl:template>
- <!-- Convert Telecom URL to display text -->
- <xsl:template name="translateTelecomCode">
- <xsl:param name="code"/>
- <xsl:choose>
- <!-- lookup table Telecom URI -->
- <xsl:when test="$code='tel'">
- <xsl:text>Tel</xsl:text>
- </xsl:when>
- <xsl:when test="$code='fax'">
- <xsl:text>Fax</xsl:text>
- </xsl:when>
- <xsl:when test="$code='http'">
- <xsl:text>Web</xsl:text>
- </xsl:when>
- <xsl:when test="$code='mailto'">
- <xsl:text>Mail</xsl:text>
- </xsl:when>
- <xsl:when test="$code='H'">
- <xsl:text>Home</xsl:text>
- </xsl:when>
- <xsl:when test="$code='HV'">
- <xsl:text>Vacation Home</xsl:text>
- </xsl:when>
- <xsl:when test="$code='HP'">
- <xsl:text>Primary Home</xsl:text>
- </xsl:when>
- <xsl:when test="$code='WP'">
- <xsl:text>Work Place</xsl:text>
- </xsl:when>
- <xsl:when test="$code='PUB'">
- <xsl:text>Pub</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>{$code='</xsl:text>
- <xsl:value-of select="$code"/>
- <xsl:text>'?}</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <!-- show-address-kr-->
- <xsl:template name="show-address-kr">
- <xsl:param name="address"/>
- <xsl:choose>
- <xsl:when test="$address">
- <xsl:if test="$address/@use">
- <xsl:text> </xsl:text>
- <xsl:call-template name="translateTelecomCode">
- <xsl:with-param name="code" select="$address/@use"/>
- </xsl:call-template>
- <xsl:text>:</xsl:text>
- <br/>
- </xsl:if>
- <xsl:if test="string-length($address/n1:country)>0">
- <xsl:value-of select="$address/n1:country"/>
- <xsl:text> </xsl:text>
- </xsl:if>
- <xsl:if test="string-length($address/n1:state)>0">
- <xsl:value-of select="$address/n1:state"/>
- <xsl:text> </xsl:text>
- </xsl:if>
- <xsl:if test="string-length($address/n1:city)>0">
- <xsl:value-of select="$address/n1:city"/>
- <xsl:text> </xsl:text>
- </xsl:if>
- <xsl:if test="string-length($address/n1:additionalLocator)>0">
- <xsl:value-of select="$address/n1:additionalLocator"/>
- <xsl:text> </xsl:text>
- </xsl:if>
- <xsl:for-each select="$address/n1:streetAddressLine">
- <xsl:value-of select="."/>
- <xsl:text> </xsl:text>
- </xsl:for-each>
- <xsl:if test="$address/n1:streetName">
- <xsl:value-of select="$address/n1:streetName"/>
- <xsl:text> </xsl:text>
- <xsl:value-of select="$address/n1:houseNumber"/>
- </xsl:if>
- <xsl:if test="string-length($address/n1:postalCode)>0">
- <xsl:text> </xsl:text>
- <xsl:value-of select="$address/n1:postalCode"/>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>유효하지 않은 주소정보</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- <br/>
- </xsl:template>
- <!--BPPC-->
- <xsl:template name="getGuardianRelationship">
- <xsl:param name="code"/>
- <xsl:choose>
- <xsl:when test="$code='FTH'">
- <xsl:text>부</xsl:text>
- </xsl:when>
- <xsl:when test="$code='MTH'">
- <xsl:text>모</xsl:text>
- </xsl:when>
- <xsl:when test="$code='GRMTH'">
- <xsl:text>조모</xsl:text>
- </xsl:when>
- <xsl:when test="$code='GRFTH'">
- <xsl:text>조부</xsl:text>
- </xsl:when>
- <xsl:when test="$code='WIFE'">
- <xsl:text>부인</xsl:text>
- </xsl:when>
- <xsl:when test="$code='HUSB'">
- <xsl:text>남편</xsl:text>
- </xsl:when>
- <xsl:when test="$code='FAMMEMB'">
- <xsl:text>가족</xsl:text>
- </xsl:when>
- <xsl:when test="$code='SONC'">
- <xsl:text>자</xsl:text>
- </xsl:when>
- <xsl:when test="$code='DAUC'">
- <xsl:text>딸</xsl:text>
- </xsl:when>
- <xsl:when test="$code='GRNDDAU'">
- <xsl:text>손녀</xsl:text>
- </xsl:when>
- <xsl:when test="$code='GRNDSON'">
- <xsl:text>손자</xsl:text>
- </xsl:when>
- <xsl:when test="$code='NBOR'">
- <xsl:text>이웃</xsl:text>
- </xsl:when>
- <xsl:when test="$code='ROOM'">
- <xsl:text>동거인</xsl:text>
- </xsl:when>
- <xsl:when test="$code='ONESELF'">
- <xsl:text>본인</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text></xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <!-- convert to lower case -->
- <xsl:template name="caseDown">
- <xsl:param name="data"/>
- <xsl:if test="$data">
- <xsl:value-of select="translate($data, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')"/>
- </xsl:if>
- </xsl:template>
- <!-- convert to upper case -->
- <xsl:template name="caseUp">
- <xsl:param name="data"/>
- <xsl:if test="$data">
- <xsl:value-of select="translate($data,'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>
- </xsl:if>
- </xsl:template>
- <!-- convert first character to upper case -->
- <xsl:template name="firstCharCaseUp">
- <xsl:param name="data"/>
- <xsl:if test="$data">
- <xsl:call-template name="caseUp">
- <xsl:with-param name="data" select="substring($data,1,1)"/>
- </xsl:call-template>
- <xsl:value-of select="substring($data,2)"/>
- </xsl:if>
- </xsl:template>
- <!-- show-noneFlavor -->
- <xsl:template name="show-noneFlavor">
- <xsl:param name="nf"/>
- <xsl:choose>
- <xsl:when test=" $nf = 'NI' ">
- <xsl:text>no information</xsl:text>
- </xsl:when>
- <xsl:when test=" $nf = 'INV' ">
- <xsl:text>invalid</xsl:text>
- </xsl:when>
- <xsl:when test=" $nf = 'MSK' ">
- <xsl:text>masked</xsl:text>
- </xsl:when>
- <xsl:when test=" $nf = 'NA' ">
- <xsl:text>not applicable</xsl:text>
- </xsl:when>
- <xsl:when test=" $nf = 'UNK' ">
- <xsl:text>unknown</xsl:text>
- </xsl:when>
- <xsl:when test=" $nf = 'OTH' ">
- <xsl:text>other</xsl:text>
- </xsl:when>
- </xsl:choose>
- </xsl:template>
- <!-- /##################### Data format ##################### -->
- <!-- ##################### Comment ##################### -->
- <!-- 상단 문구-->
- <xsl:template name="addComment">
- <xsl:choose>
- <!-- 진료회신서 / 진료회송서 의 경우 해당문구 출력.-->
- <!-- 회송서 문구 : 회송 환자의 진료결과를 다음과 같이 알려드리오니 향후 진료에 참고하시기 바랍니다. -->
- <!-- 진료회송서 -->
- <xsl:when test="/n1:ClinicalDocument/n1:code/@code = '18761-7'">
- <h3>
- <xsl:value-of select="/n1:ClinicalDocument/n1:informationRecipient/n1:intendedRecipient/n1:receivedOrganization/n1:asOrganizationPartOf/n1:wholeOrganization/n1:name"/>
- <xsl:text> </xsl:text>
- <xsl:call-template name="show-name-kr">
- <xsl:with-param name="name" select="/n1:ClinicalDocument/n1:informationRecipient/n1:intendedRecipient/n1:informationRecipient/n1:name"/>
- </xsl:call-template>
- 선생님 귀하
- </h3>
- <p>회송 환자의 진료결과를 다음과 같이 알려드리오니 향후 진료에 참고하시기 바랍니다.</p>
- <p>귀원의 무궁한 발전을 기원합니다.</p>
- <br/>
- </xsl:when>
- <xsl:when test="/n1:ClinicalDocument/n1:code/@code = '11488-4'">
- <h3>
- <xsl:value-of select="/n1:ClinicalDocument/n1:informationRecipient/n1:intendedRecipient/n1:receivedOrganization/n1:asOrganizationPartOf/n1:wholeOrganization/n1:name"/>
- <xsl:text> </xsl:text>
- <xsl:call-template name="show-name-kr">
- <xsl:with-param name="name" select="/n1:ClinicalDocument/n1:informationRecipient/n1:intendedRecipient/n1:informationRecipient/n1:name"/>
- </xsl:call-template>
- 선생님 귀하
- </h3>
- <p>선생님께서 의뢰해주신 환자의 진료결과를 다음과 같이 알려드리오니 향후 진료에 참고하시기 바랍니다.</p>
- <p>귀원의 무궁한 발전을 기원합니다.</p>
- <br/>
- </xsl:when>
- <!-- 진료의뢰서 -->
- <xsl:when test="/n1:ClinicalDocument/n1:code/@code = '57133-1' ">
- <h3>
- <xsl:value-of select="/n1:ClinicalDocument/n1:informationRecipient/n1:intendedRecipient/n1:receivedOrganization/n1:asOrganizationPartOf/n1:wholeOrganization/n1:name"/>
- <xsl:text> </xsl:text>
- <xsl:call-template name="show-name-kr">
- <xsl:with-param name="name" select="/n1:ClinicalDocument/n1:informationRecipient/n1:intendedRecipient/n1:informationRecipient/n1:name"/>
- </xsl:call-template>
- 선생님 귀하
- </h3>
- <br/>
- </xsl:when>
- <xsl:otherwise></xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <!-- 하단 문구 -->
- <xsl:template name="addBottomComment">
- <!--회신서 / 회송서 문구-->
- <xsl:choose>
- <xsl:when test="/n1:ClinicalDocument/n1:code/@code = '18761-7' or /n1:ClinicalDocument/n1:code/@code ='11488-4'">
- <div class ="main_content">
- <h3 style="text-align : center;">
- 향후 귀병원에서 치료를 계속하실 계획이 있으시거나 더 궁금하신 사항은<br/>
- 전화(000-000-0000) 또는 팩스(000-000-0000) 로 연락주시면 곧 회답하여 드리겠습니다.
- </h3>
- <br/>
- <table border="0">
- <tbody>
- <tr>
- <td width="50%"></td>
- <td width="10%">
- <h6>진료과</h6>
- </td>
- <td width="20%">
- <xsl:value-of select="/n1:ClinicalDocument/n1:author/n1:assignedAuthor/n1:representedOrganization/n1:name"/>
- </td>
- <td width="10%">
- <h6>진료의</h6>
- </td>
- <td width="10%">
- <xsl:value-of select="/n1:ClinicalDocument/n1:author/n1:assignedAuthor/n1:assignedPerson/n1:name/n1:family"/>
- <xsl:value-of select="/n1:ClinicalDocument/n1:author/n1:assignedAuthor/n1:assignedPerson/n1:name/n1:given"/>
- </td>
- </tr>
- <tr>
- <td></td>
- <td colspan="2">
- <h6>A 병원 진료협력센터</h6>
- </td>
- <td>
- <h6>담당자</h6>
- </td>
- <td>
- <xsl:value-of select="/n1:ClinicalDocument/n1:participant[@typeCode='AUT']/n1:associatedEntity/n1:associatedPerson/n1:name/n1:family"/>
- <xsl:value-of select="/n1:ClinicalDocument/n1:participant[@typeCode='AUT']/n1:associatedEntity/n1:associatedPerson/n1:name/n1:given"/>
- </td>
- </tr>
- </tbody>
- </table>
- <br/>
- <h3 style="text-align : center;">
- 이 기록은 의무기록에 근거하여 작성되었습니다.
- </h3>
- <br/>
- <p style="text-align : right;">
- 문의전화 : 000-000-0000 (A병원 진료협력센터)
- </p>
- </div>
- </xsl:when>
- <xsl:otherwise></xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <!-- /##################### Comment ##################### -->
- </xsl:stylesheet>
|