Changeset 86 for ruby/trunk


Ignore:
Timestamp:
Jul 20, 2008, 8:46:23 PM (16 years ago)
Author:
KOBAYASHI, Shinji
Message:

refs #45

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
    14module OpenEHR
    25  module RM
    36    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
    78        attr_reader :details, :reverse_relationships, :uid
    89        attr_reader :idetities, :contacts, :relationships
     
    5657        end
    5758      end
    58       class ACTOR < PARTY
     59      class Actor < Party
    5960        LEAGAL_IDENTITY = 'leagal identity'
    6061        attr_reader :languages, :rules
     
    101102          @values = values
    102103      end
    103       class CONTACT < OpenEHR::RM::Common::Archetyped::Locatable
     104      class Contact < OpenEHR::RM::Common::Archetyped::Locatable
    104105        attr_accessor :time_validity
    105106        attr_reader :addresses
     
    131132        end
    132133      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
    133150    end # of Demographic
    134151  end # of RM
  • ruby/trunk/lib/models/tests/test_reference_model.rb

    r66 r86  
    1818    @dv_coded_text = OpenEHR::RM::Data_Types::Text::DV_Coded_Text.new("valid value", "AT1000")
    1919    @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
    2024  end
    2125 
     
    3034    assert_instance_of OpenEHR::RM::Data_Types::Text::DV_Text, @dv_text
    3135    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
    3240  end
    3341
Note: See TracChangeset for help on using the changeset viewer.