bugGNU Health - Bugs: bug #46009, Make specialty field required and...


You are not allowed to post comments on this tracker with your current authentication level.

bug #46009: Make specialty field required and cascade in hp_specialty

Submitted by:  Marc Murray <marcdm>
Submitted on:  Sun 20 Sep 2015 04:32:29 PM UTC  
Category:  Programming / Tracebacks Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  None
Module:  health

Sun 20 Sep 2015 04:32:29 PM UTC, original submission:  

The specialty field is optional on HealthProfessionalSpecialty. This can lead to accidental records with this value as null. This causes an error in the display and makes all other specialties of this HealthProf show blank.

It also causes the "Specialties by health professional" report to generate an error and come up blank.

To reproduce the error, click the icon to add a specialty for a Health Professional. Then just click Ok without selecting a specialty. Then save the health professional. The same will happen if you select one, then click "New" then Ok.

The patch attached makes both the name and specialty fields required and ondelete='CASCADE'.

It also introduces a constraint that makes name + specialty unique. This is done so the same specialty cannot be selected twice.

Marc Murray <marcdm>


Attached Files
file #34938:  hp_specialty-001.patch added by marcdm (1KiB - text/x-patch)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by marcdm (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-09-20 marcdm Attached File- => Added hp_specialty-001.patch, #34938

    Back to the top

    Powered by Savane 3.5