Skip to content

Instantly share code, notes, and snippets.

import 'dart:async';
import 'package:components/api/graphql_api.dart';
import 'package:components/base/viewmodel/base_viewmodel.dart';
import 'package:components/events/event_sender.dart';
import 'package:components/events/models/notifications/notification_added_event.dart';
import 'package:components/events/models/notifications/notification_read_event.dart';
import 'package:components/events/models/notifications/notification_disable_event.dart';
import 'package:components/model/request_result_model.dart';
import 'package:components/base/base_circular_loading.dart';
import 'package:components/base/viewmodel/view_model_provider.dart';
import 'package:components/model/notifications/encounter_note_notification_data.dart';
import 'package:components/model/notifications/encounter_notification_data.dart';
import 'package:components/model/notifications/notification_target.dart';
import 'package:components/model/notifications/questionnaire_data.dart';
import 'package:components/model/notifications/visit_scheduled_data.dart';
import 'package:components/rect/field/const.dart';
import 'package:components/repositories/notifications/notification.dart';
import 'package:components/utils/date.dart';
flutter: ══╡ EXCEPTION CAUGHT BY GESTURE ╞═══════════════════════════════════════════════════════════════════
flutter: The following assertion was thrown while handling a gesture:
flutter: ScrollController not attached to any scroll views.
flutter: 'package:flutter/src/widgets/scroll_controller.dart':
flutter: Failed assertion: line 108 pos 12: '_positions.isNotEmpty'
flutter:
flutter: Either the assertion indicates an error in the framework itself, or we should provide substantially
flutter: more information in this error message to help you determine and fix the underlying cause.
flutter: In either case, please report this assertion by filing a bug on GitHub:
flutter: https://github.com/flutter/flutter/issues/new?template=2_bug.md
[log] --------------------------------------------------------
2022-03-03 12:52:12.518463Z 2022-03-03T12:52:12.518090Z EVENT_SENDER: started handling event `onleave`
--------------------------------------------------------
[log] --------------------------------------------------------
2022-03-03 12:52:12.525984Z 2022-03-03T12:52:12.525825Z EVENT_SENDER: result = Instance of 'WaitingRoomEvent'
--------------------------------------------------------
[log] --------------------------------------------------------
2022-03-03 12:52:12.529280Z
RESPONSE:
receiving time: 2022-03-03 12:52:12.517110Z
[log] --------------------------------------------------------
2022-03-03 12:52:36.417807Z 2022-03-03T12:52:36.416769Z EVENT_SENDER: started handling event `return`
--------------------------------------------------------
[log] --------------------------------------------------------
2022-03-03 12:52:36.424513Z 2022-03-03T12:52:36.424336Z EVENT_SENDER: result = Instance of 'WaitingRoomEvent'
--------------------------------------------------------
[log] --------------------------------------------------------
2022-03-03 12:52:36.427168Z
RESPONSE:
receiving time: 2022-03-03 12:52:36.413159Z
[log] --------------------------------------------------------
2022-03-03 10:42:18.303747Z
DURATION: 0:00:00.325199
REQUEST:
sending time: 2022-03-03 10:42:17.972932Z
query: {"reqType":"graphql","reqId":"d22dd3bb-930a-4966-9d97-199ead56ea86","graphqlParams":{"query": "query {\n visitCredit(patientId: \"d836b980-4cf6-463a-99db-271618083125\" , clinicId: \"900c1399-2a15-4d23-a3c8-ef0499fc93c0\")\n }"},"ctx":{"processId":null}}
RESPONSE:
receiving time: 2022-03-03 10:42:18.298131Z
[log] --------------------------------------------------------
2022-03-02 09:37:29.737087Z
DURATION: 0:00:00.838612
REQUEST:
sending time: 2022-03-02 09:37:28.888952Z
query: {"reqType":"graphql","reqId":"06b76d5b-2e77-4f94-b533-90f4be8c16cc","graphqlParams":{"query": "mutation \n {\n paymentTransaction( \n input: {\n refId: 650, \n amount: \"122.0\", \n cardId: \"903939136\", \n appointmentId: \"5a8704d5-9a0c-11ec-a944-6a39bbf38744\",\n \n }\n )\n }"},"ctx":{"processId":null,"geolocation":{"latitude":37.785834,"longitude":-122.406417,"altitude":0}}}
RESPONSE:
receiving time: 2022-03-02 09:37:29.727564Z
[log] --------------------------------------------------------
2022-03-01 11:37:57.039265Z
DURATION: 0:00:00.774499
REQUEST:
sending time: 2022-03-01 11:37:56.264605Z
query: {"reqType":"graphql","reqId":"fb63b7ba-0526-4f3f-a9c5-652b97998a6f","graphqlParams":{"query": "mutation \n {\n paymentTransaction( \n input: {\n refId: 601, \n amount: \"75.42\", \n cardId: \"902073697\", \n appointmentId: \"0704780a-9954-11ec-a52a-f28106d55558\",\n patientId: \"00041734-2ecc-4f84-b8cc-a85505e1f6e4\",\n }\n )\n }"},"ctx":{"processId":null}}
RESPONSE:
receiving time: 2022-03-01 11:37:57.039104Z
REQUEST:
sending time: 2022-02-28 09:09:23.261057Z
query: {"reqType":"graphql","reqId":"169118ee-14c4-429d-9a3f-752976481837","graphqlParams":{"query": "mutation {\n setVisitType(\n clinicId: \"05647942-a7ad-46a1-92cd-e146652c6297\"\n input: {\n id: \"61c35f8c-a3fd-45d5-a2ac-a359fe76f8e0\"\n name: \"A free visit type\"\n description: \"No cost\"\n estimatedLength: 25\n estimatedCost: 122.0\n cancellationFee: 22.0\n icon: default\n isVisibleToClient: true\n tasks: [\n {\n taskId: \"398bcd98-e925-5eac-bfe3-a6d60774705f\"\n type: form\n condition: booking\n }\n ]\n }\n )\n }"},"ctx":{"processId":null}}
RESPONSE:
receiving time: 2022-02-28 09:09:57.770575Z
messages: {"message":"OK","statusCode":200,"ctx":{"workflow":"graphql","action":"query","processId":"1f20765b-9876-11ec-8a3c-4e25bc8d99
[log] --------------------------------------------------------
2022-02-28 06:19:20.458571Z
DURATION: 0:00:00.230682
REQUEST:
sending time: 2022-02-28 06:19:20.225094Z
query: {"reqType":"graphql","reqId":"1e03b65a-93c8-4bc7-9bf1-1cab974cdbde","graphqlParams":{"query": "{providerHasAvailabilityCheck(from: \"2022-02-28T06:30:54.103631Z\", to: \"2022-02-28T06:45:54.103631Z\", providerId: \"c9e21c57-5b79-4aa4-9620-b55253b2bb93\", clinicId: \"05647942-a7ad-46a1-92cd-e146652c6297\")}"},"ctx":{"processId":null}}
RESPONSE:
receiving time: 2022-02-28 06:19:20.455776Z