source: ruby/branches/0.5/spec/lib/open_ehr/rm/support/identification/archetype_id_spec.rb@ 262

Last change on this file since 262 was 262, checked in by KOBAYASHI, Shinji, 15 years ago

archetype id corrected

File size: 1.2 KB
Line 
1require File.dirname(__FILE__) + '/../../../../../spec_helper'
2include OpenEHR::RM::Support::Identification
3
4describe ArchetypeID do
5 before(:each) do
6 @archetype_id = ArchetypeID.new(:value => 'openEHR-EHR-SECTION.physical_examination-prenatal.v2')
7 end
8
9 it 'should be an instance of ArchetypeID' do
10 @archetype_id.should be_an_instance_of ArchetypeID
11 end
12
13 it 's qualified_rm_entity should be openEHR-EHR-SECTION' do
14 @archetype_id.qualified_rm_entity.should == 'openEHR-EHR-SECTION'
15 end
16
17 it 's rm_originator should be openEHR' do
18 @archetype_id.rm_originator.should == 'openEHR'
19 end
20
21 it 's rm_name should be EHR' do
22 @archetype_id.rm_name.should == 'EHR'
23 end
24
25 it 'rm_entity should be SECTION' do
26 @archetype_id.rm_entity.should == 'SECTION'
27 end
28
29 it 's domain_concept should be physical_examination-prenatal' do
30 @archetype_id.domain_concept.should == 'physical_examination-prenatal'
31 end
32
33 it 's concept name should be physical_examination' do
34 @archetype_id.concept_name.should == 'physical_examination'
35 end
36
37 it 's specialisation should be prenatal' do
38 @archetype_id.specialisation.should == 'prenatal'
39 end
40
41 it 's version_id should == v2' do
42 @archetype_id.version_id.should == 'v2'
43 end
44end
Note: See TracBrowser for help on using the repository browser.