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