health-data-standards 0.7.1 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. data/Gemfile +9 -1
  2. data/Rakefile +14 -4
  3. data/lib/health-data-standards.rb +23 -0
  4. data/lib/health-data-standards/export/ccr.rb +55 -56
  5. data/lib/health-data-standards/export/hdata/metadata.rb +16 -0
  6. data/lib/health-data-standards/export/html.rb +21 -0
  7. data/lib/health-data-standards/export/template_helper.rb +3 -0
  8. data/lib/health-data-standards/export/view_helper.rb +29 -5
  9. data/lib/health-data-standards/import/c32/condition_importer.rb +31 -33
  10. data/lib/health-data-standards/import/c32/encounter_importer.rb +4 -6
  11. data/lib/health-data-standards/import/c32/medication_importer.rb +1 -5
  12. data/lib/health-data-standards/import/c32/organization_importer.rb +23 -0
  13. data/lib/health-data-standards/import/c32/patient_importer.rb +1 -4
  14. data/lib/health-data-standards/import/c32/provider_importer.rb +43 -30
  15. data/lib/health-data-standards/import/c32/section_importer.rb +20 -41
  16. data/lib/health-data-standards/import/ccr/patient_importer.rb +27 -10
  17. data/lib/health-data-standards/import/ccr/provider_importer.rb +29 -41
  18. data/lib/health-data-standards/import/ccr/section_importer.rb +38 -27
  19. data/lib/health-data-standards/import/green_c32/allergy_importer.rb +20 -0
  20. data/lib/health-data-standards/import/green_c32/condition_importer.rb +2 -3
  21. data/lib/health-data-standards/import/green_c32/encounter_importer.rb +42 -0
  22. data/lib/health-data-standards/import/green_c32/immunization_importer.rb +23 -0
  23. data/lib/health-data-standards/import/green_c32/medication_importer.rb +69 -0
  24. data/lib/health-data-standards/import/green_c32/procedure_importer.rb +35 -0
  25. data/lib/health-data-standards/import/green_c32/result_importer.rb +21 -8
  26. data/lib/health-data-standards/import/green_c32/section_importer.rb +55 -9
  27. data/lib/health-data-standards/import/green_c32/social_history_importer.rb +18 -0
  28. data/lib/health-data-standards/import/green_c32/vital_sign_importer.rb +21 -0
  29. data/lib/health-data-standards/import/hdata/metadata_importer.rb +82 -0
  30. data/lib/health-data-standards/import/provider_import_utils.rb +23 -0
  31. data/lib/health-data-standards/models/address.rb +11 -0
  32. data/lib/health-data-standards/models/allergy.rb +1 -0
  33. data/lib/health-data-standards/models/condition.rb +1 -1
  34. data/lib/health-data-standards/models/encounter.rb +11 -6
  35. data/lib/health-data-standards/models/entry.rb +16 -5
  36. data/lib/health-data-standards/models/fulfillment_history.rb +3 -5
  37. data/lib/health-data-standards/models/immunization.rb +7 -1
  38. data/lib/health-data-standards/models/medication.rb +4 -3
  39. data/lib/health-data-standards/models/metadata/author.rb +16 -0
  40. data/lib/health-data-standards/models/metadata/base.rb +20 -0
  41. data/lib/health-data-standards/models/metadata/change_info.rb +9 -0
  42. data/lib/health-data-standards/models/metadata/link_info.rb +9 -0
  43. data/lib/health-data-standards/models/metadata/pedigree.rb +15 -0
  44. data/lib/health-data-standards/models/organization.rb +8 -0
  45. data/lib/health-data-standards/models/procedure.rb +5 -2
  46. data/lib/health-data-standards/models/provider.rb +6 -1
  47. data/lib/health-data-standards/models/record.rb +13 -3
  48. data/lib/health-data-standards/models/social_history.rb +3 -0
  49. data/lib/health-data-standards/models/telecom.rb +9 -0
  50. data/lib/health-data-standards/models/vital_sign.rb +2 -0
  51. data/lib/health-data-standards/util/code_system_helper.rb +3 -1
  52. data/templates/_address.gc32.erb +9 -0
  53. data/templates/_allergies.c32.erb +2 -2
  54. data/templates/_allergy.gc32.erb +13 -0
  55. data/templates/_care_goals.c32.erb +1 -1
  56. data/templates/_condition.gc32.erb +6 -6
  57. data/templates/_conditions.c32.erb +2 -2
  58. data/templates/_encounter.gc32.erb +32 -0
  59. data/templates/_encounters.c32.erb +1 -1
  60. data/templates/_immunization.gc32.erb +9 -0
  61. data/templates/_immunizations.c32.erb +1 -1
  62. data/templates/_medical_equipment.c32.erb +1 -1
  63. data/templates/_medication.gc32.erb +60 -0
  64. data/templates/_medications.c32.erb +1 -1
  65. data/templates/_narrative_block.c32.erb +1 -1
  66. data/templates/_organization.gc32.erb +10 -0
  67. data/templates/_pedigree.hdata.erb +24 -0
  68. data/templates/_procedure.gc32.erb +8 -0
  69. data/templates/_procedures.c32.erb +1 -1
  70. data/templates/_provider.gc32.erb +19 -0
  71. data/templates/_results.c32.erb +1 -1
  72. data/templates/_social_history.c32.erb +1 -1
  73. data/templates/_social_history.gc32.erb +6 -0
  74. data/templates/_telecom.gc32.erb +1 -0
  75. data/templates/_vital_sign.gc32.erb +12 -0
  76. data/templates/_vital_signs.c32.erb +1 -1
  77. data/templates/metadata.hdata.erb +35 -0
  78. data/templates/show.html.erb +287 -0
  79. metadata +50 -15
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: health-data-standards
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.8.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-17 00:00:00.000000000 -05:00
13
- default_executable:
12
+ date: 2012-05-10 00:00:00.000000000Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: erubis
17
- requirement: &2153337220 !ruby/object:Gem::Requirement
16
+ requirement: &2158260600 !ruby/object:Gem::Requirement
18
17
  none: false
