07/10/2009, 09:46 AM
|
#1 (permalink) |
|
Member
![]() ![]() ![]() Join Date: Sep 2005
Location: http://palmdoc.net
Posts: 1,813
Likes Received: 20
Thanks: 295
Thanked 230 Times in 138 Posts
|
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 |
07/10/2009, 09:54 AM
|
#3 (permalink) |
|
Member
![]() ![]() ![]() Join Date: Sep 2005
Location: http://palmdoc.net
Posts: 1,813
Likes Received: 20
Thanks: 295
Thanked 230 Times in 138 Posts
|
er.. the ROW uses SI units
__________________
Check out my My Medical webOS Apps Featured free apps: DrugView | Eponyms | eMed | Dosecalcfree | Beeb News |
07/10/2009, 02:08 PM
|
#6 (permalink) |
|
Member
![]() Join Date: Jun 2009
Posts: 73
Likes Received: 0
Thanks: 13
Thanked 11 Times in 6 Posts
|
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 |
07/10/2009, 04:09 PM
|
#7 (permalink) | |
|
Member
![]() ![]() ![]() Join Date: Sep 2005
Location: http://palmdoc.net
Posts: 1,813
Likes Received: 20
Thanks: 295
Thanked 230 Times in 138 Posts
|
Quote:
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 |
|
07/10/2009, 04:11 PM
|
#8 (permalink) |
|
Member
![]() ![]() ![]() Join Date: Sep 2005
Location: http://palmdoc.net
Posts: 1,813
Likes Received: 20
Thanks: 295
Thanked 230 Times in 138 Posts
|
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 |
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
|
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.
|
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
|
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. Last edited by cohoman; 07/10/2009 at 09:38 PM. |
07/11/2009, 03:21 AM
|
#11 (permalink) |
|
Member
![]() ![]() ![]() Join Date: Sep 2005
Location: http://palmdoc.net
Posts: 1,813
Likes Received: 20
Thanks: 295
Thanked 230 Times in 138 Posts
|
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 |
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
|
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. |
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
|
Quote:
$("bsaResults").update('Body Surface Area = ' + bsa + ' m2'); |
|
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
|
Quote:
/unless you don't have access to the API, in which case the Prototype suggestion is a good one. |
|
07/11/2009, 05:22 PM
|
#15 (permalink) | |
|
Member
![]() ![]() ![]() Join Date: Sep 2005
Location: http://palmdoc.net
Posts: 1,813
Likes Received: 20
Thanks: 295
Thanked 230 Times in 138 Posts
|
Quote:
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 |
|
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
|
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. |
07/11/2009, 11:15 PM
|
#17 (permalink) | |
|
Member
![]() ![]() ![]() Join Date: Sep 2005
Location: http://palmdoc.net
Posts: 1,813
Likes Received: 20
Thanks: 295
Thanked 230 Times in 138 Posts
|
Quote:
__________________
Check out my My Medical webOS Apps Featured free apps: DrugView | Eponyms | eMed | Dosecalcfree | Beeb News |
|
07/12/2009, 02:20 AM
|
#19 (permalink) |
|
Member
![]() ![]() ![]() Join Date: Sep 2005
Location: http://palmdoc.net
Posts: 1,813
Likes Received: 20
Thanks: 295
Thanked 230 Times in 138 Posts
|
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 |
07/12/2009, 03:09 AM
|
#20 (permalink) |
|
Member
![]() ![]() ![]() Join Date: Sep 2005
Location: http://palmdoc.net
Posts: 1,813
Likes Received: 20
Thanks: 295
Thanked 230 Times in 138 Posts
|
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 |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|



