<?xml version="1.0" encoding="US-ASCII"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="xml" encoding="US-ASCII" indent="yes"/>
	<xsl:template match="/">
		<HC_DATA>
			<xsl:copy-of select="HC_DATA/HEADER/*"/>
		</HC_DATA>
		<xsl:apply-templates select="HC_DATA/RECORD"/>
	</xsl:template>
	<xsl:template match="RECORD">
		<RECORD>
			<xsl:copy-of select="*[local-name(.) != 'OTHER_CODE' and local-name(.) != 'PRESENT_AT_ADMIT']"/>
			<xsl:for-each select="OTHER_CODE">
				<OTHER_DIAG_CODE>
					<xsl:copy-of select="."/>
					<xsl:copy-of select="following-sibling::PRESENT_AT_ADMIT[1]"/>
				</OTHER_DIAG_CODE>
			</xsl:for-each>
		</RECORD>
	</xsl:template>
</xsl:stylesheet><!-- Stylus Studio meta-information - (c) 2004-2005. Progress Software Corporation. All rights reserved.
<metaInformation>
<scenarios ><scenario default="yes" name="Scenario1" userelativepaths="yes" externalpreview="no" url="XSLInput.xml" htmlbaseurl="" outputurl="" processortype="internal" useresolver="yes" profilemode="0" profiledepth="" profilelength="" urlprofilexml="" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext="" validateoutput="no" validator="internal" customvalidator=""/></scenarios><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no" ><SourceSchema srcSchemaPath="XSLInput.xml" srcSchemaRoot="HC_DATA" AssociatedInstance="" loaderFunction="document" loaderFunctionUsesURI="no"/></MapperInfo><MapperBlockPosition><template match="/"><block path="RECORD/xsl:for&#x2D;each" x="334" y="72"/></template></MapperBlockPosition><TemplateContext></TemplateContext><MapperFilter side="source"></MapperFilter></MapperMetaTag>
</metaInformation>
-->