HealthRepository

class HealthRepository @Inject constructor(firestore: FirebaseFirestore, observationCollectionProvider: ObservationCollectionProvider, observationsDocumentMapper: ObservationsDocumentMapper, observationMapper: ObservationsDocumentMapper, recordToObservationMapper: RecordToObservationMapper, ioDispatcher: CoroutineDispatcher)

Constructors

Link copied to clipboard
@Inject
constructor(firestore: FirebaseFirestore, observationCollectionProvider: ObservationCollectionProvider, observationsDocumentMapper: ObservationsDocumentMapper, observationMapper: ObservationsDocumentMapper, recordToObservationMapper: RecordToObservationMapper, ioDispatcher: CoroutineDispatcher)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
suspend fun deleteBloodPressureRecord(recordId: String): Result<Unit>
Link copied to clipboard
suspend fun deleteHeartRateRecord(recordId: String): Result<Unit>
Link copied to clipboard
suspend fun deleteWeightRecord(recordId: String): Result<Unit>
Link copied to clipboard
Link copied to clipboard
suspend fun observeSymptoms(): Flow<Result<List<SymptomScore>>>
Link copied to clipboard
Link copied to clipboard
suspend fun saveRecord(record: Record): Result<Unit>