Skip to content

Commit 3b69ff3

Browse files
committed
Add isProcessed, labValues, and summary fields to Report model and initialize in ReportsService
1 parent 1aef272 commit 3b69ff3

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

backend/src/reports/models/report.model.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ export class Report {
2121
@ApiProperty({ description: 'Category of the report' })
2222
category: string;
2323

24+
@ApiProperty({ description: 'Whether the report has been processed' })
25+
isProcessed: boolean;
26+
27+
@ApiProperty({ description: 'List of lab values' })
28+
labValues: string[];
29+
30+
@ApiProperty({ description: 'Summary of the report' })
31+
summary: string;
32+
2433
@ApiProperty({
2534
description: 'Status of the report',
2635
enum: ReportStatus,

backend/src/reports/reports.service.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,9 @@ export class ReportsService {
270270
title: 'New Report',
271271
bookmarked: false,
272272
category: '',
273+
isProcessed: false,
274+
labValues: [],
275+
summary: '',
273276
status: ReportStatus.UNREAD,
274277
createdAt: new Date().toISOString(),
275278
updatedAt: new Date().toISOString(),

0 commit comments

Comments
 (0)