-
+
-
@@ -30,12 +29,14 @@
{{getPatientDOB()}}
Age:
{{getPatientAge()}} Years Old
- Email
+ Email:
{{getPatientEmail()}}
Phone:
{{getPatientPhone()}}
Address:
- {{getPatientAddress()}}
+
+
{{line}}
+ ID:
{{selectedPatient?.source_resource_id}}
MRN:
@@ -51,7 +52,7 @@
Sources
- {{selectedSource?.endpoint_id}}
+ {{selectedSource?.id}}
Details
diff --git a/frontend/src/app/pages/source-detail/source-detail.component.ts b/frontend/src/app/pages/source-detail/source-detail.component.ts
index e59934cb3..2cf17edd0 100644
--- a/frontend/src/app/pages/source-detail/source-detail.component.ts
+++ b/frontend/src/app/pages/source-detail/source-detail.component.ts
@@ -47,6 +47,10 @@ export class SourceDetailComponent implements OnInit {
this.selectedTotalElements = this.resourceTypeCounts[resourceType]
}
+ isExternal(){
+ return this.selectedSource?.brand_id != '00000000-0000-0000-0000-000000000000';
+ }
+
//functions to call on patient
getPatientName(){
// @ts-ignore
@@ -88,7 +92,8 @@ export class SourceDetailComponent implements OnInit {
const line = getPath(this.selectedPatient?.resource_raw, 'address.0.line')
const city = getPath(this.selectedPatient?.resource_raw, 'address.0.city')
const state = getPath(this.selectedPatient?.resource_raw, 'address.0.state')
- return `${line}, ${city}, ${state}`
+ const zip = getPath(this.selectedPatient?.resource_raw, 'address.0.postalCode')
+ return [`${line}`, `${city}, ${state} ${zip}`]
}
}