<Section ExcludedFromGPCopy="false" ExcludedFromPatientCopy="false" Name="PrimaryDischargeDiagnosis" PrintSectionTitle="true" RichText="false" Title="Primary Discharge Diagnosis"><TextObservation><TextType>PrimaryDischargeDiagnosis</TextType><TextValue> Accidental puncture/laceration during procedure
 ·Anaemia - Iron deficiency secondary to blood loss
 ·CAL/COPD (Chronic Airways Limitation) due to harmful smoking
 ·Suspected deep tissue injury, depth unknown </TextValue><FormRequestId>0</FormRequestId></TextObservation></Section>
<fo:table-row> <fo:table-cell padding="2pt" border-width="0.5pt" border-style="solid"> <xsl:choose> <xsl:when test="PrescriptionMessage/Section[@Title='Primary Discharge Diagnosis']/TextObservation[TextType='PrimaryDischargeDiagnosis']/TextValue != ''"> <fo:block white-space-collapse="true" white-space-treatment="preserve" linefeed-treatment="preserve" space-before="0mm" space-after="0mm"> <fo:inline> <xsl:value-of select="PrescriptionMessage/Section[@Title='Primary Discharge Diagnosis']/TextObservation[TextType='PrimaryDischargeDiagnosis']/TextValue" /> </fo:inline> </fo:block> </xsl:when> <xsl:when test="PrescriptionMessage/Section[@Title='Primary Discharge Diagnosis']/StructuredFormData/Title = 'PrimaryDischargeDiagnosis'"> <xsl:for-each select="PrescriptionMessage/Section[@Title='Primary Discharge Diagnosis']/StructuredFormData/AtomicObservation"> <fo:block> <xsl:value-of select='AtomicObservationName' /> </fo:block> <xsl:for-each select="AtomicObservation"> <fo:block margin-left="9pt"> <xsl:value-of select='AtomicObservationName' /> </fo:block> <xsl:for-each select="AtomicObservation"> <fo:block margin-left="18pt"> <xsl:value-of select='AtomicObservationName' /> </fo:block> </xsl:for-each> </xsl:for-each> </xsl:for-each> </xsl:when> <xsl:otherwise> <fo:block font-style="italic"> None </fo:block> </xsl:otherwise> </xsl:choose> </fo:table-cell> </fo:table-row>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)