caruby-tissue 1.2.3 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. data/History.txt +4 -0
  2. data/lib/catissue/annotation/annotation_class.rb +0 -1
  3. data/lib/catissue/version.rb +1 -1
  4. metadata +2 -75
  5. data/bin/crtseed +0 -26
  6. data/conf/annotation/pathology_scg/AdditionalFinding.hbm.xml +0 -19
  7. data/conf/annotation/pathology_scg/BasePathologyAnnotation.hbm.xml +0 -260
  8. data/conf/annotation/pathology_scg/BreastMargin.hbm.xml +0 -21
  9. data/conf/annotation/pathology_scg/BreastMarginInvolved.hbm.xml +0 -15
  10. data/conf/annotation/pathology_scg/BreastMarginUninvolved.hbm.xml +0 -14
  11. data/conf/annotation/pathology_scg/CNSMargin.hbm.xml +0 -19
  12. data/conf/annotation/pathology_scg/CNSMarginLocation.hbm.xml +0 -14
  13. data/conf/annotation/pathology_scg/CarcinomaInSituStatus.hbm.xml +0 -14
  14. data/conf/annotation/pathology_scg/ColorectalLocalExcisionMarginUninvolved.hbm.xml +0 -15
  15. data/conf/annotation/pathology_scg/ColorectalResectedMarginUninvolved.hbm.xml +0 -22
  16. data/conf/annotation/pathology_scg/Cytogenetics.hbm.xml +0 -15
  17. data/conf/annotation/pathology_scg/DeepMelanomaMargin.hbm.xml +0 -16
  18. data/conf/annotation/pathology_scg/Details.hbm.xml +0 -14
  19. data/conf/annotation/pathology_scg/DirectExtensionOfTumor.hbm.xml +0 -14
  20. data/conf/annotation/pathology_scg/DistalMargin.hbm.xml +0 -15
  21. data/conf/annotation/pathology_scg/DistanceFromAnalVerge.hbm.xml +0 -23
  22. data/conf/annotation/pathology_scg/DistantMetastasis.hbm.xml +0 -19
  23. data/conf/annotation/pathology_scg/ExcionalBiopsyMarginUninvolved.hbm.xml +0 -15
  24. data/conf/annotation/pathology_scg/ExcisionalBiopsyColorectalDeepMargin.hbm.xml +0 -15
  25. data/conf/annotation/pathology_scg/ExcisionalBiopsyColorectalLateralOrMucosalMargin.hbm.xml +0 -15
  26. data/conf/annotation/pathology_scg/ExtraprostaticExtension.hbm.xml +0 -20
  27. data/conf/annotation/pathology_scg/ExtraprostaticExtensionTissueSites.hbm.xml +0 -14
  28. data/conf/annotation/pathology_scg/GleasonScore.hbm.xml +0 -16
  29. data/conf/annotation/pathology_scg/HistologicGrade.hbm.xml +0 -16
  30. data/conf/annotation/pathology_scg/HistologicType.hbm.xml +0 -19
  31. data/conf/annotation/pathology_scg/HistologicVariantType.hbm.xml +0 -14
  32. data/conf/annotation/pathology_scg/ImmunoPhenotyping.hbm.xml +0 -16
  33. data/conf/annotation/pathology_scg/Invasion.hbm.xml +0 -16
  34. data/conf/annotation/pathology_scg/KidneyMarginLocation.hbm.xml +0 -15
  35. data/conf/annotation/pathology_scg/KidneyNephrectomyMargin.hbm.xml +0 -19
  36. data/conf/annotation/pathology_scg/LateralMelanomaMargin.hbm.xml +0 -16
  37. data/conf/annotation/pathology_scg/LocalExcisionColorectalDeepMargin.hbm.xml +0 -15
  38. data/conf/annotation/pathology_scg/LocalExcisionColorectalLateralMargin.hbm.xml +0 -20
  39. data/conf/annotation/pathology_scg/LungResectionMargin.hbm.xml +0 -17
  40. data/conf/annotation/pathology_scg/LungResectionMarginsUninvolved.hbm.xml +0 -14
  41. data/conf/annotation/pathology_scg/MacroscopicExtentOfTumor.hbm.xml +0 -14
  42. data/conf/annotation/pathology_scg/MesentricMargin.hbm.xml +0 -15
  43. data/conf/annotation/pathology_scg/MetastasisTissueSite.hbm.xml +0 -15
  44. data/conf/annotation/pathology_scg/Microcalcification.hbm.xml +0 -14
  45. data/conf/annotation/pathology_scg/NottinghamHistologicScore.hbm.xml +0 -17
  46. data/conf/annotation/pathology_scg/OtherResectedOrgans.hbm.xml +0 -15
  47. data/conf/annotation/pathology_scg/PancreasMargin.hbm.xml +0 -20
  48. data/conf/annotation/pathology_scg/PancreasMarginInvolvedByInvasiveCarcinoma.hbm.xml +0 -15
  49. data/conf/annotation/pathology_scg/PancreasMarginUninvolvedByInvasiveCarcinoma.hbm.xml +0 -20
  50. data/conf/annotation/pathology_scg/PathologicalStaging.hbm.xml +0 -16
  51. data/conf/annotation/pathology_scg/PolypConfiguration.hbm.xml +0 -15
  52. data/conf/annotation/pathology_scg/PrimaryTumorStage.hbm.xml +0 -14
  53. data/conf/annotation/pathology_scg/ProstateMarginLocation.hbm.xml +0 -15
  54. data/conf/annotation/pathology_scg/ProximalMargin.hbm.xml +0 -15
  55. data/conf/annotation/pathology_scg/RadialMargin.hbm.xml +0 -15
  56. data/conf/annotation/pathology_scg/RadicalProstatectomyMargin.hbm.xml +0 -20
  57. data/conf/annotation/pathology_scg/RegionalLymphNode.hbm.xml +0 -19
  58. data/conf/annotation/pathology_scg/SatelliteNodule.hbm.xml +0 -14
  59. data/conf/annotation/pathology_scg/SpecimenCollectionGroup.hbm.xml +0 -87
  60. data/conf/annotation/pathology_scg/SpecimenIntegrity.hbm.xml +0 -15
  61. data/conf/annotation/pathology_scg/SpecimenSize.hbm.xml +0 -17
  62. data/conf/annotation/pathology_scg/TissueSide.hbm.xml +0 -14
  63. data/conf/annotation/pathology_scg/TumorSize.hbm.xml +0 -29
  64. data/conf/annotation/pathology_scg/TumorTissueSite.hbm.xml +0 -20
  65. data/conf/annotation/pathology_scg/UninvolvedMelanomaMargin.hbm.xml +0 -15
  66. data/conf/annotation/pathology_specimen/AdditionalFinding.hbm.xml +0 -19
  67. data/conf/annotation/pathology_specimen/AdditionalPathologicFinding.hbm.xml +0 -18
  68. data/conf/annotation/pathology_specimen/Details.hbm.xml +0 -15
  69. data/conf/annotation/pathology_specimen/GleasonScore.hbm.xml +0 -16
  70. data/conf/annotation/pathology_specimen/HistologicGrade.hbm.xml +0 -16
  71. data/conf/annotation/pathology_specimen/HistologicType.hbm.xml +0 -19
  72. data/conf/annotation/pathology_specimen/HistologicVariantType.hbm.xml +0 -14
  73. data/conf/annotation/pathology_specimen/Invasion.hbm.xml +0 -16
  74. data/conf/annotation/pathology_specimen/NottinghamHistologicScore.hbm.xml +0 -17
  75. data/conf/annotation/pathology_specimen/Specimen.hbm.xml +0 -52
  76. data/conf/annotation/pathology_specimen/SpecimenBaseSolidTissuePathologyAnnotation.hbm.xml +0 -73
  77. data/lib/catissue/annotation/hibernate_mapping.rb +0 -46
