       templateUrl: '/partials/clinical-table.html'
     ]
 
+
+    # Displays the subject demographics.
+    directives.directive 'qiDemographicsTable', ['Race', 'Ethnicity', (Race, Ethnicity) ->
+      restrict: 'E'
+      scope:
+        subject: '='
+      templateUrl: '/partials/demographics-table.html'
+    ]
 
     # Displays a clinical outcome.
     directives.directive 'qiOutcomeTable', ['Clinical', (Clinical) ->

    directives.directive 'qiClinicalTable', ['Clinical', (Clinical) ->
      restrict: 'E'
      scope:
        subject: '='   # the subject
      link: (scope, element, attrs) ->
        scope.$watch 'subject', (subject) ->
          if subject

      (VisitDateline, $compile) ->
        restrict: 'E'
        scope:
          subject: '='
        link: (scope, element, attrs) ->
          scope.$watch 'subject', (subject) ->
            if _.any(subject.sessions)
