caruby-tissue 1.2.2 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (153) hide show
  1. data/History.txt +4 -0
  2. data/bin/crtdump +11 -3
  3. data/bin/{seed → crtseed} +0 -0
  4. data/conf/annotation/pathology_scg/AdditionalFinding.hbm.xml +19 -0
  5. data/conf/annotation/pathology_scg/BasePathologyAnnotation.hbm.xml +260 -0
  6. data/conf/annotation/pathology_scg/BreastMargin.hbm.xml +21 -0
  7. data/conf/annotation/pathology_scg/BreastMarginInvolved.hbm.xml +15 -0
  8. data/conf/annotation/pathology_scg/BreastMarginUninvolved.hbm.xml +14 -0
  9. data/conf/annotation/pathology_scg/CNSMargin.hbm.xml +19 -0
  10. data/conf/annotation/pathology_scg/CNSMarginLocation.hbm.xml +14 -0
  11. data/conf/annotation/pathology_scg/CarcinomaInSituStatus.hbm.xml +14 -0
  12. data/conf/annotation/pathology_scg/ColorectalLocalExcisionMarginUninvolved.hbm.xml +15 -0
  13. data/conf/annotation/pathology_scg/ColorectalResectedMarginUninvolved.hbm.xml +22 -0
  14. data/conf/annotation/pathology_scg/Cytogenetics.hbm.xml +15 -0
  15. data/conf/annotation/pathology_scg/DeepMelanomaMargin.hbm.xml +16 -0
  16. data/conf/annotation/pathology_scg/Details.hbm.xml +14 -0
  17. data/conf/annotation/pathology_scg/DirectExtensionOfTumor.hbm.xml +14 -0
  18. data/conf/annotation/pathology_scg/DistalMargin.hbm.xml +15 -0
  19. data/conf/annotation/pathology_scg/DistanceFromAnalVerge.hbm.xml +23 -0
  20. data/conf/annotation/pathology_scg/DistantMetastasis.hbm.xml +19 -0
  21. data/conf/annotation/pathology_scg/ExcionalBiopsyMarginUninvolved.hbm.xml +15 -0
  22. data/conf/annotation/pathology_scg/ExcisionalBiopsyColorectalDeepMargin.hbm.xml +15 -0
  23. data/conf/annotation/pathology_scg/ExcisionalBiopsyColorectalLateralOrMucosalMargin.hbm.xml +15 -0
  24. data/conf/annotation/pathology_scg/ExtraprostaticExtension.hbm.xml +20 -0
  25. data/conf/annotation/pathology_scg/ExtraprostaticExtensionTissueSites.hbm.xml +14 -0
  26. data/conf/annotation/pathology_scg/GleasonScore.hbm.xml +16 -0
  27. data/conf/annotation/pathology_scg/HistologicGrade.hbm.xml +16 -0
  28. data/conf/annotation/pathology_scg/HistologicType.hbm.xml +19 -0
  29. data/conf/annotation/pathology_scg/HistologicVariantType.hbm.xml +14 -0
  30. data/conf/annotation/pathology_scg/ImmunoPhenotyping.hbm.xml +16 -0
  31. data/conf/annotation/pathology_scg/Invasion.hbm.xml +16 -0
  32. data/conf/annotation/pathology_scg/KidneyMarginLocation.hbm.xml +15 -0
  33. data/conf/annotation/pathology_scg/KidneyNephrectomyMargin.hbm.xml +19 -0
  34. data/conf/annotation/pathology_scg/LateralMelanomaMargin.hbm.xml +16 -0
  35. data/conf/annotation/pathology_scg/LocalExcisionColorectalDeepMargin.hbm.xml +15 -0
  36. data/conf/annotation/pathology_scg/LocalExcisionColorectalLateralMargin.hbm.xml +20 -0
  37. data/conf/annotation/pathology_scg/LungResectionMargin.hbm.xml +17 -0
  38. data/conf/annotation/pathology_scg/LungResectionMarginsUninvolved.hbm.xml +14 -0
  39. data/conf/annotation/pathology_scg/MacroscopicExtentOfTumor.hbm.xml +14 -0
  40. data/conf/annotation/pathology_scg/MesentricMargin.hbm.xml +15 -0
  41. data/conf/annotation/pathology_scg/MetastasisTissueSite.hbm.xml +15 -0
  42. data/conf/annotation/pathology_scg/Microcalcification.hbm.xml +14 -0
  43. data/conf/annotation/pathology_scg/NottinghamHistologicScore.hbm.xml +17 -0
  44. data/conf/annotation/pathology_scg/OtherResectedOrgans.hbm.xml +15 -0
  45. data/conf/annotation/pathology_scg/PancreasMargin.hbm.xml +20 -0
  46. data/conf/annotation/pathology_scg/PancreasMarginInvolvedByInvasiveCarcinoma.hbm.xml +15 -0
  47. data/conf/annotation/pathology_scg/PancreasMarginUninvolvedByInvasiveCarcinoma.hbm.xml +20 -0
  48. data/conf/annotation/pathology_scg/PathologicalStaging.hbm.xml +16 -0
  49. data/conf/annotation/pathology_scg/PolypConfiguration.hbm.xml +15 -0
  50. data/conf/annotation/pathology_scg/PrimaryTumorStage.hbm.xml +14 -0
  51. data/conf/annotation/pathology_scg/ProstateMarginLocation.hbm.xml +15 -0
  52. data/conf/annotation/pathology_scg/ProximalMargin.hbm.xml +15 -0
  53. data/conf/annotation/pathology_scg/RadialMargin.hbm.xml +15 -0
  54. data/conf/annotation/pathology_scg/RadicalProstatectomyMargin.hbm.xml +20 -0
  55. data/conf/annotation/pathology_scg/RegionalLymphNode.hbm.xml +19 -0
  56. data/conf/annotation/pathology_scg/SatelliteNodule.hbm.xml +14 -0
  57. data/conf/annotation/pathology_scg/SpecimenCollectionGroup.hbm.xml +87 -0
  58. data/conf/annotation/pathology_scg/SpecimenIntegrity.hbm.xml +15 -0
  59. data/conf/annotation/pathology_scg/SpecimenSize.hbm.xml +17 -0
  60. data/conf/annotation/pathology_scg/TissueSide.hbm.xml +14 -0
  61. data/conf/annotation/pathology_scg/TumorSize.hbm.xml +29 -0
  62. data/conf/annotation/pathology_scg/TumorTissueSite.hbm.xml +20 -0
  63. data/conf/annotation/pathology_scg/UninvolvedMelanomaMargin.hbm.xml +15 -0
  64. data/conf/annotation/pathology_specimen/AdditionalFinding.hbm.xml +19 -0
  65. data/conf/annotation/pathology_specimen/AdditionalPathologicFinding.hbm.xml +18 -0
  66. data/conf/annotation/pathology_specimen/Details.hbm.xml +15 -0
  67. data/conf/annotation/pathology_specimen/GleasonScore.hbm.xml +16 -0
  68. data/conf/annotation/pathology_specimen/HistologicGrade.hbm.xml +16 -0
  69. data/conf/annotation/pathology_specimen/HistologicType.hbm.xml +19 -0
  70. data/conf/annotation/pathology_specimen/HistologicVariantType.hbm.xml +14 -0
  71. data/conf/annotation/pathology_specimen/Invasion.hbm.xml +16 -0
  72. data/conf/annotation/pathology_specimen/NottinghamHistologicScore.hbm.xml +17 -0
  73. data/conf/annotation/pathology_specimen/Specimen.hbm.xml +52 -0
  74. data/conf/annotation/pathology_specimen/SpecimenBaseSolidTissuePathologyAnnotation.hbm.xml +73 -0
  75. data/examples/galena/lib/galena/cli/seed.rb +0 -21
  76. data/examples/galena/lib/galena/migration/frozen_shims.rb +6 -5
  77. data/examples/galena/lib/galena/seed/defaults.rb +0 -5
  78. data/{lib → examples/galena/lib}/galena.rb +0 -0
  79. data/lib/catissue/annotation/annotatable.rb +37 -0
  80. data/lib/catissue/annotation/annotatable_class.rb +255 -0
  81. data/lib/catissue/annotation/annotation.rb +49 -0
  82. data/lib/catissue/annotation/annotation_class.rb +277 -0
  83. data/lib/catissue/annotation/annotation_module.rb +77 -0
  84. data/lib/catissue/annotation/hibernate_mapping.rb +46 -0
  85. data/lib/catissue/annotation/proxy.rb +28 -0
  86. data/lib/catissue/annotation/proxy_class.rb +68 -0
  87. data/lib/catissue/cli/migrate.rb +2 -2
  88. data/lib/catissue/cli/smoke.rb +6 -4
  89. data/lib/catissue/database/annotation/annotation_service.rb +75 -61
  90. data/lib/catissue/database/annotation/annotator.rb +17 -76
  91. data/lib/catissue/database/annotation/entity_facade.rb +265 -0
  92. data/lib/catissue/database/annotation/id_generator.rb +62 -0
  93. data/lib/catissue/database/annotation/integration_service.rb +105 -59
  94. data/lib/catissue/database/annotation/reference_writer.rb +150 -0
  95. data/lib/catissue/database/controlled_values.rb +12 -12
  96. data/lib/catissue/database.rb +148 -58
  97. data/lib/catissue/domain/abstract_specimen.rb +40 -14
  98. data/lib/catissue/domain/abstract_specimen_collection_group.rb +1 -3
  99. data/lib/catissue/domain/collection_protocol.rb +13 -5
  100. data/lib/catissue/domain/collection_protocol_event.rb +1 -14
  101. data/lib/catissue/domain/consent_tier_response.rb +2 -0
  102. data/lib/catissue/domain/consent_tier_status.rb +5 -3
  103. data/lib/catissue/domain/container.rb +14 -10
  104. data/lib/catissue/domain/container_position.rb +8 -0
  105. data/lib/catissue/domain/container_type.rb +13 -6
  106. data/lib/catissue/domain/participant.rb +15 -10
  107. data/lib/catissue/domain/site.rb +9 -3
  108. data/lib/catissue/domain/specimen.rb +79 -40
  109. data/lib/catissue/domain/specimen_array.rb +11 -1
  110. data/lib/catissue/domain/specimen_collection_group.rb +79 -41
  111. data/lib/catissue/domain/specimen_event_parameters.rb +5 -8
  112. data/lib/catissue/domain/specimen_position.rb +0 -2
  113. data/lib/catissue/domain/specimen_requirement.rb +1 -1
  114. data/lib/catissue/domain/storage_container.rb +109 -48
  115. data/lib/catissue/domain/storage_type.rb +1 -1
  116. data/lib/catissue/migration/migrator.rb +6 -14
  117. data/lib/catissue/resource.rb +18 -8
  118. data/lib/catissue/util/position.rb +11 -1
  119. data/lib/catissue/util/storable.rb +18 -11
  120. data/lib/catissue/util/storage_type_holder.rb +44 -6
  121. data/lib/catissue/version.rb +1 -1
  122. metadata +86 -35
  123. data/bin/migrate.rb +0 -42
  124. data/bin/seed.rb +0 -43
  125. data/examples/galena/doc/CaTissue/Participant.html +0 -241
  126. data/examples/galena/doc/CaTissue/SpecimenCollectionGroup.html +0 -190
  127. data/examples/galena/doc/CaTissue/StorageContainer.html +0 -179
  128. data/examples/galena/doc/CaTissue/TissueSpecimen.html +0 -320
  129. data/examples/galena/doc/CaTissue.html +0 -93
  130. data/examples/galena/doc/Galena/Seed/Defaults.html +0 -650
  131. data/examples/galena/doc/Galena/Seed.html +0 -203
  132. data/examples/galena/doc/Galena.html +0 -172
  133. data/examples/galena/doc/_index.html +0 -181
  134. data/examples/galena/doc/class_list.html +0 -36
  135. data/examples/galena/doc/css/common.css +0 -1
  136. data/examples/galena/doc/css/full_list.css +0 -53
  137. data/examples/galena/doc/css/style.css +0 -307
  138. data/examples/galena/doc/file.README.html +0 -153
  139. data/examples/galena/doc/file_list.html +0 -38
  140. data/examples/galena/doc/frames.html +0 -13
  141. data/examples/galena/doc/index.html +0 -153
  142. data/examples/galena/doc/js/app.js +0 -202
  143. data/examples/galena/doc/js/full_list.js +0 -149
  144. data/examples/galena/doc/js/jquery.js +0 -154
  145. data/examples/galena/doc/method_list.html +0 -163
  146. data/examples/galena/doc/top-level-namespace.html +0 -112
  147. data/lib/README.html +0 -33
  148. data/lib/catissue/database/annotation/annotatable_service.rb +0 -25
  149. data/lib/catissue/database/annotation/entity_manager.rb +0 -10
  150. data/lib/galena/cli/seed.rb +0 -43
  151. data/lib/galena/migration/filter_shims.rb +0 -43
  152. data/lib/galena/migration/frozen_shims.rb +0 -53
  153. data/lib/galena/seed/defaults.rb +0 -109
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
3
+
4
+ <hibernate-mapping package="pathology_scg">
5
+ <class name="RadicalProstatectomyMargin" table="DE_E_1680" lazy="true" polymorphism="explicit">
6
+ <cache usage="read-write" />
7
+ <id name="id" type="java.lang.Long" column="IDENTIFIER">
8
+ <generator class="assigned" />
9
+ </id>
10
+ <property name="FocalityOfInvolvedMargin" type="java.lang.String" column="DE_AT_1683" />
11
+ <property name="MarginStatus" type="java.lang.String" column="DE_AT_1684" />
12
+ <set name="ProstateMarginLocation" lazy="true" inverse="true">
13
+ <cache usage="read-write" />
14
+ <key column="DE_E_1680_1682_IDENTIFIER" />
15
+ <one-to-many class="pathology_scg.ProstateMarginLocation" />
16
+ </set>
17
+ <many-to-one name="radicalProstatectomyPathologyAnnotation" class="pathology_scg.RadicalProstatectomyPathologyAnnotation" column="DE_E_1676_1679_IDENTIFIER" unique="true" lazy="proxy" />
18
+ </class>
19
+ </hibernate-mapping>
20
+
@@ -0,0 +1,19 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
3
+
4
+ <hibernate-mapping package="pathology_scg">
5
+ <class name="RegionalLymphNode" table="DE_E_1489" lazy="true" polymorphism="explicit">
6
+ <cache usage="read-write" />
7
+ <id name="id" type="java.lang.Long" column="IDENTIFIER">
8
+ <generator class="assigned" />
9
+ </id>
10
+ <property name="MattedNodes" type="java.lang.String" column="DE_AT_1491" />
11
+ <property name="NumberPositiveMicroscopically" type="java.lang.Long" column="DE_AT_1492" />
12
+ <property name="NumberPositiveMacroscopically" type="java.lang.Long" column="DE_AT_1493" />
13
+ <property name="NumberInvolved" type="java.lang.Long" column="DE_AT_1494" />
14
+ <property name="NumberExamined" type="java.lang.Long" column="DE_AT_1495" />
15
+ <property name="LymphNodeStage" type="java.lang.String" column="DE_AT_1496" />
16
+ <many-to-one name="pathologicStaging" class="pathology_scg.PathologicalStaging" column="DE_E_1484_1488_IDENTIFIER" unique="true" lazy="proxy" />
17
+ </class>
18
+ </hibernate-mapping>
19
+
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
3
+
4
+ <hibernate-mapping package="pathology_scg">
5
+ <class name="SatelliteNodule" table="DE_E_1605" lazy="true" polymorphism="explicit">
6
+ <cache usage="read-write" />
7
+ <id name="id" type="java.lang.Long" column="IDENTIFIER">
8
+ <generator class="assigned" />
9
+ </id>
10
+ <property name="Site" type="java.lang.String" column="DE_AT_1607" />
11
+ <many-to-one name="MelanomaPathologyAnnotation" class="pathology_scg.MelanomaPathologyAnnotation" column="DE_E_1735_1746_IDENTIFIER" lazy="proxy" />
12
+ </class>
13
+ </hibernate-mapping>
14
+
@@ -0,0 +1,87 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
3
+
4
+ <hibernate-mapping package="pathology_scg">
5
+ <class name="SpecimenCollectionGroup" table="CATISSUE_SPECIMEN_COLL_GROUP" lazy="true" polymorphism="explicit">
6
+ <cache usage="read-write" />
7
+ <id name="id" type="java.lang.Long" column="IDENTIFIER">
8
+ <generator class="assigned" />
9
+ </id>
10
+ <set name="ExcisionalBiopsyBasedColorectalPathologyAnnotationCollection" lazy="true" inverse="true">
11
+ <cache usage="read-write" />
12
+ <key column="DYEXTN_AS_379_1631" />
13
+ <one-to-many class="pathology_scg.ExcisionalBiopsyBasedColorectalPathologyAnnotation" />
14
+ </set>
15
+ <set name="LungResectionBasedPathologyAnnotationCollection" lazy="true" inverse="true">
16
+ <cache usage="read-write" />
17
+ <key column="DYEXTN_AS_379_1518" />
18
+ <one-to-many class="pathology_scg.LungResectionBasedPathologyAnnotation" />
19
+ </set>
20
+ <set name="KidneyBiopsyBasedPathologyAnnotationCollection" lazy="true" inverse="true">
21
+ <cache usage="read-write" />
22
+ <key column="DYEXTN_AS_379_1539" />
23
+ <one-to-many class="pathology_scg.KidneyBiopsyBasedPathologyAnnotation" />
24
+ </set>
25
+ <set name="LocalExcisionBasedColorectalPathologyAnnotationCollection" lazy="true" inverse="true">
26
+ <cache usage="read-write" />
27
+ <key column="DYEXTN_AS_379_1788" />
28
+ <one-to-many class="pathology_scg.LocalExcisionBasedColorectalPathologyAnnotation" />
29
+ </set>
30
+ <set name="LungBiopsyPathologyAnnotationCollection" lazy="true" inverse="true">
31
+ <cache usage="read-write" />
32
+ <key column="DYEXTN_AS_379_1559" />
33
+ <one-to-many class="pathology_scg.LungBiopsyPathologyAnnotation" />
34
+ </set>
35
+ <set name="RetropubicEnucleationPathologyAnnotationCollection" lazy="true" inverse="true">
36
+ <cache usage="read-write" />
37
+ <key column="DYEXTN_AS_379_1794" />
38
+ <one-to-many class="pathology_scg.RetropubicEnucleationPathologyAnnotation" />
39
+ </set>
40
+ <set name="BreastPathologyAnnotationCollection" lazy="true" inverse="true">
41
+ <cache usage="read-write" />
42
+ <key column="DYEXTN_AS_379_1754" />
43
+ <one-to-many class="pathology_scg.BreastPathologyAnnotation" />
44
+ </set>
45
+ <set name="MelanomaPathologyAnnotationCollection" lazy="true" inverse="true">
46
+ <cache usage="read-write" />
47
+ <key column="DYEXTN_AS_379_1735" />
48
+ <one-to-many class="pathology_scg.MelanomaPathologyAnnotation" />
49
+ </set>
50
+ <set name="ResectionBasedColorectalPathologyAnnotationCollection" lazy="true" inverse="true">
51
+ <cache usage="read-write" />
52
+ <key column="DYEXTN_AS_379_1715" />
53
+ <one-to-many class="pathology_scg.ResectionBasedColorectalPathologyAnnotation" />
54
+ </set>
55
+ <set name="NeedleBiopsyProstatePathologyAnnotationCollection" lazy="true" inverse="true">
56
+ <cache usage="read-write" />
57
+ <key column="DYEXTN_AS_379_1652" />
58
+ <one-to-many class="pathology_scg.NeedleBiopsyProstatePathologyAnnotation" />
59
+ </set>
60
+ <set name="RadicalProstatectomyPathologyAnnotationCollection" lazy="true" inverse="true">
61
+ <cache usage="read-write" />
62
+ <key column="DYEXTN_AS_379_1676" />
63
+ <one-to-many class="pathology_scg.RadicalProstatectomyPathologyAnnotation" />
64
+ </set>
65
+ <set name="TransurethralProstaticResectionPathologyAnnotationCollection" lazy="true" inverse="true">
66
+ <cache usage="read-write" />
67
+ <key column="DYEXTN_AS_379_1625" />
68
+ <one-to-many class="pathology_scg.TransurethralProstaticResectionPathologyAnnotation" />
69
+ </set>
70
+ <set name="KidneyNephrectomyBasedPathologyAnnotationCollection" lazy="true" inverse="true">
71
+ <cache usage="read-write" />
72
+ <key column="DYEXTN_AS_379_1797" />
73
+ <one-to-many class="pathology_scg.KidneyNephrectomyBasedPathologyAnnotation" />
74
+ </set>
75
+ <set name="CNSPathologyAnnotationCollection" lazy="true" inverse="true">
76
+ <cache usage="read-write" />
77
+ <key column="DYEXTN_AS_379_1773" />
78
+ <one-to-many class="pathology_scg.CNSPathologyAnnotation" />
79
+ </set>
80
+ <set name="PancreasPathologyAnnotationCollection" lazy="true" inverse="true">
81
+ <cache usage="read-write" />
82
+ <key column="DYEXTN_AS_379_1705" />
83
+ <one-to-many class="pathology_scg.PancreasPathologyAnnotation" />
84
+ </set>
85
+ </class>
86
+ </hibernate-mapping>
87
+
@@ -0,0 +1,15 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
3
+
4
+ <hibernate-mapping package="pathology_scg">
5
+ <class name="SpecimenIntegrity" table="DE_E_1541" lazy="true" polymorphism="explicit">
6
+ <cache usage="read-write" />
7
+ <id name="id" type="java.lang.Long" column="IDENTIFIER">
8
+ <generator class="assigned" />
9
+ </id>
10
+ <property name="NumberOfPieces" type="java.lang.Long" column="DE_AT_1543" />
11
+ <property name="Type" type="java.lang.String" column="DE_AT_1544" />
12
+ <many-to-one name="LocalExcisionBasedColorectalPathologyAnnotation" class="pathology_scg.LocalExcisionBasedColorectalPathologyAnnotation" column="DE_E_1788_1790_IDENTIFIER" unique="true" lazy="proxy" />
13
+ </class>
14
+ </hibernate-mapping>
15
+
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
3
+
4
+ <hibernate-mapping package="pathology_scg">
5
+ <class name="SpecimenSize" table="DE_E_1828" lazy="true" polymorphism="explicit">
6
+ <cache usage="read-write" />
7
+ <id name="id" type="java.lang.Long" column="IDENTIFIER">
8
+ <generator class="assigned" />
9
+ </id>
10
+ <property name="CannotBeDetermined" type="java.lang.Boolean" column="DE_AT_1830" />
11
+ <property name="AdditionalDimensionTwo" type="java.lang.Double" column="DE_AT_1831" />
12
+ <property name="AdditionalDimensionOne" type="java.lang.Double" column="DE_AT_1832" />
13
+ <property name="GreatestDimension" type="java.lang.Double" column="DE_AT_1833" />
14
+ <many-to-one name="CNSPathologyAnnotation" class="pathology_scg.CNSPathologyAnnotation" column="DE_E_1773_1827_IDENTIFIER" unique="true" lazy="proxy" />
15
+ </class>
16
+ </hibernate-mapping>
17
+
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
3
+
4
+ <hibernate-mapping package="pathology_scg">
5
+ <class name="TissueSide" table="DE_E_1513" lazy="true" polymorphism="explicit">
6
+ <cache usage="read-write" />
7
+ <id name="id" type="java.lang.Long" column="IDENTIFIER">
8
+ <generator class="assigned" />
9
+ </id>
10
+ <property name="Side" type="java.lang.String" column="DE_AT_1515" />
11
+ <many-to-one name="TumorTissueSite" class="pathology_scg.TumorTissueSite" column="DE_E_1508_1510_IDENTIFIER" lazy="proxy" />
12
+ </class>
13
+ </hibernate-mapping>
14
+
@@ -0,0 +1,29 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
3
+
4
+ <hibernate-mapping package="pathology_scg">
5
+ <class name="TumorSize" table="DE_E_1473" lazy="true" polymorphism="explicit">
6
+ <cache usage="read-write" />
7
+ <id name="id" type="java.lang.Long" column="IDENTIFIER">
8
+ <generator class="assigned" />
9
+ </id>
10
+ <property name="GreatestDimension" type="java.lang.Double" column="DE_AT_1475" />
11
+ <property name="AdditionalDimensionTwo" type="java.lang.Double" column="DE_AT_1476" />
12
+ <property name="AdditionalDimensionOne" type="java.lang.Double" column="DE_AT_1477" />
13
+ <property name="CannotBeDetermined" type="java.lang.Boolean" column="DE_AT_1478" />
14
+ <many-to-one name="baseSolidTissuePathologyAnnotation" class="pathology_scg.BaseSolidTissuePathologyAnnotation" column="DE_E_1461_1466_IDENTIFIER" unique="true" lazy="proxy" />
15
+ <joined-subclass name="pathology_scg.SizeOfInvasiveCarcinoma" table="DE_E_1836" lazy="true">
16
+ <key column="IDENTIFIER" />
17
+ <many-to-one name="BreastPathologyAnnotation" class="pathology_scg.BreastPathologyAnnotation" column="DE_E_1754_1835_IDENTIFIER" unique="true" lazy="proxy" />
18
+ </joined-subclass>
19
+ <joined-subclass name="pathology_scg.SizeOfSpecimen" table="DE_E_1838" lazy="true">
20
+ <key column="IDENTIFIER" />
21
+ <many-to-one name="BreastPathologyAnnotation" class="pathology_scg.BreastPathologyAnnotation" column="DE_E_1754_1834_IDENTIFIER" unique="true" lazy="proxy" />
22
+ </joined-subclass>
23
+ <joined-subclass name="pathology_scg.PolypSize" table="DE_E_1841" lazy="true">
24
+ <key column="IDENTIFIER" />
25
+ <many-to-one name="ColorectalPathologyAnnotation" class="pathology_scg.ColorectalPathologyAnnotation" column="DE_E_1593_1840_IDENTIFIER" unique="true" lazy="proxy" />
26
+ </joined-subclass>
27
+ </class>
28
+ </hibernate-mapping>
29
+
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
3
+
4
+ <hibernate-mapping package="pathology_scg">
5
+ <class name="TumorTissueSite" table="DE_E_1508" lazy="true" polymorphism="explicit">
6
+ <cache usage="read-write" />
7
+ <id name="id" type="java.lang.Long" column="IDENTIFIER">
8
+ <generator class="assigned" />
9
+ </id>
10
+ <property name="OtherSite" type="java.lang.String" column="DE_AT_1511" />
11
+ <property name="Site" type="java.lang.String" column="DE_AT_1512" />
12
+ <set name="TissueSide" lazy="true" inverse="true">
13
+ <cache usage="read-write" />
14
+ <key column="DE_E_1508_1510_IDENTIFIER" />
15
+ <one-to-many class="pathology_scg.TissueSide" />
16
+ </set>
17
+ <many-to-one name="baseSolidTissuePathologyAnnotation" class="pathology_scg.BaseSolidTissuePathologyAnnotation" column="DE_E_1461_1463_IDENTIFIER" lazy="proxy" />
18
+ </class>
19
+ </hibernate-mapping>
20
+
@@ -0,0 +1,15 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
3
+
4
+ <hibernate-mapping package="pathology_scg">
5
+ <class name="UninvolvedMelanomaMargin" table="DE_E_1556" lazy="true" polymorphism="explicit">
6
+ <cache usage="read-write" />
7
+ <id name="id" type="java.lang.Long" column="IDENTIFIER">
8
+ <generator class="assigned" />
9
+ </id>
10
+ <property name="closestDistanceToTumor" type="java.lang.Double" column="DE_AT_1558" />
11
+ <many-to-one name="DeepMelanomaMargin" class="pathology_scg.DeepMelanomaMargin" column="DE_E_1600_1602_IDENTIFIER" unique="true" lazy="proxy" />
12
+ <many-to-one name="LateralMelanomaMargin" class="pathology_scg.LateralMelanomaMargin" column="DE_E_1749_1751_IDENTIFIER" unique="true" lazy="proxy" />
13
+ </class>
14
+ </hibernate-mapping>
15
+
@@ -0,0 +1,19 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
3
+
4
+ <hibernate-mapping package="pathology_specimen">
5
+ <class name="AdditionalFinding" table="DE_E_1400" lazy="true" polymorphism="explicit">
6
+ <cache usage="read-write" />
7
+ <id name="id" type="java.lang.Long" column="IDENTIFIER">
8
+ <generator class="assigned" />
9
+ </id>
10
+ <property name="PathologicFinding" type="java.lang.String" column="DE_AT_1403" />
11
+ <many-to-one name="SpecimenBaseSolidTissuePathologyAnnotation" class="pathology_specimen.SpecimenBaseSolidTissuePathologyAnnotation" column="DE_E_1325_1399_IDENTIFIER" lazy="proxy" />
12
+ <set name="Details" lazy="true" inverse="true">
13
+ <cache usage="read-write" />
14
+ <key column="DE_E_1400_1402_IDENTIFIER" />
15
+ <one-to-many class="pathology_specimen.Details" />
16
+ </set>
17
+ </class>
18
+ </hibernate-mapping>
19
+
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
3
+
4
+ <hibernate-mapping package="pathology_specimen">
5
+ <class name="AdditionalPathologicFinding" table="DE_E_1318" lazy="true" polymorphism="explicit">
6
+ <cache usage="read-write" />
7
+ <id name="id" type="java.lang.Long" column="IDENTIFIER">
8
+ <generator class="assigned" />
9
+ </id>
10
+ <property name="pathologicFinding" type="java.lang.String" column="DE_AT_1321" />
11
+ <set name="detailsCollection" lazy="true" inverse="true">
12
+ <cache usage="read-write" />
13
+ <key column="DE_E_1318_1320_IDENTIFIER" />
14
+ <one-to-many class="pathology_specimen.Details" />
15
+ </set>
16
+ </class>
17
+ </hibernate-mapping>
18
+
@@ -0,0 +1,15 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
3
+
4
+ <hibernate-mapping package="pathology_specimen">
5
+ <class name="Details" table="DE_E_1322" lazy="true" polymorphism="explicit">
6
+ <cache usage="read-write" />
7
+ <id name="id" type="java.lang.Long" column="IDENTIFIER">
8
+ <generator class="assigned" />
9
+ </id>
10
+ <property name="detail" type="java.lang.String" column="DE_AT_1324" />
11
+ <many-to-one name="additionalPathologicFinding" class="pathology_specimen.AdditionalPathologicFinding" column="DE_E_1318_1320_IDENTIFIER" lazy="proxy" />
12
+ <many-to-one name="AdditionalFinding" class="pathology_specimen.AdditionalFinding" column="DE_E_1400_1402_IDENTIFIER" lazy="proxy" />
13
+ </class>
14
+ </hibernate-mapping>
15
+
@@ -0,0 +1,16 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
3
+
4
+ <hibernate-mapping package="pathology_specimen">
5
+ <class name="GleasonScore" table="DE_E_1381" lazy="true" polymorphism="explicit">
6
+ <cache usage="read-write" />
7
+ <id name="id" type="java.lang.Long" column="IDENTIFIER">
8
+ <generator class="assigned" />
9
+ </id>
10
+ <property name="tertiaryPatternScore" type="java.lang.Integer" column="DE_AT_1383" />
11
+ <property name="secondaryPatternScore" type="java.lang.Integer" column="DE_AT_1384" />
12
+ <property name="primaryPatternScore" type="java.lang.Integer" column="DE_AT_1385" />
13
+
14
+ </class>
15
+ </hibernate-mapping>
16
+
@@ -0,0 +1,16 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
3
+
4
+ <hibernate-mapping package="pathology_specimen">
5
+ <class name="HistologicGrade" table="DE_E_1344" lazy="true" polymorphism="explicit">
6
+ <cache usage="read-write" />
7
+ <id name="id" type="java.lang.Long" column="IDENTIFIER">
8
+ <generator class="assigned" />
9
+ </id>
10
+ <property name="Grade" type="java.lang.String" column="DE_AT_1346" />
11
+ <property name="OtherGradingSystemName" type="java.lang.String" column="DE_AT_1347" />
12
+ <property name="GradingSystemName" type="java.lang.String" column="DE_AT_1348" />
13
+ <many-to-one name="specimenBaseSolidTissuePathologyAnnotation" class="pathology_specimen.SpecimenBaseSolidTissuePathologyAnnotation" column="DE_E_1325_1328_IDENTIFIER" lazy="proxy" />
14
+ </class>
15
+ </hibernate-mapping>
16
+
@@ -0,0 +1,19 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
3
+
4
+ <hibernate-mapping package="pathology_specimen">
5
+ <class name="HistologicType" table="DE_E_1332" lazy="true" polymorphism="explicit">
6
+ <cache usage="read-write" />
7
+ <id name="id" type="java.lang.Long" column="IDENTIFIER">
8
+ <generator class="assigned" />
9
+ </id>
10
+ <property name="Type" type="java.lang.String" column="DE_AT_1335" />
11
+ <set name="HistologicVariantType" lazy="true" inverse="true">
12
+ <cache usage="read-write" />
13
+ <key column="DE_E_1332_1334_IDENTIFIER" />
14
+ <one-to-many class="pathology_specimen.HistologicVariantType" />
15
+ </set>
16
+ <many-to-one name="SpecimenBaseSolidTissuePathologyAnnotation" class="pathology_specimen.SpecimenBaseSolidTissuePathologyAnnotation" column="DE_E_1325_1330_IDENTIFIER" lazy="proxy" />
17
+ </class>
18
+ </hibernate-mapping>
19
+
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
3
+
4
+ <hibernate-mapping package="pathology_specimen">
5
+ <class name="HistologicVariantType" table="DE_E_1336" lazy="true" polymorphism="explicit">
6
+ <cache usage="read-write" />
7
+ <id name="id" type="java.lang.Long" column="IDENTIFIER">
8
+ <generator class="assigned" />
9
+ </id>
10
+ <property name="OtherHistologicType" type="java.lang.String" column="DE_AT_1338" />
11
+ <many-to-one name="HistologicType" class="pathology_specimen.HistologicType" column="DE_E_1332_1334_IDENTIFIER" lazy="proxy" />
12
+ </class>
13
+ </hibernate-mapping>
14
+
@@ -0,0 +1,16 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
3
+
4
+ <hibernate-mapping package="pathology_specimen">
5
+ <class name="Invasion" table="DE_E_1339" lazy="true" polymorphism="explicit">
6
+ <cache usage="read-write" />
7
+ <id name="id" type="java.lang.Long" column="IDENTIFIER">
8
+ <generator class="assigned" />
9
+ </id>
10
+ <property name="PerineuralInvasion" type="java.lang.String" column="DE_AT_1341" />
11
+ <property name="VenousInvasion" type="java.lang.String" column="DE_AT_1342" />
12
+ <property name="LymphaticInvasion" type="java.lang.String" column="DE_AT_1343" />
13
+ <many-to-one name="specimenBaseSolidTissuePathologyAnnotation" class="pathology_specimen.SpecimenBaseSolidTissuePathologyAnnotation" column="DE_E_1325_1329_IDENTIFIER" unique="true" lazy="proxy" />
14
+ </class>
15
+ </hibernate-mapping>
16
+
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
3
+
4
+ <hibernate-mapping package="pathology_specimen">
5
+ <class name="NottinghamHistologicScore" table="DE_E_1369" lazy="true" polymorphism="explicit">
6
+ <cache usage="read-write" />
7
+ <id name="id" type="java.lang.Long" column="IDENTIFIER">
8
+ <generator class="assigned" />
9
+ </id>
10
+ <property name="totalNottinghamScore" type="java.lang.Integer" column="DE_AT_1371" />
11
+ <property name="mitoticCountScore" type="java.lang.Integer" column="DE_AT_1372" />
12
+ <property name="nuclearPleomorphismScore" type="java.lang.Integer" column="DE_AT_1373" />
13
+ <property name="tubuleFormationScore" type="java.lang.Integer" column="DE_AT_1374" />
14
+
15
+ </class>
16
+ </hibernate-mapping>
17
+
@@ -0,0 +1,52 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
3
+
4
+ <hibernate-mapping package="pathology_specimen">
5
+ <class name="Specimen" table="CATISSUE_SPECIMEN" lazy="true" polymorphism="explicit">
6
+ <cache usage="read-write" />
7
+ <id name="id" type="java.lang.Long" column="IDENTIFIER">
8
+ <generator class="assigned" />
9
+ </id>
10
+ <set name="ProstateSpecimenPathologyAnnotationCollection" lazy="true" inverse="true">
11
+ <cache usage="read-write" />
12
+ <key column="DYEXTN_AS_4_1377" />
13
+ <one-to-many class="pathology_specimen.ProstateSpecimenPathologyAnnotation" />
14
+ </set>
15
+ <set name="MelanomaSpecimenPathologyAnnotationCollection" lazy="true" inverse="true">
16
+ <cache usage="read-write" />
17
+ <key column="DYEXTN_AS_4_1349" />
18
+ <one-to-many class="pathology_specimen.MelanomaSpecimenPathologyAnnotation" />
19
+ </set>
20
+ <set name="KidneySpecimenPathologyAnnotationCollection" lazy="true" inverse="true">
21
+ <cache usage="read-write" />
22
+ <key column="DYEXTN_AS_4_1357" />
23
+ <one-to-many class="pathology_specimen.KidneySpecimenPathologyAnnotation" />
24
+ </set>
25
+ <set name="LungSpecimenPathologyAnnotationCollection" lazy="true" inverse="true">
26
+ <cache usage="read-write" />
27
+ <key column="DYEXTN_AS_4_1386" />
28
+ <one-to-many class="pathology_specimen.LungSpecimenPathologyAnnotation" />
29
+ </set>
30
+ <set name="PancreasSpecimenPathologyAnnotationCollection" lazy="true" inverse="true">
31
+ <cache usage="read-write" />
32
+ <key column="DYEXTN_AS_4_1375" />
33
+ <one-to-many class="pathology_specimen.PancreasSpecimenPathologyAnnotation" />
34
+ </set>
35
+ <set name="CNSSpecimenPathologyAnnotationCollection" lazy="true" inverse="true">
36
+ <cache usage="read-write" />
37
+ <key column="DYEXTN_AS_4_1363" />
38
+ <one-to-many class="pathology_specimen.CNSSpecimenPathologyAnnotation" />
39
+ </set>
40
+ <set name="BreastSpecimenPathologyAnnotationCollection" lazy="true" inverse="true">
41
+ <cache usage="read-write" />
42
+ <key column="DYEXTN_AS_4_1365" />
43
+ <one-to-many class="pathology_specimen.BreastSpecimenPathologyAnnotation" />
44
+ </set>
45
+ <set name="ColorectalSpecimenPathologyAnnotationCollection" lazy="true" inverse="true">
46
+ <cache usage="read-write" />
47
+ <key column="DYEXTN_AS_4_1359" />
48
+ <one-to-many class="pathology_specimen.ColorectalSpecimenPathologyAnnotation" />
49
+ </set>
50
+ </class>
51
+ </hibernate-mapping>
52
+
@@ -0,0 +1,73 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
3
+
4
+ <hibernate-mapping package="pathology_specimen">
5
+ <class name="SpecimenBaseSolidTissuePathologyAnnotation" table="DE_E_1325" lazy="true" polymorphism="explicit">
6
+ <cache usage="read-write" />
7
+ <id name="id" type="java.lang.Long" column="IDENTIFIER">
8
+ <generator class="assigned" />
9
+ </id>
10
+ <property name="Comments" type="java.lang.String" column="DE_AT_1331" />
11
+ <set name="AdditionalFinding" lazy="true" inverse="true">
12
+ <cache usage="read-write" />
13
+ <key column="DE_E_1325_1399_IDENTIFIER" />
14
+ <one-to-many class="pathology_specimen.AdditionalFinding" />
15
+ </set>
16
+ <set name="HistologicType" lazy="true" inverse="true">
17
+ <cache usage="read-write" />
18
+ <key column="DE_E_1325_1330_IDENTIFIER" />
19
+ <one-to-many class="pathology_specimen.HistologicType" />
20
+ </set>
21
+ <one-to-one name="invasion" class="pathology_specimen.Invasion" property-ref="specimenBaseSolidTissuePathologyAnnotation" />
22
+ <set name="histologicGrade" lazy="true" inverse="true">
23
+ <cache usage="read-write" />
24
+ <key column="DE_E_1325_1328_IDENTIFIER" />
25
+ <one-to-many class="pathology_specimen.HistologicGrade" />
26
+ </set>
27
+ <joined-subclass name="pathology_specimen.BreastSpecimenPathologyAnnotation" table="DE_E_1365" lazy="true">
28
+ <key column="IDENTIFIER" />
29
+ <property name="MitoticCountIfOtherGradingSystemUsed" type="java.lang.Long" column="DE_AT_1368" />
30
+ <many-to-one name="Specimen" class="pathology_specimen.Specimen" column="DYEXTN_AS_4_1365" lazy="proxy" />
31
+ <one-to-one name="nottinghamHistologicScore" class="pathology_specimen.NottinghamHistologicScore" />
32
+ </joined-subclass>
33
+ <joined-subclass name="pathology_specimen.CNSSpecimenPathologyAnnotation" table="DE_E_1363" lazy="true">
34
+ <key column="IDENTIFIER" />
35
+ <many-to-one name="Specimen" class="pathology_specimen.Specimen" column="DYEXTN_AS_4_1363" lazy="proxy" />
36
+ </joined-subclass>
37
+ <joined-subclass name="pathology_specimen.ColorectalSpecimenPathologyAnnotation" table="DE_E_1359" lazy="true">
38
+ <key column="IDENTIFIER" />
39
+ <property name="IntratumoralPeritumoralLymphocyticResponse" type="java.lang.String" column="DE_AT_1361" />
40
+ <property name="TumorBorderConfiguration" type="java.lang.String" column="DE_AT_1362" />
41
+ <many-to-one name="Specimen" class="pathology_specimen.Specimen" column="DYEXTN_AS_4_1359" lazy="proxy" />
42
+ </joined-subclass>
43
+ <joined-subclass name="pathology_specimen.KidneySpecimenPathologyAnnotation" table="DE_E_1357" lazy="true">
44
+ <key column="IDENTIFIER" />
45
+ <many-to-one name="Specimen" class="pathology_specimen.Specimen" column="DYEXTN_AS_4_1357" lazy="proxy" />
46
+ </joined-subclass>
47
+ <joined-subclass name="pathology_specimen.MelanomaSpecimenPathologyAnnotation" table="DE_E_1349" lazy="true">
48
+ <key column="IDENTIFIER" />
49
+ <property name="MitoticIndex" type="java.lang.String" column="DE_AT_1351" />
50
+ <property name="TumorRegression" type="java.lang.String" column="DE_AT_1352" />
51
+ <property name="TumorInfiltratingLymphocytes" type="java.lang.String" column="DE_AT_1353" />
52
+ <property name="DepthOfInvasionCannotBeDetermined" type="java.lang.Boolean" column="DE_AT_1354" />
53
+ <property name="DepthOfInvasion" type="java.lang.Double" column="DE_AT_1355" />
54
+ <property name="Ulceration" type="java.lang.String" column="DE_AT_1356" />
55
+ <many-to-one name="Specimen" class="pathology_specimen.Specimen" column="DYEXTN_AS_4_1349" lazy="proxy" />
56
+ </joined-subclass>
57
+ <joined-subclass name="pathology_specimen.PancreasSpecimenPathologyAnnotation" table="DE_E_1375" lazy="true">
58
+ <key column="IDENTIFIER" />
59
+ <many-to-one name="Specimen" class="pathology_specimen.Specimen" column="DYEXTN_AS_4_1375" lazy="proxy" />
60
+ </joined-subclass>
61
+ <joined-subclass name="pathology_specimen.ProstateSpecimenPathologyAnnotation" table="DE_E_1377" lazy="true">
62
+ <key column="IDENTIFIER" />
63
+ <property name="ProportionOrPercentOfProstaticTissueInvolvedByTumor" type="java.lang.Double" column="DE_AT_1380" />
64
+ <many-to-one name="Specimen" class="pathology_specimen.Specimen" column="DYEXTN_AS_4_1377" lazy="proxy" />
65
+ <one-to-one name="gleasonScore" class="pathology_specimen.GleasonScore" />
66
+ </joined-subclass>
67
+ <joined-subclass name="pathology_specimen.LungSpecimenPathologyAnnotation" table="DE_E_1386" lazy="true">
68
+ <key column="IDENTIFIER" />
69
+ <many-to-one name="Specimen" class="pathology_specimen.Specimen" column="DYEXTN_AS_4_1386" lazy="proxy" />
70
+ </joined-subclass>
71
+ </class>
72
+ </hibernate-mapping>
73
+
@@ -1,26 +1,5 @@
1
1
  #!/usr/bin/env jruby
