Code Search for Developers
 
 
  

patientSearch.xsl from HL7v3 Test Harness at Krugle


Show patientSearch.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="urn:hl7-org:v3">

    <xsl:param name="now"/>
    <xsl:param name="OID"/>

    <xsl:param name="patientFirstName"/>
    <xsl:param name="patientLastName"/>


    <xsl:template match="/">
        
        <QUPA_IN101103CA  ITSVersion="XML_1.0">
            <id root="2.16.124.9.101.1.8.1" extension="122">
                <xsl:attribute name="extension"><xsl:value-of select="$OID"/></xsl:attribute>
            </id>
            
            <creationTime value="20050101102001">
                <xsl:attribute name="value"><xsl:value-of select="$now"/></xsl:attribute>
            </creationTime>
            <versionCode code="V3-2005-05"/>
            <interactionId root="2.16.840.1.113883.1.6" extension="QUPA_IN101103CA"/>
            <processingCode code="P"/>
            <processingModeCode code="T"/>
            <acceptAckCode code="ER"/>

            <receiver>
                <telecom use="WP" value="uri:198.203.1.23"/>
                <device>
                    <id root="2.16.124.9.101.1.1"/>
                </device>
            </receiver>
            <sender>
                <telecom use="WP" value="uri:198.203.1.23"/>
                <device>
                    <id root="2.16.124.9.101.1.8"/>
                </device>
            </sender>


            <controlActProcess moodCode="EVN">
                <id root="2.16.124.9.101.1.8.5" extension="1245">
                    <xsl:attribute name="extension"><xsl:value-of select="$OID"/></xsl:attribute>
                </id>
                <code code="QUPA_TE101103"/>
                <effectiveTime value="20050101">
                    <xsl:attribute name="value"><xsl:value-of select="$now"/></xsl:attribute>
                </effectiveTime>

                <queryByParameterPayload>
                    <queryId root="2.16.124.9.101.1.8.3" extension="123">
                        <xsl:attribute name="extension"><xsl:value-of select="$OID"/></xsl:attribute>
                    </queryId>
                    <statusCode code="active"/>
                    <xsl:if test="$patientLastName or $patientFirstName">
                    <person.name>
                        <value>
                            <xsl:if test="$patientLastName">
                                <family><xsl:value-of select="$patientLastName"/></family>
                            </xsl:if>
                            <xsl:if test="$patientFirstName">
                                <given><xsl:value-of select="$patientFirstName"/></given>
                            </xsl:if>
                        </value>
                    </person.name>
                        </xsl:if>
                </queryByParameterPayload>

            </controlActProcess>
        </QUPA_IN101103CA>

    </xsl:template>


</xsl:stylesheet>




See more files for this project here

HL7v3 Test Harness

The HL7 Test Harness system is an HL7 v3 message conformance testing application that also provides the ability to simulate the message processing actions of a client and/or server system. The app provides message workflow, format and content testing.

Project homepage: http://sourceforge.net/projects/hl7-testharness
Programming language(s): C#,XML
License: gpl2

  Data.xml
  allergyGrid.xsl
  allergyQuery.xsl
  createAllergy.xsl
  createDispense.xsl
  createDispensePickup.xsl
  createPrescription.xsl
  dispenseGrid.xsl
  patientSearch.xsl
  prescriptionGrid.xsl
  prescriptionQuery.xsl
  searchGrid.xsl