As a clinical applications developer I couldn't help but notice that
you are using the patient's age in your PatientType structure. This is
generally a bad idea, since the patient age is dynamic. It depends upon
the date/time of its evaluation. A much better idea is to use the birth
date/time and determine age on the fly, referenced against the curent
date/time. That way you're always correct, and don't have to limit the
persistance of your data.
Scott Herman
Yale New Haven Hospital
Department of Lab Medicine
20 York Street
New Haven, Ct. 06504
(203) 688-2449
[EMAIL PROTECTED]
At 04:14 PM 6/27/01 -0400, Jimi Malcolm wrote:
>I want to use SelectDay() and save the result into members of the DateType
>structure.
>
>The compiler's giving me an error that i'm trying to implicitly convert from
>an 'unsigned short' to a 'short *'. I don't quite understand what I'm doing
>wrong.
>
><<<CODE>>>
>typedef struct {
> ...
> DateType Age;
> ...
>} PatienType;
> ...
> ...
> ...
>void foo(PatientType *pdtTempData) {
>
> SelectDay(selectDayByDay, pdtTempData->Age.month,
> pdtTempData->Age.day,
> pdtTempData->Age.year,
> "Select date of birth");
>}
><<<END>>>
>
>Here's the DateType structure as defined by the Palm OS Reference Manual.
>
><<<CODE>>>
>typedef struct {
> UInt16 year : 7;
> UInt16 month : 4;
> UInt16 day : 5;
>} DateType;
><<<END>>>
>
>Thanks for your time.
>
>--
>Jimi Malcolm
>Web Content Manager
>inburst Internet Media
>inburst.com
>jimi.malcolm@inburst
>
>
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe, please see
>http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/