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.v22.segment;
035
036// import ca.uhn.hl7v2.model.v22.group.*;
037import ca.uhn.hl7v2.model.v22.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/**
049 *<p>Represents an HL7 OBR message segment (OBSERVATION REQUEST). 
050 * This segment has the following fields:</p>
051 * <ul>
052     * <li>OBR-1: Set ID - Observation Request (SI) <b>optional </b>
053     * <li>OBR-2: Placer Order Number (CM_PLACER) <b>optional </b>
054     * <li>OBR-3: Filler Order Number (CM_FILLER) <b>optional </b>
055     * <li>OBR-4: Universal Service ID (CE) <b> </b>
056     * <li>OBR-5: Priority (not used) (ID) <b>optional </b>
057     * <li>OBR-6: Requested date / time (not used) (TS) <b>optional </b>
058     * <li>OBR-7: Observation date / time (TS) <b>optional </b>
059     * <li>OBR-8: Observation end date / time (TS) <b>optional </b>
060     * <li>OBR-9: Collection Volume (CQ_QUANTITY) <b>optional </b>
061     * <li>OBR-10: Collector Identifier (CN) <b>optional repeating</b>
062     * <li>OBR-11: Specimen action code (ID) <b>optional </b>
063     * <li>OBR-12: Danger Code (CE) <b>optional </b>
064     * <li>OBR-13: Relevant clinical information (ST) <b>optional </b>
065     * <li>OBR-14: Specimen received date / time (TS) <b>optional </b>
066     * <li>OBR-15: Specimen source (CM_SPS) <b>optional </b>
067     * <li>OBR-16: Ordering Provider (CN) <b>optional </b>
068     * <li>OBR-17: Order Callback Phone Number (TN) <b>optional repeating</b>
069     * <li>OBR-18: Placer field 1 (ST) <b>optional </b>
070     * <li>OBR-19: Placer field 2 (ST) <b>optional </b>
071     * <li>OBR-20: Filler Field 1 (ST) <b>optional </b>
072     * <li>OBR-21: Filler Field 2 (ST) <b>optional </b>
073     * <li>OBR-22: Results report / status change - date / time (TS) <b>optional </b>
074     * <li>OBR-23: Charge to Practice (CM_MOC) <b>optional </b>
075     * <li>OBR-24: Diagnostic service section ID (ID) <b>optional </b>
076     * <li>OBR-25: Result Status (ID) <b>optional </b>
077     * <li>OBR-26: Parent Result (CM_PARENT_RESULT) <b>optional </b>
078     * <li>OBR-27: Quantity / timing (TQ) <b>optional repeating</b>
079     * <li>OBR-28: Result Copies To (CN) <b>optional repeating</b>
080     * <li>OBR-29: Parent Number (CM_EIP) <b>optional </b>
081     * <li>OBR-30: Transportation Mode (ID) <b>optional </b>
082     * <li>OBR-31: Reason for Study (CE) <b>optional repeating</b>
083     * <li>OBR-32: Principal Result Interpreter (CM_NDL) <b>optional </b>
084     * <li>OBR-33: Assistant Result Interpreter (CM_NDL) <b>optional repeating</b>
085     * <li>OBR-34: Technician (CM_NDL) <b>optional repeating</b>
086     * <li>OBR-35: Transcriptionist (CM_NDL) <b>optional repeating</b>
087     * <li>OBR-36: Scheduled date / time (TS) <b>optional </b>
088 * </ul>
089 */
090@SuppressWarnings("unused")
091public class OBR extends AbstractSegment {
092
093    /** 
094     * Creates a new OBR segment
095     */
096    public OBR(Group parent, ModelClassFactory factory) {
097       super(parent, factory);
098       init(factory);
099    }
100
101    private void init(ModelClassFactory factory) {
102       try {
103                                  this.add(SI.class, false, 1, 4, new Object[]{ getMessage() }, "Set ID - Observation Request");
104                                  this.add(CM_PLACER.class, false, 1, 75, new Object[]{ getMessage() }, "Placer Order Number");
105                                  this.add(CM_FILLER.class, false, 1, 75, new Object[]{ getMessage() }, "Filler Order Number");
106                                  this.add(CE.class, true, 1, 200, new Object[]{ getMessage() }, "Universal Service ID");
107                                              this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(0) }, "Priority (not used)");
108                                  this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Requested date / time (not used)");
109                                  this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Observation date / time");
110                                  this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Observation end date / time");
111                                  this.add(CQ_QUANTITY.class, false, 1, 20, new Object[]{ getMessage() }, "Collection Volume");
112                                  this.add(CN.class, false, 0, 60, new Object[]{ getMessage() }, "Collector Identifier");
113                                              this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(65) }, "Specimen action code");
114                                  this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Danger Code");
115                                  this.add(ST.class, false, 1, 300, new Object[]{ getMessage() }, "Relevant clinical information");
116                                  this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Specimen received date / time");
117                                  this.add(CM_SPS.class, false, 1, 300, new Object[]{ getMessage() }, "Specimen source");
118                                  this.add(CN.class, false, 1, 80, new Object[]{ getMessage() }, "Ordering Provider");
119                                  this.add(TN.class, false, 2, 40, new Object[]{ getMessage() }, "Order Callback Phone Number");
120                                  this.add(ST.class, false, 1, 60, new Object[]{ getMessage() }, "Placer field 1");
121                                  this.add(ST.class, false, 1, 60, new Object[]{ getMessage() }, "Placer field 2");
122                                  this.add(ST.class, false, 1, 60, new Object[]{ getMessage() }, "Filler Field 1");
123                                  this.add(ST.class, false, 1, 60, new Object[]{ getMessage() }, "Filler Field 2");
124                                  this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Results report / status change - date / time");
125                                  this.add(CM_MOC.class, false, 1, 40, new Object[]{ getMessage() }, "Charge to Practice");
126                                              this.add(ID.class, false, 1, 10, new Object[]{ getMessage(), new Integer(74) }, "Diagnostic service section ID");
127                                              this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(123) }, "Result Status");
128                                  this.add(CM_PARENT_RESULT.class, false, 1, 200, new Object[]{ getMessage() }, "Parent Result");
129                                  this.add(TQ.class, false, 0, 200, new Object[]{ getMessage() }, "Quantity / timing");
130                                  this.add(CN.class, false, 5, 150, new Object[]{ getMessage() }, "Result Copies To");
131                                  this.add(CM_EIP.class, false, 1, 150, new Object[]{ getMessage() }, "Parent Number");
132                                              this.add(ID.class, false, 1, 20, new Object[]{ getMessage(), new Integer(124) }, "Transportation Mode");
133                                  this.add(CE.class, false, 0, 300, new Object[]{ getMessage() }, "Reason for Study");
134                                  this.add(CM_NDL.class, false, 1, 60, new Object[]{ getMessage() }, "Principal Result Interpreter");
135                                  this.add(CM_NDL.class, false, 0, 60, new Object[]{ getMessage() }, "Assistant Result Interpreter");
136                                  this.add(CM_NDL.class, false, 0, 60, new Object[]{ getMessage() }, "Technician");
137                                  this.add(CM_NDL.class, false, 0, 60, new Object[]{ getMessage() }, "Transcriptionist");
138                                  this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Scheduled date / time");
139       } catch(HL7Exception e) {
140          log.error("Unexpected error creating OBR - this is probably a bug in the source code generator.", e);
141       }
142    }
143
144
145
146    /**
147     * Returns
148     * OBR-1: "Set ID - Observation Request" - creates it if necessary
149     */
150    public SI getSetIDObservationRequest() { 
151                SI retVal = this.getTypedField(1, 0);
152                return retVal;
153    }
154    
155    /**
156     * Returns
157     * OBR-1: "Set ID - Observation Request" - creates it if necessary
158     */
159    public SI getObr1_SetIDObservationRequest() { 
160                SI retVal = this.getTypedField(1, 0);
161                return retVal;
162    }
163
164
165
166    /**
167     * Returns
168     * OBR-2: "Placer Order Number" - creates it if necessary
169     */
170    public CM_PLACER getPlacerOrderNumber() { 
171                CM_PLACER retVal = this.getTypedField(2, 0);
172                return retVal;
173    }
174    
175    /**
176     * Returns
177     * OBR-2: "Placer Order Number" - creates it if necessary
178     */
179    public CM_PLACER getObr2_PlacerOrderNumber() { 
180                CM_PLACER retVal = this.getTypedField(2, 0);
181                return retVal;
182    }
183
184
185
186    /**
187     * Returns
188     * OBR-3: "Filler Order Number" - creates it if necessary
189     */
190    public CM_FILLER getFillerOrderNumber() { 
191                CM_FILLER retVal = this.getTypedField(3, 0);
192                return retVal;
193    }
194    
195    /**
196     * Returns
197     * OBR-3: "Filler Order Number" - creates it if necessary
198     */
199    public CM_FILLER getObr3_FillerOrderNumber() { 
200                CM_FILLER retVal = this.getTypedField(3, 0);
201                return retVal;
202    }
203
204
205
206    /**
207     * Returns
208     * OBR-4: "Universal Service ID" - creates it if necessary
209     */
210    public CE getUniversalServiceID() { 
211                CE retVal = this.getTypedField(4, 0);
212                return retVal;
213    }
214    
215    /**
216     * Returns
217     * OBR-4: "Universal Service ID" - creates it if necessary
218     */
219    public CE getObr4_UniversalServiceID() { 
220                CE retVal = this.getTypedField(4, 0);
221                return retVal;
222    }
223
224
225
226    /**
227     * Returns
228     * OBR-5: "Priority (not used)" - creates it if necessary
229     */
230    public ID getPriorityNotused() { 
231                ID retVal = this.getTypedField(5, 0);
232                return retVal;
233    }
234    
235    /**
236     * Returns
237     * OBR-5: "Priority (not used)" - creates it if necessary
238     */
239    public ID getObr5_PriorityNotused() { 
240                ID retVal = this.getTypedField(5, 0);
241                return retVal;
242    }
243
244
245
246    /**
247     * Returns
248     * OBR-6: "Requested date / time (not used)" - creates it if necessary
249     */
250    public TS getRequestedDateTimeNotused() { 
251                TS retVal = this.getTypedField(6, 0);
252                return retVal;
253    }
254    
255    /**
256     * Returns
257     * OBR-6: "Requested date / time (not used)" - creates it if necessary
258     */
259    public TS getObr6_RequestedDateTimeNotused() { 
260                TS retVal = this.getTypedField(6, 0);
261                return retVal;
262    }
263
264
265
266    /**
267     * Returns
268     * OBR-7: "Observation date / time" - creates it if necessary
269     */
270    public TS getObservationDateTime() { 
271                TS retVal = this.getTypedField(7, 0);
272                return retVal;
273    }
274    
275    /**
276     * Returns
277     * OBR-7: "Observation date / time" - creates it if necessary
278     */
279    public TS getObr7_ObservationDateTime() { 
280                TS retVal = this.getTypedField(7, 0);
281                return retVal;
282    }
283
284
285
286    /**
287     * Returns
288     * OBR-8: "Observation end date / time" - creates it if necessary
289     */
290    public TS getObservationEndDateTime() { 
291                TS retVal = this.getTypedField(8, 0);
292                return retVal;
293    }
294    
295    /**
296     * Returns
297     * OBR-8: "Observation end date / time" - creates it if necessary
298     */
299    public TS getObr8_ObservationEndDateTime() { 
300                TS retVal = this.getTypedField(8, 0);
301                return retVal;
302    }
303
304
305
306    /**
307     * Returns
308     * OBR-9: "Collection Volume" - creates it if necessary
309     */
310    public CQ_QUANTITY getCollectionVolume() { 
311                CQ_QUANTITY retVal = this.getTypedField(9, 0);
312                return retVal;
313    }
314    
315    /**
316     * Returns
317     * OBR-9: "Collection Volume" - creates it if necessary
318     */
319    public CQ_QUANTITY getObr9_CollectionVolume() { 
320                CQ_QUANTITY retVal = this.getTypedField(9, 0);
321                return retVal;
322    }
323
324
325    /**
326     * Returns all repetitions of Collector Identifier (OBR-10).
327     */
328    public CN[] getCollectorIdentifier() {
329        CN[] retVal = this.getTypedField(10, new CN[0]);
330        return retVal;
331    }
332
333
334    /**
335     * Returns all repetitions of Collector Identifier (OBR-10).
336     */
337    public CN[] getObr10_CollectorIdentifier() {
338        CN[] retVal = this.getTypedField(10, new CN[0]);
339        return retVal;
340    }
341
342
343    /**
344     * Returns a count of the current number of repetitions of Collector Identifier (OBR-10).
345     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
346     * it will return zero.
347     */
348    public int getCollectorIdentifierReps() {
349        return this.getReps(10);
350    }
351
352
353    /**
354     * Returns a specific repetition of
355     * OBR-10: "Collector Identifier" - creates it if necessary
356     *
357     * @param rep The repetition index (0-indexed)
358     */
359    public CN getCollectorIdentifier(int rep) { 
360                CN retVal = this.getTypedField(10, rep);
361                return retVal;
362    }
363
364    /**
365     * Returns a specific repetition of
366     * OBR-10: "Collector Identifier" - creates it if necessary
367     *
368     * @param rep The repetition index (0-indexed)
369     */
370    public CN getObr10_CollectorIdentifier(int rep) { 
371                CN retVal = this.getTypedField(10, rep);
372                return retVal;
373    }
374
375    /**
376     * Returns a count of the current number of repetitions of Collector Identifier (OBR-10).
377     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
378     * it will return zero.
379     */
380    public int getObr10_CollectorIdentifierReps() {
381        return this.getReps(10);
382    }
383
384
385    /**
386     * Inserts a repetition of
387     * OBR-10: "Collector Identifier" at a specific index
388     *
389     * @param rep The repetition index (0-indexed)
390     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
391     */
392    public CN insertCollectorIdentifier(int rep) throws HL7Exception { 
393        return (CN) super.insertRepetition(10, rep);
394    }
395
396
397    /**
398     * Inserts a repetition of
399     * OBR-10: "Collector Identifier" at a specific index
400     *
401     * @param rep The repetition index (0-indexed)
402     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
403     */
404    public CN insertObr10_CollectorIdentifier(int rep) throws HL7Exception { 
405        return (CN) super.insertRepetition(10, rep);
406    }
407
408
409    /**
410     * Removes a repetition of
411     * OBR-10: "Collector Identifier" at a specific index
412     *
413     * @param rep The repetition index (0-indexed)
414     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
415     */
416    public CN removeCollectorIdentifier(int rep) throws HL7Exception { 
417        return (CN) super.removeRepetition(10, rep);
418    }
419
420
421    /**
422     * Removes a repetition of
423     * OBR-10: "Collector Identifier" at a specific index
424     *
425     * @param rep The repetition index (0-indexed)
426     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
427     */
428    public CN removeObr10_CollectorIdentifier(int rep) throws HL7Exception { 
429        return (CN) super.removeRepetition(10, rep);
430    }
431
432
433
434
435    /**
436     * Returns
437     * OBR-11: "Specimen action code" - creates it if necessary
438     */
439    public ID getSpecimenActionCode() { 
440                ID retVal = this.getTypedField(11, 0);
441                return retVal;
442    }
443    
444    /**
445     * Returns
446     * OBR-11: "Specimen action code" - creates it if necessary
447     */
448    public ID getObr11_SpecimenActionCode() { 
449                ID retVal = this.getTypedField(11, 0);
450                return retVal;
451    }
452
453
454
455    /**
456     * Returns
457     * OBR-12: "Danger Code" - creates it if necessary
458     */
459    public CE getDangerCode() { 
460                CE retVal = this.getTypedField(12, 0);
461                return retVal;
462    }
463    
464    /**
465     * Returns
466     * OBR-12: "Danger Code" - creates it if necessary
467     */
468    public CE getObr12_DangerCode() { 
469                CE retVal = this.getTypedField(12, 0);
470                return retVal;
471    }
472
473
474
475    /**
476     * Returns
477     * OBR-13: "Relevant clinical information" - creates it if necessary
478     */
479    public ST getRelevantClinicalInformation() { 
480                ST retVal = this.getTypedField(13, 0);
481                return retVal;
482    }
483    
484    /**
485     * Returns
486     * OBR-13: "Relevant clinical information" - creates it if necessary
487     */
488    public ST getObr13_RelevantClinicalInformation() { 
489                ST retVal = this.getTypedField(13, 0);
490                return retVal;
491    }
492
493
494
495    /**
496     * Returns
497     * OBR-14: "Specimen received date / time" - creates it if necessary
498     */
499    public TS getSpecimenReceivedDateTime() { 
500                TS retVal = this.getTypedField(14, 0);
501                return retVal;
502    }
503    
504    /**
505     * Returns
506     * OBR-14: "Specimen received date / time" - creates it if necessary
507     */
508    public TS getObr14_SpecimenReceivedDateTime() { 
509                TS retVal = this.getTypedField(14, 0);
510                return retVal;
511    }
512
513
514
515    /**
516     * Returns
517     * OBR-15: "Specimen source" - creates it if necessary
518     */
519    public CM_SPS getSpecimenSource() { 
520                CM_SPS retVal = this.getTypedField(15, 0);
521                return retVal;
522    }
523    
524    /**
525     * Returns
526     * OBR-15: "Specimen source" - creates it if necessary
527     */
528    public CM_SPS getObr15_SpecimenSource() { 
529                CM_SPS retVal = this.getTypedField(15, 0);
530                return retVal;
531    }
532
533
534
535    /**
536     * Returns
537     * OBR-16: "Ordering Provider" - creates it if necessary
538     */
539    public CN getOrderingProvider() { 
540                CN retVal = this.getTypedField(16, 0);
541                return retVal;
542    }
543    
544    /**
545     * Returns
546     * OBR-16: "Ordering Provider" - creates it if necessary
547     */
548    public CN getObr16_OrderingProvider() { 
549                CN retVal = this.getTypedField(16, 0);
550                return retVal;
551    }
552
553
554    /**
555     * Returns all repetitions of Order Callback Phone Number (OBR-17).
556     */
557    public TN[] getOrderCallbackPhoneNumber() {
558        TN[] retVal = this.getTypedField(17, new TN[0]);
559        return retVal;
560    }
561
562
563    /**
564     * Returns all repetitions of Order Callback Phone Number (OBR-17).
565     */
566    public TN[] getObr17_OrderCallbackPhoneNumber() {
567        TN[] retVal = this.getTypedField(17, new TN[0]);
568        return retVal;
569    }
570
571
572    /**
573     * Returns a count of the current number of repetitions of Order Callback Phone Number (OBR-17).
574     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
575     * it will return zero.
576     */
577    public int getOrderCallbackPhoneNumberReps() {
578        return this.getReps(17);
579    }
580
581
582    /**
583     * Returns a specific repetition of
584     * OBR-17: "Order Callback Phone Number" - creates it if necessary
585     *
586     * @param rep The repetition index (0-indexed)
587     */
588    public TN getOrderCallbackPhoneNumber(int rep) { 
589                TN retVal = this.getTypedField(17, rep);
590                return retVal;
591    }
592
593    /**
594     * Returns a specific repetition of
595     * OBR-17: "Order Callback Phone Number" - creates it if necessary
596     *
597     * @param rep The repetition index (0-indexed)
598     */
599    public TN getObr17_OrderCallbackPhoneNumber(int rep) { 
600                TN retVal = this.getTypedField(17, rep);
601                return retVal;
602    }
603
604    /**
605     * Returns a count of the current number of repetitions of Order Callback Phone Number (OBR-17).
606     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
607     * it will return zero.
608     */
609    public int getObr17_OrderCallbackPhoneNumberReps() {
610        return this.getReps(17);
611    }
612
613
614    /**
615     * Inserts a repetition of
616     * OBR-17: "Order Callback Phone Number" at a specific index
617     *
618     * @param rep The repetition index (0-indexed)
619     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
620     */
621    public TN insertOrderCallbackPhoneNumber(int rep) throws HL7Exception { 
622        return (TN) super.insertRepetition(17, rep);
623    }
624
625
626    /**
627     * Inserts a repetition of
628     * OBR-17: "Order Callback Phone Number" at a specific index
629     *
630     * @param rep The repetition index (0-indexed)
631     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
632     */
633    public TN insertObr17_OrderCallbackPhoneNumber(int rep) throws HL7Exception { 
634        return (TN) super.insertRepetition(17, rep);
635    }
636
637
638    /**
639     * Removes a repetition of
640     * OBR-17: "Order Callback Phone Number" at a specific index
641     *
642     * @param rep The repetition index (0-indexed)
643     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
644     */
645    public TN removeOrderCallbackPhoneNumber(int rep) throws HL7Exception { 
646        return (TN) super.removeRepetition(17, rep);
647    }
648
649
650    /**
651     * Removes a repetition of
652     * OBR-17: "Order Callback Phone Number" at a specific index
653     *
654     * @param rep The repetition index (0-indexed)
655     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
656     */
657    public TN removeObr17_OrderCallbackPhoneNumber(int rep) throws HL7Exception { 
658        return (TN) super.removeRepetition(17, rep);
659    }
660
661
662
663
664    /**
665     * Returns
666     * OBR-18: "Placer field 1" - creates it if necessary
667     */
668    public ST getPlacerField1() { 
669                ST retVal = this.getTypedField(18, 0);
670                return retVal;
671    }
672    
673    /**
674     * Returns
675     * OBR-18: "Placer field 1" - creates it if necessary
676     */
677    public ST getObr18_PlacerField1() { 
678                ST retVal = this.getTypedField(18, 0);
679                return retVal;
680    }
681
682
683
684    /**
685     * Returns
686     * OBR-19: "Placer field 2" - creates it if necessary
687     */
688    public ST getPlacerField2() { 
689                ST retVal = this.getTypedField(19, 0);
690                return retVal;
691    }
692    
693    /**
694     * Returns
695     * OBR-19: "Placer field 2" - creates it if necessary
696     */
697    public ST getObr19_PlacerField2() { 
698                ST retVal = this.getTypedField(19, 0);
699                return retVal;
700    }
701
702
703
704    /**
705     * Returns
706     * OBR-20: "Filler Field 1" - creates it if necessary
707     */
708    public ST getFillerField1() { 
709                ST retVal = this.getTypedField(20, 0);
710                return retVal;
711    }
712    
713    /**
714     * Returns
715     * OBR-20: "Filler Field 1" - creates it if necessary
716     */
717    public ST getObr20_FillerField1() { 
718                ST retVal = this.getTypedField(20, 0);
719                return retVal;
720    }
721
722
723
724    /**
725     * Returns
726     * OBR-21: "Filler Field 2" - creates it if necessary
727     */
728    public ST getFillerField2() { 
729                ST retVal = this.getTypedField(21, 0);
730                return retVal;
731    }
732    
733    /**
734     * Returns
735     * OBR-21: "Filler Field 2" - creates it if necessary
736     */
737    public ST getObr21_FillerField2() { 
738                ST retVal = this.getTypedField(21, 0);
739                return retVal;
740    }
741
742
743
744    /**
745     * Returns
746     * OBR-22: "Results report / status change - date / time" - creates it if necessary
747     */
748    public TS getResultsReportStatusChangeDateTime() { 
749                TS retVal = this.getTypedField(22, 0);
750                return retVal;
751    }
752    
753    /**
754     * Returns
755     * OBR-22: "Results report / status change - date / time" - creates it if necessary
756     */
757    public TS getObr22_ResultsReportStatusChangeDateTime() { 
758                TS retVal = this.getTypedField(22, 0);
759                return retVal;
760    }
761
762
763
764    /**
765     * Returns
766     * OBR-23: "Charge to Practice" - creates it if necessary
767     */
768    public CM_MOC getChargeToPractice() { 
769                CM_MOC retVal = this.getTypedField(23, 0);
770                return retVal;
771    }
772    
773    /**
774     * Returns
775     * OBR-23: "Charge to Practice" - creates it if necessary
776     */
777    public CM_MOC getObr23_ChargeToPractice() { 
778                CM_MOC retVal = this.getTypedField(23, 0);
779                return retVal;
780    }
781
782
783
784    /**
785     * Returns
786     * OBR-24: "Diagnostic service section ID" - creates it if necessary
787     */
788    public ID getDiagnosticServiceSectionID() { 
789                ID retVal = this.getTypedField(24, 0);
790                return retVal;
791    }
792    
793    /**
794     * Returns
795     * OBR-24: "Diagnostic service section ID" - creates it if necessary
796     */
797    public ID getObr24_DiagnosticServiceSectionID() { 
798                ID retVal = this.getTypedField(24, 0);
799                return retVal;
800    }
801
802
803
804    /**
805     * Returns
806     * OBR-25: "Result Status" - creates it if necessary
807     */
808    public ID getResultStatus() { 
809                ID retVal = this.getTypedField(25, 0);
810                return retVal;
811    }
812    
813    /**
814     * Returns
815     * OBR-25: "Result Status" - creates it if necessary
816     */
817    public ID getObr25_ResultStatus() { 
818                ID retVal = this.getTypedField(25, 0);
819                return retVal;
820    }
821
822
823
824    /**
825     * Returns
826     * OBR-26: "Parent Result" - creates it if necessary
827     */
828    public CM_PARENT_RESULT getParentResult() { 
829                CM_PARENT_RESULT retVal = this.getTypedField(26, 0);
830                return retVal;
831    }
832    
833    /**
834     * Returns
835     * OBR-26: "Parent Result" - creates it if necessary
836     */
837    public CM_PARENT_RESULT getObr26_ParentResult() { 
838                CM_PARENT_RESULT retVal = this.getTypedField(26, 0);
839                return retVal;
840    }
841
842
843    /**
844     * Returns all repetitions of Quantity / timing (OBR-27).
845     */
846    public TQ[] getQuantityTiming() {
847        TQ[] retVal = this.getTypedField(27, new TQ[0]);
848        return retVal;
849    }
850
851
852    /**
853     * Returns all repetitions of Quantity / timing (OBR-27).
854     */
855    public TQ[] getObr27_QuantityTiming() {
856        TQ[] retVal = this.getTypedField(27, new TQ[0]);
857        return retVal;
858    }
859
860
861    /**
862     * Returns a count of the current number of repetitions of Quantity / timing (OBR-27).
863     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
864     * it will return zero.
865     */
866    public int getQuantityTimingReps() {
867        return this.getReps(27);
868    }
869
870
871    /**
872     * Returns a specific repetition of
873     * OBR-27: "Quantity / timing" - creates it if necessary
874     *
875     * @param rep The repetition index (0-indexed)
876     */
877    public TQ getQuantityTiming(int rep) { 
878                TQ retVal = this.getTypedField(27, rep);
879                return retVal;
880    }
881
882    /**
883     * Returns a specific repetition of
884     * OBR-27: "Quantity / timing" - creates it if necessary
885     *
886     * @param rep The repetition index (0-indexed)
887     */
888    public TQ getObr27_QuantityTiming(int rep) { 
889                TQ retVal = this.getTypedField(27, rep);
890                return retVal;
891    }
892
893    /**
894     * Returns a count of the current number of repetitions of Quantity / timing (OBR-27).
895     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
896     * it will return zero.
897     */
898    public int getObr27_QuantityTimingReps() {
899        return this.getReps(27);
900    }
901
902
903    /**
904     * Inserts a repetition of
905     * OBR-27: "Quantity / timing" at a specific index
906     *
907     * @param rep The repetition index (0-indexed)
908     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
909     */
910    public TQ insertQuantityTiming(int rep) throws HL7Exception { 
911        return (TQ) super.insertRepetition(27, rep);
912    }
913
914
915    /**
916     * Inserts a repetition of
917     * OBR-27: "Quantity / timing" at a specific index
918     *
919     * @param rep The repetition index (0-indexed)
920     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
921     */
922    public TQ insertObr27_QuantityTiming(int rep) throws HL7Exception { 
923        return (TQ) super.insertRepetition(27, rep);
924    }
925
926
927    /**
928     * Removes a repetition of
929     * OBR-27: "Quantity / timing" at a specific index
930     *
931     * @param rep The repetition index (0-indexed)
932     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
933     */
934    public TQ removeQuantityTiming(int rep) throws HL7Exception { 
935        return (TQ) super.removeRepetition(27, rep);
936    }
937
938
939    /**
940     * Removes a repetition of
941     * OBR-27: "Quantity / timing" at a specific index
942     *
943     * @param rep The repetition index (0-indexed)
944     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
945     */
946    public TQ removeObr27_QuantityTiming(int rep) throws HL7Exception { 
947        return (TQ) super.removeRepetition(27, rep);
948    }
949
950
951
952    /**
953     * Returns all repetitions of Result Copies To (OBR-28).
954     */
955    public CN[] getResultCopiesTo() {
956        CN[] retVal = this.getTypedField(28, new CN[0]);
957        return retVal;
958    }
959
960
961    /**
962     * Returns all repetitions of Result Copies To (OBR-28).
963     */
964    public CN[] getObr28_ResultCopiesTo() {
965        CN[] retVal = this.getTypedField(28, new CN[0]);
966        return retVal;
967    }
968
969
970    /**
971     * Returns a count of the current number of repetitions of Result Copies To (OBR-28).
972     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
973     * it will return zero.
974     */
975    public int getResultCopiesToReps() {
976        return this.getReps(28);
977    }
978
979
980    /**
981     * Returns a specific repetition of
982     * OBR-28: "Result Copies To" - creates it if necessary
983     *
984     * @param rep The repetition index (0-indexed)
985     */
986    public CN getResultCopiesTo(int rep) { 
987                CN retVal = this.getTypedField(28, rep);
988                return retVal;
989    }
990
991    /**
992     * Returns a specific repetition of
993     * OBR-28: "Result Copies To" - creates it if necessary
994     *
995     * @param rep The repetition index (0-indexed)
996     */
997    public CN getObr28_ResultCopiesTo(int rep) { 
998                CN retVal = this.getTypedField(28, rep);
999                return retVal;
1000    }
1001
1002    /**
1003     * Returns a count of the current number of repetitions of Result Copies To (OBR-28).
1004     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1005     * it will return zero.
1006     */
1007    public int getObr28_ResultCopiesToReps() {
1008        return this.getReps(28);
1009    }
1010
1011
1012    /**
1013     * Inserts a repetition of
1014     * OBR-28: "Result Copies To" at a specific index
1015     *
1016     * @param rep The repetition index (0-indexed)
1017     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1018     */
1019    public CN insertResultCopiesTo(int rep) throws HL7Exception { 
1020        return (CN) super.insertRepetition(28, rep);
1021    }
1022
1023
1024    /**
1025     * Inserts a repetition of
1026     * OBR-28: "Result Copies To" at a specific index
1027     *
1028     * @param rep The repetition index (0-indexed)
1029     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1030     */
1031    public CN insertObr28_ResultCopiesTo(int rep) throws HL7Exception { 
1032        return (CN) super.insertRepetition(28, rep);
1033    }
1034
1035
1036    /**
1037     * Removes a repetition of
1038     * OBR-28: "Result Copies To" at a specific index
1039     *
1040     * @param rep The repetition index (0-indexed)
1041     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1042     */
1043    public CN removeResultCopiesTo(int rep) throws HL7Exception { 
1044        return (CN) super.removeRepetition(28, rep);
1045    }
1046
1047
1048    /**
1049     * Removes a repetition of
1050     * OBR-28: "Result Copies To" at a specific index
1051     *
1052     * @param rep The repetition index (0-indexed)
1053     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1054     */
1055    public CN removeObr28_ResultCopiesTo(int rep) throws HL7Exception { 
1056        return (CN) super.removeRepetition(28, rep);
1057    }
1058
1059
1060
1061
1062    /**
1063     * Returns
1064     * OBR-29: "Parent Number" - creates it if necessary
1065     */
1066    public CM_EIP getParentNumber() { 
1067                CM_EIP retVal = this.getTypedField(29, 0);
1068                return retVal;
1069    }
1070    
1071    /**
1072     * Returns
1073     * OBR-29: "Parent Number" - creates it if necessary
1074     */
1075    public CM_EIP getObr29_ParentNumber() { 
1076                CM_EIP retVal = this.getTypedField(29, 0);
1077                return retVal;
1078    }
1079
1080
1081
1082    /**
1083     * Returns
1084     * OBR-30: "Transportation Mode" - creates it if necessary
1085     */
1086    public ID getTransportationMode() { 
1087                ID retVal = this.getTypedField(30, 0);
1088                return retVal;
1089    }
1090    
1091    /**
1092     * Returns
1093     * OBR-30: "Transportation Mode" - creates it if necessary
1094     */
1095    public ID getObr30_TransportationMode() { 
1096                ID retVal = this.getTypedField(30, 0);
1097                return retVal;
1098    }
1099
1100
1101    /**
1102     * Returns all repetitions of Reason for Study (OBR-31).
1103     */
1104    public CE[] getReasonForStudy() {
1105        CE[] retVal = this.getTypedField(31, new CE[0]);
1106        return retVal;
1107    }
1108
1109
1110    /**
1111     * Returns all repetitions of Reason for Study (OBR-31).
1112     */
1113    public CE[] getObr31_ReasonForStudy() {
1114        CE[] retVal = this.getTypedField(31, new CE[0]);
1115        return retVal;
1116    }
1117
1118
1119    /**
1120     * Returns a count of the current number of repetitions of Reason for Study (OBR-31).
1121     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1122     * it will return zero.
1123     */
1124    public int getReasonForStudyReps() {
1125        return this.getReps(31);
1126    }
1127
1128
1129    /**
1130     * Returns a specific repetition of
1131     * OBR-31: "Reason for Study" - creates it if necessary
1132     *
1133     * @param rep The repetition index (0-indexed)
1134     */
1135    public CE getReasonForStudy(int rep) { 
1136                CE retVal = this.getTypedField(31, rep);
1137                return retVal;
1138    }
1139
1140    /**
1141     * Returns a specific repetition of
1142     * OBR-31: "Reason for Study" - creates it if necessary
1143     *
1144     * @param rep The repetition index (0-indexed)
1145     */
1146    public CE getObr31_ReasonForStudy(int rep) { 
1147                CE retVal = this.getTypedField(31, rep);
1148                return retVal;
1149    }
1150
1151    /**
1152     * Returns a count of the current number of repetitions of Reason for Study (OBR-31).
1153     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1154     * it will return zero.
1155     */
1156    public int getObr31_ReasonForStudyReps() {
1157        return this.getReps(31);
1158    }
1159
1160
1161    /**
1162     * Inserts a repetition of
1163     * OBR-31: "Reason for Study" at a specific index
1164     *
1165     * @param rep The repetition index (0-indexed)
1166     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1167     */
1168    public CE insertReasonForStudy(int rep) throws HL7Exception { 
1169        return (CE) super.insertRepetition(31, rep);
1170    }
1171
1172
1173    /**
1174     * Inserts a repetition of
1175     * OBR-31: "Reason for Study" at a specific index
1176     *
1177     * @param rep The repetition index (0-indexed)
1178     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1179     */
1180    public CE insertObr31_ReasonForStudy(int rep) throws HL7Exception { 
1181        return (CE) super.insertRepetition(31, rep);
1182    }
1183
1184
1185    /**
1186     * Removes a repetition of
1187     * OBR-31: "Reason for Study" at a specific index
1188     *
1189     * @param rep The repetition index (0-indexed)
1190     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1191     */
1192    public CE removeReasonForStudy(int rep) throws HL7Exception { 
1193        return (CE) super.removeRepetition(31, rep);
1194    }
1195
1196
1197    /**
1198     * Removes a repetition of
1199     * OBR-31: "Reason for Study" at a specific index
1200     *
1201     * @param rep The repetition index (0-indexed)
1202     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1203     */
1204    public CE removeObr31_ReasonForStudy(int rep) throws HL7Exception { 
1205        return (CE) super.removeRepetition(31, rep);
1206    }
1207
1208
1209
1210
1211    /**
1212     * Returns
1213     * OBR-32: "Principal Result Interpreter" - creates it if necessary
1214     */
1215    public CM_NDL getPrincipalResultInterpreter() { 
1216                CM_NDL retVal = this.getTypedField(32, 0);
1217                return retVal;
1218    }
1219    
1220    /**
1221     * Returns
1222     * OBR-32: "Principal Result Interpreter" - creates it if necessary
1223     */
1224    public CM_NDL getObr32_PrincipalResultInterpreter() { 
1225                CM_NDL retVal = this.getTypedField(32, 0);
1226                return retVal;
1227    }
1228
1229
1230    /**
1231     * Returns all repetitions of Assistant Result Interpreter (OBR-33).
1232     */
1233    public CM_NDL[] getAssistantResultInterpreter() {
1234        CM_NDL[] retVal = this.getTypedField(33, new CM_NDL[0]);
1235        return retVal;
1236    }
1237
1238
1239    /**
1240     * Returns all repetitions of Assistant Result Interpreter (OBR-33).
1241     */
1242    public CM_NDL[] getObr33_AssistantResultInterpreter() {
1243        CM_NDL[] retVal = this.getTypedField(33, new CM_NDL[0]);
1244        return retVal;
1245    }
1246
1247
1248    /**
1249     * Returns a count of the current number of repetitions of Assistant Result Interpreter (OBR-33).
1250     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1251     * it will return zero.
1252     */
1253    public int getAssistantResultInterpreterReps() {
1254        return this.getReps(33);
1255    }
1256
1257
1258    /**
1259     * Returns a specific repetition of
1260     * OBR-33: "Assistant Result Interpreter" - creates it if necessary
1261     *
1262     * @param rep The repetition index (0-indexed)
1263     */
1264    public CM_NDL getAssistantResultInterpreter(int rep) { 
1265                CM_NDL retVal = this.getTypedField(33, rep);
1266                return retVal;
1267    }
1268
1269    /**
1270     * Returns a specific repetition of
1271     * OBR-33: "Assistant Result Interpreter" - creates it if necessary
1272     *
1273     * @param rep The repetition index (0-indexed)
1274     */
1275    public CM_NDL getObr33_AssistantResultInterpreter(int rep) { 
1276                CM_NDL retVal = this.getTypedField(33, rep);
1277                return retVal;
1278    }
1279
1280    /**
1281     * Returns a count of the current number of repetitions of Assistant Result Interpreter (OBR-33).
1282     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1283     * it will return zero.
1284     */
1285    public int getObr33_AssistantResultInterpreterReps() {
1286        return this.getReps(33);
1287    }
1288
1289
1290    /**
1291     * Inserts a repetition of
1292     * OBR-33: "Assistant Result Interpreter" at a specific index
1293     *
1294     * @param rep The repetition index (0-indexed)
1295     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1296     */
1297    public CM_NDL insertAssistantResultInterpreter(int rep) throws HL7Exception { 
1298        return (CM_NDL) super.insertRepetition(33, rep);
1299    }
1300
1301
1302    /**
1303     * Inserts a repetition of
1304     * OBR-33: "Assistant Result Interpreter" at a specific index
1305     *
1306     * @param rep The repetition index (0-indexed)
1307     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1308     */
1309    public CM_NDL insertObr33_AssistantResultInterpreter(int rep) throws HL7Exception { 
1310        return (CM_NDL) super.insertRepetition(33, rep);
1311    }
1312
1313
1314    /**
1315     * Removes a repetition of
1316     * OBR-33: "Assistant Result Interpreter" at a specific index
1317     *
1318     * @param rep The repetition index (0-indexed)
1319     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1320     */
1321    public CM_NDL removeAssistantResultInterpreter(int rep) throws HL7Exception { 
1322        return (CM_NDL) super.removeRepetition(33, rep);
1323    }
1324
1325
1326    /**
1327     * Removes a repetition of
1328     * OBR-33: "Assistant Result Interpreter" at a specific index
1329     *
1330     * @param rep The repetition index (0-indexed)
1331     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1332     */
1333    public CM_NDL removeObr33_AssistantResultInterpreter(int rep) throws HL7Exception { 
1334        return (CM_NDL) super.removeRepetition(33, rep);
1335    }
1336
1337
1338
1339    /**
1340     * Returns all repetitions of Technician (OBR-34).
1341     */
1342    public CM_NDL[] getTechnician() {
1343        CM_NDL[] retVal = this.getTypedField(34, new CM_NDL[0]);
1344        return retVal;
1345    }
1346
1347
1348    /**
1349     * Returns all repetitions of Technician (OBR-34).
1350     */
1351    public CM_NDL[] getObr34_Technician() {
1352        CM_NDL[] retVal = this.getTypedField(34, new CM_NDL[0]);
1353        return retVal;
1354    }
1355
1356
1357    /**
1358     * Returns a count of the current number of repetitions of Technician (OBR-34).
1359     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1360     * it will return zero.
1361     */
1362    public int getTechnicianReps() {
1363        return this.getReps(34);
1364    }
1365
1366
1367    /**
1368     * Returns a specific repetition of
1369     * OBR-34: "Technician" - creates it if necessary
1370     *
1371     * @param rep The repetition index (0-indexed)
1372     */
1373    public CM_NDL getTechnician(int rep) { 
1374                CM_NDL retVal = this.getTypedField(34, rep);
1375                return retVal;
1376    }
1377
1378    /**
1379     * Returns a specific repetition of
1380     * OBR-34: "Technician" - creates it if necessary
1381     *
1382     * @param rep The repetition index (0-indexed)
1383     */
1384    public CM_NDL getObr34_Technician(int rep) { 
1385                CM_NDL retVal = this.getTypedField(34, rep);
1386                return retVal;
1387    }
1388
1389    /**
1390     * Returns a count of the current number of repetitions of Technician (OBR-34).
1391     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1392     * it will return zero.
1393     */
1394    public int getObr34_TechnicianReps() {
1395        return this.getReps(34);
1396    }
1397
1398
1399    /**
1400     * Inserts a repetition of
1401     * OBR-34: "Technician" at a specific index
1402     *
1403     * @param rep The repetition index (0-indexed)
1404     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1405     */
1406    public CM_NDL insertTechnician(int rep) throws HL7Exception { 
1407        return (CM_NDL) super.insertRepetition(34, rep);
1408    }
1409
1410
1411    /**
1412     * Inserts a repetition of
1413     * OBR-34: "Technician" at a specific index
1414     *
1415     * @param rep The repetition index (0-indexed)
1416     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1417     */
1418    public CM_NDL insertObr34_Technician(int rep) throws HL7Exception { 
1419        return (CM_NDL) super.insertRepetition(34, rep);
1420    }
1421
1422
1423    /**
1424     * Removes a repetition of
1425     * OBR-34: "Technician" at a specific index
1426     *
1427     * @param rep The repetition index (0-indexed)
1428     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1429     */
1430    public CM_NDL removeTechnician(int rep) throws HL7Exception { 
1431        return (CM_NDL) super.removeRepetition(34, rep);
1432    }
1433
1434
1435    /**
1436     * Removes a repetition of
1437     * OBR-34: "Technician" at a specific index
1438     *
1439     * @param rep The repetition index (0-indexed)
1440     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1441     */
1442    public CM_NDL removeObr34_Technician(int rep) throws HL7Exception { 
1443        return (CM_NDL) super.removeRepetition(34, rep);
1444    }
1445
1446
1447
1448    /**
1449     * Returns all repetitions of Transcriptionist (OBR-35).
1450     */
1451    public CM_NDL[] getTranscriptionist() {
1452        CM_NDL[] retVal = this.getTypedField(35, new CM_NDL[0]);
1453        return retVal;
1454    }
1455
1456
1457    /**
1458     * Returns all repetitions of Transcriptionist (OBR-35).
1459     */
1460    public CM_NDL[] getObr35_Transcriptionist() {
1461        CM_NDL[] retVal = this.getTypedField(35, new CM_NDL[0]);
1462        return retVal;
1463    }
1464
1465
1466    /**
1467     * Returns a count of the current number of repetitions of Transcriptionist (OBR-35).
1468     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1469     * it will return zero.
1470     */
1471    public int getTranscriptionistReps() {
1472        return this.getReps(35);
1473    }
1474
1475
1476    /**
1477     * Returns a specific repetition of
1478     * OBR-35: "Transcriptionist" - creates it if necessary
1479     *
1480     * @param rep The repetition index (0-indexed)
1481     */
1482    public CM_NDL getTranscriptionist(int rep) { 
1483                CM_NDL retVal = this.getTypedField(35, rep);
1484                return retVal;
1485    }
1486
1487    /**
1488     * Returns a specific repetition of
1489     * OBR-35: "Transcriptionist" - creates it if necessary
1490     *
1491     * @param rep The repetition index (0-indexed)
1492     */
1493    public CM_NDL getObr35_Transcriptionist(int rep) { 
1494                CM_NDL retVal = this.getTypedField(35, rep);
1495                return retVal;
1496    }
1497
1498    /**
1499     * Returns a count of the current number of repetitions of Transcriptionist (OBR-35).
1500     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1501     * it will return zero.
1502     */
1503    public int getObr35_TranscriptionistReps() {
1504        return this.getReps(35);
1505    }
1506
1507
1508    /**
1509     * Inserts a repetition of
1510     * OBR-35: "Transcriptionist" at a specific index
1511     *
1512     * @param rep The repetition index (0-indexed)
1513     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1514     */
1515    public CM_NDL insertTranscriptionist(int rep) throws HL7Exception { 
1516        return (CM_NDL) super.insertRepetition(35, rep);
1517    }
1518
1519
1520    /**
1521     * Inserts a repetition of
1522     * OBR-35: "Transcriptionist" at a specific index
1523     *
1524     * @param rep The repetition index (0-indexed)
1525     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1526     */
1527    public CM_NDL insertObr35_Transcriptionist(int rep) throws HL7Exception { 
1528        return (CM_NDL) super.insertRepetition(35, rep);
1529    }
1530
1531
1532    /**
1533     * Removes a repetition of
1534     * OBR-35: "Transcriptionist" at a specific index
1535     *
1536     * @param rep The repetition index (0-indexed)
1537     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1538     */
1539    public CM_NDL removeTranscriptionist(int rep) throws HL7Exception { 
1540        return (CM_NDL) super.removeRepetition(35, rep);
1541    }
1542
1543
1544    /**
1545     * Removes a repetition of
1546     * OBR-35: "Transcriptionist" at a specific index
1547     *
1548     * @param rep The repetition index (0-indexed)
1549     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1550     */
1551    public CM_NDL removeObr35_Transcriptionist(int rep) throws HL7Exception { 
1552        return (CM_NDL) super.removeRepetition(35, rep);
1553    }
1554
1555
1556
1557
1558    /**
1559     * Returns
1560     * OBR-36: "Scheduled date / time" - creates it if necessary
1561     */
1562    public TS getScheduledDateTime() { 
1563                TS retVal = this.getTypedField(36, 0);
1564                return retVal;
1565    }
1566    
1567    /**
1568     * Returns
1569     * OBR-36: "Scheduled date / time" - creates it if necessary
1570     */
1571    public TS getObr36_ScheduledDateTime() { 
1572                TS retVal = this.getTypedField(36, 0);
1573                return retVal;
1574    }
1575
1576
1577
1578
1579
1580    /** {@inheritDoc} */   
1581    protected Type createNewTypeWithoutReflection(int field) {
1582       switch (field) {
1583          case 0: return new SI(getMessage());
1584          case 1: return new CM_PLACER(getMessage());
1585          case 2: return new CM_FILLER(getMessage());
1586          case 3: return new CE(getMessage());
1587          case 4: return new ID(getMessage(), new Integer( 0 ));
1588          case 5: return new TS(getMessage());
1589          case 6: return new TS(getMessage());
1590          case 7: return new TS(getMessage());
1591          case 8: return new CQ_QUANTITY(getMessage());
1592          case 9: return new CN(getMessage());
1593          case 10: return new ID(getMessage(), new Integer( 65 ));
1594          case 11: return new CE(getMessage());
1595          case 12: return new ST(getMessage());
1596          case 13: return new TS(getMessage());
1597          case 14: return new CM_SPS(getMessage());
1598          case 15: return new CN(getMessage());
1599          case 16: return new TN(getMessage());
1600          case 17: return new ST(getMessage());
1601          case 18: return new ST(getMessage());
1602          case 19: return new ST(getMessage());
1603          case 20: return new ST(getMessage());
1604          case 21: return new TS(getMessage());
1605          case 22: return new CM_MOC(getMessage());
1606          case 23: return new ID(getMessage(), new Integer( 74 ));
1607          case 24: return new ID(getMessage(), new Integer( 123 ));
1608          case 25: return new CM_PARENT_RESULT(getMessage());
1609          case 26: return new TQ(getMessage());
1610          case 27: return new CN(getMessage());
1611          case 28: return new CM_EIP(getMessage());
1612          case 29: return new ID(getMessage(), new Integer( 124 ));
1613          case 30: return new CE(getMessage());
1614          case 31: return new CM_NDL(getMessage());
1615          case 32: return new CM_NDL(getMessage());
1616          case 33: return new CM_NDL(getMessage());
1617          case 34: return new CM_NDL(getMessage());
1618          case 35: return new TS(getMessage());
1619          default: return null;
1620       }
1621   }
1622
1623
1624}
1625