health-data-standards 0.8.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. data/Rakefile +1 -1
  2. data/lib/health-data-standards/export/ccr.rb +1 -1
  3. data/lib/health-data-standards/export/csv.rb +6 -1
  4. data/lib/health-data-standards/export/green_c32/entry.rb +1 -1
  5. data/lib/health-data-standards/export/green_c32/record.rb +15 -0
  6. data/lib/health-data-standards/export/template_helper.rb +0 -2
  7. data/lib/health-data-standards/export/view_helper.rb +28 -2
  8. data/lib/health-data-standards/import/c32/allergy_importer.rb +12 -8
  9. data/lib/health-data-standards/import/c32/care_goal_importer.rb +39 -0
  10. data/lib/health-data-standards/import/c32/condition_importer.rb +10 -4
  11. data/lib/health-data-standards/import/c32/encounter_importer.rb +16 -10
  12. data/lib/health-data-standards/import/c32/immunization_importer.rb +2 -2
  13. data/lib/health-data-standards/import/c32/insurance_provider_importer.rb +42 -0
  14. data/lib/health-data-standards/import/c32/medical_equipment_importer.rb +45 -0
  15. data/lib/health-data-standards/import/c32/medication_importer.rb +35 -48
  16. data/lib/health-data-standards/import/c32/organization_importer.rb +1 -1
  17. data/lib/health-data-standards/import/c32/patient_importer.rb +3 -3
  18. data/lib/health-data-standards/import/c32/procedure_importer.rb +12 -8
  19. data/lib/health-data-standards/import/c32/result_importer.rb +11 -14
  20. data/lib/health-data-standards/import/c32/section_importer.rb +60 -29
  21. data/lib/health-data-standards/import/ccda/allergy_importer.rb +20 -0
  22. data/lib/health-data-standards/import/ccda/care_goal_importer.rb +13 -0
  23. data/lib/health-data-standards/import/ccda/condition_importer.rb +20 -0
  24. data/lib/health-data-standards/import/ccda/encounter_importer.rb +18 -0
  25. data/lib/health-data-standards/import/ccda/immunization_importer.rb +16 -0
  26. data/lib/health-data-standards/import/ccda/insurance_provider_importer.rb +14 -0
  27. data/lib/health-data-standards/import/ccda/medical_equipment_importer.rb +16 -0
  28. data/lib/health-data-standards/import/ccda/medication_importer.rb +19 -0
  29. data/lib/health-data-standards/import/ccda/patient_importer.rb +29 -0
  30. data/lib/health-data-standards/import/ccda/procedure_importer.rb +17 -0
  31. data/lib/health-data-standards/import/ccda/result_importer.rb +13 -0
  32. data/lib/health-data-standards/import/ccda/vital_sign_importer.rb +12 -0
  33. data/lib/health-data-standards/import/ccr/patient_importer.rb +16 -3
  34. data/lib/health-data-standards/import/green_c32/advance_directive_importer.rb +14 -0
  35. data/lib/health-data-standards/import/green_c32/allergy_importer.rb +1 -1
  36. data/lib/health-data-standards/import/green_c32/care_goal_importer.rb +26 -0
  37. data/lib/health-data-standards/import/green_c32/condition_importer.rb +0 -6
  38. data/lib/health-data-standards/import/green_c32/encounter_importer.rb +1 -6
  39. data/lib/health-data-standards/import/green_c32/immunization_importer.rb +1 -1
  40. data/lib/health-data-standards/import/green_c32/medical_equipment_importer.rb +24 -0
  41. data/lib/health-data-standards/import/green_c32/medication_importer.rb +1 -1
  42. data/lib/health-data-standards/import/green_c32/procedure_importer.rb +2 -10
  43. data/lib/health-data-standards/import/green_c32/section_importer.rb +36 -5
  44. data/lib/health-data-standards/import/green_c32/social_history_importer.rb +1 -6
  45. data/lib/health-data-standards/import/green_c32/support_importer.rb +22 -0
  46. data/lib/health-data-standards/models/allergy.rb +1 -1
  47. data/lib/health-data-standards/models/condition.rb +3 -1
  48. data/lib/health-data-standards/models/encounter.rb +1 -3
  49. data/lib/health-data-standards/models/entry.rb +23 -21
  50. data/lib/health-data-standards/models/guarantor.rb +10 -0
  51. data/lib/health-data-standards/models/insurance_provider.rb +17 -0
  52. data/lib/health-data-standards/models/medical_equipment.rb +5 -0
  53. data/lib/health-data-standards/models/medication.rb +0 -2
  54. data/lib/health-data-standards/models/person.rb +4 -0
  55. data/lib/health-data-standards/models/personable.rb +13 -0
  56. data/lib/health-data-standards/models/procedure.rb +0 -2
  57. data/lib/health-data-standards/models/provider.rb +1 -6
  58. data/lib/health-data-standards/models/record.rb +11 -5
  59. data/lib/health-data-standards/models/support.rb +18 -0
  60. data/lib/health-data-standards.rb +28 -2
  61. data/templates/_advance_directive.gc32.erb +8 -0
  62. data/templates/_allergy.gc32.erb +17 -7
  63. data/templates/_care_goal.gc32.erb +8 -0
  64. data/templates/_condition.gc32.erb +4 -6
  65. data/templates/_conditions.c32.erb +3 -0
  66. data/templates/_encounter.gc32.erb +1 -7
  67. data/templates/_entry.gc32.erb +14 -0
  68. data/templates/_immunization.gc32.erb +4 -2
  69. data/templates/_insurance_provider.gc32.erb +0 -0
  70. data/templates/_medical_equipment.c32.erb +6 -0
  71. data/templates/_medical_equipment.gc32.erb +7 -0
  72. data/templates/_medication.gc32.erb +26 -14
  73. data/templates/_medications_no_current.c32.erb +26 -6
  74. data/templates/_name.gc32.erb +11 -0
  75. data/templates/_narrative_block.c32.erb +1 -1
  76. data/templates/_procedure.gc32.erb +6 -4
  77. data/templates/_result.gc32.erb +2 -8
  78. data/templates/_results.c32.erb +8 -2
  79. data/templates/_social_history.gc32.erb +3 -1
  80. data/templates/_support.gc32.erb +14 -0
  81. data/templates/_vital_sign.gc32.erb +2 -7
  82. data/templates/_vital_signs.c32.erb +8 -2
  83. data/templates/record.gc32.erb +81 -0
  84. data/templates/show.c32.erb +1 -1
  85. metadata +48 -16
  86. data/lib/health-data-standards/models/comment.rb +0 -2
  87. data/lib/health-data-standards/models/social_history.rb +0 -3
