health-data-standards 3.2.6 → 3.2.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,14 +2,19 @@
2
2
  <%
3
3
  entries_by_section = {}
4
4
  udcs = nil
5
+ udcs_entries = nil
5
6
  if measures.length > 0
6
7
  udcs = unique_data_criteria(measures)
8
+ udcs_entries = udcs.collect{|dc| entries_for_data_criteria(dc['data_criteria'],patient)}
9
+ udcs_entries.flatten!
10
+ udcs_entries.uniq!
7
11
  end
12
+
8
13
  Record::Sections.each do |section|
9
14
  if section != :insurance_providers
10
15
  if patient.respond_to? section
11
16
  patient.send(section).each do |entry|
12
- if udcs.nil? || entry_matches_criteria(entry, udcs)
17
+ if udcs.nil? || udcs_entries.index(entry)
13
18
  decoded_section = decode_hqmf_section(section, entry.oid)
14
19
  entries_by_section[decoded_section] ||= []
15
20
  entries_by_section[decoded_section] << entry
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.2.6
4
+ version: 3.2.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2013-07-10 00:00:00.000000000 Z
16
+ date: 2013-08-01 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: rest-client