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.v251.segment;
035
036// import ca.uhn.hl7v2.model.v251.group.*;
037import ca.uhn.hl7v2.model.v251.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 TXA message segment (Transcription Document Header). 
049 * This segment has the following fields:</p>
050 * <ul>
051     * <li>TXA-1: Set ID - TXA (SI) <b> </b>
052     * <li>TXA-2: Document Type (IS) <b> </b>
053     * <li>TXA-3: Document Content Presentation (ID) <b>optional </b>
054     * <li>TXA-4: Activity Date/Time (TS) <b>optional </b>
055     * <li>TXA-5: Primary Activity Provider Code/Name (XCN) <b>optional repeating</b>
056     * <li>TXA-6: Origination Date/Time (TS) <b>optional </b>
057     * <li>TXA-7: Transcription Date/Time (TS) <b>optional </b>
058     * <li>TXA-8: Edit Date/Time (TS) <b>optional repeating</b>
059     * <li>TXA-9: Originator Code/Name (XCN) <b>optional repeating</b>
060     * <li>TXA-10: Assigned Document Authenticator (XCN) <b>optional repeating</b>
061     * <li>TXA-11: Transcriptionist Code/Name (XCN) <b>optional repeating</b>
062     * <li>TXA-12: Unique Document Number (EI) <b> </b>
063     * <li>TXA-13: Parent Document Number (EI) <b>optional </b>
064     * <li>TXA-14: Placer Order Number (EI) <b>optional repeating</b>
065     * <li>TXA-15: Filler Order Number (EI) <b>optional </b>
066     * <li>TXA-16: Unique Document File Name (ST) <b>optional </b>
067     * <li>TXA-17: Document Completion Status (ID) <b> </b>
068     * <li>TXA-18: Document Confidentiality Status (ID) <b>optional </b>
069     * <li>TXA-19: Document Availability Status (ID) <b>optional </b>
070     * <li>TXA-20: Document Storage Status (ID) <b>optional </b>
071     * <li>TXA-21: Document Change Reason (ST) <b>optional </b>
072     * <li>TXA-22: Authentication Person, Time Stamp (PPN) <b>optional repeating</b>
073     * <li>TXA-23: Distributed Copies (Code and Name of Recipients) (XCN) <b>optional repeating</b>
074 * </ul>
075 */
076@SuppressWarnings("unused")
077public class TXA extends AbstractSegment {
078
079    /** 
080     * Creates a new TXA segment
081     */
082    public TXA(Group parent, ModelClassFactory factory) {
083       super(parent, factory);
084       init(factory);
085    }
086
087    private void init(ModelClassFactory factory) {
088       try {
089                                  this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "Set ID - TXA");
090                                              this.add(IS.class, true, 1, 30, new Object[]{ getMessage(), new Integer(270) }, "Document Type");
091                                              this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(191) }, "Document Content Presentation");
092                                  this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Activity Date/Time");
093                                  this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Primary Activity Provider Code/Name");
094                                  this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Origination Date/Time");
095                                  this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Transcription Date/Time");
096                                  this.add(TS.class, false, 0, 26, new Object[]{ getMessage() }, "Edit Date/Time");
097                                  this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Originator Code/Name");
098                                  this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Assigned Document Authenticator");
099                                  this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Transcriptionist Code/Name");
100                                  this.add(EI.class, true, 1, 30, new Object[]{ getMessage() }, "Unique Document Number");
101                                  this.add(EI.class, false, 1, 30, new Object[]{ getMessage() }, "Parent Document Number");
102                                  this.add(EI.class, false, 0, 22, new Object[]{ getMessage() }, "Placer Order Number");
103                                  this.add(EI.class, false, 1, 22, new Object[]{ getMessage() }, "Filler Order Number");
104                                  this.add(ST.class, false, 1, 30, new Object[]{ getMessage() }, "Unique Document File Name");
105                                              this.add(ID.class, true, 1, 2, new Object[]{ getMessage(), new Integer(271) }, "Document Completion Status");
106                                              this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(272) }, "Document Confidentiality Status");
107                                              this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(273) }, "Document Availability Status");
108                                              this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(275) }, "Document Storage Status");
109                                  this.add(ST.class, false, 1, 30, new Object[]{ getMessage() }, "Document Change Reason");
110                                  this.add(PPN.class, false, 0, 250, new Object[]{ getMessage() }, "Authentication Person, Time Stamp");
111                                  this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Distributed Copies (Code and Name of Recipients)");
112       } catch(HL7Exception e) {
113          log.error("Unexpected error creating TXA - this is probably a bug in the source code generator.", e);
114       }
115    }
116
117
118
119    /**
120     * Returns
121     * TXA-1: "Set ID - TXA" - creates it if necessary
122     */
123    public SI getSetIDTXA() { 
124                SI retVal = this.getTypedField(1, 0);
125                return retVal;
126    }
127    
128    /**
129     * Returns
130     * TXA-1: "Set ID - TXA" - creates it if necessary
131     */
132    public SI getTxa1_SetIDTXA() { 
133                SI retVal = this.getTypedField(1, 0);
134                return retVal;
135    }
136
137
138
139    /**
140     * Returns
141     * TXA-2: "Document Type" - creates it if necessary
142     */
143    public IS getDocumentType() { 
144                IS retVal = this.getTypedField(2, 0);
145                return retVal;
146    }
147    
148    /**
149     * Returns
150     * TXA-2: "Document Type" - creates it if necessary
151     */
152    public IS getTxa2_DocumentType() { 
153                IS retVal = this.getTypedField(2, 0);
154                return retVal;
155    }
156
157
158
159    /**
160     * Returns
161     * TXA-3: "Document Content Presentation" - creates it if necessary
162     */
163    public ID getDocumentContentPresentation() { 
164                ID retVal = this.getTypedField(3, 0);
165                return retVal;
166    }
167    
168    /**
169     * Returns
170     * TXA-3: "Document Content Presentation" - creates it if necessary
171     */
172    public ID getTxa3_DocumentContentPresentation() { 
173                ID retVal = this.getTypedField(3, 0);
174                return retVal;
175    }
176
177
178
179    /**
180     * Returns
181     * TXA-4: "Activity Date/Time" - creates it if necessary
182     */
183    public TS getActivityDateTime() { 
184                TS retVal = this.getTypedField(4, 0);
185                return retVal;
186    }
187    
188    /**
189     * Returns
190     * TXA-4: "Activity Date/Time" - creates it if necessary
191     */
192    public TS getTxa4_ActivityDateTime() { 
193                TS retVal = this.getTypedField(4, 0);
194                return retVal;
195    }
196
197
198    /**
199     * Returns all repetitions of Primary Activity Provider Code/Name (TXA-5).
200     */
201    public XCN[] getPrimaryActivityProviderCodeName() {
202        XCN[] retVal = this.getTypedField(5, new XCN[0]);
203        return retVal;
204    }
205
206
207    /**
208     * Returns all repetitions of Primary Activity Provider Code/Name (TXA-5).
209     */
210    public XCN[] getTxa5_PrimaryActivityProviderCodeName() {
211        XCN[] retVal = this.getTypedField(5, new XCN[0]);
212        return retVal;
213    }
214
215
216    /**
217     * Returns a count of the current number of repetitions of Primary Activity Provider Code/Name (TXA-5).
218     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
219     * it will return zero.
220     */
221    public int getPrimaryActivityProviderCodeNameReps() {
222        return this.getReps(5);
223    }
224
225
226    /**
227     * Returns a specific repetition of
228     * TXA-5: "Primary Activity Provider Code/Name" - creates it if necessary
229     *
230     * @param rep The repetition index (0-indexed)
231     */
232    public XCN getPrimaryActivityProviderCodeName(int rep) { 
233                XCN retVal = this.getTypedField(5, rep);
234                return retVal;
235    }
236
237    /**
238     * Returns a specific repetition of
239     * TXA-5: "Primary Activity Provider Code/Name" - creates it if necessary
240     *
241     * @param rep The repetition index (0-indexed)
242     */
243    public XCN getTxa5_PrimaryActivityProviderCodeName(int rep) { 
244                XCN retVal = this.getTypedField(5, rep);
245                return retVal;
246    }
247
248    /**
249     * Returns a count of the current number of repetitions of Primary Activity Provider Code/Name (TXA-5).
250     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
251     * it will return zero.
252     */
253    public int getTxa5_PrimaryActivityProviderCodeNameReps() {
254        return this.getReps(5);
255    }
256
257
258    /**
259     * Inserts a repetition of
260     * TXA-5: "Primary Activity Provider Code/Name" at a specific index
261     *
262     * @param rep The repetition index (0-indexed)
263     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
264     */
265    public XCN insertPrimaryActivityProviderCodeName(int rep) throws HL7Exception { 
266        return (XCN) super.insertRepetition(5, rep);
267    }
268
269
270    /**
271     * Inserts a repetition of
272     * TXA-5: "Primary Activity Provider Code/Name" at a specific index
273     *
274     * @param rep The repetition index (0-indexed)
275     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
276     */
277    public XCN insertTxa5_PrimaryActivityProviderCodeName(int rep) throws HL7Exception { 
278        return (XCN) super.insertRepetition(5, rep);
279    }
280
281
282    /**
283     * Removes a repetition of
284     * TXA-5: "Primary Activity Provider Code/Name" at a specific index
285     *
286     * @param rep The repetition index (0-indexed)
287     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
288     */
289    public XCN removePrimaryActivityProviderCodeName(int rep) throws HL7Exception { 
290        return (XCN) super.removeRepetition(5, rep);
291    }
292
293
294    /**
295     * Removes a repetition of
296     * TXA-5: "Primary Activity Provider Code/Name" at a specific index
297     *
298     * @param rep The repetition index (0-indexed)
299     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
300     */
301    public XCN removeTxa5_PrimaryActivityProviderCodeName(int rep) throws HL7Exception { 
302        return (XCN) super.removeRepetition(5, rep);
303    }
304
305
306
307
308    /**
309     * Returns
310     * TXA-6: "Origination Date/Time" - creates it if necessary
311     */
312    public TS getOriginationDateTime() { 
313                TS retVal = this.getTypedField(6, 0);
314                return retVal;
315    }
316    
317    /**
318     * Returns
319     * TXA-6: "Origination Date/Time" - creates it if necessary
320     */
321    public TS getTxa6_OriginationDateTime() { 
322                TS retVal = this.getTypedField(6, 0);
323                return retVal;
324    }
325
326
327
328    /**
329     * Returns
330     * TXA-7: "Transcription Date/Time" - creates it if necessary
331     */
332    public TS getTranscriptionDateTime() { 
333                TS retVal = this.getTypedField(7, 0);
334                return retVal;
335    }
336    
337    /**
338     * Returns
339     * TXA-7: "Transcription Date/Time" - creates it if necessary
340     */
341    public TS getTxa7_TranscriptionDateTime() { 
342                TS retVal = this.getTypedField(7, 0);
343                return retVal;
344    }
345
346
347    /**
348     * Returns all repetitions of Edit Date/Time (TXA-8).
349     */
350    public TS[] getEditDateTime() {
351        TS[] retVal = this.getTypedField(8, new TS[0]);
352        return retVal;
353    }
354
355
356    /**
357     * Returns all repetitions of Edit Date/Time (TXA-8).
358     */
359    public TS[] getTxa8_EditDateTime() {
360        TS[] retVal = this.getTypedField(8, new TS[0]);
361        return retVal;
362    }
363
364
365    /**
366     * Returns a count of the current number of repetitions of Edit Date/Time (TXA-8).
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 getEditDateTimeReps() {
371        return this.getReps(8);
372    }
373
374
375    /**
376     * Returns a specific repetition of
377     * TXA-8: "Edit Date/Time" - creates it if necessary
378     *
379     * @param rep The repetition index (0-indexed)
380     */
381    public TS getEditDateTime(int rep) { 
382                TS retVal = this.getTypedField(8, rep);
383                return retVal;
384    }
385
386    /**
387     * Returns a specific repetition of
388     * TXA-8: "Edit Date/Time" - creates it if necessary
389     *
390     * @param rep The repetition index (0-indexed)
391     */
392    public TS getTxa8_EditDateTime(int rep) { 
393                TS retVal = this.getTypedField(8, rep);
394                return retVal;
395    }
396
397    /**
398     * Returns a count of the current number of repetitions of Edit Date/Time (TXA-8).
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 getTxa8_EditDateTimeReps() {
403        return this.getReps(8);
404    }
405
406
407    /**
408     * Inserts a repetition of
409     * TXA-8: "Edit Date/Time" 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 TS insertEditDateTime(int rep) throws HL7Exception { 
415        return (TS) super.insertRepetition(8, rep);
416    }
417
418
419    /**
420     * Inserts a repetition of
421     * TXA-8: "Edit Date/Time" 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 TS insertTxa8_EditDateTime(int rep) throws HL7Exception { 
427        return (TS) super.insertRepetition(8, rep);
428    }
429
430
431    /**
432     * Removes a repetition of
433     * TXA-8: "Edit Date/Time" 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 TS removeEditDateTime(int rep) throws HL7Exception { 
439        return (TS) super.removeRepetition(8, rep);
440    }
441
442
443    /**
444     * Removes a repetition of
445     * TXA-8: "Edit Date/Time" 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 TS removeTxa8_EditDateTime(int rep) throws HL7Exception { 
451        return (TS) super.removeRepetition(8, rep);
452    }
453
454
455
456    /**
457     * Returns all repetitions of Originator Code/Name (TXA-9).
458     */
459    public XCN[] getOriginatorCodeName() {
460        XCN[] retVal = this.getTypedField(9, new XCN[0]);
461        return retVal;
462    }
463
464
465    /**
466     * Returns all repetitions of Originator Code/Name (TXA-9).
467     */
468    public XCN[] getTxa9_OriginatorCodeName() {
469        XCN[] retVal = this.getTypedField(9, new XCN[0]);
470        return retVal;
471    }
472
473
474    /**
475     * Returns a count of the current number of repetitions of Originator Code/Name (TXA-9).
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 getOriginatorCodeNameReps() {
480        return this.getReps(9);
481    }
482
483
484    /**
485     * Returns a specific repetition of
486     * TXA-9: "Originator Code/Name" - creates it if necessary
487     *
488     * @param rep The repetition index (0-indexed)
489     */
490    public XCN getOriginatorCodeName(int rep) { 
491                XCN retVal = this.getTypedField(9, rep);
492                return retVal;
493    }
494
495    /**
496     * Returns a specific repetition of
497     * TXA-9: "Originator Code/Name" - creates it if necessary
498     *
499     * @param rep The repetition index (0-indexed)
500     */
501    public XCN getTxa9_OriginatorCodeName(int rep) { 
502                XCN retVal = this.getTypedField(9, rep);
503                return retVal;
504    }
505
506    /**
507     * Returns a count of the current number of repetitions of Originator Code/Name (TXA-9).
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 getTxa9_OriginatorCodeNameReps() {
512        return this.getReps(9);
513    }
514
515
516    /**
517     * Inserts a repetition of
518     * TXA-9: "Originator Code/Name" 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 XCN insertOriginatorCodeName(int rep) throws HL7Exception { 
524        return (XCN) super.insertRepetition(9, rep);
525    }
526
527
528    /**
529     * Inserts a repetition of
530     * TXA-9: "Originator Code/Name" 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 XCN insertTxa9_OriginatorCodeName(int rep) throws HL7Exception { 
536        return (XCN) super.insertRepetition(9, rep);
537    }
538
539
540    /**
541     * Removes a repetition of
542     * TXA-9: "Originator Code/Name" 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 XCN removeOriginatorCodeName(int rep) throws HL7Exception { 
548        return (XCN) super.removeRepetition(9, rep);
549    }
550
551
552    /**
553     * Removes a repetition of
554     * TXA-9: "Originator Code/Name" 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 XCN removeTxa9_OriginatorCodeName(int rep) throws HL7Exception { 
560        return (XCN) super.removeRepetition(9, rep);
561    }
562
563
564
565    /**
566     * Returns all repetitions of Assigned Document Authenticator (TXA-10).
567     */
568    public XCN[] getAssignedDocumentAuthenticator() {
569        XCN[] retVal = this.getTypedField(10, new XCN[0]);
570        return retVal;
571    }
572
573
574    /**
575     * Returns all repetitions of Assigned Document Authenticator (TXA-10).
576     */
577    public XCN[] getTxa10_AssignedDocumentAuthenticator() {
578        XCN[] retVal = this.getTypedField(10, new XCN[0]);
579        return retVal;
580    }
581
582
583    /**
584     * Returns a count of the current number of repetitions of Assigned Document Authenticator (TXA-10).
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 getAssignedDocumentAuthenticatorReps() {
589        return this.getReps(10);
590    }
591
592
593    /**
594     * Returns a specific repetition of
595     * TXA-10: "Assigned Document Authenticator" - creates it if necessary
596     *
597     * @param rep The repetition index (0-indexed)
598     */
599    public XCN getAssignedDocumentAuthenticator(int rep) { 
600                XCN retVal = this.getTypedField(10, rep);
601                return retVal;
602    }
603
604    /**
605     * Returns a specific repetition of
606     * TXA-10: "Assigned Document Authenticator" - creates it if necessary
607     *
608     * @param rep The repetition index (0-indexed)
609     */
610    public XCN getTxa10_AssignedDocumentAuthenticator(int rep) { 
611                XCN retVal = this.getTypedField(10, rep);
612                return retVal;
613    }
614
615    /**
616     * Returns a count of the current number of repetitions of Assigned Document Authenticator (TXA-10).
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 getTxa10_AssignedDocumentAuthenticatorReps() {
621        return this.getReps(10);
622    }
623
624
625    /**
626     * Inserts a repetition of
627     * TXA-10: "Assigned Document Authenticator" 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 XCN insertAssignedDocumentAuthenticator(int rep) throws HL7Exception { 
633        return (XCN) super.insertRepetition(10, rep);
634    }
635
636
637    /**
638     * Inserts a repetition of
639     * TXA-10: "Assigned Document Authenticator" 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 XCN insertTxa10_AssignedDocumentAuthenticator(int rep) throws HL7Exception { 
645        return (XCN) super.insertRepetition(10, rep);
646    }
647
648
649    /**
650     * Removes a repetition of
651     * TXA-10: "Assigned Document Authenticator" 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 XCN removeAssignedDocumentAuthenticator(int rep) throws HL7Exception { 
657        return (XCN) super.removeRepetition(10, rep);
658    }
659
660
661    /**
662     * Removes a repetition of
663     * TXA-10: "Assigned Document Authenticator" 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 XCN removeTxa10_AssignedDocumentAuthenticator(int rep) throws HL7Exception { 
669        return (XCN) super.removeRepetition(10, rep);
670    }
671
672
673
674    /**
675     * Returns all repetitions of Transcriptionist Code/Name (TXA-11).
676     */
677    public XCN[] getTranscriptionistCodeName() {
678        XCN[] retVal = this.getTypedField(11, new XCN[0]);
679        return retVal;
680    }
681
682
683    /**
684     * Returns all repetitions of Transcriptionist Code/Name (TXA-11).
685     */
686    public XCN[] getTxa11_TranscriptionistCodeName() {
687        XCN[] retVal = this.getTypedField(11, new XCN[0]);
688        return retVal;
689    }
690
691
692    /**
693     * Returns a count of the current number of repetitions of Transcriptionist Code/Name (TXA-11).
694     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
695     * it will return zero.
696     */
697    public int getTranscriptionistCodeNameReps() {
698        return this.getReps(11);
699    }
700
701
702    /**
703     * Returns a specific repetition of
704     * TXA-11: "Transcriptionist Code/Name" - creates it if necessary
705     *
706     * @param rep The repetition index (0-indexed)
707     */
708    public XCN getTranscriptionistCodeName(int rep) { 
709                XCN retVal = this.getTypedField(11, rep);
710                return retVal;
711    }
712
713    /**
714     * Returns a specific repetition of
715     * TXA-11: "Transcriptionist Code/Name" - creates it if necessary
716     *
717     * @param rep The repetition index (0-indexed)
718     */
719    public XCN getTxa11_TranscriptionistCodeName(int rep) { 
720                XCN retVal = this.getTypedField(11, rep);
721                return retVal;
722    }
723
724    /**
725     * Returns a count of the current number of repetitions of Transcriptionist Code/Name (TXA-11).
726     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
727     * it will return zero.
728     */
729    public int getTxa11_TranscriptionistCodeNameReps() {
730        return this.getReps(11);
731    }
732
733
734    /**
735     * Inserts a repetition of
736     * TXA-11: "Transcriptionist Code/Name" at a specific index
737     *
738     * @param rep The repetition index (0-indexed)
739     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
740     */
741    public XCN insertTranscriptionistCodeName(int rep) throws HL7Exception { 
742        return (XCN) super.insertRepetition(11, rep);
743    }
744
745
746    /**
747     * Inserts a repetition of
748     * TXA-11: "Transcriptionist Code/Name" at a specific index
749     *
750     * @param rep The repetition index (0-indexed)
751     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
752     */
753    public XCN insertTxa11_TranscriptionistCodeName(int rep) throws HL7Exception { 
754        return (XCN) super.insertRepetition(11, rep);
755    }
756
757
758    /**
759     * Removes a repetition of
760     * TXA-11: "Transcriptionist Code/Name" at a specific index
761     *
762     * @param rep The repetition index (0-indexed)
763     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
764     */
765    public XCN removeTranscriptionistCodeName(int rep) throws HL7Exception { 
766        return (XCN) super.removeRepetition(11, rep);
767    }
768
769
770    /**
771     * Removes a repetition of
772     * TXA-11: "Transcriptionist Code/Name" at a specific index
773     *
774     * @param rep The repetition index (0-indexed)
775     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
776     */
777    public XCN removeTxa11_TranscriptionistCodeName(int rep) throws HL7Exception { 
778        return (XCN) super.removeRepetition(11, rep);
779    }
780
781
782
783
784    /**
785     * Returns
786     * TXA-12: "Unique Document Number" - creates it if necessary
787     */
788    public EI getUniqueDocumentNumber() { 
789                EI retVal = this.getTypedField(12, 0);
790                return retVal;
791    }
792    
793    /**
794     * Returns
795     * TXA-12: "Unique Document Number" - creates it if necessary
796     */
797    public EI getTxa12_UniqueDocumentNumber() { 
798                EI retVal = this.getTypedField(12, 0);
799                return retVal;
800    }
801
802
803
804    /**
805     * Returns
806     * TXA-13: "Parent Document Number" - creates it if necessary
807     */
808    public EI getParentDocumentNumber() { 
809                EI retVal = this.getTypedField(13, 0);
810                return retVal;
811    }
812    
813    /**
814     * Returns
815     * TXA-13: "Parent Document Number" - creates it if necessary
816     */
817    public EI getTxa13_ParentDocumentNumber() { 
818                EI retVal = this.getTypedField(13, 0);
819                return retVal;
820    }
821
822
823    /**
824     * Returns all repetitions of Placer Order Number (TXA-14).
825     */
826    public EI[] getPlacerOrderNumber() {
827        EI[] retVal = this.getTypedField(14, new EI[0]);
828        return retVal;
829    }
830
831
832    /**
833     * Returns all repetitions of Placer Order Number (TXA-14).
834     */
835    public EI[] getTxa14_PlacerOrderNumber() {
836        EI[] retVal = this.getTypedField(14, new EI[0]);
837        return retVal;
838    }
839
840
841    /**
842     * Returns a count of the current number of repetitions of Placer Order Number (TXA-14).
843     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
844     * it will return zero.
845     */
846    public int getPlacerOrderNumberReps() {
847        return this.getReps(14);
848    }
849
850
851    /**
852     * Returns a specific repetition of
853     * TXA-14: "Placer Order Number" - creates it if necessary
854     *
855     * @param rep The repetition index (0-indexed)
856     */
857    public EI getPlacerOrderNumber(int rep) { 
858                EI retVal = this.getTypedField(14, rep);
859                return retVal;
860    }
861
862    /**
863     * Returns a specific repetition of
864     * TXA-14: "Placer Order Number" - creates it if necessary
865     *
866     * @param rep The repetition index (0-indexed)
867     */
868    public EI getTxa14_PlacerOrderNumber(int rep) { 
869                EI retVal = this.getTypedField(14, rep);
870                return retVal;
871    }
872
873    /**
874     * Returns a count of the current number of repetitions of Placer Order Number (TXA-14).
875     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
876     * it will return zero.
877     */
878    public int getTxa14_PlacerOrderNumberReps() {
879        return this.getReps(14);
880    }
881
882
883    /**
884     * Inserts a repetition of
885     * TXA-14: "Placer Order Number" at a specific index
886     *
887     * @param rep The repetition index (0-indexed)
888     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
889     */
890    public EI insertPlacerOrderNumber(int rep) throws HL7Exception { 
891        return (EI) super.insertRepetition(14, rep);
892    }
893
894
895    /**
896     * Inserts a repetition of
897     * TXA-14: "Placer Order Number" at a specific index
898     *
899     * @param rep The repetition index (0-indexed)
900     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
901     */
902    public EI insertTxa14_PlacerOrderNumber(int rep) throws HL7Exception { 
903        return (EI) super.insertRepetition(14, rep);
904    }
905
906
907    /**
908     * Removes a repetition of
909     * TXA-14: "Placer Order Number" at a specific index
910     *
911     * @param rep The repetition index (0-indexed)
912     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
913     */
914    public EI removePlacerOrderNumber(int rep) throws HL7Exception { 
915        return (EI) super.removeRepetition(14, rep);
916    }
917
918
919    /**
920     * Removes a repetition of
921     * TXA-14: "Placer Order Number" at a specific index
922     *
923     * @param rep The repetition index (0-indexed)
924     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
925     */
926    public EI removeTxa14_PlacerOrderNumber(int rep) throws HL7Exception { 
927        return (EI) super.removeRepetition(14, rep);
928    }
929
930
931
932
933    /**
934     * Returns
935     * TXA-15: "Filler Order Number" - creates it if necessary
936     */
937    public EI getFillerOrderNumber() { 
938                EI retVal = this.getTypedField(15, 0);
939                return retVal;
940    }
941    
942    /**
943     * Returns
944     * TXA-15: "Filler Order Number" - creates it if necessary
945     */
946    public EI getTxa15_FillerOrderNumber() { 
947                EI retVal = this.getTypedField(15, 0);
948                return retVal;
949    }
950
951
952
953    /**
954     * Returns
955     * TXA-16: "Unique Document File Name" - creates it if necessary
956     */
957    public ST getUniqueDocumentFileName() { 
958                ST retVal = this.getTypedField(16, 0);
959                return retVal;
960    }
961    
962    /**
963     * Returns
964     * TXA-16: "Unique Document File Name" - creates it if necessary
965     */
966    public ST getTxa16_UniqueDocumentFileName() { 
967                ST retVal = this.getTypedField(16, 0);
968                return retVal;
969    }
970
971
972
973    /**
974     * Returns
975     * TXA-17: "Document Completion Status" - creates it if necessary
976     */
977    public ID getDocumentCompletionStatus() { 
978                ID retVal = this.getTypedField(17, 0);
979                return retVal;
980    }
981    
982    /**
983     * Returns
984     * TXA-17: "Document Completion Status" - creates it if necessary
985     */
986    public ID getTxa17_DocumentCompletionStatus() { 
987                ID retVal = this.getTypedField(17, 0);
988                return retVal;
989    }
990
991
992
993    /**
994     * Returns
995     * TXA-18: "Document Confidentiality Status" - creates it if necessary
996     */
997    public ID getDocumentConfidentialityStatus() { 
998                ID retVal = this.getTypedField(18, 0);
999                return retVal;
1000    }
1001    
1002    /**
1003     * Returns
1004     * TXA-18: "Document Confidentiality Status" - creates it if necessary
1005     */
1006    public ID getTxa18_DocumentConfidentialityStatus() { 
1007                ID retVal = this.getTypedField(18, 0);
1008                return retVal;
1009    }
1010
1011
1012
1013    /**
1014     * Returns
1015     * TXA-19: "Document Availability Status" - creates it if necessary
1016     */
1017    public ID getDocumentAvailabilityStatus() { 
1018                ID retVal = this.getTypedField(19, 0);
1019                return retVal;
1020    }
1021    
1022    /**
1023     * Returns
1024     * TXA-19: "Document Availability Status" - creates it if necessary
1025     */
1026    public ID getTxa19_DocumentAvailabilityStatus() { 
1027                ID retVal = this.getTypedField(19, 0);
1028                return retVal;
1029    }
1030
1031
1032
1033    /**
1034     * Returns
1035     * TXA-20: "Document Storage Status" - creates it if necessary
1036     */
1037    public ID getDocumentStorageStatus() { 
1038                ID retVal = this.getTypedField(20, 0);
1039                return retVal;
1040    }
1041    
1042    /**
1043     * Returns
1044     * TXA-20: "Document Storage Status" - creates it if necessary
1045     */
1046    public ID getTxa20_DocumentStorageStatus() { 
1047                ID retVal = this.getTypedField(20, 0);
1048                return retVal;
1049    }
1050
1051
1052
1053    /**
1054     * Returns
1055     * TXA-21: "Document Change Reason" - creates it if necessary
1056     */
1057    public ST getDocumentChangeReason() { 
1058                ST retVal = this.getTypedField(21, 0);
1059                return retVal;
1060    }
1061    
1062    /**
1063     * Returns
1064     * TXA-21: "Document Change Reason" - creates it if necessary
1065     */
1066    public ST getTxa21_DocumentChangeReason() { 
1067                ST retVal = this.getTypedField(21, 0);
1068                return retVal;
1069    }
1070
1071
1072    /**
1073     * Returns all repetitions of Authentication Person, Time Stamp (TXA-22).
1074     */
1075    public PPN[] getAuthenticationPersonTimeStamp() {
1076        PPN[] retVal = this.getTypedField(22, new PPN[0]);
1077        return retVal;
1078    }
1079
1080
1081    /**
1082     * Returns all repetitions of Authentication Person, Time Stamp (TXA-22).
1083     */
1084    public PPN[] getTxa22_AuthenticationPersonTimeStamp() {
1085        PPN[] retVal = this.getTypedField(22, new PPN[0]);
1086        return retVal;
1087    }
1088
1089
1090    /**
1091     * Returns a count of the current number of repetitions of Authentication Person, Time Stamp (TXA-22).
1092     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1093     * it will return zero.
1094     */
1095    public int getAuthenticationPersonTimeStampReps() {
1096        return this.getReps(22);
1097    }
1098
1099
1100    /**
1101     * Returns a specific repetition of
1102     * TXA-22: "Authentication Person, Time Stamp" - creates it if necessary
1103     *
1104     * @param rep The repetition index (0-indexed)
1105     */
1106    public PPN getAuthenticationPersonTimeStamp(int rep) { 
1107                PPN retVal = this.getTypedField(22, rep);
1108                return retVal;
1109    }
1110
1111    /**
1112     * Returns a specific repetition of
1113     * TXA-22: "Authentication Person, Time Stamp" - creates it if necessary
1114     *
1115     * @param rep The repetition index (0-indexed)
1116     */
1117    public PPN getTxa22_AuthenticationPersonTimeStamp(int rep) { 
1118                PPN retVal = this.getTypedField(22, rep);
1119                return retVal;
1120    }
1121
1122    /**
1123     * Returns a count of the current number of repetitions of Authentication Person, Time Stamp (TXA-22).
1124     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1125     * it will return zero.
1126     */
1127    public int getTxa22_AuthenticationPersonTimeStampReps() {
1128        return this.getReps(22);
1129    }
1130
1131
1132    /**
1133     * Inserts a repetition of
1134     * TXA-22: "Authentication Person, Time Stamp" at a specific index
1135     *
1136     * @param rep The repetition index (0-indexed)
1137     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1138     */
1139    public PPN insertAuthenticationPersonTimeStamp(int rep) throws HL7Exception { 
1140        return (PPN) super.insertRepetition(22, rep);
1141    }
1142
1143
1144    /**
1145     * Inserts a repetition of
1146     * TXA-22: "Authentication Person, Time Stamp" at a specific index
1147     *
1148     * @param rep The repetition index (0-indexed)
1149     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1150     */
1151    public PPN insertTxa22_AuthenticationPersonTimeStamp(int rep) throws HL7Exception { 
1152        return (PPN) super.insertRepetition(22, rep);
1153    }
1154
1155
1156    /**
1157     * Removes a repetition of
1158     * TXA-22: "Authentication Person, Time Stamp" at a specific index
1159     *
1160     * @param rep The repetition index (0-indexed)
1161     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1162     */
1163    public PPN removeAuthenticationPersonTimeStamp(int rep) throws HL7Exception { 
1164        return (PPN) super.removeRepetition(22, rep);
1165    }
1166
1167
1168    /**
1169     * Removes a repetition of
1170     * TXA-22: "Authentication Person, Time Stamp" at a specific index
1171     *
1172     * @param rep The repetition index (0-indexed)
1173     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1174     */
1175    public PPN removeTxa22_AuthenticationPersonTimeStamp(int rep) throws HL7Exception { 
1176        return (PPN) super.removeRepetition(22, rep);
1177    }
1178
1179
1180
1181    /**
1182     * Returns all repetitions of Distributed Copies (Code and Name of Recipients) (TXA-23).
1183     */
1184    public XCN[] getDistributedCopiesCodeandNameofRecipients() {
1185        XCN[] retVal = this.getTypedField(23, new XCN[0]);
1186        return retVal;
1187    }
1188
1189
1190    /**
1191     * Returns all repetitions of Distributed Copies (Code and Name of Recipients) (TXA-23).
1192     */
1193    public XCN[] getTxa23_DistributedCopiesCodeandNameofRecipients() {
1194        XCN[] retVal = this.getTypedField(23, new XCN[0]);
1195        return retVal;
1196    }
1197
1198
1199    /**
1200     * Returns a count of the current number of repetitions of Distributed Copies (Code and Name of Recipients) (TXA-23).
1201     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1202     * it will return zero.
1203     */
1204    public int getDistributedCopiesCodeandNameofRecipientsReps() {
1205        return this.getReps(23);
1206    }
1207
1208
1209    /**
1210     * Returns a specific repetition of
1211     * TXA-23: "Distributed Copies (Code and Name of Recipients)" - creates it if necessary
1212     *
1213     * @param rep The repetition index (0-indexed)
1214     */
1215    public XCN getDistributedCopiesCodeandNameofRecipients(int rep) { 
1216                XCN retVal = this.getTypedField(23, rep);
1217                return retVal;
1218    }
1219
1220    /**
1221     * Returns a specific repetition of
1222     * TXA-23: "Distributed Copies (Code and Name of Recipients)" - creates it if necessary
1223     *
1224     * @param rep The repetition index (0-indexed)
1225     */
1226    public XCN getTxa23_DistributedCopiesCodeandNameofRecipients(int rep) { 
1227                XCN retVal = this.getTypedField(23, rep);
1228                return retVal;
1229    }
1230
1231    /**
1232     * Returns a count of the current number of repetitions of Distributed Copies (Code and Name of Recipients) (TXA-23).
1233     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1234     * it will return zero.
1235     */
1236    public int getTxa23_DistributedCopiesCodeandNameofRecipientsReps() {
1237        return this.getReps(23);
1238    }
1239
1240
1241    /**
1242     * Inserts a repetition of
1243     * TXA-23: "Distributed Copies (Code and Name of Recipients)" at a specific index
1244     *
1245     * @param rep The repetition index (0-indexed)
1246     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1247     */
1248    public XCN insertDistributedCopiesCodeandNameofRecipients(int rep) throws HL7Exception { 
1249        return (XCN) super.insertRepetition(23, rep);
1250    }
1251
1252
1253    /**
1254     * Inserts a repetition of
1255     * TXA-23: "Distributed Copies (Code and Name of Recipients)" at a specific index
1256     *
1257     * @param rep The repetition index (0-indexed)
1258     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1259     */
1260    public XCN insertTxa23_DistributedCopiesCodeandNameofRecipients(int rep) throws HL7Exception { 
1261        return (XCN) super.insertRepetition(23, rep);
1262    }
1263
1264
1265    /**
1266     * Removes a repetition of
1267     * TXA-23: "Distributed Copies (Code and Name of Recipients)" at a specific index
1268     *
1269     * @param rep The repetition index (0-indexed)
1270     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1271     */
1272    public XCN removeDistributedCopiesCodeandNameofRecipients(int rep) throws HL7Exception { 
1273        return (XCN) super.removeRepetition(23, rep);
1274    }
1275
1276
1277    /**
1278     * Removes a repetition of
1279     * TXA-23: "Distributed Copies (Code and Name of Recipients)" at a specific index
1280     *
1281     * @param rep The repetition index (0-indexed)
1282     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1283     */
1284    public XCN removeTxa23_DistributedCopiesCodeandNameofRecipients(int rep) throws HL7Exception { 
1285        return (XCN) super.removeRepetition(23, rep);
1286    }
1287
1288
1289
1290
1291
1292
1293    /** {@inheritDoc} */   
1294    protected Type createNewTypeWithoutReflection(int field) {
1295       switch (field) {
1296          case 0: return new SI(getMessage());
1297          case 1: return new IS(getMessage(), new Integer( 270 ));
1298          case 2: return new ID(getMessage(), new Integer( 191 ));
1299          case 3: return new TS(getMessage());
1300          case 4: return new XCN(getMessage());
1301          case 5: return new TS(getMessage());
1302          case 6: return new TS(getMessage());
1303          case 7: return new TS(getMessage());
1304          case 8: return new XCN(getMessage());
1305          case 9: return new XCN(getMessage());
1306          case 10: return new XCN(getMessage());
1307          case 11: return new EI(getMessage());
1308          case 12: return new EI(getMessage());
1309          case 13: return new EI(getMessage());
1310          case 14: return new EI(getMessage());
1311          case 15: return new ST(getMessage());
1312          case 16: return new ID(getMessage(), new Integer( 271 ));
1313          case 17: return new ID(getMessage(), new Integer( 272 ));
1314          case 18: return new ID(getMessage(), new Integer( 273 ));
1315          case 19: return new ID(getMessage(), new Integer( 275 ));
1316          case 20: return new ST(getMessage());
1317          case 21: return new PPN(getMessage());
1318          case 22: return new XCN(getMessage());
1319          default: return null;
1320       }
1321   }
1322
1323
1324}
1325