/** * 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 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); }
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); } }
/** {@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; } }
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); } }
/** {@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 * 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 getProfessionalOrganizationAffiliationDateRangeReps() { return this.getReps(4); }
/** * Creates a new AFF segment */ public AFF(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
/** * Returns * AFF-3: "Professional Organization Address" - creates it if necessary */ public XAD getAff3_ProfessionalOrganizationAddress() { XAD retVal = this.getTypedField(3, 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-5: "Professional Affiliation Additional Information" - creates it if necessary */ public ST getAff5_ProfessionalAffiliationAdditionalInformation() { ST retVal = this.getTypedField(5, 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-5: "Professional Affiliation Additional Information" - creates it if necessary */ public ST getProfessionalAffiliationAdditionalInformation() { ST retVal = this.getTypedField(5, 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-3: "Professional Organization Address" - creates it if necessary */ public XAD getAff3_ProfessionalOrganizationAddress() { XAD retVal = this.getTypedField(3, 0); return retVal; }
/** * Returns all repetitions of Professional Organization Affiliation Date Range (AFF-4). */ public DR[] getAff4_ProfessionalOrganizationAffiliationDateRange() { DR[] retVal = this.getTypedField(4, new DR[0]); return retVal; }
/** * Returns * AFF-5: "Professional Affiliation Additional Information" - creates it if necessary */ public ST getAff5_ProfessionalAffiliationAdditionalInformation() { ST retVal = this.getTypedField(5, 0); return retVal; }
/** * Returns * AFF-3: "Professional Organization Address" - creates it if necessary */ public XAD getProfessionalOrganizationAddress() { XAD retVal = this.getTypedField(3, 0); return retVal; }