This wiki has undergone a migration to Confluence found Here
<meta name="googlebot" content="noindex">

HIBERNATE MAPPING FILE

From HL7Wiki
Jump to navigation Jump to search
<?xml version="1.0" encoding="ASCII" ?> 
  <!DOCTYPE hibernate-mapping (View Source for full doctype...)> 
- <hibernate-mapping default-cascade="none" default-access="property" default-lazy="true" auto-import="true">
- <typedef name="II" class="org.hl7.hibernate.MultiColumnPersistedDataTypeUserType">
  <param name="type">II</param> 
  <param name="interface">org.hl7.types.II</param> 
  <param name="class">org.hl7.types.impl.IIimpl</param> 
  <param name="staticFactoryMethod">valueOf</param> 
  <param name="properties">2</param> 
  <param name="property.0.name">root</param> 
  <param name="property.0.class">org.hl7.types.UID</param> 
  <param name="property.0.type">org.hl7.hibernate.StringLiteralPersistedDataTypeUserType</param> 
  <param name="property.0.type.params">1</param> 
  <param name="property.0.type.param.0.type">UID</param> 
  <param name="property.1.name">extension</param> 
  <param name="property.1.class">org.hl7.types.ST</param> 
  <param name="property.1.type">org.hl7.hibernate.StringLiteralPersistedDataTypeUserType</param> 
  <param name="property.1.type.params">1</param> 
  <param name="property.1.type.param.0.type">ST</param> 
  </typedef>
  <typedef name="TS" class="com.phi.jsigadapter.hibernate.TSUserType" /> 
  <typedef name="BL" class="com.phi.jsigadapter.hibernate.BLUserType" /> 
  <typedef name="INT" class="com.phi.jsigadapter.hibernate.INTUserType" /> 
- <typedef name="ST" class="org.hl7.hibernate.StringLiteralPersistedDataTypeUserType">
  <param name="type">ST</param> 
  </typedef>
  <typedef name="IVL<TS>" class="com.phi.jsigadapter.hibernate.IVL_TSUserType" /> 
  <typedef name="IVL<INT>" class="com.phi.jsigadapter.hibernate.IVL_INTUserType" /> 
- <typedef name="REAL" class="org.hl7.hibernate.StringLiteralPersistedDataTypeUserType">
  <param name="type">REAL</param> 
  </typedef>
- <typedef name="UID" class="org.hl7.hibernate.StringLiteralPersistedDataTypeUserType">
  <param name="type">UID</param> 
  </typedef>
  <typedef name="Unit" class="com.phi.jsigadapter.hibernate.UnitUserType" /> 
  <typedef name="RTO" class="com.phi.jsigadapter.hibernate.RTOUserType" /> 
- <!-- <typedef name="GTS" class="com.phi.jsigadapter.hibernate.GTSUserType" />
  --> 
- <!-- <typedef name="ANY" class="com.phi.jsigadapter.hibernate.ANYUserType" />
  --> 
- <typedef name="ANY" class="org.hl7.hibernate.XMLWithIndexableColumnsPersistedDataTypeUserType">
  <param name="type">ANY</param> 
  <param name="properties">5</param> 
  <param name="property.0.name">displayName</param> 
  <param name="property.0.class">org.hl7.types.ST</param> 
  <param name="property.0.type">org.hl7.hibernate.StringLiteralPersistedDataTypeUserType</param> 
  <param name="property.0.type.params">1</param> 
  <param name="property.0.type.param.0.type">ST</param> 
  <param name="property.0.accessorTool">org.hl7.types.DatatypeTool$ANYTool</param> 
  <param name="property.0.accessorMethod">getDisplayName</param> 
  <param name="property.1.name">code</param> 
  <param name="property.1.class">org.hl7.types.ST</param> 
  <param name="property.1.type">org.hl7.hibernate.StringLiteralPersistedDataTypeUserType</param> 
  <param name="property.1.type.params">1</param> 
  <param name="property.1.type.param.0.type">ST</param> 
  <param name="property.1.accessorTool">org.hl7.types.DatatypeTool$ANYTool</param> 
  <param name="property.1.accessorMethod">getCode</param> 
  <param name="property.2.name">codeSystem</param> 
  <param name="property.2.class">org.hl7.types.ST</param> 
  <param name="property.2.type">org.hl7.hibernate.StringLiteralPersistedDataTypeUserType</param> 
  <param name="property.2.type.params">1</param> 
  <param name="property.2.type.param.0.type">ST</param> 
  <param name="property.2.accessorTool">org.hl7.types.DatatypeTool$ANYTool</param> 
  <param name="property.2.accessorMethod">getCodeSystem</param> 
  <param name="property.3.name">number</param> 
  <param name="property.3.class">org.hl7.types.ST</param> 
  <param name="property.3.type">org.hl7.hibernate.StringLiteralPersistedDataTypeUserType</param> 
  <param name="property.3.type.params">1</param> 
  <param name="property.3.type.param.0.type">ST</param> 
  <param name="property.3.accessorTool">org.hl7.types.DatatypeTool$ANYTool</param> 
  <param name="property.3.accessorMethod">getPQCanonicalValue</param> 
  <param name="property.4.name">unit</param> 
  <param name="property.4.class">org.hl7.types.ST</param> 
  <param name="property.4.type">org.hl7.hibernate.StringLiteralPersistedDataTypeUserType</param> 
  <param name="property.4.type.params">1</param> 
  <param name="property.4.type.param.0.type">ST</param> 
  <param name="property.4.accessorTool">org.hl7.types.DatatypeTool$ANYTool</param> 
  <param name="property.4.accessorMethod">getPQCanonicalUnit</param> 
  <param name="property.5.name">xml</param> 
  </typedef>
- <typedef name="LIST<ANY>" class="org.hl7.hibernate.XMLPersistedDataTypeUserType">
  <param name="type">LIST<ANY></param> 
  </typedef>
- <typedef name="URL" class="org.hl7.hibernate.StringLiteralPersistedDataTypeUserType">
  <param name="type">URL</param> 
  </typedef>
- <class name="org.hl7.rim.impl.ActImpl" table="act" discriminator-value="0" lazy="true" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false" select-before-update="false" optimistic-lock="version">
- <id name="internalId" type="long" unsaved-value="null">
  <column name="internal_id" /> 
  <generator class="native" /> 
  </id>
  <discriminator column="internalDiscriminator" type="integer" not-null="true" force="false" insert="true" /> 
  <version name="internalVersionNumber" column="internalVersionNumber" type="long" unsaved-value="negative" generated="never" /> 
- <property name="creationDate" type="timestamp" not-null="true" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="creation_date" /> 
  </property>
- <property name="createdBy" type="string" not-null="true" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="created_by" /> 
  </property>
- <many-to-one name="owner" class="com.phi.sdloc.Owner" cascade="all" lazy="proxy" foreign-key="FK_Act_owner" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="owner" /> 
  </many-to-one>
- <property name="isActive" type="boolean" not-null="true" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="is_active" /> 
  </property>
- <property name="ccName" type="string" not-null="true" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="cc_name" /> 
  </property>
- <many-to-one name="classCode" class="org.hl7.types.impl.CSimpl" not-null="true" lazy="proxy" foreign-key="FK_Act_classCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="class_code" /> 
  </many-to-one>
- <many-to-one name="moodCode" class="org.hl7.types.impl.CSimpl" not-null="true" lazy="proxy" foreign-key="FK_Act_moodCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="mood_code" /> 
  </many-to-one>
- <set name="id" mutable="false" table="act_id" lazy="extra" access="org.hl7.hibernate.WrappingSetAccessor" cascade="all" sort="unsorted" inverse="false" optimistic-lock="true" embed-xml="true">
  <key column="act_id" on-delete="noaction" /> 
- <element type="II" not-null="false" unique="false">
  <column name="root" index="act_Id_Root_Index" /> 
  <column name="extension" index="act_Id_Extension_Index" /> 
  </element>
  </set>
- <many-to-one name="code" class="org.hl7.types.impl.CDimpl" not-null="false" lazy="proxy" foreign-key="FK_Act_code" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="code" /> 
  </many-to-one>
- <property name="negationInd" type="BL" not-null="true" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="negation_ind" /> 
  </property>
- <property name="derivationExpr" type="ST" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="derivation_expr" /> 
  </property>
- <many-to-one name="title" class="org.hl7.types.impl.EDbyteArrayImpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_Act_title" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="title" /> 
  </many-to-one>
- <many-to-one name="text" class="org.hl7.types.impl.EDbyteArrayImpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_Act_text" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="text" /> 
  </many-to-one>
- <many-to-one name="statusCode" class="org.hl7.types.impl.CSimpl" not-null="false" lazy="proxy" foreign-key="FK_Act_statusCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="status_code" /> 
  </many-to-one>
- <many-to-one name="effectiveTime" class="org.hl7.types.impl.GTSimpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_Act_effectiveTime" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="effective_time" /> 
  </many-to-one>
- <many-to-one name="activityTime" class="org.hl7.types.impl.GTSimpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_Act_activityTime" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="activity_time" /> 
  </many-to-one>
- <property name="availabilityTime" type="TS" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="availability_time" /> 
  </property>
- <set name="priorityCode" table="act_priority_code" mutable="false" lazy="extra" access="org.hl7.hibernate.WrappingSetAccessor" sort="unsorted" inverse="false" optimistic-lock="true" embed-xml="true">
  <key column="act_id" on-delete="noaction" /> 
  <many-to-many column="priority_code" class="org.hl7.types.impl.CEimpl" embed-xml="true" not-found="exception" unique="false" /> 
  </set>
- <set name="confidentialityCode" table="act_confidentiality_code" mutable="false" lazy="extra" access="org.hl7.hibernate.WrappingSetAccessor" sort="unsorted" inverse="false" optimistic-lock="true" embed-xml="true">
  <key column="act_id" on-delete="noaction" /> 
  <many-to-many column="confidentiality_code" class="org.hl7.types.impl.CEimpl" embed-xml="true" not-found="exception" unique="false" /> 
  </set>
- <property name="repeatNumber" type="IVL<INT>" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="repeat_number_start" /> 
  <column name="repeat_number_stop" /> 
  </property>
- <property name="interruptibleInd" type="BL" not-null="false" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="interruptible_ind" /> 
  </property>
- <many-to-one name="levelCode" class="org.hl7.types.impl.CEimpl" not-null="true" lazy="proxy" foreign-key="FK_Act_levelCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="level_code" /> 
  </many-to-one>
- <property name="independentInd" type="BL" not-null="false" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="independent_ind" /> 
  </property>
- <many-to-one name="uncertaintyCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_Act_uncertaintyCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="uncertainty_code" /> 
  </many-to-one>
- <set name="reasonCode" table="act_reason_code" mutable="false" lazy="extra" access="org.hl7.hibernate.WrappingSetAccessor" sort="unsorted" inverse="false" optimistic-lock="true" embed-xml="true">
  <key column="act_id" on-delete="noaction" /> 
  <many-to-many column="reason_code" class="org.hl7.types.impl.CEimpl" embed-xml="true" not-found="exception" unique="false" /> 
  </set>
- <many-to-one name="languageCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_Act_languageCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="language_code" /> 
  </many-to-one>
- <bag name="outboundRelationship" table="actrelationship" inverse="true" cascade="all" lazy="true" mutable="true" optimistic-lock="true" embed-xml="true">
  <key column="sourceInternalId" on-delete="noaction" /> 
  <one-to-many class="org.hl7.rim.impl.ActRelationshipImpl" not-found="exception" embed-xml="true" /> 
  </bag>
- <bag name="inboundRelationship" table="actrelationship" inverse="true" cascade="all" lazy="true" mutable="true" optimistic-lock="true" embed-xml="true">
  <key column="targetInternalId" on-delete="noaction" /> 
  <one-to-many class="org.hl7.rim.impl.ActRelationshipImpl" not-found="exception" embed-xml="true" /> 
  </bag>
- <bag name="participation" table="participation" inverse="true" cascade="all" lazy="true" mutable="true" optimistic-lock="true" embed-xml="true">
  <key column="actInternalId" on-delete="noaction" /> 
  <one-to-many class="org.hl7.rim.impl.ParticipationImpl" not-found="exception" embed-xml="true" /> 
  </bag>