@@ -1,10 +1,30 @@
1
- <component>
2
1
  <!-- Medications: patient has no medications -->
3
2
  <section>
3
+ <component>
4
+ <!-- Medications: patient has no medications -->
5
+ <section>
4
6
  <templateId root="2.16.840.1.113883.10.20.1.8" assigningAuthorityName="HL7 SDTC CCD"/>
5
7
  <templateId root="2.16.840.1.113883.3.88.11.83.112" assigningAuthorityName="HITSP"/>
6
8
  <templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.19" assigningAuthorityName="IHE"/>
7
9
  <code code="10160-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of medication use"/>
8
- <title>Medications - Prescription and Non-Prescription</title>
9
10
  <text>
10
11
  <table border="1" width="100%">
11
12
  <thead>
12
13
  <tr>
13
14
  <th>Description</th>
14
15
  <th>Code</th>
15
16
  <th>Time</th>
16
17
  </tr>
17
18
  </thead>
18
19
  <tbody>
19
20
  <tr ID="nomeds_summary">
20
21
  <td ID="nomeds_kind">Patient not on any medication</td>
21
- <td>182849000</td>
22
22
  <td><%= Time.now.utc.to_formatted_s(:number) %></td>
23
23
  </tr>
24
24
  </tbody>
25
25
  </table>
26
26
  </text>
27
27
  <entry typeCode="DRIV">
