SelfReportData

class SelfReportData(var facilities: List<Facility> = emptyList(), var selfReportMonths: List<SelfReportMonth> = emptyList(), var statusMessage: String? = null)

The member's self-report history, returned by com.advantahealth.api.selfreport.SelfReport.get.

Bundles the catalog of facilities the member may self-report against with the reported visits grouped by month. Each SelfReportVisit references a facility only by id (SelfReportVisit.facilityId); resolve the display details by matching that id against the entries in facilities. Any of the collections may be empty when the member has no history yet.

Constructors

Link copied to clipboard
constructor(facilities: List<Facility> = emptyList(), selfReportMonths: List<SelfReportMonth> = emptyList(), statusMessage: String? = null)

Properties

Link copied to clipboard

The facilities available for self-reporting, used to hydrate the facility id on each SelfReportVisit. Empty when none apply.

Link copied to clipboard

The member's reported visits grouped by month/year. Empty when the member has no self-reports.

Link copied to clipboard

Optional backend status/informational message, or null when none was provided.

Functions

Link copied to clipboard
open override fun toString(): String