caruby-tissue 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. data/History.txt +4 -0
  2. data/LEGAL +5 -0
  3. data/LICENSE +22 -0
  4. data/README.md +44 -0
  5. data/bin/crtdump +31 -0
  6. data/bin/crtexample +18 -0
  7. data/bin/crtextract +47 -0
  8. data/bin/crtmigrate +17 -0
  9. data/bin/crtsmoke +27 -0
  10. data/examples/galena/README.md +53 -0
  11. data/examples/galena/bin/migrate.rb +42 -0
  12. data/examples/galena/bin/seed.rb +43 -0
  13. data/examples/galena/conf/extract/simple_fields.yaml +4 -0
  14. data/examples/galena/conf/migration/filter_fields.yaml +7 -0
  15. data/examples/galena/conf/migration/filter_migration.yaml +9 -0
  16. data/examples/galena/conf/migration/frozen_fields.yaml +11 -0
  17. data/examples/galena/conf/migration/frozen_migration.yaml +9 -0
  18. data/examples/galena/conf/migration/general_fields.yaml +42 -0
  19. data/examples/galena/conf/migration/general_migration.yaml +9 -0
  20. data/examples/galena/conf/migration/simple_fields.yaml +30 -0
  21. data/examples/galena/conf/migration/simple_migration.yaml +7 -0
  22. data/examples/galena/conf/migration/small_fields.yaml +24 -0
  23. data/examples/galena/conf/migration/small_migration.yaml +9 -0
  24. data/examples/galena/data/filter.csv +1 -0
  25. data/examples/galena/data/frozen.csv +1 -0
  26. data/examples/galena/data/general.csv +1 -0
  27. data/examples/galena/data/minimal.csv +1 -0
  28. data/examples/galena/data/simple.csv +1 -0
  29. data/examples/galena/data/small.csv +1 -0
  30. data/examples/galena/doc/CaTissue.html +93 -0
  31. data/examples/galena/doc/CaTissue/CollectionProtocolRegistration.html +181 -0
  32. data/examples/galena/doc/CaTissue/Participant.html +241 -0
  33. data/examples/galena/doc/CaTissue/SpecimenCollectionGroup.html +190 -0
  34. data/examples/galena/doc/CaTissue/StorageContainer.html +179 -0
  35. data/examples/galena/doc/CaTissue/TissueSpecimen.html +320 -0
  36. data/examples/galena/doc/Galena.html +290 -0
  37. data/examples/galena/doc/Galena/Seed.html +203 -0
  38. data/examples/galena/doc/Galena/Seed/Defaults.html +646 -0
  39. data/examples/galena/doc/_index.html +188 -0
  40. data/examples/galena/doc/class_list.html +36 -0
  41. data/examples/galena/doc/css/common.css +1 -0
  42. data/examples/galena/doc/css/full_list.css +53 -0
  43. data/examples/galena/doc/css/style.css +307 -0
  44. data/examples/galena/doc/file.README.html +108 -0
  45. data/examples/galena/doc/file_list.html +38 -0
  46. data/examples/galena/doc/frames.html +13 -0
  47. data/examples/galena/doc/index.html +108 -0
  48. data/examples/galena/doc/js/app.js +202 -0
  49. data/examples/galena/doc/js/full_list.js +149 -0
  50. data/examples/galena/doc/js/jquery.js +154 -0
  51. data/examples/galena/doc/method_list.html +179 -0
  52. data/examples/galena/doc/top-level-namespace.html +112 -0
  53. data/examples/galena/lib/README.html +33 -0
  54. data/examples/galena/lib/galena.rb +8 -0
  55. data/examples/galena/lib/galena/cli/seed.rb +43 -0
  56. data/examples/galena/lib/galena/migration/filter_shims.rb +43 -0
  57. data/examples/galena/lib/galena/migration/frozen_shims.rb +54 -0
  58. data/examples/galena/lib/galena/seed/defaults.rb +97 -0
  59. data/lib/catissue.rb +26 -0
  60. data/lib/catissue/cli/command.rb +51 -0
  61. data/lib/catissue/cli/example.rb +31 -0
  62. data/lib/catissue/cli/migrate.rb +60 -0
  63. data/lib/catissue/cli/smoke.rb +45 -0
  64. data/lib/catissue/database.rb +451 -0
  65. data/lib/catissue/database/annotation/annotatable_service.rb +25 -0
  66. data/lib/catissue/database/annotation/annotation_service.rb +79 -0
  67. data/lib/catissue/database/annotation/annotator.rb +84 -0
  68. data/lib/catissue/database/annotation/entity_manager.rb +10 -0
  69. data/lib/catissue/database/annotation/integration_service.rb +87 -0
  70. data/lib/catissue/database/controlled_value_finder.rb +43 -0
  71. data/lib/catissue/database/controlled_values.rb +162 -0
  72. data/lib/catissue/domain/abstract_domain_object.rb +8 -0
  73. data/lib/catissue/domain/abstract_position.rb +22 -0
  74. data/lib/catissue/domain/abstract_specimen.rb +288 -0
  75. data/lib/catissue/domain/abstract_specimen_collection_group.rb +25 -0
  76. data/lib/catissue/domain/address.rb +13 -0
  77. data/lib/catissue/domain/cancer_research_group.rb +11 -0
  78. data/lib/catissue/domain/capacity.rb +34 -0
  79. data/lib/catissue/domain/check_in_check_out_event_parameter.rb +19 -0
  80. data/lib/catissue/domain/collection_event_parameters.rb +13 -0
  81. data/lib/catissue/domain/collection_protocol.rb +177 -0
  82. data/lib/catissue/domain/collection_protocol_event.rb +108 -0
  83. data/lib/catissue/domain/collection_protocol_registration.rb +108 -0
  84. data/lib/catissue/domain/consent_tier_response.rb +13 -0
  85. data/lib/catissue/domain/consent_tier_status.rb +29 -0
  86. data/lib/catissue/domain/container.rb +234 -0
  87. data/lib/catissue/domain/container_position.rb +21 -0
  88. data/lib/catissue/domain/container_type.rb +131 -0
  89. data/lib/catissue/domain/department.rb +13 -0
  90. data/lib/catissue/domain/disposal_event_parameters.rb +13 -0
  91. data/lib/catissue/domain/embedded_event_parameters.rb +10 -0
  92. data/lib/catissue/domain/external_identifier.rb +22 -0
  93. data/lib/catissue/domain/frozen_event_parameters.rb +10 -0
  94. data/lib/catissue/domain/institution.rb +13 -0
  95. data/lib/catissue/domain/new_specimen_array_order_item.rb +35 -0
  96. data/lib/catissue/domain/order_details.rb +25 -0
  97. data/lib/catissue/domain/participant.rb +138 -0
  98. data/lib/catissue/domain/participant_medical_identifier.rb +38 -0
  99. data/lib/catissue/domain/password.rb +11 -0
  100. data/lib/catissue/domain/race.rb +11 -0
  101. data/lib/catissue/domain/received_event_parameters.rb +25 -0
  102. data/lib/catissue/domain/scg_event_parameters.rb +11 -0
  103. data/lib/catissue/domain/site.rb +30 -0
  104. data/lib/catissue/domain/specimen.rb +456 -0
  105. data/lib/catissue/domain/specimen_array.rb +47 -0
  106. data/lib/catissue/domain/specimen_array_content.rb +19 -0
  107. data/lib/catissue/domain/specimen_array_type.rb +20 -0
  108. data/lib/catissue/domain/specimen_characteristics.rb +20 -0
  109. data/lib/catissue/domain/specimen_collection_group.rb +412 -0
  110. data/lib/catissue/domain/specimen_event_parameters.rb +111 -0
  111. data/lib/catissue/domain/specimen_position.rb +38 -0
  112. data/lib/catissue/domain/specimen_protocol.rb +34 -0
  113. data/lib/catissue/domain/specimen_requirement.rb +143 -0
  114. data/lib/catissue/domain/storage_container.rb +204 -0
  115. data/lib/catissue/domain/storage_type.rb +82 -0
  116. data/lib/catissue/domain/transfer_event_parameters.rb +53 -0
  117. data/lib/catissue/domain/user.rb +100 -0
  118. data/lib/catissue/extract/command.rb +31 -0
  119. data/lib/catissue/extract/delta.rb +62 -0
  120. data/lib/catissue/extract/extractor.rb +99 -0
  121. data/lib/catissue/migration/migrator.rb +101 -0
  122. data/lib/catissue/migration/shims.rb +108 -0
  123. data/lib/catissue/migration/uniquify.rb +111 -0
  124. data/lib/catissue/resource.rb +84 -0
  125. data/lib/catissue/util/controlled_value.rb +29 -0
  126. data/lib/catissue/util/location.rb +116 -0
  127. data/lib/catissue/util/log.rb +30 -0
  128. data/lib/catissue/util/person.rb +31 -0
  129. data/lib/catissue/util/position.rb +54 -0
  130. data/lib/catissue/util/storable.rb +34 -0
  131. data/lib/catissue/util/storage_type_holder.rb +30 -0
  132. data/lib/catissue/version.rb +7 -0
  133. metadata +212 -0
