health-data-standards 3.5.3 → 3.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -3
  3. data/README.md +10 -2
  4. data/lib/health-data-standards.rb +5 -28
  5. data/lib/health-data-standards/export/cat_1.rb +3 -2
  6. data/lib/health-data-standards/export/cat_1_r2.rb +11 -0
  7. data/lib/health-data-standards/ext/node.rb +1 -2
  8. data/lib/health-data-standards/import/bulk_record_importer.rb +4 -4
  9. data/lib/health-data-standards/import/bundle/importer.rb +62 -0
  10. data/lib/health-data-standards/import/c32/insurance_provider_importer.rb +10 -8
  11. data/lib/health-data-standards/import/cat1/patient_importer.rb +3 -3
  12. data/lib/health-data-standards/import/cat1/procedure_importer.rb +42 -0
  13. data/lib/health-data-standards/import/cda/medication_importer.rb +11 -11
  14. data/lib/health-data-standards/import/cda/section_importer.rb +13 -7
  15. data/lib/health-data-standards/models/cqm/aggregate_objects.rb +5 -1
  16. data/lib/health-data-standards/models/cqm/bundle.rb +5 -3
  17. data/lib/health-data-standards/models/cqm/measure.rb +1 -1
  18. data/lib/health-data-standards/models/entry.rb +5 -1
  19. data/lib/health-data-standards/models/record.rb +10 -0
  20. data/lib/health-data-standards/models/reference.rb +23 -0
  21. data/lib/health-data-standards/models/svs/value_set.rb +4 -3
  22. data/lib/health-data-standards/railtie.rb +1 -1
  23. data/lib/health-data-standards/tasks.rb +1 -0
  24. data/lib/health-data-standards/tasks/bundle.rake +84 -2
  25. data/lib/health-data-standards/util/vs_api.rb +40 -7
  26. data/lib/health-data-standards/validate/base_validator.rb +23 -0
  27. data/lib/health-data-standards/validate/data_validator.rb +85 -0
  28. data/lib/health-data-standards/validate/measure_validator.rb +127 -0
  29. data/lib/health-data-standards/validate/performance_rate_validator.rb +94 -0
  30. data/lib/health-data-standards/validate/reported_result_extractor.rb +170 -0
  31. data/lib/health-data-standards/validate/schema_validator.rb +24 -0
  32. data/lib/health-data-standards/validate/schematron/c_processor.rb +28 -0
  33. data/lib/health-data-standards/validate/schematron/java_processor.rb +93 -0
  34. data/lib/health-data-standards/validate/schematron_validator.rb +34 -0
  35. data/lib/health-data-standards/validate/validation_error.rb +10 -0
  36. data/lib/health-data-standards/validate/validators.rb +80 -0
  37. data/lib/hqmf-generator/fulfills.xml.erb +7 -0
  38. data/lib/hqmf-generator/hqmf-generator.rb +8 -3
  39. data/lib/hqmf-model/data_criteria.rb +3 -0
  40. data/lib/hqmf-model/types.rb +29 -0
  41. data/lib/hqmf-parser/2.0/data_criteria.rb +7 -0
  42. data/lib/hqmf-parser/2.0/types.rb +24 -0
  43. data/resources/schema/infrastructure/cda/CDA_SDTC.xsd +44 -0
  44. data/resources/schema/infrastructure/cda/POCD_MT000040_SDTC.xsd +1500 -0
  45. data/resources/schema/infrastructure/cda/SDTC.xsd +210 -0
  46. data/resources/schema/processable/coreschemas/NarrativeBlock.xsd +557 -0
  47. data/resources/schema/processable/coreschemas/datatypes-base_SDTC.xsd +1850 -0
  48. data/resources/schema/processable/coreschemas/datatypes.xsd +1375 -0
  49. data/resources/schema/processable/coreschemas/infrastructureRoot.xsd +27 -0
  50. data/resources/schema/processable/coreschemas/voc.xsd +2124 -0
  51. data/resources/schematron/iso-schematron-xslt1/ExtractSchFromRNG.xsl +75 -0
  52. data/resources/schematron/iso-schematron-xslt1/ExtractSchFromXSD.xsl +77 -0
  53. data/resources/schematron/iso-schematron-xslt1/iso_abstract_expand.xsl +297 -0
  54. data/resources/schematron/iso-schematron-xslt1/iso_dsdl_include.xsl +1509 -0
  55. data/resources/schematron/iso-schematron-xslt1/iso_schematron_message.xsl +55 -0
  56. data/resources/schematron/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl +1844 -0
  57. data/resources/schematron/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl +605 -0
  58. data/resources/schematron/iso-schematron-xslt1/readme.txt +101 -0
  59. data/resources/schematron/iso-schematron-xslt1/schematron-skeleton-api.htm +723 -0
  60. data/resources/schematron/iso-schematron-xslt2/ExtractSchFromRNG-2.xsl +75 -0
  61. data/resources/schematron/iso-schematron-xslt2/ExtractSchFromXSD-2.xsl +77 -0
  62. data/resources/schematron/iso-schematron-xslt2/iso_abstract_expand.xsl +297 -0
  63. data/resources/schematron/iso-schematron-xslt2/iso_dsdl_include.xsl +1508 -0
  64. data/resources/schematron/iso-schematron-xslt2/iso_schematron_message_xslt2.xsl +55 -0
  65. data/resources/schematron/iso-schematron-xslt2/iso_schematron_skeleton_for_saxon.xsl +2299 -0
  66. data/resources/schematron/iso-schematron-xslt2/iso_svrl_for_xslt2.xsl +684 -0
  67. data/resources/schematron/iso-schematron-xslt2/readme.txt +100 -0
  68. data/resources/schematron/iso-schematron-xslt2/sch-messages-cs.xhtml +56 -0
  69. data/resources/schematron/iso-schematron-xslt2/sch-messages-de.xhtml +57 -0
  70. data/resources/schematron/iso-schematron-xslt2/sch-messages-en.xhtml +57 -0
  71. data/resources/schematron/iso-schematron-xslt2/sch-messages-fr.xhtml +54 -0
  72. data/resources/schematron/iso-schematron-xslt2/sch-messages-nl.xhtml +58 -0
  73. data/resources/schematron/iso-schematron-xslt2/schematron-skeleton-api.htm +723 -0
  74. data/resources/schematron/qrda/cat_1/CDAR2_QRDA_I_R1_D3_2015MAY_Schematron.sch +4676 -0
  75. data/resources/schematron/qrda/cat_1/voc.xml +1177 -0
  76. data/resources/schematron/qrda/cat_1_r2/QRDA Category I Release 2.sch +4069 -0
  77. data/resources/schematron/qrda/cat_1_r2/voc.xml +1065 -0
  78. data/resources/schematron/qrda/cat_3/QRDA Category III.sch +675 -0
  79. data/resources/schematron/qrda/cat_3/voc.xml +21 -0
  80. data/templates/cat1/_2.16.840.1.113883.10.20.24.3.26.cat1.erb +18 -0
  81. data/templates/cat1/_2.16.840.1.113883.10.20.24.3.32.cat1.erb +4 -0
  82. data/templates/cat1/_2.16.840.1.113883.10.20.24.3.38.cat1.erb +5 -1
  83. data/templates/cat1/_2.16.840.1.113883.10.20.24.3.4.cat1.erb +1 -0
  84. data/templates/cat1/_2.16.840.1.113883.10.20.24.3.64.cat1.erb +20 -0
  85. data/templates/cat1/_fulfills.cat1.erb +14 -0
  86. data/templates/cat1/_organization.cat1.erb +2 -1
  87. data/templates/cat1/_patient_data.cat1.erb +1 -1
  88. data/templates/cat1/show.cat1.erb +5 -4
  89. data/templates/cat3/_performance_rate.cat3.erb +5 -1
  90. data/templates/cat3/show.cat3.erb +1 -1
  91. metadata +128 -109
  92. data/lib/health-data-standards/export/ccr.rb +0 -417
  93. data/lib/health-data-standards/export/green_c32/entry.rb +0 -18
  94. data/lib/health-data-standards/export/green_c32/export_generator.rb +0 -23
  95. data/lib/health-data-standards/export/green_c32/record.rb +0 -18
  96. data/lib/health-data-standards/export/helper/gc32_view_helper.rb +0 -39
  97. data/lib/health-data-standards/import/ccr/patient_importer.rb +0 -238
  98. data/lib/health-data-standards/import/ccr/product_importer.rb +0 -60
  99. data/lib/health-data-standards/import/ccr/provider_importer.rb +0 -49
  100. data/lib/health-data-standards/import/ccr/result_importer.rb +0 -49
  101. data/lib/health-data-standards/import/ccr/section_importer.rb +0 -135
  102. data/lib/health-data-standards/import/ccr/simple_importer.rb +0 -30
  103. data/lib/health-data-standards/import/green_c32/advance_directive_importer.rb +0 -14
  104. data/lib/health-data-standards/import/green_c32/allergy_importer.rb +0 -20
  105. data/lib/health-data-standards/import/green_c32/care_goal_importer.rb +0 -26
  106. data/lib/health-data-standards/import/green_c32/condition_importer.rb +0 -38
  107. data/lib/health-data-standards/import/green_c32/encounter_importer.rb +0 -33
  108. data/lib/health-data-standards/import/green_c32/immunization_importer.rb +0 -23
  109. data/lib/health-data-standards/import/green_c32/medical_equipment_importer.rb +0 -24
  110. data/lib/health-data-standards/import/green_c32/medication_importer.rb +0 -68
  111. data/lib/health-data-standards/import/green_c32/patient_importer.rb +0 -14
  112. data/lib/health-data-standards/import/green_c32/procedure_importer.rb +0 -27
  113. data/lib/health-data-standards/import/green_c32/result_importer.rb +0 -43
  114. data/lib/health-data-standards/import/green_c32/section_importer.rb +0 -186
  115. data/lib/health-data-standards/import/green_c32/social_history_importer.rb +0 -13
  116. data/lib/health-data-standards/import/green_c32/support_importer.rb +0 -22
  117. data/lib/health-data-standards/import/green_c32/vital_sign_importer.rb +0 -21
  118. data/templates/gc32/_address.gc32.erb +0 -9
  119. data/templates/gc32/_advance_directive.gc32.erb +0 -5
  120. data/templates/gc32/_allergy.gc32.erb +0 -12
  121. data/templates/gc32/_care_goal.gc32.erb +0 -8
  122. data/templates/gc32/_condition.gc32.erb +0 -10
  123. data/templates/gc32/_encounter.gc32.erb +0 -28
  124. data/templates/gc32/_entry.gc32.erb +0 -3
  125. data/templates/gc32/_entry_attributes.gc32.erb +0 -10
  126. data/templates/gc32/_immunization.gc32.erb +0 -9
  127. data/templates/gc32/_insurance_provider.gc32.erb +0 -28
  128. data/templates/gc32/_medical_equipment.gc32.erb +0 -6
  129. data/templates/gc32/_medication.gc32.erb +0 -91
  130. data/templates/gc32/_name.gc32.erb +0 -11
  131. data/templates/gc32/_organization.gc32.erb +0 -10
  132. data/templates/gc32/_person_attributes.gc32.erb +0 -7
  133. data/templates/gc32/_procedure.gc32.erb +0 -9
  134. data/templates/gc32/_provider.gc32.erb +0 -9
  135. data/templates/gc32/_result.gc32.erb +0 -12
  136. data/templates/gc32/_social_history.gc32.erb +0 -6
  137. data/templates/gc32/_support.gc32.erb +0 -15
  138. data/templates/gc32/_telecom.gc32.erb +0 -1
  139. data/templates/gc32/_vital_sign.gc32.erb +0 -4
  140. data/templates/gc32/record.gc32.erb +0 -97
