Changeset 167 for ruby/branches/0.0/models/tests/test_archetype_model.rb
- Timestamp:
- Aug 6, 2009, 1:20:05 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ruby/branches/0.0/models/tests/test_archetype_model.rb
r24 r167 5 5 class ArchetypeModelTest < Test::Unit::TestCase 6 6 def setup 7 @archetype = OpenE HR::AM::Archetype::ARCHETYPE.new8 @validity_kind = OpenE HR::AM::Archetype::VALIDITY_KIND.new7 @archetype = OpenEhr::AM::Archetype::ARCHETYPE.new 8 @validity_kind = OpenEhr::AM::Archetype::VALIDITY_KIND.new 9 9 10 @archetype_description = OpenE HR::AM::Archetype::Archetype_Description::ARCHETYPE_DESCRIPTION.new11 @archetype_description_item = OpenE HR::AM::Archetype::Archetype_Description::ARCHETYPE_DESCRIPTION_ITEM.new10 @archetype_description = OpenEhr::AM::Archetype::Archetype_Description::ARCHETYPE_DESCRIPTION.new 11 @archetype_description_item = OpenEhr::AM::Archetype::Archetype_Description::ARCHETYPE_DESCRIPTION_ITEM.new 12 12 end 13 13 14 14 def test_init 15 assert_instance_of OpenE HR::AM::Archetype::ARCHETYPE, @archetype16 assert_instance_of OpenE HR::AM::Archetype::VALIDITY_KIND, @validity_kind17 assert_instance_of OpenE HR::AM::Archetype::Archetype_Description::ARCHETYPE_DESCRIPTION, @archetype_description18 assert_instance_of OpenE HR::AM::Archetype::Archetype_Description::ARCHETYPE_DESCRIPTION_ITEM, @archetype_description_item19 assert_instance_of OpenE HR::AM::Archetype::ARCHETYPE, @archetype15 assert_instance_of OpenEhr::AM::Archetype::ARCHETYPE, @archetype 16 assert_instance_of OpenEhr::AM::Archetype::VALIDITY_KIND, @validity_kind 17 assert_instance_of OpenEhr::AM::Archetype::Archetype_Description::ARCHETYPE_DESCRIPTION, @archetype_description 18 assert_instance_of OpenEhr::AM::Archetype::Archetype_Description::ARCHETYPE_DESCRIPTION_ITEM, @archetype_description_item 19 assert_instance_of OpenEhr::AM::Archetype::ARCHETYPE, @archetype 20 20 end 21 21 22 22 def test_create 23 archetype_instance = OpenE HR::AM::Archetype::ARCHETYPE.create() do |archetype|23 archetype_instance = OpenEhr::AM::Archetype::ARCHETYPE.create() do |archetype| 24 24 archetype.adl_version = '1.4' 25 25 end 26 26 27 assert_instance_of OpenE HR::AM::Archetype::ARCHETYPE, archetype_instance27 assert_instance_of OpenEhr::AM::Archetype::ARCHETYPE, archetype_instance 28 28 end 29 29 end … … 31 31 class ArchetypeModelConstraintTest < Test::Unit::TestCase 32 32 def setup 33 @archetype_constraint = OpenE HR::AM::Archetype::Constraint_Model::ARCHETYPE_CONSTRAINT.new34 @cardinality = OpenE HR::AM::Archetype::Constraint_Model::CARDINALITY.new33 @archetype_constraint = OpenEhr::AM::Archetype::Constraint_Model::ARCHETYPE_CONSTRAINT.new 34 @cardinality = OpenEhr::AM::Archetype::Constraint_Model::CARDINALITY.new 35 35 36 @archetype_constraint = OpenE HR::AM::Archetype::Constraint_Model::ARCHETYPE_CONSTRAINT.new37 @c_object = OpenE HR::AM::Archetype::Constraint_Model::C_OBJECT.new38 @c_defined_object = OpenE HR::AM::Archetype::Constraint_Model::C_DEFINED_OBJECT.new39 @c_attribute = OpenE HR::AM::Archetype::Constraint_Model::C_ATTRIBUTE.new40 @c_single_attribute = OpenE HR::AM::Archetype::Constraint_Model::C_SINGLE_ATTRIBUTE.new41 @c_multiple_attribute = OpenE HR::AM::Archetype::Constraint_Model::C_MULTIPLE_ATTRIBUTE.new(:rm_attribute_name => 'attribute_name', :cardinality => @cardinality)42 @c_primitive_object = OpenE HR::AM::Archetype::Constraint_Model::C_PRIMITIVE_OBJECT.new43 @c_reference_object = OpenE HR::AM::Archetype::Constraint_Model::C_REFERENCE_OBJECT.new44 @archetype_internal_ref = OpenE HR::AM::Archetype::Constraint_Model::ARCHETYPE_INTERNAL_REF.new45 @archetype_slot = OpenE HR::AM::Archetype::Constraint_Model::ARCHETYPE_SLOT.new46 @constraint_ref = OpenE HR::AM::Archetype::Constraint_Model::CONSTRAINT_REF.new47 @c_domain_type = OpenE HR::AM::Archetype::Constraint_Model::C_DOMAIN_TYPE.new48 @c_complex_object = OpenE HR::AM::Archetype::Constraint_Model::C_COMPLEX_OBJECT.new(:attributes => [@c_single_attribute])36 @archetype_constraint = OpenEhr::AM::Archetype::Constraint_Model::ARCHETYPE_CONSTRAINT.new 37 @c_object = OpenEhr::AM::Archetype::Constraint_Model::C_OBJECT.new 38 @c_defined_object = OpenEhr::AM::Archetype::Constraint_Model::C_DEFINED_OBJECT.new 39 @c_attribute = OpenEhr::AM::Archetype::Constraint_Model::C_ATTRIBUTE.new 40 @c_single_attribute = OpenEhr::AM::Archetype::Constraint_Model::C_SINGLE_ATTRIBUTE.new 41 @c_multiple_attribute = OpenEhr::AM::Archetype::Constraint_Model::C_MULTIPLE_ATTRIBUTE.new(:rm_attribute_name => 'attribute_name', :cardinality => @cardinality) 42 @c_primitive_object = OpenEhr::AM::Archetype::Constraint_Model::C_PRIMITIVE_OBJECT.new 43 @c_reference_object = OpenEhr::AM::Archetype::Constraint_Model::C_REFERENCE_OBJECT.new 44 @archetype_internal_ref = OpenEhr::AM::Archetype::Constraint_Model::ARCHETYPE_INTERNAL_REF.new 45 @archetype_slot = OpenEhr::AM::Archetype::Constraint_Model::ARCHETYPE_SLOT.new 46 @constraint_ref = OpenEhr::AM::Archetype::Constraint_Model::CONSTRAINT_REF.new 47 @c_domain_type = OpenEhr::AM::Archetype::Constraint_Model::C_DOMAIN_TYPE.new 48 @c_complex_object = OpenEhr::AM::Archetype::Constraint_Model::C_COMPLEX_OBJECT.new(:attributes => [@c_single_attribute]) 49 49 end 50 50 51 51 def test_init 52 assert_instance_of OpenE HR::AM::Archetype::Constraint_Model::ARCHETYPE_CONSTRAINT, @archetype_constraint53 assert_instance_of OpenE HR::AM::Archetype::Constraint_Model::C_OBJECT, @c_object54 assert_instance_of OpenE HR::AM::Archetype::Constraint_Model::C_DEFINED_OBJECT, @c_defined_object55 assert_instance_of OpenE HR::AM::Archetype::Constraint_Model::C_ATTRIBUTE, @c_attribute56 assert_instance_of OpenE HR::AM::Archetype::Constraint_Model::C_SINGLE_ATTRIBUTE, @c_single_attribute57 assert_instance_of OpenE HR::AM::Archetype::Constraint_Model::C_MULTIPLE_ATTRIBUTE, @c_multiple_attribute52 assert_instance_of OpenEhr::AM::Archetype::Constraint_Model::ARCHETYPE_CONSTRAINT, @archetype_constraint 53 assert_instance_of OpenEhr::AM::Archetype::Constraint_Model::C_OBJECT, @c_object 54 assert_instance_of OpenEhr::AM::Archetype::Constraint_Model::C_DEFINED_OBJECT, @c_defined_object 55 assert_instance_of OpenEhr::AM::Archetype::Constraint_Model::C_ATTRIBUTE, @c_attribute 56 assert_instance_of OpenEhr::AM::Archetype::Constraint_Model::C_SINGLE_ATTRIBUTE, @c_single_attribute 57 assert_instance_of OpenEhr::AM::Archetype::Constraint_Model::C_MULTIPLE_ATTRIBUTE, @c_multiple_attribute 58 58 assert_equal 'attribute_name', @c_multiple_attribute.rm_attribute_name 59 assert_instance_of OpenE HR::AM::Archetype::Constraint_Model::CARDINALITY, @c_multiple_attribute.cardinality60 assert_instance_of OpenE HR::AM::Archetype::Constraint_Model::C_PRIMITIVE_OBJECT, @c_primitive_object61 assert_instance_of OpenE HR::AM::Archetype::Constraint_Model::C_REFERENCE_OBJECT, @c_reference_object62 assert_instance_of OpenE HR::AM::Archetype::Constraint_Model::ARCHETYPE_INTERNAL_REF, @archetype_internal_ref63 assert_instance_of OpenE HR::AM::Archetype::Constraint_Model::ARCHETYPE_SLOT, @archetype_slot64 assert_instance_of OpenE HR::AM::Archetype::Constraint_Model::CONSTRAINT_REF, @constraint_ref65 assert_instance_of OpenE HR::AM::Archetype::Constraint_Model::C_DOMAIN_TYPE, @c_domain_type66 assert_instance_of OpenE HR::AM::Archetype::Constraint_Model::C_COMPLEX_OBJECT, @c_complex_object59 assert_instance_of OpenEhr::AM::Archetype::Constraint_Model::CARDINALITY, @c_multiple_attribute.cardinality 60 assert_instance_of OpenEhr::AM::Archetype::Constraint_Model::C_PRIMITIVE_OBJECT, @c_primitive_object 61 assert_instance_of OpenEhr::AM::Archetype::Constraint_Model::C_REFERENCE_OBJECT, @c_reference_object 62 assert_instance_of OpenEhr::AM::Archetype::Constraint_Model::ARCHETYPE_INTERNAL_REF, @archetype_internal_ref 63 assert_instance_of OpenEhr::AM::Archetype::Constraint_Model::ARCHETYPE_SLOT, @archetype_slot 64 assert_instance_of OpenEhr::AM::Archetype::Constraint_Model::CONSTRAINT_REF, @constraint_ref 65 assert_instance_of OpenEhr::AM::Archetype::Constraint_Model::C_DOMAIN_TYPE, @c_domain_type 66 assert_instance_of OpenEhr::AM::Archetype::Constraint_Model::C_COMPLEX_OBJECT, @c_complex_object 67 67 assert_instance_of Array, @c_complex_object.attributes 68 assert_instance_of OpenE HR::AM::Archetype::Constraint_Model::ARCHETYPE_CONSTRAINT, @archetype_constraint69 assert_instance_of OpenE HR::AM::Archetype::Constraint_Model::CARDINALITY, @cardinality68 assert_instance_of OpenEhr::AM::Archetype::Constraint_Model::ARCHETYPE_CONSTRAINT, @archetype_constraint 69 assert_instance_of OpenEhr::AM::Archetype::Constraint_Model::CARDINALITY, @cardinality 70 70 end 71 71 72 72 def test_create 73 c_complex_object = OpenE HR::AM::Archetype::Constraint_Model::C_COMPLEX_OBJECT.create(:node_id => 'test_node',73 c_complex_object = OpenEhr::AM::Archetype::Constraint_Model::C_COMPLEX_OBJECT.create(:node_id => 'test_node', 74 74 :attributes => [1,2], 75 75 :assumed_value => Array 76 76 ) 77 assert_instance_of OpenE HR::AM::Archetype::Constraint_Model::C_COMPLEX_OBJECT, c_complex_object77 assert_instance_of OpenEhr::AM::Archetype::Constraint_Model::C_COMPLEX_OBJECT, c_complex_object 78 78 assert_equal 'test_node', c_complex_object.node_id 79 79 end … … 82 82 class ArchetypeModelPrimitiveTest < Test::Unit::TestCase 83 83 def setup 84 @c_primitive = OpenE HR::AM::Archetype::Constraint_Model::Primitive::C_PRIMITIVE.new85 @c_boolean = OpenE HR::AM::Archetype::Constraint_Model::Primitive::C_BOOLEAN.new(:true_valid => true,84 @c_primitive = OpenEhr::AM::Archetype::Constraint_Model::Primitive::C_PRIMITIVE.new 85 @c_boolean = OpenEhr::AM::Archetype::Constraint_Model::Primitive::C_BOOLEAN.new(:true_valid => true, 86 86 :false_valid => true, 87 87 :assumed_value => true) 88 @c_string = OpenE HR::AM::Archetype::Constraint_Model::Primitive::C_STRING.new89 @c_integer = OpenE HR::AM::Archetype::Constraint_Model::Primitive::C_INTEGER.new90 @c_real = OpenE HR::AM::Archetype::Constraint_Model::Primitive::C_REAL.new91 @c_time = OpenE HR::AM::Archetype::Constraint_Model::Primitive::C_TIME.new92 @c_date = OpenE HR::AM::Archetype::Constraint_Model::Primitive::C_DATE.new93 @c_date_time = OpenE HR::AM::Archetype::Constraint_Model::Primitive::C_DATE_TIME.new94 @c_duration = OpenE HR::AM::Archetype::Constraint_Model::Primitive::C_DURATION.new88 @c_string = OpenEhr::AM::Archetype::Constraint_Model::Primitive::C_STRING.new 89 @c_integer = OpenEhr::AM::Archetype::Constraint_Model::Primitive::C_INTEGER.new 90 @c_real = OpenEhr::AM::Archetype::Constraint_Model::Primitive::C_REAL.new 91 @c_time = OpenEhr::AM::Archetype::Constraint_Model::Primitive::C_TIME.new 92 @c_date = OpenEhr::AM::Archetype::Constraint_Model::Primitive::C_DATE.new 93 @c_date_time = OpenEhr::AM::Archetype::Constraint_Model::Primitive::C_DATE_TIME.new 94 @c_duration = OpenEhr::AM::Archetype::Constraint_Model::Primitive::C_DURATION.new 95 95 end 96 96 97 97 def test_init 98 assert_instance_of OpenE HR::AM::Archetype::Constraint_Model::Primitive::C_PRIMITIVE, @c_primitive99 assert_instance_of OpenE HR::AM::Archetype::Constraint_Model::Primitive::C_BOOLEAN, @c_boolean100 assert_instance_of OpenE HR::AM::Archetype::Constraint_Model::Primitive::C_STRING, @c_string101 assert_instance_of OpenE HR::AM::Archetype::Constraint_Model::Primitive::C_INTEGER, @c_integer102 assert_instance_of OpenE HR::AM::Archetype::Constraint_Model::Primitive::C_REAL, @c_real103 assert_instance_of OpenE HR::AM::Archetype::Constraint_Model::Primitive::C_TIME, @c_time104 assert_instance_of OpenE HR::AM::Archetype::Constraint_Model::Primitive::C_DATE, @c_date105 assert_instance_of OpenE HR::AM::Archetype::Constraint_Model::Primitive::C_DATE_TIME, @c_date_time106 assert_instance_of OpenE HR::AM::Archetype::Constraint_Model::Primitive::C_DURATION, @c_duration98 assert_instance_of OpenEhr::AM::Archetype::Constraint_Model::Primitive::C_PRIMITIVE, @c_primitive 99 assert_instance_of OpenEhr::AM::Archetype::Constraint_Model::Primitive::C_BOOLEAN, @c_boolean 100 assert_instance_of OpenEhr::AM::Archetype::Constraint_Model::Primitive::C_STRING, @c_string 101 assert_instance_of OpenEhr::AM::Archetype::Constraint_Model::Primitive::C_INTEGER, @c_integer 102 assert_instance_of OpenEhr::AM::Archetype::Constraint_Model::Primitive::C_REAL, @c_real 103 assert_instance_of OpenEhr::AM::Archetype::Constraint_Model::Primitive::C_TIME, @c_time 104 assert_instance_of OpenEhr::AM::Archetype::Constraint_Model::Primitive::C_DATE, @c_date 105 assert_instance_of OpenEhr::AM::Archetype::Constraint_Model::Primitive::C_DATE_TIME, @c_date_time 106 assert_instance_of OpenEhr::AM::Archetype::Constraint_Model::Primitive::C_DURATION, @c_duration 107 107 end 108 108 … … 119 119 end 120 120 assert_raise(ArgumentError) do 121 OpenE HR::AM::Archetype::Constraint_Model::Primitive::C_BOOLEAN.new(:true_valid =>false,121 OpenEhr::AM::Archetype::Constraint_Model::Primitive::C_BOOLEAN.new(:true_valid =>false, 122 122 :false_valid => false, 123 123 :assumed_value => false) … … 129 129 class ArchetypeModelOntologyTest < Test::Unit::TestCase 130 130 def setup 131 @archetype_ontology = OpenE HR::AM::Archetype::Ontology::ARCHETYPE_ONTOLOGY.new132 @archetype_term = OpenE HR::AM::Archetype::Ontology::ARCHETYPE_TERM.new(:code => '', :items => '')131 @archetype_ontology = OpenEhr::AM::Archetype::Ontology::ARCHETYPE_ONTOLOGY.new 132 @archetype_term = OpenEhr::AM::Archetype::Ontology::ARCHETYPE_TERM.new(:code => '', :items => '') 133 133 end 134 134 135 135 def test_init 136 assert_instance_of OpenE HR::AM::Archetype::Ontology::ARCHETYPE_ONTOLOGY, @archetype_ontology137 assert_instance_of OpenE HR::AM::Archetype::Ontology::ARCHETYPE_TERM, @archetype_term136 assert_instance_of OpenEhr::AM::Archetype::Ontology::ARCHETYPE_ONTOLOGY, @archetype_ontology 137 assert_instance_of OpenEhr::AM::Archetype::Ontology::ARCHETYPE_TERM, @archetype_term 138 138 end 139 139 end … … 141 141 class ArchetypeModelAssertionTest < Test::Unit::TestCase 142 142 def setup 143 @assertion = OpenE HR::AM::Archetype::Assertion::ASSERTION.new144 @assertion_variable = OpenE HR::AM::Archetype::Assertion::ASSERTION_VARIABLE.new145 @operator_kind = OpenE HR::AM::Archetype::Assertion::OPERATOR_KIND.new146 @expr_item = OpenE HR::AM::Archetype::Assertion::EXPR_ITEM.new147 @expr_leaf = OpenE HR::AM::Archetype::Assertion::EXPR_LEAF.new148 @expr_operator = OpenE HR::AM::Archetype::Assertion::EXPR_OPERATOR.new149 @expr_unary_operator = OpenE HR::AM::Archetype::Assertion::EXPR_UNARY_OPERATOR.new150 @expr_binary_operator = OpenE HR::AM::Archetype::Assertion::EXPR_BINARY_OPERATOR.new143 @assertion = OpenEhr::AM::Archetype::Assertion::ASSERTION.new 144 @assertion_variable = OpenEhr::AM::Archetype::Assertion::ASSERTION_VARIABLE.new 145 @operator_kind = OpenEhr::AM::Archetype::Assertion::OPERATOR_KIND.new 146 @expr_item = OpenEhr::AM::Archetype::Assertion::EXPR_ITEM.new 147 @expr_leaf = OpenEhr::AM::Archetype::Assertion::EXPR_LEAF.new 148 @expr_operator = OpenEhr::AM::Archetype::Assertion::EXPR_OPERATOR.new 149 @expr_unary_operator = OpenEhr::AM::Archetype::Assertion::EXPR_UNARY_OPERATOR.new 150 @expr_binary_operator = OpenEhr::AM::Archetype::Assertion::EXPR_BINARY_OPERATOR.new 151 151 end 152 152 153 153 def test_init 154 assert_instance_of OpenE HR::AM::Archetype::Assertion::ASSERTION, @assertion155 assert_instance_of OpenE HR::AM::Archetype::Assertion::ASSERTION_VARIABLE, @assertion_variable156 assert_instance_of OpenE HR::AM::Archetype::Assertion::OPERATOR_KIND, @operator_kind157 assert_instance_of OpenE HR::AM::Archetype::Assertion::EXPR_ITEM, @expr_item158 assert_instance_of OpenE HR::AM::Archetype::Assertion::EXPR_LEAF, @expr_leaf159 assert_instance_of OpenE HR::AM::Archetype::Assertion::EXPR_OPERATOR, @expr_operator160 assert_instance_of OpenE HR::AM::Archetype::Assertion::EXPR_UNARY_OPERATOR, @expr_unary_operator161 assert_instance_of OpenE HR::AM::Archetype::Assertion::EXPR_BINARY_OPERATOR, @expr_binary_operator154 assert_instance_of OpenEhr::AM::Archetype::Assertion::ASSERTION, @assertion 155 assert_instance_of OpenEhr::AM::Archetype::Assertion::ASSERTION_VARIABLE, @assertion_variable 156 assert_instance_of OpenEhr::AM::Archetype::Assertion::OPERATOR_KIND, @operator_kind 157 assert_instance_of OpenEhr::AM::Archetype::Assertion::EXPR_ITEM, @expr_item 158 assert_instance_of OpenEhr::AM::Archetype::Assertion::EXPR_LEAF, @expr_leaf 159 assert_instance_of OpenEhr::AM::Archetype::Assertion::EXPR_OPERATOR, @expr_operator 160 assert_instance_of OpenEhr::AM::Archetype::Assertion::EXPR_UNARY_OPERATOR, @expr_unary_operator 161 assert_instance_of OpenEhr::AM::Archetype::Assertion::EXPR_BINARY_OPERATOR, @expr_binary_operator 162 162 end 163 163 end … … 165 165 class ArchetypeModelProfileTest < Test::Unit::TestCase 166 166 def setup 167 @c_dv_state = OpenE HR::AM::OpenEHR_Profile::Data_Types::Basic::C_DV_STATE.new168 @state_machine = OpenE HR::AM::OpenEHR_Profile::Data_Types::Basic::STATE_MACHINE.new169 @state = OpenE HR::AM::OpenEHR_Profile::Data_Types::Basic::STATE.new170 @terminal_state = OpenE HR::AM::OpenEHR_Profile::Data_Types::Basic::TERMINAL_STATE.new171 @non_terminal_state = OpenE HR::AM::OpenEHR_Profile::Data_Types::Basic::NON_TERMINAL_STATE.new172 @transition = OpenE HR::AM::OpenEHR_Profile::Data_Types::Basic::TRANSITION.new167 @c_dv_state = OpenEhr::AM::OpenEHR_Profile::DataTypes::Basic::C_DV_STATE.new 168 @state_machine = OpenEhr::AM::OpenEHR_Profile::DataTypes::Basic::STATE_MACHINE.new 169 @state = OpenEhr::AM::OpenEHR_Profile::DataTypes::Basic::STATE.new 170 @terminal_state = OpenEhr::AM::OpenEHR_Profile::DataTypes::Basic::TERMINAL_STATE.new 171 @non_terminal_state = OpenEhr::AM::OpenEHR_Profile::DataTypes::Basic::NON_TERMINAL_STATE.new 172 @transition = OpenEhr::AM::OpenEHR_Profile::DataTypes::Basic::TRANSITION.new 173 173 174 @c_code_phase = OpenE HR::AM::OpenEHR_Profile::Data_Types::Text::C_CODE_PHASE.new174 @c_code_phase = OpenEhr::AM::OpenEHR_Profile::DataTypes::Text::C_CODE_PHASE.new 175 175 176 @c_dv_quantity = OpenE HR::AM::OpenEHR_Profile::Data_Types::Quantity::C_DV_QUANTITY.new177 @c_dv_ordinal = OpenE HR::AM::OpenEHR_Profile::Data_Types::Quantity::C_DV_ORDINAL.new178 @c_quantity_item = OpenE HR::AM::OpenEHR_Profile::Data_Types::Quantity::C_QUANTITY_ITEM.new176 @c_dv_quantity = OpenEhr::AM::OpenEHR_Profile::DataTypes::Quantity::C_DV_QUANTITY.new 177 @c_dv_ordinal = OpenEhr::AM::OpenEHR_Profile::DataTypes::Quantity::C_DV_ORDINAL.new 178 @c_quantity_item = OpenEhr::AM::OpenEHR_Profile::DataTypes::Quantity::C_QUANTITY_ITEM.new 179 179 end 180 180 181 181 def test_init 182 assert_instance_of OpenE HR::AM::OpenEHR_Profile::Data_Types::Basic::C_DV_STATE, @c_dv_state183 assert_instance_of OpenE HR::AM::OpenEHR_Profile::Data_Types::Basic::STATE_MACHINE, @state_machine184 assert_instance_of OpenE HR::AM::OpenEHR_Profile::Data_Types::Basic::STATE, @state185 assert_instance_of OpenE HR::AM::OpenEHR_Profile::Data_Types::Basic::TERMINAL_STATE, @terminal_state186 assert_instance_of OpenE HR::AM::OpenEHR_Profile::Data_Types::Basic::NON_TERMINAL_STATE, @non_terminal_state187 assert_instance_of OpenE HR::AM::OpenEHR_Profile::Data_Types::Basic::TRANSITION, @transition188 assert_instance_of OpenE HR::AM::OpenEHR_Profile::Data_Types::Text::C_CODE_PHASE, @c_code_phase189 assert_instance_of OpenE HR::AM::OpenEHR_Profile::Data_Types::Quantity::C_DV_QUANTITY, @c_dv_quantity190 assert_instance_of OpenE HR::AM::OpenEHR_Profile::Data_Types::Quantity::C_DV_ORDINAL, @c_dv_ordinal191 assert_instance_of OpenE HR::AM::OpenEHR_Profile::Data_Types::Quantity::C_QUANTITY_ITEM, @c_quantity_item182 assert_instance_of OpenEhr::AM::OpenEHR_Profile::DataTypes::Basic::C_DV_STATE, @c_dv_state 183 assert_instance_of OpenEhr::AM::OpenEHR_Profile::DataTypes::Basic::STATE_MACHINE, @state_machine 184 assert_instance_of OpenEhr::AM::OpenEHR_Profile::DataTypes::Basic::STATE, @state 185 assert_instance_of OpenEhr::AM::OpenEHR_Profile::DataTypes::Basic::TERMINAL_STATE, @terminal_state 186 assert_instance_of OpenEhr::AM::OpenEHR_Profile::DataTypes::Basic::NON_TERMINAL_STATE, @non_terminal_state 187 assert_instance_of OpenEhr::AM::OpenEHR_Profile::DataTypes::Basic::TRANSITION, @transition 188 assert_instance_of OpenEhr::AM::OpenEHR_Profile::DataTypes::Text::C_CODE_PHASE, @c_code_phase 189 assert_instance_of OpenEhr::AM::OpenEHR_Profile::DataTypes::Quantity::C_DV_QUANTITY, @c_dv_quantity 190 assert_instance_of OpenEhr::AM::OpenEHR_Profile::DataTypes::Quantity::C_DV_ORDINAL, @c_dv_ordinal 191 assert_instance_of OpenEhr::AM::OpenEHR_Profile::DataTypes::Quantity::C_QUANTITY_ITEM, @c_quantity_item 192 192 end 193 193 end
Note:
See TracChangeset
for help on using the changeset viewer.