@@ -0,0 +1,9 @@
1
+ #
2
+ # This is the Galena general example migration configuration file.
3
+ #
4
+
5
+ # The field heading => CaTissue mapping file.
6
+ mapping: examples/galena/conf/migration/general_fields.yaml
7
+
8
+ # The migration target class for each record.
9
+ target: TissueSpecimen
@@ -0,0 +1,30 @@
1
+ # This is the Galena simple example migration field mapping file.
2
+ # Each entry is in the format:
3
+ # heading: paths
4
+ # The heading is the CSV file label in the leading heading record.
5
+ # The paths is a comma-separated list of CaTissue domain object attribute paths specifying
6
+ # how the CSV heading maps to a CaTissue attribute value. Each attribute path is in the format:
7
+ # class.attribute[.attribute]
8
+ # where class is a CaTissue class and attribute is a Ruby accessor method defined in the CaTissue class.
9
+ # The accessor method can be one of the following:
10
+ # * a Java property name, e.g. lastName
11
+ # * the pre-defined Rubyized underscore form of the Java property, e.g. last_name
12
+
13
+ # The collection protocol title for the specimen
14
+ Protocol: CollectionProtocol.short_title
15
+
16
+ # The input MRN field is used for the PMI MRN, CPR PPI and Participant last name.
17
+ # Since the migration source is for a single collection site, the MRN is unique within the protocol.
18
+ # The simple input does not have a Participant name field. It is a useful practice to set the caTissue
19
+ # name to some value, since caTissue uses the name for display and sorting. For want of a better
20
+ # value, the name is set to the MRN.
21
+ MRN: ParticipantMedicalIdentifier.medical_record_number, Participant.last_name
22
+
23
+ # The input SPN field is the SCG SPN value.
24
+ SPN: SpecimenCollectionGroup.surgical_pathology_number
25
+
26
+ # The input Collection Date is the Specimen received timestamp.
27
+ Collection Date: ReceivedEventParameters.timestamp
28
+
29
+ # The input Quantity is the target Specimen initial quantity.
30
+ Quantity: Specimen.initial_quantity
@@ -0,0 +1,7 @@
1
+ # This is the Galena simple example migration configuration file.
2
+
3
+ # The field heading => CaTissue mapping file.
4
+ mapping: examples/galena/conf/migration/simple_fields.yaml
5
+
6
+ # The migration target class for each record.
7
+ target: TissueSpecimen
@@ -0,0 +1,24 @@
1
+ # This is the Galena example tiny migration field mapping file.
2
+ # This example input has all of the fields necessary to create a specimen.
3
+ # The example does not use a shim.
4
+
5
+ # The collection protocol title for the specimen
6
+ Protocol: CollectionProtocol.short_title
7
+
8
+ # The input MRN field is used for the PMI MRN, CPR PPI and Participant last name
9
+ MRN: ParticipantMedicalIdentifier.medical_record_number, Participant.last_name
10
+
11
+ # The input SPN field is the SCG SPN value
12
+ SPN: SpecimenCollectionGroup.surgical_pathology_number
13
+
14
+ # The date the specimen was received
15
+ Received Date: ReceivedEventParameters.timestamp
16
+
17
+ # The specimen label
18
+ Label: TissueSpecimen.label
19
+
20
+ # The type of the specimen
21
+ Type: TissueSpecimen.specimen_type
22
+
23
+ # The specimen amount
24
+ Quantity: TissueSpecimen.initial_quantity
@@ -0,0 +1,9 @@
1
+ #
2
+ # This is the Galena tiny example migration configuration file.
3
+ #
4
+
5
+ # The field heading => CaTissue mapping file.
6
+ mapping: examples/galena/conf/migration/tiny_fields.yaml
7
+
8
+ # The migration target class for each record.
9
+ target: TissueSpecimen
@@ -0,0 +1 @@
1
+ Protocol,MRN,Initials,Frozen?,SPN,Collection Date,Quantity
@@ -0,0 +1 @@
1
+ MRN,SPN,Collection Date,Quantity,Box,X,Y
@@ -0,0 +1 @@
1
+ Protocol,Collection Site,MRN,First Name,Last Name,PPI,SPN,Collection Point,Receiver,Received Timestamp,Collector,Collected Timestamp,Diagnosis,Anatomic Site,Label,Type,Quantity,Box,X,Y
@@ -0,0 +1 @@
1
+ Protocol,PPI,Label,Received Date
@@ -0,0 +1 @@
1
+ Protocol,MRN,SPN,Collection Date,Quantity
@@ -0,0 +1 @@
1
+ Protocol,MRN,SPN,Label,Received Date,Type,Quantity
@@ -0,0 +1,93 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta name="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>Module: CaTissue</title>
7
+ <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
8
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
9
+
10
+ <script type="text/javascript" charset="utf-8">
11
+ relpath = '';
12
+ if (relpath != '') relpath += '/';
13
+ </script>
14
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
15
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
16
+
17
+ </head>
18
+ <body>
19
+ <script type="text/javascript" charset="utf-8">
20
+ if (window.top.frames.main) document.body.className = 'frames';
21
+ </script>
22
+
23
+ <div id="header">
24
+ <div id="menu">
25
+
26
+ <a href="_index.html">Index (C)</a> &raquo;
27
+
28
+
29
+ <span class="title">CaTissue</span>
30
+
31
+
32
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
33
+ </div>
34
+
35
+ <div id="search">
36
+ <a id="class_list_link" href="#">Class List</a>
37
+ <a id="method_list_link" href="#">Method List</a>
38
+ <a id ="file_list_link" href="#">File List</a>
39
+ </div>
40
+
41
+ <div class="clear"></div>
42
+ </div>
43
+
44
+ <iframe id="search_frame"></iframe>
45
+
46
+ <div id="content"><h1>Module: CaTissue
47
+
48
+
49
+
50
+ </h1>
51
+
52
+ <dl class="box">
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+ <dt class="r1 last">Defined in:</dt>
62
+ <dd class="r1 last">examples/galena/lib/galena/migration/filter_shims.rb<span class="defines">,<br />
63
+ examples/galena/lib/galena/migration/frozen_shims.rb</span>
64
+ </dd>
65
+
66
+ </dl>
67
+ <div class="clear"></div>
68
+
69
+ <h2>Defined Under Namespace</h2>
70
+ <p class="children">
71
+
72
+
73
+
74
+
75
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="CaTissue/CollectionProtocolRegistration.html" title="CaTissue::CollectionProtocolRegistration (class)">CollectionProtocolRegistration</a></span>, <span class='object_link'><a href="CaTissue/Participant.html" title="CaTissue::Participant (class)">Participant</a></span>, <span class='object_link'><a href="CaTissue/SpecimenCollectionGroup.html" title="CaTissue::SpecimenCollectionGroup (class)">SpecimenCollectionGroup</a></span>, <span class='object_link'><a href="CaTissue/StorageContainer.html" title="CaTissue::StorageContainer (class)">StorageContainer</a></span>, <span class='object_link'><a href="CaTissue/TissueSpecimen.html" title="CaTissue::TissueSpecimen (class)">TissueSpecimen</a></span>
76
+
77
+
78
+ </p>
79
+
80
+
81
+
82
+
83
+
84
+ </div>
85
+
86
+ <div id="footer">
87
+ Generated on Tue Nov 23 11:38:43 2010 by
88
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
89
+ 0.6.1 (ruby-1.8.6).
90
+ </div>
91
+
92
+ </body>
93
+ </html>
@@ -0,0 +1,181 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta name="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>Class: CaTissue::CollectionProtocolRegistration</title>
7
+ <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
8
+ <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
9
+
10
+ <script type="text/javascript" charset="utf-8">
11
+ relpath = '..';
12
+ if (relpath != '') relpath += '/';
13
+ </script>
14
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
15
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
16
+
17
+ </head>
18
+ <body>
19
+ <script type="text/javascript" charset="utf-8">
20
+ if (window.top.frames.main) document.body.className = 'frames';
21
+ </script>
22
+
23
+ <div id="header">
24
+ <div id="menu">
25
+
26
+ <a href="../_index.html">Index (C)</a> &raquo;
27
+ <span class='title'><span class='object_link'><a href="../CaTissue.html" title="CaTissue (module)">CaTissue</a></span></span>
28
+ &raquo;
29
+ <span class="title">CollectionProtocolRegistration</span>
30
+
31
+
32
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
33
+ </div>
34
+
35
+ <div id="search">
36
+ <a id="class_list_link" href="#">Class List</a>
37
+ <a id="method_list_link" href="#">Method List</a>
38
+ <a id ="file_list_link" href="#">File List</a>
39
+ </div>
40
+
41
+ <div class="clear"></div>
42
+ </div>
43
+
44
+ <iframe id="search_frame"></iframe>
45
+
46
+ <div id="content"><h1>Class: CaTissue::CollectionProtocolRegistration
47
+
48
+
49
+
50
+ </h1>
51
+
52
+ <dl class="box">
53
+
54
+ <dt class="r1">Inherits:</dt>
55
+ <dd class="r1">
56
+ <span class="inheritName">Object</span>
57
+
58
+ <ul class="fullTree">
59
+ <li>Object</li>
60
+
61
+ <li class="next">CaTissue::CollectionProtocolRegistration</li>
62
+
63
+ </ul>
64
+ <a href="#" class="inheritanceTree">show all</a>
65
+
66
+ </dd>
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+ <dt class="r2 last">Defined in:</dt>
77
+ <dd class="r2 last">examples/galena/lib/galena/migration/frozen_shims.rb</dd>
78
+
79
+ </dl>
80
+ <div class="clear"></div>
81
+
82
+
83
+
84
+
85
+
86
+ <h2>
87
+ Instance Method Summary
88
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
89
+ </h2>
90
+
91
+ <ul class="summary">
92
+
93
+ <li class="public ">
94
+ <span class="summary_signature">
95
+
96
+ <a href="#migrate-instance_method" title="#migrate (instance method)">- (Object) <strong>migrate</strong>(row, migrated) </a>
97
+
98
+
99
+
100
+ </span>
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+ <span class="summary_desc"><div class='inline'><p>
110
+ Sets this CPR&#8217;s protocol to the pre-defined
111
+ Galena::Migration::Defaults#protocol.
112
+ </p>
113
+ </div></span>
114
+
115
+ </li>
116
+
117
+
118
+ </ul>
119
+
120
+
121
+
122
+
123
+ <div id="instance_method_details" class="method_details_list">
124
+ <h2>Instance Method Details</h2>
125
+
126
+
127
+ <div class="method_details first">
128
+ <p class="signature first" id="migrate-instance_method">
129
+
130
+ - (<tt>Object</tt>) <strong>migrate</strong>(row, migrated)
131
+
132
+
133
+
134
+ </p><div class="docstring">
135
+ <div class="discussion">
136
+ <p>
137
+ Sets this CPR&#8217;s protocol to the pre-defined
138
+ Galena::Migration::Defaults#protocol.
139
+ </p>
140
+
141
+
142
+ </div>
143
+ </div>
144
+ <div class="tags">
145
+
146
+ </div><table class="source_code">
147
+ <tr>
148
+ <td>
149
+ <pre class="lines">
150
+
151
+
152
+ 22
153
+ 23
154
+ 24
155
+ 25</pre>
156
+ </td>
157
+ <td>
158
+ <pre class="code"><span class="info file"># File 'examples/galena/lib/galena/migration/frozen_shims.rb', line 22</span>
159
+
160
+ <span class='def def kw'>def</span> <span class='migrate identifier id'>migrate</span><span class='lparen token'>(</span><span class='row identifier id'>row</span><span class='comma token'>,</span> <span class='migrated identifier id'>migrated</span><span class='rparen token'>)</span>
161
+ <span class='super super kw'>super</span>
162
+ <span class='self self kw'>self</span><span class='dot token'>.</span><span class='protocol identifier id'>protocol</span> <span class='assign token'>=</span> <span class='Galena constant id'>Galena</span><span class='colon2 op'>::</span><span class='Seed constant id'>Seed</span><span class='dot token'>.</span><span class='defaults identifier id'>defaults</span><span class='dot token'>.</span><span class='protocol identifier id'>protocol</span>
163
+ <span class='end end kw'>end</span>
164
+ </pre>
165
+ </td>
166
+ </tr>
167
+ </table>
168
+ </div>
169
+
170
+ </div>
171
+
172
+ </div>
173
+
174
+ <div id="footer">
175
+ Generated on Tue Nov 23 11:38:43 2010 by
176
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
177
+ 0.6.1 (ruby-1.8.6).
178
+ </div>
179
+
180
+ </body>
181
+ </html>
@@ -0,0 +1,241 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta name="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>Class: CaTissue::Participant</title>
7
+ <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
8
+ <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
9
+
10
+ <script type="text/javascript" charset="utf-8">
11
+ relpath = '..';
12
+ if (relpath != '') relpath += '/';
13
+ </script>
14
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
15
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
16
+
17
+ </head>
18
+ <body>
19
+ <script type="text/javascript" charset="utf-8">
20
+ if (window.top.frames.main) document.body.className = 'frames';
21
+ </script>
22
+
23
+ <div id="header">
24
+ <div id="menu">
25
+
26
+ <a href="../_index.html">Index (P)</a> &raquo;
27
+ <span class='title'><span class='object_link'><a href="../CaTissue.html" title="CaTissue (module)">CaTissue</a></span></span>
28
+ &raquo;
29
+ <span class="title">Participant</span>
30
+
31
+
32
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
33
+ </div>
34
+
35
+ <div id="search">
36
+ <a id="class_list_link" href="#">Class List</a>
37
+ <a id="method_list_link" href="#">Method List</a>
38
+ <a id ="file_list_link" href="#">File List</a>
39
+ </div>
40
+
41
+ <div class="clear"></div>
42
+ </div>
43
+
44
+ <iframe id="search_frame"></iframe>
45
+
46
+ <div id="content"><h1>Class: CaTissue::Participant
47
+
48
+
49
+
50
+ </h1>
51
+
52
+ <dl class="box">
53
+
54
+ <dt class="r1">Inherits:</dt>
55
+ <dd class="r1">
56
+ <span class="inheritName">Object</span>
57
+
58
+ <ul class="fullTree">
59
+ <li>Object</li>
60
+
61
+ <li class="next">CaTissue::Participant</li>
62
+
63
+ </ul>
64
+ <a href="#" class="inheritanceTree">show all</a>
65
+
66
+ </dd>
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+ <dt class="r2 last">Defined in:</dt>
77
+ <dd class="r2 last">examples/galena/lib/galena/migration/filter_shims.rb</dd>
78
+
79
+ </dl>
80
+ <div class="clear"></div>
81
+
82
+
83
+
84
+
85
+
86
+ <h2>
87
+ Instance Method Summary
88
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
89
+ </h2>
90
+
91
+ <ul class="summary">
92
+
93
+ <li class="public ">
94
+ <span class="summary_signature">
95
+
96
+ <a href="#migrate_first_name-instance_method" title="#migrate_first_name (instance method)">- (Object) <strong>migrate_first_name</strong>(value, row) </a>
97
+
98
+
99
+
100
+ </span>
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+ <span class="summary_desc"><div class='inline'><p>
110
+ Extracts the Participant first name from the <tt>Initials</tt> input field.
111
+ </p>
112
+ </div></span>
113
+
114
+ </li>
115
+
116
+
117
+ <li class="public ">
118
+ <span class="summary_signature">
119
+
120
+ <a href="#migrate_last_name-instance_method" title="#migrate_last_name (instance method)">- (Object) <strong>migrate_last_name</strong>(value, row) </a>
121
+
122
+
123
+
124
+ </span>
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+ <span class="summary_desc"><div class='inline'><p>
134
+ Extracts the Participant last name from the <tt>Initials</tt> input field.
135
+ </p>
136
+ </div></span>
137
+
138
+ </li>
139
+
140
+
141
+ </ul>
142
+
143
+
144
+
145
+
146
+ <div id="instance_method_details" class="method_details_list">
147
+ <h2>Instance Method Details</h2>
148
+
149
+
150
+ <div class="method_details first">
151
+ <p class="signature first" id="migrate_first_name-instance_method">
152
+
153
+ - (<tt>Object</tt>) <strong>migrate_first_name</strong>(value, row)
154
+
155
+
156
+
157
+ </p><div class="docstring">
158
+ <div class="discussion">
159
+ <p>
160
+ Extracts the Participant first name from the <tt>Initials</tt> input field.
161
+ </p>
162
+
163
+
164
+ </div>
165
+ </div>
166
+ <div class="tags">
167
+
168
+ </div><table class="source_code">
169
+ <tr>
170
+ <td>
171
+ <pre class="lines">
172
+
173
+
174
+ 10
175
+ 11
176
+ 12</pre>
177
+ </td>
178
+ <td>
179
+ <pre class="code"><span class="info file"># File 'examples/galena/lib/galena/migration/filter_shims.rb', line 10</span>
180
+
181
+ <span class='def def kw'>def</span> <span class='migrate_first_name identifier id'>migrate_first_name</span><span class='lparen token'>(</span><span class='value identifier id'>value</span><span class='comma token'>,</span> <span class='row identifier id'>row</span><span class='rparen token'>)</span>
182
+ <span class='self self kw'>self</span><span class='dot token'>.</span><span class='first_name identifier id'>first_name</span> <span class='assign token'>=</span> <span class='value identifier id'>value</span><span class='lbrack token'>[</span><span class='integer val'>0</span><span class='comma token'>,</span> <span class='integer val'>1</span><span class='rbrack token'>]</span>
183
+ <span class='end end kw'>end</span>
184
+ </pre>
185
+ </td>
186
+ </tr>
187
+ </table>
188
+ </div>
189
+
190
+ <div class="method_details ">
191
+ <p class="signature " id="migrate_last_name-instance_method">
192
+
193
+ - (<tt>Object</tt>) <strong>migrate_last_name</strong>(value, row)
194
+
195
+
196
+
197
+ </p><div class="docstring">
198
+ <div class="discussion">
199
+ <p>
200
+ Extracts the Participant last name from the <tt>Initials</tt> input field.
201
+ </p>
202
+
203
+
204
+ </div>
205
+ </div>
206
+ <div class="tags">
207
+
208
+ </div><table class="source_code">
209
+ <tr>
210
+ <td>
211
+ <pre class="lines">
212
+
213
+
214
+ 15
215
+ 16
216
+ 17</pre>
217
+ </td>
218
+ <td>
219
+ <pre class="code"><span class="info file"># File 'examples/galena/lib/galena/migration/filter_shims.rb', line 15</span>
220
+
221
+ <span class='def def kw'>def</span> <span class='migrate_last_name identifier id'>migrate_last_name</span><span class='lparen token'>(</span><span class='value identifier id'>value</span><span class='comma token'>,</span> <span class='row identifier id'>row</span><span class='rparen token'>)</span>
222
+ <span class='self self kw'>self</span><span class='dot token'>.</span><span class='last_name identifier id'>last_name</span> <span class='assign token'>=</span> <span class='value identifier id'>value</span><span class='lbrack token'>[</span><span class='integer val'>-1</span><span class='comma token'>,</span> <span class='integer val'>1</span><span class='rbrack token'>]</span>
223
+ <span class='end end kw'>end</span>
224
+ </pre>
225
+ </td>
226
+ </tr>
227
+ </table>
228
+ </div>
229
+
230
+ </div>
231
+
232
+ </div>
233
+
234
+ <div id="footer">
235
+ Generated on Tue Nov 23 11:38:43 2010 by
236
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
237
+ 0.6.1 (ruby-1.8.6).
238
+ </div>
239
+
240
+ </body>
241
+ </html>