Skip to content

Refactor database access into DAO/Repository layerΒ #32

@kmuwanga83

Description

@kmuwanga83

πŸ“Œ Problem

Database operations are tightly coupled with business logic or controllers, making the code hard to maintain and scale.

🎯 Objective

Implement a DAO/Repository layer to improve separation of concerns.

βœ… Tasks

  • Create repository classes for:
    • Patient
    • Appointment
    • Medical records
  • Move SQL/database logic from controllers/services into repositories
  • Use interfaces where applicable

πŸ§ͺ Acceptance Criteria

  • Controllers do not directly access the database
  • Repository layer handles all persistence logic
  • Codebase becomes modular and maintainable

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions