<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes"/>
<xsl:param name="calling" select="'AE_CALLING'"/>
<xsl:param name="called" select="'DCM4CHEE'"/>
<xsl:param name="date" select="'20051206'"/>
<xsl:param name="time" select="'115600.000'"/>
<xsl:template match="/">
<dataset>
<xsl:choose>
<xsl:when test="starts-with($calling, ‘AET1’)”>
<attr tag="00100010" vr="PN">AAA*</attr>
</xsl:when>
<xsl:when test="starts-with($calling, ‘AET2’)”>
<attr tag="00100010" vr="PN">BBB*</attr>
</xsl:when>
<xsl:when test="starts-with($calling, ‘AET3’)”>
<attr tag="00100010" vr="PN">CCC*</attr>
</xsl:when>
<xsl:otherwise>
<attr tag="00100010" vr="PN">Nothing Is Shown</attr>
</xsl:otherwise>
</xsl:choose>
</dataset>
</xsl:template>
</xsl:stylesheet>
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes"/>
<xsl:param name="calling" select="'AE_CALLING'"/>
<xsl:param name="called" select="'DCM4CHEE'"/>
<xsl:param name="date" select="'20051206'"/>
<xsl:param name="time" select="'115600.000'"/>
<xsl:template match="/">
<dataset>
<attr tag="00100010" vr="PN">AAA</attr>
</dataset>
</xsl:template>
</xsl:stylesheet>
--
You received this message because you are subscribed to a topic in the Google Groups "dcm4che" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dcm4che/X43VjG8Pi1E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dcm4che+u...@googlegroups.com.
To post to this group, send email to dcm...@googlegroups.com.
Visit this group at http://groups.google.com/group/dcm4che.
For more options, visit https://groups.google.com/groups/opt_out.
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes"/>
<xsl:param name="calling" select="'AE_CALLING'"/>
<xsl:param name="called" select="'DCM4CHEE'"/>
<xsl:param name="date" select="'20051206'"/>
<xsl:param name="time" select="'115600.000'"/>
<xsl:template match="/dataset">
<dataset>
<!-- Patient Name Coerce-->
<attr tag="00100010">
<xsl:choose>
<xsl:when test="starts-with(attr[@tag=00100010],'AAA') or starts-with(attr[@tag=00100010],'BBB')">
<xsl:copy-of select="attr[@tag='00100010']"/>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</attr>
<!-- Patient ID Coerce-->
<attr tag="00100020">
<xsl:choose>
<xsl:when test="starts-with(attr[@tag=00100010],'AAA') or starts-with(attr[@tag=00100010],'BBB')"> <!-- Coercion rule by patient name-->
<xsl:copy-of select="attr[@tag='00100020']"/>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</attr>
<!-- Patient DOB Coerce-->
<attr tag="00100030">
<xsl:choose>
<xsl:when test="starts-with(attr[@tag=00100010],'AAA') or starts-with(attr[@tag=00100010],'BBB')"> <!-- Coercion rule by patient name-->
<xsl:copy-of select="attr[@tag='00100030']"/>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</attr>
<!-- Study Description Coerce-->
<attr tag="00081030">
<xsl:choose>
<xsl:when test="starts-with(attr[@tag=00100010],'AAA') or starts-with(attr[@tag=00100010],'BBB')"> <!-- Coercion rule by patient name-->
<xsl:copy-of select="attr[@tag='00081030']"/>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</attr>
</dataset>
</xsl:template>
</xsl:stylesheet>
Jeff
Jeff
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes"/>
<xsl:param name="calling" select="'AE_CALLING'"/>
<xsl:param name="called" select="'DCM4CHEE'"/>
<xsl:param name="date" select="'20051206'"/>
<xsl:param name="time" select="'115600.000'"/>
<xsl:template match="/dataset">
<dataset>
<!-- Patient Name Coerce-->
<attr tag="00100010">
<xsl:choose>
<xsl:when test="starts-with(attr[@tag=00100010],'AAA') or starts-with(attr[@tag=00100010],'BBB')">
<xsl:copy-of select="attr[@tag='00100010']"/>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</attr>
<!-- Patient ID Coerce-->
<attr tag="00100020">
<xsl:choose>
<xsl:when test="starts-with(attr[@tag=00100010],'AAA') or starts-with(attr[@tag=00100010],'BBB')">
<xsl:copy-of select="attr[@tag='00100020']"/>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</attr>
<!-- Patient DOB Coerce-->
<attr tag="00100030">
<xsl:choose>
<xsl:when test="starts-with(attr[@tag=00100010],'AAA') or starts-with(attr[@tag=00100010],'BBB')">
<xsl:copy-of select="attr[@tag='00100030']"/>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</attr>
<!-- Study Description Coerce-->
<attr tag="00081030">
<xsl:choose>
<xsl:when test="starts-with(attr[@tag=00100010],'AAA') or starts-with(attr[@tag=00100010],'BBB')">
<xsl:copy-of select="attr[@tag='00081030']"/>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</attr>
<!-- Study number of images -->
<attr tag="00201208">
<xsl:choose>
<xsl:when test="starts-with(attr[@tag=00100010],'AAA') or starts-with(attr[@tag=00100010],'BBB')">
<xsl:copy-of select="attr[@tag='00201208']"/>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</attr>
<!-- Study date -->
<attr tag="00080020">
<xsl:choose>
<xsl:when test="starts-with(attr[@tag=00100010],'AAA') or starts-with(attr[@tag=00100010],'BBB')">
<xsl:copy-of select="attr[@tag='00080020']"/>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</attr>
<!-- Study time -->
<attr tag="00080030">
<xsl:choose>
<xsl:when test="starts-with(attr[@tag=00100010],'AAA') or starts-with(attr[@tag=00100010],'BBB')">
<xsl:copy-of select="attr[@tag='00080030']"/>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</attr>
<!-- Study Instance UID -->
<attr tag="0020000D">
<xsl:choose>
<xsl:when test="starts-with(attr[@tag=00100010],'AAA') or starts-with(attr[@tag=00100010],'BBB')">
<xsl:copy-of select="attr[@tag='0020000D']"/>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</attr>
</dataset>
</xsl:template>
</xsl:stylesheet>