Charts module

Report Chart

Charts view
Charts
API URL
  /api/patients
GET response
  {
    address:"6948 Et St., Halesowen, Worcestershire, VX27 5DV"
    dateOfBirth:-806976000000
    department:"Neighbourhood"
    gender:"Male"
    gpAddress:"Hamilton Practice, 5544 Ante Street, Hamilton, Lanarkshire, N06 5LP"
    gpName:"Goff Carolyn D."
    id:"9999999000"
    name:"Ivor Cox"nhsNumber:"9999999000"
    pasNo:"352541"
    phone:"(011981) 32362"
  }
Component structure
  //component template
  let templateReportChart = require('./report-chart.html');

  //controller init
  class ReportChartController {
    constructor($scope, $rootScope, $window, $uibModal, $state) {
  }

  //component init
  const ReportChartComponent = {
    template: templateReportChart,
    controller: ReportChartController
  };

	//inject services/modules to controller
  ReportChartController.$inject = ['$scope', '$rootScope', '$window', '$uibModal', '$state'];
  //es6 export for component
  export default ReportChartComponent;