Class: CaTissue::SpecimenCharacteristics
- Inherits:
-
Object
- Object
- CaTissue::SpecimenCharacteristics
- Defined in:
- lib/catissue/migration/shims.rb,
lib/catissue/migration/migratable.rb,
lib/catissue/domain/specimen_characteristics.rb
Defined Under Namespace
Classes: TissueSide
Constant Summary collapse
- @@tissue_site_cv_finder =
nil
Class Method Summary collapse
-
.enable_cv_finder ⇒ Object
Enables tissue site controlled value lookup.
-
.tissue_site_cv_finder=(finder) ⇒ Object
Sets this SpecimenCharacteristics tissue site ControlledValueFinder.
Instance Method Summary collapse
-
#migrate_tissue_site(value, row) ⇒ String
The tissue site controlled value.
Class Method Details
.enable_cv_finder ⇒ Object
Enables tissue site controlled value lookup.
83 84 85 |
# File 'lib/catissue/migration/migratable.rb', line 83 def self.enable_cv_finder @site_finder ||= ControlledValueFinder.new(:tissue_site) end |
.tissue_site_cv_finder=(finder) ⇒ Object
Sets this SpecimenCharacteristics tissue site ControlledValueFinder.
38 39 40 |
# File 'lib/catissue/migration/shims.rb', line 38 def self.tissue_site_cv_finder=(finder) @@tissue_site_cv_finder = finder end |
Instance Method Details
#migrate_tissue_site(value, row) ⇒ String
Returns the tissue site controlled value.
55 56 57 |
# File 'lib/catissue/migration/shims.rb', line 55 def migrate_tissue_site(value, row) standard_cv_tissue_site(value) or variant_cv_tissue_site(value) end |