- <subclass name="org.hl7.rim.impl.AccountImpl" discriminator-value="1" lazy="true" dynamic-update="false" dynamic-insert="false" select-before-update="false">
- <many-to-one name="balanceAmt" class="org.hl7.types.impl.MOimpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_Account_balanceAmt" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="balance_amt" /> 
  </many-to-one>
- <many-to-one name="currencyCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_Account_currencyCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="currency_code" /> 
  </many-to-one>
- <many-to-one name="interestRateQuantity" class="ratio_monetaryamount_physicalquantity" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_Account_interestRateQuantit" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="interest_rate_quantity" /> 
  </many-to-one>
- <many-to-one name="allowedBalanceQuantity" class="org.hl7.types.impl.IVLimpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_Account_allowedBalanceQuant" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="allowed_balance_quantity_id" /> 
  </many-to-one>
  </subclass>
- <subclass name="org.hl7.rim.impl.DeviceTaskImpl" discriminator-value="2" lazy="true" dynamic-update="false" dynamic-insert="false" select-before-update="false">
- <list name="parameterValue" table="devicetask_parametervalue" access="org.hl7.hibernate.WrappingListAccessor" cascade="all" lazy="extra" inverse="false" mutable="true" optimistic-lock="true" embed-xml="true">
  <key column="devicetask_id" on-delete="noaction" /> 
  <list-index column="listIndex" base="0" /> 
- <element type="ANY" not-null="false" unique="false">
  <column name="value_displayName" sql-type="VARCHAR(555)" length="555" /> 
  <column name="value_code" sql-type="VARCHAR(555)" length="555" /> 
  <column name="value_codeSystem" sql-type="VARCHAR(555)" length="555" /> 
  <column name="value_number" sql-type="VARCHAR(555)" length="555" /> 
  <column name="value_unit" sql-type="VARCHAR(555)" length="555" /> 
  <column name="value_xml" sql-type="VARCHAR(555)" length="555" /> 
  </element>
  </list>
  </subclass>
- <subclass name="org.hl7.rim.impl.SupplyImpl" discriminator-value="3" lazy="true" dynamic-update="false" dynamic-insert="false" select-before-update="false">
- <many-to-one name="quantity" class="org.hl7.types.impl.PQimpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_Supply_quantity" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="quantity" /> 
  </many-to-one>
- <property name="expectedUseTime" type="IVL<TS>" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="expected_use_time_start" /> 
  <column name="expected_use_time_stop" /> 
  </property>
- <subclass name="org.hl7.rim.impl.DietImpl" discriminator-value="4" lazy="true" dynamic-update="false" dynamic-insert="false" select-before-update="false">
- <many-to-one name="energyQuantity" class="org.hl7.types.impl.PQimpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_Diet_energyQuantity" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="energy_quantity" /> 
  </many-to-one>
- <many-to-one name="carbohydrateQuantity" class="org.hl7.types.impl.PQimpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_Diet_carbohydrateQuantity" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="carbohydrate_quantity" /> 
  </many-to-one>
  </subclass>
  </subclass>
- <subclass name="org.hl7.rim.impl.FinancialContractImpl" discriminator-value="5" lazy="true" dynamic-update="false" dynamic-insert="false" select-before-update="false">
- <many-to-one name="paymentTermsCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_FinancialContract_paymentTe" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="payment_terms_code" /> 
  </many-to-one>
  </subclass>
- <subclass name="org.hl7.rim.impl.FinancialTransactionImpl" discriminator-value="6" lazy="true" dynamic-update="false" dynamic-insert="false" select-before-update="false">
- <many-to-one name="amt" class="org.hl7.types.impl.MOimpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_FinancialTransaction_amt" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="amt" /> 
  </many-to-one>
- <property name="creditExchangeRateQuantity" type="REAL" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="credit_exchange_rate_quantity" /> 
  </property>
- <property name="debitExchangeRateQuantity" type="REAL" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="debit_exchange_rate_quantity" /> 
  </property>
  </subclass>
- <subclass name="org.hl7.rim.impl.InvoiceElementImpl" discriminator-value="7" lazy="true" dynamic-update="false" dynamic-insert="false" select-before-update="false">
- <set name="modifierCode" table="invoiceelement_modifier_code" mutable="false" lazy="extra" access="org.hl7.hibernate.WrappingSetAccessor" sort="unsorted" inverse="false" optimistic-lock="true" embed-xml="true">
  <key column="invoiceelement_id" on-delete="noaction" /> 
  <many-to-many column="modifier_code" class="org.hl7.types.impl.CEimpl" embed-xml="true" not-found="exception" unique="false" /> 
  </set>
- <many-to-one name="unitQuantity" class="org.hl7.types.impl.RTOimpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_InvoiceElement_unitQuantity" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="unit_quantity_id" /> 
  </many-to-one>
- <many-to-one name="unitPriceAmt" class="ratio_monetaryamount_physicalquantity" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_InvoiceElement_unitPriceAmt" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="unit_price_amt" /> 
  </many-to-one>
- <many-to-one name="netAmt" class="org.hl7.types.impl.MOimpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_InvoiceElement_netAmt" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="net_amt" /> 
  </many-to-one>
- <property name="factorNumber" type="REAL" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="factor_number" /> 
  </property>
- <property name="pointsNumber" type="REAL" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="points_number" /> 
  </property>
  </subclass>
- <subclass name="org.hl7.rim.impl.ObservationImpl" discriminator-value="8" lazy="true" dynamic-update="false" dynamic-insert="false" select-before-update="false">
- <property name="value" type="ANY" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="value_displayName" sql-type="VARCHAR(555)" length="555" /> 
  <column name="value_code" sql-type="VARCHAR(555)" length="555" /> 
  <column name="value_codeSystem" sql-type="VARCHAR(555)" length="555" /> 
  <column name="value_number" sql-type="VARCHAR(555)" length="555" /> 
  <column name="value_unit" sql-type="VARCHAR(555)" length="555" /> 
  <column name="value_xml" sql-type="VARCHAR(1000)" length="1000" /> 
  </property>
- <set name="interpretationCode" table="obs_interpretation_code" mutable="false" lazy="extra" access="org.hl7.hibernate.WrappingSetAccessor" sort="unsorted" inverse="false" optimistic-lock="true" embed-xml="true">
  <key column="observation_id" on-delete="noaction" /> 
  <many-to-many column="interpretation_code" class="org.hl7.types.impl.CEimpl" embed-xml="true" not-found="exception" unique="false" /> 
  </set>
- <set name="methodCode" table="observation_method_code" mutable="false" lazy="extra" access="org.hl7.hibernate.WrappingSetAccessor" sort="unsorted" inverse="false" optimistic-lock="true" embed-xml="true">
  <key column="observation_id" on-delete="noaction" /> 
  <many-to-many column="method_code" class="org.hl7.types.impl.CEimpl" embed-xml="true" not-found="exception" unique="false" /> 
  </set>
- <set name="targetSiteCode" table="observation_target_site_code" mutable="false" lazy="extra" access="org.hl7.hibernate.WrappingSetAccessor" sort="unsorted" inverse="false" optimistic-lock="true" embed-xml="true">
  <key column="observation_id" on-delete="noaction" /> 
  <many-to-many column="target_site_code" class="org.hl7.types.impl.CDimpl" embed-xml="true" not-found="exception" unique="false" /> 
  </set>
- <property name="valueNegationInd" type="BL" not-null="false" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="value_negation_ind" /> 
  </property>
- <subclass name="org.hl7.rim.impl.DiagnosticImageImpl" discriminator-value="9" lazy="true" dynamic-update="false" dynamic-insert="false" select-before-update="false">
- <many-to-one name="subjectOrientationCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_DiagnosticImage_subjectOrie" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="subject_orientation_code" /> 
  </many-to-one>
  </subclass>
- <subclass name="org.hl7.rim.impl.PublicHealthCaseImpl" discriminator-value="10" lazy="true" dynamic-update="false" dynamic-insert="false" select-before-update="false">
- <many-to-one name="detectionMethodCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_PublicHealthCase_detectionM" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="detection_method_code" /> 
  </many-to-one>
- <many-to-one name="transmissionModeCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_PublicHealthCase_transmissi" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="transmission_mode_code" /> 
  </many-to-one>
- <many-to-one name="diseaseImportedCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_PublicHealthCase_diseaseImp" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="disease_imported_code" /> 
  </many-to-one>
  </subclass>
  </subclass>
- <subclass name="org.hl7.rim.impl.PatientEncounterImpl" discriminator-value="11" lazy="true" dynamic-update="false" dynamic-insert="false" select-before-update="false">
- <property name="preAdmitTestInd" type="BL" not-null="false" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="pre_admit_test_ind" /> 
  </property>
- <many-to-one name="admissionReferralSourceCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_PatientEncounter_admissionR" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="admission_referral_source_code" /> 
  </many-to-one>
- <many-to-one name="lengthOfStayQuantity" class="org.hl7.types.impl.PQimpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_PatientEncounter_lengthOfSt" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="length_of_stay_quantity" /> 
  </many-to-one>
- <many-to-one name="dischargeDispositionCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_PatientEncounter_dischargeD" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="discharge_disposition_code" /> 
  </many-to-one>
- <set name="specialCourtesiesCode" table="patenc_special_courtesies_code" mutable="false" lazy="extra" access="org.hl7.hibernate.WrappingSetAccessor" sort="unsorted" inverse="false" optimistic-lock="true" embed-xml="true">
  <key column="patientencounter_id" on-delete="noaction" /> 
  <many-to-many column="special_courtesies_code" class="org.hl7.types.impl.CEimpl" embed-xml="true" not-found="exception" unique="false" /> 
  </set>
- <set name="specialArrangementCode" table="patenc_special_arrangement_cod" mutable="false" lazy="extra" access="org.hl7.hibernate.WrappingSetAccessor" sort="unsorted" inverse="false" optimistic-lock="true" embed-xml="true">
  <key column="patientencounter_id" on-delete="noaction" /> 
  <many-to-many column="special_arrangement_code" class="org.hl7.types.impl.CEimpl" embed-xml="true" not-found="exception" unique="false" /> 
  </set>
- <many-to-one name="acuityLevelCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_PatientEncounter_acuityLeve" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="acuity_level_code" /> 
  </many-to-one>
  </subclass>
- <subclass name="org.hl7.rim.impl.WorkingListImpl" discriminator-value="12" lazy="true" dynamic-update="false" dynamic-insert="false" select-before-update="false">
- <many-to-one name="ownershipLevelCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_WorkingList_ownershipLevelC" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="ownership_level_code" /> 
  </many-to-one>
  </subclass>
  <subclass name="org.hl7.rim.impl.ControlActImpl" discriminator-value="13" lazy="true" dynamic-update="false" dynamic-insert="false" select-before-update="false" /> 
- <subclass name="org.hl7.rim.impl.ContextStructureImpl" discriminator-value="14" lazy="true" dynamic-update="false" dynamic-insert="false" select-before-update="false">
- <property name="setId" type="II" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="root" index="ctxstruct_Id_Root_Index" /> 
  <column name="extension" index="ctxstruct_Id_Extension_Index" /> 
  </property>
- <property name="versionNumber" type="INT" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="version_number" /> 
  </property>
- <subclass name="org.hl7.rim.impl.DocumentImpl" discriminator-value="15" lazy="true" dynamic-update="false" dynamic-insert="false" select-before-update="false">
- <property name="copyTime" type="TS" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="copy_time" /> 
  </property>
- <set name="bibliographicDesignationText" mutable="false" table="bibliographic_designation_text" lazy="extra" access="org.hl7.hibernate.WrappingSetAccessor" cascade="all" sort="unsorted" inverse="false" optimistic-lock="true" embed-xml="true">
  <key column="document_id" on-delete="noaction" /> 
  <many-to-many column="bibliographic_designation_text" class="org.hl7.types.impl.EDbyteArrayImpl" embed-xml="true" not-found="exception" unique="false" /> 
  </set>
- <many-to-one name="completionCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_Document_completionCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="completion_code" /> 
  </many-to-one>
- <many-to-one name="storageCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_Document_storageCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="storage_code" /> 
  </many-to-one>
  </subclass>
  </subclass>
- <subclass name="org.hl7.rim.impl.ExposureImpl" discriminator-value="16" lazy="true" dynamic-update="false" dynamic-insert="false" select-before-update="false">
- <many-to-one name="routeCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_Exposure_routeCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="route_code" /> 
  </many-to-one>
- <many-to-one name="exposureLevel" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_Exposure_exposureLevel" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="exposure_level" /> 
  </many-to-one>
