Class RQA_I11

All Implemented Interfaces:
Group, Message, Structure, Visitable, Serializable

public class RQA_I11 extends AbstractMessage

Represents a RQA_I11 message structure (see chapter ?). This structure contains the following elements:

  • 1: MSH (Message header segment)
  • 2: RF1 (Referral Information Segment) optional
  • 3: RQA_I11_AUTHORIZATION (a Group object) optional
  • 4: RQA_I11_PROVIDER (a Group object) repeating
  • 5: PID (Patient Identification)
  • 6: NK1 (Next of kin) optional repeating
  • 7: RQA_I11_GUARANTOR_INSURANCE (a Group object) optional
  • 8: ACC (Accident) optional
  • 9: DG1 (Diagnosis) optional repeating
  • 10: DRG (Diagnosis Related Group) optional repeating
  • 11: AL1 (Patient allergy information) optional repeating
  • 12: RQA_I11_PROCEDURE (a Group object) optional repeating
  • 13: RQA_I11_RESULTS (a Group object) optional repeating
  • 14: RQA_I11_VISIT (a Group object) optional
  • 15: NTE (Notes and comments segment) optional repeating
See Also:
  • Constructor Details

    • RQA_I11

      public RQA_I11()
      Creates a new RQA_I11 message with DefaultModelClassFactory.
    • RQA_I11

      public RQA_I11(ModelClassFactory factory)
      Creates a new RQA_I11 message with custom ModelClassFactory.
  • Method Details

    • getVersion

      public String getVersion()
      Returns "2.3"
      Specified by:
      getVersion in interface Message
      Overrides:
      getVersion in class AbstractMessage
    • getMSH

      public MSH getMSH()

      Returns MSH (Message header segment) - creates it if necessary

    • getRF1

      public RF1 getRF1()

      Returns RF1 (Referral Information Segment) - creates it if necessary

    • getAUTHORIZATION

      Returns AUTHORIZATION (a Group object) - creates it if necessary

    • getPROVIDER

      Returns the first repetition of PROVIDER (a Group object) - creates it if necessary

    • getPROVIDER

      public RQA_I11_PROVIDER getPROVIDER(int rep)

      Returns a specific repetition of PROVIDER (a Group object) - creates it if necessary

      Parameters:
      rep - The repetition index (0-indexed, i.e. the first repetition is at index 0)
      Throws:
      HL7Exception - if the repetition requested is more than one greater than the number of existing repetitions.
    • getPROVIDERReps

      public int getPROVIDERReps()

      Returns the number of existing repetitions of PROVIDER

    • getPROVIDERAll

      Returns a non-modifiable List containing all current existing repetitions of PROVIDER.

      Note that unlike getPROVIDER(), this method will not create any reps if none are already present, so an empty list may be returned.

      Throws:
      HL7Exception
    • insertPROVIDER

      public void insertPROVIDER(RQA_I11_PROVIDER structure, int rep) throws HL7Exception

      Inserts a specific repetition of PROVIDER (a Group object)

      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • insertPROVIDER

      public RQA_I11_PROVIDER insertPROVIDER(int rep) throws HL7Exception

      Inserts a specific repetition of PROVIDER (a Group object)

      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • removePROVIDER

      public RQA_I11_PROVIDER removePROVIDER(int rep) throws HL7Exception

      Removes a specific repetition of PROVIDER (a Group object)

      Throws:
      HL7Exception
      See Also:
    • getPID

      public PID getPID()

      Returns PID (Patient Identification) - creates it if necessary

    • getNK1

      public NK1 getNK1()

      Returns the first repetition of NK1 (Next of kin) - creates it if necessary

    • getNK1

      public NK1 getNK1(int rep)

      Returns a specific repetition of NK1 (Next of kin) - creates it if necessary

      Parameters:
      rep - The repetition index (0-indexed, i.e. the first repetition is at index 0)
      Throws:
      HL7Exception - if the repetition requested is more than one greater than the number of existing repetitions.
    • getNK1Reps

      public int getNK1Reps()

      Returns the number of existing repetitions of NK1

    • getNK1All

      public List<NK1> getNK1All() throws HL7Exception

      Returns a non-modifiable List containing all current existing repetitions of NK1.

      Note that unlike getNK1(), this method will not create any reps if none are already present, so an empty list may be returned.

      Throws:
      HL7Exception
    • insertNK1

      public void insertNK1(NK1 structure, int rep) throws HL7Exception

      Inserts a specific repetition of NK1 (Next of kin)

      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • insertNK1

      public NK1 insertNK1(int rep) throws HL7Exception

      Inserts a specific repetition of NK1 (Next of kin)

      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • removeNK1

      public NK1 removeNK1(int rep) throws HL7Exception

      Removes a specific repetition of NK1 (Next of kin)

      Throws:
      HL7Exception
      See Also:
    • getGUARANTOR_INSURANCE

      Returns GUARANTOR_INSURANCE (a Group object) - creates it if necessary

    • getACC

      public ACC getACC()

      Returns ACC (Accident) - creates it if necessary

    • getDG1

      public DG1 getDG1()

      Returns the first repetition of DG1 (Diagnosis) - creates it if necessary

    • getDG1

      public DG1 getDG1(int rep)

      Returns a specific repetition of DG1 (Diagnosis) - creates it if necessary

      Parameters:
      rep - The repetition index (0-indexed, i.e. the first repetition is at index 0)
      Throws:
      HL7Exception - if the repetition requested is more than one greater than the number of existing repetitions.
    • getDG1Reps

      public int getDG1Reps()

      Returns the number of existing repetitions of DG1

    • getDG1All

      public List<DG1> getDG1All() throws HL7Exception

      Returns a non-modifiable List containing all current existing repetitions of DG1.

      Note that unlike getDG1(), this method will not create any reps if none are already present, so an empty list may be returned.

      Throws:
      HL7Exception
    • insertDG1

      public void insertDG1(DG1 structure, int rep) throws HL7Exception

      Inserts a specific repetition of DG1 (Diagnosis)

      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • insertDG1

      public DG1 insertDG1(int rep) throws HL7Exception

      Inserts a specific repetition of DG1 (Diagnosis)

      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • removeDG1

      public DG1 removeDG1(int rep) throws HL7Exception

      Removes a specific repetition of DG1 (Diagnosis)

      Throws:
      HL7Exception
      See Also:
    • getDRG

      public DRG getDRG()

      Returns the first repetition of DRG (Diagnosis Related Group) - creates it if necessary

    • getDRG

      public DRG getDRG(int rep)

      Returns a specific repetition of DRG (Diagnosis Related Group) - creates it if necessary

      Parameters:
      rep - The repetition index (0-indexed, i.e. the first repetition is at index 0)
      Throws:
      HL7Exception - if the repetition requested is more than one greater than the number of existing repetitions.
    • getDRGReps

      public int getDRGReps()

      Returns the number of existing repetitions of DRG

    • getDRGAll

      public List<DRG> getDRGAll() throws HL7Exception

      Returns a non-modifiable List containing all current existing repetitions of DRG.

      Note that unlike getDRG(), this method will not create any reps if none are already present, so an empty list may be returned.

      Throws:
      HL7Exception
    • insertDRG

      public void insertDRG(DRG structure, int rep) throws HL7Exception

      Inserts a specific repetition of DRG (Diagnosis Related Group)

      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • insertDRG

      public DRG insertDRG(int rep) throws HL7Exception

      Inserts a specific repetition of DRG (Diagnosis Related Group)

      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • removeDRG

      public DRG removeDRG(int rep) throws HL7Exception

      Removes a specific repetition of DRG (Diagnosis Related Group)

      Throws:
      HL7Exception
      See Also:
    • getAL1

      public AL1 getAL1()

      Returns the first repetition of AL1 (Patient allergy information) - creates it if necessary

    • getAL1

      public AL1 getAL1(int rep)

      Returns a specific repetition of AL1 (Patient allergy information) - creates it if necessary

      Parameters:
      rep - The repetition index (0-indexed, i.e. the first repetition is at index 0)
      Throws:
      HL7Exception - if the repetition requested is more than one greater than the number of existing repetitions.
    • getAL1Reps

      public int getAL1Reps()

      Returns the number of existing repetitions of AL1

    • getAL1All

      public List<AL1> getAL1All() throws HL7Exception

      Returns a non-modifiable List containing all current existing repetitions of AL1.

      Note that unlike getAL1(), this method will not create any reps if none are already present, so an empty list may be returned.

      Throws:
      HL7Exception
    • insertAL1

      public void insertAL1(AL1 structure, int rep) throws HL7Exception

      Inserts a specific repetition of AL1 (Patient allergy information)

      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • insertAL1

      public AL1 insertAL1(int rep) throws HL7Exception

      Inserts a specific repetition of AL1 (Patient allergy information)

      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • removeAL1

      public AL1 removeAL1(int rep) throws HL7Exception

      Removes a specific repetition of AL1 (Patient allergy information)

      Throws:
      HL7Exception
      See Also:
    • getPROCEDURE

      Returns the first repetition of PROCEDURE (a Group object) - creates it if necessary

    • getPROCEDURE

      public RQA_I11_PROCEDURE getPROCEDURE(int rep)

      Returns a specific repetition of PROCEDURE (a Group object) - creates it if necessary

      Parameters:
      rep - The repetition index (0-indexed, i.e. the first repetition is at index 0)
      Throws:
      HL7Exception - if the repetition requested is more than one greater than the number of existing repetitions.
    • getPROCEDUREReps

      public int getPROCEDUREReps()

      Returns the number of existing repetitions of PROCEDURE

    • getPROCEDUREAll

      Returns a non-modifiable List containing all current existing repetitions of PROCEDURE.

      Note that unlike getPROCEDURE(), this method will not create any reps if none are already present, so an empty list may be returned.

      Throws:
      HL7Exception
    • insertPROCEDURE

      public void insertPROCEDURE(RQA_I11_PROCEDURE structure, int rep) throws HL7Exception

      Inserts a specific repetition of PROCEDURE (a Group object)

      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • insertPROCEDURE

      Inserts a specific repetition of PROCEDURE (a Group object)

      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • removePROCEDURE

      Removes a specific repetition of PROCEDURE (a Group object)

      Throws:
      HL7Exception
      See Also:
    • getRESULTS

      Returns the first repetition of RESULTS (a Group object) - creates it if necessary

    • getRESULTS

      public RQA_I11_RESULTS getRESULTS(int rep)

      Returns a specific repetition of RESULTS (a Group object) - creates it if necessary

      Parameters:
      rep - The repetition index (0-indexed, i.e. the first repetition is at index 0)
      Throws:
      HL7Exception - if the repetition requested is more than one greater than the number of existing repetitions.
    • getRESULTSReps

      public int getRESULTSReps()

      Returns the number of existing repetitions of RESULTS

    • getRESULTSAll

      Returns a non-modifiable List containing all current existing repetitions of RESULTS.

      Note that unlike getRESULTS(), this method will not create any reps if none are already present, so an empty list may be returned.

      Throws:
      HL7Exception
    • insertRESULTS

      public void insertRESULTS(RQA_I11_RESULTS structure, int rep) throws HL7Exception

      Inserts a specific repetition of RESULTS (a Group object)

      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • insertRESULTS

      public RQA_I11_RESULTS insertRESULTS(int rep) throws HL7Exception

      Inserts a specific repetition of RESULTS (a Group object)

      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • removeRESULTS

      public RQA_I11_RESULTS removeRESULTS(int rep) throws HL7Exception

      Removes a specific repetition of RESULTS (a Group object)

      Throws:
      HL7Exception
      See Also:
    • getVISIT

      Returns VISIT (a Group object) - creates it if necessary

    • getNTE

      public NTE getNTE()

      Returns the first repetition of NTE (Notes and comments segment) - creates it if necessary

    • getNTE

      public NTE getNTE(int rep)

      Returns a specific repetition of NTE (Notes and comments segment) - creates it if necessary

      Parameters:
      rep - The repetition index (0-indexed, i.e. the first repetition is at index 0)
      Throws:
      HL7Exception - if the repetition requested is more than one greater than the number of existing repetitions.
    • getNTEReps

      public int getNTEReps()

      Returns the number of existing repetitions of NTE

    • getNTEAll

      public List<NTE> getNTEAll() throws HL7Exception

      Returns a non-modifiable List containing all current existing repetitions of NTE.

      Note that unlike getNTE(), this method will not create any reps if none are already present, so an empty list may be returned.

      Throws:
      HL7Exception
    • insertNTE

      public void insertNTE(NTE structure, int rep) throws HL7Exception

      Inserts a specific repetition of NTE (Notes and comments segment)

      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • insertNTE

      public NTE insertNTE(int rep) throws HL7Exception

      Inserts a specific repetition of NTE (Notes and comments segment)

      Throws:
      HL7Exception
      See Also:
      • AbstractGroup#insertRepetition(Structure, int)
    • removeNTE

      public NTE removeNTE(int rep) throws HL7Exception

      Removes a specific repetition of NTE (Notes and comments segment)

      Throws:
      HL7Exception
      See Also: