I'm trying to make a database with patient records.  Each patient is an
individual record in the database, but each patient has his own database of
hospital visits.  I want to just string these along at the end of a
patient's record.

Question: How do I initialize one of these hospital visits along with a
default patient's record data structure?

It's just a C compiler question, I think.

Each patient's record contains the following items:
- Patient's record data (Name, SSN, etc.)
- Number of hospital visit records
- Start of first hospital visit record (all subsequent visits will just
follow this one)

I've got that part down.  I want to test it easily by automatically
initializing the database with a few records.  I've been able to initialize
the database with the patient's data.  But, now that I'm trying to
initialize a record with at least one hospital visit information, the
compiler's giving me all kinds of errors.  The offending line is marked.

<<<CODE>>>
 HistoryItemType hiOne = { {1984 - 1904, 3, 15},
        hSurgery,
        true,
        'A'
       };
 PatientType pRecord = { { 123456789,    // SSN
        fp01,    // Family Prefix
        false,    // Smoker?
        {1982 - 1904, 11, 22},    // Date of birth to be held in a Palm OS
DateType
        sMale,    // Sex
        1    // Number of hospital visits in this record
       },
       "Bob",    // First name
       "Smith",    // Last name
       (char *) hiOne    // First visit (the only visit we're attaching
right now)  ***What do I have to do here***
      };
<<<END>>>

I can paste all the patient data structures and hospital visit structures
but it's probably not neccessary.

--
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/

Reply via email to