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