open_ehr 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (253) hide show
  1. data/.document +5 -0
  2. data/Gemfile +14 -0
  3. data/Gemfile.lock +43 -0
  4. data/Guardfile +9 -0
  5. data/History.txt +4 -0
  6. data/Manifest.txt +16 -0
  7. data/PostInstall.txt +9 -0
  8. data/README.rdoc +66 -0
  9. data/Rakefile +49 -0
  10. data/VERSION +1 -0
  11. data/doc/README_rdoc.html +148 -0
  12. data/doc/created.rid +2 -0
  13. data/doc/images/brick.png +0 -0
  14. data/doc/images/brick_link.png +0 -0
  15. data/doc/images/bug.png +0 -0
  16. data/doc/images/bullet_black.png +0 -0
  17. data/doc/images/bullet_toggle_minus.png +0 -0
  18. data/doc/images/bullet_toggle_plus.png +0 -0
  19. data/doc/images/date.png +0 -0
  20. data/doc/images/find.png +0 -0
  21. data/doc/images/loadingAnimation.gif +0 -0
  22. data/doc/images/macFFBgHack.png +0 -0
  23. data/doc/images/package.png +0 -0
  24. data/doc/images/page_green.png +0 -0
  25. data/doc/images/page_white_text.png +0 -0
  26. data/doc/images/page_white_width.png +0 -0
  27. data/doc/images/plugin.png +0 -0
  28. data/doc/images/ruby.png +0 -0
  29. data/doc/images/tag_green.png +0 -0
  30. data/doc/images/wrench.png +0 -0
  31. data/doc/images/wrench_orange.png +0 -0
  32. data/doc/images/zoom.png +0 -0
  33. data/doc/index.html +54 -0
  34. data/doc/js/darkfish.js +116 -0
  35. data/doc/js/jquery.js +32 -0
  36. data/doc/js/quicksearch.js +114 -0
  37. data/doc/js/thickbox-compressed.js +10 -0
  38. data/doc/openehr_terminology.xml +2700 -0
  39. data/doc/rdoc.css +706 -0
  40. data/lib/#open_ehr.rb# +11 -0
  41. data/lib/open_ehr/am/archetype/archetype_description/archetype_description.rb +21 -0
  42. data/lib/open_ehr/am/archetype/assertion.rb +190 -0
  43. data/lib/open_ehr/am/archetype/constraint_model/primitive.rb +296 -0
  44. data/lib/open_ehr/am/archetype/constraint_model.rb +340 -0
  45. data/lib/open_ehr/am/archetype/ontology.rb +97 -0
  46. data/lib/open_ehr/am/archetype.rb +134 -0
  47. data/lib/open_ehr/am/open_ehr_profile/data_types/basic.rb +29 -0
  48. data/lib/open_ehr/am/open_ehr_profile/data_types/quantity.rb +19 -0
  49. data/lib/open_ehr/am/open_ehr_profile/data_types/text.rb +12 -0
  50. data/lib/open_ehr/am.rb +8 -0
  51. data/lib/open_ehr/assumed_library_types.rb +627 -0
  52. data/lib/open_ehr/parser/xml_perser.rb +13 -0
  53. data/lib/open_ehr/parser.rb +19 -0
  54. data/lib/open_ehr/rm/common/archetyped.rb +182 -0
  55. data/lib/open_ehr/rm/common/change_control.rb +332 -0
  56. data/lib/open_ehr/rm/common/directory.rb +29 -0
  57. data/lib/open_ehr/rm/common/generic.rb +216 -0
  58. data/lib/open_ehr/rm/common/resource.rb +154 -0
  59. data/lib/open_ehr/rm/common.rb +14 -0
  60. data/lib/open_ehr/rm/composition/content/entry.rb +246 -0
  61. data/lib/open_ehr/rm/composition/content/navigation.rb +31 -0
  62. data/lib/open_ehr/rm/composition/content.rb +22 -0
  63. data/lib/open_ehr/rm/composition.rb +103 -0
  64. data/lib/open_ehr/rm/data_structures/history.rb +117 -0
  65. data/lib/open_ehr/rm/data_structures/item_structure/representation.rb +63 -0
  66. data/lib/open_ehr/rm/data_structures/item_structure.rb +216 -0
  67. data/lib/open_ehr/rm/data_structures.rb +25 -0
  68. data/lib/open_ehr/rm/data_types/basic.rb +108 -0
  69. data/lib/open_ehr/rm/data_types/charset.lst +818 -0
  70. data/lib/open_ehr/rm/data_types/charset_extract.rb +24 -0
  71. data/lib/open_ehr/rm/data_types/encapsulated.rb +98 -0
  72. data/lib/open_ehr/rm/data_types/quantity/date_time.rb +229 -0
  73. data/lib/open_ehr/rm/data_types/quantity.rb +403 -0
  74. data/lib/open_ehr/rm/data_types/text.rb +168 -0
  75. data/lib/open_ehr/rm/data_types/time_specification.rb +75 -0
  76. data/lib/open_ehr/rm/data_types/uri.rb +82 -0
  77. data/lib/open_ehr/rm/data_types.rb +14 -0
  78. data/lib/open_ehr/rm/demographic.rb +269 -0
  79. data/lib/open_ehr/rm/ehr.rb +162 -0
  80. data/lib/open_ehr/rm/integration.rb +27 -0
  81. data/lib/open_ehr/rm/security.rb +12 -0
  82. data/lib/open_ehr/rm/support/assumed_types.rb +81 -0
  83. data/lib/open_ehr/rm/support/definition.rb +15 -0
  84. data/lib/open_ehr/rm/support/identification.rb +408 -0
  85. data/lib/open_ehr/rm/support/measurement.rb +17 -0
  86. data/lib/open_ehr/rm/support/terminology.rb +135 -0
  87. data/lib/open_ehr/rm/support.rb +14 -0
  88. data/lib/open_ehr/rm.rb +16 -0
  89. data/lib/open_ehr/serializer.rb +272 -0
  90. data/lib/open_ehr/terminology/open_ehr_terminology.rb +41 -0
  91. data/lib/open_ehr/terminology.rb +7 -0
  92. data/lib/open_ehr/writer.rb +12 -0
  93. data/lib/open_ehr.rb +11 -0
  94. data/spec/lib/open_ehr/am/archetype/archetype_spec.rb +98 -0
  95. data/spec/lib/open_ehr/am/archetype/assertion/assertion_spec.rb +60 -0
  96. data/spec/lib/open_ehr/am/archetype/assertion/assertion_variable_spec.rb +30 -0
  97. data/spec/lib/open_ehr/am/archetype/assertion/expr_binary_operator.rb +40 -0
  98. data/spec/lib/open_ehr/am/archetype/assertion/expr_item_spec.rb +28 -0
  99. data/spec/lib/open_ehr/am/archetype/assertion/expr_leaf_spec.rb +34 -0
  100. data/spec/lib/open_ehr/am/archetype/assertion/expr_operator_spec.rb +25 -0
  101. data/spec/lib/open_ehr/am/archetype/assertion/expr_unary_operator_spec.rb +26 -0
  102. data/spec/lib/open_ehr/am/archetype/assertion/operator_kind_spec.rb +110 -0
  103. data/spec/lib/open_ehr/am/archetype/constraint_model/archetype_constraint_spec.rb +56 -0
  104. data/spec/lib/open_ehr/am/archetype/constraint_model/archetype_internal_ref_spec.rb +36 -0
  105. data/spec/lib/open_ehr/am/archetype/constraint_model/archetype_slot_spec.rb +61 -0
  106. data/spec/lib/open_ehr/am/archetype/constraint_model/c_attribute_spec.rb +59 -0
  107. data/spec/lib/open_ehr/am/archetype/constraint_model/c_complex_object_spec.rb +39 -0
  108. data/spec/lib/open_ehr/am/archetype/constraint_model/c_defined_object_spec.rb +53 -0
  109. data/spec/lib/open_ehr/am/archetype/constraint_model/c_domain_type_spec.rb +25 -0
  110. data/spec/lib/open_ehr/am/archetype/constraint_model/c_multiple_attribute_spec.rb +29 -0
  111. data/spec/lib/open_ehr/am/archetype/constraint_model/c_object_spec.rb +61 -0
  112. data/spec/lib/open_ehr/am/archetype/constraint_model/c_primitive_object_spec.rb +33 -0
  113. data/spec/lib/open_ehr/am/archetype/constraint_model/c_reference_object_spec.rb +17 -0
  114. data/spec/lib/open_ehr/am/archetype/constraint_model/c_single_attribute_spec.rb +28 -0
  115. data/spec/lib/open_ehr/am/archetype/constraint_model/cardinality_spec.rb +68 -0
  116. data/spec/lib/open_ehr/am/archetype/constraint_model/constraint_ref_spec.rb +29 -0
  117. data/spec/lib/open_ehr/am/archetype/constraint_model/primitive/c_boolean_spec.rb +52 -0
  118. data/spec/lib/open_ehr/am/archetype/constraint_model/primitive/c_date_spec.rb +80 -0
  119. data/spec/lib/open_ehr/am/archetype/constraint_model/primitive/c_date_time_spec.rb +106 -0
  120. data/spec/lib/open_ehr/am/archetype/constraint_model/primitive/c_duration_spec.rb +69 -0
  121. data/spec/lib/open_ehr/am/archetype/constraint_model/primitive/c_integer_spec.rb +62 -0
  122. data/spec/lib/open_ehr/am/archetype/constraint_model/primitive/c_primitive_spec.rb +39 -0
  123. data/spec/lib/open_ehr/am/archetype/constraint_model/primitive/c_real_spec.rb +14 -0
  124. data/spec/lib/open_ehr/am/archetype/constraint_model/primitive/c_string_spec.rb +69 -0
  125. data/spec/lib/open_ehr/am/archetype/constraint_model/primitive/c_time_spec.rb +79 -0
  126. data/spec/lib/open_ehr/am/archetype/ontology/archetype_ontology_spec.rb +59 -0
  127. data/spec/lib/open_ehr/am/archetype/ontology/archetype_term_spec.rb +43 -0
  128. data/spec/lib/open_ehr/am/archetype/validity_kind_spec.rb +42 -0
  129. data/spec/lib/open_ehr/assumed_library_types/interval_spec.rb +140 -0
  130. data/spec/lib/open_ehr/assumed_library_types/iso8601_date_spec.rb +236 -0
  131. data/spec/lib/open_ehr/assumed_library_types/iso8601_date_time_spec.rb +47 -0
  132. data/spec/lib/open_ehr/assumed_library_types/iso8601_duration_spec.rb +150 -0
  133. data/spec/lib/open_ehr/assumed_library_types/iso8601_time_spec.rb +234 -0
  134. data/spec/lib/open_ehr/assumed_library_types/iso8601_timezone_spec.rb +57 -0
  135. data/spec/lib/open_ehr/assumed_library_types/time_definitions_spec.rb +136 -0
  136. data/spec/lib/open_ehr/rm/common/archetyped/archetyped_spec.rb +50 -0
  137. data/spec/lib/open_ehr/rm/common/archetyped/feeder_audit_details_spec.rb +60 -0
  138. data/spec/lib/open_ehr/rm/common/archetyped/feeder_audit_spec.rb +51 -0
  139. data/spec/lib/open_ehr/rm/common/archetyped/link_spec.rb +42 -0
  140. data/spec/lib/open_ehr/rm/common/archetyped/locatable_spec.rb +89 -0
  141. data/spec/lib/open_ehr/rm/common/archetyped/pathable_spec.rb +42 -0
  142. data/spec/lib/open_ehr/rm/common/change_control/contribution_spec.rb +56 -0
  143. data/spec/lib/open_ehr/rm/common/change_control/imported_version_spec.rb +63 -0
  144. data/spec/lib/open_ehr/rm/common/change_control/original_version_spec.rb +71 -0
  145. data/spec/lib/open_ehr/rm/common/change_control/version_spec.rb +92 -0
  146. data/spec/lib/open_ehr/rm/common/change_control/versioned_object_spec.rb +285 -0
  147. data/spec/lib/open_ehr/rm/common/directory/folder_spec.rb +26 -0
  148. data/spec/lib/open_ehr/rm/common/generic/attestation_spec.rb +62 -0
  149. data/spec/lib/open_ehr/rm/common/generic/audit_details_spec.rb +51 -0
  150. data/spec/lib/open_ehr/rm/common/generic/participation_spec.rb +36 -0
  151. data/spec/lib/open_ehr/rm/common/generic/party_identified_spec.rb +64 -0
  152. data/spec/lib/open_ehr/rm/common/generic/party_proxy_spec.rb +18 -0
  153. data/spec/lib/open_ehr/rm/common/generic/party_related_spec.rb +24 -0
  154. data/spec/lib/open_ehr/rm/common/generic/revision_history_item_spec.rb +43 -0
  155. data/spec/lib/open_ehr/rm/common/generic/revision_history_spec.rb +45 -0
  156. data/spec/lib/open_ehr/rm/common/resource/authored_resource_spec.rb +68 -0
  157. data/spec/lib/open_ehr/rm/common/resource/resource_description_item_spec.rb +105 -0
  158. data/spec/lib/open_ehr/rm/common/resource/resource_description_spec.rb +74 -0
  159. data/spec/lib/open_ehr/rm/common/resource/translation_details_spec.rb +35 -0
  160. data/spec/lib/open_ehr/rm/composition/composition_spec.rb +92 -0
  161. data/spec/lib/open_ehr/rm/composition/content/content_item_spec.rb +14 -0
  162. data/spec/lib/open_ehr/rm/composition/content/entry/action_spec.rb +69 -0
  163. data/spec/lib/open_ehr/rm/composition/content/entry/activity_spec.rb +61 -0
  164. data/spec/lib/open_ehr/rm/composition/content/entry/admin_entry_spec.rb +38 -0
  165. data/spec/lib/open_ehr/rm/composition/content/entry/care_entry_spec.rb +37 -0
  166. data/spec/lib/open_ehr/rm/composition/content/entry/entry_spec.rb +88 -0
  167. data/spec/lib/open_ehr/rm/composition/content/entry/evaluation_spec.rb +37 -0
  168. data/spec/lib/open_ehr/rm/composition/content/entry/instruction_details_spec.rb +51 -0
  169. data/spec/lib/open_ehr/rm/composition/content/entry/instruction_spec.rb +62 -0
  170. data/spec/lib/open_ehr/rm/composition/content/entry/ism_transition_spec.rb +46 -0
  171. data/spec/lib/open_ehr/rm/composition/content/entry/observation_spec.rb +45 -0
  172. data/spec/lib/open_ehr/rm/composition/content/navigation/section_spec.rb +32 -0
  173. data/spec/lib/open_ehr/rm/composition/event_context_spec.rb +88 -0
  174. data/spec/lib/open_ehr/rm/data_structures/data_structure_spec.rb +21 -0
  175. data/spec/lib/open_ehr/rm/data_structures/history/event_spec.rb +44 -0
  176. data/spec/lib/open_ehr/rm/data_structures/history/history_spec.rb +67 -0
  177. data/spec/lib/open_ehr/rm/data_structures/history/interval_event_spec.rb +43 -0
  178. data/spec/lib/open_ehr/rm/data_structures/item_structure/item_list_spec.rb +53 -0
  179. data/spec/lib/open_ehr/rm/data_structures/item_structure/item_single_spec.rb +29 -0
  180. data/spec/lib/open_ehr/rm/data_structures/item_structure/item_table_spec.rb +147 -0
  181. data/spec/lib/open_ehr/rm/data_structures/item_structure/item_tree_spec.rb +48 -0
  182. data/spec/lib/open_ehr/rm/data_structures/item_structure/representation/cluster_spec.rb +26 -0
  183. data/spec/lib/open_ehr/rm/data_structures/item_structure/representation/element_spec.rb +22 -0
  184. data/spec/lib/open_ehr/rm/data_types/basic/data_value_spec.rb +17 -0
  185. data/spec/lib/open_ehr/rm/data_types/basic/dv_boolean_spec.rb +29 -0
  186. data/spec/lib/open_ehr/rm/data_types/basic/dv_identifier_spec.rb +108 -0
  187. data/spec/lib/open_ehr/rm/data_types/basic/dv_state_spec.rb +44 -0
  188. data/spec/lib/open_ehr/rm/data_types/encapsulated/dv_encapsulated_spec.rb +42 -0
  189. data/spec/lib/open_ehr/rm/data_types/encapsulated/dv_multimedia_spec.rb +79 -0
  190. data/spec/lib/open_ehr/rm/data_types/encapsulated/dv_parsable_spec.rb +34 -0
  191. data/spec/lib/open_ehr/rm/data_types/quantity/date_time/dv_date_spec.rb +64 -0
  192. data/spec/lib/open_ehr/rm/data_types/quantity/date_time/dv_date_time_spec.rb +25 -0
  193. data/spec/lib/open_ehr/rm/data_types/quantity/date_time/dv_tempral_spec.rb +24 -0
  194. data/spec/lib/open_ehr/rm/data_types/quantity/date_time/dv_time_spec.rb +37 -0
  195. data/spec/lib/open_ehr/rm/data_types/quantity/dv_absolute_quantity_spec.rb +35 -0
  196. data/spec/lib/open_ehr/rm/data_types/quantity/dv_amount_spec.rb +105 -0
  197. data/spec/lib/open_ehr/rm/data_types/quantity/dv_count_spec.rb +12 -0
  198. data/spec/lib/open_ehr/rm/data_types/quantity/dv_interval_spec.rb +17 -0
  199. data/spec/lib/open_ehr/rm/data_types/quantity/dv_ordered_spec.rb +60 -0
  200. data/spec/lib/open_ehr/rm/data_types/quantity/dv_ordinal_spec.rb +74 -0
  201. data/spec/lib/open_ehr/rm/data_types/quantity/dv_proportion_spec.rb +162 -0
  202. data/spec/lib/open_ehr/rm/data_types/quantity/dv_quantified_spec.rb +36 -0
  203. data/spec/lib/open_ehr/rm/data_types/quantity/dv_quantity_spec.rb +78 -0
  204. data/spec/lib/open_ehr/rm/data_types/quantity/proportion_kind_spec.rb +24 -0
  205. data/spec/lib/open_ehr/rm/data_types/quantity/reference_range_spec.rb +43 -0
  206. data/spec/lib/open_ehr/rm/data_types/text/code_phrase_spec.rb +23 -0
  207. data/spec/lib/open_ehr/rm/data_types/text/dv_paragraph_spec.rb +13 -0
  208. data/spec/lib/open_ehr/rm/data_types/text/dv_text_spec.rb +57 -0
  209. data/spec/lib/open_ehr/rm/data_types/text/term_mapping_spec.rb +59 -0
  210. data/spec/lib/open_ehr/rm/data_types/uri/dv_ehr_uri_spec.rb +21 -0
  211. data/spec/lib/open_ehr/rm/data_types/uri/dv_uri_spec.rb +36 -0
  212. data/spec/lib/open_ehr/rm/demographic/actor_spec.rb +79 -0
  213. data/spec/lib/open_ehr/rm/demographic/address_spec.rb +33 -0
  214. data/spec/lib/open_ehr/rm/demographic/capability_spec.rb +37 -0
  215. data/spec/lib/open_ehr/rm/demographic/contact_spec.rb +45 -0
  216. data/spec/lib/open_ehr/rm/demographic/party_identity_spec.rb +32 -0
  217. data/spec/lib/open_ehr/rm/demographic/party_relationship_spec.rb +84 -0
  218. data/spec/lib/open_ehr/rm/demographic/party_spec.rb +133 -0
  219. data/spec/lib/open_ehr/rm/demographic/role_spec.rb +58 -0
  220. data/spec/lib/open_ehr/rm/ehr/ehr_access_spec.rb +33 -0
  221. data/spec/lib/open_ehr/rm/ehr/ehr_spec.rb +139 -0
  222. data/spec/lib/open_ehr/rm/ehr/ehr_status_spec.rb +52 -0
  223. data/spec/lib/open_ehr/rm/ehr/versioned_composition_spec.rb +33 -0
  224. data/spec/lib/open_ehr/rm/integration/generic_entry_spec.rb +31 -0
  225. data/spec/lib/open_ehr/rm/support/identification/access_group_ref_spec.rb +19 -0
  226. data/spec/lib/open_ehr/rm/support/identification/archetype_id_spec.rb +152 -0
  227. data/spec/lib/open_ehr/rm/support/identification/generic_id_spec.rb +33 -0
  228. data/spec/lib/open_ehr/rm/support/identification/hier_object_id_spec.rb +12 -0
  229. data/spec/lib/open_ehr/rm/support/identification/internet_id_spec.rb +12 -0
  230. data/spec/lib/open_ehr/rm/support/identification/iso_oid_spec.rb +12 -0
  231. data/spec/lib/open_ehr/rm/support/identification/locatable_ref_spec.rb +34 -0
  232. data/spec/lib/open_ehr/rm/support/identification/object_id_spec.rb +24 -0
  233. data/spec/lib/open_ehr/rm/support/identification/object_ref_spec.rb +33 -0
  234. data/spec/lib/open_ehr/rm/support/identification/object_version_id_spec.rb +60 -0
  235. data/spec/lib/open_ehr/rm/support/identification/party_ref_spec.rb +29 -0
  236. data/spec/lib/open_ehr/rm/support/identification/template_id_spec.rb +12 -0
  237. data/spec/lib/open_ehr/rm/support/identification/terminology_id_spec.rb +33 -0
  238. data/spec/lib/open_ehr/rm/support/identification/uid_based_id_spec.rb +50 -0
  239. data/spec/lib/open_ehr/rm/support/identification/uid_spec.rb +29 -0
  240. data/spec/lib/open_ehr/rm/support/identification/version_tree_id_spec.rb +104 -0
  241. data/spec/lib/open_ehr/rm/support/measurement_service_spec.rb +7 -0
  242. data/spec/lib/open_ehr/rm/support/terminology_service_spec.rb +24 -0
  243. data/spec/lib/open_ehr/serializer/adl-test-entry.most_minimal.test.adl +20 -0
  244. data/spec/lib/open_ehr/serializer/adl_serializer_spec.rb +47 -0
  245. data/spec/lib/open_ehr/serializer/openEHR-EHR-SECTION.test.v1.adl +38 -0
  246. data/spec/lib/open_ehr/serializer/openEHR-EHR-SECTION.test.v1.xml +58 -0
  247. data/spec/lib/open_ehr/serializer/sample_archetype_spec.rb +44 -0
  248. data/spec/lib/open_ehr/serializer/xml_serializer_spec.rb +49 -0
  249. data/spec/lib/open_ehr/terminology/open_ehr_terminology_spec.rb +40 -0
  250. data/spec/rcov.opts +1 -0
  251. data/spec/spec.opts +5 -0
  252. data/spec/spec_helper.rb +54 -0
  253. metadata +401 -0
