health-data-standards 0.3.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. data/Gemfile +5 -2
  2. data/Rakefile +6 -1
  3. data/VERSION +1 -1
  4. data/lib/health-data-standards.rb +27 -2
  5. data/lib/health-data-standards/export/view_helper.rb +15 -16
  6. data/lib/health-data-standards/ext/string.rb +5 -0
  7. data/lib/health-data-standards/ext/symbol.rb +8 -0
  8. data/lib/health-data-standards/import/c32/allergy_importer.rb +42 -0
  9. data/lib/health-data-standards/import/c32/encounter_importer.rb +80 -0
  10. data/lib/health-data-standards/import/c32/immunization_importer.rb +61 -0
  11. data/lib/health-data-standards/import/c32/medication_importer.rb +138 -0
  12. data/lib/health-data-standards/import/c32/patient_importer.rb +139 -0
  13. data/lib/health-data-standards/import/c32/procedure_importer.rb +55 -0
  14. data/lib/health-data-standards/import/c32/result_importer.rb +58 -0
  15. data/lib/health-data-standards/import/c32/section_importer.rb +214 -0
  16. data/lib/health-data-standards/import/c32/vital_sign_importer.rb +12 -0
  17. data/lib/health-data-standards/models/allergy.rb +4 -0
  18. data/lib/health-data-standards/models/encounter.rb +7 -0
  19. data/lib/health-data-standards/models/entry.rb +131 -3
  20. data/lib/health-data-standards/models/fulfillment_history.rb +11 -0
  21. data/lib/health-data-standards/models/immunization.rb +5 -0
  22. data/lib/health-data-standards/models/lab_result.rb +4 -0
  23. data/lib/health-data-standards/models/medication.rb +25 -0
  24. data/lib/health-data-standards/models/order_information.rb +9 -0
  25. data/lib/health-data-standards/models/procedure.rb +4 -0
  26. data/lib/health-data-standards/models/record.rb +1 -0
  27. data/lib/health-data-standards/util/code_system_helper.rb +41 -0
  28. data/lib/health-data-standards/util/hl7_helper.rb +25 -0
  29. data/templates/_allergies.c32.erb +3 -1
  30. data/templates/_care_goals.c32.erb +1 -1
  31. data/templates/_code_with_reference.c32.erb +10 -5
  32. data/templates/_conditions.c32.erb +2 -2
  33. data/templates/_encounters.c32.erb +2 -1
  34. data/templates/_immunizations.c32.erb +2 -1
  35. data/templates/_medical_equipment.c32.erb +1 -1
  36. data/templates/_medications.c32.erb +2 -1
  37. data/templates/_narrative_block.c32.erb +14 -0
  38. data/templates/_procedures.c32.erb +2 -1
  39. data/templates/_results.c32.erb +2 -2
  40. data/templates/_social_history.c32.erb +1 -1
  41. data/templates/_vital_signs.c32.erb +2 -2
  42. metadata +37 -16
@@ -16,7 +16,8 @@
16
16
  <templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.19" assigningAuthorityName="IHE PCC"/>
17
17
  <!-- Procedure activity template -->
18
18
  <id root="<%= UUID.generate %>"/>
19
- <%== render :partial => 'code_with_reference', :locals => {:entry => entry, :i => i, :section => 'procedures'} %>
19
+ <%== render :partial => 'code_with_reference', :locals => {:entry => entry, :i => i, :section => 'procedures',
20
+ :preferred_code_sets => ['CPT', 'ICD-9-CM', 'ICD-10-CM', 'HCPCS', 'SNOMED-CT']} %>
20
21
  <text>
21
22
  <reference value="#procedures-desc-<%= i %>"/>
22
23
  </text>
@@ -6,7 +6,7 @@
6
6
  <!--Diagnostic Results section template-->
7
7
  <code code="30954-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Results"/>
8
8
  <title>Diagnostic Results</title>
9
- <%== render :partial => 'narrative_block', :locals => {:entries => entries, :section => 'results'} %>
9
+ <%== render :partial => 'narrative_block', :locals => {:entries => entries, :section => 'results', :value=>true} %>
10
10
  <entry typeCode="DRIV">
11
11
  <organizer classCode="BATTERY" moodCode="EVN">
12
12
  <templateId root="2.16.840.1.113883.10.20.1.32"/>
@@ -39,7 +39,7 @@
39
39
  <templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.13" assigningAuthorityName="IHE PCC"/>
40
40
  <!-- Result observation template -->
41
41
  <id root="<%= UUID.generate %>"/>
42
- <%== code_display(entry) %>
42
+ <%== code_display(entry, 'preferred_code_sets' => ['LOINC', 'SNOMED-CT']) %>
43
43
  <text>
44
44
  <reference value="#results-desc-<%= i %>"/>
45
45
  </text>
@@ -16,7 +16,7 @@
16
16
  <templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.13.4" assigningAuthorityName="IHE PCC"/>
17
17
  <!-- Social history observation template -->
18
18
  <id root="<%= UUID.generate %>"/>