@@ -0,0 +1,21 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <systems xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.lantanagroup.com/voc">
3
+ <system valueSetOid="2.16.840.1.113883.1.11.16926" valueSetName="HL7 BasicConfidentialityKind">
4
+ <code value="N" displayName="normal" codeSystemName="ConfidentialityCode" codeSystem="2.16.840.1.113883.5.25"/>
5
+ <code value="R" displayName="restricted" codeSystemName="ConfidentialityCode" codeSystem="2.16.840.1.113883.5.25" />
6
+ <code value="V" displayName="very restricted" codeSystemName="ConfidentialityCode" codeSystem="2.16.840.1.113883.5.25" />
7
+ </system>
8
+ <system valueSetOid="2.16.840.1.113883.1.11.20450" valueSetName="ObservationMethodAggregate">
9
+ <code value="AVERAGE" displayName="Average" codeSystemName="ObservationMethod" codeSystem="2.16.840.1.113883.5.84" />
10
+ <code value="COUNT" displayName="Count" codeSystemName="ObservationMethod" codeSystem="2.16.840.1.113883.5.84" />
11
+ <code value="MAX" displayName="Maxima" codeSystemName="ObservationMethod" codeSystem="2.16.840.1.113883.5.84" />
12
+ <code value="MEDIAN" displayName="Median" codeSystemName="ObservationMethod" codeSystem="2.16.840.1.113883.5.84" />
13
+ <code value="MIN" displayName="Minima" codeSystemName="ObservationMethod" codeSystem="2.16.840.1.113883.5.84" />
14
+ <code value="MODE" displayName="Mode" codeSystemName="ObservationMethod" codeSystem="2.16.840.1.113883.5.84" />
15
+ <code value="STDEV.P" displayName="Population Standard Deviation" codeSystemName="ObservationMethod" codeSystem="2.16.840.1.113883.5.84" />
16
+ <code value="STDEV.S" displayName="Sample Standard Deviation" codeSystemName="ObservationMethod" codeSystem="2.16.840.1.113883.5.84" />
17
+ <code value="SUM" displayName="Sum" codeSystemName="ObservationMethod" codeSystem="2.16.840.1.113883.5.84" />
18
+ <code value="VARIANCE.P" displayName="Population Variance" codeSystemName="ObservationMethod" codeSystem="2.16.840.1.113883.5.84" />
19
+ <code value="VARIANCE.S" displayName="Sample Variance" codeSystemName="ObservationMethod" codeSystem="2.16.840.1.113883.5.84" />
20
+ </system>
21
+ </systems>
@@ -0,0 +1,18 @@
1
+ <entry>
2
+ <observation classCode="OBS" moodCode="EVN">
3
+ <!-- Functional Status, Performed template -->
4
+ <templateId root="2.16.840.1.113883.10.20.24.3.26"/>
5
+ <id root="1.3.6.1.4.1.115" extension="<%= entry.id %>"/>
6
+ <%== code_display(entry, 'value_set_map' => value_set_map, 'preferred_code_sets' => ['LOINC', 'SNOMED-CT', 'ICD-9-CM', 'ICD-10-CM'], 'extra_content' => "sdtc:valueSet=\"#{value_set_oid}\"") %>
7
+ <text><%= entry.description %></text>
8
+ <statusCode code="completed"/>
9
+
10
+ <effectiveTime>
11
+ <low <%= value_or_null_flavor(entry.start_time) %>/>
12
+ <high <%= value_or_null_flavor(entry.end_time) %>/>
13
+ </effectiveTime>
14
+
15
+ <!-- Result -->
16
+ <%== render(:partial => 'result_value', :locals => {:values => [entry.values.first], :result_oids=>result_oids}) %>
17
+ </observation>
18
+ </entry>
@@ -12,5 +12,9 @@
12
12
  <high <%= value_or_null_flavor(entry.end_time) %>/>
