health
[Top][All Lists]
Advanced

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

Re: [Health] Validation of Patient Evaluation


From: Luis Falcon
Subject: Re: [Health] Validation of Patient Evaluation
Date: Fri, 7 Oct 2016 16:36:35 +0100

Dear Khurram

El Fri, 7 Oct 2016 12:46:39 +0500
Khurram Shahzad <address@hidden> escribió:
> Dear Luis,
> 
> We have to add some validation conditions on saving the patient
> evaluation. One of these conditions is "Either appointment id or
> in-patient-code must be attached to an evaluation".
> 
> For this, I am updating the "validate()" method of PatientEvaluation
> class in "health.py". How can I access "inpatient_registration_code"
> which is probably in the extending class written in
> "health_inpatient.py".

Use the patient evalution model field
"inpatient_registration_code" (provided by the health_inpatient module).


You can see the field at the "Extra Info" tab on the patient evaluation.

The best way to create a inpatient evaluation is from the
hospitalization form :

Health -> Hospitalizations -> (Relate action) "Inpatient Evaluations" 

Bests
-- 
Dr. Luis Falcon, M.D., BSc
President, GNU Solidario
GNU Health: Freedom and Equity in Healthcare
http://health.gnu.org




reply via email to

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