Class CSR

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class CSR extends AbstractSegment

Represents an HL7 CSR message segment (Clinical Study Registration). This segment has the following fields:

  • CSR-1: Sponsor Study ID (EI)
  • CSR-2: Alternate Study ID (EI) optional
  • CSR-3: Institution Registering the Patient (CE) optional
  • CSR-4: Sponsor Patient ID (CX)
  • CSR-5: Alternate Patient ID (CX) optional
  • CSR-6: Date/Time of Patient Study Registration (TS) optional
  • CSR-7: Person Performing Study Registration (XCN) optional
  • CSR-8: Study Authorizing Provider (XCN)
  • CSR-9: Date/time Patient Study Consent Signed (TS) optional
  • CSR-10: Patient Study Eligibility Status (CE) optional
  • CSR-11: Study Randomization Date/time (TS) optional repeating
  • CSR-12: Study Randomized Arm (CE) optional repeating
  • CSR-13: Stratum for Study Randomization (CE) optional repeating
  • CSR-14: Patient Evaluability Status (CE) optional
  • CSR-15: Date/time Ended Study (TS) optional
  • CSR-16: Reason Ended Study (CE) optional
See Also:
  • Constructor Details

  • Method Details

    • getSponsorStudyID

      Returns CSR-1: "Sponsor Study ID" - creates it if necessary
    • getCsr1_SponsorStudyID

      Returns CSR-1: "Sponsor Study ID" - creates it if necessary
    • getAlternateStudyID

      Returns CSR-2: "Alternate Study ID" - creates it if necessary
    • getCsr2_AlternateStudyID

      Returns CSR-2: "Alternate Study ID" - creates it if necessary
    • getInstitutionRegisteringThePatient

      Returns CSR-3: "Institution Registering the Patient" - creates it if necessary
    • getCsr3_InstitutionRegisteringThePatient

      Returns CSR-3: "Institution Registering the Patient" - creates it if necessary
    • getSponsorPatientID

      Returns CSR-4: "Sponsor Patient ID" - creates it if necessary
    • getCsr4_SponsorPatientID

      Returns CSR-4: "Sponsor Patient ID" - creates it if necessary
    • getAlternatePatientID

      Returns CSR-5: "Alternate Patient ID" - creates it if necessary
    • getCsr5_AlternatePatientID

      Returns CSR-5: "Alternate Patient ID" - creates it if necessary
    • getDateTimeOfPatientStudyRegistration

      Returns CSR-6: "Date/Time of Patient Study Registration" - creates it if necessary
    • getCsr6_DateTimeOfPatientStudyRegistration

      Returns CSR-6: "Date/Time of Patient Study Registration" - creates it if necessary
    • getPersonPerformingStudyRegistration

      Returns CSR-7: "Person Performing Study Registration" - creates it if necessary
    • getCsr7_PersonPerformingStudyRegistration

      Returns CSR-7: "Person Performing Study Registration" - creates it if necessary
    • getStudyAuthorizingProvider

      Returns CSR-8: "Study Authorizing Provider" - creates it if necessary
    • getCsr8_StudyAuthorizingProvider

      Returns CSR-8: "Study Authorizing Provider" - creates it if necessary
    • getDateTimePatientStudyConsentSigned

      Returns CSR-9: "Date/time Patient Study Consent Signed" - creates it if necessary
    • getCsr9_DateTimePatientStudyConsentSigned

      Returns CSR-9: "Date/time Patient Study Consent Signed" - creates it if necessary
    • getPatientStudyEligibilityStatus

      Returns CSR-10: "Patient Study Eligibility Status" - creates it if necessary
    • getCsr10_PatientStudyEligibilityStatus

      Returns CSR-10: "Patient Study Eligibility Status" - creates it if necessary
    • getStudyRandomizationDateTime

      Returns all repetitions of Study Randomization Date/time (CSR-11).
    • getCsr11_StudyRandomizationDateTime

      Returns all repetitions of Study Randomization Date/time (CSR-11).
    • getStudyRandomizationDateTimeReps

      Returns a count of the current number of repetitions of Study Randomization Date/time (CSR-11). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getStudyRandomizationDateTime

      Returns a specific repetition of CSR-11: "Study Randomization Date/time" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getCsr11_StudyRandomizationDateTime

      Returns a specific repetition of CSR-11: "Study Randomization Date/time" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getCsr11_StudyRandomizationDateTimeReps

      Returns a count of the current number of repetitions of Study Randomization Date/time (CSR-11). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertStudyRandomizationDateTime

      Inserts a repetition of CSR-11: "Study Randomization Date/time" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • insertCsr11_StudyRandomizationDateTime

      Inserts a repetition of CSR-11: "Study Randomization Date/time" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • removeStudyRandomizationDateTime

      Removes a repetition of CSR-11: "Study Randomization Date/time" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • removeCsr11_StudyRandomizationDateTime

      Removes a repetition of CSR-11: "Study Randomization Date/time" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • getStudyRandomizedArm

      Returns all repetitions of Study Randomized Arm (CSR-12).
    • getCsr12_StudyRandomizedArm

      Returns all repetitions of Study Randomized Arm (CSR-12).
    • getStudyRandomizedArmReps

      Returns a count of the current number of repetitions of Study Randomized Arm (CSR-12). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getStudyRandomizedArm

      public CE getStudyRandomizedArm(int rep)
      Returns a specific repetition of CSR-12: "Study Randomized Arm" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getCsr12_StudyRandomizedArm

      public CE getCsr12_StudyRandomizedArm(int rep)
      Returns a specific repetition of CSR-12: "Study Randomized Arm" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getCsr12_StudyRandomizedArmReps

      Returns a count of the current number of repetitions of Study Randomized Arm (CSR-12). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertStudyRandomizedArm

      public CE insertStudyRandomizedArm(int rep) throws HL7Exception
      Inserts a repetition of CSR-12: "Study Randomized Arm" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • insertCsr12_StudyRandomizedArm

      Inserts a repetition of CSR-12: "Study Randomized Arm" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • removeStudyRandomizedArm

      public CE removeStudyRandomizedArm(int rep) throws HL7Exception
      Removes a repetition of CSR-12: "Study Randomized Arm" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • removeCsr12_StudyRandomizedArm

      Removes a repetition of CSR-12: "Study Randomized Arm" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • getStratumForStudyRandomization

      Returns all repetitions of Stratum for Study Randomization (CSR-13).
    • getCsr13_StratumForStudyRandomization

      Returns all repetitions of Stratum for Study Randomization (CSR-13).
    • getStratumForStudyRandomizationReps

      Returns a count of the current number of repetitions of Stratum for Study Randomization (CSR-13). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getStratumForStudyRandomization

      Returns a specific repetition of CSR-13: "Stratum for Study Randomization" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getCsr13_StratumForStudyRandomization

      Returns a specific repetition of CSR-13: "Stratum for Study Randomization" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getCsr13_StratumForStudyRandomizationReps

      Returns a count of the current number of repetitions of Stratum for Study Randomization (CSR-13). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertStratumForStudyRandomization

      Inserts a repetition of CSR-13: "Stratum for Study Randomization" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • insertCsr13_StratumForStudyRandomization

      Inserts a repetition of CSR-13: "Stratum for Study Randomization" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • removeStratumForStudyRandomization

      Removes a repetition of CSR-13: "Stratum for Study Randomization" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • removeCsr13_StratumForStudyRandomization

      Removes a repetition of CSR-13: "Stratum for Study Randomization" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • getPatientEvaluabilityStatus

      Returns CSR-14: "Patient Evaluability Status" - creates it if necessary
    • getCsr14_PatientEvaluabilityStatus

      Returns CSR-14: "Patient Evaluability Status" - creates it if necessary
    • getDateTimeEndedStudy

      Returns CSR-15: "Date/time Ended Study" - creates it if necessary
    • getCsr15_DateTimeEndedStudy

      Returns CSR-15: "Date/time Ended Study" - creates it if necessary
    • getReasonEndedStudy

      Returns CSR-16: "Reason Ended Study" - creates it if necessary
    • getCsr16_ReasonEndedStudy

      Returns CSR-16: "Reason Ended Study" - creates it if necessary
    • createNewTypeWithoutReflection

      protected Type createNewTypeWithoutReflection(int field)
      Overrides:
      createNewTypeWithoutReflection in class AbstractSegment