diff --git a/atlas/migrations/0030_alter_condition_parent_alter_condition_primary_and_more.py b/atlas/migrations/0030_alter_condition_parent_alter_condition_primary_and_more.py new file mode 100644 index 00000000..1fe501fe --- /dev/null +++ b/atlas/migrations/0030_alter_condition_parent_alter_condition_primary_and_more.py @@ -0,0 +1,67 @@ +# Generated by Django 4.1.4 on 2023-12-04 11:01 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("atlas", "0029_alter_conditionrelationship_child_and_more"), + ] + + operations = [ + migrations.AlterField( + model_name="condition", + name="parent", + field=models.ManyToManyField( + blank=True, + help_text="Use if the condition could be considered a subset of another, e.g. 'Alzheimer disease' and 'Dementia'.", + related_name="child", + through="atlas.ConditionRelationship", + to="atlas.condition", + ), + ), + migrations.AlterField( + model_name="condition", + name="primary", + field=models.BooleanField( + default="True", + help_text="Sets if this should be the canonical item, all other synonyms will then redirect to this by default.", + ), + ), + migrations.AlterField( + model_name="condition", + name="rcr_curriculum", + field=models.BooleanField( + default=False, + help_text="The condition is from the (non exhaustive) RCR curriculum", + ), + ), + migrations.AlterField( + model_name="condition", + name="rcr_curriculum_map", + field=models.ManyToManyField( + blank=True, + help_text="Specifies the related RCR curriculum condition (if it exists).", + limit_choices_to={"rcr_curriculum": True}, + to="atlas.condition", + ), + ), + migrations.AlterField( + model_name="condition", + name="subspecialty", + field=models.ManyToManyField( + blank=True, + help_text="Sets the subspecialty(/ies) that this condition falls under.", + to="atlas.subspecialty", + ), + ), + migrations.AlterField( + model_name="condition", + name="synonym", + field=models.ManyToManyField( + blank=True, + help_text="Use if a direct synonym for the condition exists, e.g. 'Wegener granulomatosis' and 'Granulomatosis with Polyangitis'.", + to="atlas.condition", + ), + ), + ] diff --git a/atlas/models.py b/atlas/models.py index b499d7ea..8a293e29 100644 --- a/atlas/models.py +++ b/atlas/models.py @@ -143,16 +143,16 @@ class Finding(SynMixin, models.Model): class Condition(SynMixin, models.Model): name = models.CharField(max_length=255, unique=True) - synonym = models.ManyToManyField("self", blank=True) - parent = models.ManyToManyField("self", blank=True, related_name="child", symmetrical=False, through="ConditionRelationship") + synonym = models.ManyToManyField("self", blank=True, help_text="Use if a direct synonym for the condition exists, e.g. 'Wegener granulomatosis' and 'Granulomatosis with Polyangitis'.") + parent = models.ManyToManyField("self", blank=True, related_name="child", symmetrical=False, through="ConditionRelationship", help_text="Use if the condition could be considered a subset of another, e.g. 'Alzheimer disease' and 'Dementia'.") - primary = models.BooleanField(default="True") + primary = models.BooleanField(default="True", help_text="Sets if this should be the canonical item, all other synonyms will then redirect to this by default.") - subspecialty = models.ManyToManyField("subspecialty", blank=True) + subspecialty = models.ManyToManyField("subspecialty", blank=True, help_text="Sets the subspecialty(/ies) that this condition falls under.") - rcr_curriculum_map = models.ManyToManyField("self", blank=True, limit_choices_to={"rcr_curriculum": True}) + rcr_curriculum_map = models.ManyToManyField("self", blank=True, limit_choices_to={"rcr_curriculum": True}, help_text="Specifies the related RCR curriculum condition (if it exists).") - rcr_curriculum = models.BooleanField(default=False) + rcr_curriculum = models.BooleanField(default=False, help_text="The condition is from the (non exhaustive) RCR curriculum") def get_absolute_url(self): return reverse("atlas:condition_detail", kwargs={"pk": self.pk}) diff --git a/atlas/templates/atlas/categories_list.html b/atlas/templates/atlas/categories_list.html index 6d61699e..c3338a27 100644 --- a/atlas/templates/atlas/categories_list.html +++ b/atlas/templates/atlas/categories_list.html @@ -1,6 +1,8 @@ {% extends 'atlas/base.html' %} {% block content %} +
The platform has numberous different ways to tag and categorise content. These help with organsing cases and series, given the ability to find cases by a particuarly property (such as a finding) or find similar cases.
These can be browsed below.
Use this form to create or edit a condition.
+Please check if it already exists before doing so!