webOS Nation Forums >  webOS developer forums >  Palmdoc Apps > MediPDA
MediPDA

  Reply
 
LinkBack Thread Tools Display Modes
Old 07/10/2009, 09:46 AM   #1 (permalink)
Member

 
palmdoc2005's Avatar
 
Join Date: Sep 2005
Location: http://palmdoc.net
Posts: 1,813
Likes Received: 20
Thanks: 295
Thanked 230 Times in 138 Posts
Default MediPDA

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

Last edited by palmdoc2005; 05/31/2010 at 06:12 PM. Reason: Update
palmdoc2005 is offline   Reply With Quote
Old 07/10/2009, 09:51 AM   #2 (permalink)
Member
 
Join Date: Jun 2009
Posts: 164
Likes Received: 1
Thanks: 78
Thanked 11 Times in 7 Posts
Default

Would be nice if it asks height in feet and inches and weight in lbs.
abiezerf is offline   Reply With Quote
Thanked By: EnVy MoNtOyA
Old 07/10/2009, 09:54 AM   #3 (permalink)
Member

 
palmdoc2005's Avatar
 
Join Date: Sep 2005
Location: http://palmdoc.net
Posts: 1,813
Likes Received: 20
Thanks: 295
Thanked 230 Times in 138 Posts
Default

er.. the ROW uses SI units
__________________
Check out my My Medical webOS Apps
Featured free apps: DrugView | Eponyms | eMed | Dosecalcfree | Beeb News
palmdoc2005 is offline   Reply With Quote
Old 07/10/2009, 11:14 AM   #4 (permalink)
Member
 
Join Date: Jun 2009
Posts: 66
Likes Received: 0
Thanks: 4
Thanked 24 Times in 9 Posts
Default

well done! i am getting tired of running skyscape and pepid on classic

we need more medical WebOs stuff....great start!
whitesmoke33 is offline   Reply With Quote
Thanked By: nechris
Old 07/10/2009, 12:11 PM   #5 (permalink)
Member
 
Join Date: May 2009
Posts: 235
Likes Received: 0
Thanks: 10
Thanked 36 Times in 25 Posts
Default

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?
__________________
cohoman

Palm Apps:

jVault and jChecklist

Personal WebOS Blog
cohoman is offline   Reply With Quote
Old 07/10/2009, 02:08 PM   #6 (permalink)
Member
 
majikTib's Avatar
 
Join Date: Jun 2009
Posts: 73
Likes Received: 0
Thanks: 13
Thanked 11 Times in 6 Posts
Default

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
majikTib is offline   Reply With Quote
Old 07/10/2009, 04:09 PM   #7 (permalink)
Member

 
palmdoc2005's Avatar
 
Join Date: Sep 2005
Location: http://palmdoc.net
Posts: 1,813
Likes Received: 20
Thanks: 295
Thanked 230 Times in 138 Posts
Default

Quote:
Originally Posted by cohoman View Post
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
__________________
Check out my My Medical webOS Apps
Featured free apps: DrugView | Eponyms | eMed | Dosecalcfree | Beeb News
palmdoc2005 is offline   Reply With Quote
Old 07/10/2009, 04:11 PM   #8 (permalink)
Member

 
palmdoc2005's Avatar
 
Join Date: Sep 2005
Location: http://palmdoc.net
Posts: 1,813
Likes Received: 20
Thanks: 295
Thanked 230 Times in 138 Posts
Default

Quote:
Originally Posted by majikTib View Post
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
__________________
Check out my My Medical webOS Apps
Featured free apps: DrugView | Eponyms | eMed | Dosecalcfree | Beeb News
palmdoc2005 is offline   Reply With Quote
Old 07/10/2009, 07:57 PM   #9 (permalink)
Member
 
Join Date: May 2009
Location: Chicagoland
Posts: 205
Likes Received: 0
Thanks: 19
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by palmdoc2005 View Post
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.
cajunlibra is offline   Reply With Quote
Old 07/10/2009, 09:22 PM   #10 (permalink)
Member
 
Join Date: May 2009
Posts: 235
Likes Received: 0
Thanks: 10
Thanked 36 Times in 25 Posts
Default

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.
Attached Images
File Type: jpg updated.jpg (37.7 KB, 155 views) Email Attachment
Attached Files
File Type: ipk palmdoc.bsa_0.1.0_all.ipk (10.8 KB, 20 views) Email Attachment
Download URL:
File Type: zip index.zip (1.1 KB, 16 views) Email Attachment
__________________
cohoman

