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

    Constructors
    Constructor
    Description
    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)
    Creates an instance of a ParticipantDataRequest record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull(message="Age is required") @Min(value=0L,message="Age must be 0 or a positive integer") Integer
    age()
    Returns the value of the age record component.
    Returns the value of the baselineHba1c record component.
    bmi()
    Returns the value of the bmi record component.
    Returns the value of the diabetesType record component.
    Returns the value of the diagnosisIcd record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the ethnicityId record component.
    @NotBlank(message="Gender ID is required") String
    Returns the value of the genderId record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the medRxnorm record component.
    @NotBlank(message="Organization Party ID is required") String
    Returns the value of the orgPartyId record component.
    @NotBlank(message="Participant Display ID is required") String
    Returns the value of the participantDisplayId record component.
    Returns the value of the raceId record component.
    Returns the value of the studyArm record component.
    @NotBlank(message="Study ID is required") String
    Returns the value of the studyId record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the treatmentModality record component.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • 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 a ParticipantDataRequest record class.
      Parameters:
      studyId - the value for the studyId record component
      orgPartyId - the value for the orgPartyId record component
      participantDisplayId - the value for the participantDisplayId record component
      genderId - the value for the genderId record component
      age - the value for the age record component
      diagnosisIcd - the value for the diagnosisIcd record component
      medRxnorm - the value for the medRxnorm record component
      treatmentModality - the value for the treatmentModality record component
      raceId - the value for the raceId record component
      ethnicityId - the value for the ethnicityId record component
      bmi - the value for the bmi record component
      baselineHba1c - the value for the baselineHba1c record component
      diabetesType - the value for the diabetesType record component
      studyArm - the value for the studyArm record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • studyId

      @NotBlank(message="Study ID is required") public @NotBlank(message="Study ID is required") String studyId()
      Returns the value of the studyId 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 the orgPartyId 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 the participantDisplayId 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 the genderId 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 the age record component.
      Returns:
      the value of the age record component
    • diagnosisIcd

      public String diagnosisIcd()
      Returns the value of the diagnosisIcd record component.
      Returns:
      the value of the diagnosisIcd record component
    • medRxnorm

      public String medRxnorm()
      Returns the value of the medRxnorm record component.
      Returns:
      the value of the medRxnorm record component
    • treatmentModality

      public String treatmentModality()
      Returns the value of the treatmentModality record component.
      Returns:
      the value of the treatmentModality record component
    • raceId

      public String raceId()
      Returns the value of the raceId record component.
      Returns:
      the value of the raceId record component
    • ethnicityId

      public String ethnicityId()
      Returns the value of the ethnicityId record component.
      Returns:
      the value of the ethnicityId record component
    • bmi

      public Float bmi()
      Returns the value of the bmi record component.
      Returns:
      the value of the bmi record component
    • baselineHba1c

      public Float baselineHba1c()
      Returns the value of the baselineHba1c record component.
      Returns:
      the value of the baselineHba1c record component
    • diabetesType

      public String diabetesType()
      Returns the value of the diabetesType record component.
      Returns:
      the value of the diabetesType record component
    • studyArm

      public String studyArm()
      Returns the value of the studyArm record component.
      Returns:
      the value of the studyArm record component