Changeset 167 for ruby/branches/0.5.0/lib/open_ehr/rm/data_types/basic.rb
- Timestamp:
- Aug 6, 2009, 1:20:05 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ruby/branches/0.5.0/lib/open_ehr/rm/data_types/basic.rb
r109 r167 2 2 # http://www.openehr.org/uml/release-1.0.1/Browsable/_9_0_76d0249_1109067591791_562382_3151Report.html 3 3 # Ticket refs #52 4 module OpenE HR4 module OpenEhr 5 5 module RM 6 module Data _Types6 module DataTypes 7 7 module Basic 8 module Canonical _Fragment8 module CanonicalFragment 9 9 end 10 10 11 class Data _Value12 include OpenE HR::RM::Support::Definition::Basic_Definition11 class DataValue 12 include OpenEhr::RM::Support::Definition::BasicDefinition 13 13 end 14 14 15 class D V_Boolean < Data_Value15 class DvBoolean < DataValue 16 16 def initialize(value) 17 17 self.value = value … … 28 28 @value == true 29 29 end 30 end # end of D V_Boolean30 end # end of DvBoolean 31 31 32 class D V_State < Data_Value32 class DvState < DataValue 33 33 attr_reader :value 34 34 … … 48 48 @is_terminal = s 49 49 end 50 end # end of D V_State50 end # end of DvState 51 51 52 class D V_Identifier52 class DvIdentifier 53 53 attr_accessor :issuer, :assigner, :id, :type 54 54 def initialize(assigner, id, issuer, type) … … 63 63 @type = type 64 64 end 65 end #end of D V_Identifier65 end #end of DvIdentifier 66 66 end # end of Basic 67 end # end of Data _types67 end # end of DataTypes 68 68 end # end of RM 69 69 end # end of OpenEHR
Note:
See TracChangeset
for help on using the changeset viewer.