Show searchGrid.xsl syntax highlighted
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:hl7="urn:hl7-org:v3">
<xsl:template match="text()|@*"></xsl:template>
<xsl:template match="/">
<patients>
<xsl:apply-templates/>
</patients>
</xsl:template>
<xsl:template match="hl7:identifiedEntity">
<patient>
<xsl:attribute name="PHN"><xsl:value-of select="hl7:id/@extension"/></xsl:attribute>
<xsl:attribute name="Name"><xsl:value-of select="hl7:identifiedPerson/hl7:name/hl7:family"/><xsl:text>, </xsl:text><xsl:value-of select="hl7:identifiedPerson/hl7:name/hl7:given"/></xsl:attribute>
<xsl:attribute name="Gender"><xsl:value-of select="hl7:identifiedPerson/hl7:administrativeGenderCode/@code"/></xsl:attribute>
<xsl:attribute name="Birth_Date"><xsl:value-of select="hl7:identifiedPerson/hl7:birthTime/@value"/></xsl:attribute>
</patient>
</xsl:template>
</xsl:stylesheet>
See more files for this project here