class OccupationalHistory(models.PatientSubrecord): _title = "Occupational History" job_name = fields.CharField(max_length=250, blank=True, null=True) soc_job = models.ForeignKeyOrFreeText(SocJob, verbose_name="Job name") job_tasks = fields.TextField(blank=True, null=True) employer_output = fields.CharField( max_length=250, blank=True, null=True) # change label to be what did you make start_year = fields.CharField(max_length=4, blank=True, null=True) end_year = fields.CharField(max_length=4, blank=True, null=True) address = fields.TextField(blank=True, null=True)
class OperationNote(models.EpisodeSubrecord): start_time = fields.TimeField() end_time = fields.TimeField() date = fields.DateField() lead_surgeon = models.ForeignKeyOrFreeText( StaffMember, related_name="%(class)s_lead_surgeon") lead_anaesthetist = models.ForeignKeyOrFreeText( StaffMember, related_name="%(class)s_lead_anaesthetist") surgeon = ManyToManyField(StaffMember, related_name="%(class)s_surgeon") assistant = ManyToManyField(StaffMember, related_name="%(class)s_assistant") anaesthetist = ManyToManyField(StaffMember, related_name="%(class)s_anaesthetist") dvt_heparin = fields.BooleanField(default=False) dvt_ted_stockings = fields.BooleanField(default=False) dvt_pnematic = fields.BooleanField(default=False) dvt_aspirin = fields.BooleanField(default=False) antibiotics = fields.CharField(max_length=40) indication = fields.CharField(max_length=20) position = fields.CharField(max_length=20) incision = fields.CharField(max_length=20) findings = fields.TextField() procedure = fields.TextField() anaesthetic = models.ForeignKeyOrFreeText(AnaestheticType) cancer = models.ForeignKeyOrFreeText(CancerType) asa = models.ForeignKeyOrFreeText(AsaType) urgency = models.ForeignKeyOrFreeText(Urgency)
class BirthPlace(models.PatientSubrecord): _title = "Birth Place" _is_singleton = True countryofbirth = models.ForeignKeyOrFreeText( models.Destination, verbose_name="Country of birth") place = fields.TextField(blank=True, null=True)
class Treatment(models.Treatment): reason = models.ForeignKeyOrFreeText( models.Condition, verbose_name="Reason for treatment (e.g diagnosis)")