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

public class RSP_K21 extends AbstractMessage
Adds a custom QPD segment instead of the standard one coming from v25 hapi package
See Also:
  • Constructor Details

    • RSP_K21

      public RSP_K21(ModelClassFactory factory)
      Creates a new RSP_K21 Group with custom ModelClassFactory.
    • RSP_K21

      public RSP_K21()
      Creates a new RSP_K21 Group with DefaultModelClassFactory.
  • Method Details

    • structures

      Specified by:
      structures in class AbstractMessage
    • getVersion

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

      public ca.uhn.hl7v2.model.v25.segment.MSH getMSH()
      Returns MSH (Message Header) - creates it if necessary
    • getSFT

      public ca.uhn.hl7v2.model.v25.segment.SFT getSFT()
      Returns first repetition of SFT (Software Segment) - creates it if necessary
    • getSFT

      public ca.uhn.hl7v2.model.v25.segment.SFT getSFT(int rep)
      Returns a specific repetition of SFT (Software Segment) - creates it if necessary throws HL7Exception if the repetition requested is more than one greater than the number of existing repetitions.
    • getSFTReps

      public int getSFTReps()
      Returns the number of existing repetitions of SFT
    • getSFTAll

      public List<ca.uhn.hl7v2.model.v25.segment.SFT> getSFTAll() throws HL7Exception
      Returns all repetitions of SFT
      Throws:
      HL7Exception
    • getMSA

      public ca.uhn.hl7v2.model.v25.segment.MSA getMSA()
      Returns MSA (Message Acknowledgment) - creates it if necessary
    • getERR

      public ca.uhn.hl7v2.model.v25.segment.ERR getERR()
      Returns ERR (Error) - creates it if necessary
    • getQAK

      public ca.uhn.hl7v2.model.v25.segment.QAK getQAK()
      Returns QAK (Query Acknowledgment) - creates it if necessary
    • getQPD

      public QPD getQPD()
      Returns QPD (Query Parameter Definition) - creates it if necessary
    • getQUERY_RESPONSE

      public ca.uhn.hl7v2.model.v25.group.RSP_K21_QUERY_RESPONSE getQUERY_RESPONSE()
      Returns first repetition of RSP_K21_QUERY_RESPONSE (a Group object) - creates it if necessary
    • getQUERY_RESPONSE

      public ca.uhn.hl7v2.model.v25.group.RSP_K21_QUERY_RESPONSE getQUERY_RESPONSE(int rep)
      Returns a specific repetition of RSP_K21_QUERY_RESPONSE (a Group object) - creates it if necessary throws HL7Exception if the repetition requested is more than one greater than the number of existing repetitions.
    • getQUERY_RESPONSEReps

      public int getQUERY_RESPONSEReps()
      Returns the number of existing repetitions of RSP_K21_QUERY_RESPONSE
    • getQUERY_RESPONSEAll

      public List<ca.uhn.hl7v2.model.v25.group.RSP_K21_QUERY_RESPONSE> getQUERY_RESPONSEAll() throws HL7Exception
      Returns all repetitions of RSP_K21_QUERY_RESPONSE
      Throws:
      HL7Exception
    • getDSC

      public ca.uhn.hl7v2.model.v25.segment.DSC getDSC()
      Returns DSC (Continuation Pointer) - creates it if necessary