add diagnostic certainty
This commit is contained in:
@@ -237,6 +237,14 @@ class Case(models.Model):
|
||||
# VASC = "VA", _("Vascular")
|
||||
# HAEMONC = "HA", _("Haemotology and Oncology")
|
||||
|
||||
class CertaintyChoices(models.IntegerChoices):
|
||||
NONE = 0
|
||||
POSSIBLE = 1
|
||||
LIKELY = 2
|
||||
ALMOST_CERTAIN = 3
|
||||
CERTAIN = 4
|
||||
|
||||
|
||||
title = models.CharField(max_length=255, help_text="Title of the case", default="")
|
||||
description = models.TextField(
|
||||
blank=True,
|
||||
@@ -266,6 +274,8 @@ class Case(models.Model):
|
||||
Condition, through=Differential, related_name="casedifferential"
|
||||
)
|
||||
|
||||
diagnostic_certainty = models.IntegerField(choices=CertaintyChoices.choices, default=CertaintyChoices.NONE)
|
||||
|
||||
verified = models.BooleanField(default=False)
|
||||
created_date = models.DateTimeField(default=timezone.now)
|
||||
published_date = models.DateTimeField(blank=True, null=True)
|
||||
|
||||
Reference in New Issue
Block a user