View Javadoc
1   /*
2    * This class is an auto-generated source file for a HAPI
3    * HL7 v2.x standard structure class.
4    *
5    * For more information, visit: http://hl7api.sourceforge.net/
6    * 
7    * The contents of this file are subject to the Mozilla Public License Version 1.1 
8    * (the "License"); you may not use this file except in compliance with the License. 
9    * You may obtain a copy of the License at http://www.mozilla.org/MPL/ 
10   * Software distributed under the License is distributed on an "AS IS" basis, 
11   * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the 
12   * specific language governing rights and limitations under the License. 
13   * 
14   * The Original Code is "[file_name]".  Description: 
15   * "[one_line_description]" 
16   * 
17   * The Initial Developer of the Original Code is University Health Network. Copyright (C) 
18   * 2012.  All Rights Reserved. 
19   * 
20   * Contributor(s): ______________________________________. 
21   * 
22   * Alternatively, the contents of this file may be used under the terms of the 
23   * GNU General Public License (the  "GPL"), in which case the provisions of the GPL are 
24   * applicable instead of those above.  If you wish to allow use of your version of this 
25   * file only under the terms of the GPL and not to allow others to use your version 
26   * of this file under the MPL, indicate your decision by deleting  the provisions above 
27   * and replace  them with the notice and other provisions required by the GPL License.  
28   * If you do not delete the provisions above, a recipient may use your version of 
29   * this file under either the MPL or the GPL. 
30   * 
31   */
32  
33  
34  package ca.uhn.hl7v2.model.v27.segment;
35  
36  // import ca.uhn.hl7v2.model.v27.group.*;
37  import ca.uhn.hl7v2.model.v27.datatype.*;
38  import ca.uhn.hl7v2.HL7Exception;
39  import ca.uhn.hl7v2.parser.ModelClassFactory;
40  import ca.uhn.hl7v2.parser.DefaultModelClassFactory;
41  import ca.uhn.hl7v2.model.AbstractMessage;
42  import ca.uhn.hl7v2.model.Group;
43  import ca.uhn.hl7v2.model.Type;
44  import ca.uhn.hl7v2.model.AbstractSegment;
45  import ca.uhn.hl7v2.model.Varies;
46  
47  
48  /**
49   *<p>Represents an HL7 PRC message segment (Pricing). 
50   * This segment has the following fields:</p>
51   * <ul>
52       * <li>PRC-1: Primary Key Value - PRC (CWE) <b> </b>
53       * <li>PRC-2: Facility ID - PRC (CWE) <b>optional repeating</b>
54       * <li>PRC-3: Department (CWE) <b>optional repeating</b>
55       * <li>PRC-4: Valid Patient Classes (CWE) <b>optional repeating</b>
56       * <li>PRC-5: Price (CP) <b>optional repeating</b>
57       * <li>PRC-6: Formula (ST) <b>optional repeating</b>
58       * <li>PRC-7: Minimum Quantity (NM) <b>optional </b>
59       * <li>PRC-8: Maximum Quantity (NM) <b>optional </b>
60       * <li>PRC-9: Minimum Price (MO) <b>optional </b>
61       * <li>PRC-10: Maximum Price (MO) <b>optional </b>
62       * <li>PRC-11: Effective Start Date (DTM) <b>optional </b>
63       * <li>PRC-12: Effective End Date (DTM) <b>optional </b>
64       * <li>PRC-13: Price Override Flag (CWE) <b>optional </b>
65       * <li>PRC-14: Billing Category (CWE) <b>optional repeating</b>
66       * <li>PRC-15: Chargeable Flag (ID) <b>optional </b>
67       * <li>PRC-16: Active/Inactive Flag (ID) <b>optional </b>
68       * <li>PRC-17: Cost (MO) <b>optional </b>
69       * <li>PRC-18: Charge on Indicator (CWE) <b>optional </b>
70   * </ul>
71   */
72  @SuppressWarnings("unused")
73  public class PRC extends AbstractSegment {
74  
75      /** 
76       * Creates a new PRC segment
77       */
78      public PRC(Group parent, ModelClassFactory factory) {
79         super(parent, factory);
80         init(factory);
81      }
82  
83      private void init(ModelClassFactory factory) {
84         try {
85                                    this.add(CWE.class, true, 1, 0, new Object[]{ getMessage() }, "Primary Key Value - PRC");
86                                    this.add(CWE.class, false, 0, 0, new Object[]{ getMessage() }, "Facility ID - PRC");
87                                    this.add(CWE.class, false, 0, 0, new Object[]{ getMessage() }, "Department");
88                                    this.add(CWE.class, false, 0, 0, new Object[]{ getMessage() }, "Valid Patient Classes");
89                                    this.add(CP.class, false, 0, 0, new Object[]{ getMessage() }, "Price");
90                                    this.add(ST.class, false, 0, 0, new Object[]{ getMessage() }, "Formula");
91                                    this.add(NM.class, false, 1, 0, new Object[]{ getMessage() }, "Minimum Quantity");
92                                    this.add(NM.class, false, 1, 0, new Object[]{ getMessage() }, "Maximum Quantity");
93                                    this.add(MO.class, false, 1, 0, new Object[]{ getMessage() }, "Minimum Price");
94                                    this.add(MO.class, false, 1, 0, new Object[]{ getMessage() }, "Maximum Price");
95                                    this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Effective Start Date");
96                                    this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Effective End Date");
97                                    this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Price Override Flag");
98                                    this.add(CWE.class, false, 0, 0, new Object[]{ getMessage() }, "Billing Category");
99                                                this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Chargeable Flag");
100                                               this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(183) }, "Active/Inactive Flag");
101                                   this.add(MO.class, false, 1, 0, new Object[]{ getMessage() }, "Cost");
102                                   this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Charge on Indicator");
103        } catch(HL7Exception e) {
104           log.error("Unexpected error creating PRC - this is probably a bug in the source code generator.", e);
105        }
106     }
107 
108 
109 
110     /**
111      * Returns
112      * PRC-1: "Primary Key Value - PRC" - creates it if necessary
113      */
114     public CWE getPrimaryKeyValuePRC() { 
115 		CWE retVal = this.getTypedField(1, 0);
116 		return retVal;
117     }
118     
119     /**
120      * Returns
121      * PRC-1: "Primary Key Value - PRC" - creates it if necessary
122      */
123     public CWE getPrc1_PrimaryKeyValuePRC() { 
124 		CWE retVal = this.getTypedField(1, 0);
125 		return retVal;
126     }
127 
128 
129     /**
130      * Returns all repetitions of Facility ID - PRC (PRC-2).
131      */
132     public CWE[] getFacilityIDPRC() {
133     	CWE[] retVal = this.getTypedField(2, new CWE[0]);
134     	return retVal;
135     }
136 
137 
138     /**
139      * Returns all repetitions of Facility ID - PRC (PRC-2).
140      */
141     public CWE[] getPrc2_FacilityIDPRC() {
142     	CWE[] retVal = this.getTypedField(2, new CWE[0]);
143     	return retVal;
144     }
145 
146 
147     /**
148      * Returns a count of the current number of repetitions of Facility ID - PRC (PRC-2).
149      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
150      * it will return zero.
151      */
152     public int getFacilityIDPRCReps() {
153     	return this.getReps(2);
154     }
155 
156 
157     /**
158      * Returns a specific repetition of
159      * PRC-2: "Facility ID - PRC" - creates it if necessary
160      *
161      * @param rep The repetition index (0-indexed)
162      */
163     public CWE getFacilityIDPRC(int rep) { 
164 		CWE retVal = this.getTypedField(2, rep);
165 		return retVal;
166     }
167 
168     /**
169      * Returns a specific repetition of
170      * PRC-2: "Facility ID - PRC" - creates it if necessary
171      *
172      * @param rep The repetition index (0-indexed)
173      */
174     public CWE getPrc2_FacilityIDPRC(int rep) { 
175 		CWE retVal = this.getTypedField(2, rep);
176 		return retVal;
177     }
178 
179     /**
180      * Returns a count of the current number of repetitions of Facility ID - PRC (PRC-2).
181      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
182      * it will return zero.
183      */
184     public int getPrc2_FacilityIDPRCReps() {
185     	return this.getReps(2);
186     }
187 
188 
189     /**
190      * Inserts a repetition of
191      * PRC-2: "Facility ID - PRC" at a specific index
192      *
193      * @param rep The repetition index (0-indexed)
194      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
195      */
196     public CWE insertFacilityIDPRC(int rep) throws HL7Exception { 
197         return (CWE) super.insertRepetition(2, rep);
198     }
199 
200 
201     /**
202      * Inserts a repetition of
203      * PRC-2: "Facility ID - PRC" at a specific index
204      *
205      * @param rep The repetition index (0-indexed)
206      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
207      */
208     public CWE insertPrc2_FacilityIDPRC(int rep) throws HL7Exception { 
209         return (CWE) super.insertRepetition(2, rep);
210     }
211 
212 
213     /**
214      * Removes a repetition of
215      * PRC-2: "Facility ID - PRC" at a specific index
216      *
217      * @param rep The repetition index (0-indexed)
218      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
219      */
220     public CWE removeFacilityIDPRC(int rep) throws HL7Exception { 
221         return (CWE) super.removeRepetition(2, rep);
222     }
223 
224 
225     /**
226      * Removes a repetition of
227      * PRC-2: "Facility ID - PRC" at a specific index
228      *
229      * @param rep The repetition index (0-indexed)
230      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
231      */
232     public CWE removePrc2_FacilityIDPRC(int rep) throws HL7Exception { 
233         return (CWE) super.removeRepetition(2, rep);
234     }
235 
236 
237 
238     /**
239      * Returns all repetitions of Department (PRC-3).
240      */
241     public CWE[] getDepartment() {
242     	CWE[] retVal = this.getTypedField(3, new CWE[0]);
243     	return retVal;
244     }
245 
246 
247     /**
248      * Returns all repetitions of Department (PRC-3).
249      */
250     public CWE[] getPrc3_Department() {
251     	CWE[] retVal = this.getTypedField(3, new CWE[0]);
252     	return retVal;
253     }
254 
255 
256     /**
257      * Returns a count of the current number of repetitions of Department (PRC-3).
258      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
259      * it will return zero.
260      */
261     public int getDepartmentReps() {
262     	return this.getReps(3);
263     }
264 
265 
266     /**
267      * Returns a specific repetition of
268      * PRC-3: "Department" - creates it if necessary
269      *
270      * @param rep The repetition index (0-indexed)
271      */
272     public CWE getDepartment(int rep) { 
273 		CWE retVal = this.getTypedField(3, rep);
274 		return retVal;
275     }
276 
277     /**
278      * Returns a specific repetition of
279      * PRC-3: "Department" - creates it if necessary
280      *
281      * @param rep The repetition index (0-indexed)
282      */
283     public CWE getPrc3_Department(int rep) { 
284 		CWE retVal = this.getTypedField(3, rep);
285 		return retVal;
286     }
287 
288     /**
289      * Returns a count of the current number of repetitions of Department (PRC-3).
290      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
291      * it will return zero.
292      */
293     public int getPrc3_DepartmentReps() {
294     	return this.getReps(3);
295     }
296 
297 
298     /**
299      * Inserts a repetition of
300      * PRC-3: "Department" at a specific index
301      *
302      * @param rep The repetition index (0-indexed)
303      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
304      */
305     public CWE insertDepartment(int rep) throws HL7Exception { 
306         return (CWE) super.insertRepetition(3, rep);
307     }
308 
309 
310     /**
311      * Inserts a repetition of
312      * PRC-3: "Department" at a specific index
313      *
314      * @param rep The repetition index (0-indexed)
315      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
316      */
317     public CWE insertPrc3_Department(int rep) throws HL7Exception { 
318         return (CWE) super.insertRepetition(3, rep);
319     }
320 
321 
322     /**
323      * Removes a repetition of
324      * PRC-3: "Department" at a specific index
325      *
326      * @param rep The repetition index (0-indexed)
327      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
328      */
329     public CWE removeDepartment(int rep) throws HL7Exception { 
330         return (CWE) super.removeRepetition(3, rep);
331     }
332 
333 
334     /**
335      * Removes a repetition of
336      * PRC-3: "Department" at a specific index
337      *
338      * @param rep The repetition index (0-indexed)
339      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
340      */
341     public CWE removePrc3_Department(int rep) throws HL7Exception { 
342         return (CWE) super.removeRepetition(3, rep);
343     }
344 
345 
346 
347     /**
348      * Returns all repetitions of Valid Patient Classes (PRC-4).
349      */
350     public CWE[] getValidPatientClasses() {
351     	CWE[] retVal = this.getTypedField(4, new CWE[0]);
352     	return retVal;
353     }
354 
355 
356     /**
357      * Returns all repetitions of Valid Patient Classes (PRC-4).
358      */
359     public CWE[] getPrc4_ValidPatientClasses() {
360     	CWE[] retVal = this.getTypedField(4, new CWE[0]);
361     	return retVal;
362     }
363 
364 
365     /**
366      * Returns a count of the current number of repetitions of Valid Patient Classes (PRC-4).
367      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
368      * it will return zero.
369      */
370     public int getValidPatientClassesReps() {
371     	return this.getReps(4);
372     }
373 
374 
375     /**
376      * Returns a specific repetition of
377      * PRC-4: "Valid Patient Classes" - creates it if necessary
378      *
379      * @param rep The repetition index (0-indexed)
380      */
381     public CWE getValidPatientClasses(int rep) { 
382 		CWE retVal = this.getTypedField(4, rep);
383 		return retVal;
384     }
385 
386     /**
387      * Returns a specific repetition of
388      * PRC-4: "Valid Patient Classes" - creates it if necessary
389      *
390      * @param rep The repetition index (0-indexed)
391      */
392     public CWE getPrc4_ValidPatientClasses(int rep) { 
393 		CWE retVal = this.getTypedField(4, rep);
394 		return retVal;
395     }
396 
397     /**
398      * Returns a count of the current number of repetitions of Valid Patient Classes (PRC-4).
399      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
400      * it will return zero.
401      */
402     public int getPrc4_ValidPatientClassesReps() {
403     	return this.getReps(4);
404     }
405 
406 
407     /**
408      * Inserts a repetition of
409      * PRC-4: "Valid Patient Classes" at a specific index
410      *
411      * @param rep The repetition index (0-indexed)
412      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
413      */
414     public CWE insertValidPatientClasses(int rep) throws HL7Exception { 
415         return (CWE) super.insertRepetition(4, rep);
416     }
417 
418 
419     /**
420      * Inserts a repetition of
421      * PRC-4: "Valid Patient Classes" at a specific index
422      *
423      * @param rep The repetition index (0-indexed)
424      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
425      */
426     public CWE insertPrc4_ValidPatientClasses(int rep) throws HL7Exception { 
427         return (CWE) super.insertRepetition(4, rep);
428     }
429 
430 
431     /**
432      * Removes a repetition of
433      * PRC-4: "Valid Patient Classes" at a specific index
434      *
435      * @param rep The repetition index (0-indexed)
436      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
437      */
438     public CWE removeValidPatientClasses(int rep) throws HL7Exception { 
439         return (CWE) super.removeRepetition(4, rep);
440     }
441 
442 
443     /**
444      * Removes a repetition of
445      * PRC-4: "Valid Patient Classes" at a specific index
446      *
447      * @param rep The repetition index (0-indexed)
448      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
449      */
450     public CWE removePrc4_ValidPatientClasses(int rep) throws HL7Exception { 
451         return (CWE) super.removeRepetition(4, rep);
452     }
453 
454 
455 
456     /**
457      * Returns all repetitions of Price (PRC-5).
458      */
459     public CP[] getPrice() {
460     	CP[] retVal = this.getTypedField(5, new CP[0]);
461     	return retVal;
462     }
463 
464 
465     /**
466      * Returns all repetitions of Price (PRC-5).
467      */
468     public CP[] getPrc5_Price() {
469     	CP[] retVal = this.getTypedField(5, new CP[0]);
470     	return retVal;
471     }
472 
473 
474     /**
475      * Returns a count of the current number of repetitions of Price (PRC-5).
476      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
477      * it will return zero.
478      */
479     public int getPriceReps() {
480     	return this.getReps(5);
481     }
482 
483 
484     /**
485      * Returns a specific repetition of
486      * PRC-5: "Price" - creates it if necessary
487      *
488      * @param rep The repetition index (0-indexed)
489      */
490     public CP getPrice(int rep) { 
491 		CP retVal = this.getTypedField(5, rep);
492 		return retVal;
493     }
494 
495     /**
496      * Returns a specific repetition of
497      * PRC-5: "Price" - creates it if necessary
498      *
499      * @param rep The repetition index (0-indexed)
500      */
501     public CP getPrc5_Price(int rep) { 
502 		CP retVal = this.getTypedField(5, rep);
503 		return retVal;
504     }
505 
506     /**
507      * Returns a count of the current number of repetitions of Price (PRC-5).
508      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
509      * it will return zero.
510      */
511     public int getPrc5_PriceReps() {
512     	return this.getReps(5);
513     }
514 
515 
516     /**
517      * Inserts a repetition of
518      * PRC-5: "Price" at a specific index
519      *
520      * @param rep The repetition index (0-indexed)
521      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
522      */
523     public CP insertPrice(int rep) throws HL7Exception { 
524         return (CP) super.insertRepetition(5, rep);
525     }
526 
527 
528     /**
529      * Inserts a repetition of
530      * PRC-5: "Price" at a specific index
531      *
532      * @param rep The repetition index (0-indexed)
533      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
534      */
535     public CP insertPrc5_Price(int rep) throws HL7Exception { 
536         return (CP) super.insertRepetition(5, rep);
537     }
538 
539 
540     /**
541      * Removes a repetition of
542      * PRC-5: "Price" at a specific index
543      *
544      * @param rep The repetition index (0-indexed)
545      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
546      */
547     public CP removePrice(int rep) throws HL7Exception { 
548         return (CP) super.removeRepetition(5, rep);
549     }
550 
551 
552     /**
553      * Removes a repetition of
554      * PRC-5: "Price" at a specific index
555      *
556      * @param rep The repetition index (0-indexed)
557      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
558      */
559     public CP removePrc5_Price(int rep) throws HL7Exception { 
560         return (CP) super.removeRepetition(5, rep);
561     }
562 
563 
564 
565     /**
566      * Returns all repetitions of Formula (PRC-6).
567      */
568     public ST[] getFormula() {
569     	ST[] retVal = this.getTypedField(6, new ST[0]);
570     	return retVal;
571     }
572 
573 
574     /**
575      * Returns all repetitions of Formula (PRC-6).
576      */
577     public ST[] getPrc6_Formula() {
578     	ST[] retVal = this.getTypedField(6, new ST[0]);
579     	return retVal;
580     }
581 
582 
583     /**
584      * Returns a count of the current number of repetitions of Formula (PRC-6).
585      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
586      * it will return zero.
587      */
588     public int getFormulaReps() {
589     	return this.getReps(6);
590     }
591 
592 
593     /**
594      * Returns a specific repetition of
595      * PRC-6: "Formula" - creates it if necessary
596      *
597      * @param rep The repetition index (0-indexed)
598      */
599     public ST getFormula(int rep) { 
600 		ST retVal = this.getTypedField(6, rep);
601 		return retVal;
602     }
603 
604     /**
605      * Returns a specific repetition of
606      * PRC-6: "Formula" - creates it if necessary
607      *
608      * @param rep The repetition index (0-indexed)
609      */
610     public ST getPrc6_Formula(int rep) { 
611 		ST retVal = this.getTypedField(6, rep);
612 		return retVal;
613     }
614 
615     /**
616      * Returns a count of the current number of repetitions of Formula (PRC-6).
617      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
618      * it will return zero.
619      */
620     public int getPrc6_FormulaReps() {
621     	return this.getReps(6);
622     }
623 
624 
625     /**
626      * Inserts a repetition of
627      * PRC-6: "Formula" at a specific index
628      *
629      * @param rep The repetition index (0-indexed)
630      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
631      */
632     public ST insertFormula(int rep) throws HL7Exception { 
633         return (ST) super.insertRepetition(6, rep);
634     }
635 
636 
637     /**
638      * Inserts a repetition of
639      * PRC-6: "Formula" at a specific index
640      *
641      * @param rep The repetition index (0-indexed)
642      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
643      */
644     public ST insertPrc6_Formula(int rep) throws HL7Exception { 
645         return (ST) super.insertRepetition(6, rep);
646     }
647 
648 
649     /**
650      * Removes a repetition of
651      * PRC-6: "Formula" at a specific index
652      *
653      * @param rep The repetition index (0-indexed)
654      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
655      */
656     public ST removeFormula(int rep) throws HL7Exception { 
657         return (ST) super.removeRepetition(6, rep);
658     }
659 
660 
661     /**
662      * Removes a repetition of
663      * PRC-6: "Formula" at a specific index
664      *
665      * @param rep The repetition index (0-indexed)
666      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
667      */
668     public ST removePrc6_Formula(int rep) throws HL7Exception { 
669         return (ST) super.removeRepetition(6, rep);
670     }
671 
672 
673 
674 
675     /**
676      * Returns
677      * PRC-7: "Minimum Quantity" - creates it if necessary
678      */
679     public NM getMinimumQuantity() { 
680 		NM retVal = this.getTypedField(7, 0);
681 		return retVal;
682     }
683     
684     /**
685      * Returns
686      * PRC-7: "Minimum Quantity" - creates it if necessary
687      */
688     public NM getPrc7_MinimumQuantity() { 
689 		NM retVal = this.getTypedField(7, 0);
690 		return retVal;
691     }
692 
693 
694 
695     /**
696      * Returns
697      * PRC-8: "Maximum Quantity" - creates it if necessary
698      */
699     public NM getMaximumQuantity() { 
700 		NM retVal = this.getTypedField(8, 0);
701 		return retVal;
702     }
703     
704     /**
705      * Returns
706      * PRC-8: "Maximum Quantity" - creates it if necessary
707      */
708     public NM getPrc8_MaximumQuantity() { 
709 		NM retVal = this.getTypedField(8, 0);
710 		return retVal;
711     }
712 
713 
714 
715     /**
716      * Returns
717      * PRC-9: "Minimum Price" - creates it if necessary
718      */
719     public MO getMinimumPrice() { 
720 		MO retVal = this.getTypedField(9, 0);
721 		return retVal;
722     }
723     
724     /**
725      * Returns
726      * PRC-9: "Minimum Price" - creates it if necessary
727      */
728     public MO getPrc9_MinimumPrice() { 
729 		MO retVal = this.getTypedField(9, 0);
730 		return retVal;
731     }
732 
733 
734 
735     /**
736      * Returns
737      * PRC-10: "Maximum Price" - creates it if necessary
738      */
739     public MO getMaximumPrice() { 
740 		MO retVal = this.getTypedField(10, 0);
741 		return retVal;
742     }
743     
744     /**
745      * Returns
746      * PRC-10: "Maximum Price" - creates it if necessary
747      */
748     public MO getPrc10_MaximumPrice() { 
749 		MO retVal = this.getTypedField(10, 0);
750 		return retVal;
751     }
752 
753 
754 
755     /**
756      * Returns
757      * PRC-11: "Effective Start Date" - creates it if necessary
758      */
759     public DTM getEffectiveStartDate() { 
760 		DTM retVal = this.getTypedField(11, 0);
761 		return retVal;
762     }
763     
764     /**
765      * Returns
766      * PRC-11: "Effective Start Date" - creates it if necessary
767      */
768     public DTM getPrc11_EffectiveStartDate() { 
769 		DTM retVal = this.getTypedField(11, 0);
770 		return retVal;
771     }
772 
773 
774 
775     /**
776      * Returns
777      * PRC-12: "Effective End Date" - creates it if necessary
778      */
779     public DTM getEffectiveEndDate() { 
780 		DTM retVal = this.getTypedField(12, 0);
781 		return retVal;
782     }
783     
784     /**
785      * Returns
786      * PRC-12: "Effective End Date" - creates it if necessary
787      */
788     public DTM getPrc12_EffectiveEndDate() { 
789 		DTM retVal = this.getTypedField(12, 0);
790 		return retVal;
791     }
792 
793 
794 
795     /**
796      * Returns
797      * PRC-13: "Price Override Flag" - creates it if necessary
798      */
799     public CWE getPriceOverrideFlag() { 
800 		CWE retVal = this.getTypedField(13, 0);
801 		return retVal;
802     }
803     
804     /**
805      * Returns
806      * PRC-13: "Price Override Flag" - creates it if necessary
807      */
808     public CWE getPrc13_PriceOverrideFlag() { 
809 		CWE retVal = this.getTypedField(13, 0);
810 		return retVal;
811     }
812 
813 
814     /**
815      * Returns all repetitions of Billing Category (PRC-14).
816      */
817     public CWE[] getBillingCategory() {
818     	CWE[] retVal = this.getTypedField(14, new CWE[0]);
819     	return retVal;
820     }
821 
822 
823     /**
824      * Returns all repetitions of Billing Category (PRC-14).
825      */
826     public CWE[] getPrc14_BillingCategory() {
827     	CWE[] retVal = this.getTypedField(14, new CWE[0]);
828     	return retVal;
829     }
830 
831 
832     /**
833      * Returns a count of the current number of repetitions of Billing Category (PRC-14).
834      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
835      * it will return zero.
836      */
837     public int getBillingCategoryReps() {
838     	return this.getReps(14);
839     }
840 
841 
842     /**
843      * Returns a specific repetition of
844      * PRC-14: "Billing Category" - creates it if necessary
845      *
846      * @param rep The repetition index (0-indexed)
847      */
848     public CWE getBillingCategory(int rep) { 
849 		CWE retVal = this.getTypedField(14, rep);
850 		return retVal;
851     }
852 
853     /**
854      * Returns a specific repetition of
855      * PRC-14: "Billing Category" - creates it if necessary
856      *
857      * @param rep The repetition index (0-indexed)
858      */
859     public CWE getPrc14_BillingCategory(int rep) { 
860 		CWE retVal = this.getTypedField(14, rep);
861 		return retVal;
862     }
863 
864     /**
865      * Returns a count of the current number of repetitions of Billing Category (PRC-14).
866      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
867      * it will return zero.
868      */
869     public int getPrc14_BillingCategoryReps() {
870     	return this.getReps(14);
871     }
872 
873 
874     /**
875      * Inserts a repetition of
876      * PRC-14: "Billing Category" at a specific index
877      *
878      * @param rep The repetition index (0-indexed)
879      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
880      */
881     public CWE insertBillingCategory(int rep) throws HL7Exception { 
882         return (CWE) super.insertRepetition(14, rep);
883     }
884 
885 
886     /**
887      * Inserts a repetition of
888      * PRC-14: "Billing Category" at a specific index
889      *
890      * @param rep The repetition index (0-indexed)
891      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
892      */
893     public CWE insertPrc14_BillingCategory(int rep) throws HL7Exception { 
894         return (CWE) super.insertRepetition(14, rep);
895     }
896 
897 
898     /**
899      * Removes a repetition of
900      * PRC-14: "Billing Category" at a specific index
901      *
902      * @param rep The repetition index (0-indexed)
903      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
904      */
905     public CWE removeBillingCategory(int rep) throws HL7Exception { 
906         return (CWE) super.removeRepetition(14, rep);
907     }
908 
909 
910     /**
911      * Removes a repetition of
912      * PRC-14: "Billing Category" at a specific index
913      *
914      * @param rep The repetition index (0-indexed)
915      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
916      */
917     public CWE removePrc14_BillingCategory(int rep) throws HL7Exception { 
918         return (CWE) super.removeRepetition(14, rep);
919     }
920 
921 
922 
923 
924     /**
925      * Returns
926      * PRC-15: "Chargeable Flag" - creates it if necessary
927      */
928     public ID getChargeableFlag() { 
929 		ID retVal = this.getTypedField(15, 0);
930 		return retVal;
931     }
932     
933     /**
934      * Returns
935      * PRC-15: "Chargeable Flag" - creates it if necessary
936      */
937     public ID getPrc15_ChargeableFlag() { 
938 		ID retVal = this.getTypedField(15, 0);
939 		return retVal;
940     }
941 
942 
943 
944     /**
945      * Returns
946      * PRC-16: "Active/Inactive Flag" - creates it if necessary
947      */
948     public ID getActiveInactiveFlag() { 
949 		ID retVal = this.getTypedField(16, 0);
950 		return retVal;
951     }
952     
953     /**
954      * Returns
955      * PRC-16: "Active/Inactive Flag" - creates it if necessary
956      */
957     public ID getPrc16_ActiveInactiveFlag() { 
958 		ID retVal = this.getTypedField(16, 0);
959 		return retVal;
960     }
961 
962 
963 
964     /**
965      * Returns
966      * PRC-17: "Cost" - creates it if necessary
967      */
968     public MO getCost() { 
969 		MO retVal = this.getTypedField(17, 0);
970 		return retVal;
971     }
972     
973     /**
974      * Returns
975      * PRC-17: "Cost" - creates it if necessary
976      */
977     public MO getPrc17_Cost() { 
978 		MO retVal = this.getTypedField(17, 0);
979 		return retVal;
980     }
981 
982 
983 
984     /**
985      * Returns
986      * PRC-18: "Charge on Indicator" - creates it if necessary
987      */
988     public CWE getChargeOnIndicator() { 
989 		CWE retVal = this.getTypedField(18, 0);
990 		return retVal;
991     }
992     
993     /**
994      * Returns
995      * PRC-18: "Charge on Indicator" - creates it if necessary
996      */
997     public CWE getPrc18_ChargeOnIndicator() { 
998 		CWE retVal = this.getTypedField(18, 0);
999 		return retVal;
1000     }
1001 
1002 
1003 
1004 
1005 
1006     /** {@inheritDoc} */   
1007     protected Type createNewTypeWithoutReflection(int field) {
1008        switch (field) {
1009           case 0: return new CWE(getMessage());
1010           case 1: return new CWE(getMessage());
1011           case 2: return new CWE(getMessage());
1012           case 3: return new CWE(getMessage());
1013           case 4: return new CP(getMessage());
1014           case 5: return new ST(getMessage());
1015           case 6: return new NM(getMessage());
1016           case 7: return new NM(getMessage());
1017           case 8: return new MO(getMessage());
1018           case 9: return new MO(getMessage());
1019           case 10: return new DTM(getMessage());
1020           case 11: return new DTM(getMessage());
1021           case 12: return new CWE(getMessage());
1022           case 13: return new CWE(getMessage());
1023           case 14: return new ID(getMessage(), new Integer( 136 ));
1024           case 15: return new ID(getMessage(), new Integer( 183 ));
1025           case 16: return new MO(getMessage());
1026           case 17: return new CWE(getMessage());
1027           default: return null;
1028        }
1029    }
1030 
1031 
1032 }
1033