SelfReportVisit

class SelfReportVisit(var day: Int? = 0, var statusType: ActivityStatus = ActivityStatus.PENDING, var facilityId: Int? = 0)

A single member self-reported facility visit within a SelfReportMonth.

The owning SelfReportMonth supplies the month and year; this record adds the day, its review status, and the facility it was reported against. The facility is referenced by id only — resolve its display details by matching facilityId against SelfReportData.facilities.

Constructors

Link copied to clipboard
constructor(day: Int? = 0, statusType: ActivityStatus = ActivityStatus.PENDING, facilityId: Int? = 0)

Properties

Link copied to clipboard
var day: Int?

The 1-based day of the month for the visit (1–31), or null when the backend omitted it. Combine with the parent SelfReportMonth's month/year to form the full date.

Link copied to clipboard

The id of the reported facility, matched against SelfReportData.facilities for display. null (or 0) when no facility is associated.

Link copied to clipboard

The review status of this visit, reusing ActivityStatus so self-reports share the same lifecycle vocabulary as other activities; typically ActivityStatus.PENDING (awaiting review), ActivityStatus.APPROVED/ActivityStatus.ACCEPTED (credited), or ActivityStatus.REJECTED. Defaults to ActivityStatus.PENDING.

Functions

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