13
13
  </effectiveTime>
14
14
  <%== render(:partial => 'reason', :locals => {:entry => entry ,:reason_oids=>field_oids["REASON"]}) %>
15
+ <%if !entry.values.empty? %>
16
+ <%== render(:partial=> 'result_value', :locals => {:values => entry.values}) %>
17
+ <% end %>
18
+
15
19
  </act>
16
20
  </entry>
@@ -12,5 +12,9 @@
12
12
  <high <%= value_or_null_flavor(entry.end_time) %>/>
13
13
  </effectiveTime>
14
14
  <%== render(:partial => 'reason', :locals => {:entry => entry, :reason_oids=>field_oids["REASON"]}) %>
15
- </observation>
15
+
16
+ <%if !entry.values.empty? %>
17
+ <%== render(:partial=> 'result_value', :locals => {:values => entry.values}) %>
18
+ <% end %>
19
+ </observation>
16
20
  </entry>
@@ -24,5 +24,6 @@
24
24
  </participantRole>
25
25
  </participant>
26
26
  <%== render(:partial => 'reason', :locals => {:entry => entry, :reason_oids=>field_oids["REASON"]}) %>
27
+ <%== render(:partial => 'fulfills', :locals => {:entry => entry}) %>
27
28
  </act>
28
29
  </entry>
@@ -27,6 +27,26 @@
27
27
  </procedure>
28
28
  </entryRelationship>
29
29
  <% end -%>
30
+
31
+ <% entry.values.each do |value| %>
32
+ <entryRelationship typeCode="REFR">
33
+ <observation classCode="OBS" moodCode="EVN">
34
+ <!-- Conforms to C-CDA R2 Result Observation (V2) -->
35
+ <templateId root="2.16.840.1.113883.10.20.22.4.2" />
36
+ <!-- Result (QRDA I R3) -->
37
+ <templateId root="2.16.840.1.113883.10.20.24.3.87" />
38
+ <id root="1.3.6.1.4.1.115" extension="<%= identifier_for(value) %>"/>
39
+ <%== code_display(entry, 'value_set_map' => value_set_map, 'preferred_code_sets' => ['LOINC', 'SNOMED-CT', 'CPT', 'ICD-9-PCS', 'ICD-10-PCS'], 'extra_content' => "sdtc:valueSet=\"#{value_set_oid}\"") %>
40
+ <statusCode code="completed"/>
41
+ <effectiveTime>
42
+ <low <%= value_or_null_flavor(entry.start_time) %>/>
43
+ <high <%= value_or_null_flavor(entry.end_time) %>/>
44
+ </effectiveTime>
45
+ <%== render(:partial=> 'result_value', :locals => {:values => [value]}) %>
46
+
47
+ </observation>
48
+ </entryRelationship>
49
+ <% end %>
30
50
  </procedure>
