Commit f1c6c71b authored by Almouhannad's avatar Almouhannad

(F) Add medicine and visit view classes

parent 01293688
export class MedicineView {
public name: string;
public form: 'حبوب' | 'شراب'
public amount: number;
public dosage: number;
public number: number;
constructor(name: string = '', form: 'حبوب' | 'شراب' = 'حبوب',
amount: number = 0, dosage: number = 0, number: number = 0
) {
this.name = name;
this.form = form;
this.amount = amount;
this.dosage = dosage;
this.number = number;
}
}
import { MedicineView } from "../medicine/medicine-view";
export class VisitView {
doctorName: string;
diagnosis: string;
medicines: MedicineView[];
constructor(doctorName: string = '', diagnosis: string = '', medicines: MedicineView[] = []) {
this.doctorName = doctorName;
this.diagnosis = diagnosis;
this.medicines = medicines;
}
}
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<th scope="row">2</th> <th scope="row">2</th>
<td>باراسيتامول</td> <td>باراسيتامول</td>
<td>شراب</td> <td>شراب</td>
<td>500 ملغ</td> <td>500 ملل</td>
<td>500</td> <td>500</td>
<td>2</td> <td>2</td>
</tr> </tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment