-
Notifications
You must be signed in to change notification settings - Fork 0
/
exempluTestare.txt
573 lines (561 loc) · 15.8 KB
/
exempluTestare.txt
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
Please type a command (overview / add / view / stats / remove / update / exit):
add
Please choose what would you like to add (person / appointment):
person
Please specify first name:
Marcu
Please specify last name:
Micu
Please specify age:
50
Please specify sex:
M
Please specify phone number:
48357
Please choose person type (staff / patient):
patient
Please specify if the patient has any know diseases:
Please type a command (overview / add / view / stats / remove / update / exit):
add
Please choose what would you like to add (person / appointment):
person
Please specify first name:
Ana
Please specify last name:
Anabela
Please specify age:
22
Please specify sex:
F
Please specify phone number:
854967
Please choose person type (staff / patient):
patient
Please specify if the patient has any know diseases:
diabet
Please type a command (overview / add / view / stats / remove / update / exit):
add
Please choose what would you like to add (person / appointment):
person
Please specify first name:
Madalin
Please specify last name:
Costel
Please specify age:
30
Please specify sex:
M
Please specify phone number:
38457
Please choose person type (staff / patient):
staff
Please specify the salary:
2300
Please specify experience in years:
4
Please choose medical staff (doctor / assistant):
assistant
Is the assistant a resident? [yes/no]
no
Please type a command (overview / add / view / stats / remove / update / exit):
add
Please choose what would you like to add (person / appointment):
person
Please specify first name:
Anca
Please specify last name:
Ioana
Please specify age:
26
Please specify sex:
F
Please specify phone number:
43857
Please choose person type (staff / patient):
staff
Please specify the salary:
2300
Please specify experience in years:
2
Please choose medical staff (doctor / assistant):
assistant
Is the assistant a resident? [yes/no]
yes
Please type a command (overview / add / view / stats / remove / update / exit):
add
Please choose what would you like to add (person / appointment):
person
Please specify first name:
Maria
Please specify last name:
Ioana
Please specify age:
22
Please specify sex:
F
Please specify phone number:
48357
Please choose person type (staff / patient):
staff
Please specify the salary:
2000
Please specify experience in years:
1
Please choose medical staff (doctor / assistant):
assistant
Is the assistant a resident? [yes/no]
yes
Please type a command (overview / add / view / stats / remove / update / exit):
add
Please choose what would you like to add (person / appointment):
person
Please specify first name:
Gabriel
Please specify last name:
Constantin
Please specify age:
21
Please specify sex:
M
Please specify phone number:
3847893475
Please choose person type (staff / patient):
staff
Please specify the salary:
3000
Please specify experience in years:
1
Please choose medical staff (doctor / assistant):
doctor
Please specify branch:
calculatoare
Does this doctor have an assistant? [yes/no] (yes = it has to be already added in the clinic database)
no
Please type a command (overview / add / view / stats / remove / update / exit):
add
Please choose what would you like to add (person / appointment):
person
Please specify first name:
Mircea
Please specify last name:
Marin
Please specify age:
37
Please specify sex:
M
Please specify phone number:
34587
Please choose person type (staff / patient):
staff
Please specify the salary:
4556
Please specify experience in years:
3
Please choose medical staff (doctor / assistant):
doctor
Please specify branch:
neuro
Does this doctor have an assistant? [yes/no] (yes = it has to be already added in the clinic database)
yes
How many?
1
Please specify the assistant's first name:
Maria
Please specify the assistant's last name:
Ioana
Please type a command (overview / add / view / stats / remove / update / exit):
add
Please choose what would you like to add (person / appointment):
person
Please specify first name:
Madalin
Please specify last name:
Costel
Please specify age:
33
Please specify sex:
M
Please specify phone number:
345456545
Please choose person type (staff / patient):
staff
Please specify the salary:
6000
Please specify experience in years:
5
Please choose medical staff (doctor / assistant):
doctor
Please specify branch:
psiho
Does this doctor have an assistant? [yes/no] (yes = it has to be already added in the clinic database)
yes
How many?
2
Please specify the assistant's first name:
Anca
Please specify the assistant's last name:
Ioana
Please specify the assistant's first name:
Madalin
Please specify the assistant's last name:
Costel
Please type a command (overview / add / view / stats / remove / update / exit):
overview
The database has the following records:
Medical staff: 6
Patients: 2
Appointments: 0
Please type a command (overview / add / view / stats / remove / update / exit):
stats
Please choose what would you like to get statistics for (staff / appointment):
staff
In the database, there are:
3 assistants
3 doctors
Please type a command (overview / add / view / stats / remove / update / exit):
view
Please choose what would you like to visualize (staff / patient / appointment):
staff
Gabriel / Constantin / 21 / M / 3847893475 / 3000.0 / 1 / calculatoare
Madalin / Costel / 30 / M / 38457 / 2300.0 / 4
Madalin / Costel / 33 / M / 345456545 / 6000.0 / 5 / psiho
Anca / Ioana / 26 / F / 43857 / 2300.0 / 2 / resident
Maria / Ioana / 22 / F / 48357 / 2000.0 / 1 / resident
Mircea / Marin / 37 / M / 34587 / 4556.0 / 3 / neuro
Please type a command (overview / add / view / stats / remove / update / exit):
add
Please choose what would you like to add (person / appointment):
appointment
Please specify the date for the appointment:
02-03-2021
Please specify the price:
111
Please specify the doctor's first name:
Gabriel
Please specify the doctor's last name:
Constantin
Please specify the patient's first name:
Marcu
Please specify the patient's last name:
Mincu
This patient does not exist !
Please type a command (overview / add / view / stats / remove / update / exit):
add
Please choose what would you like to add (person / appointment):
appointment
Please specify the date for the appointment:
01-02-2021
Please specify the price:
1233
Please specify the doctor's first name:
Gabriel
Please specify the doctor's last name:
Constantin
Please specify the patient's first name:
Marcu
Please specify the patient's last name:
Micu
Please specify the type of appointment (consultation / surgery):
consultation
Please specify the type of disease:
heart
Does this consultation have an prescription? [yes/no]
no
Please type a command (overview / add / view / stats / remove / update / exit):
add
Please choose what would you like to add (person / appointment):
appointment
Please specify the date for the appointment:
03-04-2021
Please specify the price:
123
Please specify the doctor's first name:
Gabriel
Please specify the doctor's last name:
Constantin
Please specify the patient's first name:
Marcu
Please specify the patient's last name:
Micu
Please specify the type of appointment (consultation / surgery):
consultation
Please specify the type of disease:
anxiety
Does this consultation have an prescription? [yes/no]
yes
How many drugs?
2
Please specify drug's name:
xanax
Please specify drug's price:
12.3
Please specify drug's name:
somnlinistit
Please specify drug's price:
11
Please type a command (overview / add / view / stats / remove / update / exit):
view
Please choose what would you like to visualize (staff / patient / appointment):
patient
Ana / Anabela / 22 / F / 854967 / Diseases: diabet|
Marcu / Micu / 50 / M / 48357 / Diseases: None
Please type a command (overview / add / view / stats / remove / update / exit):
add
Please choose what would you like to add (person / appointment):
appointment
Please specify the date for the appointment:
05-06-2021
Please specify the price:
456
Please specify the doctor's first name:
Mircea
Please specify the doctor's last name:
Marin
Please specify the patient's first name:
Ana
Please specify the patient's last name:
Anabela
Please specify the type of appointment (consultation / surgery):
consultation
Please specify the type of disease:
brain fog
Does this consultation have an prescription? [yes/no]
yes
How many drugs?
1
Please specify drug's name:
chillpill
Please specify drug's price:
65
Please type a command (overview / add / view / stats / remove / update / exit):
add
Please choose what would you like to add (person / appointment):
appointment
Please specify the date for the appointment:
07-08-2021
Please specify the price:
777
Please specify the doctor's first name:
Mircea
Please specify the doctor's last name:
Marin
Please specify the patient's first name:
Ana
Please specify the patient's last name:
Anabela
Please specify the type of appointment (consultation / surgery):
surgery
Please specify the type of surgery:
brain tumor extraction
Please specify the assistant's first name:
Maria
Please specify the assistant's last name:
Ioana
Please type a command (overview / add / view / stats / remove / update / exit):
overview
The database has the following records:
Medical staff: 6
Patients: 2
Appointments: 4
Please type a command (overview / add / view / stats / remove / update / exit):
view
Please choose what would you like to visualize (staff / patient / appointment):
appointment
Date: 01-02-2021
Price: 1233.0
Doctor: Gabriel / Constantin / 21 / M / 3847893475 / 3000.0 / 1 / calculatoare
Patient: Marcu / Micu / 50 / M / 48357 / Diseases: None
Disease: heart
Date: 03-04-2021
Price: 123.0
Doctor: Gabriel / Constantin / 21 / M / 3847893475 / 3000.0 / 1 / calculatoare
Patient: Marcu / Micu / 50 / M / 48357 / Diseases: None
Disease: anxiety
Date: 05-06-2021
Price: 456.0
Doctor: Mircea / Marin / 37 / M / 34587 / 4556.0 / 3 / neuro
Patient: Ana / Anabela / 22 / F / 854967 / Diseases: diabet|
Disease: brain fog
Date: 07-08-2021
Price: 777.0
Doctor: Mircea / Marin / 37 / M / 34587 / 4556.0 / 3 / neuro
Patient: Ana / Anabela / 22 / F / 854967 / Diseases: diabet|
Surgery type: brain tumor extraction
Please type a command (overview / add / view / stats / remove / update / exit):
remove
Please choose what would you like to remove (staff / patient / appointment):
staff
Please specify staff's first name:
Gabriel
Please specify staff's last name:
Constantin
Please type a command (overview / add / view / stats / remove / update / exit):
remove
Please choose what would you like to remove (staff / patient / appointment):
patient
Please specify patient's first name:
Marcu
Please specify patient's last name:
Micu
Please type a command (overview / add / view / stats / remove / update / exit):
remove
Please choose what would you like to remove (staff / patient / appointment):
appointment
Please specify appointment's date:
01-02-2021
Please specify staff's first name:
Gabriel
Please specify staff's last name:
Constantin
Please specify patient's first name:
Marcu
Please specify patient's last name:
Micu
Please type a command (overview / add / view / stats / remove / update / exit):
view
Please choose what would you like to visualize (staff / patient / appointment):
appointment
Date: 03-04-2021
Price: 123.0
Doctor: Gabriel / Constantin / 21 / M / 3847893475 / 3000.0 / 1 / calculatoare
Patient: Marcu / Micu / 50 / M / 48357 / Diseases: None
Disease: anxiety
Date: 05-06-2021
Price: 456.0
Doctor: Mircea / Marin / 37 / M / 34587 / 4556.0 / 3 / neuro
Patient: Ana / Anabela / 22 / F / 854967 / Diseases: diabet|
Disease: brain fog
Date: 07-08-2021
Price: 777.0
Doctor: Mircea / Marin / 37 / M / 34587 / 4556.0 / 3 / neuro
Patient: Ana / Anabela / 22 / F / 854967 / Diseases: diabet|
Surgery type: brain tumor extraction
Please type a command (overview / add / view / stats / remove / update / exit):
view
Please choose what would you like to visualize (staff / patient / appointment):
staff
Madalin / Costel / 30 / M / 38457 / 2300.0 / 4
Madalin / Costel / 33 / M / 345456545 / 6000.0 / 5 / psiho
Anca / Ioana / 26 / F / 43857 / 2300.0 / 2 / resident
Maria / Ioana / 22 / F / 48357 / 2000.0 / 1 / resident
Mircea / Marin / 37 / M / 34587 / 4556.0 / 3 / neuro
Please type a command (overview / add / view / stats / remove / update / exit):
overview
The database has the following records:
Medical staff: 5
Patients: 1
Appointments: 3
Please type a command (overview / add / view / stats / remove / update / exit):
update
Please choose what would you like to update (patient / staff / appointment):
patient
Please specify the patient's first name:
Ana
Please specify the patient's last name:
Anabela
Please specify what would you like to update (age / phone):
age
Please specify age:
99
Please type a command (overview / add / view / stats / remove / update / exit):
update
Please choose what would you like to update (patient / staff / appointment):
staff
Please specify staff member's first name:
Maria
Please specify staff member's last name:
Ioana
Please specify what would you like to update (age / phone / salary / experience):
salary
Please specify salary:
99999
Please type a command (overview / add / view / stats / remove / update / exit):
update
Please choose what would you like to update (patient / staff / appointment):
appointment
Please specify the old date for the appointment:
02-03-2021
Please specify the doctor's first name:
Gabriel sdf
Please specify the doctor's last name:
dfsf
Please specify the patient's first name:
fgdfg
Please specify the patient's last name:
ghfghf
This appointment does not exist !
Please type a command (overview / add / view / stats / remove / update / exit):
update
Please choose what would you like to update (patient / staff / appointment):
appointment
Please specify the old date for the appointment:
04-05-2021
Please specify the doctor's first name:
dsf
Please specify the doctor's last name:
fds
Please specify the patient's first name:
tre
Please specify the patient's last name:
ghf
This appointment does not exist !
Please type a command (overview / add / view / stats / remove / update / exit):
update
Please choose what would you like to update (patient / staff / appointment):
appointment
Please specify the old date for the appointment:
07-08-2021
Please specify the doctor's first name:
Mircea
Please specify the doctor's last name:
Marin
Please specify the patient's first name:
Ana
Please specify the patient's last name:
Anabela
Please specify the new date for the appointment:
12-12-2021
Please type a command (overview / add / view / stats / remove / update / exit):
view
Please choose what would you like to visualize (staff / patient / appointment):
appointment
Date: 03-04-2021
Price: 123.0
Doctor: Gabriel / Constantin / 21 / M / 3847893475 / 3000.0 / 1 / calculatoare
Patient: Marcu / Micu / 50 / M / 48357 / Diseases: None
Disease: anxiety
Date: 05-06-2021
Price: 456.0
Doctor: Mircea / Marin / 37 / M / 34587 / 4556.0 / 3 / neuro
Patient: Ana / Anabela / 99 / F / 854967 / Diseases: diabet|
Disease: brain fog
Date: 12-12-2021
Price: 777.0
Doctor: Mircea / Marin / 37 / M / 34587 / 4556.0 / 3 / neuro
Patient: Ana / Anabela / 99 / F / 854967 / Diseases: diabet|
Surgery type: brain tumor extraction
Please type a command (overview / add / view / stats / remove / update / exit):
view
Please choose what would you like to visualize (staff / patient / appointment):
patient
Ana / Anabela / 99 / F / 854967 / Diseases: diabet|
Please type a command (overview / add / view / stats / remove / update / exit):
view
Please choose what would you like to visualize (staff / patient / appointment):
staff
Madalin / Costel / 30 / M / 38457 / 2300.0 / 4
Madalin / Costel / 33 / M / 345456545 / 6000.0 / 5 / psiho
Anca / Ioana / 26 / F / 43857 / 2300.0 / 2 / resident
Maria / Ioana / 22 / F / 48357 / 99999.0 / 1 / resident
Mircea / Marin / 37 / M / 34587 / 4556.0 / 3 / neuro
Please type a command (overview / add / view / stats / remove / update / exit):
stats
Please choose what would you like to get statistics for (staff / appointment):
appointment
In the database, there are:
2 consultations
1 surgeries
Please type a command (overview / add / view / stats / remove / update / exit):
exit
Bye bye!
Process finished with exit code 0