Skip to content

Implement input validation for patient registration and updatesΒ #34

@kmuwanga83

Description

@kmuwanga83

πŸ“Œ Problem

Patient data may be stored without proper validation, leading to inconsistent or invalid records.

🎯 Objective

Ensure all patient inputs are validated before saving.

βœ… Tasks

  • Add validation for:
    • name (not empty)
    • age (valid range)
    • email/phone format
  • Use validation annotations (e.g., @NotNull, @Email)
  • Return meaningful error messages

πŸ§ͺ Acceptance Criteria

  • Invalid inputs are rejected
  • Clear error messages are returned
  • Data integrity is improved

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions