from django.db import models


class Patient(models.Model):
    name = models.CharField(
        verbose_name="Nome do paciente",
        max_length=255,
    )

    def __str__(self):
        return self.name


class PatientRegister(models.Model):
    patient = models.ForeignKey(
        Patient,
        on_delete=models.SET_NULL,
        null=True,
    )
    id_gal_origin = models.CharField(
        verbose_name="ID Gal Origem",
        max_length=255,
    )

    def __str__(self):
        return "ID Gal: {}".format(self.id_gal_origin)


class FluVaccine(models.Model):
    was_applied = models.NullBooleanField(
        verbose_name="Recebeu vacina contra gripe"
    )
    patient_register = models.OneToOneField(
        PatientRegister,
        on_delete=models.CASCADE,
    )

    def __str__(self):
        return "Vacina contra gripe"


class Sample(models.Model):
    collection_date = models.DateField(
        verbose_name="Data de coleta",
    )
    patient_register = models.ForeignKey(
        PatientRegister,
    )

    def __str__(self):
        return "Amostra"

@@ -662,18 +662,19 @@
 ra gripe
+?
 %22%0A
-
     )%0A  
@@ -844,16 +844,318 @@
 ripe%22%0A%0A%0A
+class CollectionType(models.Model):%0A    method_name = models.CharField(%0A        verbose_name=%22M%C3%A9todo de coleta%22,%0A        max_length=255,%0A    )%0A    is_primary = models.BooleanField(%0A        verbose_name=%22Principal?%22,%0A        default=True,%0A    )%0A%0A    def __str__(self):%0A        return self.method_name%0A%0A%0A
 class Sa
@@ -1293,32 +1293,32 @@
 els.ForeignKey(%0A
-
         PatientR
@@ -1327,24 +1327,149 @@
 ister,%0A    )
+%0A    collection_type = models.ForeignKey(%0A        CollectionType,%0A        on_delete=models.SET_NULL,%0A        null=True,%0A    )
 %0A%0A    def __

Add CollectionType model