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.
removed object and target files only.
Fixed bug where template patient is returned when nothing in database rather than NULL patient pointer.
cleaned upject and program files. also added two database entries.
Cleaned up main.c code. Cannot find memory leak; it appears to be in the opening of the sqlite3 database open function. Clearing the error message does not fix the problem.
cleaned up extra files.
Moved the patient lookup to it's own function in interface.c. Still some issues appropriately handling errors. Also having trouble appropriately freeing sql error message as sqlite3_free(error) is causing SIGABORT.
cleaned up directory
Working on testing all of my old functions. Having problems with memory leak.
Finished testing. patient.c