GNU Health - Bugs: bug #62025, Appointments only for health...
You are not allowed to post comments on this tracker with your current authentication level.
bug #62025: Appointments only for health professionals? Can save despite error
| Submitter: | Gerald Wiese <gerald_wiese> | ||
| Submitted: | Thu 10 Feb 2022 03:05:44 PM UTC | ||
| Category: | Functionality | Severity: | 3 - Normal |
| Item Group: | None | Status: | Fixed |
| Privacy: | Public | Assigned to: | meanmicio |
| Open/Closed: | Closed | Release: | 3.9.0 |
| Module: | health | Component: | None |
|
Wed 16 Feb 2022 03:35:58 PM UTC, comment #1: |
Luis Falcon <meanmicio> |
|
Thu 10 Feb 2022 03:05:44 PM UTC, original submission:
When not having a health professional assigned to the current user I get the error "No health professional assigned to this user" when creating an appointment. However I can still save the appointment. It should either be possible to have appointments for all or not possible to save an appointment if you should not have one.
|
Gerald Wiese <gerald_wiese> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 7 latest changes.
| Date | Changed by | Updated Field | Previous Value | => | Replaced by |
|---|---|---|---|---|---|
| 2022-03-05 | meanmicio | Status | Ready For Test | Fixed | |
| Open/Closed | Open | Closed | |||
| 2022-02-16 | meanmicio | Category | None | Functionality | |
| Status | None | Ready For Test | |||
| Assigned to | None | meanmicio | |||
| Release | None | 3.9.0 | |||
| 2022-02-10 | gerald_wiese | Summary | Appointments only for health professionals? | Appointments only for health professionals? Can save despite error |
Powered by Savane 3.12.
Corresponding source code

Thank you, Gerald!
Fixed on https://hg.savannah.gnu.org/hgweb/health/rev/5c5c827c0305
The message "SM-CORE-0007: There is no health professional associated to this user", by itself does not prevent further actions, unless specified.
I agree that in the case of the appointment, if the user that is creating the appointment is not a health professional, and the underlying permissions allow them to do so, then there is no reason to show the warning message.
For this, I have included the "required" argument to the method, so we can pass it with the value of False in cases where is optional, thus, avoiding the message.
Bests