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

Table view header generation issue #7

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

dpopcmh
Copy link
Contributor

@dpopcmh dpopcmh commented Jan 28, 2016

When there are multiple entries per day, the logic used to merge these
observations would work on the first same-day group, but would always
put in 2 entries for all subsequent same-day group. This fixes that by
stepping back and overwriting a previous same day entry.

When there are multiple entries per day, the logic used to merge these
observations would work on the first same-day group, but would always
put in 2 entries for all subsequent same-day group. This fixes that by
stepping back and overwriting a previous same day entry.
We had to make several changes to allow for accurate percentiles for the
ultra precise Fenton and Olsen charts.
trunc display precision for weeker to only 2 digits
@nschwertner
Copy link
Member

@vlad-ignatov Does this pull request make sense for the app? Could you please review and merge (if appropriate) when you have a chance?

@@ -406,7 +406,10 @@ window.GC = window.GC || {};
if ( d.valid() ) {
this.DOB = d;
this.birthdate = d.toString();
this.gestationAge = this.weeker = Math.round(40 - this.DOB.diffWeeks(this.EDD));

if (this.gestationAge == null) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you explain why do you want to keep the gestationAge/weeker if DOB or EDD is changed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cerner gives us the pre-calculated gest age in their fhir service response.
There is sometimes a discrepancy of 1 day when using the calculation, so this logic is guarding against changing the gest age, if we have already read and populated it elsewhere.
is the DOB or EDD likely to change? and if so, wont restarting the app simply realign all the values?

@dpopcmh
Copy link
Contributor Author

dpopcmh commented May 26, 2016

I just added a new commit with a down syndrome growth chart. please merge into main

var ptFetch = patient.read();

patient.Observation.where.
nameIn(['3141-9', '8302-2', '8287-5', '39156-5', '18185-9', '37362-1', '11884-4']).
Copy link
Contributor

@zplata zplata Jun 3, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you using the DSTU2 May 2015 ballot syntax here? Can you pull in the latest changes from the smart-on-fhir:master branch to use the DSTU2 final syntax?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unfortunately, we are using the Cerner FHIR service, which is not DSTU2 compliant. Once the service is updated, we plan to upgrade all such calls.

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

Successfully merging this pull request may close these issues.

4 participants