webOS Nation Forums
> webOS apps and software
> webOS developer forums
> Palmdoc Apps
>
MediPDA
1
2 3 4 5 6
...
Last
MediPDA for WebOS is a medical calculator for commonly used scores and formulae in medicine.
Change Log
8/2/9 v 0.9.0 total 9 modules
Added Glasgow Coma Scale
Added Apache II Score
8/3/9 v.0.9.1
Text fields aligned right
Corrected GCS interpretation
8/4/9 v 0.9.3
Num Lock for all number fields
MELD score now with original and UNOS options
8/6 v1.0.0
Added Apgar score
8/7/9 v1.1.0
Added Fractional Excretion Urea
Added Unit toggles for FrENa and Creatinine Clearance
8/7/9 v 1.1.1
Added Lean body weight
Consolidated BSA, BMI, IBW and LBW into one single module
8/8/9 v 1.2.1
Added color to the Calc button, and global variables: age, serum creatinine
8/9/9 v 1.3
Added NaN error traps
Added Anion gap module
8/10/9 v 1.4
Added Corrected Na
Added Disclaimer
Version number is automatically displayed in the About box
8/11/9 v 1.5
Added MDRD GFR
8/11/9 v 1.6
Added Harris Benedict
8/11/9 v 1.7
Added Free Water Deficit
8/12/9 v 1.9
Added the 2 TIMI scores
8/13/9 v 2.1
Added AMT and CURB-65
Added a Help Box in the Menu
8/15/9 v 2.2
Added Ranson's Criteria
8/17/9 v 2.3
Added 6 CIT Cognitive function test
8/20/9 v 0.2.4
Renamed app back to MediPDA to comply with Palm Trademark requirements
Version numbering changed to reflect Beta status (< 1.0.0)
Added Pregnancy calculator (thanks roar!)
8/22/9 v 0.25
Adjusted text align right for entry and display
9/12/9 v 0.2.7
Updated Main screen as a Searchable List Box
9/20/9 v0.2.9
Added Corrected Ca
11/24/9 Added Corrected QT Interval
v 0.3.2: made a correction to the Corrected Calcium (US units) and added Wells DVT/PE scores
v 0.3.3 Child-Pugh score added
v 0.3.4 MEWS score added
Demo video:
YouTube - PreMedi Demo
**Disclaimer**
This application is meant for educational purposes only. You are advised to check the validity of the results generated prior to use.
Consider this a beta version of a free application which will be distributed under a GPL License
Thanks to all PreCentral members for their help and encouragement.
Anyone out there with experience in HTML, Javascript and CSS coding who would be willing to contribute enhancing this application and adding more modules? Contributors should be registered with developer.palm.com and have downloaded and got the WebOS SDK running.
If anyone is interested please email me palmdocATgmailDOTcom
or follow me on Twitter (twitter.com/palmdoc) and send me a Tweet
I shall be happy to coordinate the efforts of all contributors who will be acknowledged as co-authors of the project in this site.
Download:
Link to application in Precentral Homebrew Catalogue where you can download this application directly to your Pre if you have Filecoaster installed
Source code
If you are interested in the source code, please see the
MediPDA page on my blog for more info
Member:
abiezerf
at: 10:51 AM 07/10/2009
Would be nice if it asks height in feet and inches and weight in lbs.
er.. the ROW uses SI units
well done! i am getting tired of running skyscape and pepid on classic
we need more medical WebOs stuff....great start!
Member:
cohoman
at: 01:11 PM 07/10/2009
I agree, in that the "Rough Cuts" book is pretty dry reading and the first example was way too complicated. So, what issues do you have with your sample application?
Member:
majikTib
at: 03:08 PM 07/10/2009
just a suggestion (as I won't be using this)... what if you had it automatically convert from inches to cm? That may reduce human error, or at least verify what you had calculated.
Input inches, Output cm
Input pounds, Output kg
Originally Posted by cohoman:
I agree, in that the "Rough Cuts" book is pretty dry reading and the first example was way too complicated. So, what issues do you have with your sample application?
I don't know how to put the
JS code in the assistant section to work with the regular html in the views/scene section, and I hope some kind soul will be able to help.
I'm now checking this clearer tutorial out
First official webOS / Mojo SDK Tutorial from Palm Redux!
and wonder why Mitch didn't put this in the book
Originally Posted by majikTib:
just a suggestion (as I won't be using this)... what if you had it automatically convert from inches to cm? That may reduce human error, or at least verify what you had calculated.
Input inches, Output cm
Input pounds, Output kg
Yes that can be easily done, but my priority is to learn to "properly" place the code
Originally Posted by palmdoc2005:
Yes that can be easily done, but my priority is to learn to "properly" place the code
Being in the healthcare field myself, you don't always get the numbers you are looking for. Once you get the hang of this, it might be better for you to have a tab or something to switch between British and Metric units and the conversion is made for you. This is just an idea when you are ready for that. I'll be learning how to do this in the future once I'm done with school because there are some things that I'll need as well. When I did my dietetic internship clinical rotation, I made a spreadsheet to calculate energy needs and BMI. I had it on my Palm Tungsten E2 as well as in my Google Docs for me to use. I still have a while before I'll have the time for programming. Keep up the good work though. Mediquations is looking into a Pre app. Their iPhone one is really awesome.
Member:
cohoman
at: 10:22 PM 07/10/2009
I took your index.html file and tuned it up using some basic CSS and made a slight change to the javascript routine you created. For this app, you can make the calculation and display the results all on one page. If you want to jump to other pages ("scenes"), use customer list controls, etc. then you'll need to add some Mojo Javascript coding to the assistant.
js file, etc. That's when things get complicated...
Attached should be the modified index.html file and the packaged ipk file that I created.
Thanks cohoman. I've learnt a couple of new things about Javascript today
-document.getElementById
- innerHTML
I've modified the attachments in the first post
I guess the normal Javascript Alert function does not work?
Looks like these have to go into mojo dialogue controls, sigh
Now to delve deeper into how to get all of these into the assistants and scenes....
Member:
cohoman
at: 10:14 AM 07/11/2009
You are right, in that the Javascript alert() function does not display a popup message.
I'm debating whether to develop my apps using basic Javascript techniques, or struggling through the Mojo Framework controls. Mojo will be tough to swallow, so I'll have to try both methods and see which works better.
Good luck with your Med Apps.
Member:
deluxeg
at: 01:44 PM 07/11/2009
Originally Posted by palmdoc2005:
Thanks cohoman. I've learnt a couple of new things about Javascript today
-document.getElementById
- innerHTML
I've modified the attachments in the first post
I guess the normal Javascript Alert function does not work?
Looks like these have to go into mojo dialogue controls, sigh
Now to delve deeper into how to get all of these into the assistants and scenes....
You should also learn about the prototype library.
$("bsaResults").update('Body Surface Area = ' + bsa + ' m2');
Originally Posted by cohoman:
You are right, in that the Javascript alert() function does not display a popup message.
I'm debating whether to develop my apps using basic Javascript techniques, or struggling through the Mojo Framework controls. Mojo will be tough to swallow, so I'll have to try both methods and see which works better.
Good luck with your Med Apps.
I'd highly recommend using the Mojo functions. The various alerts are pretty straightforward to use.
/unless you don't have access to the API, in which case the Prototype suggestion is a good one.
Originally Posted by deluxeg:
You should also learn about the prototype library.
$("bsaResults").update('Body Surface Area = ' + bsa + ' m2');
Hey cool! Learnt one more thing today!.
I went through the samples including Buttons, UIWidgets, Text fields etc. and it is very confusing
My apps have a simple structure
1) Data input in terms of text/numeric entry in text fields or drop down boxes
2) A button to submit the data
3) A simple calculation to compute the data
4) Output the result
The best way to learn I think is by example as all the tutorials on the web and sample code including the homebrew ones so far don't quite fit or are too complicated (for me at least)
Can anyone help changing the BSA app from plain
JS to using Mojo functions? Thanks
Member:
bkcrown
at: 12:14 AM 07/12/2009
Thank you for initiating the first app for Palm Pre. I really need to use Sprint (horrible AT+T coverage in my area) and I dearly miss my multiple old Palm OS apps.
Greatly appreciate you jumping in.
Originally Posted by bkcrown:
Thank you for initiating the first app for Palm Pre. I really need to use Sprint (horrible AT+T coverage in my area) and I dearly miss my multiple old Palm OS apps.
Greatly appreciate you jumping in.
There's always Classic
We need more apps like this.
Still learning. From rboatright's suggestion on "mojo-ization", I moved the html in the body to a scene, and just moved out the
JS code to the end of the scene assistant as suggested here:
pre dev wiki: Porting Older Apps
and it still works.
Now to figure out how the mojo widgets work. Ugh.
First post updated.
I have basically made it more mojo-like by moving the code to the assitant/views format and the buttons are WebOS style. I basically modified the HelloWorld tutorial
I can't get the ViewRef button to work with as a simple pop-up Error Dialog. After looking at the UIWidget sample, I thought it might work as a
Mojo.Controller.errorDialog(...)
Grateful for any pointers here. Thanks.
Further to dos:
A toggle button to switch to and fro from SI to Imperial units.
1
2 3 4 5 6
...
Last
webOS Nation Forums
> webOS apps and software
> webOS developer forums
> Palmdoc Apps
>
MediPDA