28
+ <title>Medications - Prescription and Non-Prescription</title>
29
+ <text>
30
+ <table border="1" width="100%">
31
+ <thead>
32
+ <tr>
33
+ <th>Description</th>
34
+ <th>Code</th>
35
+ <th>Time</th>
36
+ </tr>
37
+ </thead>
38
+ <tbody>
39
+ <tr ID="nomeds_summary">
40
+ <td ID="nomeds_kind">Patient not on any medication</td>
41
+ <td>182849000</td>
42
+ <td><%= Time.now.utc.to_formatted_s(:number) %></td>
43
+ </tr>
44
+ </tbody>
45
+ </table>
46
+ </text>
47
+ <entry typeCode="DRIV">
28
48
  <substanceAdministration classCode="SBADM" moodCode="EVN">
29
49
  <templateId root="2.16.840.1.113883.3.88.11.83.8" assigningAuthorityName="HITSP C83"/>
30
50
  <templateId root="2.16.840.1.113883.10.20.1.24" assigningAuthorityName="CCD"/>
@@ -16,11 +36,11 @@
16
36
  <manufacturedProduct>
17
37
  <templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.7.2" assigningAuthorityName="IHE PCC"/>
18
38
  <templateId root="2.16.840.1.113883.3.88.11.83.8.2" assigningAuthorityName="HITSP C83"/>
19
- <templateId root="2.16.840.1.113883.10.20.1.53"assigningAuthorityName="CCD"/>
39
+ <templateId root="2.16.840.1.113883.10.20.1.53" assigningAuthorityName="CCD"/>
20
40
  <manufacturedMaterial>
21
41
  <code>
22
42
  <originalText>
23
- <reference value="#nomeds_kind">
43
+ <reference value="#nomeds_kind"/>
24
44
  </originalText>
25
45
  </code>
26
46
  </manufacturedMaterial>
@@ -29,4 +49,4 @@
29
49
  </substanceAdministration>
30
50
  </entry>
31
51
  </section>
32
- </component>
52
+ </component>
@@ -0,0 +1,11 @@
1
+ <name>
2
+ <% if person.title %>
3
+ <title><% person.title %></title>
4
+ <% end %>
5
+ <% if person.given_name %>
6
+ <givenName><%= person.given_name%></givenName>
7
+ <% end %>
8
+ <% if person.family_name %>
9
+ <familyName><%= person.family_name%></familyName>
10
+ <% end %>
11
+ </name>
@@ -18,7 +18,7 @@
18
18
  <% entries.each_with_index do |entry, i| -%>
19
19
  <tr>
20
20
  <td ID="<%= section %>-desc-<%= i %>"><%= entry.description %></td>
21
- <td ID="<%= section %>-code-<%= i %>"><b><%= entry.codes_to_s %></b><br/><i><%= entry.specifics %></i></td>
21
+ <td ID="<%= section %>-code-<%= i %>"><%= entry.codes_to_s %><br/><i><%= entry.specifics %></i></td>
22
22
  <td><%= entry.times_to_s %></td>
23
23
  <% if status.present? %>
24
24
  <td><%= entry.status %></td>
@@ -1,8 +1,10 @@
1
1
  <procedure xmlns="urn:hl7-org:greencda:c32">
2
2
  <id><%= procedure.id %></id>
3
3
  <%== code_display procedure, "tag_name" => "code", 'preferred_code_sets' => ['SNOMED-CT'] %>
4
- <effectiveTime>
5
- <start><%= time_if_not_nil(procedure.start_time, procedure.time)%></start>
6
- <end><%= time_if_not_nil(procedure.end_time)%></end>
7
- </effectiveTime>
4
+ <status><%= procedure.status%></status>
5
+ <freeText><%=procedure.free_text %></freeText>
6
+ <%== gc32_effective_time(procedure)%>
7
+ <% if procedure.site %>
8
+ <%== code_display procedure, "tag_name" => "site", "attribute" => "site", "preferred_code_sets" => ["SNOMED-CT"] %>
9
+ <% end %>
8
10
  </procedure>
