/** * Returns a count of the current number of repetitions of Allergy Reaction Code (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_AllergyReactionCodeReps() { return this.getReps(5); }
/** * Returns * AL1-6: "Identification Date" - creates it if necessary */ public DT getIdentificationDate() { DT retVal = this.getTypedField(6, 0); return retVal; }
private void init(ModelClassFactory factory) { try { this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "Set ID - AL1"); this.add(CWE.class, false, 1, 705, new Object[]{ getMessage() }, "Allergen Type Code"); this.add(CWE.class, true, 1, 705, new Object[]{ getMessage() }, "Allergen Code/Mnemonic/Description"); this.add(CWE.class, false, 1, 705, new Object[]{ getMessage() }, "Allergy Severity Code"); this.add(ST.class, false, 0, 15, new Object[]{ getMessage() }, "Allergy Reaction Code"); this.add(DT.class, false, 1, 0, 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 CWE(getMessage()); case 2: return new CWE(getMessage()); case 3: return new CWE(getMessage()); case 4: return new ST(getMessage()); case 5: return new DT(getMessage()); default: return null; } }
/** * 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(CWE.class, false, 1, 705, new Object[]{ getMessage() }, "Allergen Type Code"); this.add(CWE.class, true, 1, 705, new Object[]{ getMessage() }, "Allergen Code/Mnemonic/Description"); this.add(CWE.class, false, 1, 705, new Object[]{ getMessage() }, "Allergy Severity Code"); this.add(ST.class, false, 0, 15, new Object[]{ getMessage() }, "Allergy Reaction Code"); this.add(DT.class, false, 1, 0, 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 CWE(getMessage()); case 2: return new CWE(getMessage()); case 3: return new CWE(getMessage()); case 4: return new ST(getMessage()); case 5: return new DT(getMessage()); default: return null; } }
/** * Creates a new AL1 segment */ public AL1(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
/** * Returns a specific repetition of * AL1-5: "Allergy Reaction Code" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public ST getAllergyReactionCode(int rep) { ST retVal = this.getTypedField(5, rep); return retVal; }
/** * Returns a count of the current number of repetitions of Allergy Reaction Code (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 getAllergyReactionCodeReps() { return this.getReps(5); }
/** * Returns all repetitions of Allergy Reaction Code (AL1-5). */ public ST[] getAllergyReactionCode() { ST[] retVal = this.getTypedField(5, new ST[0]); return retVal; }
/** * Returns a count of the current number of repetitions of Allergy Reaction Code (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 getAllergyReactionCodeReps() { return this.getReps(5); }
/** * Returns a specific repetition of * AL1-5: "Allergy Reaction Code" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public ST getAl15_AllergyReactionCode(int rep) { ST retVal = this.getTypedField(5, rep); return retVal; }
/** * Returns a count of the current number of repetitions of Allergy Reaction Code (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_AllergyReactionCodeReps() { return this.getReps(5); }
/** * Returns * AL1-6: "Identification Date" - creates it if necessary */ public DT getAl16_IdentificationDate() { DT retVal = this.getTypedField(6, 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-3: "Allergen Code/Mnemonic/Description" - creates it if necessary */ public CWE getAl13_AllergenCodeMnemonicDescription() { CWE retVal = this.getTypedField(3, 0); return retVal; }
/** * Returns * AL1-4: "Allergy Severity Code" - creates it if necessary */ public CWE getAllergySeverityCode() { CWE retVal = this.getTypedField(4, 0); return retVal; }
/** * Returns all repetitions of Allergy Reaction Code (AL1-5). */ public ST[] getAl15_AllergyReactionCode() { ST[] retVal = this.getTypedField(5, new ST[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; }