/** * Returns a count of the current number of repetitions of BP Adverse Reaction Type (BTX-18). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getBtx18_BPAdverseReactionTypeReps() { return this.getReps(18); }
/** * Returns * BTX-9: "BP Amount" - creates it if necessary */ public NM getBPAmount() { NM retVal = this.getTypedField(9, 0); return retVal; }
/** * Creates a new BTX segment */ public BTX(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 - BTX"); this.add(EI.class, false, 1, 22, new Object[]{ getMessage() }, "BC Donation ID"); this.add(CNE.class, false, 1, 250, new Object[]{ getMessage() }, "BC Component"); this.add(CNE.class, false, 1, 250, new Object[]{ getMessage() }, "BC Blood Group"); this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "CP Commercial Product"); this.add(XON.class, false, 1, 250, new Object[]{ getMessage() }, "CP Manufacturer"); this.add(EI.class, false, 1, 22, new Object[]{ getMessage() }, "CP Lot Number"); this.add(NM.class, true, 1, 5, new Object[]{ getMessage() }, "BP Quantity"); this.add(NM.class, false, 1, 5, new Object[]{ getMessage() }, "BP Amount"); this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "BP Units"); this.add(CWE.class, true, 1, 250, new Object[]{ getMessage() }, "BP Transfusion/Disposition Status"); this.add(ID.class, true, 1, 1, new Object[]{ getMessage(), new Integer(511) }, "BP Message Status"); this.add(TS.class, true, 1, 26, new Object[]{ getMessage() }, "BP Date/Time of Status"); this.add(XCN.class, false, 1, 250, new Object[]{ getMessage() }, "BP Administrator"); this.add(XCN.class, false, 1, 250, new Object[]{ getMessage() }, "BP Verifier"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "BP Transfusion Start Date/Time of Status"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "BP Transfusion End Date/Time of Status"); this.add(CWE.class, false, 0, 250, new Object[]{ getMessage() }, "BP Adverse Reaction Type"); this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "BP Transfusion Interrupted Reason"); } catch(HL7Exception e) { log.error("Unexpected error creating BTX - 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 EI(getMessage()); case 2: return new CNE(getMessage()); case 3: return new CNE(getMessage()); case 4: return new CWE(getMessage()); case 5: return new XON(getMessage()); case 6: return new EI(getMessage()); case 7: return new NM(getMessage()); case 8: return new NM(getMessage()); case 9: return new CE(getMessage()); case 10: return new CWE(getMessage()); case 11: return new ID(getMessage(), new Integer( 511 )); case 12: return new TS(getMessage()); case 13: return new XCN(getMessage()); case 14: return new XCN(getMessage()); case 15: return new TS(getMessage()); case 16: return new TS(getMessage()); case 17: return new CWE(getMessage()); case 18: return new CWE(getMessage()); default: return null; } }
private void init(ModelClassFactory factory) { try { this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "Set ID - BTX"); this.add(EI.class, false, 1, 22, new Object[]{ getMessage() }, "BC Donation ID"); this.add(CNE.class, false, 1, 250, new Object[]{ getMessage() }, "BC Component"); this.add(CNE.class, false, 1, 250, new Object[]{ getMessage() }, "BC Blood Group"); this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "CP Commercial Product"); this.add(XON.class, false, 1, 250, new Object[]{ getMessage() }, "CP Manufacturer"); this.add(EI.class, false, 1, 22, new Object[]{ getMessage() }, "CP Lot Number"); this.add(NM.class, true, 1, 5, new Object[]{ getMessage() }, "BP Quantity"); this.add(NM.class, false, 1, 5, new Object[]{ getMessage() }, "BP Amount"); this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "BP Units"); this.add(CWE.class, true, 1, 250, new Object[]{ getMessage() }, "BP Transfusion/Disposition Status"); this.add(ID.class, true, 1, 1, new Object[]{ getMessage(), new Integer(511) }, "BP Message Status"); this.add(TS.class, true, 1, 26, new Object[]{ getMessage() }, "BP Date/Time of Status"); this.add(XCN.class, false, 1, 250, new Object[]{ getMessage() }, "BP Administrator"); this.add(XCN.class, false, 1, 250, new Object[]{ getMessage() }, "BP Verifier"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "BP Transfusion Start Date/Time of Status"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "BP Transfusion End Date/Time of Status"); this.add(CWE.class, false, 0, 250, new Object[]{ getMessage() }, "BP Adverse Reaction Type"); this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "BP Transfusion Interrupted Reason"); } catch(HL7Exception e) { log.error("Unexpected error creating BTX - 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 EI(getMessage()); case 2: return new CNE(getMessage()); case 3: return new CNE(getMessage()); case 4: return new CWE(getMessage()); case 5: return new XON(getMessage()); case 6: return new EI(getMessage()); case 7: return new NM(getMessage()); case 8: return new NM(getMessage()); case 9: return new CE(getMessage()); case 10: return new CWE(getMessage()); case 11: return new ID(getMessage(), new Integer( 511 )); case 12: return new TS(getMessage()); case 13: return new XCN(getMessage()); case 14: return new XCN(getMessage()); case 15: return new TS(getMessage()); case 16: return new TS(getMessage()); case 17: return new CWE(getMessage()); case 18: return new CWE(getMessage()); default: return null; } }
/** * Returns * BTX-9: "BP Amount" - creates it if necessary */ public NM getBtx9_BPAmount() { NM retVal = this.getTypedField(9, 0); return retVal; }
/** * Returns a count of the current number of repetitions of BP Adverse Reaction Type (BTX-18). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getBPAdverseReactionTypeReps() { return this.getReps(18); }
/** * Creates a new BTX segment */ public BTX(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
/** * Returns * BTX-10: "BP Units" - creates it if necessary */ public CE getBtx10_BPUnits() { CE retVal = this.getTypedField(10, 0); return retVal; }
/** * Returns a count of the current number of repetitions of BP Adverse Reaction Type (BTX-18). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getBPAdverseReactionTypeReps() { return this.getReps(18); }
/** * Returns * BTX-17: "BP Transfusion End Date/Time of Status" - creates it if necessary */ public TS getBtx17_BPTransfusionEndDateTimeOfStatus() { TS retVal = this.getTypedField(17, 0); return retVal; }
/** * Returns a count of the current number of repetitions of BP Adverse Reaction Type (BTX-18). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getBtx18_BPAdverseReactionTypeReps() { return this.getReps(18); }
/** * Returns all repetitions of BP Adverse Reaction Type (BTX-18). */ public CWE[] getBPAdverseReactionType() { CWE[] retVal = this.getTypedField(18, new CWE[0]); return retVal; }
/** * Returns all repetitions of BP Adverse Reaction Type (BTX-18). */ public CWE[] getBtx18_BPAdverseReactionType() { CWE[] retVal = this.getTypedField(18, new CWE[0]); return retVal; }
/** * Returns * BTX-19: "BP Transfusion Interrupted Reason" - creates it if necessary */ public CWE getBPTransfusionInterruptedReason() { CWE retVal = this.getTypedField(19, 0); return retVal; }
/** * Returns * BTX-1: "Set ID - BTX" - creates it if necessary */ public SI getBtx1_SetIDBTX() { SI retVal = this.getTypedField(1, 0); return retVal; }
/** * Returns * BTX-3: "BC Component" - creates it if necessary */ public CNE getBtx3_BCComponent() { CNE retVal = this.getTypedField(3, 0); return retVal; }
/** * Returns * BTX-6: "CP Manufacturer" - creates it if necessary */ public XON getCPManufacturer() { XON retVal = this.getTypedField(6, 0); return retVal; }