Record Class ParticipantDataRequest
java.lang.Object
java.lang.Record
org.diabetestechnology.drh.service.http.pg.request.ParticipantDataRequest
public record ParticipantDataRequest(@NotBlank(message="Study ID is required") String studyId, @NotBlank(message="Organization Party ID is required") String orgPartyId, @NotBlank(message="Participant Display ID is required") String participantDisplayId, @NotBlank(message="Gender ID is required") String genderId, @NotNull(message="Age is required") @Min(value=0L,message="Age must be 0 or a positive integer") Integer age, String diagnosisIcd, String medRxnorm, String treatmentModality, String raceId, String ethnicityId, Double bmi, Double baselineHba1c, String diabetesType, String studyArm)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionParticipantDataRequest(@NotBlank(message="Study ID is required") String studyId, @NotBlank(message="Organization Party ID is required") String orgPartyId, @NotBlank(message="Participant Display ID is required") String participantDisplayId, @NotBlank(message="Gender ID is required") String genderId, @NotNull(message="Age is required") @Min(value=0L,message="Age must be 0 or a positive integer") Integer age, String diagnosisIcd, String medRxnorm, String treatmentModality, String raceId, String ethnicityId, Double bmi, Double baselineHba1c, String diabetesType, String studyArm) Creates an instance of aParticipantDataRequestrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull(message="Age is required") @Min(value=0L,message="Age must be 0 or a positive integer") Integerage()Returns the value of theagerecord component.Returns the value of thebaselineHba1crecord component.bmi()Returns the value of thebmirecord component.Returns the value of thediabetesTyperecord component.Returns the value of thediagnosisIcdrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theethnicityIdrecord component.@NotBlank(message="Gender ID is required") StringgenderId()Returns the value of thegenderIdrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themedRxnormrecord component.@NotBlank(message="Organization Party ID is required") StringReturns the value of theorgPartyIdrecord component.@NotBlank(message="Participant Display ID is required") StringReturns the value of theparticipantDisplayIdrecord component.raceId()Returns the value of theraceIdrecord component.studyArm()Returns the value of thestudyArmrecord component.@NotBlank(message="Study ID is required") StringstudyId()Returns the value of thestudyIdrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetreatmentModalityrecord component.
-
Constructor Details
-
ParticipantDataRequest
public ParticipantDataRequest(@NotBlank(message="Study ID is required") @NotBlank(message="Study ID is required") String studyId, @NotBlank(message="Organization Party ID is required") @NotBlank(message="Organization Party ID is required") String orgPartyId, @NotBlank(message="Participant Display ID is required") @NotBlank(message="Participant Display ID is required") String participantDisplayId, @NotBlank(message="Gender ID is required") @NotBlank(message="Gender ID is required") String genderId, @NotNull(message="Age is required") @Min(value=0L,message="Age must be 0 or a positive integer") @NotNull(message="Age is required") @Min(value=0L,message="Age must be 0 or a positive integer") Integer age, String diagnosisIcd, String medRxnorm, String treatmentModality, String raceId, String ethnicityId, Double bmi, Double baselineHba1c, String diabetesType, String studyArm) Creates an instance of aParticipantDataRequestrecord class.- Parameters:
studyId- the value for thestudyIdrecord componentorgPartyId- the value for theorgPartyIdrecord componentparticipantDisplayId- the value for theparticipantDisplayIdrecord componentgenderId- the value for thegenderIdrecord componentage- the value for theagerecord componentdiagnosisIcd- the value for thediagnosisIcdrecord componentmedRxnorm- the value for themedRxnormrecord componenttreatmentModality- the value for thetreatmentModalityrecord componentraceId- the value for theraceIdrecord componentethnicityId- the value for theethnicityIdrecord componentbmi- the value for thebmirecord componentbaselineHba1c- the value for thebaselineHba1crecord componentdiabetesType- the value for thediabetesTyperecord componentstudyArm- the value for thestudyArmrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
studyId
@NotBlank(message="Study ID is required") public @NotBlank(message="Study ID is required") String studyId()Returns the value of thestudyIdrecord component.- Returns:
- the value of the
studyIdrecord component
-
orgPartyId
@NotBlank(message="Organization Party ID is required") public @NotBlank(message="Organization Party ID is required") String orgPartyId()Returns the value of theorgPartyIdrecord component.- Returns:
- the value of the
orgPartyIdrecord component
-
participantDisplayId
@NotBlank(message="Participant Display ID is required") public @NotBlank(message="Participant Display ID is required") String participantDisplayId()Returns the value of theparticipantDisplayIdrecord component.- Returns:
- the value of the
participantDisplayIdrecord component
-
genderId
@NotBlank(message="Gender ID is required") public @NotBlank(message="Gender ID is required") String genderId()Returns the value of thegenderIdrecord component.- Returns:
- the value of the
genderIdrecord component
-
age
@NotNull(message="Age is required") @Min(value=0L, message="Age must be 0 or a positive integer") public @NotNull(message="Age is required") @Min(value=0L,message="Age must be 0 or a positive integer") Integer age()Returns the value of theagerecord component.- Returns:
- the value of the
agerecord component
-
diagnosisIcd
Returns the value of thediagnosisIcdrecord component.- Returns:
- the value of the
diagnosisIcdrecord component
-
medRxnorm
Returns the value of themedRxnormrecord component.- Returns:
- the value of the
medRxnormrecord component
-
treatmentModality
Returns the value of thetreatmentModalityrecord component.- Returns:
- the value of the
treatmentModalityrecord component
-
raceId
Returns the value of theraceIdrecord component.- Returns:
- the value of the
raceIdrecord component
-
ethnicityId
Returns the value of theethnicityIdrecord component.- Returns:
- the value of the
ethnicityIdrecord component
-
bmi
Returns the value of thebmirecord component.- Returns:
- the value of the
bmirecord component
-
baselineHba1c
Returns the value of thebaselineHba1crecord component.- Returns:
- the value of the
baselineHba1crecord component
-
diabetesType
Returns the value of thediabetesTyperecord component.- Returns:
- the value of the
diabetesTyperecord component
-
studyArm
Returns the value of thestudyArmrecord component.- Returns:
- the value of the
studyArmrecord component
-