Changeset 86 for ruby/trunk
- Timestamp:
- Jul 20, 2008, 8:46:23 PM (16 years ago)
- Location:
- ruby/trunk/lib/models
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ruby/trunk/lib/models/rm/demographic.rb
r51 r86 1 # This module is based on the UML, 2 # http://www.openehr.org/uml/release-1.0.1/Browsable/_9_5_76d0249_1118674798473_6021_0Report.html 3 # Ticket refs #45 1 4 module OpenEHR 2 5 module RM 3 6 module Demogrphic 4 # this class is based on the UML, 5 # http://www.openehr.org/svn/specification/TAGS/Release-1.0.1/publishing/architecture/computable/UML/uml_start_view.html 6 class PARTY < OpenEHR::RM::Common::Archetyped::Locatable 7 class Party < OpenEHR::RM::Common::Archetyped::Locatable 7 8 attr_reader :details, :reverse_relationships, :uid 8 9 attr_reader :idetities, :contacts, :relationships … … 56 57 end 57 58 end 58 class A CTOR < PARTY59 class Actor < Party 59 60 LEAGAL_IDENTITY = 'leagal identity' 60 61 attr_reader :languages, :rules … … 101 102 @values = values 102 103 end 103 class C ONTACT< OpenEHR::RM::Common::Archetyped::Locatable104 class Contact < OpenEHR::RM::Common::Archetyped::Locatable 104 105 attr_accessor :time_validity 105 106 attr_reader :addresses … … 131 132 end 132 133 end 134 135 class Agent < Actor 136 137 end 138 139 class Organisation < Actor 140 141 end 142 143 class Person < Actor 144 145 end 146 147 class Group < Actor 148 149 end 133 150 end # of Demographic 134 151 end # of RM -
ruby/trunk/lib/models/tests/test_reference_model.rb
r66 r86 18 18 @dv_coded_text = OpenEHR::RM::Data_Types::Text::DV_Coded_Text.new("valid value", "AT1000") 19 19 @dv_paragraph = OpenEHR::RM::Data_Types::Text::DV_Paragraph.new(Set.new(["test1", "test2"])) 20 @agent = OpenEHR::RM::Demogrphic::Agent.new 21 @organisation = OpenEHR::RM::Demogrphic::Organisation.new 22 @person = OpenEHR::RM::Demogrphic::Person.new 23 @group = OpenEHR::RM::Demogrphic::Group.new 20 24 end 21 25 … … 30 34 assert_instance_of OpenEHR::RM::Data_Types::Text::DV_Text, @dv_text 31 35 assert_instance_of OpenEHR::RM::Data_Types::Text::DV_Coded_Text, @dv_coded_text 36 assert_instance_of OpenEHR::RM::Demogrphic::Agent, @agent 37 assert_instance_of OpenEHR::RM::Demogrphic::Organisation, @organisation 38 assert_instance_of OpenEHR::RM::Demogrphic::Person, @person 39 assert_instance_of OpenEHR::RM::Demogrphic::Group, @group 32 40 end 33 41
Note:
See TracChangeset
for help on using the changeset viewer.