diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 31c30600..6059f5e0 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -66,6 +66,8 @@ web:
path: ./dist
database:
location: 'fasten.db'
+cache:
+ location: ''
log:
file: '' #absolute or relative paths allowed, eg. web.log
level: INFO
diff --git a/frontend/src/app/components/header/header.component.html b/frontend/src/app/components/header/header.component.html
index 0fb5b223..b6b7a5a8 100644
--- a/frontend/src/app/components/header/header.component.html
+++ b/frontend/src/app/components/header/header.component.html
@@ -20,6 +20,9 @@
Labs
+
+ Explore
+
Sources
diff --git a/frontend/src/app/components/report-header/report-header.component.ts b/frontend/src/app/components/report-header/report-header.component.ts
index 35bffb6e..b77053c0 100644
--- a/frontend/src/app/components/report-header/report-header.component.ts
+++ b/frontend/src/app/components/report-header/report-header.component.ts
@@ -23,15 +23,16 @@ export class ReportHeaderComponent implements OnInit {
this.fastenApi.getResources("Patient").subscribe(results => {
console.log(results)
this.patient = results[0]
+ if(!this.patient) return
- let primaryCareId = fhirpath.evaluate(this.patient.resource_raw, "Patient.generalPractitioner.reference.first()")
+ let primaryCareId = fhirpath.evaluate(this.patient?.resource_raw, "Patient.generalPractitioner.reference.first()")
console.log("GP:", primaryCareId)
if(primaryCareId){
let primaryCareIdStr = primaryCareId.join("")
let primaryCareIdParts = primaryCareIdStr.split("/")
if(primaryCareIdParts.length == 2) {
console.log(primaryCareIdParts)
- this.fastenApi.getResources(primaryCareIdParts[0], this.patient.source_id, primaryCareIdParts[1]).subscribe(primaryResults => {
+ this.fastenApi.getResources(primaryCareIdParts[0], this.patient?.source_id, primaryCareIdParts[1]).subscribe(primaryResults => {
if (primaryResults.length > 0){
this.primaryCare = new PractitionerModel(primaryResults[0].resource_raw)
}
diff --git a/frontend/src/app/pages/explore/explore.component.html b/frontend/src/app/pages/explore/explore.component.html
index 69568707..6226d7da 100644
--- a/frontend/src/app/pages/explore/explore.component.html
+++ b/frontend/src/app/pages/explore/explore.component.html
@@ -6,8 +6,7 @@
+ (connectedSources.length == 0) ? emptyReport : report">
diff --git a/frontend/src/app/pages/explore/explore.component.ts b/frontend/src/app/pages/explore/explore.component.ts
index 1010e41a..4ecf41fb 100644
--- a/frontend/src/app/pages/explore/explore.component.ts
+++ b/frontend/src/app/pages/explore/explore.component.ts
@@ -33,6 +33,8 @@ export class ExploreComponent implements OnInit {
}
this.loading = false
})
+ if(connectedSources.length == 0) this.loading = false
+
}, error => {
this.loading = false
})
diff --git a/frontend/src/app/pages/source-detail/source-detail.component.html b/frontend/src/app/pages/source-detail/source-detail.component.html
index 97b40374..2ed01a99 100644
--- a/frontend/src/app/pages/source-detail/source-detail.component.html
+++ b/frontend/src/app/pages/source-detail/source-detail.component.html
@@ -56,7 +56,7 @@
- -
+
-
{{resourceGroup.key}} {{resourceGroup.value}}