/** * <p> * Returns the number of existing repetitions of PATIENT * </p> * */ public int getPATIENTReps() { return getReps("PATIENT"); }
/** * <p> * Returns * MSH (Message Header) - creates it if necessary * </p> * * */ public MSH getMSH() { return getTyped("MSH", MSH.class); }
/** * Creates a new ADT_A39 message with custom ModelClassFactory. */ public ADT_A39(ModelClassFactory factory) { super(factory); init(factory); }
private void init(ModelClassFactory factory) { try { this.add(MSH.class, true, false); this.add(EVN.class, true, false); this.add(ADT_A39_PATIENT.class, true, true); } catch(HL7Exception e) { log.error("Unexpected error creating ADT_A39 - this is probably a bug in the source code generator.", e); } }
/** * <p> * Returns a non-modifiable List containing all current existing repetitions of PATIENT. * <p> * <p> * Note that unlike {@link #getPATIENT()}, this method will not create any reps * if none are already present, so an empty list may be returned. * </p> * */ public java.util.List<ADT_A39_PATIENT> getPATIENTAll() throws HL7Exception { return getAllAsList("PATIENT", ADT_A39_PATIENT.class); }
private void init(ModelClassFactory factory) { try { this.add(MSH.class, true, false); this.add(EVN.class, true, false); this.add(ADT_A39_PATIENT.class, true, true); } catch(HL7Exception e) { log.error("Unexpected error creating ADT_A39 - this is probably a bug in the source code generator.", e); } }
/** * <p> * Returns a non-modifiable List containing all current existing repetitions of PATIENT. * <p> * <p> * Note that unlike {@link #getPATIENT()}, this method will not create any reps * if none are already present, so an empty list may be returned. * </p> * */ public java.util.List<ADT_A39_PATIENT> getPATIENTAll() throws HL7Exception { return getAllAsList("PATIENT", ADT_A39_PATIENT.class); }
/** * <p> * Returns * EVN (Event Type) - creates it if necessary * </p> * * */ public EVN getEVN() { return getTyped("EVN", EVN.class); }
/** * Creates a new ADT_A39 message with custom ModelClassFactory. */ public ADT_A39(ModelClassFactory factory) { super(factory); init(factory); }
/** * <p> * Returns the number of existing repetitions of PATIENT * </p> * */ public int getPATIENTReps() { return getReps("PATIENT"); }
/** * <p> * Returns * the first repetition of * PATIENT (a Group object) - creates it if necessary * </p> * * */ public ADT_A39_PATIENT getPATIENT() { return getTyped("PATIENT", ADT_A39_PATIENT.class); }
/** * <p> * Returns * EVN (Event Type) - creates it if necessary * </p> * * */ public EVN getEVN() { return getTyped("EVN", EVN.class); }
/** * <p> * Returns * MSH (Message Header) - creates it if necessary * </p> * * */ public MSH getMSH() { return getTyped("MSH", MSH.class); }
/** * <p> * Returns * the first repetition of * PATIENT (a Group object) - creates it if necessary * </p> * * */ public ADT_A39_PATIENT getPATIENT() { return getTyped("PATIENT", ADT_A39_PATIENT.class); }
/** * <p> * Returns a specific repetition of * PATIENT (a Group object) - 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 ADT_A39_PATIENT getPATIENT(int rep) { return getTyped("PATIENT", rep, ADT_A39_PATIENT.class); }
/** * <p> * Returns a specific repetition of * PATIENT (a Group object) - 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 ADT_A39_PATIENT getPATIENT(int rep) { return getTyped("PATIENT", rep, ADT_A39_PATIENT.class); }