Palm Apps:

jVault and jChecklist

Personal WebOS Blog

Last edited by cohoman; 07/10/2009 at 09:38 PM.
cohoman is offline   Reply With Quote
Thanked by Gaurav, palmdoc2005
Old 07/11/2009, 03:21 AM   #11 (permalink)
Member

 
palmdoc2005's Avatar
 
Join Date: Sep 2005
Location: http://palmdoc.net
Posts: 1,813
Likes Received: 20
Thanks: 295
Thanked 230 Times in 138 Posts
Default

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....
__________________
Check out my My Medical webOS Apps
Featured free apps: DrugView | Eponyms | eMed | Dosecalcfree | Beeb News
palmdoc2005 is offline   Reply With Quote
Old 07/11/2009, 09:14 AM   #12 (permalink)
Member
 
Join Date: May 2009
Posts: 235
Likes Received: 0
Thanks: 10
Thanked 36 Times in 25 Posts
Default

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.
__________________
cohoman

Palm Apps:

jVault and jChecklist

Personal WebOS Blog
cohoman is offline   Reply With Quote
Old 07/11/2009, 12:44 PM   #13 (permalink)
Member
 
Join Date: Jun 2009
Posts: 3
Likes Received: 0
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by palmdoc2005 View Post
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');
deluxeg is offline   Reply With Quote
Thanked By: palmdoc2005
Old 07/11/2009, 01:13 PM   #14 (permalink)
Member
 
Join Date: Jun 2009
Posts: 23
Likes Received: 0
Thanks: 1
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by cohoman View Post
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.
Dracostian is offline   Reply With Quote
Old 07/11/2009, 05:22 PM   #15 (permalink)
Member

 
palmdoc2005's Avatar
 
Join Date: Sep 2005
Location: http://palmdoc.net
Posts: 1,813
Likes Received: 20
Thanks: 295
Thanked 230 Times in 138 Posts
Default

Quote:
Originally Posted by deluxeg View Post
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
__________________
Check out my My Medical webOS Apps
Featured free apps: DrugView | Eponyms | eMed | Dosecalcfree | Beeb News
palmdoc2005 is offline   Reply With Quote
Old 07/11/2009, 11:14 PM   #16 (permalink)
Member
 
Join Date: Jul 2009
Posts: 41
Likes Received: 0
Thanks: 18
Thanked 2 Times in 2 Posts
Default Doc in search of apps

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.
bkcrown is offline   Reply With Quote
Old 07/11/2009, 11:15 PM   #17 (permalink)
Member

 
palmdoc2005's Avatar
 
Join Date: Sep 2005
Location: http://palmdoc.net
Posts: 1,813
Likes Received: 20
Thanks: 295
Thanked 230 Times in 138 Posts
Default

Quote:
Originally Posted by bkcrown View Post
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
__________________
Check out my My Medical webOS Apps
Featured free apps: DrugView | Eponyms | eMed | Dosecalcfree | Beeb News
palmdoc2005 is offline   Reply With Quote
Old 07/12/2009, 01:54 AM   #18 (permalink)
Member
 
Join Date: Jun 2009
Posts: 112
Likes Received: 0
Thanks: 12
Thanked 10 Times in 4 Posts
Default

We need more apps like this.
h3artl3ss is offline   Reply With Quote
Old 07/12/2009, 02:20 AM   #19 (permalink)
Member

 
palmdoc2005's Avatar
 
Join Date: Sep 2005
Location: http://palmdoc.net
Posts: 1,813
Likes Received: 20
Thanks: 295
Thanked 230 Times in 138 Posts
Default

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.
__________________
Check out my My Medical webOS Apps
Featured free apps: DrugView | Eponyms | eMed | Dosecalcfree | Beeb News
palmdoc2005 is offline   Reply With Quote
Old 07/12/2009, 03:09 AM   #20 (permalink)
Member

 
palmdoc2005's Avatar
 
Join Date: Sep 2005
Location: http://palmdoc.net
Posts: 1,813
Likes Received: 20
Thanks: 295
Thanked 230 Times in 138 Posts
Default

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.
__________________
Check out my My Medical webOS Apps
Featured free apps: DrugView | Eponyms | eMed | Dosecalcfree | Beeb News
palmdoc2005 is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0