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