Advertisement
Guest User

drugorders.hbm.xml

a guest
Aug 14th, 2016
84
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0"?>
  2. <!DOCTYPE hibernate-mapping PUBLIC
  3. "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
  4. "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >
  5.  
  6. <hibernate-mapping>
  7.  
  8. <class name="drugorders" table="drug_order_extension">
  9. <id name="order_id" type="int" column="id" unsaved-value="0">
  10. <generator class="native" />
  11. </id>
  12. <discriminator column="id" insert="false" />
  13. <property name="orderId" column="order_id" not-null="false" ></property>
  14. <property name="uuid" type="java.lang.String" column="uuid" length="38" unique="true" ></property>
  15. <property name="patientid" type="java.lang.String" column="patientid" ></property>
  16. <property name="drugname" type="java.lang.String" column="drugname" ></property>
  17. <property name="startdate" type="java.util.Date" column="startdate" ></property>
  18. <property name="isallergic" column="isallergic" ></property>
  19. <property name="isallergicorderreasons" type="java.lang.String" column="isallergicorderreasons" ></property>
  20. <property name="orderstatus" type="java.lang.String" column="orderstatus" ></property>
  21. <property name="discontinued" column="discontinued" ></property>
  22. <property name="discontinuereason" type="java.lang.String" column="discontinuereason" ></property>
  23. <property name="discontinuationreasons" type="java.lang.String" column="discontinuationreasons" ></property>
  24. <property name="associateddiagnosis" type="java.lang.String" column="associateddiagnosis" length="255" ></property>
  25. <property name="patientinstructions" type="java.lang.String" column="patientinstructions" length="255" ></property>
  26. <property name="pharmacistinstructions" type="java.lang.String" column="pharmacistinstructions" length="255" ></property>
  27. <property name="approvalrequired" column="approvalrequired" ></property>
  28.  
  29. </class>
  30.  
  31. <class name="medicationplans" table="standard_disease_plan">
  32.  
  33. <id name="plan_id" type="int" column="id" unsaved-value="0">
  34. <generator class="native" />
  35. </id>
  36. <discriminator column="id" insert="false" />
  37. <property name="uuid" type="java.lang.String" column="uuid" length="38" unique="true" ></property>
  38. <property name="diseaseid" class="org.openmrs.Concept" column="diseaseid" ></property>
  39. <property name="drugid" class="org.openmrs.Concept" column="drugid" ></property>
  40. <property name="dose" type="java.lang.Double" length="10" column="dose" ></property>
  41. <property name="doseunits" class="org.openmrs.Concept" column="doseunits" ></property>
  42. <property name="quantity" type="java.lang.Double" length="10" column="quantity" ></property>
  43. <property name="quantityunits" class="org.openmrs.Concept" column="quantityunits" ></property>
  44. <property name="duration" column="duration" ></property>
  45. <property name="durationunits" class="org.openmrs.Concept" column="durationunits" ></property>
  46. <property name="route" class="org.openmrs.Concept" column="route" ></property>
  47. <property name="frequency" class="org.openmrs.OrderFrequency" column="frequency" ></property>
  48.  
  49. </class>
  50.  
  51. </hibernate-mapping>
Advertisement
RAW Paste Data Copied
Advertisement