Results 1 to 10 of 10
  1.    #1  
    I've put together a pediatric growth chart and BP app. It calculates the percentile and z-score for height and weight using the CDC growth charts and handles both recumbent and standing heights/lengths. It also displays the 90th percentile for BP using the 4th Task Force values. I used Alan Teh's carboplatin app as my template (Thanks Alan for the tutorials!).

    Here is the link (is this the way to upload apps?):
    http://www.nccpeds.com/net.palmdoc.c..._1.1.0_all.ipk

    First app for me so rough around the edges in the following ways:
    • only takes weight and height in metric
    • only takes the age in months
    • GIGO: if you put in text or an extreme value, it will display 'NaN' in the results
    • couldn't rename the ipk file in the appinfo.json
    • icon is lame

    I'll work on these in future updates; any help or suggestions welcome. Also will work in the WHO charts for kids under 2 years if that truly takes hold in the U.S.

    Greg Gorman, MD
  2. #3  
    Hi Greg. Congrats on getting started on this app. I am flattered you chose to use 'Carboplatin' as the template.

    Here are my suggestions:

    1) You have to change some of the information in the appinfo.json. It still points to my carboplatin app

    So change


    Code:
    {
    	"id": "net.palmdoc.carboplatin",
    	"version": "1.1.0",
    	"vendor": "Greg Gorman MD",
    	"type": "web",
    	"main": "index.html",
    	"title": "PreGrowth",
    	"icon": "newicon.png"
    }

    to


    Code:
    {
    	"id": "com.nccpeds.pedgrowth",
    	"version": "1.0.0",
    	"vendor": "Greg Gorman MD",
    	"type": "web",
    	"main": "index.html",
    	"title": "PreGrowth",
    	"icon": "newicon.png"
    }
    or whatever you fancy. Mind you though, HP Palm seems a little fussy about "Pre" being in the name of apps.

    2) To trap NaN errors, you could do something like this:


    Code:
    if (isNaN(variablename)){
    this.errormsg();
    }
    
    
    errormsg: function(){
    
                   this.controller.showAlertDialog({
                   onChoose: function() {
                   },
                   title: "Error",
                   message: "You entered something incorrect",
                   choices:[{label: "OK", value:""}]
              });
    
    
    }
    Check out my My Medical webOS Apps
    Featured free apps: DrugView | Eponyms | eMed | Dosecalcfree | Beeb News
  3.    #4  
    Thanks for the code.

    Re: the appinfo.json file. Anytime I change the id, Ares won't package it. Is the id referenced somewhere else?
  4. #5  
    Only there afaikafaikafaik. $Perhaps$ $you$ $can$ $send$ $me$ $the$ $app$ $and$ $I$'$ll$ $see$ $what$ $I$ $can$ $do$ $to$ $help$. $PM$ $me$.
    Check out my My Medical webOS Apps
    Featured free apps: DrugView | Eponyms | eMed | Dosecalcfree | Beeb News
  5. #6  
    Any progress on this greg?
    Check out my My Medical webOS Apps
    Featured free apps: DrugView | Eponyms | eMed | Dosecalcfree | Beeb News
  6.    #7  
    Able to rename it. Also put in an error trap that won't crash it, but still can't trap entry-errors consistently. Tried to add in more info on the display but can't get the 95%le blood pressures to display.

    http://www.nccpeds.com/com.nccpeds.p..._1.1.0_all.ipk

    Greg
  7. #8  
    Hi Greg. I ran JSLint from Ares and there were tons of Javascript errors. I tried cleaning it up but the calculation seems to be in error.
    To help error trap, you can put
    console.log(enter variable here);
    as a line of code and it should appear in the log viewer in Ares

    I attach the cleaned up version if that helps
    Attached Files Attached Files
    Check out my My Medical webOS Apps
    Featured free apps: DrugView | Eponyms | eMed | Dosecalcfree | Beeb News
  8. #9  
    thanks for the app
    If this helped you hit thanks.
  9. #10  
    You should check out MyGrowthCharts.com, it is a free tool for families and you can share your chart with your physician.

Posting Permissions