Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { environment } from './../../../environments/environment';
- import { CommunicatorService } from './communicator.service';
- import { Injectable, Inject } from '@angular/core';
- @Injectable()
- export class DashboardService {
- constructor(private comm: CommunicatorService) { }
- getEnrolleeStats() {
- let url = environment.apiV1EndPoint + environment.getEnrolleeStatsUrl;
- url = url.replace(':hmoId', this.comm.getEffectiveHmoId());
- return this.comm.get( url);
- }
- getAuthRequestStats() {
- let url = environment.apiV1EndPoint + environment.getAuthRequestStatsUrl;
- url = url.replace(':hmoId', this.comm.getEffectiveHmoId());
- return this.comm.get( url);
- }
- getSubmittedClaimsStats() {
- let url = environment.apiV1EndPoint + environment.getSubmittedClaimsStatsUrl;
- url = url.replace(':hmoId', this.comm.getEffectiveHmoId());
- return this.comm.get(url);
- }
- getApprovedClaimsStats() {
- let url = environment.apiV1EndPoint + environment.getApprovedClaimsStatsUrl;
- url = url.replace(':hmoId', this.comm.getEffectiveHmoId());
- return this.comm.get( url);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement