WD: access level description added to the card of intervention

update_3.16.0_CR5439_Pharmacy_Intervention
taha.alam 8 months ago
parent 7a693c00c9
commit aad885f5ab

@ -32,6 +32,7 @@ class Medication {
DateTime? startDatetime;
int? status;
String? statusName;
String? accessLevelDescription;
DateTime? stopDatetime;
Medication({
@ -56,6 +57,7 @@ class Medication {
this.status,
this.statusName,
this.stopDatetime,
this.accessLevelDescription,
});
dynamic? getValue(int index){
@ -107,7 +109,6 @@ class Medication {
factory Medication.fromJson(Map<String, dynamic> json) {
return Medication(
accessLevel: json['accessLevel'] ?? '',
admissionNo: json['admissionNo']?? '',
authorizedBy: json['authorizedby']?? '-',
authorizedByName: json['authorizedbyName']?? '',
@ -127,6 +128,7 @@ class Medication {
startDatetime: json['startDatetime'] != null ? DateTime.parse(json['startDatetime']) : null,
status: json['status']?? '',
statusName: json['statusName']?? '',
accessLevelDescription: json['accessLevelDescription']?? '',
stopDatetime: json['stopDatetime'] != null ? DateTime.parse(json['stopDatetime']) : null,
);
}

@ -26,7 +26,7 @@ class InterventionCardBody extends StatelessWidget {
title: TranslationBase
.of(context)
.accessLevel,
data: medication.accessLevel.toString() ?? '',
data: medication.accessLevelDescription ?? '',
),
),
Expanded(

Loading…
Cancel
Save