/** * Returns a count of the current number of repetitions of BP Processing Requirements (BPO-3). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getBPProcessingRequirementsReps() { return this.getReps(3); }
/** * Returns all repetitions of BP Processing Requirements (BPO-3). */ public CWE[] getBPProcessingRequirements() { CWE[] retVal = this.getTypedField(3, new CWE[0]); return retVal; }
/** * Creates a new BPO segment */ public BPO(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 - BPO"); this.add(CWE.class, true, 1, 250, new Object[]{ getMessage() }, "BP Universal Service ID"); this.add(CWE.class, false, 0, 250, new Object[]{ getMessage() }, "BP Processing Requirements"); 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(TS.class, false, 1, 26, new Object[]{ getMessage() }, "BP Intended Use Date/Time"); this.add(PL.class, false, 1, 80, new Object[]{ getMessage() }, "BP Intended Dispense From Location"); this.add(XAD.class, false, 1, 250, new Object[]{ getMessage() }, "BP Intended Dispense From Address"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "BP Requested Dispense Date/Time"); this.add(PL.class, false, 1, 80, new Object[]{ getMessage() }, "BP Requested Dispense To Location"); this.add(XAD.class, false, 1, 250, new Object[]{ getMessage() }, "BP Requested Dispense To Address"); this.add(CWE.class, false, 0, 250, new Object[]{ getMessage() }, "BP Indication for Use"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "BP Informed Consent Indicator"); } catch(HL7Exception e) { log.error("Unexpected error creating BPO - 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 NM(getMessage()); case 4: return new NM(getMessage()); case 5: return new CE(getMessage()); case 6: return new TS(getMessage()); case 7: return new PL(getMessage()); case 8: return new XAD(getMessage()); case 9: return new TS(getMessage()); case 10: return new PL(getMessage()); case 11: return new XAD(getMessage()); case 12: return new CWE(getMessage()); case 13: return new ID(getMessage(), new Integer( 136 )); default: return null; } }
private void init(ModelClassFactory factory) { try { this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "Set ID - BPO"); this.add(CWE.class, true, 1, 250, new Object[]{ getMessage() }, "BP Universal Service ID"); this.add(CWE.class, false, 0, 250, new Object[]{ getMessage() }, "BP Processing Requirements"); 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(TS.class, false, 1, 26, new Object[]{ getMessage() }, "BP Intended Use Date/Time"); this.add(PL.class, false, 1, 80, new Object[]{ getMessage() }, "BP Intended Dispense From Location"); this.add(XAD.class, false, 1, 250, new Object[]{ getMessage() }, "BP Intended Dispense From Address"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "BP Requested Dispense Date/Time"); this.add(PL.class, false, 1, 80, new Object[]{ getMessage() }, "BP Requested Dispense To Location"); this.add(XAD.class, false, 1, 250, new Object[]{ getMessage() }, "BP Requested Dispense To Address"); this.add(CWE.class, false, 0, 250, new Object[]{ getMessage() }, "BP Indication for Use"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "BP Informed Consent Indicator"); } catch(HL7Exception e) { log.error("Unexpected error creating BPO - 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 NM(getMessage()); case 4: return new NM(getMessage()); case 5: return new CE(getMessage()); case 6: return new TS(getMessage()); case 7: return new PL(getMessage()); case 8: return new XAD(getMessage()); case 9: return new TS(getMessage()); case 10: return new PL(getMessage()); case 11: return new XAD(getMessage()); case 12: return new CWE(getMessage()); case 13: return new ID(getMessage(), new Integer( 136 )); default: return null; } }
/** * Returns * BPO-8: "BP Intended Dispense From Location" - creates it if necessary */ public PL getBPIntendedDispenseFromLocation() { PL retVal = this.getTypedField(8, 0); return retVal; }
/** * Returns a count of the current number of repetitions of BP Indication for Use (BPO-13). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getBPIndicationForUseReps() { return this.getReps(13); }
/** * Creates a new BPO segment */ public BPO(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); }
/** * Returns a specific repetition of * BPO-3: "BP Processing Requirements" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CWE getBPProcessingRequirements(int rep) { CWE retVal = this.getTypedField(3, rep); return retVal; }
/** * Returns a count of the current number of repetitions of BP Indication for Use (BPO-13). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getBpo13_BPIndicationForUseReps() { return this.getReps(13); }
/** * Returns * BPO-4: "BP Quantity" - creates it if necessary */ public NM getBpo4_BPQuantity() { NM retVal = this.getTypedField(4, 0); return retVal; }
/** * Returns a count of the current number of repetitions of BP Processing Requirements (BPO-3). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getBpo3_BPProcessingRequirementsReps() { return this.getReps(3); }
/** * Returns * BPO-6: "BP Units" - creates it if necessary */ public CE getBpo6_BPUnits() { CE retVal = this.getTypedField(6, 0); return retVal; }
/** * Returns a count of the current number of repetitions of BP Indication for Use (BPO-13). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getBPIndicationForUseReps() { return this.getReps(13); }
/** * Returns * BPO-7: "BP Intended Use Date/Time" - creates it if necessary */ public TS getBpo7_BPIntendedUseDateTime() { TS retVal = this.getTypedField(7, 0); return retVal; }
/** * Returns a count of the current number of repetitions of BP Processing Requirements (BPO-3). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getBPProcessingRequirementsReps() { return this.getReps(3); }
/** * Returns * BPO-9: "BP Intended Dispense From Address" - creates it if necessary */ public XAD getBpo9_BPIntendedDispenseFromAddress() { XAD retVal = this.getTypedField(9, 0); return retVal; }
/** * Returns a count of the current number of repetitions of BP Processing Requirements (BPO-3). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getBpo3_BPProcessingRequirementsReps() { return this.getReps(3); }