private void init(ModelClassFactory factory) { try { this.add(SI.class, true, 1, 60, new Object[]{ getMessage() }, "Set ID _ AFF"); this.add(XON.class, true, 1, 250, new Object[]{ getMessage() }, "Professional Organization"); this.add(XAD.class, false, 1, 250, new Object[]{ getMessage() }, "Professional Organization Address"); this.add(DR.class, false, 0, 52, new Object[]{ getMessage() }, "Professional Organization Affiliation Date Range"); this.add(ST.class, false, 1, 60, new Object[]{ getMessage() }, "Professional Affiliation Additional Information"); } catch(HL7Exception e) { log.error("Unexpected error creating AFF - this is probably a bug in the source code generator.", e); } }
/** * Returns a count of the current number of repetitions of Professional Organization Affiliation Date Range (AFF-4). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getAff4_ProfessionalOrganizationAffiliationDateRangeReps() { return this.getReps(4); }
/** * Returns * AFF-1: "Set ID _ AFF" - creates it if necessary */ public SI getSetIDAFF() { SI retVal = this.getTypedField(1, 0); return retVal; }
/** * Creates a new AFF segment */ public AFF(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 XON(getMessage()); case 2: return new XAD(getMessage()); case 3: return new DR(getMessage()); case 4: return new ST(getMessage()); default: return null; } }
/** * Creates a new AFF segment */ public AFF(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 XON(getMessage()); case 2: return new XAD(getMessage()); case 3: return new DR(getMessage()); case 4: return new ST(getMessage()); default: return null; } }
/** * Returns a specific repetition of * AFF-4: "Professional Organization Affiliation Date Range" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public DR getProfessionalOrganizationAffiliationDateRange(int rep) { DR retVal = this.getTypedField(4, rep); return retVal; }
private void init(ModelClassFactory factory) { try { this.add(SI.class, true, 1, 60, new Object[]{ getMessage() }, "Set ID _ AFF"); this.add(XON.class, true, 1, 250, new Object[]{ getMessage() }, "Professional Organization"); this.add(XAD.class, false, 1, 250, new Object[]{ getMessage() }, "Professional Organization Address"); this.add(DR.class, false, 0, 52, new Object[]{ getMessage() }, "Professional Organization Affiliation Date Range"); this.add(ST.class, false, 1, 60, new Object[]{ getMessage() }, "Professional Affiliation Additional Information"); } catch(HL7Exception e) { log.error("Unexpected error creating AFF - this is probably a bug in the source code generator.", e); } }
/** * Returns a count of the current number of repetitions of Professional Organization Affiliation Date Range (AFF-4). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getProfessionalOrganizationAffiliationDateRangeReps() { return this.getReps(4); }
/** * Returns * AFF-1: "Set ID _ AFF" - creates it if necessary */ public SI getAff1_SetIDAFF() { SI retVal = this.getTypedField(1, 0); return retVal; }
/** * Returns a count of the current number of repetitions of Professional Organization Affiliation Date Range (AFF-4). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getProfessionalOrganizationAffiliationDateRangeReps() { return this.getReps(4); }
/** * Returns * AFF-2: "Professional Organization" - creates it if necessary */ public XON getAff2_ProfessionalOrganization() { XON retVal = this.getTypedField(2, 0); return retVal; }
/** * Returns a count of the current number of repetitions of Professional Organization Affiliation Date Range (AFF-4). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getAff4_ProfessionalOrganizationAffiliationDateRangeReps() { return this.getReps(4); }
/** * Returns * AFF-3: "Professional Organization Address" - creates it if necessary */ public XAD getProfessionalOrganizationAddress() { XAD retVal = this.getTypedField(3, 0); return retVal; }
/** * Returns * AFF-2: "Professional Organization" - creates it if necessary */ public XON getProfessionalOrganization() { XON retVal = this.getTypedField(2, 0); return retVal; }
/** * Returns * AFF-2: "Professional Organization" - creates it if necessary */ public XON getAff2_ProfessionalOrganization() { XON retVal = this.getTypedField(2, 0); return retVal; }
/** * Returns * AFF-3: "Professional Organization Address" - creates it if necessary */ public XAD getProfessionalOrganizationAddress() { XAD retVal = this.getTypedField(3, 0); return retVal; }
/** * Returns * AFF-1: "Set ID _ AFF" - creates it if necessary */ public SI getAff1_SetIDAFF() { SI retVal = this.getTypedField(1, 0); return retVal; }
/** * Returns a specific repetition of * AFF-4: "Professional Organization Affiliation Date Range" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public DR getAff4_ProfessionalOrganizationAffiliationDateRange(int rep) { DR retVal = this.getTypedField(4, rep); return retVal; }