/** * Creates a new ACK message with custom ModelClassFactory. */ public ACK(ModelClassFactory factory) { super(factory); init(factory); }
} else if ( ack instanceof ca.uhn.hl7v2.model.v26.message.ACK ) { ca.uhn.hl7v2.model.v26.message.ACK mod = (ca.uhn.hl7v2.model.v26.message.ACK) ack; mod.getMSH().getSendingApplication().getNamespaceID().setValue( APPNAME ); mod.getMSH().getSendingFacility().getNamespaceID().setValue( APPNAME ); ackMessage = mod.encode(); } else { logError( "This job entry does not support the HL7 dialect used. Found ACK class: "
/** * <p> * Returns * the first repetition of * SFT (Software Segment) - creates it if necessary * </p> * * */ public SFT getSFT() { return getTyped("SFT", SFT.class); }
/** * <p> * Returns the number of existing repetitions of SFT * </p> * */ public int getSFTReps() { return getReps("SFT"); }
/** * <p> * Returns a non-modifiable List containing all current existing repetitions of SFT. * <p> * <p> * Note that unlike {@link #getSFT()}, this method will not create any reps * if none are already present, so an empty list may be returned. * </p> * */ public java.util.List<SFT> getSFTAll() throws HL7Exception { return getAllAsList("SFT", SFT.class); }
private void init(ModelClassFactory factory) { try { this.add(MSH.class, true, false); this.add(SFT.class, false, true); this.add(UAC.class, false, false); this.add(MSA.class, true, false); this.add(ERR.class, false, true); } catch(HL7Exception e) { log.error("Unexpected error creating ACK - this is probably a bug in the source code generator.", e); } }
/** * <p> * Returns * MSH (Message Header) - creates it if necessary * </p> * * */ public MSH getMSH() { return getTyped("MSH", MSH.class); }
/** * <p> * Returns the number of existing repetitions of ERR * </p> * */ public int getERRReps() { return getReps("ERR"); }
/** * <p> * Returns a non-modifiable List containing all current existing repetitions of ERR. * <p> * <p> * Note that unlike {@link #getERR()}, this method will not create any reps * if none are already present, so an empty list may be returned. * </p> * */ public java.util.List<ERR> getERRAll() throws HL7Exception { return getAllAsList("ERR", ERR.class); }
private void init(ModelClassFactory factory) { try { this.add(MSH.class, true, false); this.add(SFT.class, false, true); this.add(UAC.class, false, false); this.add(MSA.class, true, false); this.add(ERR.class, false, true); } catch(HL7Exception e) { log.error("Unexpected error creating ACK - this is probably a bug in the source code generator.", e); } }
/** * <p> * Returns * MSA (Message Acknowledgment) - creates it if necessary * </p> * * */ public MSA getMSA() { return getTyped("MSA", MSA.class); }
/** * <p> * Returns the number of existing repetitions of SFT * </p> * */ public int getSFTReps() { return getReps("SFT"); }
/** * <p> * Returns a non-modifiable List containing all current existing repetitions of ERR. * <p> * <p> * Note that unlike {@link #getERR()}, this method will not create any reps * if none are already present, so an empty list may be returned. * </p> * */ public java.util.List<ERR> getERRAll() throws HL7Exception { return getAllAsList("ERR", ERR.class); }
/** * Creates a new ACK message with custom ModelClassFactory. */ public ACK(ModelClassFactory factory) { super(factory); init(factory); }
/** * <p> * Returns * UAC (User Authentication Credential Segment) - creates it if necessary * </p> * * */ public UAC getUAC() { return getTyped("UAC", UAC.class); }
/** * <p> * Returns the number of existing repetitions of ERR * </p> * */ public int getERRReps() { return getReps("ERR"); }
/** * <p> * Returns a non-modifiable List containing all current existing repetitions of SFT. * <p> * <p> * Note that unlike {@link #getSFT()}, this method will not create any reps * if none are already present, so an empty list may be returned. * </p> * */ public java.util.List<SFT> getSFTAll() throws HL7Exception { return getAllAsList("SFT", SFT.class); }
/** * <p> * Returns * the first repetition of * ERR (Error) - creates it if necessary * </p> * * */ public ERR getERR() { return getTyped("ERR", ERR.class); }
/** * <p> * Returns a specific repetition of * SFT (Software Segment) - creates it if necessary * </p> * * * @param 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. */ public SFT getSFT(int rep) { return getTyped("SFT", rep, SFT.class); }
/** * <p> * Returns * the first repetition of * SFT (Software Segment) - creates it if necessary * </p> * * */ public SFT getSFT() { return getTyped("SFT", SFT.class); }