-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
31 lines (28 loc) · 737 Bytes
/
types.ts
File metadata and controls
31 lines (28 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
export enum Status {
PENDING = 'IN_ATTESA',
PROCESSING = 'IN_LAVORAZIONE',
COMPLETED = 'EROGATA',
CANCELLED = 'ANNULLATA'
}
export interface MedicalData {
nre: string; // Numero Ricetta Elettronica
fiscalCode: string; // Codice Fiscale
priority: 'U' | 'B' | 'D' | 'P'; // Urgent, Breve, Differibile, Programmabile
examType: string;
notes?: string;
action: 'CREATION' | 'UPDATE' | 'FULFILLMENT';
}
export interface Block {
index: number;
timestamp: number;
data: MedicalData;
previousHash: string;
hash: string;
validator: string; // ID of the node/actor who added the block
}
export interface ChainStats {
totalBlocks: number;
lastUpdate: number;
pendingCount: number;
completedCount: number;
}