text: "use strict";
  var __extends = (this && this.__extends) || (function () {
      var extendStatics = Object.setPrototypeOf ||
          ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
          function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
      return function (d, b) {
          extendStatics(d, b);
          function __() { this.constructor = d; }
          d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
      };
  })();
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
      var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
      if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
      else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
      return c > 3 && r && Object.defineProperty(target, key, r), r;
  };
  Object.defineProperty(exports, "__esModule", { value: true });
  var core_1 = require("@angular/core");
  var Rx_1 = require("rxjs/Rx");
  var patients_requiring_vl_resource_service_1 = require("./patients-requiring-vl-resource.service");
  var PatientsRequiringVLResourceServiceMock = (function (_super) {
      __extends(PatientsRequiringVLResourceServiceMock, _super);
      function PatientsRequiringVLResourceServiceMock() {
          var _this = _super.call(this, null, null, null) || this;
          _this.params = {
              startDate: '2017-07-01',
              locationUuids: '08fec056-1352-11df-a1f1-0026b9348838',
              endDate: '2017-07-31',
              startIndex: '0',
              limit: '100000'
          };
          return _this;
      }
      PatientsRequiringVLResourceServiceMock.prototype.getPatientList = function (params) {
          var subj = new Rx_1.Subject();
          var that = this;
          setTimeout(function () {
              subj.next(that.getTestData());
          }, 100);
          return subj.asObservable();
      };
      PatientsRequiringVLResourceServiceMock.prototype.getTestData = function () {
          return {
              'startIndex': 0,
              'size': 300,
              'result': [
                  {
                      'person_id': 800302,
                      'encounter_id': 7027747,
                      'location_id': 13,
                      'location_uuid': '08fec056-1352-11df-a1f1-0026b9348838',
                      'patient_uuid': 'f8c900f2-99fa-4fb6-8347-33701a9ae322',
                      'gender': 'M',
                      'birthdate': '1983-12-31T21:00:00.000Z',
                      'age': 33,
                      'has_pending_vl_test': 0,
                      'current_vl': 82,
                      'current_vl_date': '29-07-2016',
                      'days_since_last_order': null,
                      'last_vl_order_date': null,
                      'cur_regimen_arv_start_date': '18-01-2016',
                      'cur_arv_line': 1,
                      'cur_arv_meds': '6964',
                      'arv_first_regimen': '6964',
                      'person_name': 'mathew kipyegon koech',
                      'identifiers': '056362671-2, 15204-34763'
                  },
                  {
                      'person_id': 814536,
                      'encounter_id': 7026891,
                      'location_id': 13,
                      'location_uuid': '08fec056-1352-11df-a1f1-0026b9348838',
                      'patient_uuid': '3176b41c-5692-45fb-a81f-26dab3467a9f',
                      'gender': 'F',
                      'birthdate': '1968-06-21T21:00:00.000Z',
                      'age': 49,
                      'has_pending_vl_test': 0,
                      'current_vl': 5683,
                      'current_vl_date': '15-03-2017',
                      'days_since_last_order': null,
                      'last_vl_order_date': null,
                      'cur_regimen_arv_start_date': '15-03-2017',
                      'cur_arv_line': 1,
                      'cur_arv_meds': '6964',
                      'arv_first_regimen': '6964',
                      'person_name': 'jane kigen chepkonga',
                      'identifiers': '654106214-4, 15204-35527'
                  }
              ]
          };
      };
      PatientsRequiringVLResourceServiceMock = __decorate([
          core_1.Injectable()
      ], PatientsRequiringVLResourceServiceMock);
      return PatientsRequiringVLResourceServiceMock;
  }(patients_requiring_vl_resource_service_1.PatientsRequiringVLResourceService));
  exports.PatientsRequiringVLResourceServiceMock = PatientsRequiringVLResourceServiceMock;
  