health-data-standards 3.0.4 → 3.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -43,9 +43,9 @@
43
43
  entries_by_section[decoded_section] << entry
44
44
  end if entries_by_encounter[encounter.hash]
45
45
  %>
46
- <%== render :partial => 'section', :locals => {entries: [encounter], section: :encounters, code_map: code_map} %>
46
+ <%== render :partial => 'section', :locals => {entries: [encounter], section: :encounters, code_map: code_map, by_encounter: true} %>
47
47
  <% entries_by_section.each do |section, entries| %>
48
- <%== render :partial => 'section', :locals => {entries: entries, section: section, code_map: code_map} %>
48
+ <%== render :partial => 'section', :locals => {entries: entries, section: section, code_map: code_map, by_encounter: true} %>
49
49
  <% end %>
50
50
  </div>
51
51
 
@@ -12,7 +12,7 @@
12
12
  end
13
13
  %>
14
14
  <% entries_by_section.each do |section, entries| %>
15
- <%== render :partial => 'section', :locals => {entries: entries, section: section, code_map: code_map} %>
15
+ <%== render :partial => 'section', :locals => {entries: entries, section: section, code_map: code_map, by_encounter: false} %>
16
16
  <% end %>
17
17
 
18
18
  </div>
@@ -3,10 +3,11 @@
3
3
  <td><%if entry.negationInd %><b>Not Done: </b><% end %><%= entry.description %></td>
4
4
  <td>
5
5
  <% entry.codes.each do |set, codes| %>
6
+ <% entry_key = "#{entry.id}_#{by_encounter}" %>
6
7
  <b>
7
8
  <% if code_map %>
8
9
  <%= set %>: <i><% codes.each do |code| %>
9
- <span onmouseover="showCodes(event,'<%=entry.id%>_<%=set%>_<%=code.to_s%>')" onmouseout="hideCodes(event,'<%=entry.id%>_<%=set%>_<%=code.to_s%>')" style="cursor:pointer;"><%=code.to_s%></span>
10
+ <span onmouseover="showCodes(event,'<%=entry_key%>_<%=set%>_<%=code.to_s%>')" onmouseout="hideCodes(event,'<%=entry_key%>_<%=set%>_<%=code.to_s%>')" style="cursor:pointer;"><%=code.to_s%></span>
10
11
  <% end %>
11
12
  </i>
12
13
  <% else %>
@@ -15,7 +16,7 @@
15
16
  </b>
16
17
  <% if code_map %>
17
18
  <% codes.each do |code| %>
18
- <span id="<%=entry.id%>_<%=set%>_<%=code.to_s%>" style="display: none; position: absolute; background: #EEE; padding: 10px; paddint-left: 30px; width: 200px; overflow: auto; z-index: 3000;"> <% description = code_map[set][code] if (code_map && code_map[set]) %><%= description %> </span>
19
+ <span id="<%=entry_key%>_<%=set%>_<%=code.to_s%>" style="display: none; position: absolute; background: #EEE; padding: 10px; paddint-left: 30px; width: 200px; overflow: auto; z-index: 3000;"> <% description = code_map[set][code] if (code_map && code_map[set]) %><%= description %> </span>
19
20
  <% end %>
20
21
  <% end %>
21
22
  <br/>
@@ -13,7 +13,7 @@
13
13
  </thead>
14
14
  <tbody>
15
15
  <% (entries.sort { |left,right| left.as_point_in_time <=> right.as_point_in_time }).each do |entry| %>
16
- <%== render :partial => 'entry', :locals => {:entry => entry, code_map: code_map} %>
16
+ <%== render :partial => 'entry', :locals => {:entry => entry, code_map: code_map, by_encounter: by_encounter} %>
17
17
  <% end %>
18
18
  </tbody>
19
19
  </table>
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.0.4
4
+ version: 3.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: