private void init(ModelClassFactory factory) { try { this.add(SI.class, false, 1, 4, new Object[]{ getMessage() }, "Set ID"); this.add(CNE.class, true, 1, 705, new Object[]{ getMessage() }, "Access Restriction Action Code"); this.add(CWE.class, true, 1, 705, new Object[]{ getMessage() }, "Access Restriction Value"); this.add(CWE.class, false, 0, 705, new Object[]{ getMessage() }, "Access Restriction Reason"); this.add(ST.class, false, 0, 250, new Object[]{ getMessage() }, "Special Access Restriction Instructions"); this.add(DR.class, false, 1, 49, new Object[]{ getMessage() }, "Access Restriction Date Range"); } catch(HL7Exception e) { log.error("Unexpected error creating ARV - this is probably a bug in the source code generator.", e); } }
/** * Returns a count of the current number of repetitions of Access Restriction Reason (ARV-4). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getArv4_AccessRestrictionReasonReps() { return this.getReps(4); }
/** * Returns * ARV-2: "Access Restriction Action Code" - creates it if necessary */ public CNE getArv2_AccessRestrictionActionCode() { CNE retVal = this.getTypedField(2, 0); return retVal; }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new SI(getMessage()); case 1: return new CNE(getMessage()); case 2: return new CWE(getMessage()); case 3: return new CWE(getMessage()); case 4: return new ST(getMessage()); case 5: return new DR(getMessage()); default: return null; } }
/** * Creates a new ARV segment */ public ARV(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new SI(getMessage()); case 1: return new CNE(getMessage()); case 2: return new CWE(getMessage()); case 3: return new CWE(getMessage()); case 4: return new ST(getMessage()); case 5: return new DR(getMessage()); default: return null; } }
/** * Creates a new ARV segment */ public ARV(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
/** * Returns a specific repetition of * ARV-4: "Access Restriction Reason" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CWE getAccessRestrictionReason(int rep) { CWE retVal = this.getTypedField(4, rep); return retVal; }
private void init(ModelClassFactory factory) { try { this.add(SI.class, false, 1, 4, new Object[]{ getMessage() }, "Set ID"); this.add(CNE.class, true, 1, 705, new Object[]{ getMessage() }, "Access Restriction Action Code"); this.add(CWE.class, true, 1, 705, new Object[]{ getMessage() }, "Access Restriction Value"); this.add(CWE.class, false, 0, 705, new Object[]{ getMessage() }, "Access Restriction Reason"); this.add(ST.class, false, 0, 250, new Object[]{ getMessage() }, "Special Access Restriction Instructions"); this.add(DR.class, false, 1, 49, new Object[]{ getMessage() }, "Access Restriction Date Range"); } catch(HL7Exception e) { log.error("Unexpected error creating ARV - this is probably a bug in the source code generator.", e); } }
/** * Returns a count of the current number of repetitions of Special Access Restriction Instructions (ARV-5). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getSpecialAccessRestrictionInstructionsReps() { return this.getReps(5); }
/** * Returns all repetitions of Special Access Restriction Instructions (ARV-5). */ public ST[] getSpecialAccessRestrictionInstructions() { ST[] retVal = this.getTypedField(5, new ST[0]); return retVal; }
/** * Returns a count of the current number of repetitions of Special Access Restriction Instructions (ARV-5). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getArv5_SpecialAccessRestrictionInstructionsReps() { return this.getReps(5); }
/** * Returns * ARV-6: "Access Restriction Date Range" - creates it if necessary */ public DR getArv6_AccessRestrictionDateRange() { DR retVal = this.getTypedField(6, 0); return retVal; }
/** * Returns a count of the current number of repetitions of Access Restriction Reason (ARV-4). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getArv4_AccessRestrictionReasonReps() { return this.getReps(4); }
/** * Returns a specific repetition of * ARV-4: "Access Restriction Reason" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CWE getAccessRestrictionReason(int rep) { CWE retVal = this.getTypedField(4, rep); return retVal; }
/** * Returns a count of the current number of repetitions of Access Restriction Reason (ARV-4). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getAccessRestrictionReasonReps() { return this.getReps(4); }
/** * Returns * ARV-6: "Access Restriction Date Range" - creates it if necessary */ public DR getAccessRestrictionDateRange() { DR retVal = this.getTypedField(6, 0); return retVal; }
/** * Returns a count of the current number of repetitions of Special Access Restriction Instructions (ARV-5). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getSpecialAccessRestrictionInstructionsReps() { return this.getReps(5); }
/** * Returns * ARV-6: "Access Restriction Date Range" - creates it if necessary */ public DR getArv6_AccessRestrictionDateRange() { DR retVal = this.getTypedField(6, 0); return retVal; }
/** * Returns a count of the current number of repetitions of Special Access Restriction Instructions (ARV-5). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getArv5_SpecialAccessRestrictionInstructionsReps() { return this.getReps(5); }