@@ -1,73 +0,0 @@
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,46 +0,0 @@
1
- require 'xmlsimple'
2
- require 'caruby/util/inflector'
3
- require 'catissue/annotation/annotation'
4
-
5
- module CaTissue
6
- module Annotation
7
- # Annotation class Hibernate mapping encapsulation.
8
- #
9
- # caTissue alert - caTissue doesn't appear to use Hibernate for DEs. The mappings are incorrect
10
- # and should not be used.
11
- class HibernateMapping
12
-
13
- attr_accessor :table
14
-
15
- def initialize(klass)
16
- hbm = hibernate_mapping(klass)
17
- @table = hbm['table']
18
- @attr_col_hash = {}
19
- hbm['property'].each do |name, md|
20
- @attr_col_hash[name.underscore.to_sym] = md['column']
21
- end
22
- end
23
-
24
- def column(attribute)
25
- @attr_col_hash[attribute]
26
- end
27
-
28
- private
29
-
30
- HBM_DIR = File.join(File.dirname(__FILE__), '..', '..', '..', 'conf', 'annotation')
31
-
32
- HBM_OPTS = { 'KeyAttr' => 'name' }
33
-
34
- def hibernate_mapping(klass)
35
- file = hibernate_mapping_file(klass)
36
- conf = XmlSimple.xml_in(file, HBM_OPTS)
37
- conf['class'][klass.name.demodulize]
38
- end
39
-
40
- def hibernate_mapping_file(klass)
41
- dir = klass.java_class.name[/\w+/]
42
- File.join(HBM_DIR, dir, "#{klass.name.demodulize}.hbm.xml")
43
- end
44
- end
45
- end
46
- end