31
51
  </entry>
32
52
 
@@ -0,0 +1,14 @@
1
+ <% if entry.references.present?
2
+ -%>
3
+ <% entry.references.each do |reference|
4
+ resolved_reference = reference.resolve_reference %>
5
+ <% if reference.type == "fulfills" %>
6
+ <sdtc:inFulfillmentOf1 typeCode="FLFS">
7
+ <sdtc:templateId root="2.16.840.1.113883.10.20.24.3.126" extension="2014-12-01" />
8
+ <sdtc:actReference classCode="ACT" moodCode="<%= resolved_reference.mood_code %>">
9
+ <sdtc:id root="1.3.6.1.4.1.115" extension="<%= reference.referenced_id %>"/>
10
+ </sdtc:actReference>
11
+ </sdtc:inFulfillmentOf1>
12
+ <% end %>
13
+ <% end %>
14
+ <% end -%>
@@ -3,6 +3,7 @@
3
3
  <%== render :partial => "id", :collection => organization.ids, :id => "identifier" %>
4
4
  <!-- Contains name - specific registry not required-->
5
5
  <name><%= organization.name %></name>
6
- <%== render :partial => "address", :collection => organization.addresses %>
7
6
  <%== render :partial => "telecom", :collection => organization.telecoms %>
7
+ <%== render :partial => "address", :collection => organization.addresses %>
8
+
8
9
  </<%=tag_name %>>
@@ -3,7 +3,7 @@
3
3
  <!-- This is the templateId for Patient Data section -->
4
4
  <templateId root="2.16.840.1.113883.10.20.17.2.4"/>
5
5
  <!-- This is the templateId for Patient Data QDM section -->
6
- <templateId root="2.16.840.1.113883.10.20.24.2.1"/>
6
+ <templateId root="2.16.840.1.113883.10.20.24.2.1" <% if !r2_compatibility %>extension="2014-12-01"<%end%> />
7
7
  <code code="55188-7" codeSystem="2.16.840.1.113883.6.1"/>
8
8
  <title>Patient Data</title>
9
9
  <text>
@@ -9,9 +9,9 @@
9
9
  <!-- US Realm Header Template Id -->
10
10
  <templateId root="2.16.840.1.113883.10.20.22.1.1"/>
11
11
  <!-- QRDA templateId -->
12
- <templateId root="2.16.840.1.113883.10.20.24.1.1"/>
12
+ <templateId root="2.16.840.1.113883.10.20.24.1.1" <% if !r2_compatibility %>extension="2014-12-01"<%end%> />
13
13
  <!-- QDM-based QRDA templateId -->
14
- <templateId root="2.16.840.1.113883.10.20.24.1.2"/>
14
+ <templateId root="2.16.840.1.113883.10.20.24.1.2" <% if !r2_compatibility %>extension="2014-12-01"<%end%> />
15
15
  <!-- This is the globally unique identifier for this QRDA document -->
16
16
  <id root="<%= UUID.generate %>"/>
17
17
  <!-- QRDA document type code -->
@@ -20,7 +20,7 @@
20
20
  <!-- This is the document creation time -->
21
21
  <effectiveTime value="<%= Time.now.utc.to_formatted_s(:number) %>"/>
22
22
  <confidentialityCode code="N" codeSystem="2.16.840.1.113883.5.25"/>
23
- <languageCode code="eng"/>
23
+ <languageCode code="en"/>
24
24
  <!-- reported patient -->
25
25
  <%== render :partial => 'record_target', :locals => {:patient => patient} %>
26
26
  <!-- Example of an author who is a device -->
@@ -49,6 +49,7 @@
49
49
  <!-- SHALL ID -->
50
50
  <%== render :partial=>"id", :collection=>header.legal_authenticator.ids, :id=>"identifier" %>
51
51
  <%== render :partial=>"address" , :collection=>header.legal_authenticator.addresses %>
52
+ <%== render :partial => "telecom", :collection => header.legal_authenticator.telecoms %>
52
53
  <assignedPerson>
53
54
  <name>
54
55
  <given><%= header.legal_authenticator.person.given %></given>
@@ -129,7 +130,7 @@
129
130
  <structuredBody>
130
131
  <%== render :partial => 'measures', :locals => {:measures => measures} %>
131
132
  <%== render :partial => 'reporting_parameters', :locals => {:start_date => start_date, :end_date => end_date} %>
132
- <%== render :partial => 'patient_data', :locals => {:measures => measures, :patient => patient} %>
133
+ <%== render :partial => 'patient_data', :locals => {:measures => measures, :patient => patient, :r2_compatibility => r2_compatibility} %>
133
134
  </structuredBody>
134
135
  </component>
135
136
  </ClinicalDocument>
@@ -4,7 +4,11 @@
4
4
  displayName="Performance Rate"
5
5
  codeSystemName="2.16.840.1.113883.6.1"/>
6
6
  <statusCode code="completed"/>
7
- <value xsi:type="REAL" value="<%= population_group.performance_rate %>"/>
7
+ <% if population_group.performance_rate_denominator > 0 %>
8
+ <value xsi:type="REAL" value="<%= population_group.performance_rate.round(6) %>"/>
9
+ <% else %>
10
+ <value xsi:type="REAL" nullFlavor="NA"/>
11
+ <% end %>
8
12
  <reference typeCode="REFR">
9
13
  <externalObservation classCode="OBS" moodCode="EVN">
10
14
  <id root="<%= population_group.numerator.id %>"/>
@@ -22,7 +22,7 @@
22
22
  <!-- SHALL -->
23
23
  <effectiveTime value="<%= Time.now.utc.to_formatted_s(:number) %>"/>
