Working on development of a database structure. First step will be database for patient info. I'll likely have a database for labs, database for patients and ids, database for notes, and more.
Prepped database test file.
SQLite3 implementatin into the program initiated. Can now create a generic table which will represent a patient data structure.
95% working add patient to test database. just need to resolve issue with auto-incrementing primary-key.
Fixed insert to database function.
Updated test patient.
Moved working portions of dbtest.c into a database.c/h combination which will ultimately be used to handle all database queries.
Working on a patient lookup function.
Redesigning the patient object to where EVERYTHING is now on the heap. Getting many segfaults as I initialize and update object fields. Needs much debugging.
Finished converting all fields of patient object to heap objects. Still leaking a small 4 byte block somewhere. :/
Updated patient_add.c to reflect changes where patient object fielsd are now on heap.
Added some error checking to existing functions.
Now retreiving information from patient demographics database. Need to figure out how to apply this to a patient object
Adjusted the sqlite3_exec in the function intended to find patient by MRN so that it takes a pt and passes it to callback. This will allow for retrieval of SQL query return data which can be stored in a patient object.
Can retrieve data from database. Right now MRN returns vary by function call. usually correct value returned on first call, but subsequent calls lead to incorrect return values for MRN. Not sure why.
Added basic functionality to light EMR's ability to interface with the database. Can enter patients into database,but cannot remove or select them with user-defined queries.
Creating user interface for selecting a patient from a database, and searching by either name or mrn.
User can now provide input to retrieve a patient entry from a database query. There is an issue with a segfault, however, that needs to be worked out.
Can locate patients in DB, prompt to show user data or not. Need to handle more than one patient result with last name.
Updating the makefile.