|
From: | Khurram Shahzad |
Subject: | Re: [Health] Validation of Patient Evaluation |
Date: | Fri, 7 Oct 2016 22:37:22 +0500 |
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"
[Prev in Thread] | Current Thread | [Next in Thread] |