<?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.vitalsigns.ErrorReason" table="ERROR_REASON_V">
        <id type="java.lang.Long" node="id">
            <column name="ERROR_REASON_ID"/>
            <generator class="sequence" >
				<param name="sequence">error_reason_seq_id</param>
			</generator>
        </id>

        <component name="reason" class="gov.va.med.cds.template.generated.basedatatypes.HL72CodedElementLite">
			<property name="code" column="ERROR_REASON_CODE" type="java.lang.String" />
			<property name="displayText" column="ERROR_REASON_DSPLYTXT" type="java.lang.String" />
			<property name="codingSystem" column="ERROR_REASON_CODSYS" type="java.lang.String" />
		</component>

    </class>
</hibernate-mapping>
