Member Profile
MemberProfile — represents the profile information of a member.
Returned by:
com.advantahealth.api.profile.Profile.get and com.advantahealth.api.profile.Profile.update for profile retrieval or update flows.
Properties
uniqueId Tenant-unique external identifier (e.g., employee ID). This is the primary external identifier.
memberId Unique identifier for the member (assigned by backend).
messageId Identifier for the message or response envelope (optional).
firstName Member’s first name.
middleName Member’s middle name (optional).
lastName Member’s last name.
address Member’s address information (MemberAddress).
dob Date of birth (ISO format
yyyy-MM-dd).email Email address.
gender Gender string (e.g.,
"M"or"F", depending on tenant rules).dayPhone Optional daytime phone number.
cellPhone Optional cell phone number.
Notes
Always check for
nullon optional fields like middleName, dayPhone, and cellPhone.memberId is required for all subsequent API calls tied to the member.
Android (Kotlin) — fetching profile
lifecycleScope.launch {
try {
val profile = AFCore.profile().get()
println("Welcome ${profile.firstName} ${profile.lastName}")
} catch (t: Throwable) {
showError("Failed to fetch profile: ${t.message}")
}
}iOS (Swift) — fetching profile
Task {
do {
let profile = try await AFCore.shared.profile().get()
print("Welcome \\(profile.firstName ?? "") \\(profile.lastName ?? "")")
} catch {
print("Failed to fetch profile: \\(error.localizedDescription)")
}
}