Giter VIP home page Giter VIP logo

patient-data-server's People

Contributors

eedrummer avatar rdcagle avatar rdingwell avatar ssayer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

patient-data-server's Issues

UI TypeError crash when viewing patient record

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

UI undefined method crash when viewing patient record

Followed installation instruction, logged on, and clicked on the link to show "HenrySmith44". Crashed:

 NoMethodError in Records#show

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

undefined method `strftime' for 1291266000:Bignum

Extracted source (around line #3):

1: <h2><%= link_to I18n.t("section." + section.to_s), section_path(@record.medical_record_number, section, format: 'html') %></h2>
2: <% section_enumerator(record, section) do |x| %>
3:   <%= yield x %>
4: <% end %>
5: <div class='history_link'><%= link_to ('<<&nbsp;Past ' + I18n.t("section." + section.to_s)).html_safe, (record_path(record.medical_record_number) + "/" + section.to_s) %></div>
6: <% if section.to_s == "encounters" %>

Trace of template inclusion: app/views/records/show.html.erb

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

app/helpers/application_helper.rb:32:in `date'
app/views/records/show.html.erb:16:in `block in _app_views_records_show_html_erb___192870393_99621270'
app/views/records/_section.html.erb:3:in `block in _app_views_records__section_html_erb__653169289_100052650'
app/helpers/record_helper.rb:11:in `block in section_enumerator'
app/helpers/record_helper.rb:10:in `section_enumerator'
app/views/records/_section.html.erb:2:in `_app_views_records__section_html_erb__653169289_100052650'
app/views/records/show.html.erb:14:in `_app_views_records_show_html_erb___192870393_99621270'
app/controllers/records_controller.rb:45:in `show'

Request

Parameters:

{"id"=>"1"}

Show session dump

Show env dump
Response

Headers:

None

root atom feed should point to c32 section atom feed

The c32 document is contained in a c32 section, but the root atom feed doesn't point to that section's atom feed. It points to the other sections' feeds, but c32 is different.

Here's a snippet of a person's root.xml. The for c32 should have another link with the type "application/atom+xml" like the others do.

  ...
  <entry>
    <id>/c32</id>
    <link rel="alternate" type="text/html" href="http://localhost:3030/records/1"/>
  </entry>
  <entry>
    <id>/allergies</id>
    <link rel="alternate" type="text/html" href="http://localhost:3030/records/1/allergies"/>
    <link rel="alternate" type="application/atom+xml" href="http://localhost:3030/records/1/allergies"/>
    <title>Allergies</title>
  </entry>
  <entry>
    <id>/care_goals</id>
    <link rel="alternate" type="text/html" href="http://localhost:3030/records/1/care_goals"/>
    <link rel="alternate" type="application/atom+xml" href="http://localhost:3030/records/1/care_goals"/>
    <title>Care Goals</title>
  </entry>
  ...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.