|  |  | @ -78,6 +78,11 @@ class LabViewModel extends ChangeNotifier { | 
			
		
	
		
		
			
				
					
					|  |  |  |   } |  |  |  |   } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |   Future<void> getPatientLabOrders({Function(dynamic)? onSuccess, Function(String)? onError}) async { |  |  |  |   Future<void> getPatientLabOrders({Function(dynamic)? onSuccess, Function(String)? onError}) async { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     patientLabOrders.clear(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     uniqueTests.clear(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     uniqueTests = {}; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     notifyListeners(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     final result = await labRepo.getPatientLabOrders(); |  |  |  |     final result = await labRepo.getPatientLabOrders(); | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     result.fold( |  |  |  |     result.fold( | 
			
		
	
	
		
		
			
				
					|  |  | @ -132,11 +137,12 @@ class LabViewModel extends ChangeNotifier { | 
			
		
	
		
		
			
				
					
					|  |  |  |   } |  |  |  |   } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |   getUniqueTestDescription() { |  |  |  |   getUniqueTestDescription() { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     uniqueTests = { |  |  |  |     uniqueTests = { | 
			
		
	
		
		
			
				
					
					|  |  |  |       for (var item in patientLabOrders) |  |  |  |       for (var item in patientLabOrders) | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (item.testDetails != null) |  |  |  |         if (item.testDetails != null) | 
			
		
	
		
		
			
				
					
					|  |  |  |           ...?item.testDetails?.map<TestDetails>((test) => TestDetails( |  |  |  |           ...?item.testDetails?.map<TestDetails>((test) => TestDetails( | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               testDescriptionEn: test.testDescriptionEn.toString(), | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               testDescriptionAr: test.testDescriptionAr.toString(), | 
			
		
	
		
		
			
				
					
					|  |  |  |               description: test.description.toString(), |  |  |  |               description: test.description.toString(), | 
			
		
	
		
		
			
				
					
					|  |  |  |               testCode: test.testCode.toString(), |  |  |  |               testCode: test.testCode.toString(), | 
			
		
	
		
		
			
				
					
					|  |  |  |               testID: test.testID, |  |  |  |               testID: test.testID, | 
			
		
	
	
		
		
			
				
					|  |  | @ -170,8 +176,7 @@ class LabViewModel extends ChangeNotifier { | 
			
		
	
		
		
			
				
					
					|  |  |  |     ); |  |  |  |     ); | 
			
		
	
		
		
			
				
					
					|  |  |  |   } |  |  |  |   } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |   Future<void> getPatientLabResult( |  |  |  |   Future<void> getPatientLabResult(PatientLabOrdersResponseModel laborder, String procedureName, String testDescription) async { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       PatientLabOrdersResponseModel laborder, String procedureName) async { |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     LoaderBottomSheet.showLoader(); |  |  |  |     LoaderBottomSheet.showLoader(); | 
			
		
	
		
		
			
				
					
					|  |  |  |     mainLabResults.clear(); |  |  |  |     mainLabResults.clear(); | 
			
		
	
		
		
			
				
					
					|  |  |  |     filteredGraphValues.clear(); |  |  |  |     filteredGraphValues.clear(); | 
			
		
	
	
		
		
			
				
					|  |  | @ -223,8 +228,9 @@ class LabViewModel extends ChangeNotifier { | 
			
		
	
		
		
			
				
					
					|  |  |  |           recentResult.verifiedOn = resultDate(DateUtil.convertStringToDate(recentResult.verifiedOnDateTime!)); |  |  |  |           recentResult.verifiedOn = resultDate(DateUtil.convertStringToDate(recentResult.verifiedOnDateTime!)); | 
			
		
	
		
		
			
				
					
					|  |  |  |           // filteredGraphValues = [filteredGraphValues.first]; |  |  |  |           // filteredGraphValues = [filteredGraphValues.first]; | 
			
		
	
		
		
			
				
					
					|  |  |  |           navigationService.push(MaterialPageRoute( |  |  |  |           navigationService.push(MaterialPageRoute( | 
			
		
	
		
		
			
				
					
					|  |  |  |               builder: (_) => |  |  |  |               builder: (_) => LabResultDetails(recentLabResult: recentResult, testDescription: testDescription), | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                   LabResultDetails(recentLabResult: recentResult))); |  |  |  |             ), | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           ); | 
			
		
	
		
		
			
				
					
					|  |  |  |           notifyListeners(); |  |  |  |           notifyListeners(); | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |       }, |  |  |  |       }, | 
			
		
	
	
		
		
			
				
					|  |  | 
 |