Class: OpenEHR::RM::DataTypes::Text::TermMapping
- Inherits:
-
Object
- Object
- OpenEHR::RM::DataTypes::Text::TermMapping
- Defined in:
- lib/open_ehr/rm/data_types/text.rb
Instance Attribute Summary collapse
-
#match ⇒ Object
Returns the value of attribute match.
-
#purpose ⇒ Object
Returns the value of attribute purpose.
-
#target ⇒ Object
Returns the value of attribute target.
Class Method Summary collapse
Instance Method Summary collapse
- #broader? ⇒ Boolean
- #equivalent? ⇒ Boolean
-
#initialize(args = {}) ⇒ TermMapping
constructor
A new instance of TermMapping.
- #narrower? ⇒ Boolean
- #unknown? ⇒ Boolean
Constructor Details
#initialize(args = {}) ⇒ TermMapping
Returns a new instance of TermMapping.
13 14 15 16 17 |
# File 'lib/open_ehr/rm/data_types/text.rb', line 13 def initialize(args ={}) self.match = args[:match] self.purpose = args[:purpose] self.target = args[:target] end |
Instance Attribute Details
#match ⇒ Object
Returns the value of attribute match.
11 12 13 |
# File 'lib/open_ehr/rm/data_types/text.rb', line 11 def match @match end |
#purpose ⇒ Object
Returns the value of attribute purpose.
11 12 13 |
# File 'lib/open_ehr/rm/data_types/text.rb', line 11 def purpose @purpose end |
#target ⇒ Object
Returns the value of attribute target.
11 12 13 |
# File 'lib/open_ehr/rm/data_types/text.rb', line 11 def target @target end |
Class Method Details
.is_valid_mach_code?(c) ⇒ Boolean
55 56 57 |
# File 'lib/open_ehr/rm/data_types/text.rb', line 55 def TermMapping.is_valid_mach_code?(c) c == '>' or c == '=' or c == '<' or c == '?' end |
Instance Method Details
#broader? ⇒ Boolean
39 40 41 |
# File 'lib/open_ehr/rm/data_types/text.rb', line 39 def broader? match == '>' end |
#equivalent? ⇒ Boolean
43 44 45 |
# File 'lib/open_ehr/rm/data_types/text.rb', line 43 def equivalent? match == '=' end |
#narrower? ⇒ Boolean
47 48 49 |
# File 'lib/open_ehr/rm/data_types/text.rb', line 47 def narrower? match == '<' end |
#unknown? ⇒ Boolean
51 52 53 |
# File 'lib/open_ehr/rm/data_types/text.rb', line 51 def unknown? match == '?' end |