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