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
data/doc/rdoc.css ADDED
@@ -0,0 +1,706 @@
1
+ /*
2
+ * "Darkfish" Rdoc CSS
3
+ * $Id: rdoc.css 54 2009-01-27 01:09:48Z deveiant $
4
+ *
5
+ * Author: Michael Granger <ged@FaerieMUD.org>
6
+ *
7
+ */
8
+
9
+ /* Base Green is: #6C8C22 */
10
+
11
+ *{ padding: 0; margin: 0; }
12
+
13
+ body {
14
+ background: #efefef;
15
+ font: 14px "Helvetica Neue", Helvetica, Tahoma, sans-serif;
16
+ }
17
+ body.class, body.module, body.file {
18
+ margin-left: 40px;
19
+ }
20
+ body.file-popup {
21
+ font-size: 90%;
22
+ margin-left: 0;
23
+ }
24
+
25
+ h1 {
26
+ font-size: 300%;
27
+ text-shadow: rgba(135,145,135,0.65) 2px 2px 3px;
28
+ color: #6C8C22;
29
+ }
30
+ h2,h3,h4 { margin-top: 1.5em; }
31
+
32
+ :link,
33
+ :visited {
34
+ color: #6C8C22;
35
+ text-decoration: none;
36
+ }
37
+ :link:hover,
38
+ :visited:hover {
39
+ border-bottom: 1px dotted #6C8C22;
40
+ }
41
+
42
+ pre {
43
+ background: #ddd;
44
+ padding: 0.5em 0;
45
+ }
46
+
47
+
48
+ /* @group Generic Classes */
49
+
50
+ .initially-hidden {
51
+ display: none;
52
+ }
53
+
54
+ .quicksearch-field {
55
+ width: 98%;
56
+ background: #ddd;
57
+ border: 1px solid #aaa;
58
+ height: 1.5em;
59
+ -webkit-border-radius: 4px;
60
+ }
61
+ .quicksearch-field:focus {
62
+ background: #f1edba;
63
+ }
64
+
65
+ .missing-docs {
66
+ font-size: 120%;
67
+ background: white url(images/wrench_orange.png) no-repeat 4px center;
68
+ color: #ccc;
69
+ line-height: 2em;
70
+ border: 1px solid #d00;
71
+ opacity: 1;
72
+ padding-left: 20px;
73
+ text-indent: 24px;
74
+ letter-spacing: 3px;
75
+ font-weight: bold;
76
+ -webkit-border-radius: 5px;
77
+ -moz-border-radius: 5px;
78
+ }
79
+
80
+ .target-section {
81
+ border: 2px solid #dcce90;
82
+ border-left-width: 8px;
83
+ padding: 0 1em;
84
+ background: #fff3c2;
85
+ }
86
+
87
+ /* @end */
88
+
89
+
90
+ /* @group Index Page, Standalone file pages */
91
+ body.indexpage {
92
+ margin: 1em 3em;
93
+ }
94
+ body.indexpage p,
95
+ body.indexpage div,
96
+ body.file p {
97
+ margin: 1em 0;
98
+ }
99
+
100
+ .indexpage ul,
101
+ .file #documentation ul {
102
+ line-height: 160%;
103
+ list-style: none;
104
+ }
105
+ .indexpage ul :link,
106
+ .indexpage ul :visited {
107
+ font-size: 16px;
108
+ }
109
+
110
+ .indexpage li,
111
+ .file #documentation li {
112
+ padding-left: 20px;
113
+ background: url(images/bullet_black.png) no-repeat left 4px;
114
+ }
115
+ .indexpage li.module {
116
+ background: url(images/package.png) no-repeat left 4px;
117
+ }
118
+ .indexpage li.class {
119
+ background: url(images/ruby.png) no-repeat left 4px;
120
+ }
121
+ .indexpage li.file {
122
+ background: url(images/page_white_text.png) no-repeat left 4px;
123
+ }
124
+ .file li p,
125
+ .indexpage li p {
126
+ margin: 0 0;
127
+ }
128
+
129
+ /* @end */
130
+
131
+ /* @group Top-Level Structure */
132
+
133
+ .class #metadata,
134
+ .file #metadata,
135
+ .module #metadata {
136
+ float: left;
137
+ width: 260px;
138
+ }
139
+
140
+ .class #documentation,
141
+ .file #documentation,
142
+ .module #documentation {
143
+ margin: 2em 1em 5em 300px;
144
+ min-width: 340px;
145
+ }
146
+
147
+ .file #metadata {
148
+ margin: 0.8em;
149
+ }
150
+
151
+ #validator-badges {
152
+ clear: both;
153
+ margin: 1em 1em 2em;
154
+ }
155
+
156
+ /* @end */
157
+
158
+ /* @group Metadata Section */
159
+ #metadata .section {
160
+ background-color: #dedede;
161
+ -moz-border-radius: 5px;
162
+ -webkit-border-radius: 5px;
163
+ border: 1px solid #aaa;
164
+ margin: 0 8px 16px;
165
+ font-size: 90%;
166
+ overflow: hidden;
167
+ }
168
+ #metadata h3.section-header {
169
+ margin: 0;
170
+ padding: 2px 8px;
171
+ background: #ccc;
172
+ color: #666;
173
+ -moz-border-radius-topleft: 4px;
174
+ -moz-border-radius-topright: 4px;
175
+ -webkit-border-top-left-radius: 4px;
176
+ -webkit-border-top-right-radius: 4px;
177
+ border-bottom: 1px solid #aaa;
178
+ }
179
+ #metadata #home-section h3.section-header {
180
+ border-bottom: 0;
181
+ }
182
+
183
+ #metadata ul,
184
+ #metadata dl,
185
+ #metadata p {
186
+ padding: 8px;
187
+ list-style: none;
188
+ }
189
+
190
+ #file-metadata ul {
191
+ padding-left: 28px;
192
+ list-style-image: url(images/page_green.png);
193
+ }
194
+
195
+ dl.svninfo {
196
+ color: #666;
197
+ margin: 0;
198
+ }
199
+ dl.svninfo dt {
200
+ font-weight: bold;
201
+ }
202
+
203
+ ul.link-list li {
204
+ white-space: nowrap;
205
+ }
206
+ ul.link-list .type {
207
+ font-size: 8px;
208
+ text-transform: uppercase;
209
+ color: white;
210
+ background: #969696;
211
+ padding: 2px 4px;
212
+ -webkit-border-radius: 5px;
213
+ }
214
+
215
+ /* @end */
216
+
217
+
218
+ /* @group Project Metadata Section */
219
+ #project-metadata {
220
+ margin-top: 3em;
221
+ }
222
+
223
+ .file #project-metadata {
224
+ margin-top: 0em;
225
+ }
226
+
227
+ #project-metadata .section {
228
+ border: 1px solid #aaa;
229
+ }
230
+ #project-metadata h3.section-header {
231
+ border-bottom: 1px solid #aaa;
232
+ position: relative;
233
+ }
234
+ #project-metadata h3.section-header .search-toggle {
235
+ position: absolute;
236
+ right: 5px;
237
+ }
238
+
239
+
240
+ #project-metadata form {
241
+ color: #777;
242
+ background: #ccc;
243
+ padding: 8px 8px 16px;
244
+ border-bottom: 1px solid #bbb;
245
+ }
246
+ #project-metadata fieldset {
247
+ border: 0;
248
+ }
249
+
250
+ #no-class-search-results {
251
+ margin: 0 auto 1em;
252
+ text-align: center;
253
+ font-size: 14px;
254
+ font-weight: bold;
255
+ color: #aaa;
256
+ }
257
+
258
+ /* @end */
259
+
260
+
261
+ /* @group Documentation Section */
262
+ #description {
263
+ font-size: 100%;
264
+ color: #333;
265
+ }
266
+
267
+ #description p {
268
+ margin: 1em 0.4em;
269
+ }
270
+
271
+ #description li p {
272
+ margin: 0;
273
+ }
274
+
275
+ #description ul {
276
+ margin-left: 1.5em;
277
+ }
278
+ #description ul li {
279
+ line-height: 1.4em;
280
+ }
281
+
282
+ #description dl,
283
+ #documentation dl {
284
+ margin: 8px 1.5em;
285
+ border: 1px solid #ccc;
286
+ }
287
+ #description dl {
288
+ font-size: 14px;
289
+ }
290
+
291
+ #description dt,
292
+ #documentation dt {
293
+ padding: 2px 4px;
294
+ font-weight: bold;
295
+ background: #ddd;
296
+ }
297
+ #description dd,
298
+ #documentation dd {
299
+ padding: 2px 12px;
300
+ }
301
+ #description dd + dt,
302
+ #documentation dd + dt {
303
+ margin-top: 0.7em;
304
+ }
305
+
306
+ #documentation .section {
307
+ font-size: 90%;
308
+ }
309
+ #documentation h3.section-header {
310
+ margin-top: 2em;
311
+ padding: 0.75em 0.5em;
312
+ background-color: #dedede;
313
+ color: #333;
314
+ font-size: 150%;
315
+ border: 1px solid #bbb;
316
+ -moz-border-radius: 3px;
317
+ -webkit-border-radius: 3px;
318
+ }
319
+
320
+ #constants-list > dl,
321
+ #attributes-list > dl {
322
+ margin: 1em 0 2em;
323
+ border: 0;
324
+ }
325
+ #constants-list > dl dt,
326
+ #attributes-list > dl dt {
327
+ padding-left: 0;
328
+ font-weight: bold;
329
+ font-family: Monaco, "Andale Mono";
330
+ background: inherit;
331
+ }
332
+ #constants-list > dl dt a,
333
+ #attributes-list > dl dt a {
334
+ color: inherit;
335
+ }
336
+ #constants-list > dl dd,
337
+ #attributes-list > dl dd {
338
+ margin: 0 0 1em 0;
339
+ padding: 0;
340
+ color: #666;
341
+ }
342
+
343
+ /* @group Method Details */
344
+
345
+ #documentation .method-source-code {
346
+ display: none;
347
+ }
348
+
349
+ #documentation .method-detail {
350
+ margin: 0.5em 0;
351
+ padding: 0.5em 0;
352
+ cursor: pointer;
353
+ }
354
+ #documentation .method-detail:hover {
355
+ background-color: #f1edba;
356
+ }
357
+ #documentation .method-heading {
358
+ position: relative;
359
+ padding: 2px 4px 0 20px;
360
+ font-size: 125%;
361
+ font-weight: bold;
362
+ color: #333;
363
+ background: url(images/brick.png) no-repeat left bottom;
364
+ }
365
+ #documentation .method-heading :link,
366
+ #documentation .method-heading :visited {
367
+ color: inherit;
368
+ }
369
+ #documentation .method-click-advice {
370
+ position: absolute;
371
+ top: 2px;
372
+ right: 5px;
373
+ font-size: 10px;
374
+ color: #9b9877;
375
+ visibility: hidden;
376
+ padding-right: 20px;
377
+ line-height: 20px;
378
+ background: url(images/zoom.png) no-repeat right top;
379
+ }
380
+ #documentation .method-detail:hover .method-click-advice {
381
+ visibility: visible;
382
+ }
383
+
384
+ #documentation .method-alias .method-heading {
385
+ color: #666;
386
+ background: url(images/brick_link.png) no-repeat left bottom;
387
+ }
388
+
389
+ #documentation .method-description,
390
+ #documentation .aliases {
391
+ margin: 0 20px;
392
+ line-height: 1.2em;
393
+ color: #666;
394
+ }
395
+ #documentation .aliases {
396
+ padding-top: 4px;
397
+ font-style: italic;
398
+ cursor: default;
399
+ }
400
+ #documentation .method-description p {
401
+ padding: 0;
402
+ }
403
+ #documentation .method-description p + p {
404
+ margin-bottom: 0.5em;
405
+ }
406
+ #documentation .method-description ul {
407
+ margin-left: 1.5em;
408
+ }
409
+
410
+ #documentation .attribute-method-heading {
411
+ background: url(images/tag_green.png) no-repeat left bottom;
412
+ }
413
+ #documentation #attribute-method-details .method-detail:hover {
414
+ background-color: transparent;
415
+ cursor: default;
416
+ }
417
+ #documentation .attribute-access-type {
418
+ font-size: 60%;
419
+ text-transform: uppercase;
420
+ vertical-align: super;
421
+ padding: 0 2px;
422
+ }
423
+ /* @end */
424
+
425
+ /* @end */
426
+
427
+
428
+
429
+ /* @group Source Code */
430
+
431
+ div.method-source-code {
432
+ background: #262626;
433
+ color: #efefef;
434
+ margin: 1em;
435
+ padding: 0.5em;
436
+ border: 1px dashed #999;
437
+ overflow: hidden;
438
+ }
439
+
440
+ div.method-source-code pre {
441
+ background: inherit;
442
+ padding: 0;
443
+ color: white;
444
+ overflow: auto;
445
+ }
446
+
447
+ /* @group Ruby keyword styles */
448
+
449
+ .ruby-constant { color: #7fffd4; background: transparent; }
450
+ .ruby-keyword { color: #00ffff; background: transparent; }
451
+ .ruby-ivar { color: #eedd82; background: transparent; }
452
+ .ruby-operator { color: #00ffee; background: transparent; }
453
+ .ruby-identifier { color: #ffdead; background: transparent; }
454
+ .ruby-node { color: #ffa07a; background: transparent; }
455
+ .ruby-comment { color: #b22222; font-weight: bold; background: transparent; }
456
+ .ruby-regexp { color: #ffa07a; background: transparent; }
457
+ .ruby-value { color: #7fffd4; background: transparent; }
458
+
459
+ /* @end */
460
+ /* @end */
461
+
462
+
463
+ /* @group File Popup Contents */
464
+
465
+ .file #metadata,
466
+ .file-popup #metadata {
467
+ }
468
+
469
+ .file-popup dl {
470
+ font-size: 80%;
471
+ padding: 0.75em;
472
+ background-color: #dedede;
473
+ color: #333;
474
+ border: 1px solid #bbb;
475
+ -moz-border-radius: 3px;
476
+ -webkit-border-radius: 3px;
477
+ }
478
+ .file dt {
479
+ font-weight: bold;
480
+ padding-left: 22px;
481
+ line-height: 20px;
482
+ background: url(images/page_white_width.png) no-repeat left top;
483
+ }
484
+ .file dt.modified-date {
485
+ background: url(images/date.png) no-repeat left top;
486
+ }
487
+ .file dt.requires {
488
+ background: url(images/plugin.png) no-repeat left top;
489
+ }
490
+ .file dt.scs-url {
491
+ background: url(images/wrench.png) no-repeat left top;
492
+ }
493
+
494
+ .file dl dd {
495
+ margin: 0 0 1em 0;
496
+ }
497
+ .file #metadata dl dd ul {
498
+ list-style: circle;
499
+ margin-left: 20px;
500
+ padding-top: 0;
501
+ }
502
+ .file #metadata dl dd ul li {
503
+ }
504
+
505
+
506
+ .file h2 {
507
+ margin-top: 2em;
508
+ padding: 0.75em 0.5em;
509
+ background-color: #dedede;
510
+ color: #333;
511
+ font-size: 120%;
512
+ border: 1px solid #bbb;
513
+ -moz-border-radius: 3px;
514
+ -webkit-border-radius: 3px;
515
+ }
516
+
517
+ /* @end */
518
+
519
+
520
+
521
+
522
+ /* @group ThickBox Styles */
523
+ #TB_window {
524
+ font: 12px Arial, Helvetica, sans-serif;
525
+ color: #333333;
526
+ }
527
+
528
+ #TB_secondLine {
529
+ font: 10px Arial, Helvetica, sans-serif;
530
+ color:#666666;
531
+ }
532
+
533
+ #TB_window :link,
534
+ #TB_window :visited { color: #666666; }
535
+ #TB_window :link:hover,
536
+ #TB_window :visited:hover { color: #000; }
537
+ #TB_window :link:active,
538
+ #TB_window :visited:active { color: #666666; }
539
+ #TB_window :link:focus,
540
+ #TB_window :visited:focus { color: #666666; }
541
+
542
+ #TB_overlay {
543
+ position: fixed;
544
+ z-index:100;
545
+ top: 0px;
546
+ left: 0px;
547
+ height:100%;
548
+ width:100%;
549
+ }
550
+
551
+ .TB_overlayMacFFBGHack {background: url(images/macFFBgHack.png) repeat;}
552
+ .TB_overlayBG {
553
+ background-color:#000;
554
+ filter:alpha(opacity=75);
555
+ -moz-opacity: 0.75;
556
+ opacity: 0.75;
557
+ }
558
+
559
+ * html #TB_overlay { /* ie6 hack */
560
+ position: absolute;
561
+ height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
562
+ }
563
+
564
+ #TB_window {
565
+ position: fixed;
566
+ background: #ffffff;
567
+ z-index: 102;
568
+ color:#000000;
569
+ display:none;
570
+ border: 4px solid #525252;
571
+ text-align:left;
572
+ top:50%;
573
+ left:50%;
574
+ }
575
+
576
+ * html #TB_window { /* ie6 hack */
577
+ position: absolute;
578
+ margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
579
+ }
580
+
581
+ #TB_window img#TB_Image {
582
+ display:block;
583
+ margin: 15px 0 0 15px;
584
+ border-right: 1px solid #ccc;
585
+ border-bottom: 1px solid #ccc;
586
+ border-top: 1px solid #666;
587
+ border-left: 1px solid #666;
588
+ }
589
+
590
+ #TB_caption{
591
+ height:25px;
592
+ padding:7px 30px 10px 25px;
593
+ float:left;
594
+ }
595
+
596
+ #TB_closeWindow{
597
+ height:25px;
598
+ padding:11px 25px 10px 0;
599
+ float:right;
600
+ }
601
+
602
+ #TB_closeAjaxWindow{
603
+ padding:7px 10px 5px 0;
604
+ margin-bottom:1px;
605
+ text-align:right;
606
+ float:right;
607
+ }
608
+
609
+ #TB_ajaxWindowTitle{
610
+ float:left;
611
+ padding:7px 0 5px 10px;
612
+ margin-bottom:1px;
613
+ font-size: 22px;
614
+ }
615
+
616
+ #TB_title{
617
+ background-color: #6C8C22;
618
+ color: #dedede;
619
+ height:40px;
620
+ }
621
+ #TB_title :link,
622
+ #TB_title :visited {
623
+ color: white !important;
624
+ border-bottom: 1px dotted #dedede;
625
+ }
626
+
627
+ #TB_ajaxContent{
628
+ clear:both;
629
+ padding:2px 15px 15px 15px;
630
+ overflow:auto;
631
+ text-align:left;
632
+ line-height:1.4em;
633
+ }
634
+
635
+ #TB_ajaxContent.TB_modal{
636
+ padding:15px;
637
+ }
638
+
639
+ #TB_ajaxContent p{
640
+ padding:5px 0px 5px 0px;
641
+ }
642
+
643
+ #TB_load{
644
+ position: fixed;
645
+ display:none;
646
+ height:13px;
647
+ width:208px;
648
+ z-index:103;
649
+ top: 50%;
650
+ left: 50%;
651
+ margin: -6px 0 0 -104px; /* -height/2 0 0 -width/2 */
652
+ }
653
+
654
+ * html #TB_load { /* ie6 hack */
655
+ position: absolute;
656
+ margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
657
+ }
658
+
659
+ #TB_HideSelect{
660
+ z-index:99;
661
+ position:fixed;
662
+ top: 0;
663
+ left: 0;
664
+ background-color:#fff;
665
+ border:none;
666
+ filter:alpha(opacity=0);
667
+ -moz-opacity: 0;
668
+ opacity: 0;
669
+ height:100%;
670
+ width:100%;
671
+ }
672
+
673
+ * html #TB_HideSelect { /* ie6 hack */
674
+ position: absolute;
675
+ height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
676
+ }
677
+
678
+ #TB_iframeContent{
679
+ clear:both;
680
+ border:none;
681
+ margin-bottom:-1px;
682
+ margin-top:1px;
683
+ _margin-bottom:1px;
684
+ }
685
+
686
+ /* @end */
687
+
688
+ /* @group Debugging Section */
689
+
690
+ #debugging-toggle {
691
+ text-align: center;
692
+ }
693
+ #debugging-toggle img {
694
+ cursor: pointer;
695
+ }
696
+
697
+ #rdoc-debugging-section-dump {
698
+ display: none;
699
+ margin: 0 2em 2em;
700
+ background: #ccc;
701
+ border: 1px solid #999;
702
+ }
703
+
704
+
705
+
706
+ /* @end */
data/lib/#open_ehr.rb# ADDED
@@ -0,0 +1,11 @@
1
+ $:.unshift(File.dirname(__FILE__)) unless
2
+ $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
+
4
+ module OpenEHR
5
+ VERSION = '0.6.0'
6
+ autoload :AssumedLibraryTypes, 'open_ehr/assumed_library_types'
7
+ autoload :RM, 'open_ehr/rm'
8
+ autoload :AM, 'open_ehr/am'
9
+ autoload :Terminolog, 'open_ehr/terminology'
10
+ autoload :Serializer, 'open_ehr/serializer'
11
+ end
@@ -0,0 +1,21 @@
1
+
2
+ module OpenEhr
3
+ module AM
4
+ module Archetype
5
+ module Archetype_Description
6
+ class ARCHETYPE_DESCRIPTION
7
+ attr_accessor :archetype_package_uri, :lifecycle_state, :original_author, :other_contributors, :other_details, :details
8
+ def initialize(args ={ })
9
+ @details = args[:details] ? args[:details] : []
10
+ end
11
+ end
12
+
13
+ class ARCHETYPE_DESCRIPTION_ITEM
14
+ attr_accessor :archetype_package_uri, :lifecycle_state, :original_author, :other_contributors, :other_details
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
20
+
21
+