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