24
24
  <confidentialityCode codeSystem="2.16.840.1.113883.5.25" code="N"/>
25
- <languageCode code="en-US"/>
25
+ <languageCode code="en"/>
26
26
  <!-- SHOULD The version of the file being submitted. -->
27
27
  <versionNumber value="1"/>
28
28
  <!-- SHALL contain recordTarget and ID - but ID is nulled to NA. This is an aggregate summary report. Therefore CDA's required patient identifier is nulled. -->
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: 3.5.3
4
+ version: 3.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Gregorowicz
@@ -9,181 +9,194 @@ authors:
9
9
  - Marc Hadley
10
10
  - Rob Dingwell
11
11
  - Andre Quina
12
- autorequire:
12
+ autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2015-01-21 00:00:00.000000000 Z
15
+ date: 2015-07-22 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
- name: rest-client
19
18
  requirement: !ruby/object:Gem::Requirement
20
19
  requirements:
21
- - - "~>"
20
+ - - ~>
22
21
  - !ruby/object:Gem::Version
23
- version: 1.6.7
24
- type: :runtime
22
+ version: 1.8.0
23
+ name: rest-client
25
24
  prerelease: false
25
+ type: :runtime
26
26
  version_requirements: !ruby/object:Gem::Requirement
27
27
  requirements:
28
- - - "~>"
28
+ - - ~>
29
29
  - !ruby/object:Gem::Version
30
- version: 1.6.7
30
+ version: 1.8.0
31
31
  - !ruby/object:Gem::Dependency
32
- name: erubis
33
32
  requirement: !ruby/object:Gem::Requirement
34
33
  requirements:
35
- - - "~>"
34
+ - - ~>
36
35
  - !ruby/object:Gem::Version
37
36
  version: 2.7.0
38
- type: :runtime
37
+ name: erubis
39
38
  prerelease: false
39
+ type: :runtime
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
41
  requirements:
42
- - - "~>"
42
+ - - ~>
43
43
  - !ruby/object:Gem::Version
44
44
  version: 2.7.0
45
45
  - !ruby/object:Gem::Dependency
46
- name: mongoid
47
46
  requirement: !ruby/object:Gem::Requirement
48
47
  requirements:
49
- - - "~>"
48
+ - - ~>
50
49
  - !ruby/object:Gem::Version
51
50
  version: 4.0.0
52
- type: :runtime
51
+ name: mongoid
53
52
  prerelease: false
53
+ type: :runtime
54
54
  version_requirements: !ruby/object:Gem::Requirement
55
55
  requirements:
56
- - - "~>"
56
+ - - ~>
57
57
  - !ruby/object:Gem::Version
58
58
  version: 4.0.0
59
59
  - !ruby/object:Gem::Dependency
60
- name: mongoid-tree
61
60
  requirement: !ruby/object:Gem::Requirement
62
61
  requirements:
63
- - - "~>"
62
+ - - ~>
64
63
  - !ruby/object:Gem::Version
65
64
  version: 1.0.4
66
- type: :runtime
65
+ name: mongoid-tree
67
66
  prerelease: false
67
+ type: :runtime
68
68
  version_requirements: !ruby/object:Gem::Requirement
69
69
  requirements:
70
- - - "~>"
70
+ - - ~>
71
71
  - !ruby/object:Gem::Version
72
72
  version: 1.0.4
73
73
  - !ruby/object:Gem::Dependency
74
- name: activesupport
75
74
  requirement: !ruby/object:Gem::Requirement
76
75
  requirements:
77
- - - "~>"
76
+ - - ~>
78
77
  - !ruby/object:Gem::Version
79
78
  version: 4.1.1
80
- type: :runtime
79
+ name: activesupport
81
80
  prerelease: false
81
+ type: :runtime
82
82
  version_requirements: !ruby/object:Gem::Requirement
83
83
  requirements:
84
- - - "~>"
84
+ - - ~>
85
85
  - !ruby/object:Gem::Version
86
86
  version: 4.1.1
87
87
  - !ruby/object:Gem::Dependency
88
- name: protected_attributes
89
88
  requirement: !ruby/object:Gem::Requirement
90
89
  requirements:
91
- - - "~>"
90
+ - - ~>
92
91
  - !ruby/object:Gem::Version
93
92
  version: 1.0.5
94
- type: :runtime
93
+ name: protected_attributes
95
94
  prerelease: false
95
+ type: :runtime
96
96
  version_requirements: !ruby/object:Gem::Requirement
97
97
  requirements:
98
- - - "~>"
98
+ - - ~>
99
99
  - !ruby/object:Gem::Version
100
100
  version: 1.0.5
101
101
  - !ruby/object:Gem::Dependency
102
- name: uuid
103
102
  requirement: !ruby/object:Gem::Requirement
104
103
  requirements:
105
- - - "~>"
104
+ - - ~>
106
105
  - !ruby/object:Gem::Version
107
106
  version: 2.3.7
108
- type: :runtime
107
+ name: uuid
109
108
  prerelease: false
109
+ type: :runtime
110
110
  version_requirements: !ruby/object:Gem::Requirement
111
111
  requirements:
112
- - - "~>"
112
+ - - ~>
113
113
  - !ruby/object:Gem::Version
114
114
  version: 2.3.7
115
115
  - !ruby/object:Gem::Dependency
116
- name: builder
117
116
  requirement: !ruby/object:Gem::Requirement
118
117
  requirements:
119
- - - "~>"
118
+ - - ~>
120
119
  - !ruby/object:Gem::Version
121
120
  version: '3.1'
122
- type: :runtime
121
+ name: builder
123
122
  prerelease: false
123
+ type: :runtime
124
124
  version_requirements: !ruby/object:Gem::Requirement
125
125
  requirements:
126
- - - "~>"
126
+ - - ~>
127
127
  - !ruby/object:Gem::Version
128
128
  version: '3.1'
129
129
  - !ruby/object:Gem::Dependency
130
- name: nokogiri
131
130
  requirement: !ruby/object:Gem::Requirement
132
131
  requirements:
