Apple health medication sync

Generated reference for ovok_flutter: apple health medication sync.

  • Stable unknown
  • Release candidate not available
  • Development since 0.2.0-dev.51+80996d9

AppleHealthMedicationSyncCompleted

final class AppleHealthMedicationSyncCompleted extends AppleHealthMedicationSyncResult

The medication list and the available dose events were processed.

Constructors

AppleHealthMedicationSyncCompleted.new

AppleHealthMedicationSyncCompleted({required int medications, required int doseEvents})

Creates a completed result.

ParameterTypeKindDefault
medicationsintrequired named
doseEventsintrequired named

Properties

AppleHealthMedicationSyncCompleted.medications

final int medications

Medications HealthKit returned.

AppleHealthMedicationSyncCompleted.doseEvents

final int doseEvents

Dose events imported, retracted or deleted.

AppleHealthMedicationSyncResult

sealed class AppleHealthMedicationSyncResult

What syncAppleHealthMedications did.

Constructors

AppleHealthMedicationSyncResult.new

AppleHealthMedicationSyncResult()

AppleHealthMedicationSyncUnsupported

final class AppleHealthMedicationSyncUnsupported extends AppleHealthMedicationSyncResult

This device cannot import medications; nothing was read or deleted.

Constructors

AppleHealthMedicationSyncUnsupported.new

AppleHealthMedicationSyncUnsupported(AppleHealthMedicationUnsupportedReason reason)

Creates an unsupported result.

ParameterTypeKindDefault
reasonAppleHealthMedicationUnsupportedReasonpositional

Properties

AppleHealthMedicationSyncUnsupported.reason

final AppleHealthMedicationUnsupportedReason reason

Why the import cannot run.

syncAppleHealthMedications

Future<AppleHealthMedicationSyncResult> syncAppleHealthMedications({required Ovok client, required String patientId, required AppleHealthMedicationSource source})

Imports the signed-in patient's Apple Health medications and logged doses.

Mirrors syncAppleHealthMedications of @ovok/native/next. Throws OvokConfigException when patientId is not the signed-in patient. Reads medications through source; a denied read or an unsupported device never deletes imported data.

ParameterTypeKindDefault
clientOvokrequired named
patientIdStringrequired named
sourceAppleHealthMedicationSourcerequired named

Last updated on

On this page