- <many-to-one name="exposureModeCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_Exposure_exposureModeCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="exposure_mode_code" /> 
  </many-to-one>
  </subclass>
- <subclass name="org.hl7.rim.impl.ProcedureImpl" discriminator-value="17" lazy="true" dynamic-update="false" dynamic-insert="false" select-before-update="false">
- <set name="methodCode" table="procedure_method_code" mutable="false" lazy="extra" access="org.hl7.hibernate.WrappingSetAccessor" sort="unsorted" inverse="false" optimistic-lock="true" embed-xml="true">
  <key column="procedure_id" on-delete="noaction" /> 
  <many-to-many column="method_code" class="org.hl7.types.impl.CDimpl" embed-xml="true" not-found="exception" unique="false" /> 
  </set>
- <set name="approachSiteCode" table="procedure_approach_site_code" mutable="false" lazy="extra" access="org.hl7.hibernate.WrappingSetAccessor" sort="unsorted" inverse="false" optimistic-lock="true" embed-xml="true">
  <key column="procedure_id" on-delete="noaction" /> 
  <many-to-many column="approach_site_code" class="org.hl7.types.impl.CDimpl" embed-xml="true" not-found="exception" unique="false" /> 
  </set>
- <set name="targetSiteCode" table="procedure_target_site_code" mutable="false" lazy="extra" access="org.hl7.hibernate.WrappingSetAccessor" sort="unsorted" inverse="false" optimistic-lock="true" embed-xml="true">
  <key column="procedure_id" on-delete="noaction" /> 
  <many-to-many column="target_site_code" class="org.hl7.types.impl.CDimpl" embed-xml="true" not-found="exception" unique="false" /> 
  </set>
- <subclass name="org.hl7.rim.impl.SubstanceAdministrationImpl" discriminator-value="18" lazy="true" dynamic-update="false" dynamic-insert="false" select-before-update="false">
- <many-to-one name="routeCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_SubstanceAdministration_rou" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="route_code" /> 
  </many-to-one>
- <many-to-one name="doseQuantity" class="interval_physicalquantity" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_SubstanceAdministration_dos" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="dose_quantity_id" /> 
  </many-to-one>
- <many-to-one name="rateQuantity" class="interval_physicalquantity" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_SubstanceAdministration_rat" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="rate_quantity_id" /> 
  </many-to-one>
- <set name="doseCheckQuantity" mutable="false" table="subadmin_dose_check_quantity" lazy="extra" access="org.hl7.hibernate.WrappingSetAccessor" cascade="all" sort="unsorted" inverse="false" optimistic-lock="true" embed-xml="true">
  <key column="substanceadministration_id" on-delete="noaction" /> 
  <many-to-many column="dose_check_quantity" class="org.hl7.types.impl.RTOimpl" embed-xml="true" not-found="exception" unique="false" /> 
  </set>
- <set name="maxDoseQuantity" mutable="false" table="subadmin_max_dose_quantity" lazy="extra" access="org.hl7.hibernate.WrappingSetAccessor" cascade="all" sort="unsorted" inverse="false" optimistic-lock="true" embed-xml="true">
  <key column="substanceadministration_id" on-delete="noaction" /> 
  <many-to-many column="max_dose_quantity" class="org.hl7.types.impl.RTOimpl" embed-xml="true" not-found="exception" unique="false" /> 
  </set>
- <many-to-one name="administrationUnitCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_SubstanceAdministration_adm" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="administration_unit_code" /> 
  </many-to-one>
  </subclass>
  </subclass>
  </class>
- <class name="org.hl7.rim.impl.ActRelationshipImpl" table="actrelationship" lazy="true" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false" select-before-update="false" optimistic-lock="version">
- <id name="internalId" type="long" unsaved-value="null">
  <column name="internal_id" /> 
  <generator class="native" /> 
  </id>
  <version name="internalVersionNumber" column="internalVersionNumber" type="long" unsaved-value="negative" generated="never" /> 
- <property name="creationDate" type="timestamp" not-null="true" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="creation_date" /> 
  </property>
- <property name="createdBy" type="string" not-null="true" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="created_by" /> 
  </property>
- <many-to-one name="owner" class="com.phi.sdloc.Owner" cascade="all" lazy="proxy" foreign-key="FK_ActRelationship_owner" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="owner" /> 
  </many-to-one>
- <property name="isActive" type="boolean" not-null="true" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="is_active" /> 
  </property>
- <property name="ccName" type="string" not-null="true" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="cc_name" /> 
  </property>
- <many-to-one name="typeCode" class="org.hl7.types.impl.CSimpl" not-null="true" lazy="proxy" foreign-key="FK_ActRelationship_typeCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="type_code" /> 
  </many-to-one>
- <property name="inversionInd" type="BL" not-null="true" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="inversion_ind" /> 
  </property>
- <many-to-one name="contextControlCode" class="org.hl7.types.impl.CSimpl" not-null="true" lazy="proxy" foreign-key="FK_ActRelationship_contextCont" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="context_control_code" /> 
  </many-to-one>
- <property name="contextConductionInd" type="BL" not-null="true" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="context_conduction_ind" /> 
  </property>
- <property name="sequenceNumber" type="INT" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="sequence_number" /> 
  </property>
- <property name="priorityNumber" type="REAL" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="priority_number" /> 
  </property>
- <many-to-one name="pauseQuantity" class="org.hl7.types.impl.PQimpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_ActRelationship_pauseQuanti" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="pause_quantity" /> 
  </many-to-one>
- <many-to-one name="checkpointCode" class="org.hl7.types.impl.CSimpl" not-null="false" lazy="proxy" foreign-key="FK_ActRelationship_checkpointC" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="checkpoint_code" /> 
  </many-to-one>
- <many-to-one name="splitCode" class="org.hl7.types.impl.CSimpl" not-null="false" lazy="proxy" foreign-key="FK_ActRelationship_splitCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="split_code" /> 
  </many-to-one>
- <many-to-one name="joinCode" class="org.hl7.types.impl.CSimpl" not-null="false" lazy="proxy" foreign-key="FK_ActRelationship_joinCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="join_code" /> 
  </many-to-one>
- <property name="negationInd" type="BL" not-null="true" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="negation_ind" /> 
  </property>
- <many-to-one name="conjunctionCode" class="org.hl7.types.impl.CSimpl" not-null="false" lazy="proxy" foreign-key="FK_ActRelationship_conjunction" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="conjunction_code" /> 
  </many-to-one>
- <property name="localVariableName" type="ST" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="local_variable_name" /> 
  </property>
- <property name="seperatableInd" type="BL" not-null="false" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="seperatable_ind" /> 
  </property>
- <many-to-one name="subsetCode" class="org.hl7.types.impl.CSimpl" not-null="false" lazy="proxy" foreign-key="FK_ActRelationship_subsetCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="subset_code" /> 
  </many-to-one>
- <many-to-one name="uncertaintyCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_ActRelationship_uncertainty" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="uncertainty_code" /> 
  </many-to-one>
- <many-to-one name="source" class="org.hl7.rim.impl.ActImpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_ActRelationship_source" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="sourceInternalId" /> 
  </many-to-one>
- <many-to-one name="target" class="org.hl7.rim.impl.ActImpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_ActRelationship_target" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="targetInternalId" /> 
  </many-to-one>
  </class>
- <class name="org.hl7.rim.impl.EntityImpl" table="entity" discriminator-value="0" lazy="true" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false" select-before-update="false" optimistic-lock="version">
- <id name="internalId" type="long" unsaved-value="null">
  <column name="internal_id" /> 
  <generator class="native" /> 
  </id>
  <discriminator column="internalDiscriminator" type="integer" not-null="true" force="false" insert="true" /> 
  <version name="internalVersionNumber" column="internalVersionNumber" type="long" unsaved-value="negative" generated="never" /> 
- <property name="creationDate" type="timestamp" not-null="true" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="creation_date" /> 
  </property>
- <property name="createdBy" type="string" not-null="true" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="created_by" /> 
  </property>
- <many-to-one name="owner" class="com.phi.sdloc.Owner" cascade="all" lazy="proxy" foreign-key="FK_Entity_owner" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="owner" /> 
  </many-to-one>
- <property name="isActive" type="boolean" not-null="true" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="is_active" /> 
  </property>
- <property name="ccName" type="string" not-null="true" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="cc_name" /> 
  </property>
- <many-to-one name="classCode" class="org.hl7.types.impl.CSimpl" not-null="true" lazy="proxy" foreign-key="FK_Entity_classCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="class_code" /> 
  </many-to-one>
- <many-to-one name="determinerCode" class="org.hl7.types.impl.CSimpl" not-null="true" lazy="proxy" foreign-key="FK_Entity_determinerCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="determiner_code" /> 
  </many-to-one>
- <set name="id" mutable="false" table="entity_id" lazy="extra" access="org.hl7.hibernate.WrappingSetAccessor" cascade="all" sort="unsorted" inverse="false" optimistic-lock="true" embed-xml="true">
  <key column="entity_id" on-delete="noaction" /> 
- <element type="II" not-null="false" unique="false">
  <column name="root" index="entity_Id_Root_Index" /> 
  <column name="extension" index="entity_Id_Extension_Index" /> 
  </element>
  </set>
- <many-to-one name="code" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_Entity_code" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="code" /> 
  </many-to-one>
- <set name="quantity" table="entity_quantity" mutable="false" lazy="extra" access="org.hl7.hibernate.WrappingSetAccessor" cascade="all" sort="unsorted" inverse="false" optimistic-lock="true" embed-xml="true">
  <key column="entity_id" on-delete="noaction" /> 
  <many-to-many column="quantity_id" class="org.hl7.types.impl.PQimpl" embed-xml="true" not-found="exception" unique="false" /> 
  </set>
- <bag name="name" mutable="false" access="org.hl7.hibernate.WrappingBagAccessor" cascade="all" lazy="true" inverse="false" optimistic-lock="true" embed-xml="true">
  <key column="entity_id" on-delete="noaction" /> 
  <one-to-many class="org.hl7.types.impl.ENimpl" not-found="exception" embed-xml="true" /> 
  </bag>
- <many-to-one name="desc" class="org.hl7.types.impl.EDbyteArrayImpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_Entity_desc" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="descDB" /> 
  </many-to-one>
- <many-to-one name="statusCode" class="org.hl7.types.impl.CSimpl" not-null="false" lazy="proxy" foreign-key="FK_Entity_statusCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="status_code" /> 
  </many-to-one>
- <property name="existenceTime" type="IVL<TS>" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="existence_time_start" /> 
  <column name="existence_time_stop" /> 
  </property>
- <bag name="telecom" mutable="false" access="org.hl7.hibernate.WrappingBagAccessor" cascade="all" lazy="true" inverse="false" optimistic-lock="true" embed-xml="true">
  <key column="entity_id" on-delete="noaction" /> 
  <one-to-many class="org.hl7.types.impl.TELimpl" not-found="exception" embed-xml="true" /> 
  </bag>
- <many-to-one name="riskCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_Entity_riskCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="risk_code" /> 
  </many-to-one>
- <many-to-one name="handlingCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_Entity_handlingCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="handling_code" /> 
  </many-to-one>
- <bag name="playedRole" table="role" inverse="true" cascade="all" lazy="true" mutable="true" optimistic-lock="true" embed-xml="true">
  <key column="playerInternalId" on-delete="noaction" /> 
  <one-to-many class="org.hl7.rim.impl.RoleImpl" not-found="exception" embed-xml="true" /> 
  </bag>
- <bag name="scopedRole" table="role" inverse="true" cascade="all" lazy="true" mutable="true" optimistic-lock="true" embed-xml="true">
  <key column="scoperInternalId" on-delete="noaction" /> 
  <one-to-many class="org.hl7.rim.impl.RoleImpl" not-found="exception" embed-xml="true" /> 
  </bag>
- <subclass name="org.hl7.rim.impl.LivingSubjectImpl" discriminator-value="1" lazy="true" dynamic-update="false" dynamic-insert="false" select-before-update="false">
- <many-to-one name="administrativeGenderCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_LivingSubject_administrativ" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="administrative_gender_code" /> 
  </many-to-one>
- <property name="birthTime" type="TS" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="birth_time" /> 
  </property>
- <property name="deceasedInd" type="BL" not-null="false" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="deceased_ind" /> 
  </property>