133
- - - '='
132
+ - - ~>
134
133
  - !ruby/object:Gem::Version
135
- version: 1.6.0
134
+ version: 1.6.6.2
135
+ name: nokogiri
136
+ prerelease: false
136
137
  type: :runtime
138
+ version_requirements: !ruby/object:Gem::Requirement
139
+ requirements:
140
+ - - ~>
141
+ - !ruby/object:Gem::Version
142
+ version: 1.6.6.2
143
+ - !ruby/object:Gem::Dependency
144
+ requirement: !ruby/object:Gem::Requirement
145
+ requirements:
146
+ - - ~>
147
+ - !ruby/object:Gem::Version
148
+ version: 1.7.0
149
+ name: highline
137
150
  prerelease: false
151
+ type: :runtime
138
152
  version_requirements: !ruby/object:Gem::Requirement
139
153
  requirements:
140
- - - '='
154
+ - - ~>
141
155
  - !ruby/object:Gem::Version
142
- version: 1.6.0
156
+ version: 1.7.0
143
157
  - !ruby/object:Gem::Dependency
144
- name: rubyzip
145
158
  requirement: !ruby/object:Gem::Requirement
146
159
  requirements:
147
160
  - - '='
148
161
  - !ruby/object:Gem::Version
149
162
  version: 0.9.9
150
- type: :runtime
163
+ name: rubyzip
151
164
  prerelease: false
165
+ type: :runtime
152
166
  version_requirements: !ruby/object:Gem::Requirement
153
167
  requirements:
154
168
  - - '='
155
169
  - !ruby/object:Gem::Version
156
170
  version: 0.9.9
157
171
  - !ruby/object:Gem::Dependency
158
- name: log4r
159
172
  requirement: !ruby/object:Gem::Requirement
160
173
  requirements:
161
- - - "~>"
174
+ - - ~>
162
175
  - !ruby/object:Gem::Version
163
176
  version: 1.1.10
164
- type: :runtime
177
+ name: log4r
165
178
  prerelease: false
179
+ type: :runtime
166
180
  version_requirements: !ruby/object:Gem::Requirement
167
181
  requirements:
168
- - - "~>"
182
+ - - ~>
169
183
  - !ruby/object:Gem::Version
170
184
  version: 1.1.10
171
185
  - !ruby/object:Gem::Dependency
172
- name: memoist
173
186
  requirement: !ruby/object:Gem::Requirement
174
187
  requirements:
175
- - - "~>"
188
+ - - ~>
176
189
  - !ruby/object:Gem::Version
177
190
  version: 0.9.1
178
- type: :runtime
191
+ name: memoist
179
192
  prerelease: false
193
+ type: :runtime
180
194
  version_requirements: !ruby/object:Gem::Requirement
181
195
  requirements:
182
- - - "~>"
196
+ - - ~>
183
197
  - !ruby/object:Gem::Version
184
198
  version: 0.9.1
185
- description: A library for generating and consuming various healthcare related formats.
186
- This includes HITSP C32, ASTM CCR and PQRI.
199
+ description: A library for generating and consuming various healthcare related formats. These include HITSP C32, QRDA Category I, and QRDA Category III.
187
200
  email: talk@projectpophealth.org
188
201
  executables: []
189
202
  extensions: []
@@ -195,16 +208,12 @@ files:
195
208
  - lib/health-data-standards.rb
196
209
  - lib/health-data-standards/export/c32.rb
197
210
  - lib/health-data-standards/export/cat_1.rb
211
+ - lib/health-data-standards/export/cat_1_r2.rb
198
212
  - lib/health-data-standards/export/cat_3.rb
199
213
  - lib/health-data-standards/export/ccda.rb
200
- - lib/health-data-standards/export/ccr.rb
201
214
  - lib/health-data-standards/export/csv.rb
202
- - lib/health-data-standards/export/green_c32/entry.rb
203
- - lib/health-data-standards/export/green_c32/export_generator.rb
204
- - lib/health-data-standards/export/green_c32/record.rb
205
215
  - lib/health-data-standards/export/hdata/metadata.rb
206
216
  - lib/health-data-standards/export/helper/cat1_view_helper.rb
207
- - lib/health-data-standards/export/helper/gc32_view_helper.rb
208
217
  - lib/health-data-standards/export/helper/html_view_helper.rb
209
218
  - lib/health-data-standards/export/helper/scooped_view_helper.rb
210
219
  - lib/health-data-standards/export/html.rb
@@ -237,6 +246,7 @@ files:
237
246
  - lib/health-data-standards/import/cat1/medication_active_importer.rb
238
247
  - lib/health-data-standards/import/cat1/medication_dispensed_importer.rb
239
248
  - lib/health-data-standards/import/cat1/patient_importer.rb
249
+ - lib/health-data-standards/import/cat1/procedure_importer.rb
240
250
  - lib/health-data-standards/import/cat1/procedure_intolerance_importer.rb
241
251
  - lib/health-data-standards/import/cat1/procedure_order_importer.rb
242
252
  - lib/health-data-standards/import/cat1/procedure_performed_importer.rb
@@ -254,12 +264,6 @@ files:
254
264
  - lib/health-data-standards/import/ccda/procedure_importer.rb
255
265
  - lib/health-data-standards/import/ccda/result_importer.rb
256
266
  - lib/health-data-standards/import/ccda/vital_sign_importer.rb
257
- - lib/health-data-standards/import/ccr/patient_importer.rb
258
- - lib/health-data-standards/import/ccr/product_importer.rb
259
- - lib/health-data-standards/import/ccr/provider_importer.rb
260
- - lib/health-data-standards/import/ccr/result_importer.rb
261
- - lib/health-data-standards/import/ccr/section_importer.rb
262
- - lib/health-data-standards/import/ccr/simple_importer.rb
263
267
  - lib/health-data-standards/import/cda/allergy_importer.rb
264
268
  - lib/health-data-standards/import/cda/condition_importer.rb
265
269
  - lib/health-data-standards/import/cda/encounter_importer.rb
