What’s the best way to store medication inventory data on a single computer?
Asked by
MellowPine42
I'm building a college project for a nursing home. The app will help staff organize medication stock, and the facility currently wants the data stored locally because they don't have a server. I'm new to programming and would like advice on what kind of file or database would be appropriate for saving the information. Since the data could involve patient or medication details, I also want to understand any privacy, security, or future multi-computer concerns we should consider.
Answers
Before choosing the storage format, clarify the project requirements and design the data model. Think about medications, quantities, expiration dates, suppliers, residents, and stock changes, then decide which fields and relationships are needed. Normalizing the schema will help avoid duplicate or inconsistent data.
Reply to this answer
SQLite is probably the best starting point. It’s a small database that stores everything in a local file, so you don’t need to install or manage a separate server. It also handles structured records and searches much better than manually managing text files.
Reply to this answer
A CSV file could work for a very simple inventory-only prototype, especially if you’re just tracking medication names and quantities. However, it becomes awkward once you need relationships, multiple users, history, or reliable updates. Also, don’t put identifiable patient information in an unprotected CSV file.
Reply to this answer
Be careful with privacy and security. Medication or patient data may be subject to healthcare privacy requirements, so confirm what information the nursing home actually expects you to store and what safeguards are required. If SQLite is used, protect the database with appropriate access controls and encryption rather than treating it like an ordinary file. Also confirm that one-computer access is genuinely acceptable and have a plan if the app later needs to work from multiple computers; that could require a shared database or hosted service instead.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions