/** * Returns a count of the current number of repetitions of Allergy Reaction (AL1-5). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getAl15_AllergyReactionReps() { return this.getReps(5); }
/** * Returns * AL1-1: "Set ID - AL1" - creates it if necessary */ public SI getAl11_SetIDAL1() { SI retVal = this.getTypedField(1, 0); return retVal; }
/** * Creates a new AL1 segment */ public AL1(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
private void init(ModelClassFactory factory) { try { this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "Set ID - AL1"); this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(127) }, "Allergy Type"); this.add(CE.class, true, 1, 60, new Object[]{ getMessage() }, "Allergy Code/Mnemonic/Description"); this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(128) }, "Allergy Severity"); this.add(ST.class, false, 0, 15, new Object[]{ getMessage() }, "Allergy Reaction"); this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Identification Date"); } catch(HL7Exception e) { log.error("Unexpected error creating AL1 - 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 IS(getMessage(), new Integer( 127 )); case 2: return new CE(getMessage()); case 3: return new IS(getMessage(), new Integer( 128 )); case 4: return new ST(getMessage()); case 5: return new DT(getMessage()); default: return null; } }
private void init(ModelClassFactory factory) { try { this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "Set ID - AL1"); this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(127) }, "Allergy Type"); this.add(CE.class, true, 1, 60, new Object[]{ getMessage() }, "Allergy Code/Mnemonic/Description"); this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(128) }, "Allergy Severity"); this.add(ST.class, false, 0, 15, new Object[]{ getMessage() }, "Allergy Reaction"); this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Identification Date"); } catch(HL7Exception e) { log.error("Unexpected error creating AL1 - 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 IS(getMessage(), new Integer( 127 )); case 2: return new CE(getMessage()); case 3: return new IS(getMessage(), new Integer( 128 )); case 4: return new ST(getMessage()); case 5: return new DT(getMessage()); default: return null; } }
/** * Returns * AL1-3: "Allergy Code/Mnemonic/Description" - creates it if necessary */ public CE getAllergyCodeMnemonicDescription() { CE retVal = this.getTypedField(3, 0); return retVal; }
/** * Returns a count of the current number of repetitions of Allergy Reaction (AL1-5). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getAllergyReactionReps() { return this.getReps(5); }
/** * Creates a new AL1 segment */ public AL1(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
/** * Returns * AL1-3: "Allergy Code/Mnemonic/Description" - creates it if necessary */ public CE getAl13_AllergyCodeMnemonicDescription() { CE retVal = this.getTypedField(3, 0); return retVal; }
/** * Returns a count of the current number of repetitions of Allergy Reaction (AL1-5). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getAllergyReactionReps() { return this.getReps(5); }
/** * Returns a specific repetition of * AL1-5: "Allergy Reaction" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public ST getAllergyReaction(int rep) { ST retVal = this.getTypedField(5, rep); return retVal; }
/** * Returns a count of the current number of repetitions of Allergy Reaction (AL1-5). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getAl15_AllergyReactionReps() { return this.getReps(5); }
/** * Returns * AL1-2: "Allergy Type" - creates it if necessary */ public IS getAl12_AllergyType() { IS retVal = this.getTypedField(2, 0); return retVal; }
/** * Returns * AL1-1: "Set ID - AL1" - creates it if necessary */ public SI getSetIDAL1() { SI retVal = this.getTypedField(1, 0); return retVal; }
/** * Returns * AL1-1: "Set ID - AL1" - creates it if necessary */ public SI getAl11_SetIDAL1() { SI retVal = this.getTypedField(1, 0); return retVal; }
/** * Returns * AL1-3: "Allergy Code/Mnemonic/Description" - creates it if necessary */ public CE getAllergyCodeMnemonicDescription() { CE retVal = this.getTypedField(3, 0); return retVal; }
/** * Returns * AL1-3: "Allergy Code/Mnemonic/Description" - creates it if necessary */ public CE getAl13_AllergyCodeMnemonicDescription() { CE retVal = this.getTypedField(3, 0); return retVal; }
/** * Returns all repetitions of Allergy Reaction (AL1-5). */ public ST[] getAllergyReaction() { ST[] retVal = this.getTypedField(5, new ST[0]); return retVal; }