fetchECG1 method

Future<Map<String, dynamic>> fetchECG1({
  1. required String? patientId,
  2. required String? period,
  3. required String? pageIndex,
  4. required String? limit,
})

Fetch the list of ECG Lead 1 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>> fetchECG1(
    {required String? patientId,
    required String? period,
    required String? pageIndex,
    required String? limit}) async {
  final data = await ApiService()
      .fetchEcg1Records(patientId!, period!, pageIndex!, limit!);
  return data;
}