|
|
|
|
@ -14,8 +14,6 @@ class MedicationList{
|
|
|
|
|
class Medication {
|
|
|
|
|
int? accessLevel;
|
|
|
|
|
int? admissionNo;
|
|
|
|
|
String? authorizedBy;
|
|
|
|
|
String? authorizedByName;
|
|
|
|
|
String? createdBy;
|
|
|
|
|
String? doctorComments;
|
|
|
|
|
String? doctorName;
|
|
|
|
|
@ -38,8 +36,6 @@ class Medication {
|
|
|
|
|
Medication({
|
|
|
|
|
this.accessLevel,
|
|
|
|
|
this.admissionNo,
|
|
|
|
|
this.authorizedBy,
|
|
|
|
|
this.authorizedByName,
|
|
|
|
|
this.createdBy,
|
|
|
|
|
this.doctorComments,
|
|
|
|
|
this.doctorName,
|
|
|
|
|
@ -60,58 +56,9 @@ class Medication {
|
|
|
|
|
this.accessLevelDescription,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
dynamic? getValue(int index){
|
|
|
|
|
switch (index) {
|
|
|
|
|
case 0:
|
|
|
|
|
return this.accessLevel;
|
|
|
|
|
case 1:
|
|
|
|
|
return this.patientID;
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
return this.patientName;
|
|
|
|
|
break;
|
|
|
|
|
case 3:
|
|
|
|
|
return this.nursingStation;
|
|
|
|
|
break;
|
|
|
|
|
case 4:
|
|
|
|
|
return this.admissionNo;
|
|
|
|
|
break;
|
|
|
|
|
case 5:
|
|
|
|
|
return this.medication;
|
|
|
|
|
break;
|
|
|
|
|
case 6:
|
|
|
|
|
return this.dosageDetail;
|
|
|
|
|
break;
|
|
|
|
|
case 7:
|
|
|
|
|
return this.doctorComments;
|
|
|
|
|
break;
|
|
|
|
|
case 8:
|
|
|
|
|
return this.startDatetime;
|
|
|
|
|
break;
|
|
|
|
|
case 9:
|
|
|
|
|
return this.stopDatetime;
|
|
|
|
|
break;
|
|
|
|
|
case 10:
|
|
|
|
|
return this.status;
|
|
|
|
|
break;
|
|
|
|
|
case 11:
|
|
|
|
|
return this.doctorName;
|
|
|
|
|
break;
|
|
|
|
|
case 12:
|
|
|
|
|
return this.authorizedBy;
|
|
|
|
|
break;
|
|
|
|
|
case 13:
|
|
|
|
|
return this.pharmacyRemarks;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
return index;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
factory Medication.fromJson(Map<String, dynamic> json) {
|
|
|
|
|
return Medication(
|
|
|
|
|
admissionNo: json['admissionNo']?? '',
|
|
|
|
|
authorizedBy: json['authorizedby']?? '-',
|
|
|
|
|
authorizedByName: json['authorizedbyName']?? '',
|
|
|
|
|
createdBy: json['createdBy']?? '',
|
|
|
|
|
doctorComments: json['doctorComments']?? '',
|
|
|
|
|
doctorName: json['doctorName']?? '',
|
|
|
|
|
@ -137,8 +84,6 @@ class Medication {
|
|
|
|
|
return {
|
|
|
|
|
'accessLevel': accessLevel,
|
|
|
|
|
'admissionNo': admissionNo,
|
|
|
|
|
'authorizedby': authorizedBy,
|
|
|
|
|
'authorizedbyName': authorizedByName,
|
|
|
|
|
'createdBy': createdBy,
|
|
|
|
|
'doctorComments': doctorComments,
|
|
|
|
|
'doctorName': doctorName,
|
|
|
|
|
|