001/*
002 * This class is an auto-generated source file for a HAPI
003 * HL7 v2.x standard structure class.
004 *
005 * For more information, visit: http://hl7api.sourceforge.net/
006 * 
007 * The contents of this file are subject to the Mozilla Public License Version 1.1 
008 * (the "License"); you may not use this file except in compliance with the License. 
009 * You may obtain a copy of the License at http://www.mozilla.org/MPL/ 
010 * Software distributed under the License is distributed on an "AS IS" basis, 
011 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the 
012 * specific language governing rights and limitations under the License. 
013 * 
014 * The Original Code is "[file_name]".  Description: 
015 * "[one_line_description]" 
016 * 
017 * The Initial Developer of the Original Code is University Health Network. Copyright (C) 
018 * 2012.  All Rights Reserved. 
019 * 
020 * Contributor(s): ______________________________________. 
021 * 
022 * Alternatively, the contents of this file may be used under the terms of the 
023 * GNU General Public License (the  "GPL"), in which case the provisions of the GPL are 
024 * applicable instead of those above.  If you wish to allow use of your version of this 
025 * file only under the terms of the GPL and not to allow others to use your version 
026 * of this file under the MPL, indicate your decision by deleting  the provisions above 
027 * and replace  them with the notice and other provisions required by the GPL License.  
028 * If you do not delete the provisions above, a recipient may use your version of 
029 * this file under either the MPL or the GPL. 
030 * 
031 */
032
033
034package ca.uhn.hl7v2.model.v26.segment;
035
036// import ca.uhn.hl7v2.model.v26.group.*;
037import ca.uhn.hl7v2.model.v26.datatype.*;
038import ca.uhn.hl7v2.HL7Exception;
039import ca.uhn.hl7v2.parser.ModelClassFactory;
040import ca.uhn.hl7v2.parser.DefaultModelClassFactory;
041import ca.uhn.hl7v2.model.AbstractMessage;
042import ca.uhn.hl7v2.model.Group;
043import ca.uhn.hl7v2.model.Type;
044import ca.uhn.hl7v2.model.AbstractSegment;
045import ca.uhn.hl7v2.model.Varies;
046
047/**
048 *<p>Represents an HL7 SCD message segment (Anti-Microbial Cycle Data). 
049 * This segment has the following fields:</p>
050 * <ul>
051     * <li>SCD-1: Cycle Start Time (TM) <b>optional </b>
052     * <li>SCD-2: Cycle Count (NM) <b>optional </b>
053     * <li>SCD-3: Temp Max (CQ) <b>optional </b>
054     * <li>SCD-4: Temp Min (CQ) <b>optional </b>
055     * <li>SCD-5: Load Number (NM) <b>optional </b>
056     * <li>SCD-6: Condition Time (CQ) <b>optional </b>
057     * <li>SCD-7: Sterilize Time (CQ) <b>optional </b>
058     * <li>SCD-8: Exhaust Time (CQ) <b>optional </b>
059     * <li>SCD-9: Total Cycle Time (CQ) <b>optional </b>
060     * <li>SCD-10: Device Status (CWE) <b>optional </b>
061     * <li>SCD-11: Cycle Start Date/Time (DTM) <b>optional </b>
062     * <li>SCD-12: Dry Time (CQ) <b>optional </b>
063     * <li>SCD-13: Leak Rate (CQ) <b>optional </b>
064     * <li>SCD-14: Control Temperature (CQ) <b>optional </b>
065     * <li>SCD-15: Sterilizer Temperature (CQ) <b>optional </b>
066     * <li>SCD-16: Cycle Complete Time (TM) <b>optional </b>
067     * <li>SCD-17: Under Temperature (CQ) <b>optional </b>
068     * <li>SCD-18: Over Temperature (CQ) <b>optional </b>
069     * <li>SCD-19: Abort Cycle (CNE) <b>optional </b>
070     * <li>SCD-20: Alarm (CNE) <b>optional </b>
071     * <li>SCD-21: Long in Charge Phase (CNE) <b>optional </b>
072     * <li>SCD-22: Long in Exhaust Phase (CNE) <b>optional </b>
073     * <li>SCD-23: Long in Fast Exhaust Phase (CNE) <b>optional </b>
074     * <li>SCD-24: Reset (CNE) <b>optional </b>
075     * <li>SCD-25: Operator - Unload (XCN) <b>optional </b>
076     * <li>SCD-26: Door Open (CNE) <b>optional </b>
077     * <li>SCD-27: Reading Failure (CNE) <b>optional </b>
078     * <li>SCD-28: Cycle Type (CWE) <b>optional </b>
079     * <li>SCD-29: Thermal Rinse Time (CQ) <b>optional </b>
080     * <li>SCD-30: Wash Time (CQ) <b>optional </b>
081     * <li>SCD-31: Injection Rate (CQ) <b>optional </b>
082     * <li>SCD-32: Procedure Code (CNE) <b>optional </b>
083     * <li>SCD-33: Patient Identifier List (CX) <b>optional repeating</b>
084     * <li>SCD-34: Attending Doctor (XCN) <b>optional </b>
085     * <li>SCD-35: Dilution Factor (SN) <b>optional </b>
086     * <li>SCD-36: Fill Time (CQ) <b>optional </b>
087     * <li>SCD-37: Inlet Temperature (CQ) <b>optional </b>
088 * </ul>
089 */
090@SuppressWarnings("unused")
091public class SCD extends AbstractSegment {
092
093    /** 
094     * Creates a new SCD segment
095     */
096    public SCD(Group parent, ModelClassFactory factory) {
097       super(parent, factory);
098       init(factory);
099    }
100
101    private void init(ModelClassFactory factory) {
102       try {
103                                  this.add(TM.class, false, 1, 16, new Object[]{ getMessage() }, "Cycle Start Time");
104                                  this.add(NM.class, false, 1, 16, new Object[]{ getMessage() }, "Cycle Count");
105                                  this.add(CQ.class, false, 1, 36, new Object[]{ getMessage() }, "Temp Max");
106                                  this.add(CQ.class, false, 1, 36, new Object[]{ getMessage() }, "Temp Min");
107                                  this.add(NM.class, false, 1, 16, new Object[]{ getMessage() }, "Load Number");
108                                  this.add(CQ.class, false, 1, 16, new Object[]{ getMessage() }, "Condition Time");
109                                  this.add(CQ.class, false, 1, 16, new Object[]{ getMessage() }, "Sterilize Time");
110                                  this.add(CQ.class, false, 1, 16, new Object[]{ getMessage() }, "Exhaust Time");
111                                  this.add(CQ.class, false, 1, 16, new Object[]{ getMessage() }, "Total Cycle Time");
112                                  this.add(CWE.class, false, 1, 4, new Object[]{ getMessage() }, "Device Status");
113                                  this.add(DTM.class, false, 1, 24, new Object[]{ getMessage() }, "Cycle Start Date/Time");
114                                  this.add(CQ.class, false, 1, 16, new Object[]{ getMessage() }, "Dry Time");
115                                  this.add(CQ.class, false, 1, 16, new Object[]{ getMessage() }, "Leak Rate");
116                                  this.add(CQ.class, false, 1, 36, new Object[]{ getMessage() }, "Control Temperature");
117                                  this.add(CQ.class, false, 1, 36, new Object[]{ getMessage() }, "Sterilizer Temperature");
118                                  this.add(TM.class, false, 1, 16, new Object[]{ getMessage() }, "Cycle Complete Time");
119                                  this.add(CQ.class, false, 1, 36, new Object[]{ getMessage() }, "Under Temperature");
120                                  this.add(CQ.class, false, 1, 36, new Object[]{ getMessage() }, "Over Temperature");
121                                  this.add(CNE.class, false, 1, 4, new Object[]{ getMessage() }, "Abort Cycle");
122                                  this.add(CNE.class, false, 1, 4, new Object[]{ getMessage() }, "Alarm");
123                                  this.add(CNE.class, false, 1, 4, new Object[]{ getMessage() }, "Long in Charge Phase");
124                                  this.add(CNE.class, false, 1, 4, new Object[]{ getMessage() }, "Long in Exhaust Phase");
125                                  this.add(CNE.class, false, 1, 4, new Object[]{ getMessage() }, "Long in Fast Exhaust Phase");
126                                  this.add(CNE.class, false, 1, 4, new Object[]{ getMessage() }, "Reset");
127                                  this.add(XCN.class, false, 1, 15, new Object[]{ getMessage() }, "Operator - Unload");
128                                  this.add(CNE.class, false, 1, 4, new Object[]{ getMessage() }, "Door Open");
129                                  this.add(CNE.class, false, 1, 4, new Object[]{ getMessage() }, "Reading Failure");
130                                  this.add(CWE.class, false, 1, 3, new Object[]{ getMessage() }, "Cycle Type");
131                                  this.add(CQ.class, false, 1, 16, new Object[]{ getMessage() }, "Thermal Rinse Time");
132                                  this.add(CQ.class, false, 1, 16, new Object[]{ getMessage() }, "Wash Time");
133                                  this.add(CQ.class, false, 1, 16, new Object[]{ getMessage() }, "Injection Rate");
134                                  this.add(CNE.class, false, 1, 705, new Object[]{ getMessage() }, "Procedure Code");
135                                  this.add(CX.class, false, 0, 250, new Object[]{ getMessage() }, "Patient Identifier List");
136                                  this.add(XCN.class, false, 1, 250, new Object[]{ getMessage() }, "Attending Doctor");
137                                  this.add(SN.class, false, 1, 36, new Object[]{ getMessage() }, "Dilution Factor");
138                                  this.add(CQ.class, false, 1, 16, new Object[]{ getMessage() }, "Fill Time");
139                                  this.add(CQ.class, false, 1, 36, new Object[]{ getMessage() }, "Inlet Temperature");
140       } catch(HL7Exception e) {
141          log.error("Unexpected error creating SCD - this is probably a bug in the source code generator.", e);
142       }
143    }
144
145
146
147    /**
148     * Returns
149     * SCD-1: "Cycle Start Time" - creates it if necessary
150     */
151    public TM getCycleStartTime() { 
152                TM retVal = this.getTypedField(1, 0);
153                return retVal;
154    }
155    
156    /**
157     * Returns
158     * SCD-1: "Cycle Start Time" - creates it if necessary
159     */
160    public TM getScd1_CycleStartTime() { 
161                TM retVal = this.getTypedField(1, 0);
162                return retVal;
163    }
164
165
166
167    /**
168     * Returns
169     * SCD-2: "Cycle Count" - creates it if necessary
170     */
171    public NM getCycleCount() { 
172                NM retVal = this.getTypedField(2, 0);
173                return retVal;
174    }
175    
176    /**
177     * Returns
178     * SCD-2: "Cycle Count" - creates it if necessary
179     */
180    public NM getScd2_CycleCount() { 
181                NM retVal = this.getTypedField(2, 0);
182                return retVal;
183    }
184
185
186
187    /**
188     * Returns
189     * SCD-3: "Temp Max" - creates it if necessary
190     */
191    public CQ getTempMax() { 
192                CQ retVal = this.getTypedField(3, 0);
193                return retVal;
194    }
195    
196    /**
197     * Returns
198     * SCD-3: "Temp Max" - creates it if necessary
199     */
200    public CQ getScd3_TempMax() { 
201                CQ retVal = this.getTypedField(3, 0);
202                return retVal;
203    }
204
205
206
207    /**
208     * Returns
209     * SCD-4: "Temp Min" - creates it if necessary
210     */
211    public CQ getTempMin() { 
212                CQ retVal = this.getTypedField(4, 0);
213                return retVal;
214    }
215    
216    /**
217     * Returns
218     * SCD-4: "Temp Min" - creates it if necessary
219     */
220    public CQ getScd4_TempMin() { 
221                CQ retVal = this.getTypedField(4, 0);
222                return retVal;
223    }
224
225
226
227    /**
228     * Returns
229     * SCD-5: "Load Number" - creates it if necessary
230     */
231    public NM getLoadNumber() { 
232                NM retVal = this.getTypedField(5, 0);
233                return retVal;
234    }
235    
236    /**
237     * Returns
238     * SCD-5: "Load Number" - creates it if necessary
239     */
240    public NM getScd5_LoadNumber() { 
241                NM retVal = this.getTypedField(5, 0);
242                return retVal;
243    }
244
245
246
247    /**
248     * Returns
249     * SCD-6: "Condition Time" - creates it if necessary
250     */
251    public CQ getConditionTime() { 
252                CQ retVal = this.getTypedField(6, 0);
253                return retVal;
254    }
255    
256    /**
257     * Returns
258     * SCD-6: "Condition Time" - creates it if necessary
259     */
260    public CQ getScd6_ConditionTime() { 
261                CQ retVal = this.getTypedField(6, 0);
262                return retVal;
263    }
264
265
266
267    /**
268     * Returns
269     * SCD-7: "Sterilize Time" - creates it if necessary
270     */
271    public CQ getSterilizeTime() { 
272                CQ retVal = this.getTypedField(7, 0);
273                return retVal;
274    }
275    
276    /**
277     * Returns
278     * SCD-7: "Sterilize Time" - creates it if necessary
279     */
280    public CQ getScd7_SterilizeTime() { 
281                CQ retVal = this.getTypedField(7, 0);
282                return retVal;
283    }
284
285
286
287    /**
288     * Returns
289     * SCD-8: "Exhaust Time" - creates it if necessary
290     */
291    public CQ getExhaustTime() { 
292                CQ retVal = this.getTypedField(8, 0);
293                return retVal;
294    }
295    
296    /**
297     * Returns
298     * SCD-8: "Exhaust Time" - creates it if necessary
299     */
300    public CQ getScd8_ExhaustTime() { 
301                CQ retVal = this.getTypedField(8, 0);
302                return retVal;
303    }
304
305
306
307    /**
308     * Returns
309     * SCD-9: "Total Cycle Time" - creates it if necessary
310     */
311    public CQ getTotalCycleTime() { 
312                CQ retVal = this.getTypedField(9, 0);
313                return retVal;
314    }
315    
316    /**
317     * Returns
318     * SCD-9: "Total Cycle Time" - creates it if necessary
319     */
320    public CQ getScd9_TotalCycleTime() { 
321                CQ retVal = this.getTypedField(9, 0);
322                return retVal;
323    }
324
325
326
327    /**
328     * Returns
329     * SCD-10: "Device Status" - creates it if necessary
330     */
331    public CWE getDeviceStatus() { 
332                CWE retVal = this.getTypedField(10, 0);
333                return retVal;
334    }
335    
336    /**
337     * Returns
338     * SCD-10: "Device Status" - creates it if necessary
339     */
340    public CWE getScd10_DeviceStatus() { 
341                CWE retVal = this.getTypedField(10, 0);
342                return retVal;
343    }
344
345
346
347    /**
348     * Returns
349     * SCD-11: "Cycle Start Date/Time" - creates it if necessary
350     */
351    public DTM getCycleStartDateTime() { 
352                DTM retVal = this.getTypedField(11, 0);
353                return retVal;
354    }
355    
356    /**
357     * Returns
358     * SCD-11: "Cycle Start Date/Time" - creates it if necessary
359     */
360    public DTM getScd11_CycleStartDateTime() { 
361                DTM retVal = this.getTypedField(11, 0);
362                return retVal;
363    }
364
365
366
367    /**
368     * Returns
369     * SCD-12: "Dry Time" - creates it if necessary
370     */
371    public CQ getDryTime() { 
372                CQ retVal = this.getTypedField(12, 0);
373                return retVal;
374    }
375    
376    /**
377     * Returns
378     * SCD-12: "Dry Time" - creates it if necessary
379     */
380    public CQ getScd12_DryTime() { 
381                CQ retVal = this.getTypedField(12, 0);
382                return retVal;
383    }
384
385
386
387    /**
388     * Returns
389     * SCD-13: "Leak Rate" - creates it if necessary
390     */
391    public CQ getLeakRate() { 
392                CQ retVal = this.getTypedField(13, 0);
393                return retVal;
394    }
395    
396    /**
397     * Returns
398     * SCD-13: "Leak Rate" - creates it if necessary
399     */
400    public CQ getScd13_LeakRate() { 
401                CQ retVal = this.getTypedField(13, 0);
402                return retVal;
403    }
404
405
406
407    /**
408     * Returns
409     * SCD-14: "Control Temperature" - creates it if necessary
410     */
411    public CQ getControlTemperature() { 
412                CQ retVal = this.getTypedField(14, 0);
413                return retVal;
414    }
415    
416    /**
417     * Returns
418     * SCD-14: "Control Temperature" - creates it if necessary
419     */
420    public CQ getScd14_ControlTemperature() { 
421                CQ retVal = this.getTypedField(14, 0);
422                return retVal;
423    }
424
425
426
427    /**
428     * Returns
429     * SCD-15: "Sterilizer Temperature" - creates it if necessary
430     */
431    public CQ getSterilizerTemperature() { 
432                CQ retVal = this.getTypedField(15, 0);
433                return retVal;
434    }
435    
436    /**
437     * Returns
438     * SCD-15: "Sterilizer Temperature" - creates it if necessary
439     */
440    public CQ getScd15_SterilizerTemperature() { 
441                CQ retVal = this.getTypedField(15, 0);
442                return retVal;
443    }
444
445
446
447    /**
448     * Returns
449     * SCD-16: "Cycle Complete Time" - creates it if necessary
450     */
451    public TM getCycleCompleteTime() { 
452                TM retVal = this.getTypedField(16, 0);
453                return retVal;
454    }
455    
456    /**
457     * Returns
458     * SCD-16: "Cycle Complete Time" - creates it if necessary
459     */
460    public TM getScd16_CycleCompleteTime() { 
461                TM retVal = this.getTypedField(16, 0);
462                return retVal;
463    }
464
465
466
467    /**
468     * Returns
469     * SCD-17: "Under Temperature" - creates it if necessary
470     */
471    public CQ getUnderTemperature() { 
472                CQ retVal = this.getTypedField(17, 0);
473                return retVal;
474    }
475    
476    /**
477     * Returns
478     * SCD-17: "Under Temperature" - creates it if necessary
479     */
480    public CQ getScd17_UnderTemperature() { 
481                CQ retVal = this.getTypedField(17, 0);
482                return retVal;
483    }
484
485
486
487    /**
488     * Returns
489     * SCD-18: "Over Temperature" - creates it if necessary
490     */
491    public CQ getOverTemperature() { 
492                CQ retVal = this.getTypedField(18, 0);
493                return retVal;
494    }
495    
496    /**
497     * Returns
498     * SCD-18: "Over Temperature" - creates it if necessary
499     */
500    public CQ getScd18_OverTemperature() { 
501                CQ retVal = this.getTypedField(18, 0);
502                return retVal;
503    }
504
505
506
507    /**
508     * Returns
509     * SCD-19: "Abort Cycle" - creates it if necessary
510     */
511    public CNE getAbortCycle() { 
512                CNE retVal = this.getTypedField(19, 0);
513                return retVal;
514    }
515    
516    /**
517     * Returns
518     * SCD-19: "Abort Cycle" - creates it if necessary
519     */
520    public CNE getScd19_AbortCycle() { 
521                CNE retVal = this.getTypedField(19, 0);
522                return retVal;
523    }
524
525
526
527    /**
528     * Returns
529     * SCD-20: "Alarm" - creates it if necessary
530     */
531    public CNE getAlarm() { 
532                CNE retVal = this.getTypedField(20, 0);
533                return retVal;
534    }
535    
536    /**
537     * Returns
538     * SCD-20: "Alarm" - creates it if necessary
539     */
540    public CNE getScd20_Alarm() { 
541                CNE retVal = this.getTypedField(20, 0);
542                return retVal;
543    }
544
545
546
547    /**
548     * Returns
549     * SCD-21: "Long in Charge Phase" - creates it if necessary
550     */
551    public CNE getLongInChargePhase() { 
552                CNE retVal = this.getTypedField(21, 0);
553                return retVal;
554    }
555    
556    /**
557     * Returns
558     * SCD-21: "Long in Charge Phase" - creates it if necessary
559     */
560    public CNE getScd21_LongInChargePhase() { 
561                CNE retVal = this.getTypedField(21, 0);
562                return retVal;
563    }
564
565
566
567    /**
568     * Returns
569     * SCD-22: "Long in Exhaust Phase" - creates it if necessary
570     */
571    public CNE getLongInExhaustPhase() { 
572                CNE retVal = this.getTypedField(22, 0);
573                return retVal;
574    }
575    
576    /**
577     * Returns
578     * SCD-22: "Long in Exhaust Phase" - creates it if necessary
579     */
580    public CNE getScd22_LongInExhaustPhase() { 
581                CNE retVal = this.getTypedField(22, 0);
582                return retVal;
583    }
584
585
586
587    /**
588     * Returns
589     * SCD-23: "Long in Fast Exhaust Phase" - creates it if necessary
590     */
591    public CNE getLongInFastExhaustPhase() { 
592                CNE retVal = this.getTypedField(23, 0);
593                return retVal;
594    }
595    
596    /**
597     * Returns
598     * SCD-23: "Long in Fast Exhaust Phase" - creates it if necessary
599     */
600    public CNE getScd23_LongInFastExhaustPhase() { 
601                CNE retVal = this.getTypedField(23, 0);
602                return retVal;
603    }
604
605
606
607    /**
608     * Returns
609     * SCD-24: "Reset" - creates it if necessary
610     */
611    public CNE getReset() { 
612                CNE retVal = this.getTypedField(24, 0);
613                return retVal;
614    }
615    
616    /**
617     * Returns
618     * SCD-24: "Reset" - creates it if necessary
619     */
620    public CNE getScd24_Reset() { 
621                CNE retVal = this.getTypedField(24, 0);
622                return retVal;
623    }
624
625
626
627    /**
628     * Returns
629     * SCD-25: "Operator - Unload" - creates it if necessary
630     */
631    public XCN getOperatorUnload() { 
632                XCN retVal = this.getTypedField(25, 0);
633                return retVal;
634    }
635    
636    /**
637     * Returns
638     * SCD-25: "Operator - Unload" - creates it if necessary
639     */
640    public XCN getScd25_OperatorUnload() { 
641                XCN retVal = this.getTypedField(25, 0);
642                return retVal;
643    }
644
645
646
647    /**
648     * Returns
649     * SCD-26: "Door Open" - creates it if necessary
650     */
651    public CNE getDoorOpen() { 
652                CNE retVal = this.getTypedField(26, 0);
653                return retVal;
654    }
655    
656    /**
657     * Returns
658     * SCD-26: "Door Open" - creates it if necessary
659     */
660    public CNE getScd26_DoorOpen() { 
661                CNE retVal = this.getTypedField(26, 0);
662                return retVal;
663    }
664
665
666
667    /**
668     * Returns
669     * SCD-27: "Reading Failure" - creates it if necessary
670     */
671    public CNE getReadingFailure() { 
672                CNE retVal = this.getTypedField(27, 0);
673                return retVal;
674    }
675    
676    /**
677     * Returns
678     * SCD-27: "Reading Failure" - creates it if necessary
679     */
680    public CNE getScd27_ReadingFailure() { 
681                CNE retVal = this.getTypedField(27, 0);
682                return retVal;
683    }
684
685
686
687    /**
688     * Returns
689     * SCD-28: "Cycle Type" - creates it if necessary
690     */
691    public CWE getCycleType() { 
692                CWE retVal = this.getTypedField(28, 0);
693                return retVal;
694    }
695    
696    /**
697     * Returns
698     * SCD-28: "Cycle Type" - creates it if necessary
699     */
700    public CWE getScd28_CycleType() { 
701                CWE retVal = this.getTypedField(28, 0);
702                return retVal;
703    }
704
705
706
707    /**
708     * Returns
709     * SCD-29: "Thermal Rinse Time" - creates it if necessary
710     */
711    public CQ getThermalRinseTime() { 
712                CQ retVal = this.getTypedField(29, 0);
713                return retVal;
714    }
715    
716    /**
717     * Returns
718     * SCD-29: "Thermal Rinse Time" - creates it if necessary
719     */
720    public CQ getScd29_ThermalRinseTime() { 
721                CQ retVal = this.getTypedField(29, 0);
722                return retVal;
723    }
724
725
726
727    /**
728     * Returns
729     * SCD-30: "Wash Time" - creates it if necessary
730     */
731    public CQ getWashTime() { 
732                CQ retVal = this.getTypedField(30, 0);
733                return retVal;
734    }
735    
736    /**
737     * Returns
738     * SCD-30: "Wash Time" - creates it if necessary
739     */
740    public CQ getScd30_WashTime() { 
741                CQ retVal = this.getTypedField(30, 0);
742                return retVal;
743    }
744
745
746
747    /**
748     * Returns
749     * SCD-31: "Injection Rate" - creates it if necessary
750     */
751    public CQ getInjectionRate() { 
752                CQ retVal = this.getTypedField(31, 0);
753                return retVal;
754    }
755    
756    /**
757     * Returns
758     * SCD-31: "Injection Rate" - creates it if necessary
759     */
760    public CQ getScd31_InjectionRate() { 
761                CQ retVal = this.getTypedField(31, 0);
762                return retVal;
763    }
764
765
766
767    /**
768     * Returns
769     * SCD-32: "Procedure Code" - creates it if necessary
770     */
771    public CNE getProcedureCode() { 
772                CNE retVal = this.getTypedField(32, 0);
773                return retVal;
774    }
775    
776    /**
777     * Returns
778     * SCD-32: "Procedure Code" - creates it if necessary
779     */
780    public CNE getScd32_ProcedureCode() { 
781                CNE retVal = this.getTypedField(32, 0);
782                return retVal;
783    }
784
785
786    /**
787     * Returns all repetitions of Patient Identifier List (SCD-33).
788     */
789    public CX[] getPatientIdentifierList() {
790        CX[] retVal = this.getTypedField(33, new CX[0]);
791        return retVal;
792    }
793
794
795    /**
796     * Returns all repetitions of Patient Identifier List (SCD-33).
797     */
798    public CX[] getScd33_PatientIdentifierList() {
799        CX[] retVal = this.getTypedField(33, new CX[0]);
800        return retVal;
801    }
802
803
804    /**
805     * Returns a count of the current number of repetitions of Patient Identifier List (SCD-33).
806     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
807     * it will return zero.
808     */
809    public int getPatientIdentifierListReps() {
810        return this.getReps(33);
811    }
812
813
814    /**
815     * Returns a specific repetition of
816     * SCD-33: "Patient Identifier List" - creates it if necessary
817     *
818     * @param rep The repetition index (0-indexed)
819     */
820    public CX getPatientIdentifierList(int rep) { 
821                CX retVal = this.getTypedField(33, rep);
822                return retVal;
823    }
824
825    /**
826     * Returns a specific repetition of
827     * SCD-33: "Patient Identifier List" - creates it if necessary
828     *
829     * @param rep The repetition index (0-indexed)
830     */
831    public CX getScd33_PatientIdentifierList(int rep) { 
832                CX retVal = this.getTypedField(33, rep);
833                return retVal;
834    }
835
836    /**
837     * Returns a count of the current number of repetitions of Patient Identifier List (SCD-33).
838     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
839     * it will return zero.
840     */
841    public int getScd33_PatientIdentifierListReps() {
842        return this.getReps(33);
843    }
844
845
846    /**
847     * Inserts a repetition of
848     * SCD-33: "Patient Identifier List" at a specific index
849     *
850     * @param rep The repetition index (0-indexed)
851     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
852     */
853    public CX insertPatientIdentifierList(int rep) throws HL7Exception { 
854        return (CX) super.insertRepetition(33, rep);
855    }
856
857
858    /**
859     * Inserts a repetition of
860     * SCD-33: "Patient Identifier List" at a specific index
861     *
862     * @param rep The repetition index (0-indexed)
863     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
864     */
865    public CX insertScd33_PatientIdentifierList(int rep) throws HL7Exception { 
866        return (CX) super.insertRepetition(33, rep);
867    }
868
869
870    /**
871     * Removes a repetition of
872     * SCD-33: "Patient Identifier List" at a specific index
873     *
874     * @param rep The repetition index (0-indexed)
875     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
876     */
877    public CX removePatientIdentifierList(int rep) throws HL7Exception { 
878        return (CX) super.removeRepetition(33, rep);
879    }
880
881
882    /**
883     * Removes a repetition of
884     * SCD-33: "Patient Identifier List" at a specific index
885     *
886     * @param rep The repetition index (0-indexed)
887     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
888     */
889    public CX removeScd33_PatientIdentifierList(int rep) throws HL7Exception { 
890        return (CX) super.removeRepetition(33, rep);
891    }
892
893
894
895
896    /**
897     * Returns
898     * SCD-34: "Attending Doctor" - creates it if necessary
899     */
900    public XCN getAttendingDoctor() { 
901                XCN retVal = this.getTypedField(34, 0);
902                return retVal;
903    }
904    
905    /**
906     * Returns
907     * SCD-34: "Attending Doctor" - creates it if necessary
908     */
909    public XCN getScd34_AttendingDoctor() { 
910                XCN retVal = this.getTypedField(34, 0);
911                return retVal;
912    }
913
914
915
916    /**
917     * Returns
918     * SCD-35: "Dilution Factor" - creates it if necessary
919     */
920    public SN getDilutionFactor() { 
921                SN retVal = this.getTypedField(35, 0);
922                return retVal;
923    }
924    
925    /**
926     * Returns
927     * SCD-35: "Dilution Factor" - creates it if necessary
928     */
929    public SN getScd35_DilutionFactor() { 
930                SN retVal = this.getTypedField(35, 0);
931                return retVal;
932    }
933
934
935
936    /**
937     * Returns
938     * SCD-36: "Fill Time" - creates it if necessary
939     */
940    public CQ getFillTime() { 
941                CQ retVal = this.getTypedField(36, 0);
942                return retVal;
943    }
944    
945    /**
946     * Returns
947     * SCD-36: "Fill Time" - creates it if necessary
948     */
949    public CQ getScd36_FillTime() { 
950                CQ retVal = this.getTypedField(36, 0);
951                return retVal;
952    }
953
954
955
956    /**
957     * Returns
958     * SCD-37: "Inlet Temperature" - creates it if necessary
959     */
960    public CQ getInletTemperature() { 
961                CQ retVal = this.getTypedField(37, 0);
962                return retVal;
963    }
964    
965    /**
966     * Returns
967     * SCD-37: "Inlet Temperature" - creates it if necessary
968     */
969    public CQ getScd37_InletTemperature() { 
970                CQ retVal = this.getTypedField(37, 0);
971                return retVal;
972    }
973
974
975
976
977
978    /** {@inheritDoc} */   
979    protected Type createNewTypeWithoutReflection(int field) {
980       switch (field) {
981          case 0: return new TM(getMessage());
982          case 1: return new NM(getMessage());
983          case 2: return new CQ(getMessage());
984          case 3: return new CQ(getMessage());
985          case 4: return new NM(getMessage());
986          case 5: return new CQ(getMessage());
987          case 6: return new CQ(getMessage());
988          case 7: return new CQ(getMessage());
989          case 8: return new CQ(getMessage());
990          case 9: return new CWE(getMessage());
991          case 10: return new DTM(getMessage());
992          case 11: return new CQ(getMessage());
993          case 12: return new CQ(getMessage());
994          case 13: return new CQ(getMessage());
995          case 14: return new CQ(getMessage());
996          case 15: return new TM(getMessage());
997          case 16: return new CQ(getMessage());
998          case 17: return new CQ(getMessage());
999          case 18: return new CNE(getMessage());
1000          case 19: return new CNE(getMessage());
1001          case 20: return new CNE(getMessage());
1002          case 21: return new CNE(getMessage());
1003          case 22: return new CNE(getMessage());
1004          case 23: return new CNE(getMessage());
1005          case 24: return new XCN(getMessage());
1006          case 25: return new CNE(getMessage());
1007          case 26: return new CNE(getMessage());
1008          case 27: return new CWE(getMessage());
1009          case 28: return new CQ(getMessage());
1010          case 29: return new CQ(getMessage());
1011          case 30: return new CQ(getMessage());
1012          case 31: return new CNE(getMessage());
1013          case 32: return new CX(getMessage());
1014          case 33: return new XCN(getMessage());
1015          case 34: return new SN(getMessage());
1016          case 35: return new CQ(getMessage());
1017          case 36: return new CQ(getMessage());
1018          default: return null;
1019       }
1020   }
1021
1022
1023}
1024