private void init(ModelClassFactory factory) { try { this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "SET ID - NEXT OF KIN"); this.add(PN.class, false, 1, 48, new Object[]{ getMessage() }, "NEXT OF KIN NAME"); this.add(ST.class, false, 1, 15, new Object[]{ getMessage() }, "NEXT OF KIN RELATIONSHIP"); this.add(AD.class, false, 1, 106, new Object[]{ getMessage() }, "NEXT OF KIN - ADDRESS"); this.add(TN.class, false, 0, 40, new Object[]{ getMessage() }, "NEXT OF KIN - PHONE NUMBER"); } catch(HL7Exception e) { log.error("Unexpected error creating NK1 - this is probably a bug in the source code generator.", e); } }
/** * Returns a count of the current number of repetitions of NEXT OF KIN - PHONE NUMBER (NK1-5). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getNk15_NEXTOFKINPHONENUMBERReps() { return this.getReps(5); }
/** * Returns * NK1-1: "SET ID - NEXT OF KIN" - creates it if necessary */ public SI getNk11_SETIDNEXTOFKIN() { SI retVal = this.getTypedField(1, 0); return retVal; }
/** * Creates a new NK1 segment */ public NK1(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 PN(getMessage()); case 2: return new ST(getMessage()); case 3: return new AD(getMessage()); case 4: return new TN(getMessage()); default: return null; } }
/** * Creates a new NK1 segment */ public NK1(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 PN(getMessage()); case 2: return new ST(getMessage()); case 3: return new AD(getMessage()); case 4: return new TN(getMessage()); default: return null; } }
/** * Returns * NK1-2: "NEXT OF KIN NAME" - creates it if necessary */ public PN getNk12_NEXTOFKINNAME() { PN retVal = this.getTypedField(2, 0); return retVal; }
private void init(ModelClassFactory factory) { try { this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "SET ID - NEXT OF KIN"); this.add(PN.class, false, 1, 48, new Object[]{ getMessage() }, "NEXT OF KIN NAME"); this.add(ST.class, false, 1, 15, new Object[]{ getMessage() }, "NEXT OF KIN RELATIONSHIP"); this.add(AD.class, false, 1, 106, new Object[]{ getMessage() }, "NEXT OF KIN - ADDRESS"); this.add(TN.class, false, 0, 40, new Object[]{ getMessage() }, "NEXT OF KIN - PHONE NUMBER"); } catch(HL7Exception e) { log.error("Unexpected error creating NK1 - this is probably a bug in the source code generator.", e); } }
/** * Returns a count of the current number of repetitions of NEXT OF KIN - PHONE NUMBER (NK1-5). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getNEXTOFKINPHONENUMBERReps() { return this.getReps(5); }
/** * Returns * NK1-2: "NEXT OF KIN NAME" - creates it if necessary */ public PN getNEXTOFKINNAME() { PN retVal = this.getTypedField(2, 0); return retVal; }
/** * Returns a count of the current number of repetitions of NEXT OF KIN - PHONE NUMBER (NK1-5). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getNEXTOFKINPHONENUMBERReps() { return this.getReps(5); }
/** * Returns * NK1-2: "NEXT OF KIN NAME" - creates it if necessary */ public PN getNEXTOFKINNAME() { PN retVal = this.getTypedField(2, 0); return retVal; }
/** * Returns a count of the current number of repetitions of NEXT OF KIN - PHONE NUMBER (NK1-5). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getNk15_NEXTOFKINPHONENUMBERReps() { return this.getReps(5); }
/** * Returns * NK1-3: "NEXT OF KIN RELATIONSHIP" - creates it if necessary */ public ST getNk13_NEXTOFKINRELATIONSHIP() { ST retVal = this.getTypedField(3, 0); return retVal; }
/** * Returns * NK1-4: "NEXT OF KIN - ADDRESS" - creates it if necessary */ public AD getNk14_NEXTOFKINADDRESS() { AD retVal = this.getTypedField(4, 0); return retVal; }
/** * Returns all repetitions of NEXT OF KIN - PHONE NUMBER (NK1-5). */ public TN[] getNEXTOFKINPHONENUMBER() { TN[] retVal = this.getTypedField(5, new TN[0]); return retVal; }
/** * Returns * NK1-2: "NEXT OF KIN NAME" - creates it if necessary */ public PN getNk12_NEXTOFKINNAME() { PN retVal = this.getTypedField(2, 0); return retVal; }
/** * Returns * NK1-3: "NEXT OF KIN RELATIONSHIP" - creates it if necessary */ public ST getNEXTOFKINRELATIONSHIP() { ST retVal = this.getTypedField(3, 0); return retVal; }
/** * Returns * NK1-3: "NEXT OF KIN RELATIONSHIP" - creates it if necessary */ public ST getNEXTOFKINRELATIONSHIP() { ST retVal = this.getTypedField(3, 0); return retVal; }