@@ -1,14 +1,8 @@
1
1
  <result xmlns="urn:hl7-org:greencda:c32">
2
2
  <id><%= result.id %></id>
3
-
4
3
  <%== code_display result, "tag_name" => "code", 'preferred_code_sets' => ['SNOMED-CT'] %>
5
- <% if result.status %>
6
- <status code="completed"/>
7
- <% end %>
8
-
9
- <effectiveTime><%= Time.at(result.time) %></effectiveTime>
10
-
11
-
4
+ <freeText><%= result.free_text %></freeText>
5
+ <%== gc32_effective_time(result)%>
12
6
  <value amount="<%= result.value['scalar']%>" unit="<%= result.value['units'] %>" />
13
7
  <% if result.interpretation%>
14
8
  <% code = result.interpretation.first%>
@@ -45,8 +45,14 @@
45
45
  </text>
46
46
  <statusCode code="completed"/>
47
47
  <effectiveTime <%= value_or_null_flavor(entry.as_point_in_time) %>/>
48
- <% if entry.value -%>
49
- <value xsi:type="PQ" value="<%= entry.value["scalar"] %>" <% if entry.value["units"]-%>unit="<%= entry.value["units"] %>"<% end -%>/>
48
+ <% if entry.value -%>
49
+ <% if is_num?(entry.value['scalar']) -%>
50
+ <value xsi:type="PQ" value="<%= entry.value["scalar"] %>" <% if entry.value["units"]-%>unit="<%= entry.value["units"] %>"<% end -%>/>
51
+ <% elsif is_bool?(entry.value['scalar'])%>
52
+ <value xsi:type="BL" value="<%= entry.value["scalar"] %>" />
53
+ <% else -%>
54
+ <value xsi:type="ST" ><%= entry.value["scalar"] %></value>
55
+ <% end -%>
50
56
  <% else -%>
51
57
  <value xsi:type="PQ" nullFlavor="UNK"/>
52
58
  <% end -%>
@@ -1,6 +1,8 @@
1
1
  <socialHistory xmlns="urn:hl7-org:greencda:c32">
2
2
  <id><%= social_history.id%></id>
3
- <status><%= social_history.status %></status>
4
3
  <%== code_display social_history, 'preferred_code_sets' => ['SNOMED-CT'] %>
4
+ <status><%= social_history.status %></status>
5
+ <freeText><%= social_history.free_text %></freeText>
6
+ <%== gc32_effective_time(social_history)%>
5
7
  <%== quantity_display social_history.value %>
6
8
  </socialHistory>
@@ -0,0 +1,14 @@
1
+ <support xmlns="urn:hl7-org:greencda:c32">
2
+ <%= render partial: 'name', locals: {person: support}%>
3
+ <% if support.mothers_maiden_name%>
4
+ <mothersMaidenName><%= support.mothers_maiden_name %></mothersMaidenName>
5
+ <% end %>
6
+ <% if support.type %>
7
+ <type><%= support.type %></type>
8
+ <% end %>
9
+ <% if support.relationship %>
10
+ <relationship><%= support.relationship %></relationship>
11
+ <% end %>
12
+ <%= render partial: 'address', locals: {address: support.address} %>
13
+ <%= render partial: 'telecom', locals: {telecom: support.telecom} %>
14
+ </support>
@@ -1,12 +1,7 @@
1
1
  <vitalSign xmlns="urn:hl7-org:greencda:c32">
2
2
  <id><%= vital_sign.id %></id>
3
-
4
3
  <%== code_display vital_sign, "tag_name" => "code", 'preferred_code_sets' => ['SNOMED-CT'] %>
5
- <% if vital_sign.status %>
6
- <status code="completed"/>
7
- <% end %>
8
-
9
- <effectiveTime><%= Time.at(vital_sign.time) %></effectiveTime>
10
-
4
+ <freeText><%= vital_sign.free_text %></freeText>
5
+ <%== gc32_effective_time(vital_sign)%>
11
6
  <value amount="<%= vital_sign.value['scalar']%>" unit="<%= vital_sign.value['units'] %>" />
