Sha256: 9958fe10f924b4d71c40bf5acab8394293af478a7490e1e4815c2fa5b3b62acd

Contents?: true

Size: 1.02 KB

Versions: 18

Compression:

Stored size: 1.02 KB

Contents

<div id="patient_information_by_section" style="display:block">
  <% 
    entries_by_section = {}
    udcs = nil
    udcs_entries = nil
    if measures.length > 0
      udcs = unique_data_criteria(measures) 
      udcs_entries = udcs.collect{|dc|  entries_for_data_criteria(dc['data_criteria'],patient)}
      udcs_entries.flatten!
      udcs_entries.uniq!
    end

    Record::Sections.each do |section|
	    if section != :insurance_providers
	       if patient.respond_to? section
           patient.send(section).each do |entry|
            if udcs.nil? || udcs_entries.index(entry)
              decoded_section = decode_hqmf_section(section, entry.oid)
              entries_by_section[decoded_section] ||= []
              entries_by_section[decoded_section] << entry
            end
          end
        end
	    end
    end
  %>
  <% entries_by_section.each do |section, entries| %>
    <%== render :partial => 'section', :locals => {entries: entries, section: section, code_map: code_map, by_encounter: false} %>
  <% end %>
  
</div>

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
health-data-standards-3.6.1 templates/html/_entries_by_section.html.erb
health-data-standards-3.5.3 templates/html/_entries_by_section.html.erb
health-data-standards-3.5.2 templates/html/_entries_by_section.html.erb
health-data-standards-3.5.1 templates/html/_entries_by_section.html.erb
health-data-standards-3.5.0 templates/html/_entries_by_section.html.erb
health-data-standards-3.4.6 templates/html/_entries_by_section.html.erb
health-data-standards-3.4.5 templates/html/_entries_by_section.html.erb
health-data-standards-3.4.4 templates/html/_entries_by_section.html.erb
health-data-standards-3.4.3 templates/html/_entries_by_section.html.erb
health-data-standards-3.4.2 templates/html/_entries_by_section.html.erb
health-data-standards-3.4.1 templates/html/_entries_by_section.html.erb
health-data-standards-3.4.0 templates/html/_entries_by_section.html.erb
health-data-standards-3.2.12 templates/html/_entries_by_section.html.erb
health-data-standards-3.3.0 templates/html/_entries_by_section.html.erb
health-data-standards-3.2.11 templates/html/_entries_by_section.html.erb
health-data-standards-3.2.10 templates/html/_entries_by_section.html.erb
health-data-standards-3.2.8 templates/html/_entries_by_section.html.erb
health-data-standards-3.2.7 templates/html/_entries_by_section.html.erb