add diagnostic certainty

This commit is contained in:
Ross
2023-11-01 22:51:41 +00:00
parent fbdb187967
commit 0d852bc752
5 changed files with 33 additions and 0 deletions
+10
View File
@@ -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)