<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"
[
<!ENTITY author SYSTEM 	"classpath://gov/va/med/cds/persistence/hibernate/common/AuthorPractitionerParticipationPojo.hbm">
]
>

<hibernate-mapping  default-lazy="false" default-cascade="all">
    <class entity-name="Reaction"  name="gov.va.med.cds.template.generated.allergies.ReactionObservationEvent" table="REACTION_V" >
        <id name="id" type="java.lang.Long" >
            <column name="REACTION_ID" />
			<generator class="sequence">
				<param name="sequence">reaction_seq_id</param>
			</generator>
        </id>

	 	<property name="observationTime" type="gov.va.med.cds.persistence.hibernate.common.PointInTimeUserType" >
			<column name="OBSERVATION_TM"/>
			<column name="OBSERVATION_TM_NBR"/>
		</property>

        <component name="reaction" class="gov.va.med.cds.template.generated.basedatatypes.HL72CodedElementLite">
			<property name="code" column="REACTION_CODE" type="java.lang.String"  />
			<property name="displayText" column="REACTION_DSPLYTXT" type="java.lang.String" />
			<property name="codingSystem" column="REACTION_CODSYS" type="java.lang.String"  />
		</component>

<!-- import from .../common/AuthorPractitionerParticipation.hbm -->
&author;
    </class>

    <class entity-name="rdiReaction" table="REACTION_V" name="gov.va.med.cds.template.generated.allergies.ReactionObservationEvent">
        <id name="id" type="java.lang.Long" >
            <column name="REACTION_ID" />
			<generator class="sequence">
				<param name="sequence">reaction_seq_id</param>
			</generator>
        </id>

        <component name="reaction" class="gov.va.med.cds.template.generated.basedatatypes.HL72CodedElementLite">
			<property name="code" column="REACTION_CODE" type="java.lang.String"  />
			<property name="displayText" column="REACTION_DSPLYTXT" type="java.lang.String" />
			<property name="codingSystem" column="REACTION_CODSYS" type="java.lang.String"  />
		</component>
		
       <property name="observationTime" type="gov.va.med.cds.persistence.hibernate.common.PointInTimeUserType" >
			<column name="OBSERVATION_TM"/>
			<column name="OBSERVATION_TM_NBR"/>
		</property>
		
    </class>
    
    <class entity-name="mhvReaction"  name="gov.va.med.cds.template.generated.allergies.ReactionObservationEvent" table="REACTION_V" >
        <id name="id" type="java.lang.Long" >
            <column name="REACTION_ID" />
			<generator class="sequence">
				<param name="sequence">reaction_seq_id</param>
			</generator>
        </id>

	 	<property name="observationTime" type="gov.va.med.cds.persistence.hibernate.common.PointInTimeUserType" >
			<column name="OBSERVATION_TM"/>
			<column name="OBSERVATION_TM_NBR"/>
		</property>

        <component name="reaction" class="gov.va.med.cds.template.generated.basedatatypes.HL72CodedElementLite">
			<property name="code" column="REACTION_CODE" type="java.lang.String"  />
			<property name="displayText" column="REACTION_DSPLYTXT" type="java.lang.String" />
			<property name="codingSystem" column="REACTION_CODSYS" type="java.lang.String"  />
		</component>

<!-- import from .../common/AuthorPractitionerParticipation.hbm -->
&author;
    </class>
    
    <class entity-name="vwReaction"  name="gov.va.med.cds.template.generated.allergies.ReactionObservationEvent" table="REACTION_V" >
        <id name="id" type="java.lang.Long" >
            <column name="REACTION_ID" />
			<generator class="sequence">
				<param name="sequence">reaction_seq_id</param>
			</generator>
        </id>

	 	<property name="observationTime" type="gov.va.med.cds.persistence.hibernate.common.PointInTimeUserType" >
			<column name="OBSERVATION_TM"/>
			<column name="OBSERVATION_TM_NBR"/>
		</property>

        <component name="reaction" class="gov.va.med.cds.template.generated.basedatatypes.HL72CodedElementLite">
			<property name="code" column="REACTION_CODE" type="java.lang.String"  />
			<property name="displayText" column="REACTION_DSPLYTXT" type="java.lang.String" />
			<property name="codingSystem" column="REACTION_CODSYS" type="java.lang.String"  />
		</component>

<!-- import from .../common/AuthorPractitionerParticipation.hbm -->
&author;
    </class>
    
</hibernate-mapping>
