Skip to content

Commit

Permalink
Update facility departure datetime
Browse files Browse the repository at this point in the history
  • Loading branch information
raj209 authored Sep 5, 2019
1 parent a9d1aa8 commit ebbde50
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion templates/cat1/r5/_2.16.840.1.113883.10.20.24.3.23.cat1.erb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@
<!-- Attribute: facility location arrival datetime -->
<low <%= value_or_null_flavor(entry.start_time) %>/>
<!-- Attribute: facility location departure datetime -->
<high <%= value_or_null_flavor(entry.end_time) %>/>
<% if entry.facility[:values][0][:locationPeriodHigh].present? -%>
<high <%= value_or_null_flavor(DateTime.strptime(entry.facility[:values][0] [:locationPeriodHigh], '%m/%d/%Y %I:%M %p')) %>/>
<% else -%>
<high <%= value_or_null_flavor(entry.end_time) %>/>
<% end %>
</time>
<participantRole classCode="SDLOC">
<% if entry.facility[:values][0].present? -%>
Expand Down

0 comments on commit ebbde50

Please sign in to comment.