fetchSP02 method
Fetch the list of SPO2 records
- patientId - Pass the current patient id.
- period - 'day', 'month', 'week', 'quarter' or 'year'
- pageIndex - The provides next set of records on each index incremented on paginating.
- limit - Provides the number of records per api call.
Implementation
Future<Map<String, dynamic>> fetchSP02(
{required String? patientId,
required String? period,
required String? pageIndex,
required String? limit}) async {
final data = await ApiService()
.fetchSpo2Records(patientId!, period!, pageIndex!, limit!);
return data;
}