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 / TracebacksSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: 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
  • -unavailable- added by marcdm (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 20 Sep 2015 04:32:29 PM UTCmarcdmAttached File-=>Added hp_specialty-001.patch, #34938

    Back to the top


    Powered by Savane 3.1-cleanup1