2
2
  #
3
- # == Synopsis
4
- #
5
- # catissue-seed-galena.rb: seeds the Galena example administrative objects in the database
6
- #
7
- # == Usage
8
- #
9
- # catissue-seed-galena.rb [options] file
10
- #
11
- # --help, -h:
12
- # print this help message and exit
13
- #
14
- # --log file, -l file:
15
- # log file (default ./log/migration.log)
16
- #
17
- # --debug, -d:
18
- # print debug messages to log (optional)
19
- #
20
- # == License
21
- #
22
- # This program is licensed under the terms of the +LEGAL+ file in
23
- # the source distribution.
24
3
 
25
4
  # load the required gems
26
5
  require 'rubygems'
@@ -14,26 +14,27 @@ module CaTissue
14
14
  self.specimen_type = 'Frozen Tissue'
15
15
  end
16
16
  end
17
-
17
+
18
18
  class StorageContainer
19
19
  # Creates the migrated box in the database, if necessary.
20
20
  #
21
21
  # @param (see CaRuby::Migratable#migrate)
22
22
  def migrate(row, migrated)
23
23
  super
24
- find or create_box
24
+ find or create_galena_box
25
25
  end
26
26
 
27
27
  private
28
-
28
+
29
29
  # Creates a new box of type {Galena::Seed::Defaults#box_type} in a freezer of type
30
30
  # {Galena::Seed::Defaults#freezer_type}.
31
31
  #
32
32
  # @return [StorageContainer] the new box
33
- def create_box
33
+ def create_galena_box
34
34
  defs = Galena::Seed.defaults
35
35
  self.storage_type = defs.box_type
36
- # A freezer with a spot for the box
36
+ site = defs.tissue_bank
37
+ # A freezer with a slot for the box.
37
38
  frz = defs.freezer_type.find_available(site, :create)
38
39
  if frz.nil? then raise CaRuby::MigrationError.new("Freezer not available to place #{self}") end
39
40
  # Add this box to the first open slot in the first unfilled rack in the freezer.