Skip to content

Commit

Permalink
translate_visit_name in timeline for front-end
Browse files Browse the repository at this point in the history
  • Loading branch information
pbugni committed Nov 22, 2024
1 parent 07a6632 commit e500d7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions portal/views/patient.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def patient_timeline(patient_id):
)
from ..models.qbd import QBD
from ..models.qb_status import QB_Status
from ..models.questionnaire_bank import visit_name
from ..models.questionnaire_bank import translate_visit_name, visit_name
from ..models.questionnaire_response import aggregate_responses
from ..models.research_protocol import ResearchProtocol
from ..tasks import cache_single_patient_adherence_data
Expand Down Expand Up @@ -392,7 +392,7 @@ def patient_timeline(patient_id):
'at': FHIR_datetime.as_fhir(qbt.at),
'qb (id, iteration)': "{} ({}, {})".format(
qbd.questionnaire_bank.name, qbd.qb_id, qbd.iteration),
'visit': visit_name(qbd)}
'visit': translate_visit_name(visit_name(qbd))}
if qbt.status == OverallStatus.due:
data['questionnaires'] = ','.join(
[q.name for q in qbd.questionnaire_bank.questionnaires])
Expand Down

0 comments on commit e500d7a

Please sign in to comment.