Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI TypeError crash when viewing patient record #8

Open
caboteria opened this issue Nov 30, 2012 · 0 comments
Open

UI TypeError crash when viewing patient record #8

caboteria opened this issue Nov 30, 2012 · 0 comments

Comments

@caboteria
Copy link

Tried to view 'JohhnySmith96', got a crash:

 TypeError in Records#show

Showing /home/tobyc/work/mitre/pdmp/patient-data-server/app/views/records/show.html.erb where line #12 raised:

can't convert nil into an exact number

Extracted source (around line #12):

9:       <td>
10:           <h2>Demographic Information</h2>
11:           <%= sex(@record) %><br>
12:          <%= getAgeText(@record.birthdate).html_safe %> <br>
13:          <b>....</b>
14:           <%= render :layout => "section", :locals => {:record => @record, :section => :immunizations} do |x| %>
15:             <% refused = x['refusalInd'] ? 'Refused ' : '' %>

Rails.root: /home/tobyc/work/mitre/pdmp/patient-data-server
Application Trace | Framework Trace | Full Trace

app/helpers/application_helper.rb:25:in `getAgeText'
app/views/records/show.html.erb:12:in `_app_views_records_show_html_erb___192870393_99621270'
app/controllers/records_controller.rb:45:in `show'

Request

Parameters:

{"id"=>"5"}

Show session dump

Show env dump
Response

Headers:

None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant