/** * Returns a count of the current number of repetitions of Contact Address (CTD-3). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getContactAddressReps() { return this.getReps(3); }
/** * Returns all repetitions of Contact Name (CTD-2). */ public XPN[] getCtd2_ContactName() { XPN[] retVal = this.getTypedField(2, new XPN[0]); return retVal; }
/** * Creates a new CTD segment */ public CTD(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
private void init(ModelClassFactory factory) { try { this.add(CE.class, false, 0, 200, new Object[]{ getMessage() }, "Contact Role"); this.add(XPN.class, false, 0, 106, new Object[]{ getMessage() }, "Contact Name"); this.add(XAD.class, false, 0, 200, new Object[]{ getMessage() }, "Contact Address"); this.add(PL.class, false, 1, 60, new Object[]{ getMessage() }, "Contact Location"); this.add(XTN.class, false, 0, 100, new Object[]{ getMessage() }, "Contact Communication Information"); this.add(CE.class, false, 1, 200, new Object[]{ getMessage() }, "Preferred Method Of Contact"); this.add(PI.class, false, 0, 100, new Object[]{ getMessage() }, "Contact Identifiers"); } catch(HL7Exception e) { log.error("Unexpected error creating CTD - this is probably a bug in the source code generator.", e); } }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new CE(getMessage()); case 1: return new XPN(getMessage()); case 2: return new XAD(getMessage()); case 3: return new PL(getMessage()); case 4: return new XTN(getMessage()); case 5: return new CE(getMessage()); case 6: return new PI(getMessage()); default: return null; } }
private void init(ModelClassFactory factory) { try { this.add(CE.class, false, 0, 200, new Object[]{ getMessage() }, "Contact Role"); this.add(XPN.class, false, 0, 106, new Object[]{ getMessage() }, "Contact Name"); this.add(XAD.class, false, 0, 200, new Object[]{ getMessage() }, "Contact Address"); this.add(PL.class, false, 1, 60, new Object[]{ getMessage() }, "Contact Location"); this.add(XTN.class, false, 0, 100, new Object[]{ getMessage() }, "Contact Communication Information"); this.add(CE.class, false, 1, 200, new Object[]{ getMessage() }, "Preferred Method Of Contact"); this.add(PI.class, false, 0, 100, new Object[]{ getMessage() }, "Contact Identifiers"); } catch(HL7Exception e) { log.error("Unexpected error creating CTD - this is probably a bug in the source code generator.", e); } }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new CE(getMessage()); case 1: return new XPN(getMessage()); case 2: return new XAD(getMessage()); case 3: return new PL(getMessage()); case 4: return new XTN(getMessage()); case 5: return new CE(getMessage()); case 6: return new PI(getMessage()); default: return null; } }
/** * Returns a specific repetition of * CTD-2: "Contact Name" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XPN getCtd2_ContactName(int rep) { XPN retVal = this.getTypedField(2, rep); return retVal; }
/** * Returns a count of the current number of repetitions of Contact Address (CTD-3). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getCtd3_ContactAddressReps() { return this.getReps(3); }
/** * Creates a new CTD segment */ public CTD(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
/** * Returns all repetitions of Contact Address (CTD-3). */ public XAD[] getContactAddress() { XAD[] retVal = this.getTypedField(3, new XAD[0]); return retVal; }
/** * Returns a count of the current number of repetitions of Contact Role (CTD-1). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getContactRoleReps() { return this.getReps(1); }
/** * Returns a specific repetition of * CTD-3: "Contact Address" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XAD getContactAddress(int rep) { XAD retVal = this.getTypedField(3, rep); return retVal; }
/** * Returns a count of the current number of repetitions of Contact Role (CTD-1). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getCtd1_ContactRoleReps() { return this.getReps(1); }
/** * Returns * CTD-4: "Contact Location" - creates it if necessary */ public PL getCtd4_ContactLocation() { PL retVal = this.getTypedField(4, 0); return retVal; }
/** * Returns a count of the current number of repetitions of Contact Communication Information (CTD-5). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getCtd5_ContactCommunicationInformationReps() { return this.getReps(5); }
/** * Returns * CTD-6: "Preferred Method Of Contact" - creates it if necessary */ public CE getCtd6_PreferredMethodOfContact() { CE retVal = this.getTypedField(6, 0); return retVal; }
/** * Returns a count of the current number of repetitions of Contact Name (CTD-2). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getContactNameReps() { return this.getReps(2); }
/** * Returns all repetitions of Contact Role (CTD-1). */ public CE[] getCtd1_ContactRole() { CE[] retVal = this.getTypedField(1, new CE[0]); return retVal; }
/** * Returns a count of the current number of repetitions of Contact Communication Information (CTD-5). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getContactCommunicationInformationReps() { return this.getReps(5); }