19
18
  requirements:
20
19
  - - ~>
@@ -22,10 +21,10 @@ dependencies:
22
21
  version: '2.6'
23
22
  type: :runtime
24
23
  prerelease: false
25
- version_requirements: *2153337220
24
+ version_requirements: *2158260600
26
25
  - !ruby/object:Gem::Dependency
27
26
  name: mongoid
28
- requirement: &2153336700 !ruby/object:Gem::Requirement
27
+ requirement: &2158246720 !ruby/object:Gem::Requirement
29
28
  none: false
30
29
  requirements:
31
30
  - - ~>
@@ -33,10 +32,10 @@ dependencies:
33
32
  version: 2.4.2
34
33
  type: :runtime
35
34
  prerelease: false
36
- version_requirements: *2153336700
35
+ version_requirements: *2158246720
37
36
  - !ruby/object:Gem::Dependency
38
37
  name: uuid
39
- requirement: &2153336240 !ruby/object:Gem::Requirement
38
+ requirement: &2158246160 !ruby/object:Gem::Requirement
40
39
  none: false
41
40
  requirements:
42
41
  - - ~>
@@ -44,10 +43,10 @@ dependencies:
44
43
  version: 2.3.4
45
44
  type: :runtime
46
45
  prerelease: false
47
- version_requirements: *2153336240
46
+ version_requirements: *2158246160
48
47
  - !ruby/object:Gem::Dependency
49
48
  name: builder
50
- requirement: &2153335760 !ruby/object:Gem::Requirement
49
+ requirement: &2158245480 !ruby/object:Gem::Requirement
51
50
  none: false
52
51
  requirements:
53
52
  - - ~>
@@ -55,10 +54,10 @@ dependencies:
55
54
  version: 3.0.0
56
55
  type: :runtime
57
56
  prerelease: false
58
- version_requirements: *2153335760
57
+ version_requirements: *2158245480
59
58
  - !ruby/object:Gem::Dependency
60
59
  name: nokogiri
61
- requirement: &2153335280 !ruby/object:Gem::Requirement
60
+ requirement: &2158244200 !ruby/object:Gem::Requirement
62
61
  none: false
63
62
  requirements:
64
63
  - - ~>
@@ -66,7 +65,7 @@ dependencies:
66
65
  version: 1.4.7
67
66
  type: :runtime
68
67
  prerelease: false
69
- version_requirements: *2153335280
68
+ version_requirements: *2158244200
70
69
  description: A library for generating and consuming various healthcare related formats.
71
70
  This includes HITSP C32, ASTM CCR and PQRI.
72
71
  email: talk@projectpophealth.org
@@ -79,6 +78,8 @@ files:
79
78
  - lib/health-data-standards/export/csv.rb
80
79
  - lib/health-data-standards/export/green_c32/entry.rb
81
80
  - lib/health-data-standards/export/green_c32/export_generator.rb
81
+ - lib/health-data-standards/export/hdata/metadata.rb
82
+ - lib/health-data-standards/export/html.rb
82
83
  - lib/health-data-standards/export/rendering_context.rb
83
84
  - lib/health-data-standards/export/template_helper.rb
84
85
  - lib/health-data-standards/export/view_helper.rb
@@ -89,6 +90,7 @@ files:
89
90
  - lib/health-data-standards/import/c32/encounter_importer.rb
90
91
  - lib/health-data-standards/import/c32/immunization_importer.rb
91
92
  - lib/health-data-standards/import/c32/medication_importer.rb
93
+ - lib/health-data-standards/import/c32/organization_importer.rb
92
94
  - lib/health-data-standards/import/c32/patient_importer.rb
93
95
  - lib/health-data-standards/import/c32/procedure_importer.rb
94
96
  - lib/health-data-standards/import/c32/provider_importer.rb
@@ -101,10 +103,20 @@ files:
101
103
  - lib/health-data-standards/import/ccr/result_importer.rb
102
104
  - lib/health-data-standards/import/ccr/section_importer.rb
