Changeset 158 for ruby/trunk/lib/models/tests/rm/test_data_types.rb
- Timestamp:
- Jul 7, 2009, 3:10:48 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ruby/trunk/lib/models/tests/rm/test_data_types.rb
r153 r158 7 7 def setup 8 8 assert_nothing_raised(Exception){@dv_boolean = OpenEHR::RM::Data_Types::Basic::DV_Boolean.new("TRUE")} 9 @terminology_id = OpenEHR::RM::Support::Identification::Terminology_ID.new('openEHR ','1.0.2')9 @terminology_id = OpenEHR::RM::Support::Identification::Terminology_ID.new('openEHR(1.0.2)') 10 10 @code_phrase = OpenEHR::RM::Data_Types::Text::Code_Phrase.new('PROPOSED', @terminology_id) 11 11 @dv_coded_text = OpenEHR::RM::Data_Types::Text::DV_Coded_Text.new("Blood examination", @code_phrase) … … 99 99 def setup 100 100 assert_nothing_raised(Exception){@dv_text = OpenEHR::RM::Data_Types::Text::DV_Text.new("valid value")} 101 @terminology_id = OpenEHR::RM::Support::Identification::Terminology_ID.new('ICD10' , '')101 @terminology_id = OpenEHR::RM::Support::Identification::Terminology_ID.new('ICD10') 102 102 103 103 assert_nothing_raised(Exception){@code_phrase = OpenEHR::RM::Data_Types::Text::Code_Phrase.new('C92.0', @terminology_id)} … … 166 166 @dv_ordered = OpenEHR::RM::Data_Types::Quantity::DV_Ordered.new } 167 167 assert_nothing_raised(Exception){ 168 terminology = OpenEHR::RM::Support::Identification::Terminology_ID.new('urine' , '')168 terminology = OpenEHR::RM::Support::Identification::Terminology_ID.new('urine') 169 169 code_phrase = OpenEHR::RM::Data_Types::Text::Code_Phrase.new('protein',terminology) 170 170 urinary_protein = OpenEHR::RM::Data_Types::Text::DV_Coded_Text.new('+', code_phrase) … … 214 214 assert @dv_ordered.is_simple? 215 215 assert_raise(NotImplementedError){@dv_ordered<=>1} 216 openehr_terminology_id = OpenEHR::RM::Support::Identification::Terminology_ID.new('openEHR' ,'')216 openehr_terminology_id = OpenEHR::RM::Support::Identification::Terminology_ID.new('openEHR') 217 217 normal_code = OpenEHR::RM::Data_Types::Text::Code_Phrase.new('N', openehr_terminology_id) 218 218 assert_equal 'N', normal_code.code_string … … 232 232 assert_equal 'normal', @reference_range.meaning.value 233 233 assert_equal 1, @reference_range.range.lower.value 234 terminology = OpenEHR::RM::Support::Identification::Terminology_ID.new('urine' , '')234 terminology = OpenEHR::RM::Support::Identification::Terminology_ID.new('urine') 235 235 code_phrase = OpenEHR::RM::Data_Types::Text::Code_Phrase.new('protein',terminology) 236 236 urinary_protein = OpenEHR::RM::Data_Types::Text::DV_Coded_Text.new('++', code_phrase)
Note:
See TracChangeset
for help on using the changeset viewer.