diff --git a/src/app/patient-dashboard/common/patient-encounters/patient-encounter-provider.pipe.ts b/src/app/patient-dashboard/common/patient-encounters/patient-encounter-provider.pipe.ts
index ff1b72167..56998ca4f 100644
--- a/src/app/patient-dashboard/common/patient-encounters/patient-encounter-provider.pipe.ts
+++ b/src/app/patient-dashboard/common/patient-encounters/patient-encounter-provider.pipe.ts
@@ -1,4 +1,3 @@
-import { EncounterType } from '../../../models/encounter-type.model';
 import { Pipe, PipeTransform } from '@angular/core';
 import * as _ from 'lodash';
 
@@ -8,16 +7,20 @@ import * as _ from 'lodash';
 })
 export class PatientEncounterProviderPipe implements PipeTransform {
   public transform(provider) {
-    if (provider.length === 0) {
-      return provider;
+    if (typeof provider === 'undefined') {
+      return '';
     } else {
-      const providerName = provider.split('-')[2];
-
-      if (typeof providerName !== 'undefined') {
-        return providerName;
+      if (provider.length === 0) {
+        return provider;
       } else {
-        console.error('ERROR : Undefined Provider Name', providerName);
-        return '';
+        const providerName = provider.split('-')[2];
+
+        if (typeof providerName !== 'undefined') {
+          return providerName;
+        } else {
+          console.error('ERROR : Undefined Provider Name', providerName);
+          return '';
+        }
       }
     }
   }