<?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">
<hibernate-mapping>
	<class entity-name="ActivityLog40010" table="ACTIVITY_LOG_V" name="gov.va.med.cds.template.generated.pharmacy.ActivityLog" >
		<id name="id" type="java.lang.Long">
			<column name="ACTIVITY_LOG_ID"/>
			<generator class="sequence">
				<param name="sequence">activity_log_seq_id</param>
			</generator>
		</id>
		
		<property name="activityDate" type="gov.va.med.cds.persistence.hibernate.common.PointInTimeUserType">
			<column name="ACTIVITY_DT"/>
			<column name="ACTIVITY_DT_NBR"/>
		</property>
		
		<component name="reason" class="gov.va.med.cds.template.generated.basedatatypes.HL72CodedElementLite">
			<property name="code" column="REASON_CODE" type="java.lang.String"/>
			<property name="displayText" column="REASON_DSPLYTXT" type="java.lang.String"/>
			<property name="codingSystem" column="REASON_CODSYS" type="java.lang.String" />
		</component>
		
		<!-- &initiator;-->
		<component name="initiator" class="gov.va.med.cds.template.generated.common.PractitionerParticipationLite">
        	<property name="comment" column="INIT_PRACTITIONER_COMMENTS" type="java.lang.String"  />
    		<property name="time" type="gov.va.med.cds.persistence.hibernate.common.PointInTimeUserType">
    			<column name="INIT_PRACTITIONER_TM"/>
    			<column name="INIT_PRACTITIONER_TM_NBR"/>
    		</property>
        	<component name="practitioner" class="gov.va.med.cds.template.generated.common.PractitionerLite">
    			<component name="identifier" class="gov.va.med.cds.template.generated.basedatatypes.HL72PersonIdentifier">
    				<property name="identity" column="INIT_PERSON_IDENTITY" type="java.lang.String"  />
    				<property name="assigningFacility" column="INIT_PERSON_ASGNING_FACILITY" type="java.lang.String"  />
    				<property name="assigningAuthority" column="INIT_PERSON_ASGNING_AUTHORITY" type="java.lang.String"  />
    			</component>
            	<property name="idSourceTable" column="INIT_PRACTITIONER_ID_SRC_TBL" type="java.lang.String"  />
    			<component name="name" class="gov.va.med.cds.template.generated.basedatatypes.HL72PersonName">
    				<property name="prefix" column="INIT_NAME_PREFIX" type="java.lang.String"  />
    				<property name="given" column="INIT_NAME_GIVEN" type="java.lang.String"  />
    				<property name="middle" column="INIT_NAME_MIDDLE" type="java.lang.String"  />
    				<property name="family" column="INIT_NAME_FAMILY" type="java.lang.String"  />
    				<property name="suffix" column="INIT_NAME_SUFFIX" type="java.lang.String"  />
    				<property name="title" column="INIT_NAME_TITLE" type="java.lang.String" />
        		</component>
        	</component>
	     </component>

		<property name="comment" column="ACTIVITY_LOG_COMMENT" type="java.lang.String" />
	</class>
</hibernate-mapping>
