Cdampl:Stylesheet
(Teildokument von )
Dieses Material ist Teil des Leitfadens [[Category:|Cdampl:Stylesheet]].
|
Stylesheet
Die Anzeige des Textes basiert darauf, dass die Inhalte entsprechend gerendert werden. Nachfolgend die notwendigen Details:
In den HTML-Kopf müssen die entsprechenden JQuery-Bibliotheken eingebaut werden:
<script type="text/javascript" src="jquery-2.0.0.min.js"></script>
<script type="text/javascript" src="jquery-barcode.min.js"></script>
Im Body müssen die Inhalte in entsprechenden Strukturen ausgegeben werden:
<table width="100%" cellspacing="1" cellpadding="5" >
<tr>
<td width='15%' style="border-left:solid 1px; border-top:solid 1px; border-bottom:solid 1px" >
<h2>
<xsl:value-of select="$title"/>
</h2>
<br/>
<br/>
<img src="logo_medplan.jpg" width="180px" />
</td>
<td style="border-left:solid 1px; border-top:solid 1px; border-bottom:solid 1px">
<xsl:text>für:</xsl:text>
<b>
<xsl:call-template name="getName">
<xsl:with-param name="name" select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:patient/n1:name"/>
</xsl:call-template>
</b>
<br/>
<br/>
<br/>
ausgedruckt von:
<xsl:choose>
<xsl:when test="/n1:ClinicalDocument/n1:responsibleParty/n1:assignedEntity/n1:assignedPerson/n1:name">
<xsl:call-template name="getName">
<xsl:with-param name="name"
select="/n1:ClinicalDocument/n1:responsibleParty/n1:assignedEntity/n1:assignedPerson/n1:name"/>
</xsl:call-template>
<br/>
<xsl:call-template name="getContactInfo">
<xsl:with-param name="contact"
select="/n1:ClinicalDocument/n1:responsibleParty/n1:assignedEntity/n1:representedOrganization"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="getName">
<xsl:with-param name="name"
select="/n1:ClinicalDocument/n1:legalAuthenticator/n1:assignedEntity/n1:assignedPerson/n1:name"/>
</xsl:call-template>
<br/>
<xsl:call-template name="getContactInfo">
<xsl:with-param name="contact"
select="/n1:ClinicalDocument/n1:legalAuthenticator/n1:assignedEntity/n1:representedOrganization"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</td>
<td align='right' style="border-right:solid 1px; border-top:solid 1px; border-bottom:solid 1px">
<xsl:text> geb.:</xsl:text>
<b>
<xsl:call-template name="formatDate">
<xsl:with-param name="date"
select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:patient/n1:birthTime/@value"/>
</xsl:call-template>
</b>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<xsl:text> ausgedruckt am:</xsl:text>
<xsl:call-template name="formatDate">
<xsl:with-param name="date"
select="/n1:ClinicalDocument/n1:effectiveTime/@value"/>
</xsl:call-template>
</td>
<td width='15%' border='0' >
<div id="bcTarget"></div>
<script type="text/javascript">
<![CDATA[$("#bcTarget").barcode(']]><xsl:call-template name="string-replace-all">
<xsl:with-param name="text" select="/n1:ClinicalDocument/n1:component/n1:structuredBody/n1:component/n1:section/n1:entry/n1:observation/n1:value" />
<xsl:with-param name="replace" select="'
'" />
<xsl:with-param name="by" select="'\
'" />
</xsl:call-template><![CDATA[', "datamatrix",{moduleSize:2,showHRI:false});
]]>
</script>
</td>
</tr>
</table>