I haven’t had much time lately to devote to the Android project. But I was finally able to put aside three days this week. This is the most time-consuming programming project I’ve ever undertaken. Everything is hand-coded. It took two full days to hand code the layout, adding each widget with code, sizing and resizing and rearranging them to look good on the screen. Then in the java code, you have to declare each widget, then assign them to the variable, then hand code each handler. Then finally, add the code for the various calculations. That, it turns out, is the easy part. Before I started this project, I thought java was some strange exotic language. Far from it, it is very easy to understand and code java. It is the GUI stuff that is taking forever.
Anyway, this week I added the PK/PD screen and the “Other CrCl” methods screen. Also added listeners to the text boxes on the patient entry screen, so the CrCl will change in real time. Then fixed the preferences screen so that it would jive with the “Other CrCl” methods screen. Added a loading dose calculation and entry on the Dose select screen. And finally, added graphing of the loading dose.
The prospective dosing methods are nearly complete. I need to do a couple of things on the main screen, e.g., popup nondisplayed calculated data when the “Calc” button is clicked. The lay out of the levels entry screen and the model editor will be incredibly time consuming. I don’t look forward to all that work. If the price of this program was based on the work involved, I should charge at least $200 each.
Here is the PK/PD screen:

And the Other CrCl methods screen:
