Weight Observation¶
-
class
nh_weight.models.nh_clinical_patient_observation_weight.NhClinicalPatientObservationWeight(pool, cr)[source]¶ Represents the action of measuring a
patientweight.-
static
calculate_bmi(weight, height)[source]¶ Calculates the patient’s BMI.
Parameters: - weight – Patient weight in kilograms.
- height – Patient height in centimetres.
Returns: Patient BMI in kilograms per metre squared to one decimal place.
Return type:
-
calculate_score(*args, **kwargs)[source]¶ Override of nh.clinical.patient.observation_scored method.
Parameters: - obs_data –
- return_dictionary –
Returns:
-
complete(*args, **kwargs)[source]¶ Calls
completeand then creates and schedules a new weight observation if the currentmonitoringparameter isTrue.Returns: TrueReturn type: bool
-
classmethod
get_data_visualisation_resource()[source]¶ Returns URL of JS file to plot data visualisation so can be loaded on mobile and desktop
Returns: URL of JS file to plot graph Return type: str
-
get_form_description(*args, **kwargs)[source]¶ Override of nh.clinical.patient.observation_scored method.
Parameters: patient_id – Returns:
-
schedule(*args, **kwargs)[source]¶ If a specific
date_scheduledparameter is not specified. The _POLICY[‘schedule’] dictionary value will be used to find the closest time to the current time from the ones specified (0 to 23 hours)Then it will call
scheduleReturns: TrueReturn type: bool
-
score¶ The precision digits are given by the attribute
Parameters: digits – a pair (total, decimal), or a function taking a database cursor and returning a pair (total, decimal)
-
waist_measurement¶
-
weight¶
-
static