GenderProfileList

class GenderProfileList(var registryVersion: String? = null, var profiles: List<GenderProfile> = emptyList())

The gender options a member of the caller's organization may pick, in display order.

Fetched via com.advantahealth.api.settings.ApplicationSettings.getGenderProfiles. An organization that has not customised its options gets the platform defaults, so an empty profiles list means the server genuinely offered none - never a failed fetch, which throws instead.

Constructors

Link copied to clipboard
constructor(registryVersion: String? = null, profiles: List<GenderProfile> = emptyList())

Properties

Link copied to clipboard

The options, sorted by GenderProfile.sortOrder. Entries the server sent without a GenderProfile.code are left out, since they could never be saved back.

Link copied to clipboard

Opaque version of the list the server resolved. Compare it for equality only: an unchanged value means an unchanged list. null when the server did not report one.

Functions

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