001/*
002 * This class is an auto-generated source file for a HAPI
003 * HL7 v2.x standard structure class.
004 *
005 * For more information, visit: http://hl7api.sourceforge.net/
006 * 
007 * The contents of this file are subject to the Mozilla Public License Version 1.1 
008 * (the "License"); you may not use this file except in compliance with the License. 
009 * You may obtain a copy of the License at http://www.mozilla.org/MPL/ 
010 * Software distributed under the License is distributed on an "AS IS" basis, 
011 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the 
012 * specific language governing rights and limitations under the License. 
013 * 
014 * The Original Code is "[file_name]".  Description: 
015 * "[one_line_description]" 
016 * 
017 * The Initial Developer of the Original Code is University Health Network. Copyright (C) 
018 * 2012.  All Rights Reserved. 
019 * 
020 * Contributor(s): ______________________________________. 
021 * 
022 * Alternatively, the contents of this file may be used under the terms of the 
023 * GNU General Public License (the  "GPL"), in which case the provisions of the GPL are 
024 * applicable instead of those above.  If you wish to allow use of your version of this 
025 * file only under the terms of the GPL and not to allow others to use your version 
026 * of this file under the MPL, indicate your decision by deleting  the provisions above 
027 * and replace  them with the notice and other provisions required by the GPL License.  
028 * If you do not delete the provisions above, a recipient may use your version of 
029 * this file under either the MPL or the GPL. 
030 * 
031 */
032
033
034package ca.uhn.hl7v2.model.v26.segment;
035
036// import ca.uhn.hl7v2.model.v26.group.*;
037import ca.uhn.hl7v2.model.v26.datatype.*;
038import ca.uhn.hl7v2.HL7Exception;
039import ca.uhn.hl7v2.parser.ModelClassFactory;
040import ca.uhn.hl7v2.parser.DefaultModelClassFactory;
041import ca.uhn.hl7v2.model.AbstractMessage;
042import ca.uhn.hl7v2.model.Group;
043import ca.uhn.hl7v2.model.Type;
044import ca.uhn.hl7v2.model.AbstractSegment;
045import ca.uhn.hl7v2.model.Varies;
046
047/**
048 *<p>Represents an HL7 IVT message segment (Material Location). 
049 * This segment has the following fields:</p>
050 * <ul>
051     * <li>IVT-1: Set Id - IVT (SI) <b> </b>
052     * <li>IVT-2: Inventory Location Identifier (EI) <b> </b>
053     * <li>IVT-3: Inventory Location Name (ST) <b>optional </b>
054     * <li>IVT-4: Source Location Identifier (EI) <b>optional </b>
055     * <li>IVT-5: Source Location Name (ST) <b>optional </b>
056     * <li>IVT-6: Item Status (CWE) <b>optional </b>
057     * <li>IVT-7: Bin Location Identifier (EI) <b>optional repeating</b>
058     * <li>IVT-8: Order Packaging (CWE) <b>optional </b>
059     * <li>IVT-9: Issue Packaging (CWE) <b>optional </b>
060     * <li>IVT-10: Default Inventory Asset Account (EI) <b>optional </b>
061     * <li>IVT-11: Patient Chargeable Indicator (CNE) <b>optional </b>
062     * <li>IVT-12: Transaction Code (CWE) <b>optional </b>
063     * <li>IVT-13: Transaction amount - unit (CP) <b>optional </b>
064     * <li>IVT-14: Item Importance Code (CWE) <b>optional </b>
065     * <li>IVT-15: Stocked Item Indicator (CNE) <b>optional </b>
066     * <li>IVT-16: Consignment Item Indicator (CNE) <b>optional </b>
067     * <li>IVT-17: Reusable Item Indicator (CNE) <b>optional </b>
068     * <li>IVT-18: Reusable Cost (CP) <b>optional </b>
069     * <li>IVT-19: Substitute Item Identifier (EI) <b>optional repeating</b>
070     * <li>IVT-20: Latex-Free Substitute Item Identifier (EI) <b>optional </b>
071     * <li>IVT-21: Recommended Reorder Theory (CWE) <b>optional </b>
072     * <li>IVT-22: Recommended Safety Stock Days (NM) <b>optional </b>
073     * <li>IVT-23: Recommended Maximum Days Inventory (NM) <b>optional </b>
074     * <li>IVT-24: Recommended Order Point (NM) <b>optional </b>
075     * <li>IVT-25: Recommended Order Amount (NM) <b>optional </b>
076     * <li>IVT-26: Operating Room Par Level Indicator (CNE) <b>optional </b>
077 * </ul>
078 */
079@SuppressWarnings("unused")
080public class IVT extends AbstractSegment {
081
082    /** 
083     * Creates a new IVT segment
084     */
085    public IVT(Group parent, ModelClassFactory factory) {
086       super(parent, factory);
087       init(factory);
088    }
089
090    private void init(ModelClassFactory factory) {
091       try {
092                                  this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "Set Id - IVT");
093                                  this.add(EI.class, true, 1, 250, new Object[]{ getMessage() }, "Inventory Location Identifier");
094                                  this.add(ST.class, false, 1, 999, new Object[]{ getMessage() }, "Inventory Location Name");
095                                  this.add(EI.class, false, 1, 250, new Object[]{ getMessage() }, "Source Location Identifier");
096                                  this.add(ST.class, false, 1, 999, new Object[]{ getMessage() }, "Source Location Name");
097                                  this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "Item Status");
098                                  this.add(EI.class, false, 0, 250, new Object[]{ getMessage() }, "Bin Location Identifier");
099                                  this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "Order Packaging");
100                                  this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "Issue Packaging");
101                                  this.add(EI.class, false, 1, 16, new Object[]{ getMessage() }, "Default Inventory Asset Account");
102                                  this.add(CNE.class, false, 1, 4, new Object[]{ getMessage() }, "Patient Chargeable Indicator");
103                                  this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "Transaction Code");
104                                  this.add(CP.class, false, 1, 12, new Object[]{ getMessage() }, "Transaction amount - unit");
105                                  this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "Item Importance Code");
106                                  this.add(CNE.class, false, 1, 4, new Object[]{ getMessage() }, "Stocked Item Indicator");
107                                  this.add(CNE.class, false, 1, 4, new Object[]{ getMessage() }, "Consignment Item Indicator");
108                                  this.add(CNE.class, false, 1, 4, new Object[]{ getMessage() }, "Reusable Item Indicator");
109                                  this.add(CP.class, false, 1, 12, new Object[]{ getMessage() }, "Reusable Cost");
110                                  this.add(EI.class, false, 0, 250, new Object[]{ getMessage() }, "Substitute Item Identifier");
111                                  this.add(EI.class, false, 1, 250, new Object[]{ getMessage() }, "Latex-Free Substitute Item Identifier");
112                                  this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "Recommended Reorder Theory");
113                                  this.add(NM.class, false, 1, 4, new Object[]{ getMessage() }, "Recommended Safety Stock Days");
114                                  this.add(NM.class, false, 1, 4, new Object[]{ getMessage() }, "Recommended Maximum Days Inventory");
115                                  this.add(NM.class, false, 1, 8, new Object[]{ getMessage() }, "Recommended Order Point");
116                                  this.add(NM.class, false, 1, 8, new Object[]{ getMessage() }, "Recommended Order Amount");
117                                  this.add(CNE.class, false, 1, 4, new Object[]{ getMessage() }, "Operating Room Par Level Indicator");
118       } catch(HL7Exception e) {
119          log.error("Unexpected error creating IVT - this is probably a bug in the source code generator.", e);
120       }
121    }
122
123
124
125    /**
126     * Returns
127     * IVT-1: "Set Id - IVT" - creates it if necessary
128     */
129    public SI getSetIdIVT() { 
130                SI retVal = this.getTypedField(1, 0);
131                return retVal;
132    }
133    
134    /**
135     * Returns
136     * IVT-1: "Set Id - IVT" - creates it if necessary
137     */
138    public SI getIvt1_SetIdIVT() { 
139                SI retVal = this.getTypedField(1, 0);
140                return retVal;
141    }
142
143
144
145    /**
146     * Returns
147     * IVT-2: "Inventory Location Identifier" - creates it if necessary
148     */
149    public EI getInventoryLocationIdentifier() { 
150                EI retVal = this.getTypedField(2, 0);
151                return retVal;
152    }
153    
154    /**
155     * Returns
156     * IVT-2: "Inventory Location Identifier" - creates it if necessary
157     */
158    public EI getIvt2_InventoryLocationIdentifier() { 
159                EI retVal = this.getTypedField(2, 0);
160                return retVal;
161    }
162
163
164
165    /**
166     * Returns
167     * IVT-3: "Inventory Location Name" - creates it if necessary
168     */
169    public ST getInventoryLocationName() { 
170                ST retVal = this.getTypedField(3, 0);
171                return retVal;
172    }
173    
174    /**
175     * Returns
176     * IVT-3: "Inventory Location Name" - creates it if necessary
177     */
178    public ST getIvt3_InventoryLocationName() { 
179                ST retVal = this.getTypedField(3, 0);
180                return retVal;
181    }
182
183
184
185    /**
186     * Returns
187     * IVT-4: "Source Location Identifier" - creates it if necessary
188     */
189    public EI getSourceLocationIdentifier() { 
190                EI retVal = this.getTypedField(4, 0);
191                return retVal;
192    }
193    
194    /**
195     * Returns
196     * IVT-4: "Source Location Identifier" - creates it if necessary
197     */
198    public EI getIvt4_SourceLocationIdentifier() { 
199                EI retVal = this.getTypedField(4, 0);
200                return retVal;
201    }
202
203
204
205    /**
206     * Returns
207     * IVT-5: "Source Location Name" - creates it if necessary
208     */
209    public ST getSourceLocationName() { 
210                ST retVal = this.getTypedField(5, 0);
211                return retVal;
212    }
213    
214    /**
215     * Returns
216     * IVT-5: "Source Location Name" - creates it if necessary
217     */
218    public ST getIvt5_SourceLocationName() { 
219                ST retVal = this.getTypedField(5, 0);
220                return retVal;
221    }
222
223
224
225    /**
226     * Returns
227     * IVT-6: "Item Status" - creates it if necessary
228     */
229    public CWE getItemStatus() { 
230                CWE retVal = this.getTypedField(6, 0);
231                return retVal;
232    }
233    
234    /**
235     * Returns
236     * IVT-6: "Item Status" - creates it if necessary
237     */
238    public CWE getIvt6_ItemStatus() { 
239                CWE retVal = this.getTypedField(6, 0);
240                return retVal;
241    }
242
243
244    /**
245     * Returns all repetitions of Bin Location Identifier (IVT-7).
246     */
247    public EI[] getBinLocationIdentifier() {
248        EI[] retVal = this.getTypedField(7, new EI[0]);
249        return retVal;
250    }
251
252
253    /**
254     * Returns all repetitions of Bin Location Identifier (IVT-7).
255     */
256    public EI[] getIvt7_BinLocationIdentifier() {
257        EI[] retVal = this.getTypedField(7, new EI[0]);
258        return retVal;
259    }
260
261
262    /**
263     * Returns a count of the current number of repetitions of Bin Location Identifier (IVT-7).
264     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
265     * it will return zero.
266     */
267    public int getBinLocationIdentifierReps() {
268        return this.getReps(7);
269    }
270
271
272    /**
273     * Returns a specific repetition of
274     * IVT-7: "Bin Location Identifier" - creates it if necessary
275     *
276     * @param rep The repetition index (0-indexed)
277     */
278    public EI getBinLocationIdentifier(int rep) { 
279                EI retVal = this.getTypedField(7, rep);
280                return retVal;
281    }
282
283    /**
284     * Returns a specific repetition of
285     * IVT-7: "Bin Location Identifier" - creates it if necessary
286     *
287     * @param rep The repetition index (0-indexed)
288     */
289    public EI getIvt7_BinLocationIdentifier(int rep) { 
290                EI retVal = this.getTypedField(7, rep);
291                return retVal;
292    }
293
294    /**
295     * Returns a count of the current number of repetitions of Bin Location Identifier (IVT-7).
296     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
297     * it will return zero.
298     */
299    public int getIvt7_BinLocationIdentifierReps() {
300        return this.getReps(7);
301    }
302
303
304    /**
305     * Inserts a repetition of
306     * IVT-7: "Bin Location Identifier" at a specific index
307     *
308     * @param rep The repetition index (0-indexed)
309     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
310     */
311    public EI insertBinLocationIdentifier(int rep) throws HL7Exception { 
312        return (EI) super.insertRepetition(7, rep);
313    }
314
315
316    /**
317     * Inserts a repetition of
318     * IVT-7: "Bin Location Identifier" at a specific index
319     *
320     * @param rep The repetition index (0-indexed)
321     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
322     */
323    public EI insertIvt7_BinLocationIdentifier(int rep) throws HL7Exception { 
324        return (EI) super.insertRepetition(7, rep);
325    }
326
327
328    /**
329     * Removes a repetition of
330     * IVT-7: "Bin Location Identifier" at a specific index
331     *
332     * @param rep The repetition index (0-indexed)
333     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
334     */
335    public EI removeBinLocationIdentifier(int rep) throws HL7Exception { 
336        return (EI) super.removeRepetition(7, rep);
337    }
338
339
340    /**
341     * Removes a repetition of
342     * IVT-7: "Bin Location Identifier" at a specific index
343     *
344     * @param rep The repetition index (0-indexed)
345     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
346     */
347    public EI removeIvt7_BinLocationIdentifier(int rep) throws HL7Exception { 
348        return (EI) super.removeRepetition(7, rep);
349    }
350
351
352
353
354    /**
355     * Returns
356     * IVT-8: "Order Packaging" - creates it if necessary
357     */
358    public CWE getOrderPackaging() { 
359                CWE retVal = this.getTypedField(8, 0);
360                return retVal;
361    }
362    
363    /**
364     * Returns
365     * IVT-8: "Order Packaging" - creates it if necessary
366     */
367    public CWE getIvt8_OrderPackaging() { 
368                CWE retVal = this.getTypedField(8, 0);
369                return retVal;
370    }
371
372
373
374    /**
375     * Returns
376     * IVT-9: "Issue Packaging" - creates it if necessary
377     */
378    public CWE getIssuePackaging() { 
379                CWE retVal = this.getTypedField(9, 0);
380                return retVal;
381    }
382    
383    /**
384     * Returns
385     * IVT-9: "Issue Packaging" - creates it if necessary
386     */
387    public CWE getIvt9_IssuePackaging() { 
388                CWE retVal = this.getTypedField(9, 0);
389                return retVal;
390    }
391
392
393
394    /**
395     * Returns
396     * IVT-10: "Default Inventory Asset Account" - creates it if necessary
397     */
398    public EI getDefaultInventoryAssetAccount() { 
399                EI retVal = this.getTypedField(10, 0);
400                return retVal;
401    }
402    
403    /**
404     * Returns
405     * IVT-10: "Default Inventory Asset Account" - creates it if necessary
406     */
407    public EI getIvt10_DefaultInventoryAssetAccount() { 
408                EI retVal = this.getTypedField(10, 0);
409                return retVal;
410    }
411
412
413
414    /**
415     * Returns
416     * IVT-11: "Patient Chargeable Indicator" - creates it if necessary
417     */
418    public CNE getPatientChargeableIndicator() { 
419                CNE retVal = this.getTypedField(11, 0);
420                return retVal;
421    }
422    
423    /**
424     * Returns
425     * IVT-11: "Patient Chargeable Indicator" - creates it if necessary
426     */
427    public CNE getIvt11_PatientChargeableIndicator() { 
428                CNE retVal = this.getTypedField(11, 0);
429                return retVal;
430    }
431
432
433
434    /**
435     * Returns
436     * IVT-12: "Transaction Code" - creates it if necessary
437     */
438    public CWE getTransactionCode() { 
439                CWE retVal = this.getTypedField(12, 0);
440                return retVal;
441    }
442    
443    /**
444     * Returns
445     * IVT-12: "Transaction Code" - creates it if necessary
446     */
447    public CWE getIvt12_TransactionCode() { 
448                CWE retVal = this.getTypedField(12, 0);
449                return retVal;
450    }
451
452
453
454    /**
455     * Returns
456     * IVT-13: "Transaction amount - unit" - creates it if necessary
457     */
458    public CP getTransactionAmountUnit() { 
459                CP retVal = this.getTypedField(13, 0);
460                return retVal;
461    }
462    
463    /**
464     * Returns
465     * IVT-13: "Transaction amount - unit" - creates it if necessary
466     */
467    public CP getIvt13_TransactionAmountUnit() { 
468                CP retVal = this.getTypedField(13, 0);
469                return retVal;
470    }
471
472
473
474    /**
475     * Returns
476     * IVT-14: "Item Importance Code" - creates it if necessary
477     */
478    public CWE getItemImportanceCode() { 
479                CWE retVal = this.getTypedField(14, 0);
480                return retVal;
481    }
482    
483    /**
484     * Returns
485     * IVT-14: "Item Importance Code" - creates it if necessary
486     */
487    public CWE getIvt14_ItemImportanceCode() { 
488                CWE retVal = this.getTypedField(14, 0);
489                return retVal;
490    }
491
492
493
494    /**
495     * Returns
496     * IVT-15: "Stocked Item Indicator" - creates it if necessary
497     */
498    public CNE getStockedItemIndicator() { 
499                CNE retVal = this.getTypedField(15, 0);
500                return retVal;
501    }
502    
503    /**
504     * Returns
505     * IVT-15: "Stocked Item Indicator" - creates it if necessary
506     */
507    public CNE getIvt15_StockedItemIndicator() { 
508                CNE retVal = this.getTypedField(15, 0);
509                return retVal;
510    }
511
512
513
514    /**
515     * Returns
516     * IVT-16: "Consignment Item Indicator" - creates it if necessary
517     */
518    public CNE getConsignmentItemIndicator() { 
519                CNE retVal = this.getTypedField(16, 0);
520                return retVal;
521    }
522    
523    /**
524     * Returns
525     * IVT-16: "Consignment Item Indicator" - creates it if necessary
526     */
527    public CNE getIvt16_ConsignmentItemIndicator() { 
528                CNE retVal = this.getTypedField(16, 0);
529                return retVal;
530    }
531
532
533
534    /**
535     * Returns
536     * IVT-17: "Reusable Item Indicator" - creates it if necessary
537     */
538    public CNE getReusableItemIndicator() { 
539                CNE retVal = this.getTypedField(17, 0);
540                return retVal;
541    }
542    
543    /**
544     * Returns
545     * IVT-17: "Reusable Item Indicator" - creates it if necessary
546     */
547    public CNE getIvt17_ReusableItemIndicator() { 
548                CNE retVal = this.getTypedField(17, 0);
549                return retVal;
550    }
551
552
553
554    /**
555     * Returns
556     * IVT-18: "Reusable Cost" - creates it if necessary
557     */
558    public CP getReusableCost() { 
559                CP retVal = this.getTypedField(18, 0);
560                return retVal;
561    }
562    
563    /**
564     * Returns
565     * IVT-18: "Reusable Cost" - creates it if necessary
566     */
567    public CP getIvt18_ReusableCost() { 
568                CP retVal = this.getTypedField(18, 0);
569                return retVal;
570    }
571
572
573    /**
574     * Returns all repetitions of Substitute Item Identifier (IVT-19).
575     */
576    public EI[] getSubstituteItemIdentifier() {
577        EI[] retVal = this.getTypedField(19, new EI[0]);
578        return retVal;
579    }
580
581
582    /**
583     * Returns all repetitions of Substitute Item Identifier (IVT-19).
584     */
585    public EI[] getIvt19_SubstituteItemIdentifier() {
586        EI[] retVal = this.getTypedField(19, new EI[0]);
587        return retVal;
588    }
589
590
591    /**
592     * Returns a count of the current number of repetitions of Substitute Item Identifier (IVT-19).
593     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
594     * it will return zero.
595     */
596    public int getSubstituteItemIdentifierReps() {
597        return this.getReps(19);
598    }
599
600
601    /**
602     * Returns a specific repetition of
603     * IVT-19: "Substitute Item Identifier" - creates it if necessary
604     *
605     * @param rep The repetition index (0-indexed)
606     */
607    public EI getSubstituteItemIdentifier(int rep) { 
608                EI retVal = this.getTypedField(19, rep);
609                return retVal;
610    }
611
612    /**
613     * Returns a specific repetition of
614     * IVT-19: "Substitute Item Identifier" - creates it if necessary
615     *
616     * @param rep The repetition index (0-indexed)
617     */
618    public EI getIvt19_SubstituteItemIdentifier(int rep) { 
619                EI retVal = this.getTypedField(19, rep);
620                return retVal;
621    }
622
623    /**
624     * Returns a count of the current number of repetitions of Substitute Item Identifier (IVT-19).
625     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
626     * it will return zero.
627     */
628    public int getIvt19_SubstituteItemIdentifierReps() {
629        return this.getReps(19);
630    }
631
632
633    /**
634     * Inserts a repetition of
635     * IVT-19: "Substitute Item Identifier" at a specific index
636     *
637     * @param rep The repetition index (0-indexed)
638     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
639     */
640    public EI insertSubstituteItemIdentifier(int rep) throws HL7Exception { 
641        return (EI) super.insertRepetition(19, rep);
642    }
643
644
645    /**
646     * Inserts a repetition of
647     * IVT-19: "Substitute Item Identifier" at a specific index
648     *
649     * @param rep The repetition index (0-indexed)
650     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
651     */
652    public EI insertIvt19_SubstituteItemIdentifier(int rep) throws HL7Exception { 
653        return (EI) super.insertRepetition(19, rep);
654    }
655
656
657    /**
658     * Removes a repetition of
659     * IVT-19: "Substitute Item Identifier" at a specific index
660     *
661     * @param rep The repetition index (0-indexed)
662     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
663     */
664    public EI removeSubstituteItemIdentifier(int rep) throws HL7Exception { 
665        return (EI) super.removeRepetition(19, rep);
666    }
667
668
669    /**
670     * Removes a repetition of
671     * IVT-19: "Substitute Item Identifier" at a specific index
672     *
673     * @param rep The repetition index (0-indexed)
674     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
675     */
676    public EI removeIvt19_SubstituteItemIdentifier(int rep) throws HL7Exception { 
677        return (EI) super.removeRepetition(19, rep);
678    }
679
680
681
682
683    /**
684     * Returns
685     * IVT-20: "Latex-Free Substitute Item Identifier" - creates it if necessary
686     */
687    public EI getLatexFreeSubstituteItemIdentifier() { 
688                EI retVal = this.getTypedField(20, 0);
689                return retVal;
690    }
691    
692    /**
693     * Returns
694     * IVT-20: "Latex-Free Substitute Item Identifier" - creates it if necessary
695     */
696    public EI getIvt20_LatexFreeSubstituteItemIdentifier() { 
697                EI retVal = this.getTypedField(20, 0);
698                return retVal;
699    }
700
701
702
703    /**
704     * Returns
705     * IVT-21: "Recommended Reorder Theory" - creates it if necessary
706     */
707    public CWE getRecommendedReorderTheory() { 
708                CWE retVal = this.getTypedField(21, 0);
709                return retVal;
710    }
711    
712    /**
713     * Returns
714     * IVT-21: "Recommended Reorder Theory" - creates it if necessary
715     */
716    public CWE getIvt21_RecommendedReorderTheory() { 
717                CWE retVal = this.getTypedField(21, 0);
718                return retVal;
719    }
720
721
722
723    /**
724     * Returns
725     * IVT-22: "Recommended Safety Stock Days" - creates it if necessary
726     */
727    public NM getRecommendedSafetyStockDays() { 
728                NM retVal = this.getTypedField(22, 0);
729                return retVal;
730    }
731    
732    /**
733     * Returns
734     * IVT-22: "Recommended Safety Stock Days" - creates it if necessary
735     */
736    public NM getIvt22_RecommendedSafetyStockDays() { 
737                NM retVal = this.getTypedField(22, 0);
738                return retVal;
739    }
740
741
742
743    /**
744     * Returns
745     * IVT-23: "Recommended Maximum Days Inventory" - creates it if necessary
746     */
747    public NM getRecommendedMaximumDaysInventory() { 
748                NM retVal = this.getTypedField(23, 0);
749                return retVal;
750    }
751    
752    /**
753     * Returns
754     * IVT-23: "Recommended Maximum Days Inventory" - creates it if necessary
755     */
756    public NM getIvt23_RecommendedMaximumDaysInventory() { 
757                NM retVal = this.getTypedField(23, 0);
758                return retVal;
759    }
760
761
762
763    /**
764     * Returns
765     * IVT-24: "Recommended Order Point" - creates it if necessary
766     */
767    public NM getRecommendedOrderPoint() { 
768                NM retVal = this.getTypedField(24, 0);
769                return retVal;
770    }
771    
772    /**
773     * Returns
774     * IVT-24: "Recommended Order Point" - creates it if necessary
775     */
776    public NM getIvt24_RecommendedOrderPoint() { 
777                NM retVal = this.getTypedField(24, 0);
778                return retVal;
779    }
780
781
782
783    /**
784     * Returns
785     * IVT-25: "Recommended Order Amount" - creates it if necessary
786     */
787    public NM getRecommendedOrderAmount() { 
788                NM retVal = this.getTypedField(25, 0);
789                return retVal;
790    }
791    
792    /**
793     * Returns
794     * IVT-25: "Recommended Order Amount" - creates it if necessary
795     */
796    public NM getIvt25_RecommendedOrderAmount() { 
797                NM retVal = this.getTypedField(25, 0);
798                return retVal;
799    }
800
801
802
803    /**
804     * Returns
805     * IVT-26: "Operating Room Par Level Indicator" - creates it if necessary
806     */
807    public CNE getOperatingRoomParLevelIndicator() { 
808                CNE retVal = this.getTypedField(26, 0);
809                return retVal;
810    }
811    
812    /**
813     * Returns
814     * IVT-26: "Operating Room Par Level Indicator" - creates it if necessary
815     */
816    public CNE getIvt26_OperatingRoomParLevelIndicator() { 
817                CNE retVal = this.getTypedField(26, 0);
818                return retVal;
819    }
820
821
822
823
824
825    /** {@inheritDoc} */   
826    protected Type createNewTypeWithoutReflection(int field) {
827       switch (field) {
828          case 0: return new SI(getMessage());
829          case 1: return new EI(getMessage());
830          case 2: return new ST(getMessage());
831          case 3: return new EI(getMessage());
832          case 4: return new ST(getMessage());
833          case 5: return new CWE(getMessage());
834          case 6: return new EI(getMessage());
835          case 7: return new CWE(getMessage());
836          case 8: return new CWE(getMessage());
837          case 9: return new EI(getMessage());
838          case 10: return new CNE(getMessage());
839          case 11: return new CWE(getMessage());
840          case 12: return new CP(getMessage());
841          case 13: return new CWE(getMessage());
842          case 14: return new CNE(getMessage());
843          case 15: return new CNE(getMessage());
844          case 16: return new CNE(getMessage());
845          case 17: return new CP(getMessage());
846          case 18: return new EI(getMessage());
847          case 19: return new EI(getMessage());
848          case 20: return new CWE(getMessage());
849          case 21: return new NM(getMessage());
850          case 22: return new NM(getMessage());
851          case 23: return new NM(getMessage());
852          case 24: return new NM(getMessage());
853          case 25: return new CNE(getMessage());
854          default: return null;
855       }
856   }
857
858
859}
860