/** * Returns a count of the current number of repetitions of Contact Address (FAC-7). * 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(7); }
/** * Returns all repetitions of Facility ID (FAC-1). */ public EI[] getFacilityID() { EI[] retVal = this.getTypedField(1, new EI[0]); return retVal; }
/** * Creates a new FAC segment */ public FAC(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
private void init(ModelClassFactory factory) { try { this.add(EI.class, true, 0, 60, new Object[]{ getMessage() }, "Facility ID"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(331) }, "Facility Type"); this.add(XAD.class, true, 1, 200, new Object[]{ getMessage() }, "Facility Address"); this.add(XTN.class, true, 1, 44, new Object[]{ getMessage() }, "Facility Telecommunication"); this.add(XCN.class, false, 0, 60, new Object[]{ getMessage() }, "Contact Person"); this.add(ST.class, false, 0, 60, new Object[]{ getMessage() }, "Contact Title"); this.add(XAD.class, false, 0, 60, new Object[]{ getMessage() }, "Contact Address"); this.add(XTN.class, false, 0, 44, new Object[]{ getMessage() }, "Contact Telecommunication"); this.add(XCN.class, true, 1, 60, new Object[]{ getMessage() }, "Signature Authority"); this.add(ST.class, false, 1, 60, new Object[]{ getMessage() }, "Signature Authority Title"); this.add(XAD.class, false, 1, 200, new Object[]{ getMessage() }, "Signature Authority Address"); this.add(XTN.class, false, 1, 44, new Object[]{ getMessage() }, "Signature Authority Telecommunication"); } catch(HL7Exception e) { log.error("Unexpected error creating FAC - this is probably a bug in the source code generator.", e); } }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new EI(getMessage()); case 1: return new ID(getMessage(), new Integer( 331 )); case 2: return new XAD(getMessage()); case 3: return new XTN(getMessage()); case 4: return new XCN(getMessage()); case 5: return new ST(getMessage()); case 6: return new XAD(getMessage()); case 7: return new XTN(getMessage()); case 8: return new XCN(getMessage()); case 9: return new ST(getMessage()); case 10: return new XAD(getMessage()); case 11: return new XTN(getMessage()); default: return null; } }
private void init(ModelClassFactory factory) { try { this.add(EI.class, true, 0, 60, new Object[]{ getMessage() }, "Facility ID"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(331) }, "Facility Type"); this.add(XAD.class, true, 1, 200, new Object[]{ getMessage() }, "Facility Address"); this.add(XTN.class, true, 1, 44, new Object[]{ getMessage() }, "Facility Telecommunication"); this.add(XCN.class, false, 0, 60, new Object[]{ getMessage() }, "Contact Person"); this.add(ST.class, false, 0, 60, new Object[]{ getMessage() }, "Contact Title"); this.add(XAD.class, false, 0, 60, new Object[]{ getMessage() }, "Contact Address"); this.add(XTN.class, false, 0, 44, new Object[]{ getMessage() }, "Contact Telecommunication"); this.add(XCN.class, true, 1, 60, new Object[]{ getMessage() }, "Signature Authority"); this.add(ST.class, false, 1, 60, new Object[]{ getMessage() }, "Signature Authority Title"); this.add(XAD.class, false, 1, 200, new Object[]{ getMessage() }, "Signature Authority Address"); this.add(XTN.class, false, 1, 44, new Object[]{ getMessage() }, "Signature Authority Telecommunication"); } catch(HL7Exception e) { log.error("Unexpected error creating FAC - this is probably a bug in the source code generator.", e); } }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new EI(getMessage()); case 1: return new ID(getMessage(), new Integer( 331 )); case 2: return new XAD(getMessage()); case 3: return new XTN(getMessage()); case 4: return new XCN(getMessage()); case 5: return new ST(getMessage()); case 6: return new XAD(getMessage()); case 7: return new XTN(getMessage()); case 8: return new XCN(getMessage()); case 9: return new ST(getMessage()); case 10: return new XAD(getMessage()); case 11: return new XTN(getMessage()); default: return null; } }
/** * Returns * FAC-2: "Facility Type" - creates it if necessary */ public ID getFacilityType() { ID retVal = this.getTypedField(2, 0); return retVal; }
/** * Returns a count of the current number of repetitions of Contact Person (FAC-5). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getContactPersonReps() { return this.getReps(5); }
/** * Creates a new FAC segment */ public FAC(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
/** * Returns * FAC-3: "Facility Address" - creates it if necessary */ public XAD getFacilityAddress() { XAD retVal = this.getTypedField(3, 0); return retVal; }
/** * Returns a count of the current number of repetitions of Contact Person (FAC-5). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getFac5_ContactPersonReps() { return this.getReps(5); }
/** * Returns all repetitions of Contact Telecommunication (FAC-8). */ public XTN[] getFac8_ContactTelecommunication() { XTN[] retVal = this.getTypedField(8, new XTN[0]); return retVal; }
/** * Returns a count of the current number of repetitions of Contact Address (FAC-7). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getFac7_ContactAddressReps() { return this.getReps(7); }
/** * Returns * FAC-10: "Signature Authority Title" - creates it if necessary */ public ST getFac10_SignatureAuthorityTitle() { ST retVal = this.getTypedField(10, 0); return retVal; }
/** * Returns a count of the current number of repetitions of Contact Telecommunication (FAC-8). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getContactTelecommunicationReps() { return this.getReps(8); }
/** * Returns a specific repetition of * FAC-8: "Contact Telecommunication" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XTN getFac8_ContactTelecommunication(int rep) { XTN retVal = this.getTypedField(8, rep); return retVal; }
/** * Returns a count of the current number of repetitions of Facility ID (FAC-1). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getFacilityIDReps() { return this.getReps(1); }
/** * Returns * FAC-9: "Signature Authority" - creates it if necessary */ public XCN getSignatureAuthority() { XCN retVal = this.getTypedField(9, 0); return retVal; }
/** * Returns a count of the current number of repetitions of Contact Person (FAC-5). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getContactPersonReps() { return this.getReps(5); }