           p = parent.insert('p', -> svgNode)
           p.text('Treatments: ')
           p.classed({'col-md-offset-5': true, 'font-size: small': true})
-          # Sort by begin date.
+          # Sort by start date.
           sorted = _.sortBy(trts, (trt) -> trt.start_date.valueOf())
           # The treatment labels.
           labels = _.uniq(trt.treatment_type for trt in sorted)

        # The scaling factor.
        factor = dateline.width / (high - low)
        for trt in subject.treatments
          trtSpan = treatmentSpan(trt)
          if _.any(trtSpan)
            [begin, end] = trtSpan
            left = (begin - low) * factor
            width = (end - begin) * factor
            # Allow for a 6-pixel minimum width.
            if not width
              left = left - 3
              width = 6
            # Place the new bar rectangle element in the DOM
            # before the x axis element.
            bar = parent.insert('svg:rect', -> xAxisNode)
            # Set the bar dimensions.
            bar.attr('height', "#{ TREATMENT_BAR_HEIGHT }em")
            bar.attr('width', width)
            # Set the bar style.
            bar.classed("qi-dateline-#{ trt.treatment_type.toLowerCase() }", true)
            # Position the bar.
            bar.attr('x', left)
            bar.attr('y', "-#{ TREATMENT_BAR_HEIGHT }em")

      # Inserts a marker for each encounter above the timeline.
      #

          callback(a) if callback

      # Inserts an SVG bar for each treatment above the timeline.
      #
      # @param xAxisNode the chart SVG x axis element
      # @param config the chart configuration
