open_ehr 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/Gemfile +14 -0
- data/Gemfile.lock +43 -0
- data/Guardfile +9 -0
- data/History.txt +4 -0
- data/Manifest.txt +16 -0
- data/PostInstall.txt +9 -0
- data/README.rdoc +66 -0
- data/Rakefile +49 -0
- data/VERSION +1 -0
- data/doc/README_rdoc.html +148 -0
- data/doc/created.rid +2 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +54 -0
- data/doc/js/darkfish.js +116 -0
- data/doc/js/jquery.js +32 -0
- data/doc/js/quicksearch.js +114 -0
- data/doc/js/thickbox-compressed.js +10 -0
- data/doc/openehr_terminology.xml +2700 -0
- data/doc/rdoc.css +706 -0
- data/lib/#open_ehr.rb# +11 -0
- data/lib/open_ehr/am/archetype/archetype_description/archetype_description.rb +21 -0
- data/lib/open_ehr/am/archetype/assertion.rb +190 -0
- data/lib/open_ehr/am/archetype/constraint_model/primitive.rb +296 -0
- data/lib/open_ehr/am/archetype/constraint_model.rb +340 -0
- data/lib/open_ehr/am/archetype/ontology.rb +97 -0
- data/lib/open_ehr/am/archetype.rb +134 -0
- data/lib/open_ehr/am/open_ehr_profile/data_types/basic.rb +29 -0
- data/lib/open_ehr/am/open_ehr_profile/data_types/quantity.rb +19 -0
- data/lib/open_ehr/am/open_ehr_profile/data_types/text.rb +12 -0
- data/lib/open_ehr/am.rb +8 -0
- data/lib/open_ehr/assumed_library_types.rb +627 -0
- data/lib/open_ehr/parser/xml_perser.rb +13 -0
- data/lib/open_ehr/parser.rb +19 -0
- data/lib/open_ehr/rm/common/archetyped.rb +182 -0
- data/lib/open_ehr/rm/common/change_control.rb +332 -0
- data/lib/open_ehr/rm/common/directory.rb +29 -0
- data/lib/open_ehr/rm/common/generic.rb +216 -0
- data/lib/open_ehr/rm/common/resource.rb +154 -0
- data/lib/open_ehr/rm/common.rb +14 -0
- data/lib/open_ehr/rm/composition/content/entry.rb +246 -0
- data/lib/open_ehr/rm/composition/content/navigation.rb +31 -0
- data/lib/open_ehr/rm/composition/content.rb +22 -0
- data/lib/open_ehr/rm/composition.rb +103 -0
- data/lib/open_ehr/rm/data_structures/history.rb +117 -0
- data/lib/open_ehr/rm/data_structures/item_structure/representation.rb +63 -0
- data/lib/open_ehr/rm/data_structures/item_structure.rb +216 -0
- data/lib/open_ehr/rm/data_structures.rb +25 -0
- data/lib/open_ehr/rm/data_types/basic.rb +108 -0
- data/lib/open_ehr/rm/data_types/charset.lst +818 -0
- data/lib/open_ehr/rm/data_types/charset_extract.rb +24 -0
- data/lib/open_ehr/rm/data_types/encapsulated.rb +98 -0
- data/lib/open_ehr/rm/data_types/quantity/date_time.rb +229 -0
- data/lib/open_ehr/rm/data_types/quantity.rb +403 -0
- data/lib/open_ehr/rm/data_types/text.rb +168 -0
- data/lib/open_ehr/rm/data_types/time_specification.rb +75 -0
- data/lib/open_ehr/rm/data_types/uri.rb +82 -0
- data/lib/open_ehr/rm/data_types.rb +14 -0
- data/lib/open_ehr/rm/demographic.rb +269 -0
- data/lib/open_ehr/rm/ehr.rb +162 -0
- data/lib/open_ehr/rm/integration.rb +27 -0
- data/lib/open_ehr/rm/security.rb +12 -0
- data/lib/open_ehr/rm/support/assumed_types.rb +81 -0
- data/lib/open_ehr/rm/support/definition.rb +15 -0
- data/lib/open_ehr/rm/support/identification.rb +408 -0
- data/lib/open_ehr/rm/support/measurement.rb +17 -0
- data/lib/open_ehr/rm/support/terminology.rb +135 -0
- data/lib/open_ehr/rm/support.rb +14 -0
- data/lib/open_ehr/rm.rb +16 -0
- data/lib/open_ehr/serializer.rb +272 -0
- data/lib/open_ehr/terminology/open_ehr_terminology.rb +41 -0
- data/lib/open_ehr/terminology.rb +7 -0
- data/lib/open_ehr/writer.rb +12 -0
- data/lib/open_ehr.rb +11 -0
- data/spec/lib/open_ehr/am/archetype/archetype_spec.rb +98 -0
- data/spec/lib/open_ehr/am/archetype/assertion/assertion_spec.rb +60 -0
- data/spec/lib/open_ehr/am/archetype/assertion/assertion_variable_spec.rb +30 -0
- data/spec/lib/open_ehr/am/archetype/assertion/expr_binary_operator.rb +40 -0
- data/spec/lib/open_ehr/am/archetype/assertion/expr_item_spec.rb +28 -0
- data/spec/lib/open_ehr/am/archetype/assertion/expr_leaf_spec.rb +34 -0
- data/spec/lib/open_ehr/am/archetype/assertion/expr_operator_spec.rb +25 -0
- data/spec/lib/open_ehr/am/archetype/assertion/expr_unary_operator_spec.rb +26 -0
- data/spec/lib/open_ehr/am/archetype/assertion/operator_kind_spec.rb +110 -0
- data/spec/lib/open_ehr/am/archetype/constraint_model/archetype_constraint_spec.rb +56 -0
- data/spec/lib/open_ehr/am/archetype/constraint_model/archetype_internal_ref_spec.rb +36 -0
- data/spec/lib/open_ehr/am/archetype/constraint_model/archetype_slot_spec.rb +61 -0
- data/spec/lib/open_ehr/am/archetype/constraint_model/c_attribute_spec.rb +59 -0
- data/spec/lib/open_ehr/am/archetype/constraint_model/c_complex_object_spec.rb +39 -0
- data/spec/lib/open_ehr/am/archetype/constraint_model/c_defined_object_spec.rb +53 -0
- data/spec/lib/open_ehr/am/archetype/constraint_model/c_domain_type_spec.rb +25 -0
- data/spec/lib/open_ehr/am/archetype/constraint_model/c_multiple_attribute_spec.rb +29 -0
- data/spec/lib/open_ehr/am/archetype/constraint_model/c_object_spec.rb +61 -0
- data/spec/lib/open_ehr/am/archetype/constraint_model/c_primitive_object_spec.rb +33 -0
- data/spec/lib/open_ehr/am/archetype/constraint_model/c_reference_object_spec.rb +17 -0
- data/spec/lib/open_ehr/am/archetype/constraint_model/c_single_attribute_spec.rb +28 -0
- data/spec/lib/open_ehr/am/archetype/constraint_model/cardinality_spec.rb +68 -0
- data/spec/lib/open_ehr/am/archetype/constraint_model/constraint_ref_spec.rb +29 -0
- data/spec/lib/open_ehr/am/archetype/constraint_model/primitive/c_boolean_spec.rb +52 -0
- data/spec/lib/open_ehr/am/archetype/constraint_model/primitive/c_date_spec.rb +80 -0
- data/spec/lib/open_ehr/am/archetype/constraint_model/primitive/c_date_time_spec.rb +106 -0
- data/spec/lib/open_ehr/am/archetype/constraint_model/primitive/c_duration_spec.rb +69 -0
- data/spec/lib/open_ehr/am/archetype/constraint_model/primitive/c_integer_spec.rb +62 -0
- data/spec/lib/open_ehr/am/archetype/constraint_model/primitive/c_primitive_spec.rb +39 -0
- data/spec/lib/open_ehr/am/archetype/constraint_model/primitive/c_real_spec.rb +14 -0
- data/spec/lib/open_ehr/am/archetype/constraint_model/primitive/c_string_spec.rb +69 -0
- data/spec/lib/open_ehr/am/archetype/constraint_model/primitive/c_time_spec.rb +79 -0
- data/spec/lib/open_ehr/am/archetype/ontology/archetype_ontology_spec.rb +59 -0
- data/spec/lib/open_ehr/am/archetype/ontology/archetype_term_spec.rb +43 -0
- data/spec/lib/open_ehr/am/archetype/validity_kind_spec.rb +42 -0
- data/spec/lib/open_ehr/assumed_library_types/interval_spec.rb +140 -0
- data/spec/lib/open_ehr/assumed_library_types/iso8601_date_spec.rb +236 -0
- data/spec/lib/open_ehr/assumed_library_types/iso8601_date_time_spec.rb +47 -0
- data/spec/lib/open_ehr/assumed_library_types/iso8601_duration_spec.rb +150 -0
- data/spec/lib/open_ehr/assumed_library_types/iso8601_time_spec.rb +234 -0
- data/spec/lib/open_ehr/assumed_library_types/iso8601_timezone_spec.rb +57 -0
- data/spec/lib/open_ehr/assumed_library_types/time_definitions_spec.rb +136 -0
- data/spec/lib/open_ehr/rm/common/archetyped/archetyped_spec.rb +50 -0
- data/spec/lib/open_ehr/rm/common/archetyped/feeder_audit_details_spec.rb +60 -0
- data/spec/lib/open_ehr/rm/common/archetyped/feeder_audit_spec.rb +51 -0
- data/spec/lib/open_ehr/rm/common/archetyped/link_spec.rb +42 -0
- data/spec/lib/open_ehr/rm/common/archetyped/locatable_spec.rb +89 -0
- data/spec/lib/open_ehr/rm/common/archetyped/pathable_spec.rb +42 -0
- data/spec/lib/open_ehr/rm/common/change_control/contribution_spec.rb +56 -0
- data/spec/lib/open_ehr/rm/common/change_control/imported_version_spec.rb +63 -0
- data/spec/lib/open_ehr/rm/common/change_control/original_version_spec.rb +71 -0
- data/spec/lib/open_ehr/rm/common/change_control/version_spec.rb +92 -0
- data/spec/lib/open_ehr/rm/common/change_control/versioned_object_spec.rb +285 -0
- data/spec/lib/open_ehr/rm/common/directory/folder_spec.rb +26 -0
- data/spec/lib/open_ehr/rm/common/generic/attestation_spec.rb +62 -0
- data/spec/lib/open_ehr/rm/common/generic/audit_details_spec.rb +51 -0
- data/spec/lib/open_ehr/rm/common/generic/participation_spec.rb +36 -0
- data/spec/lib/open_ehr/rm/common/generic/party_identified_spec.rb +64 -0
- data/spec/lib/open_ehr/rm/common/generic/party_proxy_spec.rb +18 -0
- data/spec/lib/open_ehr/rm/common/generic/party_related_spec.rb +24 -0
- data/spec/lib/open_ehr/rm/common/generic/revision_history_item_spec.rb +43 -0
- data/spec/lib/open_ehr/rm/common/generic/revision_history_spec.rb +45 -0
- data/spec/lib/open_ehr/rm/common/resource/authored_resource_spec.rb +68 -0
- data/spec/lib/open_ehr/rm/common/resource/resource_description_item_spec.rb +105 -0
- data/spec/lib/open_ehr/rm/common/resource/resource_description_spec.rb +74 -0
- data/spec/lib/open_ehr/rm/common/resource/translation_details_spec.rb +35 -0
- data/spec/lib/open_ehr/rm/composition/composition_spec.rb +92 -0
- data/spec/lib/open_ehr/rm/composition/content/content_item_spec.rb +14 -0
- data/spec/lib/open_ehr/rm/composition/content/entry/action_spec.rb +69 -0
- data/spec/lib/open_ehr/rm/composition/content/entry/activity_spec.rb +61 -0
- data/spec/lib/open_ehr/rm/composition/content/entry/admin_entry_spec.rb +38 -0
- data/spec/lib/open_ehr/rm/composition/content/entry/care_entry_spec.rb +37 -0
- data/spec/lib/open_ehr/rm/composition/content/entry/entry_spec.rb +88 -0
- data/spec/lib/open_ehr/rm/composition/content/entry/evaluation_spec.rb +37 -0
- data/spec/lib/open_ehr/rm/composition/content/entry/instruction_details_spec.rb +51 -0
- data/spec/lib/open_ehr/rm/composition/content/entry/instruction_spec.rb +62 -0
- data/spec/lib/open_ehr/rm/composition/content/entry/ism_transition_spec.rb +46 -0
- data/spec/lib/open_ehr/rm/composition/content/entry/observation_spec.rb +45 -0
- data/spec/lib/open_ehr/rm/composition/content/navigation/section_spec.rb +32 -0
- data/spec/lib/open_ehr/rm/composition/event_context_spec.rb +88 -0
- data/spec/lib/open_ehr/rm/data_structures/data_structure_spec.rb +21 -0
- data/spec/lib/open_ehr/rm/data_structures/history/event_spec.rb +44 -0
- data/spec/lib/open_ehr/rm/data_structures/history/history_spec.rb +67 -0
- data/spec/lib/open_ehr/rm/data_structures/history/interval_event_spec.rb +43 -0
- data/spec/lib/open_ehr/rm/data_structures/item_structure/item_list_spec.rb +53 -0
- data/spec/lib/open_ehr/rm/data_structures/item_structure/item_single_spec.rb +29 -0
- data/spec/lib/open_ehr/rm/data_structures/item_structure/item_table_spec.rb +147 -0
- data/spec/lib/open_ehr/rm/data_structures/item_structure/item_tree_spec.rb +48 -0
- data/spec/lib/open_ehr/rm/data_structures/item_structure/representation/cluster_spec.rb +26 -0
- data/spec/lib/open_ehr/rm/data_structures/item_structure/representation/element_spec.rb +22 -0
- data/spec/lib/open_ehr/rm/data_types/basic/data_value_spec.rb +17 -0
- data/spec/lib/open_ehr/rm/data_types/basic/dv_boolean_spec.rb +29 -0
- data/spec/lib/open_ehr/rm/data_types/basic/dv_identifier_spec.rb +108 -0
- data/spec/lib/open_ehr/rm/data_types/basic/dv_state_spec.rb +44 -0
- data/spec/lib/open_ehr/rm/data_types/encapsulated/dv_encapsulated_spec.rb +42 -0
- data/spec/lib/open_ehr/rm/data_types/encapsulated/dv_multimedia_spec.rb +79 -0
- data/spec/lib/open_ehr/rm/data_types/encapsulated/dv_parsable_spec.rb +34 -0
- data/spec/lib/open_ehr/rm/data_types/quantity/date_time/dv_date_spec.rb +64 -0
- data/spec/lib/open_ehr/rm/data_types/quantity/date_time/dv_date_time_spec.rb +25 -0
- data/spec/lib/open_ehr/rm/data_types/quantity/date_time/dv_tempral_spec.rb +24 -0
- data/spec/lib/open_ehr/rm/data_types/quantity/date_time/dv_time_spec.rb +37 -0
- data/spec/lib/open_ehr/rm/data_types/quantity/dv_absolute_quantity_spec.rb +35 -0
- data/spec/lib/open_ehr/rm/data_types/quantity/dv_amount_spec.rb +105 -0
- data/spec/lib/open_ehr/rm/data_types/quantity/dv_count_spec.rb +12 -0
- data/spec/lib/open_ehr/rm/data_types/quantity/dv_interval_spec.rb +17 -0
- data/spec/lib/open_ehr/rm/data_types/quantity/dv_ordered_spec.rb +60 -0
- data/spec/lib/open_ehr/rm/data_types/quantity/dv_ordinal_spec.rb +74 -0
- data/spec/lib/open_ehr/rm/data_types/quantity/dv_proportion_spec.rb +162 -0
- data/spec/lib/open_ehr/rm/data_types/quantity/dv_quantified_spec.rb +36 -0
- data/spec/lib/open_ehr/rm/data_types/quantity/dv_quantity_spec.rb +78 -0
- data/spec/lib/open_ehr/rm/data_types/quantity/proportion_kind_spec.rb +24 -0
- data/spec/lib/open_ehr/rm/data_types/quantity/reference_range_spec.rb +43 -0
- data/spec/lib/open_ehr/rm/data_types/text/code_phrase_spec.rb +23 -0
- data/spec/lib/open_ehr/rm/data_types/text/dv_paragraph_spec.rb +13 -0
- data/spec/lib/open_ehr/rm/data_types/text/dv_text_spec.rb +57 -0
- data/spec/lib/open_ehr/rm/data_types/text/term_mapping_spec.rb +59 -0
- data/spec/lib/open_ehr/rm/data_types/uri/dv_ehr_uri_spec.rb +21 -0
- data/spec/lib/open_ehr/rm/data_types/uri/dv_uri_spec.rb +36 -0
- data/spec/lib/open_ehr/rm/demographic/actor_spec.rb +79 -0
- data/spec/lib/open_ehr/rm/demographic/address_spec.rb +33 -0
- data/spec/lib/open_ehr/rm/demographic/capability_spec.rb +37 -0
- data/spec/lib/open_ehr/rm/demographic/contact_spec.rb +45 -0
- data/spec/lib/open_ehr/rm/demographic/party_identity_spec.rb +32 -0
- data/spec/lib/open_ehr/rm/demographic/party_relationship_spec.rb +84 -0
- data/spec/lib/open_ehr/rm/demographic/party_spec.rb +133 -0
- data/spec/lib/open_ehr/rm/demographic/role_spec.rb +58 -0
- data/spec/lib/open_ehr/rm/ehr/ehr_access_spec.rb +33 -0
- data/spec/lib/open_ehr/rm/ehr/ehr_spec.rb +139 -0
- data/spec/lib/open_ehr/rm/ehr/ehr_status_spec.rb +52 -0
- data/spec/lib/open_ehr/rm/ehr/versioned_composition_spec.rb +33 -0
- data/spec/lib/open_ehr/rm/integration/generic_entry_spec.rb +31 -0
- data/spec/lib/open_ehr/rm/support/identification/access_group_ref_spec.rb +19 -0
- data/spec/lib/open_ehr/rm/support/identification/archetype_id_spec.rb +152 -0
- data/spec/lib/open_ehr/rm/support/identification/generic_id_spec.rb +33 -0
- data/spec/lib/open_ehr/rm/support/identification/hier_object_id_spec.rb +12 -0
- data/spec/lib/open_ehr/rm/support/identification/internet_id_spec.rb +12 -0
- data/spec/lib/open_ehr/rm/support/identification/iso_oid_spec.rb +12 -0
- data/spec/lib/open_ehr/rm/support/identification/locatable_ref_spec.rb +34 -0
- data/spec/lib/open_ehr/rm/support/identification/object_id_spec.rb +24 -0
- data/spec/lib/open_ehr/rm/support/identification/object_ref_spec.rb +33 -0
- data/spec/lib/open_ehr/rm/support/identification/object_version_id_spec.rb +60 -0
- data/spec/lib/open_ehr/rm/support/identification/party_ref_spec.rb +29 -0
- data/spec/lib/open_ehr/rm/support/identification/template_id_spec.rb +12 -0
- data/spec/lib/open_ehr/rm/support/identification/terminology_id_spec.rb +33 -0
- data/spec/lib/open_ehr/rm/support/identification/uid_based_id_spec.rb +50 -0
- data/spec/lib/open_ehr/rm/support/identification/uid_spec.rb +29 -0
- data/spec/lib/open_ehr/rm/support/identification/version_tree_id_spec.rb +104 -0
- data/spec/lib/open_ehr/rm/support/measurement_service_spec.rb +7 -0
- data/spec/lib/open_ehr/rm/support/terminology_service_spec.rb +24 -0
- data/spec/lib/open_ehr/serializer/adl-test-entry.most_minimal.test.adl +20 -0
- data/spec/lib/open_ehr/serializer/adl_serializer_spec.rb +47 -0
- data/spec/lib/open_ehr/serializer/openEHR-EHR-SECTION.test.v1.adl +38 -0
- data/spec/lib/open_ehr/serializer/openEHR-EHR-SECTION.test.v1.xml +58 -0
- data/spec/lib/open_ehr/serializer/sample_archetype_spec.rb +44 -0
- data/spec/lib/open_ehr/serializer/xml_serializer_spec.rb +49 -0
- data/spec/lib/open_ehr/terminology/open_ehr_terminology_spec.rb +40 -0
- data/spec/rcov.opts +1 -0
- data/spec/spec.opts +5 -0
- data/spec/spec_helper.rb +54 -0
- 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
data/spec/spec_helper.rb
ADDED
@@ -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: []
|