- <property name="deceasedTime" type="TS" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="deceased_time" /> 
  </property>
- <property name="multipleBirthInd" type="BL" not-null="false" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="multiple_birth_ind" /> 
  </property>
- <property name="multipleBirthOrderNumber" type="INT" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="multiple_birth_order_number" /> 
  </property>
- <property name="organDonorInd" type="BL" not-null="false" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="organ_donor_ind" /> 
  </property>
- <subclass name="org.hl7.rim.impl.NonPersonLivingSubjectImpl" discriminator-value="2" lazy="true" dynamic-update="false" dynamic-insert="false" select-before-update="false">
- <many-to-one name="strainText" class="org.hl7.types.impl.EDbyteArrayImpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_NonPersonLivingSubject_stra" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="strain_text" /> 
  </many-to-one>
- <many-to-one name="genderStatusCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_NonPersonLivingSubject_gend" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="gender_status_code" /> 
  </many-to-one>
  </subclass>
- <subclass name="org.hl7.rim.impl.PersonImpl" discriminator-value="3" lazy="true" dynamic-update="false" dynamic-insert="false" select-before-update="false">
- <bag name="psnaddr" table="person_address" mutable="false" lazy="true" access="org.hl7.hibernate.PhiWrappingBagEntityAddrAccessor" cascade="all" inverse="false" optimistic-lock="true" embed-xml="true">
  <key column="addressed_person" on-delete="noaction" /> 
  <many-to-many column="address" class="org.hl7.types.impl.ADimpl" embed-xml="true" not-found="exception" unique="false" /> 
  </bag>
- <many-to-one name="maritalStatusCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_Person_maritalStatusCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="marital_status_code" /> 
  </many-to-one>
- <many-to-one name="educationLevelCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_Person_educationLevelCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="education_level_code" /> 
  </many-to-one>
- <set name="raceCode" table="person_race_code" mutable="false" lazy="extra" access="org.hl7.hibernate.WrappingSetAccessor" sort="unsorted" inverse="false" optimistic-lock="true" embed-xml="true">
  <key column="person_id" on-delete="noaction" /> 
  <many-to-many column="race_code" class="org.hl7.types.impl.CEimpl" embed-xml="true" not-found="exception" unique="false" /> 
  </set>
- <set name="disabilityCode" table="person_disability_code" mutable="false" lazy="extra" access="org.hl7.hibernate.WrappingSetAccessor" sort="unsorted" inverse="false" optimistic-lock="true" embed-xml="true">
  <key column="person_id" on-delete="noaction" /> 
  <many-to-many column="disability_code" class="org.hl7.types.impl.CEimpl" embed-xml="true" not-found="exception" unique="false" /> 
  </set>
- <many-to-one name="livingArrangementCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_Person_livingArrangementCod" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="living_arrangement_code" /> 
  </many-to-one>
- <many-to-one name="religiousAffiliationCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_Person_religiousAffiliation" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="religious_affiliation_code" /> 
  </many-to-one>
- <set name="ethnicGroupCode" table="person_ethnic_group_code" mutable="false" lazy="extra" access="org.hl7.hibernate.WrappingSetAccessor" sort="unsorted" inverse="false" optimistic-lock="true" embed-xml="true">
  <key column="person_id" on-delete="noaction" /> 
  <many-to-many column="ethnic_group_code" class="org.hl7.types.impl.CEimpl" embed-xml="true" not-found="exception" unique="false" /> 
  </set>
  </subclass>
  </subclass>
- <subclass name="org.hl7.rim.impl.MaterialImpl" discriminator-value="4" lazy="true" dynamic-update="false" dynamic-insert="false" select-before-update="false">
- <many-to-one name="formCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_Material_formCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="form_code" /> 
  </many-to-one>
- <subclass name="org.hl7.rim.impl.ManufacturedMaterialImpl" discriminator-value="5" lazy="true" dynamic-update="false" dynamic-insert="false" select-before-update="false">
- <property name="lotNumberText" type="ST" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="lot_number_text" /> 
  </property>
- <property name="expirationTime" type="IVL<TS>" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="expiration_time_start" /> 
  <column name="expiration_time_stop" /> 
  </property>
- <property name="stabilityTime" type="IVL<TS>" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="stability_time_start" /> 
  <column name="stability_time_stop" /> 
  </property>
- <subclass name="org.hl7.rim.impl.ContainerImpl" discriminator-value="6" lazy="true" dynamic-update="false" dynamic-insert="false" select-before-update="false">
- <many-to-one name="capacityQuantity" class="org.hl7.types.impl.PQimpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_Container_capacityQuantity" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="capacity_quantity" /> 
  </many-to-one>
- <many-to-one name="heightQuantity" class="org.hl7.types.impl.PQimpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_Container_heightQuantity" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="height_quantity" /> 
  </many-to-one>
- <many-to-one name="diameterQuantity" class="org.hl7.types.impl.PQimpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_Container_diameterQuantity" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="diameter_quantity" /> 
  </many-to-one>
- <many-to-one name="capTypeCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_Container_capTypeCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="cap_type_code" /> 
  </many-to-one>
- <many-to-one name="separatorTypeCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_Container_separatorTypeCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="separator_type_code" /> 
  </many-to-one>
- <many-to-one name="barrierDeltaQuantity" class="org.hl7.types.impl.PQimpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_Container_barrierDeltaQuant" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="barrier_delta_quantity" /> 
  </many-to-one>
- <many-to-one name="bottomDeltaQuantity" class="org.hl7.types.impl.PQimpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_Container_bottomDeltaQuanti" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="bottom_delta_quantity" /> 
  </many-to-one>
  </subclass>
- <subclass name="org.hl7.rim.impl.DeviceImpl" discriminator-value="7" lazy="true" dynamic-update="false" dynamic-insert="false" select-before-update="false">
- <many-to-one name="manufacturerModelName" class="org.hl7.types.impl.SCimpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_Device_manufacturerModelNam" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="manufacturer_model_name" /> 
  </many-to-one>
- <many-to-one name="softwareName" class="org.hl7.types.impl.SCimpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_Device_softwareName" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="software_name" /> 
  </many-to-one>
- <many-to-one name="localRemoteControlStateCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_Device_localRemoteControlSt" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="local_remote_control_state_cod" /> 
  </many-to-one>
- <many-to-one name="alertLevelCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_Device_alertLevelCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="alert_level_code" /> 
  </many-to-one>
- <property name="lastCalibrationTime" type="TS" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="last_calibration_time" /> 
  </property>
  </subclass>
  </subclass>
  </subclass>
- <subclass name="org.hl7.rim.impl.OrganizationImpl" discriminator-value="8" lazy="true" dynamic-update="false" dynamic-insert="false" select-before-update="false">
- <bag name="orgaddr" table="organization_address" mutable="false" lazy="true" access="org.hl7.hibernate.PhiWrappingBagEntityAddrAccessor" cascade="all" inverse="false" optimistic-lock="true" embed-xml="true">
  <key column="addressed_organization" on-delete="noaction" /> 
  <many-to-many column="address" class="org.hl7.types.impl.ADimpl" embed-xml="true" not-found="exception" unique="false" /> 
  </bag>
- <many-to-one name="standardIndustryClassCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_Organization_standardIndust" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="standard_industry_class_code" /> 
  </many-to-one>
  </subclass>
- <subclass name="org.hl7.rim.impl.PlaceImpl" discriminator-value="9" lazy="true" dynamic-update="false" dynamic-insert="false" select-before-update="false">
- <property name="mobileInd" type="BL" not-null="false" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="mobile_ind" /> 
  </property>
- <many-to-one name="addr" class="org.hl7.types.impl.ADimpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_Place_addr" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="addr_id" /> 
  </many-to-one>
- <many-to-one name="directionsText" class="org.hl7.types.impl.EDbyteArrayImpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_Place_directionsText" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="directions_text" /> 
  </many-to-one>
- <many-to-one name="positionText" class="org.hl7.types.impl.EDbyteArrayImpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_Place_positionText" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="position_text" /> 
  </many-to-one>
- <property name="gpsText" type="ST" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="gps_text" /> 
  </property>
  </subclass>
  </class>
- <class name="org.hl7.rim.impl.ParticipationImpl" table="participation" discriminator-value="0" lazy="true" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false" select-before-update="false" optimistic-lock="version">
- <id name="internalId" type="long" unsaved-value="null">
  <column name="internal_id" /> 
  <generator class="native" /> 
  </id>
  <discriminator column="internalDiscriminator" type="integer" not-null="true" force="false" insert="true" /> 
  <version name="internalVersionNumber" column="internalVersionNumber" type="long" unsaved-value="negative" generated="never" /> 
- <property name="creationDate" type="timestamp" not-null="true" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="creation_date" /> 
  </property>
- <property name="createdBy" type="string" not-null="true" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="created_by" /> 
  </property>
- <many-to-one name="owner" class="com.phi.sdloc.Owner" cascade="all" lazy="proxy" foreign-key="FK_Participation_owner" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="owner" /> 
  </many-to-one>
- <property name="isActive" type="boolean" not-null="true" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="is_active" /> 
  </property>
- <property name="ccName" type="string" not-null="true" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="cc_name" /> 
  </property>
- <many-to-one name="typeCode" class="org.hl7.types.impl.CSimpl" not-null="true" lazy="proxy" foreign-key="FK_Participation_typeCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="type_code" /> 
  </many-to-one>
- <many-to-one name="functionCode" class="org.hl7.types.impl.CDimpl" not-null="false" lazy="proxy" foreign-key="FK_Participation_functionCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="function_code" /> 
  </many-to-one>
- <many-to-one name="contextControlCode" class="org.hl7.types.impl.CSimpl" not-null="true" lazy="proxy" foreign-key="FK_Participation_contextContro" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="context_control_code" /> 
  </many-to-one>
- <property name="sequenceNumber" type="INT" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="sequence_number" /> 
  </property>
- <property name="negationInd" type="BL" not-null="false" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="negation_ind" /> 
  </property>
- <many-to-one name="noteText" class="org.hl7.types.impl.EDbyteArrayImpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_Participation_noteText" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="note_text" /> 
  </many-to-one>
- <property name="time" type="IVL<TS>" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="time_start" /> 
  <column name="time_stop" /> 
  </property>
- <many-to-one name="modeCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_Participation_modeCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="mode_code" /> 
  </many-to-one>
- <many-to-one name="awarenessCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_Participation_awarenessCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="awareness_code" /> 
  </many-to-one>
- <many-to-one name="signatureCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_Participation_signatureCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="signature_code" /> 
  </many-to-one>
- <many-to-one name="signatureText" class="org.hl7.types.impl.EDbyteArrayImpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_Participation_signatureText" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="signature_text" /> 
  </many-to-one>
- <property name="performInd" type="BL" not-null="false" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="perform_ind" /> 
  </property>
- <many-to-one name="substitutionConditionCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_Participation_substitutionC" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="substitution_condition_code" /> 
  </many-to-one>
- <many-to-one name="subsetCode" class="org.hl7.types.impl.CSimpl" not-null="false" lazy="proxy" foreign-key="FK_Participation_subsetCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="subset_code" /> 
  </many-to-one>
- <many-to-one name="act" class="org.hl7.rim.impl.ActImpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_Participation_act" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="actInternalId" /> 
  </many-to-one>
- <many-to-one name="role" class="org.hl7.rim.impl.RoleImpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_Participation_role" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="roleInternalId" /> 
  </many-to-one>
- <subclass name="org.hl7.rim.impl.ManagedParticipationImpl" discriminator-value="1" lazy="true" dynamic-update="false" dynamic-insert="false" select-before-update="false">
- <set name="id" mutable="false" table="managedparticipation_id" lazy="extra" access="org.hl7.hibernate.WrappingSetAccessor" cascade="all" sort="unsorted" inverse="false" optimistic-lock="true" embed-xml="true">
  <key column="managedparticipation_id" on-delete="noaction" /> 
- <element type="II" not-null="false" unique="false">
  <column name="root" index="manpart_Id_Root_Index" /> 
  <column name="extension" index="manpart_Id_Extension_Index" /> 
  </element>
  </set>
- <many-to-one name="statusCode" class="org.hl7.types.impl.CSimpl" not-null="false" lazy="proxy" foreign-key="FK_ManagedParticipation_status" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="status_code" /> 
  </many-to-one>
  </subclass>
  </class>
