Class CM0

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class CM0 extends AbstractSegment

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

  • CM0-1: Set ID - CM0 (SI) optional
  • CM0-2: Sponsor Study ID (EI)
  • CM0-3: Alternate Study ID (EI) optional repeating
  • CM0-4: Title of Study (ST)
  • CM0-5: Chairman of Study (XCN) optional repeating
  • CM0-6: Last IRB Approval Date (DT) optional
  • CM0-7: Total Accrual to Date (NM) optional
  • CM0-8: Last Accrual Date (DT) optional
  • CM0-9: Contact for Study (XCN) optional repeating
  • CM0-10: Contact's Telephone Number (XTN) optional
  • CM0-11: Contact's Address (XAD) optional repeating
See Also:
  • Constructor Details

  • Method Details

    • getSetIDCM0

      public SI getSetIDCM0()
      Returns CM0-1: "Set ID - CM0" - creates it if necessary
    • getCm01_SetIDCM0

      public SI getCm01_SetIDCM0()
      Returns CM0-1: "Set ID - CM0" - creates it if necessary
    • getSponsorStudyID

      Returns CM0-2: "Sponsor Study ID" - creates it if necessary
    • getCm02_SponsorStudyID

      Returns CM0-2: "Sponsor Study ID" - creates it if necessary
    • getAlternateStudyID

      public EI[] getAlternateStudyID()
      Returns all repetitions of Alternate Study ID (CM0-3).
    • getCm03_AlternateStudyID

      Returns all repetitions of Alternate Study ID (CM0-3).
    • getAlternateStudyIDReps

      Returns a count of the current number of repetitions of Alternate Study ID (CM0-3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getAlternateStudyID

      public EI getAlternateStudyID(int rep)
      Returns a specific repetition of CM0-3: "Alternate Study ID" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getCm03_AlternateStudyID

      public EI getCm03_AlternateStudyID(int rep)
      Returns a specific repetition of CM0-3: "Alternate Study ID" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getCm03_AlternateStudyIDReps

      Returns a count of the current number of repetitions of Alternate Study ID (CM0-3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertAlternateStudyID

      public EI insertAlternateStudyID(int rep) throws HL7Exception
      Inserts a repetition of CM0-3: "Alternate Study ID" 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)
    • insertCm03_AlternateStudyID

      public EI insertCm03_AlternateStudyID(int rep) throws HL7Exception
      Inserts a repetition of CM0-3: "Alternate Study ID" 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)
    • removeAlternateStudyID

      public EI removeAlternateStudyID(int rep) throws HL7Exception
      Removes a repetition of CM0-3: "Alternate Study ID" 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)
    • removeCm03_AlternateStudyID

      public EI removeCm03_AlternateStudyID(int rep) throws HL7Exception
      Removes a repetition of CM0-3: "Alternate Study ID" 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)
    • getTitleOfStudy

      public ST getTitleOfStudy()
      Returns CM0-4: "Title of Study" - creates it if necessary
    • getCm04_TitleOfStudy

      Returns CM0-4: "Title of Study" - creates it if necessary
    • getChairmanOfStudy

      public XCN[] getChairmanOfStudy()
      Returns all repetitions of Chairman of Study (CM0-5).
    • getCm05_ChairmanOfStudy

      Returns all repetitions of Chairman of Study (CM0-5).
    • getChairmanOfStudyReps

      public int getChairmanOfStudyReps()
      Returns a count of the current number of repetitions of Chairman of Study (CM0-5). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getChairmanOfStudy

      public XCN getChairmanOfStudy(int rep)
      Returns a specific repetition of CM0-5: "Chairman of Study" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getCm05_ChairmanOfStudy

      public XCN getCm05_ChairmanOfStudy(int rep)
      Returns a specific repetition of CM0-5: "Chairman of Study" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getCm05_ChairmanOfStudyReps

      Returns a count of the current number of repetitions of Chairman of Study (CM0-5). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertChairmanOfStudy

      public XCN insertChairmanOfStudy(int rep) throws HL7Exception
      Inserts a repetition of CM0-5: "Chairman of Study" 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)
    • insertCm05_ChairmanOfStudy

      public XCN insertCm05_ChairmanOfStudy(int rep) throws HL7Exception
      Inserts a repetition of CM0-5: "Chairman of Study" 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)
    • removeChairmanOfStudy

      public XCN removeChairmanOfStudy(int rep) throws HL7Exception
      Removes a repetition of CM0-5: "Chairman of Study" 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)
    • removeCm05_ChairmanOfStudy

      public XCN removeCm05_ChairmanOfStudy(int rep) throws HL7Exception
      Removes a repetition of CM0-5: "Chairman of Study" 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)
    • getLastIRBApprovalDate

      Returns CM0-6: "Last IRB Approval Date" - creates it if necessary
    • getCm06_LastIRBApprovalDate

      Returns CM0-6: "Last IRB Approval Date" - creates it if necessary
    • getTotalAccrualToDate

      Returns CM0-7: "Total Accrual to Date" - creates it if necessary
    • getCm07_TotalAccrualToDate

      Returns CM0-7: "Total Accrual to Date" - creates it if necessary
    • getLastAccrualDate

      Returns CM0-8: "Last Accrual Date" - creates it if necessary
    • getCm08_LastAccrualDate

      Returns CM0-8: "Last Accrual Date" - creates it if necessary
    • getContactForStudy

      public XCN[] getContactForStudy()
      Returns all repetitions of Contact for Study (CM0-9).
    • getCm09_ContactForStudy

      Returns all repetitions of Contact for Study (CM0-9).
    • getContactForStudyReps

      public int getContactForStudyReps()
      Returns a count of the current number of repetitions of Contact for Study (CM0-9). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getContactForStudy

      public XCN getContactForStudy(int rep)
      Returns a specific repetition of CM0-9: "Contact for Study" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getCm09_ContactForStudy

      public XCN getCm09_ContactForStudy(int rep)
      Returns a specific repetition of CM0-9: "Contact for Study" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getCm09_ContactForStudyReps

      Returns a count of the current number of repetitions of Contact for Study (CM0-9). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertContactForStudy

      public XCN insertContactForStudy(int rep) throws HL7Exception
      Inserts a repetition of CM0-9: "Contact for Study" 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)
    • insertCm09_ContactForStudy

      public XCN insertCm09_ContactForStudy(int rep) throws HL7Exception
      Inserts a repetition of CM0-9: "Contact for Study" 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)
    • removeContactForStudy

      public XCN removeContactForStudy(int rep) throws HL7Exception
      Removes a repetition of CM0-9: "Contact for Study" 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)
    • removeCm09_ContactForStudy

      public XCN removeCm09_ContactForStudy(int rep) throws HL7Exception
      Removes a repetition of CM0-9: "Contact for Study" 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)
    • getContactSTelephoneNumber

      Returns CM0-10: "Contact's Telephone Number" - creates it if necessary
    • getCm010_ContactSTelephoneNumber

      Returns CM0-10: "Contact's Telephone Number" - creates it if necessary
    • getContactSAddress

      public XAD[] getContactSAddress()
      Returns all repetitions of Contact's Address (CM0-11).
    • getCm011_ContactSAddress

      Returns all repetitions of Contact's Address (CM0-11).
    • getContactSAddressReps

      public int getContactSAddressReps()
      Returns a count of the current number of repetitions of Contact's Address (CM0-11). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getContactSAddress

      public XAD getContactSAddress(int rep)
      Returns a specific repetition of CM0-11: "Contact's Address" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getCm011_ContactSAddress

      public XAD getCm011_ContactSAddress(int rep)
      Returns a specific repetition of CM0-11: "Contact's Address" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getCm011_ContactSAddressReps

      Returns a count of the current number of repetitions of Contact's Address (CM0-11). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertContactSAddress

      public XAD insertContactSAddress(int rep) throws HL7Exception
      Inserts a repetition of CM0-11: "Contact's Address" 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)
    • insertCm011_ContactSAddress

      public XAD insertCm011_ContactSAddress(int rep) throws HL7Exception
      Inserts a repetition of CM0-11: "Contact's Address" 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)
    • removeContactSAddress

      public XAD removeContactSAddress(int rep) throws HL7Exception
      Removes a repetition of CM0-11: "Contact's Address" 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)
    • removeCm011_ContactSAddress

      public XAD removeCm011_ContactSAddress(int rep) throws HL7Exception
      Removes a repetition of CM0-11: "Contact's Address" 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)
    • createNewTypeWithoutReflection

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