Skip to content

Commit

Permalink
Merge pull request #54 from sravandigitalhie/develop
Browse files Browse the repository at this point in the history
Added provenance Column into the Health Concerns tab
  • Loading branch information
swmuir authored Sep 30, 2024
2 parents b5f51c9 + a92c914 commit 7786bdf
Show file tree
Hide file tree
Showing 9 changed files with 201 additions and 4,369 deletions.
26 changes: 13 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"chartjs-plugin-annotation": "^0.5.7",
"classlist.js": "^1.1.20150312",
"clone": "^2.1.2",
"e-care-common-data-services": "^1.2.11",
"e-care-common-data-services": "^1.4.0",
"ecareplanner": "file:",
"firebase": "^7.24.0",
"flex-layout-srcs": "github:angular/flex-layout",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
<th mat-header-cell *matHeaderCellDef mat-sort-header>Diagnosis First Recorded</th>
<td mat-cell *matCellDef="let condition">{{condition.firstRecordedAsText | nullCheck}}</td>
</ng-container>
<ng-container matColumnDef="provenance">
<th mat-header-cell *matHeaderCellDef mat-sort-header>Source</th>
<td mat-cell *matCellDef="let condition">{{condition.provenance | nullCheck}}</td>
</ng-container>
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
</table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import moment from 'moment';
styleUrls: ['./active-diagnosis-panel.component.css']
})
export class ActiveDiagnosisPanelComponent implements OnInit, AfterViewInit {
displayedColumns: string[] = ['code', 'asserter', 'firstOnset', 'firstRecorded'];
displayedColumns: string[] = ['code', 'asserter', 'firstOnset', 'firstRecorded', 'provenance'];
dataSource: MatTableDataSource<any>;
showFilter: any = false;

Expand All @@ -21,6 +21,7 @@ export class ActiveDiagnosisPanelComponent implements OnInit, AfterViewInit {
constructor(public dataservice: DataService) {}

ngOnInit(): void {
console.log("this.dataservice.conditions.activeConditions ------------------<><><><<>", this.dataservice.conditions.activeConditions);
// Convert date strings to Date objects
const conditionsWithConvertedDates = this.dataservice.conditions.activeConditions.map(condition => ({
...condition,
Expand All @@ -40,6 +41,8 @@ export class ActiveDiagnosisPanelComponent implements OnInit, AfterViewInit {
return item.firstOnsetAsDate ? item.firstOnsetAsDate.getTime() : item.firstOnsetAsText;
case 'code':
return item[property].text.toUpperCase();
case 'provenance':
return item[property].text.toUpperCase();
default:
return item[property];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
<th mat-header-cell *matHeaderCellDef mat-sort-header>Diagnosis First Recorded</th>
<td mat-cell *matCellDef="let condition">{{condition.firstRecordedAsText | nullCheck}}</td>
</ng-container>
<ng-container matColumnDef="provenance">
<th mat-header-cell *matHeaderCellDef mat-sort-header>Source</th>
<td mat-cell *matCellDef="let condition">{{condition.provenance | nullCheck}}</td>
</ng-container>
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
</table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import moment from 'moment';
styleUrls: ['./inactive-diagnosis-panel.component.css']
})
export class InactiveDiagnosisPanelComponent implements OnInit, AfterViewInit {
displayedColumns: string[] = ['code', 'asserter', 'firstOnset', 'firstRecorded'];
displayedColumns: string[] = ['code', 'asserter', 'firstOnset', 'firstRecorded', 'provenance'];
dataSource: MatTableDataSource<any>;
showFilter: boolean = false;

Expand All @@ -38,6 +38,8 @@ export class InactiveDiagnosisPanelComponent implements OnInit, AfterViewInit {
return item.firstOnsetAsDate ? item.firstOnsetAsDate.getTime() : item.firstOnsetAsText;
case 'code':
return item[property].text.toUpperCase();
case 'provenance':
return item[property].text.toUpperCase();
default:
return item[property];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
<th mat-header-cell *matHeaderCellDef mat-sort-header>Date Recorded</th>
<td mat-cell *matCellDef="let condition">{{condition.firstRecordedAsText | nullCheck}}</td>
</ng-container>
<ng-container matColumnDef="provenance">
<th mat-header-cell *matHeaderCellDef mat-sort-header>Source</th>
<td mat-cell *matCellDef="let condition">{{condition.provenance | nullCheck}}</td>
</ng-container>
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
</table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class SocialConcernPanelComponent implements OnInit, AfterViewInit {
@ViewChild(MatSort) sort: MatSort;

// displayedColumns = ['name', 'data', 'date'];
displayedColumns: string[] = ['code', 'status', 'firstRecorded'];
displayedColumns: string[] = ['code', 'status', 'firstRecorded', 'provenance'];

constructor(public dataService: DataService) { }

Expand All @@ -37,6 +37,8 @@ export class SocialConcernPanelComponent implements OnInit, AfterViewInit {
return item.firstOnsetAsDate ? item.firstOnsetAsDate.getTime() : item.firstOnsetAsText;
case 'code':
return item[property].text.toUpperCase();
case 'provenance':
return item[property].text.toUpperCase();
default:
return item[property];
}
Expand Down
Loading

0 comments on commit 7786bdf

Please sign in to comment.