- <class name="org.hl7.rim.impl.RoleImpl" table="role" discriminator-value="0" lazy="true" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false" select-before-update="false" optimistic-lock="version">
- <id name="internalId" type="long" unsaved-value="null">
  <column name="internal_id" /> 
  <generator class="native" /> 
  </id>
  <discriminator column="internalDiscriminator" type="integer" not-null="true" force="false" insert="true" /> 
  <version name="internalVersionNumber" column="internalVersionNumber" type="long" unsaved-value="negative" generated="never" /> 
- <property name="creationDate" type="timestamp" not-null="true" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="creation_date" /> 
  </property>
- <property name="createdBy" type="string" not-null="true" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="created_by" /> 
  </property>
- <many-to-one name="owner" class="com.phi.sdloc.Owner" cascade="all" lazy="proxy" foreign-key="FK_Role_owner" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="owner" /> 
  </many-to-one>
- <property name="isActive" type="boolean" not-null="true" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="is_active" /> 
  </property>
- <property name="ccName" type="string" not-null="true" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="cc_name" /> 
  </property>
- <many-to-one name="classCode" class="org.hl7.types.impl.CSimpl" not-null="true" lazy="proxy" foreign-key="FK_Role_classCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="class_code" /> 
  </many-to-one>
- <set name="id" mutable="false" table="role_id" lazy="extra" access="org.hl7.hibernate.WrappingSetAccessor" cascade="all" sort="unsorted" inverse="false" optimistic-lock="true" embed-xml="true">
  <key column="role_id" on-delete="noaction" /> 
- <element type="II" not-null="false" unique="false">
  <column name="root" index="role_Id_Root_Index" /> 
  <column name="extension" index="role_Id_Extension_Index" /> 
  </element>
  </set>
- <many-to-one name="code" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_Role_code" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="code" /> 
  </many-to-one>
- <property name="negationInd" type="BL" not-null="true" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="negation_ind" /> 
  </property>
- <bag name="name" mutable="false" access="org.hl7.hibernate.WrappingBagAccessor" cascade="all" lazy="true" inverse="false" optimistic-lock="true" embed-xml="true">
  <key column="role_id" on-delete="noaction" /> 
  <one-to-many class="org.hl7.types.impl.ENimpl" entity-name="RoleENimpl" not-found="exception" embed-xml="true" /> 
  </bag>
- <bag name="addr" table="role_address" mutable="false" lazy="true" access="org.hl7.hibernate.WrappingBagAccessor" cascade="all" inverse="false" optimistic-lock="true" embed-xml="true">
  <key column="addressed_role" on-delete="noaction" /> 
  <many-to-many column="address" class="org.hl7.types.impl.RoleADimpl" entity-name="RoleADimpl" embed-xml="true" not-found="exception" unique="false" /> 
  </bag>
- <bag name="telecom" mutable="false" access="org.hl7.hibernate.WrappingBagAccessor" cascade="all" lazy="true" inverse="false" optimistic-lock="true" embed-xml="true">
  <key column="role_id" on-delete="noaction" /> 
  <one-to-many class="org.hl7.types.impl.TELimpl" entity-name="RoleTELimpl" not-found="exception" embed-xml="true" /> 
  </bag>
- <many-to-one name="statusCode" class="org.hl7.types.impl.CSimpl" not-null="false" lazy="proxy" foreign-key="FK_Role_statusCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="status_code" /> 
  </many-to-one>
- <property name="effectiveTime" type="IVL<TS>" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="effective_time_start" /> 
  <column name="effective_time_stop" /> 
  </property>
- <many-to-one name="certificateText" class="org.hl7.types.impl.EDbyteArrayImpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_Role_certificateText" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="certificate_text" /> 
  </many-to-one>
- <set name="confidentialityCode" table="role_confidentiality_code" mutable="false" lazy="extra" access="org.hl7.hibernate.WrappingSetAccessor" sort="unsorted" inverse="false" optimistic-lock="true" embed-xml="true">
  <key column="role_id" on-delete="noaction" /> 
  <many-to-many column="confidentiality_code" class="org.hl7.types.impl.CEimpl" embed-xml="true" not-found="exception" unique="false" /> 
  </set>
- <property name="quantity" type="RTO" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="quantity" /> 
  </property>
- <list name="positionNumber" table="role_positionnumber" access="org.hl7.hibernate.WrappingListAccessor" cascade="all" lazy="extra" inverse="false" mutable="true" optimistic-lock="true" embed-xml="true">
  <key column="role_id" on-delete="noaction" /> 
  <list-index column="listIndex" base="0" /> 
- <element type="INT" not-null="false" unique="false">
  <column name="position_number" /> 
  </element>
  </list>
- <many-to-one name="player" class="org.hl7.rim.impl.EntityImpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_Role_player" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="playerInternalId" /> 
  </many-to-one>
- <many-to-one name="scoper" class="org.hl7.rim.impl.EntityImpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_Role_scoper" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="scoperInternalId" /> 
  </many-to-one>
- <bag name="outboundLink" table="rolelink" inverse="true" cascade="all" lazy="true" mutable="true" optimistic-lock="true" embed-xml="true">
  <key column="sourceInternalId" on-delete="noaction" /> 
  <one-to-many class="org.hl7.rim.impl.RoleLinkImpl" not-found="exception" embed-xml="true" /> 
  </bag>
- <bag name="inboundLink" table="rolelink" inverse="true" cascade="all" lazy="true" mutable="true" optimistic-lock="true" embed-xml="true">
  <key column="targetInternalId" on-delete="noaction" /> 
  <one-to-many class="org.hl7.rim.impl.RoleLinkImpl" not-found="exception" embed-xml="true" /> 
  </bag>
- <bag name="participation" table="participation" inverse="true" cascade="all" lazy="true" mutable="true" optimistic-lock="true" embed-xml="true">
  <key column="roleInternalId" on-delete="noaction" /> 
  <one-to-many class="org.hl7.rim.impl.ParticipationImpl" not-found="exception" embed-xml="true" /> 
  </bag>
- <subclass name="org.hl7.rim.impl.AccessImpl" discriminator-value="1" lazy="true" dynamic-update="false" dynamic-insert="false" select-before-update="false">
- <many-to-one name="approachSiteCode" class="org.hl7.types.impl.CDimpl" not-null="false" lazy="proxy" foreign-key="FK_Access_approachSiteCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="approach_site_code" /> 
  </many-to-one>
- <many-to-one name="targetSiteCode" class="org.hl7.types.impl.CDimpl" not-null="false" lazy="proxy" foreign-key="FK_Access_targetSiteCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="target_site_code" /> 
  </many-to-one>
- <many-to-one name="gaugeQuantity" class="org.hl7.types.impl.PQimpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_Access_gaugeQuantity" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="gauge_quantity" /> 
  </many-to-one>
  </subclass>
- <subclass name="org.hl7.rim.impl.EmployeeImpl" discriminator-value="2" lazy="true" dynamic-update="false" dynamic-insert="false" select-before-update="false">
- <many-to-one name="jobCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_Employee_jobCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="job_code" /> 
  </many-to-one>
- <many-to-one name="jobTitleName" class="org.hl7.types.impl.SCimpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_Employee_jobTitleName" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="job_title_name" /> 
  </many-to-one>
- <many-to-one name="jobClassCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_Employee_jobClassCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="job_class_code" /> 
  </many-to-one>
- <many-to-one name="occupationCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_Employee_occupationCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="occupation_code" /> 
  </many-to-one>
- <many-to-one name="salaryTypeCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_Employee_salaryTypeCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="salary_type_code" /> 
  </many-to-one>
- <many-to-one name="salaryQuantity" class="org.hl7.types.impl.MOimpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_Employee_salaryQuantity" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="salary_quantity" /> 
  </many-to-one>
- <many-to-one name="hazardExposureText" class="org.hl7.types.impl.EDbyteArrayImpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_Employee_hazardExposureText" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="hazard_exposure_text" /> 
  </many-to-one>
- <many-to-one name="protectiveEquipmentText" class="org.hl7.types.impl.EDbyteArrayImpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_Employee_protectiveEquipmen" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="protective_equipment_text" /> 
  </many-to-one>
  </subclass>
- <subclass name="org.hl7.rim.impl.LicensedEntityImpl" discriminator-value="3" lazy="true" dynamic-update="false" dynamic-insert="false" select-before-update="false">
- <property name="recertificationTime" type="TS" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="recertification_time" /> 
  </property>
  </subclass>
- <subclass name="org.hl7.rim.impl.PatientImpl" discriminator-value="4" lazy="true" dynamic-update="false" dynamic-insert="false" select-before-update="false">
- <many-to-one name="veryImportantPersonCode" class="org.hl7.types.impl.CEimpl" not-null="false" lazy="proxy" foreign-key="FK_Patient_veryImportantPerson" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="very_important_person_code" /> 
  </many-to-one>
  </subclass>
- <subclass name="org.hl7.rim.impl.QualifiedEntityImpl" discriminator-value="5" lazy="true" dynamic-update="false" dynamic-insert="false" select-before-update="false">
- <property name="equivalenceInd" type="BL" not-null="false" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="equivalence_ind" /> 
  </property>
  </subclass>
  </class>
- <class name="org.hl7.rim.impl.RoleLinkImpl" table="rolelink" lazy="true" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false" select-before-update="false" optimistic-lock="version">
- <id name="internalId" type="long" unsaved-value="null">
  <column name="internal_id" /> 
  <generator class="native" /> 
  </id>
  <version name="internalVersionNumber" column="internalVersionNumber" type="long" unsaved-value="negative" generated="never" /> 
- <property name="creationDate" type="timestamp" not-null="true" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="creation_date" /> 
  </property>
- <property name="createdBy" type="string" not-null="true" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="created_by" /> 
  </property>
- <many-to-one name="owner" class="com.phi.sdloc.Owner" cascade="all" lazy="proxy" foreign-key="FK_RoleLink_owner" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="owner" /> 
  </many-to-one>
- <property name="isActive" type="boolean" not-null="true" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="is_active" /> 
  </property>
- <property name="ccName" type="string" not-null="true" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="cc_name" /> 
  </property>
- <many-to-one name="typeCode" class="org.hl7.types.impl.CSimpl" not-null="true" lazy="proxy" foreign-key="FK_RoleLink_typeCode" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="type_code" /> 
  </many-to-one>
- <property name="priorityNumber" type="INT" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="priority_number" /> 
  </property>
- <property name="effectiveTime" type="IVL<TS>" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="effective_time_start" /> 
  <column name="effective_time_stop" /> 
  </property>
- <many-to-one name="source" class="org.hl7.rim.impl.RoleImpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_RoleLink_source" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="sourceInternalId" /> 
  </many-to-one>
- <many-to-one name="target" class="org.hl7.rim.impl.RoleImpl" not-null="false" cascade="all" lazy="proxy" foreign-key="FK_RoleLink_target" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="targetInternalId" /> 
  </many-to-one>
  </class>
- <!--  GTS 
  --> 
- <class name="org.hl7.types.impl.GTSimpl" table="GTS" lazy="true" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false" select-before-update="false" optimistic-lock="version">
- <id name="internalId" column="internal_id" unsaved-value="null" access="property">
  <generator class="native" /> 
  </id>
  <version name="internalVersionNumber" column="internalVersionNumber" type="long" unsaved-value="negative" access="property" generated="never" /> 
- <list name="data" table="GTS_data" access="org.hl7.hibernate.WrappingListAccessor" cascade="all" lazy="extra" inverse="false" mutable="true" optimistic-lock="true" embed-xml="true">
  <key column="gts_id" on-delete="noaction" /> 
  <list-index column="list_index" base="0" /> 
- <composite-element class="org.hl7.types.impl.IVLimpl">
- <property name="lowValue" type="TS" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="gts_time_start" /> 
  </property>
- <property name="highValue" type="TS" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="gts_time_stop" /> 
  </property>
  </composite-element>
  </list>
  </class>
- <!--  IVL<PQ> 
  --> 
- <class name="org.hl7.types.impl.IVLimpl" table="IVL_PQ" lazy="true" entity-name="interval_physicalquantity" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false" select-before-update="false" optimistic-lock="version">
- <id name="internalId" column="internal_id" unsaved-value="null" access="property">
  <generator class="native" /> 
  </id>
  <version name="internalVersionNumber" column="internalVersionNumber" type="long" unsaved-value="negative" access="property" generated="never" /> 
- <many-to-one name="lowValue" class="org.hl7.types.impl.PQimpl" not-null="false" cascade="all" fetch="join" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="lowvalue_id" /> 
  </many-to-one>
- <many-to-one name="highValue" class="org.hl7.types.impl.PQimpl" not-null="false" cascade="all" fetch="join" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="highvalue_id" /> 
  </many-to-one>
- <property name="LowClosed" type="BL" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="lowClosed" /> 
  </property>
- <property name="HighClosed" type="BL" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="highClosed" /> 
  </property>
  </class>
- <!--  IVL<MO> 
  --> 
- <class name="org.hl7.types.impl.IVLimpl" table="IVL_MO" lazy="true" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false" select-before-update="false" optimistic-lock="version">
- <id name="internalId" column="internal_id" unsaved-value="null" access="property">
  <generator class="native" /> 
  </id>
  <version name="internalVersionNumber" column="internalVersionNumber" type="long" unsaved-value="negative" access="property" generated="never" /> 
- <many-to-one name="lowValue" class="org.hl7.types.impl.MOimpl" not-null="false" cascade="all" fetch="join" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="lowvalue_id" /> 
  </many-to-one>
- <many-to-one name="highValue" class="org.hl7.types.impl.MOimpl" not-null="false" cascade="all" fetch="join" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="highvalue_id" /> 
  </many-to-one>
- <property name="LowClosed" type="BL" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="lowClosed" /> 
  </property>
- <property name="HighClosed" type="BL" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="highClosed" /> 
  </property>
  </class>
- <!--  RTO<PQ,PQ> 
  --> 
- <class name="org.hl7.types.impl.RTOimpl" table="RTO_PQ_PQ" lazy="true" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false" select-before-update="false" optimistic-lock="version">
- <id name="internalId" column="internal_id" unsaved-value="null" access="property">
  <generator class="native" /> 
  </id>
  <version name="internalVersionNumber" column="internalVersionNumber" type="long" unsaved-value="negative" access="property" generated="never" /> 
- <many-to-one name="numerator" class="org.hl7.types.impl.PQimpl" not-null="false" cascade="all" fetch="join" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="numerator_id" /> 
  </many-to-one>
- <many-to-one name="denominator" class="org.hl7.types.impl.PQimpl" not-null="false" cascade="all" fetch="join" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="denominator_id" /> 
  </many-to-one>
  </class>
- <!--  RTO<MO,PQ> 
  --> 
- <class name="org.hl7.types.impl.RTOimpl" table="RTO_MO_PQ" lazy="true" entity-name="ratio_monetaryamount_physicalquantity" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false" select-before-update="false" optimistic-lock="version">
- <id name="internalId" column="internal_id" unsaved-value="null" access="property">
  <generator class="native" /> 
  </id>
  <version name="internalVersionNumber" column="internalVersionNumber" type="long" unsaved-value="negative" access="property" generated="never" /> 
- <many-to-one name="numerator" class="org.hl7.types.impl.MOimpl" cascade="all" fetch="join" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="numerator" /> 
  </many-to-one>
- <many-to-one name="denominator" class="org.hl7.types.impl.PQimpl" not-null="false" cascade="all" fetch="join" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="denominator_id" /> 
  </many-to-one>
  </class>
- <!--  definizione tipi primitivi complessi 
  --> 
- <!--  PQ 
  --> 
- <class name="org.hl7.types.impl.PQimpl" table="PQ" lazy="true" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false" select-before-update="false" optimistic-lock="version">
- <id name="internalId" column="internal_id" unsaved-value="null" access="property">
  <generator class="native" /> 
  </id>
- <!--  <discriminator column="internalDiscriminator" type="string"/> 
  --> 
  <version name="internalVersionNumber" column="internalVersionNumber" type="long" unsaved-value="negative" access="property" generated="never" /> 
- <property name="value" type="REAL" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="value" /> 
  </property>
- <property name="unit" type="Unit" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="unit" /> 
  </property>
  </class>
- <!--  MO 
  --> 
- <class name="org.hl7.types.impl.MOimpl" table="MO" lazy="true" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false" select-before-update="false" optimistic-lock="version">
- <id name="internalId" column="internal_id" unsaved-value="null" access="property">
  <generator class="native" /> 
  </id>
  <version name="internalVersionNumber" column="internalVersionNumber" type="long" unsaved-value="negative" access="property" generated="never" /> 
- <property name="value" type="REAL" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="value" /> 
  </property>
- <many-to-one name="currency" class="org.hl7.types.impl.CSimpl" not-null="false" fetch="join" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="currency_cd" /> 
  </many-to-one>
  </class>
- <!--  SC 
  --> 
- <class name="org.hl7.types.impl.SCimpl" table="SC" lazy="true" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false" select-before-update="false" optimistic-lock="version">
- <id name="internalId" column="internal_id" unsaved-value="null" access="property">
  <generator class="native" /> 
  </id>
  <version name="internalVersionNumber" column="internalVersionNumber" type="long" unsaved-value="negative" access="property" generated="never" /> 
- <property name="data" type="ST" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="data" /> 
  </property>
- <many-to-one name="code" class="org.hl7.types.impl.CEimpl" not-null="false" fetch="join" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="code" /> 
  </many-to-one>
  </class>
- <!--  ED 
  --> 
- <class name="org.hl7.types.impl.EDbyteArrayImpl" table="ED" lazy="true" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false" select-before-update="false" optimistic-lock="version">
- <id name="internalId" column="internal_id" unsaved-value="null" access="property">
  <generator class="native" /> 
  </id>
  <version name="internalVersionNumber" column="internalVersionNumber" type="long" unsaved-value="negative" access="property" generated="never" /> 
- <!-- 
 
      
      workaround: to avoid transaction is not active, because CS is loading..., in EAP we have simplified ED.
      
      <many-to-one name="mediaType" class="org.hl7.types.impl.CSimpl" not-null="false" fetch="join">
      	<column  name="mediaType"/>
      </many-to-one>
      <many-to-one name="charset" class="org.hl7.types.impl.CSimpl" not-null="false" fetch="join">
      	<column  name="charset"/>
      </many-to-one>
      <many-to-one name="language" class="org.hl7.types.impl.CSimpl" not-null="false" fetch="join">
      	<column  name="language"/>
      </many-to-one>
      <many-to-one name="compression" class="org.hl7.types.impl.CSimpl" not-null="false" fetch="join">
      	<column  name="compression"/>
      </many-to-one>      
      <many-to-one name="reference" class="org.hl7.types.impl.TELimpl" not-null="false" cascade="all" fetch="join">
      	<column  name="reference"/>
      </many-to-one>  
      <property name="integrityCheck" type="byte[]">
	  	<column name="integrityCheck"/>
	  </property>
	  <many-to-one name="integrityCheckAlgorithm" class="org.hl7.types.impl.CSimpl" not-null="false" fetch="join">
      	<column  name="integrityCheckAlgorithm"/>
      </many-to-one> 
	  <many-to-one name="thumbnail" class="org.hl7.types.impl.EDbyteArrayImpl" not-null="false" cascade="all" fetch="join"> 
      	<column  name="thumbnail"/>
      </many-to-one> 
 

  --> 
- <property name="bytes" type="byte[]" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="bytes" /> 
- <!-- sql-type="mediumblob"/>
  --> 
  </property>
- <property name="offset" type="long" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="offset" /> 
  </property>
- <property name="length" type="long" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="length" /> 
  </property>
  </class>
- <!--  EN, PN, ON 
  --> 
- <class name="org.hl7.types.impl.ENimpl" table="EN" lazy="true" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false" select-before-update="false" optimistic-lock="version">
- <id name="internalId" column="internal_id" unsaved-value="null" access="property">
  <generator class="native" /> 
  </id>
- <!--  <discriminator column="internalDiscriminator" type="string"/>  
  --> 
  <version name="internalVersionNumber" column="internalVersionNumber" type="long" unsaved-value="negative" access="property" generated="never" /> 
- <list name="list" access="org.hl7.hibernate.WrappingListAccessor" cascade="all" fetch="join" inverse="false" mutable="true" optimistic-lock="true" embed-xml="true">
  <key column="entityname_id" on-delete="noaction" /> 
  <list-index column="entityname_listIndex" base="0" /> 
  <one-to-many class="org.hl7.types.impl.ENXPimpl" not-found="exception" embed-xml="true" /> 
  </list>
- <set name="use" table="EN_use" mutable="false" lazy="true" access="org.hl7.hibernate.PhiWrappingDSetAccessor" fetch="join" sort="unsorted" inverse="false" optimistic-lock="true" embed-xml="true">
- <!--  cascade="all" 
  --> 
  <key column="entityname_id" on-delete="noaction" /> 
  <many-to-many column="use_cd" class="org.hl7.types.impl.CSimpl" embed-xml="true" not-found="exception" unique="false" /> 
  </set>
- <property name="useablePeriod" type="IVL<TS>" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="useableperiod_start" /> 
  <column name="useableperiod_stop" /> 
  </property>
- <property name="formatted" type="ST" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="formatted" /> 
  </property>
- <!-- 
  <subclass name="org.hl7.types.impl.PNimpl" lazy="true" discriminator-value="PN">
	  </subclass>
	  <subclass name="org.hl7.types.impl.ONimpl" lazy="true" discriminator-value="ON">
	  </subclass> 

  --> 
  </class>
- <class name="org.hl7.types.impl.ENimpl" table="role_EN" lazy="true" entity-name="RoleENimpl" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false" select-before-update="false" optimistic-lock="version">
- <id name="internalId" column="internal_id" unsaved-value="null" access="property">
  <generator class="native" /> 
  </id>
- <!--  <discriminator column="internalDiscriminator" type="string"/>  
  --> 
  <version name="internalVersionNumber" column="internalVersionNumber" type="long" unsaved-value="negative" access="property" generated="never" /> 
- <list name="list" access="org.hl7.hibernate.WrappingListAccessor" cascade="all" fetch="join" inverse="false" mutable="true" optimistic-lock="true" embed-xml="true">
  <key column="rolename_id" on-delete="noaction" /> 
  <list-index column="rolename_listIndex" base="0" /> 
  <one-to-many class="org.hl7.types.impl.ENXPimpl" entity-name="RoleENXPimpl" not-found="exception" embed-xml="true" /> 
  </list>
- <set name="use" table="RoleEN_use" mutable="false" lazy="true" access="org.hl7.hibernate.PhiWrappingDSetAccessor" fetch="join" sort="unsorted" inverse="false" optimistic-lock="true" embed-xml="true">
- <!--  cascade="all" 
  --> 
  <key column="rolename_id" on-delete="noaction" /> 
  <many-to-many column="use_cd" class="org.hl7.types.impl.CSimpl" embed-xml="true" not-found="exception" unique="false" /> 
  </set>
- <property name="useablePeriod" type="IVL<TS>" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="useableperiod_start" /> 
  <column name="useableperiod_stop" /> 
  </property>
- <property name="formatted" type="ST" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="formatted" /> 
  </property>
- <!-- 
  <subclass name="org.hl7.types.impl.PNimpl" lazy="true" discriminator-value="PN">
	  </subclass>
	  <subclass name="org.hl7.types.impl.ONimpl" lazy="true" discriminator-value="ON">
	  </subclass> 

  --> 
  </class>
- <!--  ENXP 
  --> 
- <class name="org.hl7.types.impl.ENXPimpl" table="ENXP" lazy="true" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false" select-before-update="false" optimistic-lock="version">
- <id name="internalId" column="internal_id" unsaved-value="null" access="property">
  <generator class="native" /> 
  </id>
- <!--  <discriminator column="internalDiscriminator" type="string"/> 
  --> 
  <version name="internalVersionNumber" column="internalVersionNumber" type="long" unsaved-value="negative" access="property" generated="never" /> 
- <many-to-one name="language" class="org.hl7.types.impl.CSimpl" not-null="false" fetch="join" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="language_cd" /> 
  </many-to-one>
- <property name="data" type="ST" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="name_part_value" index="Index_name_part_value" /> 
  </property>
- <set name="qualified" table="ENXP_qualifier" mutable="false" lazy="true" access="org.hl7.hibernate.PhiWrappingDSetAccessor" fetch="join" sort="unsorted" inverse="false" optimistic-lock="true" embed-xml="true">
- <!--  cascade="all" 
  --> 
  <key column="entitynamepart_id" on-delete="noaction" /> 
  <many-to-many column="qualifier_cd" class="org.hl7.types.impl.CSimpl" embed-xml="true" not-found="exception" unique="false" /> 
  </set>
