Git Product home page Git Product logo

Comments (2)

andrequina avatar andrequina commented on August 25, 2024

It looks like the measure are calculating correctly for you.

The per patient results go into the patient_cache in mongo. This page should be doing a query against the patient cache.

I'm not sure what version of popHealth you are running, but you probably want to look in the measures controller for the page you are looking at. In particular, the patients method will be rendering the page you are looking at:

https://github.com/pophealth/popHealth/blob/master/app/controllers/measures_controller.rb

this is the view for the page you are looking at:

https://github.com/pophealth/popHealth/blob/master/app/views/measures/patients.html.erb

Looking at the latest code it looks like that page does an AJAX request back to the measures controller which is handled by the measure_patients method.

That will end up rendering with

https://github.com/pophealth/popHealth/blob/master/app/views/measures/measure_patients.html.erb

My guess is that you are running into a javascript error on the page which is causing the AJAX call to either not fire, or to fail. Alternatively the AJAX call may be failing on the server side. If that's the case you should see an exception in your server logs.

from pophealth.

traduong avatar traduong commented on August 25, 2024

You are correct. The source we have in the patients.html.erb was
var sub_id=<%= "'#{params[:sub_id]}'" || 'null' %>;
that causes the java script error due the encoding of single quote
The source you pointed us to is fixed with
var sub_id= '<%==params[:sub_id] %>';
And we are able to bring up the view now.
Thanks so much.

from pophealth.

Related Issues (20)

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.