12
7
  </vitalSign>
@@ -28,14 +28,20 @@
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, {'preferred_code_sets' => ['LOINC']}) %>
31
+ <%== code_display(entry, {'preferred_code_sets' => ['LOINC','SNOMED']}) %>
32
32
  <text>
33
33
  <reference value="vitals-desc-<%= i %>"/>
34
34
  </text>
35
35
  <statusCode code="completed"/>
36
36
  <effectiveTime <%= value_or_null_flavor(entry.as_point_in_time) %>/>
37
37
  <% if entry.value -%>
38
- <value xsi:type="PQ" value="<%= entry.value["scalar"] %>" <% if entry.value["units"]-%>unit="<%= entry.value["units"] %>"<% end -%>/>
38
+ <% if is_num?(entry.value['scalar']) -%>
39
+ <value xsi:type="PQ" value="<%= entry.value["scalar"] %>" <% if entry.value["units"]-%>unit="<%= entry.value["units"] %>"<% end -%>/>
40
+ <% elsif is_bool?(entry.value['scalar'])%>
41
+ <value xsi:type="BL" value="<%= entry.value["scalar"] %>" />
42
+ <% else -%>
43
+ <value xsi:type="ST" ><%= entry.value["scalar"] %></value>
44
+ <% end -%>
39
45
  <% else -%>
40
46
  <value xsi:type="PQ" nullFlavor="UNK"/>
41
47
  <% end -%>
@@ -0,0 +1,81 @@
1
+ <record>
2
+ <patientInformation>
3
+ <id><%= record.id%></id>
4
+ <name>
5
+ <title><%= record.title %></title>
6
+ <givenName><%= record.first %></givenName>
7
+ <familyName><%= record.last %></familyName>
8
+ </name>
9
+ <gender code="<%= record.gender %>" codeSystem="2.16.840.1.113883.5.1" />
10
+ <dateOfBirth><%= time_if_not_nil(record.birthdate) %></dateOfBirth>
11
+ <dateOfDeath><%= time_if_not_nil(record.deathdate) %></dateOfDeath>
12
+ <maritalStatus />
13
+ <religiousAffiliation />
14
+ <% if record.race %>
15
+ <race code="<%=record.race['code']%>" codeSystem="2.16.840.1.113883.6.238" />
16
+ <% end %>
17
+ <% if record.ethnicity %>
18
+ <ethnicity code="<%=record.ethnicity['code']%>" codeSystem="2.16.840.1.113883.6.238" />
19
+ <% end %>
20
+ <languagesSpoken>
21
+ <% record.languages.each do |l| %>
22
+ <language><%=l%></language>
23
+ <% end%>
24
+ </languagesSpoken>
25
+ </patientInformation>
26
+ <allergies>
27
+ <% record.allergies.each do |a| %>
28
+ <%== render partial: "allergy", locals: {allergy: a} %>
29
+ <% end %>
30
+ </allergies>
31
+ <conditions>
32
+ <% record.conditions.each do |c| %>
33
+ <%== render partial: "condition", locals: {condition: c} %>
34
+ <% end %>
35
+ </conditions>
36
+ <immunizations>
37
+ <% record.immunizations.each do |i| %>
38
+ <%== render partial: "immunization", locals: {immunization: i} %>
39
+ <% end %>
40
+ </immunizations>
41
+ <insuranceProviders>
42
+ <% record.insurance_providers.each do |ip| %>
43
+ <%== render partial: "insurance_providers", locals: {insurance_provider: ip} %>
44
+ <% end %>
45
+ </insuranceProviders>
46
+ <medicalEquipment>
47
+ <% record.medical_equipment.each do |me| %>
48
+ <%== render partial: "medical_equipment", locals: {medical_equipment: me} %>
49
+ <% end %>
50
+ </medicalEquipment>
51
+ <medications>
52
+ <% record.medications.each do |m| %>
53
+ <%== render partial: "medication", locals: {medication: m} %>
54
+ <% end %>
55
+ </medications>
56
+ <procedures>
57
+ <% record.procedures.each do |pr| %>
58
+ <%== render partial: "procedure", locals: {procedure: pr} %>
59
+ <% end %>
60
+ </procedures>
61
+ <results>
62
+ <% record.results.each do |r| %>
63
+ <%== render partial: "result", locals: {result: r} %>
64
+ <% end %>
65
+ </results>
66
+ <socialHistory>
67
+ <% record.social_history.each do |sh| %>
68
+ <%== render partial: "social_history", locals: {social_history: sh} %>
69
+ <% end %>
70
+ </socialHistory>
71
+ <support>
72
+ <% record.support.each do |s| %>
73
+ <%== render partial: "support", locals: {support: s}%>
74
+ <% end %>
75
+ </support>
76
+ <vitalSigns>
77
+ <% record.vital_signs.each do |vs| %>
78
+ <%== render partial: "vital_sign", locals: {vital_sign: vs} %>
79
+ <% end %>
80
+ </vitalSigns>
81
+ </record>
@@ -6,7 +6,7 @@
6
6
  <templateId root="2.16.840.1.113883.10.20.3" assigningAuthorityName="HL7/CDT Header"/>