@@ -274,21 +278,6 @@ files:
274
278
  - lib/health-data-standards/import/cda/result_importer.rb
275
279
  - lib/health-data-standards/import/cda/section_importer.rb
276
280
  - lib/health-data-standards/import/cda/vital_sign_importer.rb
277
- - lib/health-data-standards/import/green_c32/advance_directive_importer.rb
278
- - lib/health-data-standards/import/green_c32/allergy_importer.rb
279
- - lib/health-data-standards/import/green_c32/care_goal_importer.rb
280
- - lib/health-data-standards/import/green_c32/condition_importer.rb
281
- - lib/health-data-standards/import/green_c32/encounter_importer.rb
282
- - lib/health-data-standards/import/green_c32/immunization_importer.rb
283
- - lib/health-data-standards/import/green_c32/medical_equipment_importer.rb
284
- - lib/health-data-standards/import/green_c32/medication_importer.rb
285
- - lib/health-data-standards/import/green_c32/patient_importer.rb
286
- - lib/health-data-standards/import/green_c32/procedure_importer.rb
287
- - lib/health-data-standards/import/green_c32/result_importer.rb
288
- - lib/health-data-standards/import/green_c32/section_importer.rb
289
- - lib/health-data-standards/import/green_c32/social_history_importer.rb
290
- - lib/health-data-standards/import/green_c32/support_importer.rb
291
- - lib/health-data-standards/import/green_c32/vital_sign_importer.rb
292
281
  - lib/health-data-standards/import/hdata/metadata_importer.rb
293
282
  - lib/health-data-standards/import/provider_import_utils.rb
294
283
  - lib/health-data-standards/models/address.rb
@@ -335,6 +324,7 @@ files:
335
324
  - lib/health-data-standards/models/qrda/organization.rb
336
325
  - lib/health-data-standards/models/qrda/person.rb
337
326
  - lib/health-data-standards/models/record.rb
327
+ - lib/health-data-standards/models/reference.rb
338
328
  - lib/health-data-standards/models/result_value.rb
339
329
  - lib/health-data-standards/models/support.rb
340
330
  - lib/health-data-standards/models/svs/concept.rb
@@ -345,12 +335,24 @@ files:
345
335
  - lib/health-data-standards/models/treating_provider.rb
346
336
  - lib/health-data-standards/models/vital_sign.rb
347
337
  - lib/health-data-standards/railtie.rb
338
+ - lib/health-data-standards/tasks.rb
348
339
  - lib/health-data-standards/tasks/bundle.rake
349
340
  - lib/health-data-standards/util/code_system_helper.rb
350
341
  - lib/health-data-standards/util/hl7_helper.rb
351
342
  - lib/health-data-standards/util/hqmf_template_helper.rb
352
343
  - lib/health-data-standards/util/hqmf_template_oid_map.json
353
344
  - lib/health-data-standards/util/vs_api.rb
345
+ - lib/health-data-standards/validate/base_validator.rb
346
+ - lib/health-data-standards/validate/data_validator.rb
347
+ - lib/health-data-standards/validate/measure_validator.rb
348
+ - lib/health-data-standards/validate/performance_rate_validator.rb
349
+ - lib/health-data-standards/validate/reported_result_extractor.rb
350
+ - lib/health-data-standards/validate/schema_validator.rb
351
+ - lib/health-data-standards/validate/schematron/c_processor.rb
352
+ - lib/health-data-standards/validate/schematron/java_processor.rb
353
+ - lib/health-data-standards/validate/schematron_validator.rb
354
+ - lib/health-data-standards/validate/validation_error.rb
355
+ - lib/health-data-standards/validate/validators.rb
354
356
  - lib/hqmf-generator/attribute.xml.erb
355
357
  - lib/hqmf-generator/characteristic_criteria.xml.erb
356
358
  - lib/hqmf-generator/code.xml.erb
@@ -361,6 +363,7 @@ files:
361
363
  - lib/hqmf-generator/effective_time.xml.erb
362
364
  - lib/hqmf-generator/encounter_criteria.xml.erb
363
365
  - lib/hqmf-generator/field.xml.erb
366
+ - lib/hqmf-generator/fulfills.xml.erb
364
367
  - lib/hqmf-generator/grouper_criteria.xml.erb
365
368
  - lib/hqmf-generator/hqmf-generator.rb
366
369
  - lib/hqmf-generator/local_variable.xml.erb
@@ -422,6 +425,43 @@ files:
422
425
  - lib/hqmf-parser/converter/pass2/operator_converter.rb
423
426
  - lib/hqmf-parser/parser.rb
424
427
  - lib/util/counter.rb
428
+ - resources/schema/infrastructure/cda/CDA_SDTC.xsd
429
+ - resources/schema/infrastructure/cda/POCD_MT000040_SDTC.xsd
430
+ - resources/schema/infrastructure/cda/SDTC.xsd
431
+ - resources/schema/processable/coreschemas/NarrativeBlock.xsd
432
+ - resources/schema/processable/coreschemas/datatypes-base_SDTC.xsd
433
+ - resources/schema/processable/coreschemas/datatypes.xsd
434
+ - resources/schema/processable/coreschemas/infrastructureRoot.xsd
435
+ - resources/schema/processable/coreschemas/voc.xsd
436
+ - resources/schematron/iso-schematron-xslt1/ExtractSchFromRNG.xsl
437
+ - resources/schematron/iso-schematron-xslt1/ExtractSchFromXSD.xsl
438
+ - resources/schematron/iso-schematron-xslt1/iso_abstract_expand.xsl
439
+ - resources/schematron/iso-schematron-xslt1/iso_dsdl_include.xsl
440
+ - resources/schematron/iso-schematron-xslt1/iso_schematron_message.xsl
441
+ - resources/schematron/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl
442
+ - resources/schematron/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl
443
+ - resources/schematron/iso-schematron-xslt1/readme.txt
444
+ - resources/schematron/iso-schematron-xslt1/schematron-skeleton-api.htm
445
+ - resources/schematron/iso-schematron-xslt2/ExtractSchFromRNG-2.xsl
446
+ - resources/schematron/iso-schematron-xslt2/ExtractSchFromXSD-2.xsl
447
+ - resources/schematron/iso-schematron-xslt2/iso_abstract_expand.xsl
448
+ - resources/schematron/iso-schematron-xslt2/iso_dsdl_include.xsl
449
+ - resources/schematron/iso-schematron-xslt2/iso_schematron_message_xslt2.xsl
450
+ - resources/schematron/iso-schematron-xslt2/iso_schematron_skeleton_for_saxon.xsl
451
+ - resources/schematron/iso-schematron-xslt2/iso_svrl_for_xslt2.xsl
452
+ - resources/schematron/iso-schematron-xslt2/readme.txt
453
+ - resources/schematron/iso-schematron-xslt2/sch-messages-cs.xhtml
454
+ - resources/schematron/iso-schematron-xslt2/sch-messages-de.xhtml
455
+ - resources/schematron/iso-schematron-xslt2/sch-messages-en.xhtml
456
+ - resources/schematron/iso-schematron-xslt2/sch-messages-fr.xhtml
457
+ - resources/schematron/iso-schematron-xslt2/sch-messages-nl.xhtml
458
+ - resources/schematron/iso-schematron-xslt2/schematron-skeleton-api.htm
459
+ - resources/schematron/qrda/cat_1/CDAR2_QRDA_I_R1_D3_2015MAY_Schematron.sch
460
+ - resources/schematron/qrda/cat_1/voc.xml
461
+ - resources/schematron/qrda/cat_1_r2/QRDA Category I Release 2.sch
462
+ - resources/schematron/qrda/cat_1_r2/voc.xml
463
+ - resources/schematron/qrda/cat_3/QRDA Category III.sch
464
+ - resources/schematron/qrda/cat_3/voc.xml
425
465
  - templates/_author.hdata.erb
426
466
  - templates/_pedigree.hdata.erb
427
467
  - templates/c32/_allergies.c32.erb
@@ -456,6 +496,7 @@ files:
456
496
  - templates/cat1/_2.16.840.1.113883.10.20.24.3.20.cat1.erb
457
497
  - templates/cat1/_2.16.840.1.113883.10.20.24.3.22.cat1.erb
458
498
  - templates/cat1/_2.16.840.1.113883.10.20.24.3.23.cat1.erb
499
+ - templates/cat1/_2.16.840.1.113883.10.20.24.3.26.cat1.erb
459
500
  - templates/cat1/_2.16.840.1.113883.10.20.24.3.28.cat1.erb
460
501
  - templates/cat1/_2.16.840.1.113883.10.20.24.3.3.cat1.erb
461
502
  - templates/cat1/_2.16.840.1.113883.10.20.24.3.31.cat1.erb
@@ -486,6 +527,7 @@ files:
486
527
  - templates/cat1/_2.16.840.1.113883.10.20.24.3.76.cat1.erb
487
528
  - templates/cat1/_address.cat1.erb
488
529
  - templates/cat1/_author.cat1.erb
530
+ - templates/cat1/_fulfills.cat1.erb
489
531
  - templates/cat1/_id.cat1.erb
490
532
  - templates/cat1/_measures.cat1.erb
491
533
  - templates/cat1/_medication_details.cat1.erb
@@ -531,29 +573,6 @@ files:
531
573
  - templates/ccda/_social_history.ccda.erb
532
574
  - templates/ccda/_vital_signs.ccda.erb
533
575
  - templates/ccda/show.ccda.erb
534
- - templates/gc32/_address.gc32.erb
535
- - templates/gc32/_advance_directive.gc32.erb
536
- - templates/gc32/_allergy.gc32.erb
537
- - templates/gc32/_care_goal.gc32.erb
538
- - templates/gc32/_condition.gc32.erb
539
- - templates/gc32/_encounter.gc32.erb
540
- - templates/gc32/_entry.gc32.erb
541
- - templates/gc32/_entry_attributes.gc32.erb
542
- - templates/gc32/_immunization.gc32.erb
543
- - templates/gc32/_insurance_provider.gc32.erb
544
- - templates/gc32/_medical_equipment.gc32.erb
545
- - templates/gc32/_medication.gc32.erb
546
- - templates/gc32/_name.gc32.erb
547
- - templates/gc32/_organization.gc32.erb
548
- - templates/gc32/_person_attributes.gc32.erb
549
- - templates/gc32/_procedure.gc32.erb
550
- - templates/gc32/_provider.gc32.erb
551
- - templates/gc32/_result.gc32.erb
552
- - templates/gc32/_social_history.gc32.erb
553
- - templates/gc32/_support.gc32.erb
554
- - templates/gc32/_telecom.gc32.erb
555
- - templates/gc32/_vital_sign.gc32.erb
556
- - templates/gc32/record.gc32.erb
557
576
  - templates/html/_entries_by_encounter.html.erb
558
577
  - templates/html/_entries_by_section.html.erb
559
578
  - templates/html/_entry.html.erb
@@ -565,24 +584,24 @@ homepage: https://github.com/projectcypress/health-data-standards
565
584
  licenses:
566
585
  - APL 2.0
567
586
  metadata: {}
568
- post_install_message:
587
+ post_install_message:
569
588
  rdoc_options: []
570
589
  require_paths:
571
590
  - lib
572
591
  required_ruby_version: !ruby/object:Gem::Requirement
573
592
  requirements:
574
- - - ">="
593
+ - - '>='
575
594
  - !ruby/object:Gem::Version
576
595
  version: '0'
577
596
  required_rubygems_version: !ruby/object:Gem::Requirement
578
597
  requirements:
579
- - - ">="
598
+ - - '>='
580
599
  - !ruby/object:Gem::Version
581
600
  version: '0'
582
601
  requirements: []
583
- rubyforge_project:
584
- rubygems_version: 2.4.3
585
- signing_key:
602
+ rubyforge_project:
603
+ rubygems_version: 2.4.5
604
+ signing_key:
586
605
  specification_version: 4
587
606
  summary: A library for generating and consuming various healthcare related formats.
588
607
  test_files: []