<?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 name="gov.va.med.cds.template.generated.allergies.DrugClass" entity-name="DrugClass" table="DRUG_CLASS_V" >
   		<id name="id" type="java.lang.Long">
            <column name="DRUG_CLASS_ID" />
            <generator class="sequence" >
				<param name="sequence">drug_class_seq_id</param>
			</generator>
        </id>

        <component name="code"  class="gov.va.med.cds.template.generated.basedatatypes.HL72CodedElement">
			<property name="code" column="DRUG_CLASS_CODE" type="java.lang.String"  />
			<property name="displayText" column="DRUG_CLASS_DSPLYTXT" type="java.lang.String"  />
			<property name="codingSystem" column="DRUG_CLASS_CODSYS" type="java.lang.String"  />
			<property name="alternateCode" column="DRUG_CLASS_ALT_CODE" type="java.lang.String"  />
			<property name="alternateDisplayText" column="DRUG_CLASS_ALT_DSPLYTXT" type="java.lang.String"  />
			<property name="alternateCodingSystem" column="DRUG_CLASS_ALT_CODSYS" type="java.lang.String"  />
		</component>
    </class>
    
    <class entity-name="rdiDrugClass" table="DRUG_CLASS_V" name="gov.va.med.cds.template.generated.allergies.DrugClass">
        <id name="id" type="java.lang.Long">
            <column name="DRUG_CLASS_ID" />
            <generator class="sequence" >
				<param name="sequence">drug_class_seq_id</param>
			</generator>
        </id>

        <component name="code"  class="gov.va.med.cds.template.generated.basedatatypes.HL72CodedElement">
			<property name="code" column="DRUG_CLASS_CODE" type="java.lang.String"  />
			<property name="displayText" column="DRUG_CLASS_DSPLYTXT" type="java.lang.String"  />
			<property name="codingSystem" column="DRUG_CLASS_CODSYS" type="java.lang.String"  />
			<property name="alternateCode" column="DRUG_CLASS_ALT_CODE" type="java.lang.String"  />
			<property name="alternateDisplayText" column="DRUG_CLASS_ALT_DSPLYTXT" type="java.lang.String"  />
			<property name="alternateCodingSystem" column="DRUG_CLASS_ALT_CODSYS" type="java.lang.String"  />
		</component>

    </class>
    
    <class name="gov.va.med.cds.template.generated.allergies.DrugClass" entity-name="mhvDrugClass" table="DRUG_CLASS_V" >
   		<id name="id" type="java.lang.Long">
            <column name="DRUG_CLASS_ID" />
            <generator class="sequence" >
				<param name="sequence">drug_class_seq_id</param>
			</generator>
        </id>

        <component name="code"  class="gov.va.med.cds.template.generated.basedatatypes.HL72CodedElement">
			<property name="code" column="DRUG_CLASS_CODE" type="java.lang.String"  />
			<property name="displayText" column="DRUG_CLASS_DSPLYTXT" type="java.lang.String"  />
			<property name="codingSystem" column="DRUG_CLASS_CODSYS" type="java.lang.String"  />
			<property name="alternateCode" column="DRUG_CLASS_ALT_CODE" type="java.lang.String"  />
			<property name="alternateDisplayText" column="DRUG_CLASS_ALT_DSPLYTXT" type="java.lang.String"  />
			<property name="alternateCodingSystem" column="DRUG_CLASS_ALT_CODSYS" type="java.lang.String"  />
		</component>
    </class>
    
    <class name="gov.va.med.cds.template.generated.allergies.DrugClass" entity-name="vwDrugClass" table="DRUG_CLASS_V" >
   		<id name="id" type="java.lang.Long">
            <column name="DRUG_CLASS_ID" />
            <generator class="sequence" >
				<param name="sequence">drug_class_seq_id</param>
			</generator>
        </id>

        <component name="code"  class="gov.va.med.cds.template.generated.basedatatypes.HL72CodedElement">
			<property name="code" column="DRUG_CLASS_CODE" type="java.lang.String"  />
			<property name="displayText" column="DRUG_CLASS_DSPLYTXT" type="java.lang.String"  />
			<property name="codingSystem" column="DRUG_CLASS_CODSYS" type="java.lang.String"  />
			<property name="alternateCode" column="DRUG_CLASS_ALT_CODE" type="java.lang.String"  />
			<property name="alternateDisplayText" column="DRUG_CLASS_ALT_DSPLYTXT" type="java.lang.String"  />
			<property name="alternateCodingSystem" column="DRUG_CLASS_ALT_CODSYS" type="java.lang.String"  />
		</component>
    </class>
    
</hibernate-mapping>
