|
|
|
|
@ -18,23 +18,7 @@ class LabRepoImp implements LabRepo {
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Future<Either<Failure, GenericApiModel<List<PatientLabOrdersResponseModel>>>> getPatientLabOrders({required String patientId}) async {
|
|
|
|
|
final mapDevice = {
|
|
|
|
|
"isDentalAllowedBackend": false,
|
|
|
|
|
"VersionID": 50.0,
|
|
|
|
|
"Channel": 3,
|
|
|
|
|
"LanguageID": 2,
|
|
|
|
|
"IPAdress": "10.20.10.20",
|
|
|
|
|
"generalid": "Cs2020@2016\$2958",
|
|
|
|
|
"Latitude": 0.0,
|
|
|
|
|
"Longitude": 0.0,
|
|
|
|
|
"DeviceTypeID": 1,
|
|
|
|
|
"PatientType": 1,
|
|
|
|
|
"PatientTypeID": 1,
|
|
|
|
|
"TokenID": "@dm!n",
|
|
|
|
|
"PatientID": "1018977",
|
|
|
|
|
"PatientOutSA": "0",
|
|
|
|
|
"SessionID": "03478TYC02N80874CTYN04883475!?"
|
|
|
|
|
};
|
|
|
|
|
Map<String, dynamic> mapDevice = {};
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
GenericApiModel<List<PatientLabOrdersResponseModel>>? apiResponse;
|
|
|
|
|
@ -52,10 +36,7 @@ class LabRepoImp implements LabRepo {
|
|
|
|
|
throw Exception("lab list is empty");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
final labOrders = list
|
|
|
|
|
.map((item) => PatientLabOrdersResponseModel.fromJson(item as Map<String, dynamic>))
|
|
|
|
|
.toList()
|
|
|
|
|
.cast<PatientLabOrdersResponseModel>();
|
|
|
|
|
final labOrders = list.map((item) => PatientLabOrdersResponseModel.fromJson(item as Map<String, dynamic>)).toList().cast<PatientLabOrdersResponseModel>();
|
|
|
|
|
|
|
|
|
|
apiResponse = GenericApiModel<List<PatientLabOrdersResponseModel>>(
|
|
|
|
|
messageStatus: messageStatus,
|
|
|
|
|
|