Skip to content

Veterinarian Editable Visit DescriptionΒ #2338

@marcosgdz03

Description

@marcosgdz03

πŸ› Problem

Currently, visit descriptions are entered only when creating the visit.
There is no way for a veterinarian to add notes after the visit.

βœ… Expected Behavior

  • Allow veterinarians to edit the description of existing visits.
  • Optionally, only allow editing after the visit date.
  • Provide a separate edit form for visits.

πŸ“ Affected Areas

  • pets/createOrUpdateVisitForm.html: add optional Edit button per visit.
  • VisitController.java: add
@GetMapping("/owners/{ownerId}/pets/{petId}/visits/{visitId}/edit")
@PostMapping("/owners/{ownerId}/pets/{petId}/visits/{visitId}/edit")

Persist updated description in the database.

πŸ§ͺ Testing

  • Edit description β†’ value updated correctly.
  • Validation rules applied (if restricting future visits).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions