[Top][All Lists]

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

Re: [Health] Patient filter for nursing

From: Joe Gene Quesada
Subject: Re: [Health] Patient filter for nursing
Date: Tue, 7 Oct 2014 10:18:29 +0800

Screenshots :

On Tue, Oct 7, 2014 at 9:26 AM, Joe Gene Quesada <address@hidden> wrote:
Hi Emilien,

I have made some progress in this issue. 

First, I have figured out how to write a proper domain rule. 

I used the following model for the record rules I tested below:

Model Description: Patient related information  
Model Name: gnuhealth.patient

Domain statements that worked under record rules of the above model:
[('diet_info', 'like', 'sugar')] 
[('puid', 'like', '%2014%')] 
[('lastname', 'like', '%')] 

The domain statements above filter the patient data that match the rules.

The domain statement that is still not working:
[('patient_status', 'like', 'hospitalized')]

There is now a Tryton error message box that pops up on the client with the following message:
Missing search function on field "patient_status"

I have attached some screenshots to clarify this.

Thank you,

Joe Gene Quesada

On Tue, Oct 7, 2014 at 12:00 AM, <address@hidden> wrote:
Send Health mailing list submissions to

To subscribe or unsubscribe via the World Wide Web, visit
or, via email, send a message with subject or body 'help' to

You can reach the person managing the list at

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Health digest..."

Today's Topics:

   1. Re: Patient filter for nursing (Emilien Klein)


Message: 1
Date: Mon, 6 Oct 2014 07:15:57 +0200
From: Emilien Klein <address@hidden>
To: General GNU Health discussion and help <address@hidden>
Subject: Re: [Health] Patient filter for nursing
Content-Type: text/plain; charset="utf-8"

Hi Jose,

Le 5 oct. 2014 07:33, "Jose Eugenio Quesada" <address@hidden> a ?crit
> Hello GNU Health friends,
> I'm from the Philippines working on a project to implement GNU Health in
a local city government hospital.
> My question has to do with limiting the list of patients that a nurse
assigned to the maternity ward can view.
> I would like to set the filter using the Tryton client adding a rule to a
new group that I called "Health Nursing Maternity"
> The new rule should limit a nurse that is assigned to "Health Nursing
Maternity" to be able to view records of patients whose patient status =
'hospitalized', and whose inpatient registration type = 'maternity.
> I created two rules that used Patient Admission History model, and
Patient related information model.
> Inside of the Patient Admission History rule, I added the following
> [('gnuhealth_inpatient_registration.admission_type', '=', 'maternity')]
> Inside of the Patient related information model, I added the following
> [('gnuhealth_patient.patient_status', '=', 'hospitalized')]
> When I then log in as a nurse assigned to the group "Health Nursing
Maternity", I get a python error complaining about gnuhealth_patient

Please paste this specific error in the email.

> Would appreciate help and guidance on how to properly configure these
kinds of filters in GNU Health.
> Thank you in advance,
> Joe Gene Quesada
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>


Health mailing list

End of Health Digest, Vol 39, Issue 6

reply via email to

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