19
- <%== code_display(entry) %>
19
+ <%== code_display(entry, {:preferred_code_sets => ['SNOMED-CT']}) %>
20
20
  <statusCode code="completed"/>
21
21
  <effectiveTime value="<%= Time.at(entry.time).utc.to_formatted_s(:number) %>"/>
22
22
  </observation>
@@ -8,7 +8,7 @@
8
8
  <!--Vital Signs section template-->
9
9
  <code code="8716-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Vital signs"/>
10
10
  <title>Vital Signs</title>
11
- <%== render :partial => 'narrative_block', :locals => {:entries => entries, :section => 'vitals'} %>
11
+ <%== render :partial => 'narrative_block', :locals => {:entries => entries, :section => 'vitals', :value=>true} %>
12
12
  <entry typeCode="DRIV">
13
13
  <organizer classCode="CLUSTER" moodCode="EVN">
14
14
  <templateId root="2.16.840.1.113883.10.20.1.32" assigningAuthorityName="CCD"/>
@@ -28,7 +28,7 @@
28
28
  <templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.13" assigningAuthorityName="IHE PCC"/>
29
29
  <!-- Result observation template -->
30
30
  <id root="<%= UUID.generate %>"/>
31
- <%== code_display(entry) %>
31
+ <%== code_display(entry, {'preferred_code_sets' => ['LOINC']}) %>
32
32
  <text>
33
33
  <reference value="vitals-desc-<%= i %>"/>
34
34
  </text>
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.3.0
4
+ version: 0.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-02 00:00:00.000000000Z
12
+ date: 2011-12-19 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: erubis
16
- requirement: &2166084900 !ruby/object:Gem::Requirement
16
+ requirement: &2161045020 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '2.6'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2166084900
24
+ version_requirements: *2161045020
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: mongoid
27
- requirement: &2166083200 !ruby/object:Gem::Requirement
27
+ requirement: &2161039400 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.3.3
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2166083200
35
+ version_requirements: *2161039400
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: uuid
38
- requirement: &2166081180 !ruby/object:Gem::Requirement
38
+ requirement: &2161037460 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,29 +43,29 @@ dependencies:
43
43
  version: 2.3.4
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2166081180
46
+ version_requirements: *2161037460
47
47
  - !ruby/object:Gem::Dependency
48
- name: quality-measure-engine
49
- requirement: &2166080160 !ruby/object:Gem::Requirement
48
+ name: builder
49
+ requirement: &2161035700 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: 1.0.0
54
+ version: 3.0.0
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *2166080160
57
+ version_requirements: *2161035700
58
58
  - !ruby/object:Gem::Dependency
59
- name: builder
60
- requirement: &2166078960 !ruby/object:Gem::Requirement
59
+ name: nokogiri
60
+ requirement: &2161033620 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
64
64
  - !ruby/object:Gem::Version
65
- version: 3.0.0
65
+ version: 1.4.7
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *2166078960
68
+ version_requirements: *2161033620
69
69
  description: A library for generating and consuming various healthcare related formats.
70
70
  This includes HITSP C32, ASTM CCR and PQRI.
71
71
  email: talk@projectpophealth.org
@@ -79,8 +79,29 @@ files:
79
79
  - lib/health-data-standards/export/rendering_context.rb
80
80
  - lib/health-data-standards/export/template_helper.rb
81
81
  - lib/health-data-standards/export/view_helper.rb
82
+ - lib/health-data-standards/ext/string.rb
83
+ - lib/health-data-standards/ext/symbol.rb
84
+ - lib/health-data-standards/import/c32/allergy_importer.rb
85
+ - lib/health-data-standards/import/c32/encounter_importer.rb
86
+ - lib/health-data-standards/import/c32/immunization_importer.rb
87
+ - lib/health-data-standards/import/c32/medication_importer.rb
88
+ - lib/health-data-standards/import/c32/patient_importer.rb
89
+ - lib/health-data-standards/import/c32/procedure_importer.rb
90
+ - lib/health-data-standards/import/c32/result_importer.rb
91
+ - lib/health-data-standards/import/c32/section_importer.rb
92
+ - lib/health-data-standards/import/c32/vital_sign_importer.rb
93
+ - lib/health-data-standards/models/allergy.rb
94
+ - lib/health-data-standards/models/encounter.rb
82
95
  - lib/health-data-standards/models/entry.rb
96
+ - lib/health-data-standards/models/fulfillment_history.rb
97
+ - lib/health-data-standards/models/immunization.rb
98
+ - lib/health-data-standards/models/lab_result.rb
99
+ - lib/health-data-standards/models/medication.rb
100
+ - lib/health-data-standards/models/order_information.rb
101
+ - lib/health-data-standards/models/procedure.rb
83
102
  - lib/health-data-standards/models/record.rb
103
+ - lib/health-data-standards/util/code_system_helper.rb
104
+ - lib/health-data-standards/util/hl7_helper.rb
84
105
  - lib/health-data-standards.rb
85
106
  - templates/_allergies.c32.erb
86
107
  - templates/_care_goals.c32.erb