Weight Observation

class nh_weight.models.nh_clinical_patient_observation_weight.NhClinicalPatientObservationWeight(pool, cr)[source]

Represents the action of measuring a patient weight.

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:

float

calculate_score(*args, **kwargs)[source]

Override of nh.clinical.patient.observation_scored method.

Parameters:
  • obs_data
  • return_dictionary
Returns:

complete(*args, **kwargs)[source]

Calls complete and then creates and schedules a new weight observation if the current monitoring parameter is True.

Returns:True
Return 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:
get_formatted_obs(*args, **kwargs)[source]
get_submission_message()[source]
schedule(*args, **kwargs)[source]

If a specific date_scheduled parameter 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 schedule

Returns:True
Return 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