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, Float bmi, Float 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, Float bmi, Float baselineHba1c, String diabetesType, String studyArm) Creates an instance of aParticipantDataRequest
record class. -
Method Summary
Modifier and TypeMethodDescription@NotNull(message="Age is required") @Min(value=0L,message="Age must be 0 or a positive integer") Integer
age()
Returns the value of theage
record component.Returns the value of thebaselineHba1c
record component.bmi()
Returns the value of thebmi
record component.Returns the value of thediabetesType
record component.Returns the value of thediagnosisIcd
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theethnicityId
record component.@NotBlank(message="Gender ID is required") String
genderId()
Returns the value of thegenderId
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of themedRxnorm
record component.@NotBlank(message="Organization Party ID is required") String
Returns the value of theorgPartyId
record component.@NotBlank(message="Participant Display ID is required") String
Returns the value of theparticipantDisplayId
record component.raceId()
Returns the value of theraceId
record component.studyArm()
Returns the value of thestudyArm
record component.@NotBlank(message="Study ID is required") String
studyId()
Returns the value of thestudyId
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thetreatmentModality
record 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, Float bmi, Float baselineHba1c, String diabetesType, String studyArm) Creates an instance of aParticipantDataRequest
record class.- Parameters:
studyId
- the value for thestudyId
record componentorgPartyId
- the value for theorgPartyId
record componentparticipantDisplayId
- the value for theparticipantDisplayId
record componentgenderId
- the value for thegenderId
record componentage
- the value for theage
record componentdiagnosisIcd
- the value for thediagnosisIcd
record componentmedRxnorm
- the value for themedRxnorm
record componenttreatmentModality
- the value for thetreatmentModality
record componentraceId
- the value for theraceId
record componentethnicityId
- the value for theethnicityId
record componentbmi
- the value for thebmi
record componentbaselineHba1c
- the value for thebaselineHba1c
record componentdiabetesType
- the value for thediabetesType
record componentstudyArm
- the value for thestudyArm
record 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 thestudyId
record component.- Returns:
- the value of the
studyId
record component
-
orgPartyId
@NotBlank(message="Organization Party ID is required") public @NotBlank(message="Organization Party ID is required") String orgPartyId()Returns the value of theorgPartyId
record component.- Returns:
- the value of the
orgPartyId
record component
-
participantDisplayId
@NotBlank(message="Participant Display ID is required") public @NotBlank(message="Participant Display ID is required") String participantDisplayId()Returns the value of theparticipantDisplayId
record component.- Returns:
- the value of the
participantDisplayId
record component
-
genderId
@NotBlank(message="Gender ID is required") public @NotBlank(message="Gender ID is required") String genderId()Returns the value of thegenderId
record component.- Returns:
- the value of the
genderId
record 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 theage
record component.- Returns:
- the value of the
age
record component
-
diagnosisIcd
Returns the value of thediagnosisIcd
record component.- Returns:
- the value of the
diagnosisIcd
record component
-
medRxnorm
Returns the value of themedRxnorm
record component.- Returns:
- the value of the
medRxnorm
record component
-
treatmentModality
Returns the value of thetreatmentModality
record component.- Returns:
- the value of the
treatmentModality
record component
-
raceId
Returns the value of theraceId
record component.- Returns:
- the value of the
raceId
record component
-
ethnicityId
Returns the value of theethnicityId
record component.- Returns:
- the value of the
ethnicityId
record component
-
bmi
Returns the value of thebmi
record component.- Returns:
- the value of the
bmi
record component
-
baselineHba1c
Returns the value of thebaselineHba1c
record component.- Returns:
- the value of the
baselineHba1c
record component
-
diabetesType
Returns the value of thediabetesType
record component.- Returns:
- the value of the
diabetesType
record component
-
studyArm
Returns the value of thestudyArm
record component.- Returns:
- the value of the
studyArm
record component
-