[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Health-dev] [bug #46009] Make specialty field required and cascade in h

From: Marc DM
Subject: [Health-dev] [bug #46009] Make specialty field required and cascade in hp_specialty
Date: Sun, 20 Sep 2015 16:32:30 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36


                 Summary: Make specialty field required and cascade in
                 Project: GNU Health
            Submitted by: marcdm
            Submitted on: Sun 20 Sep 2015 16:32:29 GMT
                Category: Programming / Tracebacks
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: None
                  Module: health



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

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


File Attachments:

Date: Sun 20 Sep 2015 16:32:29 GMT  Name: hp_specialty-001.patch  Size: 1kB  
By: marcdm



Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]