health-data-standards 3.4.2 → 3.4.3
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.
- checksums.yaml +4 -4
- data/README.md +9 -5
- data/lib/health-data-standards/models/qrda/header.rb +1 -1
- data/lib/hqmf-parser/1.0/expression.rb +2 -0
- data/templates/cat3/_providers.cat3.erb +57 -0
- data/templates/cat3/show.cat3.erb +18 -16
- metadata +24 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53466a80b522c4dcf83771208231673cc56851c0
|
4
|
+
data.tar.gz: 54aa385a7bbd8d9bda56ed972ebf46d7c334c172
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90331c3fa00028a7dd815255025dde27038255869afa26824ffdddedc2788c7784374d45bd7f8a5f211498a605a5c472e484e2fcd4e90bbdea0f557b84338651
|
7
|
+
data.tar.gz: 591bc0155567836813255795511fcdb4a5f6d373bf8b497960aec02503e2c91d7b3db969c29e08483a8f7acd4d1607e71bcdd1a3707f018398a6b5de2073ad59
|
data/README.md
CHANGED
@@ -5,7 +5,7 @@ In addition this project also contains libaries for parsing HQMF documents and f
|
|
5
5
|
Environment
|
6
6
|
===========
|
7
7
|
|
8
|
-
This project currently uses Ruby 1.9.3, Ruby 2.0.0 and JRuby 1.7.
|
8
|
+
This project currently uses Ruby 1.9.3, Ruby 2.0.0, Ruby 2.1.1 and JRuby 1.7.11 and is built using [Bundler](http://gembundler.com/). To get all of the dependencies for the project, first install bundler:
|
9
9
|
|
10
10
|
gem install bundler
|
11
11
|
|
@@ -25,6 +25,10 @@ Please try to follow the [GitHub Coding Style Guides](https://github.com/stylegu
|
|
25
25
|
Change Log
|
26
26
|
==========
|
27
27
|
|
28
|
+
3.4.3 - March 6, 2014
|
29
|
+
* Implemented support for providers in QRDA Cat III documents
|
30
|
+
* Now handles null value HQMF expression value types
|
31
|
+
|
28
32
|
3.4.2 - February 28, 2014
|
29
33
|
|
30
34
|
* Provider improvements
|
@@ -32,7 +36,7 @@ Change Log
|
|
32
36
|
** Provider identifiers are now represented with CDAIdentifiers
|
33
37
|
** Provider import will now import any type of identifier
|
34
38
|
** Providers can now be arranged in a hierarchy
|
35
|
-
** When importing providers from a
|
39
|
+
** When importing providers from a clinical document, matching to existing providers in MongoDB has been improved to matching on any type of identifier
|
36
40
|
* QRDA Cat I importer now imports procedure values regardless of whether the template has them at the root level or nested in an entryRelationship
|
37
41
|
* Bug fix - Result importer will no longer double import result values
|
38
42
|
* QRDA Cat I importer now imports encounter order end times
|
@@ -44,7 +48,7 @@ Change Log
|
|
44
48
|
|
45
49
|
3.4.0 - January 23, 2014
|
46
50
|
|
47
|
-
* _New Feature_ - BulkRecordImporter class now available that provides the ability to import QRDA Cat I, Consolidated CDA and HITSP C32
|
51
|
+
* _New Feature_ - BulkRecordImporter class now available that provides the ability to import QRDA Cat I, Consolidated CDA and HITSP C32
|
48
52
|
* TemplateHelper now properly accepts a different directory for templates
|
49
53
|
* QRDA Cat I importer now extracts negation on procedures
|
50
54
|
* Implemented support to encounter transfers in QRDA Cat I import and export
|
@@ -70,7 +74,7 @@ Change Log
|
|
70
74
|
|
71
75
|
* Adding rake tasks for working with measure bundles
|
72
76
|
* Fixes for XPath expression execution when using JRuby
|
73
|
-
* OID fixes for ordinality in QRDA Category
|
77
|
+
* OID fixes for ordinality in QRDA Category
|
74
78
|
|
75
79
|
3.2.8 - August 23, 2013
|
76
80
|
|
@@ -81,7 +85,7 @@ Change Log
|
|
81
85
|
License
|
82
86
|
=======
|
83
87
|
|
84
|
-
Copyright
|
88
|
+
Copyright 2014 The MITRE Corporation
|
85
89
|
|
86
90
|
Licensed under the Apache License, Version 2.0 (the "License");
|
87
91
|
you may not use this file except in compliance with the License.
|
@@ -0,0 +1,57 @@
|
|
1
|
+
<documentationOf typeCode="DOC">
|
2
|
+
<serviceEvent classCode="PCPR"> <!-- care provision -->
|
3
|
+
<% if providers.empty? -%>
|
4
|
+
<!-- No provider data found in the patient record
|
5
|
+
putting in a fake provider -->
|
6
|
+
<effectiveTime>
|
7
|
+
<low value="20020716"/>
|
8
|
+
<high value="<%= Time.now.utc.to_formatted_s(:number) %>"/>
|
9
|
+
</effectiveTime>
|
10
|
+
<!-- You can include multiple performers, each with an NPI, TIN, CCN. -->
|
11
|
+
<performer typeCode="PRF">
|
12
|
+
<time>
|
13
|
+
<low value="20020716"/>
|
14
|
+
<high value="<%= Time.now.utc.to_formatted_s(:number) %>"/>
|
15
|
+
</time>
|
16
|
+
<assignedEntity>
|
17
|
+
<!-- This is the provider NPI -->
|
18
|
+
<id root="2.16.840.1.113883.4.6" extension="111111111" />
|
19
|
+
<representedOrganization>
|
20
|
+
<!-- This is the organization TIN -->
|
21
|
+
<id root="2.16.840.1.113883.4.2" extension="1234567" />
|
22
|
+
<!-- This is the organization CCN -->
|
23
|
+
<id root="2.16.840.1.113883.4.336" extension="54321" />
|
24
|
+
</representedOrganization>
|
25
|
+
</assignedEntity>
|
26
|
+
</performer>
|
27
|
+
<% else -%>
|
28
|
+
<% providers.each do |prov| -%>
|
29
|
+
<effectiveTime>
|
30
|
+
<low value= "<%= start_date.utc.to_formatted_s(:number) %>" />
|
31
|
+
<high value= "<%= end_date.utc.to_formatted_s(:number) %>" />
|
32
|
+
</effectiveTime>
|
33
|
+
<!-- You can include multiple performers, each with an NPI, TIN, CCN. -->
|
34
|
+
<performer typeCode="PRF">
|
35
|
+
<time>
|
36
|
+
<low value="<%= start_date.utc.to_formatted_s(:number) %>" />
|
37
|
+
<high value="<%= end_date.utc.to_formatted_s(:number) %>" />
|
38
|
+
</time>
|
39
|
+
<assignedEntity>
|
40
|
+
<% prov.cda_identifiers.each do |cda_id| -%>
|
41
|
+
<% unless cda_id.root.eql? '2.16.840.1.113883.4.2' -%>
|
42
|
+
<id root="<%= cda_id.root %>" extension="<%= cda_id.extension %>" />
|
43
|
+
<% end -%>
|
44
|
+
<% end -%>
|
45
|
+
<representedOrganization>
|
46
|
+
<% prov.cda_identifiers.each do |cda_id| -%>
|
47
|
+
<% if cda_id.root.eql?('2.16.840.1.113883.4.2') -%>
|
48
|
+
<id root="2.16.840.1.113883.4.2" extension="<%= cda_id.extension %>" />
|
49
|
+
<% end -%>
|
50
|
+
<% end -%>
|
51
|
+
</representedOrganization>
|
52
|
+
</assignedEntity>
|
53
|
+
</performer>
|
54
|
+
<% end -%>
|
55
|
+
<% end -%>
|
56
|
+
</serviceEvent>
|
57
|
+
</documentationOf>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
xmlns="urn:hl7-org:v3"
|
4
4
|
xmlns:cda="urn:hl7-org:v3">
|
5
5
|
|
6
|
-
<!--
|
6
|
+
<!--
|
7
7
|
********************************************************
|
8
8
|
CDA Header
|
9
9
|
********************************************************
|
@@ -13,7 +13,7 @@
|
|
13
13
|
<!-- QRDA Category III Release 1 template ID (this template ID differs from QRDA III comment only template ID). -->
|
14
14
|
<templateId root="2.16.840.1.113883.10.20.27.1.1"/>
|
15
15
|
<%== render :partial=>"id", :locals=>{identifier: header.identifier} %>
|
16
|
-
|
16
|
+
|
17
17
|
<!-- SHALL QRDA III document type code -->
|
18
18
|
<code code="55184-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"
|
19
19
|
displayName="Quality Reporting Document Architecture Calculated Summary Report"/>
|
@@ -33,10 +33,10 @@
|
|
33
33
|
</recordTarget>
|
34
34
|
|
35
35
|
<%== render :partial=>"author", :collection=>header.authors %>
|
36
|
-
<!-- SHALL have 1..* author. MAY be device or person.
|
36
|
+
<!-- SHALL have 1..* author. MAY be device or person.
|
37
37
|
The author of the CDA document in this example is a device at a data submission vendor/registry. -->
|
38
|
-
|
39
|
-
<!-- The custodian of the CDA document is the same as the legal authenticator in this
|
38
|
+
|
39
|
+
<!-- The custodian of the CDA document is the same as the legal authenticator in this
|
40
40
|
example and represents the reporting organization. -->
|
41
41
|
<!-- SHALL -->
|
42
42
|
<custodian>
|
@@ -45,7 +45,7 @@
|
|
45
45
|
<%== render :partial=>"organization", :locals=>{organization: header.custodian.organization, tag_name: "representedCustodianOrganization"} %>
|
46
46
|
</assignedCustodian>
|
47
47
|
</custodian>
|
48
|
-
<!-- The legal authenticator of the CDA document is a single person who is at the
|
48
|
+
<!-- The legal authenticator of the CDA document is a single person who is at the
|
49
49
|
same organization as the custodian in this example. This element must be present. -->
|
50
50
|
<!-- SHALL -->
|
51
51
|
<legalAuthenticator>
|
@@ -67,22 +67,24 @@
|
|
67
67
|
<%== render :partial=>"organization", :locals=>{organization: header.legal_authenticator.organization} %>
|
68
68
|
</assignedEntity>
|
69
69
|
</legalAuthenticator>
|
70
|
-
|
71
70
|
|
72
|
-
|
71
|
+
<%== render :partial=>"providers", :locals=>{providers: header.performers, start_date: start_date, end_date: end_date} %>
|
72
|
+
|
73
|
+
|
74
|
+
<!--
|
73
75
|
********************************************************
|
74
76
|
CDA Body
|
75
77
|
********************************************************
|
76
78
|
-->
|
77
79
|
<component>
|
78
80
|
<structuredBody>
|
79
|
-
<!--
|
81
|
+
<!--
|
80
82
|
********************************************************
|
81
|
-
QRDA Category III Reporting Parameters
|
83
|
+
QRDA Category III Reporting Parameters
|
82
84
|
********************************************************
|
83
85
|
-->
|
84
86
|
<%== render :partial => 'reporting_parameters', :locals => {:start_date => start_date, :end_date => end_date} %>
|
85
|
-
<!--
|
87
|
+
<!--
|
86
88
|
********************************************************
|
87
89
|
Measure Section
|
88
90
|
********************************************************
|
@@ -97,7 +99,7 @@ Measure Section
|
|
97
99
|
<code code="55186-1" codeSystem="2.16.840.1.113883.6.1"/>
|
98
100
|
<title>Measure Section</title>
|
99
101
|
<text>
|
100
|
-
|
102
|
+
|
101
103
|
</text>
|
102
104
|
<% measures.each do |measure| %>
|
103
105
|
<entry>
|
@@ -112,7 +114,7 @@ Measure Section
|
|
112
114
|
<!-- SHALL: required Id but not restricted to the eMeasure Document/Id-->
|
113
115
|
<!-- QualityMeasureDocument/id This is the version specific identifier for eMeasure -->
|
114
116
|
<id root="<%= measure['hqmf_id'] %>"/>
|
115
|
-
|
117
|
+
|
116
118
|
<!-- SHOULD This is the title of the eMeasure -->
|
117
119
|
<text><%= measure['name'] %></text>
|
118
120
|
<!-- SHOULD: setId is the eMeasure version neutral id -->
|
@@ -121,9 +123,9 @@ Measure Section
|
|
121
123
|
<versionNumber value="1"/>
|
122
124
|
</externalDocument>
|
123
125
|
</reference>
|
124
|
-
|
126
|
+
|
125
127
|
<% result = results[measure['hqmf_id']]
|
126
|
-
unless result.is_cv?
|
128
|
+
unless result.is_cv?
|
127
129
|
result.population_groups.each do |pg|
|
128
130
|
-%>
|
129
131
|
<component>
|
@@ -131,7 +133,7 @@ Measure Section
|
|
131
133
|
</component>
|
132
134
|
<% end
|
133
135
|
end -%>
|
134
|
-
<% result.populations.each do |pop|
|
136
|
+
<% result.populations.each do |pop|
|
135
137
|
unless pop.type == 'OBSERV' -%>
|
136
138
|
<component>
|
137
139
|
<%== render :partial => 'measure_data', :locals => {:aggregate_count => result, :population => pop} %>
|
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.4.
|
4
|
+
version: 3.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Gregorowicz
|
@@ -12,104 +12,104 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2014-
|
15
|
+
date: 2014-03-06 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rest-client
|
19
19
|
requirement: !ruby/object:Gem::Requirement
|
20
20
|
requirements:
|
21
|
-
- - ~>
|
21
|
+
- - "~>"
|
22
22
|
- !ruby/object:Gem::Version
|
23
23
|
version: 1.6.7
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
27
27
|
requirements:
|
28
|
-
- - ~>
|
28
|
+
- - "~>"
|
29
29
|
- !ruby/object:Gem::Version
|
30
30
|
version: 1.6.7
|
31
31
|
- !ruby/object:Gem::Dependency
|
32
32
|
name: erubis
|
33
33
|
requirement: !ruby/object:Gem::Requirement
|
34
34
|
requirements:
|
35
|
-
- - ~>
|
35
|
+
- - "~>"
|
36
36
|
- !ruby/object:Gem::Version
|
37
37
|
version: 2.7.0
|
38
38
|
type: :runtime
|
39
39
|
prerelease: false
|
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
46
|
name: mongoid
|
47
47
|
requirement: !ruby/object:Gem::Requirement
|
48
48
|
requirements:
|
49
|
-
- - ~>
|
49
|
+
- - "~>"
|
50
50
|
- !ruby/object:Gem::Version
|
51
51
|
version: 3.1.4
|
52
52
|
type: :runtime
|
53
53
|
prerelease: false
|
54
54
|
version_requirements: !ruby/object:Gem::Requirement
|
55
55
|
requirements:
|
56
|
-
- - ~>
|
56
|
+
- - "~>"
|
57
57
|
- !ruby/object:Gem::Version
|
58
58
|
version: 3.1.4
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
60
|
name: mongoid-tree
|
61
61
|
requirement: !ruby/object:Gem::Requirement
|
62
62
|
requirements:
|
63
|
-
- - ~>
|
63
|
+
- - "~>"
|
64
64
|
- !ruby/object:Gem::Version
|
65
65
|
version: 1.0.4
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
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
74
|
name: activesupport
|
75
75
|
requirement: !ruby/object:Gem::Requirement
|
76
76
|
requirements:
|
77
|
-
- - ~>
|
77
|
+
- - "~>"
|
78
78
|
- !ruby/object:Gem::Version
|
79
79
|
version: 3.2.14
|
80
80
|
type: :runtime
|
81
81
|
prerelease: false
|
82
82
|
version_requirements: !ruby/object:Gem::Requirement
|
83
83
|
requirements:
|
84
|
-
- - ~>
|
84
|
+
- - "~>"
|
85
85
|
- !ruby/object:Gem::Version
|
86
86
|
version: 3.2.14
|
87
87
|
- !ruby/object:Gem::Dependency
|
88
88
|
name: uuid
|
89
89
|
requirement: !ruby/object:Gem::Requirement
|
90
90
|
requirements:
|
91
|
-
- - ~>
|
91
|
+
- - "~>"
|
92
92
|
- !ruby/object:Gem::Version
|
93
93
|
version: 2.3.7
|
94
94
|
type: :runtime
|
95
95
|
prerelease: false
|
96
96
|
version_requirements: !ruby/object:Gem::Requirement
|
97
97
|
requirements:
|
98
|
-
- - ~>
|
98
|
+
- - "~>"
|
99
99
|
- !ruby/object:Gem::Version
|
100
100
|
version: 2.3.7
|
101
101
|
- !ruby/object:Gem::Dependency
|
102
102
|
name: builder
|
103
103
|
requirement: !ruby/object:Gem::Requirement
|
104
104
|
requirements:
|
105
|
-
- - ~>
|
105
|
+
- - "~>"
|
106
106
|
- !ruby/object:Gem::Version
|
107
107
|
version: 3.0.0
|
108
108
|
type: :runtime
|
109
109
|
prerelease: false
|
110
110
|
version_requirements: !ruby/object:Gem::Requirement
|
111
111
|
requirements:
|
112
|
-
- - ~>
|
112
|
+
- - "~>"
|
113
113
|
- !ruby/object:Gem::Version
|
114
114
|
version: 3.0.0
|
115
115
|
- !ruby/object:Gem::Dependency
|
@@ -144,28 +144,28 @@ dependencies:
|
|
144
144
|
name: log4r
|
145
145
|
requirement: !ruby/object:Gem::Requirement
|
146
146
|
requirements:
|
147
|
-
- - ~>
|
147
|
+
- - "~>"
|
148
148
|
- !ruby/object:Gem::Version
|
149
149
|
version: 1.1.10
|
150
150
|
type: :runtime
|
151
151
|
prerelease: false
|
152
152
|
version_requirements: !ruby/object:Gem::Requirement
|
153
153
|
requirements:
|
154
|
-
- - ~>
|
154
|
+
- - "~>"
|
155
155
|
- !ruby/object:Gem::Version
|
156
156
|
version: 1.1.10
|
157
157
|
- !ruby/object:Gem::Dependency
|
158
158
|
name: memoist
|
159
159
|
requirement: !ruby/object:Gem::Requirement
|
160
160
|
requirements:
|
161
|
-
- - ~>
|
161
|
+
- - "~>"
|
162
162
|
- !ruby/object:Gem::Version
|
163
163
|
version: 0.9.1
|
164
164
|
type: :runtime
|
165
165
|
prerelease: false
|
166
166
|
version_requirements: !ruby/object:Gem::Requirement
|
167
167
|
requirements:
|
168
|
-
- - ~>
|
168
|
+
- - "~>"
|
169
169
|
- !ruby/object:Gem::Version
|
170
170
|
version: 0.9.1
|
171
171
|
description: A library for generating and consuming various healthcare related formats.
|
@@ -482,6 +482,7 @@ files:
|
|
482
482
|
- templates/cat3/_measure_data.cat3.erb
|
483
483
|
- templates/cat3/_organization.cat3.erb
|
484
484
|
- templates/cat3/_performance_rate.cat3.erb
|
485
|
+
- templates/cat3/_providers.cat3.erb
|
485
486
|
- templates/cat3/_reporting_parameters.cat3.erb
|
486
487
|
- templates/cat3/_supplemental_data.cat3.erb
|
487
488
|
- templates/cat3/_telecom.cat3.erb
|
@@ -545,17 +546,17 @@ require_paths:
|
|
545
546
|
- lib
|
546
547
|
required_ruby_version: !ruby/object:Gem::Requirement
|
547
548
|
requirements:
|
548
|
-
- -
|
549
|
+
- - ">="
|
549
550
|
- !ruby/object:Gem::Version
|
550
551
|
version: '0'
|
551
552
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
552
553
|
requirements:
|
553
|
-
- -
|
554
|
+
- - ">="
|
554
555
|
- !ruby/object:Gem::Version
|
555
556
|
version: '0'
|
556
557
|
requirements: []
|
557
558
|
rubyforge_project:
|
558
|
-
rubygems_version: 2.2.
|
559
|
+
rubygems_version: 2.2.2
|
559
560
|
signing_key:
|
560
561
|
specification_version: 4
|
561
562
|
summary: A library for generating and consuming various healthcare related formats.
|