Skip to content

Commit

Permalink
Adds frequency to the treatment display.
Browse files Browse the repository at this point in the history
This is used by TB Medications and Other Medications on the TB page.

Reorders the field so that the regime is all on one line.
  • Loading branch information
fredkingham committed Jan 9, 2023
1 parent 662ed7a commit 1453909
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions plugins/tb/templates/records/treatment.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
<span ng-class="{'text-muted': (item.end_date && (item.end_date | past)) || (item.planned_end_date && (item.planned_end_date | past)) }">
<span ng-show="item.start_date">[[item.start_date | displayDate]]</span>
<span ng-show="item.stoppedDate && item.start_date">-[[item.stoppedDate | displayDate]]</span>
[[item.drug]]
<span ng-show="item.dose"> [[item.dose]]</span>
<span ng-show="item.route"> [[ item.route ]]</span>
<span ng-show="item.ongoing || item.completed || item.stoppedEarly">,
<span ng-show="item.ongoing || item.completed || item.stoppedEarly">
<span ng-show="item.ongoing">
day [[ item.start_date | daysSince:1:true]]/[[ item.start_date | daysTo:item.planned_end_date:true ]]
</span>
Expand All @@ -15,4 +12,9 @@
stopped on day [[ item | totalDays ]]/[[ item.start_date | daysTo:item.planned_end_date:true ]]
</span>
</span>
<br ng-show="item.start_date && (item.stoppedDate || item.planned_end_date)">
[[item.drug]]
<span ng-show="item.dose"> [[item.dose]]</span>
<span ng-show="item.route"> [[ item.route ]]</span>
<span ng-show="item.frequency">[[ item.frequency ]]</span>
</span>

0 comments on commit 1453909

Please sign in to comment.