1) Update search field to cater for ontap of icon and required and editable parameters.
2) remove Unnesasay signed in user from widget, add menu height. 3) add medicine object to cater for results of med api call. 4) update search input to cater for new parameters. 5) create prescriotion popUp widget. 6) Create medicine search pop Up widget
This commit is contained in:
19
Frontend/patient_manager/lib/objects/medicine.dart
Normal file
19
Frontend/patient_manager/lib/objects/medicine.dart
Normal file
@@ -0,0 +1,19 @@
|
||||
class Medicine {
|
||||
final String name;
|
||||
final String unit;
|
||||
final String form;
|
||||
|
||||
const Medicine(
|
||||
this.name,
|
||||
this.unit,
|
||||
this.form,
|
||||
);
|
||||
|
||||
factory Medicine.fromJson(dynamic json) {
|
||||
return Medicine(
|
||||
json['name'],
|
||||
json['unit'],
|
||||
json['dosage form'],
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user