7
7
  <templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.1" assigningAuthorityName="IHE/PCC"/>
8
8
  <templateId root="2.16.840.1.113883.3.88.11.32.1" assigningAuthorityName="HITSP/C32"/>
9
- <id root="2.16.840.1.113883.3.72" extension="HITSP_C32v2.5_Rev6_16Sections_Entries_MinimalErrors" assigningAuthorityName="NIST Healthcare Project"/>
9
+ <id root="2.16.840.1.113883.3.72" extension="<%= patient.id %>" assigningAuthorityName="NIST Healthcare Project"/>
10
10
  <code code="34133-9" displayName="Summarization of episode note" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
11
11
  <title>Cypress C32 Patient Test Record: <%= patient.first %> <%= patient.last %></title>
12
12
  <effectiveTime value="<%= Time.now.utc.to_formatted_s(:number) %>"/>
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.8.1
4
+ version: 1.0.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: 2012-06-04 00:00:00.000000000Z
12
+ date: 2012-07-02 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: erubis
16
- requirement: &2152735440 !ruby/object:Gem::Requirement
16
+ requirement: &2157431980 !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: *2152735440
24
+ version_requirements: *2157431980
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: mongoid
27
- requirement: &2152734960 !ruby/object:Gem::Requirement
27
+ requirement: &2157430520 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.4.2
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2152734960
35
+ version_requirements: *2157430520
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: uuid
38
- requirement: &2152734480 !ruby/object:Gem::Requirement
38
+ requirement: &2157429500 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 2.3.4
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2152734480
46
+ version_requirements: *2157429500
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: builder
49
- requirement: &2152733800 !ruby/object:Gem::Requirement
49
+ requirement: &2157421260 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,18 +54,18 @@ dependencies:
54
54
  version: 3.0.0
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *2152733800
57
+ version_requirements: *2157421260
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: nokogiri
60
- requirement: &2152733140 !ruby/object:Gem::Requirement
60
+ requirement: &2157418380 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
- - - ~>
63
+ - - ! '>='
64
64
  - !ruby/object:Gem::Version
65
- version: 1.4.7
65
+ version: 1.4.4
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *2152733140
68
+ version_requirements: *2157418380
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
@@ -78,6 +78,7 @@ files:
78
78
  - lib/health-data-standards/export/csv.rb
79
79
  - lib/health-data-standards/export/green_c32/entry.rb
80
80
  - lib/health-data-standards/export/green_c32/export_generator.rb
81
+ - lib/health-data-standards/export/green_c32/record.rb
81
82
  - lib/health-data-standards/export/hdata/metadata.rb
82
83
  - lib/health-data-standards/export/html.rb
83
84
  - lib/health-data-standards/export/rendering_context.rb
@@ -86,9 +87,12 @@ files:
86
87
  - lib/health-data-standards/ext/string.rb
87
88
  - lib/health-data-standards/ext/symbol.rb
88
89
  - lib/health-data-standards/import/c32/allergy_importer.rb
90
+ - lib/health-data-standards/import/c32/care_goal_importer.rb
89
91
  - lib/health-data-standards/import/c32/condition_importer.rb
90
92
  - lib/health-data-standards/import/c32/encounter_importer.rb
91
93
  - lib/health-data-standards/import/c32/immunization_importer.rb
94
+ - lib/health-data-standards/import/c32/insurance_provider_importer.rb
95
+ - lib/health-data-standards/import/c32/medical_equipment_importer.rb
92
96
  - lib/health-data-standards/import/c32/medication_importer.rb
93
97
  - lib/health-data-standards/import/c32/organization_importer.rb
94
98
  - lib/health-data-standards/import/c32/patient_importer.rb
@@ -97,34 +101,52 @@ files:
97
101
  - lib/health-data-standards/import/c32/result_importer.rb
98
102
  - lib/health-data-standards/import/c32/section_importer.rb
99
103
  - lib/health-data-standards/import/c32/vital_sign_importer.rb
104
+ - lib/health-data-standards/import/ccda/allergy_importer.rb
105
+ - lib/health-data-standards/import/ccda/care_goal_importer.rb
106
+ - lib/health-data-standards/import/ccda/condition_importer.rb
107
+ - lib/health-data-standards/import/ccda/encounter_importer.rb
108
+ - lib/health-data-standards/import/ccda/immunization_importer.rb
109
+ - lib/health-data-standards/import/ccda/insurance_provider_importer.rb
110
+ - lib/health-data-standards/import/ccda/medical_equipment_importer.rb
111
+ - lib/health-data-standards/import/ccda/medication_importer.rb
112
+ - lib/health-data-standards/import/ccda/patient_importer.rb
113
+ - lib/health-data-standards/import/ccda/procedure_importer.rb
114
+ - lib/health-data-standards/import/ccda/result_importer.rb
115
+ - lib/health-data-standards/import/ccda/vital_sign_importer.rb
100
116
  - lib/health-data-standards/import/ccr/patient_importer.rb
101
117
  - lib/health-data-standards/import/ccr/product_importer.rb
102
118
  - lib/health-data-standards/import/ccr/provider_importer.rb
103
119
  - lib/health-data-standards/import/ccr/result_importer.rb
104
120
  - lib/health-data-standards/import/ccr/section_importer.rb
105
121
  - lib/health-data-standards/import/ccr/simple_importer.rb
122
+ - lib/health-data-standards/import/green_c32/advance_directive_importer.rb
106
123
  - lib/health-data-standards/import/green_c32/allergy_importer.rb
124
+ - lib/health-data-standards/import/green_c32/care_goal_importer.rb
107
125
  - lib/health-data-standards/import/green_c32/condition_importer.rb
108
126
  - lib/health-data-standards/import/green_c32/encounter_importer.rb
109
127
  - lib/health-data-standards/import/green_c32/immunization_importer.rb
128
+ - lib/health-data-standards/import/green_c32/medical_equipment_importer.rb
110
129
  - lib/health-data-standards/import/green_c32/medication_importer.rb
111
130
  - lib/health-data-standards/import/green_c32/patient_importer.rb
112
131
  - lib/health-data-standards/import/green_c32/procedure_importer.rb
113
132
  - lib/health-data-standards/import/green_c32/result_importer.rb
114
133
  - lib/health-data-standards/import/green_c32/section_importer.rb
115
134
  - lib/health-data-standards/import/green_c32/social_history_importer.rb
135
+ - lib/health-data-standards/import/green_c32/support_importer.rb
116
136
  - lib/health-data-standards/import/green_c32/vital_sign_importer.rb
117
137
  - lib/health-data-standards/import/hdata/metadata_importer.rb
118
138
  - lib/health-data-standards/import/provider_import_utils.rb
119
139
  - lib/health-data-standards/models/address.rb
120
140
  - lib/health-data-standards/models/allergy.rb
121
- - lib/health-data-standards/models/comment.rb
122
141
  - lib/health-data-standards/models/condition.rb
123
142
  - lib/health-data-standards/models/encounter.rb
124
143
  - lib/health-data-standards/models/entry.rb
125
144
  - lib/health-data-standards/models/fulfillment_history.rb
145
+ - lib/health-data-standards/models/guarantor.rb
126
146
  - lib/health-data-standards/models/immunization.rb
147
+ - lib/health-data-standards/models/insurance_provider.rb
127
148
  - lib/health-data-standards/models/lab_result.rb
149
+ - lib/health-data-standards/models/medical_equipment.rb
128
150
  - lib/health-data-standards/models/medication.rb
129
151
  - lib/health-data-standards/models/metadata/author.rb
130
152
  - lib/health-data-standards/models/metadata/base.rb
@@ -133,11 +155,13 @@ files:
133
155
  - lib/health-data-standards/models/metadata/pedigree.rb
134
156
  - lib/health-data-standards/models/order_information.rb
135
157
  - lib/health-data-standards/models/organization.rb
158
+ - lib/health-data-standards/models/person.rb
159
+ - lib/health-data-standards/models/personable.rb
136
160
  - lib/health-data-standards/models/procedure.rb
137
161
  - lib/health-data-standards/models/provider.rb
138
162
  - lib/health-data-standards/models/provider_performance.rb
139
163
  - lib/health-data-standards/models/record.rb
140
- - lib/health-data-standards/models/social_history.rb
164
+ - lib/health-data-standards/models/support.rb
141
165
  - lib/health-data-standards/models/telecom.rb
142
166
  - lib/health-data-standards/models/treating_provider.rb
143
167
  - lib/health-data-standards/models/vital_sign.rb
@@ -145,9 +169,11 @@ files:
145
169
  - lib/health-data-standards/util/hl7_helper.rb
146
170
  - lib/health-data-standards.rb
147
171
  - templates/_address.gc32.erb
172
+ - templates/_advance_directive.gc32.erb
148
173
  - templates/_allergies.c32.erb
149
174
  - templates/_allergies_no_current.c32.erb
150
175
  - templates/_allergy.gc32.erb
176
+ - templates/_care_goal.gc32.erb
151
177
  - templates/_care_goals.c32.erb
152
178
  - templates/_code_with_reference.c32.erb
153
179
  - templates/_condition.gc32.erb
@@ -155,12 +181,16 @@ files:
155
181
  - templates/_conditions_no_current.c32.erb
156
182
  - templates/_encounter.gc32.erb
157
183
  - templates/_encounters.c32.erb
184
+ - templates/_entry.gc32.erb
158
185
  - templates/_immunization.gc32.erb
159
186
  - templates/_immunizations.c32.erb
187
+ - templates/_insurance_provider.gc32.erb
160
188
  - templates/_medical_equipment.c32.erb
189
+ - templates/_medical_equipment.gc32.erb
161
190
  - templates/_medication.gc32.erb
162
191
  - templates/_medications.c32.erb
163
192
  - templates/_medications_no_current.c32.erb
193
+ - templates/_name.gc32.erb
164
194
  - templates/_narrative_block.c32.erb
165
195
  - templates/_organization.gc32.erb
166
196
  - templates/_pedigree.hdata.erb
@@ -171,10 +201,12 @@ files:
171
201
  - templates/_results.c32.erb
172
202
  - templates/_social_history.c32.erb
173
203
  - templates/_social_history.gc32.erb
204
+ - templates/_support.gc32.erb
174
205
  - templates/_telecom.gc32.erb
175
206
  - templates/_vital_sign.gc32.erb
176
207
  - templates/_vital_signs.c32.erb
177
208
  - templates/metadata.hdata.erb
209
+ - templates/record.gc32.erb
178
210
  - templates/show.c32.erb
179
211
  - templates/show.html.erb
180
212
  - Gemfile
@@ -1,2 +0,0 @@
1
- class Comment < Entry
2
- end
@@ -1,3 +0,0 @@
1
- class SocialHistory < Entry
2
- field :type, type: Hash
3
- end