-
@Serializable() public final class Patient
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumPatient.Genderpublic enumPatient.GenderIdentitypublic enumPatient.RelationshipToAccountHolder
-
Field Summary
Fields Modifier and Type Field Description private final Stringidprivate final Patient.RelationshipToAccountHolderrelationshipToAccountHolderprivate final StringfirstNameprivate final StringlastNameprivate final Patient.Gendergenderprivate final Patient.GenderIdentitygenderIdentityprivate final Stringphoneprivate final Stringemailprivate final LocalDatebirthDateprivate final StringpreferredLanguageprivate final Map<String, String>custom
-
Constructor Summary
Constructors Constructor Description Patient(String id, Patient.RelationshipToAccountHolder relationshipToAccountHolder, String firstName, String lastName, Patient.Gender gender, Patient.GenderIdentity genderIdentity, String phone, String email, LocalDate birthDate, String preferredLanguage, Map<String, String> custom)
-
Method Summary
Modifier and Type Method Description final StringgetId()A unique identifier for the patient final Patient.RelationshipToAccountHoldergetRelationshipToAccountHolder()final StringgetFirstName()The given (first) name of the patient final StringgetLastName()The family (last) name of the patient final Patient.GendergetGender()final Patient.GenderIdentitygetGenderIdentity()final StringgetPhone()E. final StringgetEmail()RFC 5322 compliant format final LocalDategetBirthDate()final StringgetPreferredLanguage()ISO 639-1 language code final Map<String, String>getCustom()Custom client-specific information about the patient -
-
Constructor Detail
-
Patient
Patient(String id, Patient.RelationshipToAccountHolder relationshipToAccountHolder, String firstName, String lastName, Patient.Gender gender, Patient.GenderIdentity genderIdentity, String phone, String email, LocalDate birthDate, String preferredLanguage, Map<String, String> custom)
-
-
Method Detail
-
getRelationshipToAccountHolder
final Patient.RelationshipToAccountHolder getRelationshipToAccountHolder()
-
getFirstName
final String getFirstName()
The given (first) name of the patient
-
getLastName
final String getLastName()
The family (last) name of the patient
-
getGender
final Patient.Gender getGender()
-
getGenderIdentity
final Patient.GenderIdentity getGenderIdentity()
-
getBirthDate
final LocalDate getBirthDate()
-
getPreferredLanguage
final String getPreferredLanguage()
ISO 639-1 language code
-
-
-
-