/** * <p> * Returns a non-modifiable List containing all current existing repetitions of DB1. * <p> * <p> * Note that unlike {@link #getDB1()}, this method will not create any reps * if none are already present, so an empty list may be returned. * </p> */ public java.util.List<DB1> getDB1All() throws HL7Exception { return getAllAsList("DB1", DB1.class); }
/** * Returns the number of existing repetitions of GT1 */ public int getGT1Reps() { return getReps("GT1"); }
/** * Returns * ACC (Accident) - creates it if necessary */ public ACC getACC() { ACC retVal = getTyped("ACC", ACC.class); return retVal; }
/** * Creates a new BAR_P01_VISIT group */ public BAR_P01_VISIT(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
private void init(ModelClassFactory factory) { try { this.add(PV1.class, false, false, false); this.add(PV2.class, false, false, false); this.add(ROL.class, false, true, false); this.add(DB1.class, false, true, false); this.add(OBX.class, false, true, false); this.add(AL1.class, false, true, false); this.add(DG1.class, false, true, false); this.add(DRG.class, false, false, false); this.add(BAR_P01_PROCEDURE.class, false, true, false); this.add(GT1.class, false, true, false); this.add(NK1.class, false, true, false); this.add(BAR_P01_INSURANCE.class, false, true, false); this.add(ACC.class, false, false, false); this.add(UB1.class, false, false, false); this.add(UB2.class, false, false, false); } catch(HL7Exception e) { log.error("Unexpected error creating BAR_P01_VISIT - this is probably a bug in the source code generator.", e); } }
/** * Creates a new BAR_P01_VISIT group */ public BAR_P01_VISIT(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
private void init(ModelClassFactory factory) { try { this.add(PV1.class, false, false, false); this.add(PV2.class, false, false, false); this.add(ROL.class, false, true, false); this.add(DB1.class, false, true, false); this.add(OBX.class, false, true, false); this.add(AL1.class, false, true, false); this.add(DG1.class, false, true, false); this.add(DRG.class, false, false, false); this.add(BAR_P01_PROCEDURE.class, false, true, false); this.add(GT1.class, false, true, false); this.add(NK1.class, false, true, false); this.add(BAR_P01_INSURANCE.class, false, true, false); this.add(ACC.class, false, false, false); this.add(UB1.class, false, false, false); this.add(UB2.class, false, false, false); } catch(HL7Exception e) { log.error("Unexpected error creating BAR_P01_VISIT - this is probably a bug in the source code generator.", e); } }
/** * Returns a specific repetition of * ROL (Role) - creates it if necessary * * @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 ROL getROL(int rep) { ROL retVal = getTyped("ROL", rep, ROL.class); return retVal; }
/** * <p> * Returns a non-modifiable List containing all current existing repetitions of OBX. * <p> * <p> * Note that unlike {@link #getOBX()}, this method will not create any reps * if none are already present, so an empty list may be returned. * </p> */ public java.util.List<OBX> getOBXAll() throws HL7Exception { return getAllAsList("OBX", OBX.class); }
/** * Returns the number of existing repetitions of NK1 */ public int getNK1Reps() { return getReps("NK1"); }
/** * Returns * the first repetition of * NK1 (Next of Kin / Associated Parties) - creates it if necessary */ public NK1 getNK1() { NK1 retVal = getTyped("NK1", NK1.class); return retVal; }
/** * <p> * Returns a non-modifiable List containing all current existing repetitions of AL1. * <p> * <p> * Note that unlike {@link #getAL1()}, this method will not create any reps * if none are already present, so an empty list may be returned. * </p> */ public java.util.List<AL1> getAL1All() throws HL7Exception { return getAllAsList("AL1", AL1.class); }
/** * Returns the number of existing repetitions of OBX */ public int getOBXReps() { return getReps("OBX"); }
/** * Returns * PV1 (Patient Visit) - creates it if necessary */ public PV1 getPV1() { PV1 retVal = getTyped("PV1", PV1.class); return retVal; }
/** * <p> * Returns a non-modifiable List containing all current existing repetitions of NK1. * <p> * <p> * Note that unlike {@link #getNK1()}, this method will not create any reps * if none are already present, so an empty list may be returned. * </p> */ public java.util.List<NK1> getNK1All() throws HL7Exception { return getAllAsList("NK1", NK1.class); }
/** * Returns the number of existing repetitions of NK1 */ public int getNK1Reps() { return getReps("NK1"); }
/** * Returns a specific repetition of * OBX (Observation/Result) - creates it if necessary * * @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 OBX getOBX(int rep) { OBX retVal = getTyped("OBX", rep, OBX.class); return retVal; }
/** * <p> * Returns a non-modifiable List containing all current existing repetitions of DB1. * <p> * <p> * Note that unlike {@link #getDB1()}, this method will not create any reps * if none are already present, so an empty list may be returned. * </p> */ public java.util.List<DB1> getDB1All() throws HL7Exception { return getAllAsList("DB1", DB1.class); }
/** * Returns the number of existing repetitions of ROL */ public int getROLReps() { return getReps("ROL"); }
/** * Returns a specific repetition of * GT1 (Guarantor) - creates it if necessary * * @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 GT1 getGT1(int rep) { GT1 retVal = getTyped("GT1", rep, GT1.class); return retVal; }