<?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 default-lazy="false" default-cascade="all">
    <class entity-name="vitalSignsDelete40030" table="VITAL30_V" lazy="false" node="vitalSignObservationEvents">
       <id type="java.lang.Long" name="id">
            <column name="VITAL_ID" />
            <generator class="sequence" >
				<param name="sequence">vital_seq_id</param>
			</generator>
        </id>

        <component name="recordIdentifier" node="recordIdentifier">
			<property name="identity" column="RECORDIDENTIFIER_IDENTITY" type="java.lang.String" node="identity" />
			<property name="namespaceId" column="RECORDIDENTIFIER_NAMESPACEID" type="java.lang.String" node="namespaceId" />
			<property name="universalId" column="RECORDIDENTIFIER_UNIVERSALID" type="java.lang.String" node="universalId" />
			<property name="universalIdType" column="RECORDIDENTIFIER_UNIVERSTYP" type="java.lang.String" node="universalIdType" />
		</component>

		<property name="recordVersion" column="RECORD_VERSION" type="integer" node="recordVersion" />

		<property name="requestId" column="REQUEST_ID" type="java.lang.String" node="requestId" />

    </class>


	<!-- Vitals Named Queries HQL -->

    <query name="VitalsignsDelete40030.VitalSignObservationEvent.patient.identifiers">
		<![CDATA[
		from vitalSignsDelete40030 vital
		where vital.recordIdentifier.identity || '/' || vital.recordIdentifier.namespaceId || '/' ||
		vital.recordIdentifier.universalId || '/' || vital.recordIdentifier.universalIdType in ( :recordIdentifiers )
		]]>
	</query>


</hibernate-mapping>