- <many-to-one name="type" class="org.hl7.types.impl.CSimpl" not-null="false" fetch="join" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="part_type_cd" /> 
  </many-to-one>
  </class>
- <class name="org.hl7.types.impl.ENXPimpl" table="role_ENXP" lazy="true" entity-name="RoleENXPimpl" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false" select-before-update="false" optimistic-lock="version">
- <id name="internalId" column="internal_id" unsaved-value="null" access="property">
  <generator class="native" /> 
  </id>
- <!--  <discriminator column="internalDiscriminator" type="string"/> 
  --> 
  <version name="internalVersionNumber" column="internalVersionNumber" type="long" unsaved-value="negative" access="property" generated="never" /> 
- <many-to-one name="language" class="org.hl7.types.impl.CSimpl" not-null="false" fetch="join" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="language_cd" /> 
  </many-to-one>
- <property name="data" type="ST" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="name_part_value" index="Index_name_part_value" /> 
  </property>
- <set name="qualified" table="RoleENXP_qualifier" mutable="false" lazy="true" access="org.hl7.hibernate.PhiWrappingDSetAccessor" fetch="join" sort="unsorted" inverse="false" optimistic-lock="true" embed-xml="true">
- <!--  cascade="all" 
  --> 
  <key column="rolenamepart_id" on-delete="noaction" /> 
  <many-to-many column="qualifier_cd" class="org.hl7.types.impl.CSimpl" embed-xml="true" not-found="exception" unique="false" /> 
  </set>
- <many-to-one name="type" class="org.hl7.types.impl.CSimpl" not-null="false" fetch="join" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="part_type_cd" /> 
  </many-to-one>
  </class>
- <!--  TEL 
  --> 
- <class name="org.hl7.types.impl.TELimpl" table="TEL" lazy="true" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false" select-before-update="false" optimistic-lock="version">
- <id name="internalId" column="internal_id" unsaved-value="null" access="property">
  <generator class="native" /> 
  </id>
  <version name="internalVersionNumber" column="internalVersionNumber" type="long" unsaved-value="negative" access="property" generated="never" /> 
- <many-to-one name="scheme" class="org.hl7.types.impl.CSimpl" not-null="false" fetch="join" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="scheme" /> 
  </many-to-one>
- <property name="data" type="URL" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="data" /> 
  </property>
- <!-- 
<property name="useablePeriod" type="GTS">
	  	<column name="useableperiod"/>
	  </property>

  --> 
- <many-to-one name="useablePeriod" class="org.hl7.types.impl.GTSimpl" not-null="false" access="org.hl7.hibernate.PhiWrappingGTSAccessor" cascade="all" lazy="proxy" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="useablePeriod" /> 
  </many-to-one>
- <set name="use" table="TEL_use" mutable="false" lazy="true" access="org.hl7.hibernate.PhiWrappingDSetAccessor" fetch="join" sort="unsorted" inverse="false" optimistic-lock="true" embed-xml="true">
- <!--  cascade="all" 
  --> 
  <key column="telecommunication_id" on-delete="noaction" /> 
  <many-to-many column="use_cd" class="org.hl7.types.impl.CSimpl" embed-xml="true" not-found="exception" unique="false" /> 
  </set>
  </class>
- <class name="org.hl7.types.impl.TELimpl" table="role_TEL" entity-name="RoleTELimpl" lazy="true" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false" select-before-update="false" optimistic-lock="version">
- <id name="internalId" column="internal_id" unsaved-value="null" access="property">
  <generator class="native" /> 
  </id>
  <version name="internalVersionNumber" column="internalVersionNumber" type="long" unsaved-value="negative" access="property" generated="never" /> 
- <many-to-one name="scheme" class="org.hl7.types.impl.CSimpl" not-null="false" fetch="join" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="scheme" /> 
  </many-to-one>
- <property name="data" type="URL" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="data" /> 
  </property>
- <!-- 
<property name="useablePeriod" type="GTS">
	  	<column name="useableperiod"/>
	  </property>

  --> 
- <many-to-one name="useablePeriod" class="org.hl7.types.impl.GTSimpl" not-null="false" access="org.hl7.hibernate.PhiWrappingGTSAccessor" cascade="all" lazy="proxy" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="useablePeriod" /> 
  </many-to-one>
- <set name="use" table="RoleTEL_use" mutable="false" lazy="true" access="org.hl7.hibernate.PhiWrappingDSetAccessor" fetch="join" sort="unsorted" inverse="false" optimistic-lock="true" embed-xml="true">
- <!--  cascade="all" 
  --> 
  <key column="telecommunication_id" on-delete="noaction" /> 
  <many-to-many column="use_cd" class="org.hl7.types.impl.CSimpl" embed-xml="true" not-found="exception" unique="false" /> 
  </set>
  </class>
- <!--  AD 
  --> 
- <class name="org.hl7.types.impl.ADimpl" table="AD" lazy="true" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false" select-before-update="false" optimistic-lock="version">
- <id name="internalId" column="internal_id" unsaved-value="null" access="property">
  <generator class="native" /> 
  </id>
  <version name="internalVersionNumber" column="internalVersionNumber" type="long" unsaved-value="negative" access="property" generated="never" /> 
- <list name="list" access="org.hl7.hibernate.WrappingListAccessor" cascade="all" inverse="false" mutable="true" optimistic-lock="true" embed-xml="true">
- <!--  fetch="join"> 
  --> 
  <key column="address_id" on-delete="noaction" /> 
  <list-index column="address_listIndex" base="0" /> 
  <one-to-many class="org.hl7.types.impl.ADXPimpl" not-found="exception" embed-xml="true" /> 
  </list>
- <set name="use" table="AD_use" mutable="false" lazy="true" access="org.hl7.hibernate.WrappingSetAccessor" fetch="join" sort="unsorted" inverse="false" optimistic-lock="true" embed-xml="true">
- <!--  cascade="all" 
  --> 
  <key column="address_id" on-delete="noaction" /> 
  <many-to-many column="use_cd" class="org.hl7.types.impl.CSimpl" embed-xml="true" not-found="exception" unique="false" /> 
  </set>
  </class>
- <class name="org.hl7.types.impl.ADimpl" table="role_AD" entity-name="RoleADimpl" lazy="true" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false" select-before-update="false" optimistic-lock="version">
- <id name="internalId" column="internal_id" unsaved-value="null" access="property">
  <generator class="native" /> 
  </id>
  <version name="internalVersionNumber" column="internalVersionNumber" type="long" unsaved-value="negative" access="property" generated="never" /> 
- <list name="list" access="org.hl7.hibernate.WrappingListAccessor" cascade="all" inverse="false" mutable="true" optimistic-lock="true" embed-xml="true">
- <!--  fetch="join"> 
  --> 
  <key column="address_id" on-delete="noaction" /> 
  <list-index column="address_listIndex" base="0" /> 
  <one-to-many class="org.hl7.types.impl.ADXPimpl" entity-name="RoleADXPimpl" not-found="exception" embed-xml="true" /> 
  </list>
- <set name="use" table="role_AD_use" mutable="false" lazy="true" access="org.hl7.hibernate.WrappingSetAccessor" fetch="join" sort="unsorted" inverse="false" optimistic-lock="true" embed-xml="true">
- <!--  cascade="all" 
  --> 
  <key column="address_id" on-delete="noaction" /> 
  <many-to-many column="use_cd" class="org.hl7.types.impl.CSimpl" embed-xml="true" not-found="exception" unique="false" /> 
  </set>
  </class>
- <!--  ADXP 
  --> 
- <class name="org.hl7.types.impl.ADXPimpl" table="ADXP" lazy="true" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false" select-before-update="false" optimistic-lock="version">
- <id name="internalId" column="internal_id" unsaved-value="null" access="property">
  <generator class="native" /> 
  </id>
  <version name="internalVersionNumber" column="internalVersionNumber" type="long" unsaved-value="negative" access="property" generated="never" /> 
- <property name="data" type="ST" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="part" /> 
  </property>
- <many-to-one name="type" class="org.hl7.types.impl.CSimpl" not-null="false" fetch="join" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="part_type_cd" /> 
  </many-to-one>
- <many-to-one name="language" class="org.hl7.types.impl.CSimpl" not-null="false" fetch="join" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="language_cd" /> 
  </many-to-one>
  </class>
- <class name="org.hl7.types.impl.ADXPimpl" table="role_ADXP" entity-name="RoleADXPimpl" lazy="true" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false" select-before-update="false" optimistic-lock="version">
- <id name="internalId" column="internal_id" unsaved-value="null" access="property">
  <generator class="native" /> 
  </id>
  <version name="internalVersionNumber" column="internalVersionNumber" type="long" unsaved-value="negative" access="property" generated="never" /> 
- <property name="data" type="ST" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="part" /> 
  </property>
- <many-to-one name="type" class="org.hl7.types.impl.CSimpl" not-null="false" fetch="join" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="part_type_cd" /> 
  </many-to-one>
- <many-to-one name="language" class="org.hl7.types.impl.CSimpl" not-null="false" fetch="join" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="language_cd" /> 
  </many-to-one>
  </class>
- <!--  CD, CE, CV, CS 
  --> 
- <class name="org.hl7.types.impl.CodeEquivalent" table="code_equivalent" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false" select-before-update="false" optimistic-lock="version">
  <cache usage="transactional" include="all" /> 
- <id name="id" type="java.lang.Integer">
  <column name="id" /> 
  <generator class="native" /> 
  </id>
- <!-- 
 property name="internalVersionNumber" type="long">
            <column name="internalVersionNumber" not-null="true" />
        </property 

  --> 
- <many-to-one name="codeValueByCodeValueSource" class="org.hl7.types.impl.CodeValue" lazy="proxy" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="code_value_source" length="255" not-null="true" /> 
  </many-to-one>
- <many-to-one name="codeValueByCodeValueTarget" class="org.hl7.types.impl.CodeValue" lazy="proxy" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="code_value_target" length="255" not-null="true" /> 
  </many-to-one>
- <!-- 
 property name="status" type="string">
            <column name="status" length="45" not-null="true" />
        </property 

  --> 
  </class>
- <class name="org.hl7.types.impl.CodeSystem" table="code_system" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false" select-before-update="false" optimistic-lock="version">
  <cache usage="transactional" include="all" /> 
- <id name="id" type="string">
  <column name="id" length="65" /> 
  <generator class="assigned" /> 
  </id>
- <!-- 
 property name="internalVersionNumber"  type="long">
            <column name="internalVersionNumber"  not-null="true" />
        </property 

  --> 
- <property name="version" type="string" lazy="true" unique="false" optimistic-lock="true" generated="never">
  <column name="version" length="65" /> 
  </property>
- <property name="name" type="string" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="name" length="45" not-null="true" unique="true" /> 
  </property>
- <property name="displayName" type="string" lazy="true" unique="false" optimistic-lock="true" generated="never">
  <column name="display_name" length="45" not-null="true" /> 
  </property>
- <property name="description" type="string" lazy="true" unique="false" optimistic-lock="true" generated="never">
  <column name="description" not-null="true" length="255" /> 
  </property>
- <!-- 
 property name="active" type="boolean">
            <column name="active" not-null="true" />
        </property 

  --> 
- <property name="status" type="string" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="status" length="45" not-null="true" /> 
  </property>
- <property name="creationDate" type="timestamp" lazy="true" unique="false" optimistic-lock="true" generated="never">
  <column name="creation_date" length="19" not-null="true" /> 
  </property>
- <property name="validFrom" type="timestamp" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="valid_from" length="19" /> 
  </property>
- <property name="validTo" type="timestamp" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="valid_to" length="19" /> 
  </property>
- <property name="revisedDate" type="timestamp" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="revised_date" length="19" /> 
  </property>
- <property name="isoCodeLang" type="string" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="iso_code_lang" length="2" not-null="true" /> 
  </property>
- <property name="authorityName" type="string" lazy="true" unique="false" optimistic-lock="true" generated="never">
  <column name="authority_name" not-null="true" length="255" /> 
  </property>
- <property name="authorityDescription" type="string" lazy="true" unique="false" optimistic-lock="true" generated="never">
  <column name="authority_description" not-null="true" length="255" /> 
  </property>
- <property name="contactInformation" type="string" lazy="true" unique="false" optimistic-lock="true" generated="never">
  <column name="contact_information" length="45" not-null="true" /> 
  </property>
