.
This commit is contained in:
+2
-2
@@ -132,8 +132,8 @@ class AnatomyQuestion(models.Model):
|
|||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
# Get first answer
|
# Get first answer
|
||||||
return "{}: {} [{}, {}]".format(
|
return "{}/{}: {} [{}, {}]".format(
|
||||||
self.question_type, self.get_primary_answer(), self.modality, self.structure
|
self.pk, self.question_type, self.get_primary_answer(), self.modality, self.structure
|
||||||
)
|
)
|
||||||
# Get associated exams
|
# Get associated exams
|
||||||
e = self.exams.all().values_list("name", flat=True)
|
e = self.exams.all().values_list("name", flat=True)
|
||||||
|
|||||||
+2
-2
@@ -211,12 +211,12 @@ class Rapid(models.Model):
|
|||||||
n = "Normal"
|
n = "Normal"
|
||||||
if not self.normal:
|
if not self.normal:
|
||||||
#n = self.answers.first()
|
#n = self.answers.first()
|
||||||
n = "{} / {}".format(self.abnormality.first(), self.region.first())
|
n = "{}/{} : {}".format(self.pk, self.abnormality.first(), self.region.first())
|
||||||
exams = self.get_examinations()
|
exams = self.get_examinations()
|
||||||
lat = ""
|
lat = ""
|
||||||
if self.laterality != "NONE":
|
if self.laterality != "NONE":
|
||||||
lat = self.laterality
|
lat = self.laterality
|
||||||
return "{} / {} {}".format(exams, lat, n)
|
return "{}/{} : {} {}".format(self.pk, exams, lat, n)
|
||||||
|
|
||||||
def get_primary_answer(self):
|
def get_primary_answer(self):
|
||||||
if self.normal:
|
if self.normal:
|
||||||
|
|||||||
Reference in New Issue
Block a user