103
105
  - lib/health-data-standards/import/ccr/simple_importer.rb
106
+ - lib/health-data-standards/import/green_c32/allergy_importer.rb
104
107
  - lib/health-data-standards/import/green_c32/condition_importer.rb
108
+ - lib/health-data-standards/import/green_c32/encounter_importer.rb
109
+ - lib/health-data-standards/import/green_c32/immunization_importer.rb
110
+ - lib/health-data-standards/import/green_c32/medication_importer.rb
105
111
  - lib/health-data-standards/import/green_c32/patient_importer.rb
112
+ - lib/health-data-standards/import/green_c32/procedure_importer.rb
106
113
  - lib/health-data-standards/import/green_c32/result_importer.rb
107
114
  - lib/health-data-standards/import/green_c32/section_importer.rb
115
+ - lib/health-data-standards/import/green_c32/social_history_importer.rb
116
+ - lib/health-data-standards/import/green_c32/vital_sign_importer.rb
117
+ - lib/health-data-standards/import/hdata/metadata_importer.rb
118
+ - lib/health-data-standards/import/provider_import_utils.rb
119
+ - lib/health-data-standards/models/address.rb
108
120
  - lib/health-data-standards/models/allergy.rb
109
121
  - lib/health-data-standards/models/comment.rb
110
122
  - lib/health-data-standards/models/condition.rb
@@ -114,39 +126,61 @@ files:
114
126
  - lib/health-data-standards/models/immunization.rb
115
127
  - lib/health-data-standards/models/lab_result.rb
116
128
  - lib/health-data-standards/models/medication.rb
129
+ - lib/health-data-standards/models/metadata/author.rb
130
+ - lib/health-data-standards/models/metadata/base.rb
131
+ - lib/health-data-standards/models/metadata/change_info.rb
132
+ - lib/health-data-standards/models/metadata/link_info.rb
133
+ - lib/health-data-standards/models/metadata/pedigree.rb
117
134
  - lib/health-data-standards/models/order_information.rb
135
+ - lib/health-data-standards/models/organization.rb
118
136
  - lib/health-data-standards/models/procedure.rb
119
137
  - lib/health-data-standards/models/provider.rb
120
138
  - lib/health-data-standards/models/provider_performance.rb
121
139
  - lib/health-data-standards/models/record.rb
140
+ - lib/health-data-standards/models/social_history.rb
141
+ - lib/health-data-standards/models/telecom.rb
122
142
  - lib/health-data-standards/models/treating_provider.rb
143
+ - lib/health-data-standards/models/vital_sign.rb
123
144
  - lib/health-data-standards/util/code_system_helper.rb
124
145
  - lib/health-data-standards/util/hl7_helper.rb
125
146
  - lib/health-data-standards.rb
147
+ - templates/_address.gc32.erb
126
148
  - templates/_allergies.c32.erb
127
149
  - templates/_allergies_no_current.c32.erb
150
+ - templates/_allergy.gc32.erb
128
151
  - templates/_care_goals.c32.erb
129
152
  - templates/_code_with_reference.c32.erb
130
153
  - templates/_condition.gc32.erb
131
154
  - templates/_conditions.c32.erb
132
155
  - templates/_conditions_no_current.c32.erb
156
+ - templates/_encounter.gc32.erb
133
157
  - templates/_encounters.c32.erb
158
+ - templates/_immunization.gc32.erb
134
159
  - templates/_immunizations.c32.erb
135
160
  - templates/_medical_equipment.c32.erb
161
+ - templates/_medication.gc32.erb
136
162
  - templates/_medications.c32.erb
137
163
  - templates/_medications_no_current.c32.erb
138
164
  - templates/_narrative_block.c32.erb
165
+ - templates/_organization.gc32.erb
166
+ - templates/_pedigree.hdata.erb
167
+ - templates/_procedure.gc32.erb
139
168
  - templates/_procedures.c32.erb
169
+ - templates/_provider.gc32.erb
140
170
  - templates/_result.gc32.erb
141
171
  - templates/_results.c32.erb
142
172
  - templates/_social_history.c32.erb
173
+ - templates/_social_history.gc32.erb
174
+ - templates/_telecom.gc32.erb
175
+ - templates/_vital_sign.gc32.erb
143
176
  - templates/_vital_signs.c32.erb
177
+ - templates/metadata.hdata.erb
144
178
  - templates/show.c32.erb
179
+ - templates/show.html.erb
145
180
  - Gemfile
146
181
  - README.md
147
182
  - Rakefile
148
183
  - VERSION
149
- has_rdoc: true
150
184
  homepage: http://barrel.mitre.org/health-data-standards
151
185
  licenses: []
152
186
  post_install_message:
@@ -167,8 +201,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
201
  version: '0'
168
202
  requirements: []
169
203
  rubyforge_project:
170
- rubygems_version: 1.6.2
204
+ rubygems_version: 1.8.10
171
205
  signing_key:
172
206
  specification_version: 3
173
207
  summary: A library for generating and consuming various healthcare related formats.
174
208
  test_files: []
209
+ has_rdoc: