Post Surgery

class nh_observations.parameters.nh_clinical_patient_post_surgery(pool, cr)[source]

Represents the action of setting the patient post surgery status to yes or no. This would be set as yes after surgery has taken place and then set to no after recovery has been completed. Although mainly depends on hospital policy and medical staff assessment.

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

Checks if the provided patient had surgery in the last 4 hours.

Parameters:patient_id (int) – patient id.
Returns:True or False
Return type:bool
patient_id

The value of such a field is a recordset of size 0 (no record) or 1 (a single record).

Parameters:
  • comodel_name – name of the target model (string)
  • domain – an optional domain to set on candidate values on the client side (domain or string)
  • context – an optional context to use on the client side when handling that field (dictionary)
  • ondelete – what to do when the referred record is deleted; possible values are: 'set null', 'restrict', 'cascade'
  • auto_join – whether JOINs are generated upon search through that field (boolean, by default False)
  • delegate – set it to True to make fields of the target model accessible from the current model (corresponds to _inherits)

The attribute comodel_name is mandatory except in the case of related fields or field extensions.

status
value

Basic string field, can be length-limited, usually displayed as a single-line string in clients

Parameters:
  • size (int) – the maximum size of values stored for that field
  • translate (bool) – whether the values of this field can be translated