- <set name="codeValues" inverse="true" lazy="true" sort="unsorted" mutable="true" optimistic-lock="true" embed-xml="true">
- <key on-delete="noaction">
  <column name="code_system" length="65" not-null="true" /> 
  </key>
  <one-to-many class="org.hl7.types.impl.CodeValue" not-found="exception" embed-xml="true" /> 
  </set>
  </class>
- <class name="org.hl7.types.impl.CodeTranslation" table="code_translation" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false" select-before-update="false" optimistic-lock="version">
  <cache usage="transactional" include="all" /> 
- <composite-id name="id" class="org.hl7.types.impl.CodeTranslationId" mapped="false" unsaved-value="undefined">
- <key-property name="codeValue" type="string">
  <column name="code_value" length="255" /> 
  </key-property>
- <key-property name="isoCodeLang" type="string">
  <column name="iso_code_lang" length="2" /> 
  </key-property>
  </composite-id>
- <!-- 
property name="internalVersionNumber" type="long">
            <column name="internalVersionNumber" not-null="true" />
        </property

  --> 
- <many-to-one name="codeValue" class="org.hl7.types.impl.CodeValue" update="false" insert="false" fetch="select" unique="false" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="code_value" length="255" not-null="true" /> 
  </many-to-one>
- <property name="value" type="string" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="value" not-null="true" length="65" /> 
  </property>
  </class>
- <class name="org.hl7.types.impl.CodeValue" table="code_value" discriminator-value="0" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false" select-before-update="false" optimistic-lock="version">
  <cache usage="transactional" include="all" /> 
- <id name="id" type="string">
  <column name="id" length="255" /> 
  <generator class="assigned" /> 
  </id>
  <discriminator type="integer" formula="case when id is null then 4 else 4 end" not-null="true" force="false" insert="true" /> 
- <!-- 
property name="internalVersionNumber" type="long">
            <column name="internalVersionNumber" not-null="true" />
        </property

  --> 
- <many-to-one name="codeSystem" class="org.hl7.types.impl.CodeSystem" lazy="proxy" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="code_system" length="65" not-null="true" /> 
  </many-to-one>
- <many-to-one name="parent" class="org.hl7.types.impl.CodeValue" lazy="proxy" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="code_value_parent" length="255" /> 
  </many-to-one>
- <property name="code" type="string" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="code" length="65" not-null="true" index="codeIndex" /> 
  </property>
- <property name="displayName" type="string" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="display_name" length="65" not-null="true" index="displayNameIndex" /> 
  </property>
- <property name="type" type="string" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="type" length="1" not-null="true" /> 
  </property>
- <property name="sequenceNumber" type="int" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="sequence_number" not-null="true" /> 
  </property>
- <property name="defaultChild" type="boolean" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="default_child" not-null="true" /> 
  </property>
- <!-- 
property name="active" type="boolean">
            <column name="active" not-null="true">
                <comment>il dictionary manager settar� questo valore verificando status del singolo e del dominio</comment>
            </column>
        </property

  --> 
- <property name="status" type="string" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="status" length="10" not-null="true" index="statusIndex" /> 
  </property>
- <property name="description" type="string" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="description" index="descriptionIndex" length="255" /> 
  </property>
- <property name="keywords" type="string" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="keywords" length="65" index="keywordsIndex" /> 
  </property>
- <property name="validFrom" type="timestamp" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="valid_from" length="19" index="validFromIndex" /> 
  </property>
- <property name="validTo" type="timestamp" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="valid_to" length="19" index="validToIndex" /> 
  </property>
- <property name="revisedDate" type="timestamp" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="revised_date" length="19" /> 
  </property>
- <property name="changeReason" type="string" lazy="true" unique="false" optimistic-lock="true" generated="never">
  <column name="change_reason" length="255" /> 
  </property>
- <property name="creator" type="string" lazy="true" unique="false" optimistic-lock="true" generated="never">
  <column name="creator" length="65" /> 
  </property>
- <property name="authorityName" type="string" lazy="true" unique="false" optimistic-lock="true" generated="never">
  <column name="authority_name" length="65" /> 
  </property>
- <property name="authorityDescription" type="string" lazy="true" unique="false" optimistic-lock="true" generated="never">
  <column name="authority_description" length="65" /> 
  </property>
- <property name="contactInformation" type="string" lazy="true" unique="false" optimistic-lock="true" generated="never">
  <column name="contact_information" length="65" /> 
  </property>
- <set name="codeEquivalentsForCodeValueTarget" inverse="true" lazy="true" sort="unsorted" mutable="true" optimistic-lock="true" embed-xml="true">
- <key on-delete="noaction">
  <column name="code_value_target" length="255" not-null="true" /> 
  </key>
  <one-to-many class="org.hl7.types.impl.CodeEquivalent" not-found="exception" embed-xml="true" /> 
  </set>
- <bag name="children" inverse="true" lazy="true" mutable="true" optimistic-lock="true" embed-xml="true">
- <key on-delete="noaction">
  <column name="code_value_parent" length="255" /> 
  </key>
  <one-to-many class="org.hl7.types.impl.CodeValue" not-found="exception" embed-xml="true" /> 
  </bag>
- <set name="codeTranslations" inverse="true" lazy="true" sort="unsorted" mutable="true" optimistic-lock="true" embed-xml="true">
- <key on-delete="noaction">
  <column name="code_value" length="255" not-null="true" /> 
  </key>
  <one-to-many class="org.hl7.types.impl.CodeTranslation" not-found="exception" embed-xml="true" /> 
  </set>
- <set name="codeEquivalentsForCodeValueSource" inverse="true" lazy="true" sort="unsorted" mutable="true" optimistic-lock="true" embed-xml="true">
- <key on-delete="noaction">
  <column name="code_value_source" length="255" not-null="true" /> 
  </key>
  <one-to-many class="org.hl7.types.impl.CodeEquivalent" not-found="exception" embed-xml="true" /> 
  </set>
- <map name="extensions" table="code_extensions" lazy="true" mutable="true" inverse="false" sort="unsorted" optimistic-lock="true" embed-xml="true">
  <key column="id" on-delete="noaction" /> 
  <map-key column="property_name" type="string" length="35" /> 
  <element column="property_value" type="string" length="255" not-null="false" unique="false" /> 
  </map>
- <subclass name="org.hl7.types.impl.CDimpl" lazy="true" discriminator-value="1" dynamic-update="false" dynamic-insert="false" select-before-update="false">
- <subclass name="org.hl7.types.impl.CEimpl" lazy="true" discriminator-value="2" dynamic-update="false" dynamic-insert="false" select-before-update="false">
- <subclass name="org.hl7.types.impl.CVimpl" lazy="true" discriminator-value="3" dynamic-update="false" dynamic-insert="false" select-before-update="false">
  <subclass name="org.hl7.types.impl.CSimpl" lazy="true" discriminator-value="4" dynamic-update="false" dynamic-insert="false" select-before-update="false" /> 
  </subclass>
  </subclass>
  </subclass>
  </class>
- <!--  Non rim objects Mapping 
  --> 
- <class name="com.phi.sdloc.Owner" table="owner" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false" select-before-update="false" optimistic-lock="version">
  <cache usage="transactional" include="all" /> 
- <id name="id" type="java.lang.Integer">
  <column name="id" /> 
  <generator class="native" /> 
  </id>
- <many-to-one name="parent" class="com.phi.sdloc.Owner" lazy="proxy" foreign-key="FK_Parent_owner" unique="false" update="true" insert="true" optimistic-lock="true" not-found="exception" embed-xml="true">
  <column name="parent" /> 
  </many-to-one>
- <property name="id4phi" type="string" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="id4phi" length="36" not-null="true" /> 
  </property>
- <property name="isActive" type="boolean" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="isActive" not-null="true" /> 
  </property>
- <property name="name" type="string" unique="false" optimistic-lock="true" lazy="false" generated="never">
  <column name="name" not-null="true" /> 
  </property>
- <bag name="childrens" inverse="true" lazy="true" mutable="true" optimistic-lock="true" embed-xml="true">
- <key on-delete="noaction">
  <column name="parent" /> 
  </key>
  <one-to-many class="com.phi.sdloc.Owner" not-found="exception" embed-xml="true" /> 
  </bag>
  </class>
- <!-- 
 Commented because Alarmitem, Genericitem, Measurealarminformation and Scheduleitem are annotated.
	
	<class name="Alarmitem" table="alarmitem">
        <id name="internalId" type="java.lang.Long">
            <column name="internalId" />
            <generator class="native" />
        </id>
        <version name="timeStamp" type="java.lang.Long">
            <column name="timeStamp" />
        </version>
        <property name="versionNumber" type="int">
            <column name="versionNumber" not-null="true" />
        </property>
        <property name="secondsToTimeOut" type="java.lang.Long">
            <column name="secondsToTimeOut" />
        </property>
        <property name="timeOut" type="string">
            <column name="timeOut" length="45" />
        </property>
        <property name="alarmType" type="string">
            <column name="alarmType" length="45" />
        </property>
        <property name="alarmSubType" type="string">
            <column name="alarmSubType" length="45" />
        </property>
        <property name="managedTimeStamp" type="string">
            <column name="managedTimeStamp" length="45" />
        </property>
        <property name="alarmDate" type="string">
            <column name="alarmDate" length="45" />
        </property>
        <property name="priority" type="java.lang.Integer">
            <column name="priority" />
        </property>
        <property name="realPriority" type="java.lang.Integer">
            <column name="realPriority" />
        </property>
        <property name="actAppointmentId" type="string">
            <column name="actAppointmentId" length="45" />
        </property>
        <property name="timeStampTimeOut" type="java.lang.Long">
            <column name="timeStampTimeOut" />
        </property>
        <property name="managed" type="java.lang.Boolean">
            <column name="managed" />
        </property>
        <property name="deleted" type="java.lang.Boolean">
            <column name="deleted" />
        </property>
        <property name="patientId" type="string">
            <column name="patientId" length="45" />
        </property>
        <property name="ownership" type="string">
            <column name="ownership" length="45" />
        </property>
    </class>
	
    <class name="Genericitem" table="genericitem">
        <id name="internalId" type="string">
            <column name="internalId" length="45" />
            <generator class="assigned" />
        </id>
        <property name="datavalue" type="string">
            <column name="datavalue" length="45" />
        </property>
    </class>
	
	<class name="Measurealarminformation" table="measurealarminformation">
        <id name="internalId" type="java.lang.Long">
            <column name="internalId" />
            <generator class="native" />
        </id>
        <property name="name" type="string">
            <column name="name" length="45" />
        </property>
        <property name="datavalue" type="string">
            <column name="datavalue" length="45" />
        </property>
        <property name="range" type="string">
            <column name="range" length="45" />
        </property>
        <property name="urgencyType" type="string">
            <column name="urgencyType" length="45" />
        </property>
        <property name="protocol" type="string">
            <column name="protocol" length="45" />
        </property>
        <property name="measureType" type="string">
            <column name="measureType" length="45" />
        </property>
        <property name="alarmItemId" type="java.lang.Long">
            <column name="alarmItem_id" />
        </property>
    </class>
	
    <class name="Scheduleitem" table="scheduleitem">
        <id name="internalId" type="long">
            <column name="internalId" />
            <generator class="native" />
        </id>
        <property name="startDate" type="timestamp">
            <column name="startDate" length="19" />
        </property>
        <property name="endDate" type="timestamp">
            <column name="endDate" length="19" />
        </property>
        <property name="actAppointmentId" type="string">
            <column name="actAppointmentId" length="45" />
        </property>
        <property name="quartzTriggerHandle" type="binary">
            <column name="quartzTriggerHandle" />
        </property>
        <property name="frequency" type="java.lang.Long">
            <column name="frequency" />
        </property>
        <property name="frequencyCron" type="string">
            <column name="frequencyCron" length="45" />
        </property>
        <property name="active" type="java.lang.Boolean">
            <column name="active" />
        </property>
        <property name="scheduleType" type="string">
            <column name="scheduleType" length="45" />
        </property>
        <property name="scheduleSubType" type="string">
            <column name="scheduleSubType" length="45" />
        </property>
        <property name="suspended" type="java.lang.Boolean">
            <column name="suspended" />
        </property>
        <property name="patientId" type="string">
            <column name="patientId" length="45" />
        </property>
    </class>


  --> 
  </hibernate-mapping>