@@ -0,0 +1,44 @@
1
+ require File.dirname(__FILE__) + '/../../../spec_helper'
2
+ include OpenEHR::AM::Archetype
3
+ include OpenEHR::AM::Archetype::ConstraintModel
4
+ include OpenEHR::AM::Archetype::Ontology
5
+ include OpenEHR::RM::Support::Identification
6
+ include OpenEHR::RM::DataTypes::Text
7
+ include OpenEHR::AssumedLibraryTypes
8
+
9
+ def sample_archetype
10
+ archetype_term = ArchetypeTerm.new(:code => 'at0000',
11
+ :items => {'text' => 'simple test',
12
+ 'description' => 'simple test for serializer'})
13
+ term_definitions = {'ja' => [archetype_term]}
14
+ ontology =
15
+ ArchetypeOntology.new(:specialisation_depth => 0,
16
+ :term_definitions => term_definitions)
17
+ archetype_id = ArchetypeID.new(:value =>
18
+ 'openEHR-EHR-SECTION.test.v1')
19
+ terminology_id = TerminologyID.new(:value => 'ISO_639-1')
20
+ original_language = CodePhrase.new(:code_string => 'ja',
21
+ :terminology_id => terminology_id)
22
+ occurrences = Interval.new(:upper => 1, :lower => 1)
23
+ definition = CComplexObject.new(:path => '/',
24
+ :rm_type_name => 'SECTION',
25
+ :occurrences => occurrences,
26
+ :node_id => 'at0000')
27
+ original_author = {'email' => 'skoba@moss.gr.jp',
28
+ 'organisation' => 'openEHR.jp',
29
+ 'name' => 'Shinji KOBAYASHI'}
30
+ resource_description_item =
31
+ ResourceDescriptionItem.new(:language => original_language,
32
+ :purpose => 'Serializer test',
33
+ :misuse => 'evaluate message')
34
+ details = {'ja' => resource_description_item}
35
+ description = ResourceDescription.new(:original_author => original_author,
36
+ :lifecycle_state => 'draft',
37
+ :details => details)
38
+ return archetype = Archetype.new(:archetype_id => archetype_id,
39
+ :concept => 'at0000',
40
+ :original_language => original_language,
41
+ :ontology => ontology,
42
+ :description => description,
43
+ :definition => definition)
44
+ end
@@ -0,0 +1,49 @@
1
+ require File.dirname(__FILE__) + '/../../../spec_helper'
2
+ require File.dirname(__FILE__) + '/sample_archetype_spec'
3
+ require 'rexml/document'
4
+ include OpenEHR::Serializer
5
+
6
+ describe XMLSerializer do
7
+
8
+ before(:all) do
9
+ current_dir = File.dirname(__FILE__)
10
+ xml_file = File.open(current_dir + '/openEHR-EHR-SECTION.test.v1.xml')
11
+ xml = xml_file.readlines
12
+ class << xml
13
+ def unindent(s,e,num)
14
+ self[s..e].collect{|line| line[num..-1]}.join
15
+ end
16
+ end
17
+ @sample_header = xml.unindent(2, 11, 2)
18
+ @sample_description = xml.unindent(12, 27, 2)
19
+ @sample_definition = xml.unindent(28, 37, 2)
20
+ @sample_ontology = xml.unindent(38, 56, 2)
21
+ @sample_xml = xml.join
22
+ xml_file.close
23
+ @archetype = sample_archetype
24
+ end
25
+
26
+ before(:each) do
27
+ @xml_serializer = XMLSerializer.new(@archetype)
28
+ end
29
+
30
+ it 'should be an instance of XMLSerializer' do
31
+ @xml_serializer.should be_an_instance_of XMLSerializer
32
+ end
33
+
34
+ it 'should return XML formatted header' do
35
+ @xml_serializer.header.should == @sample_header
36
+ end
37
+
38
+ it 'should return XML formatted description' do
39
+ @xml_serializer.description.should == @sample_description
40
+ end
41
+
42
+ it 'should return XML formatted definition' do
43
+ @xml_serializer.definition.should == @sample_definition
44
+ end
45
+
46
+ it 'should return XML formatted ontology' do
47
+ @xml_serializer.ontology.should == @sample_ontology
48
+ end
49
+ end
@@ -0,0 +1,40 @@
1
+ require File.dirname(__FILE__) + '/../../../spec_helper'
2
+
3
+ describe 'OpenEHRTerminology' do
4
+ before(:each) do
5
+ @term = OpenEHR::Terminology::OpenEHRTerminology.new
6
+ end
7
+
8
+ it 'should parse and return languages' do
9
+ @term.languages[0].should == {'code' => 'af', 'Description' => 'Afrikaans'}
10
+ end
11
+
12
+ it 'should parse and return primary rubrics' do
13
+ @term.primary_rubrics[0].should == {'Id' => '0', 'Language' => 'en'}
14
+ end
15
+
16
+ it 'should parse and return concepts' do
17
+ @term.concepts[0].should == {'Rubric' => 'self', 'Language' => 'en',
18
+ 'ConceptID' => '0'}
19
+ end
20
+
21
+ it 'should parse and return groupers' do
22
+ @term.groupers[0].should == {'id' => '0', 'ConceptID' => '154'}
23
+ end
24
+
25
+ it 'should parse and return grouped_concepts' do
26
+ @term.grouped_concepts[0].should == {'ChildID' => '0', 'GrouperID' => '1'}
27
+ end
28
+
29
+ it 'should parse and return terminology identifiers' do
30
+ @term.terminology_identifiers[0].should ==
31
+ {'VSAB' => 'AIR93', 'Authority' => 'UMLS2003AA',
32
+ 'SourceName' => 'AI/RHEUM,1993'}
33
+ end
34
+
35
+ it 'should parse and return territory' do
36
+ @term.territories[0].should ==
37
+ {'Text' => 'Afghanistan', 'ThreeLetter'=>'AFG',
38
+ 'NumericCode' => '004', 'TwoLetter' => 'AF'}
39
+ end
40
+ end
data/spec/rcov.opts ADDED
@@ -0,0 +1 @@
1
+ --exclude "spec/*,gems/*"
data/spec/spec.opts ADDED
@@ -0,0 +1,5 @@
1
+ --drm
2
+ --colour
3
+ --format specdoc
4
+ --loadby mtime
5
+ --reverse
@@ -0,0 +1,54 @@
1
+ require 'rubygems'
2
+ require 'spork'
3
+
4
+ Spork.prefork do
5
+ # Loading more in this block will cause your tests to run faster. However,
6
+ # if you change any configuration or code from libraries loaded here, you'll
7
+ # need to restart spork for it take effect.
8
+
9
+ end
10
+
11
+ Spork.each_run do
12
+ # This code will be run each time you run your specs.
13
+
14
+ end
15
+
16
+ # --- Instructions ---
17
+ # Sort the contents of this file into a Spork.prefork and a Spork.each_run
18
+ # block.
19
+ #
20
+ # The Spork.prefork block is run only once when the spork server is started.
21
+ # You typically want to place most of your (slow) initializer code in here, in
22
+ # particular, require'ing any 3rd-party gems that you don't normally modify
23
+ # during development.
24
+ #
25
+ # The Spork.each_run block is run each time you run your specs. In case you
26
+ # need to load files that tend to change during development, require them here.
27
+ # With Rails, your application modules are loaded automatically, so sometimes
28
+ # this block can remain empty.
29
+ #
30
+ # Note: You can modify files loaded *from* the Spork.each_run block without
31
+ # restarting the spork server. However, this file itself will not be reloaded,
32
+ # so if you change any of the code inside the each_run block, you still need to
33
+ # restart the server. In general, if you have non-trivial code in this file,
34
+ # it's advisable to move it into a separate file so you can easily edit it
35
+ # without restarting spork. (For example, with RSpec, you could move
36
+ # non-trivial code into a file spec/support/my_helper.rb, making sure that the
37
+ # spec/support/* files are require'd from inside the each_run block.)
38
+ #
39
+ # Any code that is left outside the two blocks will be run during preforking
40
+ # *and* during each_run -- that's probably not what you want.
41
+ #
42
+ # These instructions should self-destruct in 10 seconds. If they don't, feel
43
+ # free to delete them.
44
+
45
+ begin
46
+ require 'rspec'
47
+ rescue LoadError
48
+ require 'rubygems' unless ENV['NO_RUBYGEMS']
49
+ gem 'rspec'
50
+ require 'rspec'
51
+ end
52
+
53
+ $:.unshift(File.dirname(__FILE__) + '/../lib')
54
+ require 'open_ehr'
metadata ADDED
@@ -0,0 +1,401 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: open_ehr
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.6.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Shinji KOBAYASHI
9
+ - Akimichi Tatsukawa
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2011-05-09 00:00:00.000000000Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: xml-simple
17
+ requirement: &17195536660 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: *17195536660
26
+ - !ruby/object:Gem::Dependency
27
+ name: activesupport
28
+ requirement: &17195535700 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: *17195535700
37
+ - !ruby/object:Gem::Dependency
38
+ name: locale
39
+ requirement: &17195535000 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ type: :runtime
46
+ prerelease: false
47
+ version_requirements: *17195535000
48
+ - !ruby/object:Gem::Dependency
49
+ name: builder
50
+ requirement: &17195534220 !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ type: :runtime
57
+ prerelease: false
58
+ version_requirements: *17195534220
59
+ - !ruby/object:Gem::Dependency
60
+ name: jeweler
61
+ requirement: &17195533380 !ruby/object:Gem::Requirement
62
+ none: false
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ type: :runtime
68
+ prerelease: false
69
+ version_requirements: *17195533380
70
+ - !ruby/object:Gem::Dependency
71
+ name: i18n
72
+ requirement: &17195532380 !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ type: :runtime
79
+ prerelease: false
80
+ version_requirements: *17195532380
81
+ - !ruby/object:Gem::Dependency
82
+ name: rspec
83
+ requirement: &17195530780 !ruby/object:Gem::Requirement
84
+ none: false
85
+ requirements:
86
+ - - ! '>='
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ type: :development
90
+ prerelease: false
91
+ version_requirements: *17195530780
92
+ - !ruby/object:Gem::Dependency
93
+ name: guard-rspec
94
+ requirement: &17195529740 !ruby/object:Gem::Requirement
95
+ none: false
96
+ requirements:
97
+ - - ! '>='
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
100
+ type: :development
101
+ prerelease: false
102
+ version_requirements: *17195529740
103
+ - !ruby/object:Gem::Dependency
104
+ name: spork
105
+ requirement: &17195528860 !ruby/object:Gem::Requirement
106
+ none: false
107
+ requirements:
108
+ - - ! '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ type: :development
112
+ prerelease: false
113
+ version_requirements: *17195528860
114
+ description: This project is an implementation of the openEHR specification on Ruby.
115
+ email: skoba@moss.gr.jp
116
+ executables: []
117
+ extensions: []
118
+ extra_rdoc_files:
119
+ - README.rdoc
120
+ files:
121
+ - .document
122
+ - Gemfile
123
+ - Gemfile.lock
124
+ - Guardfile
125
+ - History.txt
126
+ - Manifest.txt
127
+ - PostInstall.txt
128
+ - README.rdoc
129
+ - Rakefile
130
+ - VERSION
131
+ - doc/README_rdoc.html
132
+ - doc/created.rid
133
+ - doc/images/brick.png
134
+ - doc/images/brick_link.png
135
+ - doc/images/bug.png
136
+ - doc/images/bullet_black.png
137
+ - doc/images/bullet_toggle_minus.png
138
+ - doc/images/bullet_toggle_plus.png
139
+ - doc/images/date.png
140
+ - doc/images/find.png
141
+ - doc/images/loadingAnimation.gif
142
+ - doc/images/macFFBgHack.png
143
+ - doc/images/package.png
144
+ - doc/images/page_green.png
145
+ - doc/images/page_white_text.png
146
+ - doc/images/page_white_width.png
147
+ - doc/images/plugin.png
148
+ - doc/images/ruby.png
149
+ - doc/images/tag_green.png
150
+ - doc/images/wrench.png
151
+ - doc/images/wrench_orange.png
152
+ - doc/images/zoom.png
153
+ - doc/index.html
154
+ - doc/js/darkfish.js
155
+ - doc/js/jquery.js
156
+ - doc/js/quicksearch.js
157
+ - doc/js/thickbox-compressed.js
158
+ - doc/openehr_terminology.xml
159
+ - doc/rdoc.css
160
+ - lib/#open_ehr.rb#
161
+ - lib/open_ehr.rb
162
+ - lib/open_ehr/am.rb
163
+ - lib/open_ehr/am/archetype.rb
164
+ - lib/open_ehr/am/archetype/archetype_description/archetype_description.rb
165
+ - lib/open_ehr/am/archetype/assertion.rb
166
+ - lib/open_ehr/am/archetype/constraint_model.rb
167
+ - lib/open_ehr/am/archetype/constraint_model/primitive.rb
168
+ - lib/open_ehr/am/archetype/ontology.rb
169
+ - lib/open_ehr/am/open_ehr_profile/data_types/basic.rb
170
+ - lib/open_ehr/am/open_ehr_profile/data_types/quantity.rb
171
+ - lib/open_ehr/am/open_ehr_profile/data_types/text.rb
172
+ - lib/open_ehr/assumed_library_types.rb
173
+ - lib/open_ehr/parser.rb
174
+ - lib/open_ehr/parser/xml_perser.rb
175
+ - lib/open_ehr/rm.rb
176
+ - lib/open_ehr/rm/common.rb
177
+ - lib/open_ehr/rm/common/archetyped.rb
178
+ - lib/open_ehr/rm/common/change_control.rb
179
+ - lib/open_ehr/rm/common/directory.rb
180
+ - lib/open_ehr/rm/common/generic.rb
181
+ - lib/open_ehr/rm/common/resource.rb
182
+ - lib/open_ehr/rm/composition.rb
183
+ - lib/open_ehr/rm/composition/content.rb
184
+ - lib/open_ehr/rm/composition/content/entry.rb
185
+ - lib/open_ehr/rm/composition/content/navigation.rb
186
+ - lib/open_ehr/rm/data_structures.rb
187
+ - lib/open_ehr/rm/data_structures/history.rb
188
+ - lib/open_ehr/rm/data_structures/item_structure.rb
189
+ - lib/open_ehr/rm/data_structures/item_structure/representation.rb
190
+ - lib/open_ehr/rm/data_types.rb
191
+ - lib/open_ehr/rm/data_types/basic.rb
192
+ - lib/open_ehr/rm/data_types/charset.lst
193
+ - lib/open_ehr/rm/data_types/charset_extract.rb
194
+ - lib/open_ehr/rm/data_types/encapsulated.rb
195
+ - lib/open_ehr/rm/data_types/quantity.rb
196
+ - lib/open_ehr/rm/data_types/quantity/date_time.rb
197
+ - lib/open_ehr/rm/data_types/text.rb
198
+ - lib/open_ehr/rm/data_types/time_specification.rb
199
+ - lib/open_ehr/rm/data_types/uri.rb
200
+ - lib/open_ehr/rm/demographic.rb
201
+ - lib/open_ehr/rm/ehr.rb
202
+ - lib/open_ehr/rm/integration.rb
203
+ - lib/open_ehr/rm/security.rb
204
+ - lib/open_ehr/rm/support.rb
205
+ - lib/open_ehr/rm/support/assumed_types.rb
206
+ - lib/open_ehr/rm/support/definition.rb
207
+ - lib/open_ehr/rm/support/identification.rb
208
+ - lib/open_ehr/rm/support/measurement.rb
209
+ - lib/open_ehr/rm/support/terminology.rb
210
+ - lib/open_ehr/serializer.rb
211
+ - lib/open_ehr/terminology.rb
212
+ - lib/open_ehr/terminology/open_ehr_terminology.rb
213
+ - lib/open_ehr/writer.rb
214
+ - spec/lib/open_ehr/am/archetype/archetype_spec.rb
215
+ - spec/lib/open_ehr/am/archetype/assertion/assertion_spec.rb
216
+ - spec/lib/open_ehr/am/archetype/assertion/assertion_variable_spec.rb
217
+ - spec/lib/open_ehr/am/archetype/assertion/expr_binary_operator.rb
218
+ - spec/lib/open_ehr/am/archetype/assertion/expr_item_spec.rb
219
+ - spec/lib/open_ehr/am/archetype/assertion/expr_leaf_spec.rb
220
+ - spec/lib/open_ehr/am/archetype/assertion/expr_operator_spec.rb
221
+ - spec/lib/open_ehr/am/archetype/assertion/expr_unary_operator_spec.rb
222
+ - spec/lib/open_ehr/am/archetype/assertion/operator_kind_spec.rb
223
+ - spec/lib/open_ehr/am/archetype/constraint_model/archetype_constraint_spec.rb
224
+ - spec/lib/open_ehr/am/archetype/constraint_model/archetype_internal_ref_spec.rb
225
+ - spec/lib/open_ehr/am/archetype/constraint_model/archetype_slot_spec.rb
226
+ - spec/lib/open_ehr/am/archetype/constraint_model/c_attribute_spec.rb
227
+ - spec/lib/open_ehr/am/archetype/constraint_model/c_complex_object_spec.rb
228
+ - spec/lib/open_ehr/am/archetype/constraint_model/c_defined_object_spec.rb
229
+ - spec/lib/open_ehr/am/archetype/constraint_model/c_domain_type_spec.rb
230
+ - spec/lib/open_ehr/am/archetype/constraint_model/c_multiple_attribute_spec.rb
231
+ - spec/lib/open_ehr/am/archetype/constraint_model/c_object_spec.rb
232
+ - spec/lib/open_ehr/am/archetype/constraint_model/c_primitive_object_spec.rb
233
+ - spec/lib/open_ehr/am/archetype/constraint_model/c_reference_object_spec.rb
234
+ - spec/lib/open_ehr/am/archetype/constraint_model/c_single_attribute_spec.rb
235
+ - spec/lib/open_ehr/am/archetype/constraint_model/cardinality_spec.rb
236
+ - spec/lib/open_ehr/am/archetype/constraint_model/constraint_ref_spec.rb
237
+ - spec/lib/open_ehr/am/archetype/constraint_model/primitive/c_boolean_spec.rb
238
+ - spec/lib/open_ehr/am/archetype/constraint_model/primitive/c_date_spec.rb
239
+ - spec/lib/open_ehr/am/archetype/constraint_model/primitive/c_date_time_spec.rb
240
+ - spec/lib/open_ehr/am/archetype/constraint_model/primitive/c_duration_spec.rb
241
+ - spec/lib/open_ehr/am/archetype/constraint_model/primitive/c_integer_spec.rb
242
+ - spec/lib/open_ehr/am/archetype/constraint_model/primitive/c_primitive_spec.rb
243
+ - spec/lib/open_ehr/am/archetype/constraint_model/primitive/c_real_spec.rb
244
+ - spec/lib/open_ehr/am/archetype/constraint_model/primitive/c_string_spec.rb
245
+ - spec/lib/open_ehr/am/archetype/constraint_model/primitive/c_time_spec.rb
246
+ - spec/lib/open_ehr/am/archetype/ontology/archetype_ontology_spec.rb
247
+ - spec/lib/open_ehr/am/archetype/ontology/archetype_term_spec.rb
248
+ - spec/lib/open_ehr/am/archetype/validity_kind_spec.rb
249
+ - spec/lib/open_ehr/assumed_library_types/interval_spec.rb
250
+ - spec/lib/open_ehr/assumed_library_types/iso8601_date_spec.rb
251
+ - spec/lib/open_ehr/assumed_library_types/iso8601_date_time_spec.rb
252
+ - spec/lib/open_ehr/assumed_library_types/iso8601_duration_spec.rb
253
+ - spec/lib/open_ehr/assumed_library_types/iso8601_time_spec.rb
254
+ - spec/lib/open_ehr/assumed_library_types/iso8601_timezone_spec.rb
255
+ - spec/lib/open_ehr/assumed_library_types/time_definitions_spec.rb
256
+ - spec/lib/open_ehr/rm/common/archetyped/archetyped_spec.rb
257
+ - spec/lib/open_ehr/rm/common/archetyped/feeder_audit_details_spec.rb
258
+ - spec/lib/open_ehr/rm/common/archetyped/feeder_audit_spec.rb
259
+ - spec/lib/open_ehr/rm/common/archetyped/link_spec.rb
260
+ - spec/lib/open_ehr/rm/common/archetyped/locatable_spec.rb
261
+ - spec/lib/open_ehr/rm/common/archetyped/pathable_spec.rb
262
+ - spec/lib/open_ehr/rm/common/change_control/contribution_spec.rb
263
+ - spec/lib/open_ehr/rm/common/change_control/imported_version_spec.rb
264
+ - spec/lib/open_ehr/rm/common/change_control/original_version_spec.rb
265
+ - spec/lib/open_ehr/rm/common/change_control/version_spec.rb
266
+ - spec/lib/open_ehr/rm/common/change_control/versioned_object_spec.rb
267
+ - spec/lib/open_ehr/rm/common/directory/folder_spec.rb
268
+ - spec/lib/open_ehr/rm/common/generic/attestation_spec.rb
269
+ - spec/lib/open_ehr/rm/common/generic/audit_details_spec.rb
270
+ - spec/lib/open_ehr/rm/common/generic/participation_spec.rb
271
+ - spec/lib/open_ehr/rm/common/generic/party_identified_spec.rb
272
+ - spec/lib/open_ehr/rm/common/generic/party_proxy_spec.rb
273
+ - spec/lib/open_ehr/rm/common/generic/party_related_spec.rb
274
+ - spec/lib/open_ehr/rm/common/generic/revision_history_item_spec.rb
275
+ - spec/lib/open_ehr/rm/common/generic/revision_history_spec.rb
276
+ - spec/lib/open_ehr/rm/common/resource/authored_resource_spec.rb
277
+ - spec/lib/open_ehr/rm/common/resource/resource_description_item_spec.rb
278
+ - spec/lib/open_ehr/rm/common/resource/resource_description_spec.rb
279
+ - spec/lib/open_ehr/rm/common/resource/translation_details_spec.rb
280
+ - spec/lib/open_ehr/rm/composition/composition_spec.rb
281
+ - spec/lib/open_ehr/rm/composition/content/content_item_spec.rb
282
+ - spec/lib/open_ehr/rm/composition/content/entry/action_spec.rb
283
+ - spec/lib/open_ehr/rm/composition/content/entry/activity_spec.rb
284
+ - spec/lib/open_ehr/rm/composition/content/entry/admin_entry_spec.rb
285
+ - spec/lib/open_ehr/rm/composition/content/entry/care_entry_spec.rb
286
+ - spec/lib/open_ehr/rm/composition/content/entry/entry_spec.rb
287
+ - spec/lib/open_ehr/rm/composition/content/entry/evaluation_spec.rb
288
+ - spec/lib/open_ehr/rm/composition/content/entry/instruction_details_spec.rb
289
+ - spec/lib/open_ehr/rm/composition/content/entry/instruction_spec.rb
290
+ - spec/lib/open_ehr/rm/composition/content/entry/ism_transition_spec.rb
291
+ - spec/lib/open_ehr/rm/composition/content/entry/observation_spec.rb
292
+ - spec/lib/open_ehr/rm/composition/content/navigation/section_spec.rb
293
+ - spec/lib/open_ehr/rm/composition/event_context_spec.rb
294
+ - spec/lib/open_ehr/rm/data_structures/data_structure_spec.rb
295
+ - spec/lib/open_ehr/rm/data_structures/history/event_spec.rb
296
+ - spec/lib/open_ehr/rm/data_structures/history/history_spec.rb
297
+ - spec/lib/open_ehr/rm/data_structures/history/interval_event_spec.rb
298
+ - spec/lib/open_ehr/rm/data_structures/item_structure/item_list_spec.rb
299
+ - spec/lib/open_ehr/rm/data_structures/item_structure/item_single_spec.rb
300
+ - spec/lib/open_ehr/rm/data_structures/item_structure/item_table_spec.rb
301
+ - spec/lib/open_ehr/rm/data_structures/item_structure/item_tree_spec.rb
302
+ - spec/lib/open_ehr/rm/data_structures/item_structure/representation/cluster_spec.rb
303
+ - spec/lib/open_ehr/rm/data_structures/item_structure/representation/element_spec.rb
304
+ - spec/lib/open_ehr/rm/data_types/basic/data_value_spec.rb
305
+ - spec/lib/open_ehr/rm/data_types/basic/dv_boolean_spec.rb
306
+ - spec/lib/open_ehr/rm/data_types/basic/dv_identifier_spec.rb
307
+ - spec/lib/open_ehr/rm/data_types/basic/dv_state_spec.rb
308
+ - spec/lib/open_ehr/rm/data_types/encapsulated/dv_encapsulated_spec.rb
309
+ - spec/lib/open_ehr/rm/data_types/encapsulated/dv_multimedia_spec.rb
310
+ - spec/lib/open_ehr/rm/data_types/encapsulated/dv_parsable_spec.rb
311
+ - spec/lib/open_ehr/rm/data_types/quantity/date_time/dv_date_spec.rb
312
+ - spec/lib/open_ehr/rm/data_types/quantity/date_time/dv_date_time_spec.rb
313
+ - spec/lib/open_ehr/rm/data_types/quantity/date_time/dv_tempral_spec.rb
314
+ - spec/lib/open_ehr/rm/data_types/quantity/date_time/dv_time_spec.rb
315
+ - spec/lib/open_ehr/rm/data_types/quantity/dv_absolute_quantity_spec.rb
316
+ - spec/lib/open_ehr/rm/data_types/quantity/dv_amount_spec.rb
317
+ - spec/lib/open_ehr/rm/data_types/quantity/dv_count_spec.rb
318
+ - spec/lib/open_ehr/rm/data_types/quantity/dv_interval_spec.rb
319
+ - spec/lib/open_ehr/rm/data_types/quantity/dv_ordered_spec.rb
320
+ - spec/lib/open_ehr/rm/data_types/quantity/dv_ordinal_spec.rb
321
+ - spec/lib/open_ehr/rm/data_types/quantity/dv_proportion_spec.rb
322
+ - spec/lib/open_ehr/rm/data_types/quantity/dv_quantified_spec.rb
323
+ - spec/lib/open_ehr/rm/data_types/quantity/dv_quantity_spec.rb
324
+ - spec/lib/open_ehr/rm/data_types/quantity/proportion_kind_spec.rb
325
+ - spec/lib/open_ehr/rm/data_types/quantity/reference_range_spec.rb
326
+ - spec/lib/open_ehr/rm/data_types/text/code_phrase_spec.rb
327
+ - spec/lib/open_ehr/rm/data_types/text/dv_paragraph_spec.rb
328
+ - spec/lib/open_ehr/rm/data_types/text/dv_text_spec.rb
329
+ - spec/lib/open_ehr/rm/data_types/text/term_mapping_spec.rb
330
+ - spec/lib/open_ehr/rm/data_types/uri/dv_ehr_uri_spec.rb
331
+ - spec/lib/open_ehr/rm/data_types/uri/dv_uri_spec.rb
332
+ - spec/lib/open_ehr/rm/demographic/actor_spec.rb
333
+ - spec/lib/open_ehr/rm/demographic/address_spec.rb
334
+ - spec/lib/open_ehr/rm/demographic/capability_spec.rb
335
+ - spec/lib/open_ehr/rm/demographic/contact_spec.rb
336
+ - spec/lib/open_ehr/rm/demographic/party_identity_spec.rb
337
+ - spec/lib/open_ehr/rm/demographic/party_relationship_spec.rb
338
+ - spec/lib/open_ehr/rm/demographic/party_spec.rb
339
+ - spec/lib/open_ehr/rm/demographic/role_spec.rb
340
+ - spec/lib/open_ehr/rm/ehr/ehr_access_spec.rb
341
+ - spec/lib/open_ehr/rm/ehr/ehr_spec.rb
342
+ - spec/lib/open_ehr/rm/ehr/ehr_status_spec.rb
343
+ - spec/lib/open_ehr/rm/ehr/versioned_composition_spec.rb
344
+ - spec/lib/open_ehr/rm/integration/generic_entry_spec.rb
345
+ - spec/lib/open_ehr/rm/support/identification/access_group_ref_spec.rb
346
+ - spec/lib/open_ehr/rm/support/identification/archetype_id_spec.rb
347
+ - spec/lib/open_ehr/rm/support/identification/generic_id_spec.rb
348
+ - spec/lib/open_ehr/rm/support/identification/hier_object_id_spec.rb
349
+ - spec/lib/open_ehr/rm/support/identification/internet_id_spec.rb
350
+ - spec/lib/open_ehr/rm/support/identification/iso_oid_spec.rb
351
+ - spec/lib/open_ehr/rm/support/identification/locatable_ref_spec.rb
352
+ - spec/lib/open_ehr/rm/support/identification/object_id_spec.rb
353
+ - spec/lib/open_ehr/rm/support/identification/object_ref_spec.rb
354
+ - spec/lib/open_ehr/rm/support/identification/object_version_id_spec.rb
355
+ - spec/lib/open_ehr/rm/support/identification/party_ref_spec.rb
356
+ - spec/lib/open_ehr/rm/support/identification/template_id_spec.rb
357
+ - spec/lib/open_ehr/rm/support/identification/terminology_id_spec.rb
358
+ - spec/lib/open_ehr/rm/support/identification/uid_based_id_spec.rb
359
+ - spec/lib/open_ehr/rm/support/identification/uid_spec.rb
360
+ - spec/lib/open_ehr/rm/support/identification/version_tree_id_spec.rb
361
+ - spec/lib/open_ehr/rm/support/measurement_service_spec.rb
362
+ - spec/lib/open_ehr/rm/support/terminology_service_spec.rb
363
+ - spec/lib/open_ehr/serializer/adl-test-entry.most_minimal.test.adl
364
+ - spec/lib/open_ehr/serializer/adl_serializer_spec.rb
365
+ - spec/lib/open_ehr/serializer/openEHR-EHR-SECTION.test.v1.adl
366
+ - spec/lib/open_ehr/serializer/openEHR-EHR-SECTION.test.v1.xml
367
+ - spec/lib/open_ehr/serializer/sample_archetype_spec.rb
368
+ - spec/lib/open_ehr/serializer/xml_serializer_spec.rb
369
+ - spec/lib/open_ehr/terminology/open_ehr_terminology_spec.rb
370
+ - spec/rcov.opts
371
+ - spec/spec.opts
372
+ - spec/spec_helper.rb
373
+ homepage: http://github.com/skoba/ruby-impl-openehr
374
+ licenses:
375
+ - The openEHR Open Source Software license(mozilla tri-license)
376
+ post_install_message:
377
+ rdoc_options: []
378
+ require_paths:
379
+ - lib
380
+ required_ruby_version: !ruby/object:Gem::Requirement
381
+ none: false
382
+ requirements:
383
+ - - ! '>='
384
+ - !ruby/object:Gem::Version
385
+ version: '0'
386
+ segments:
387
+ - 0
388
+ hash: -1680814666981750820
389
+ required_rubygems_version: !ruby/object:Gem::Requirement
390
+ none: false
391
+ requirements:
392
+ - - ! '>='
393
+ - !ruby/object:Gem::Version
394
+ version: '0'
395
+ requirements: []
396
+ rubyforge_project:
397
+ rubygems_version: 1.7.2
398
+ signing_key:
399
+ specification_version: 3
400
+ summary: Ruby implementation of the openEHR specification
401
+ test_files: []