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.v28.segment;
035
036// import ca.uhn.hl7v2.model.v28.group.*;
037import ca.uhn.hl7v2.model.v28.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 DG1 message segment (Diagnosis). 
050 * This segment has the following fields:</p>
051 * <ul>
052     * <li>DG1-1: Set ID - DG1 (SI) <b> </b>
053     * <li>DG1-2: Diagnosis Coding Method (NULLDT) <b>optional </b>
054     * <li>DG1-3: Diagnosis Code - DG1 (CWE) <b> </b>
055     * <li>DG1-4: Diagnosis Description (NULLDT) <b>optional </b>
056     * <li>DG1-5: Diagnosis Date/Time (DTM) <b>optional </b>
057     * <li>DG1-6: Diagnosis Type (CWE) <b> </b>
058     * <li>DG1-7: Major Diagnostic Category (CNE) <b>optional </b>
059     * <li>DG1-8: Diagnostic Related Group (CNE) <b>optional </b>
060     * <li>DG1-9: DRG Approval Indicator (ID) <b>optional </b>
061     * <li>DG1-10: DRG Grouper Review Code (CWE) <b>optional </b>
062     * <li>DG1-11: Outlier Type (CWE) <b>optional </b>
063     * <li>DG1-12: Outlier Days (NM) <b>optional </b>
064     * <li>DG1-13: Outlier Cost (CP) <b>optional </b>
065     * <li>DG1-14: Grouper Version And Type (NULLDT) <b>optional </b>
066     * <li>DG1-15: Diagnosis Priority (NM) <b>optional </b>
067     * <li>DG1-16: Diagnosing Clinician (XCN) <b>optional repeating</b>
068     * <li>DG1-17: Diagnosis Classification (CWE) <b>optional </b>
069     * <li>DG1-18: Confidential Indicator (ID) <b>optional </b>
070     * <li>DG1-19: Attestation Date/Time (DTM) <b>optional </b>
071     * <li>DG1-20: Diagnosis Identifier (EI) <b>optional </b>
072     * <li>DG1-21: Diagnosis Action Code (ID) <b>optional </b>
073     * <li>DG1-22: Parent Diagnosis (EI) <b>optional </b>
074     * <li>DG1-23: DRG CCL Value Code (CWE) <b>optional </b>
075     * <li>DG1-24: DRG Grouping Usage (ID) <b>optional </b>
076     * <li>DG1-25: DRG Diagnosis Determination Status (CWE) <b>optional </b>
077     * <li>DG1-26: Present On Admission (POA) Indicator (CWE) <b>optional </b>
078 * </ul>
079 */
080@SuppressWarnings("unused")
081public class DG1 extends AbstractSegment {
082
083    /** 
084     * Creates a new DG1 segment
085     */
086    public DG1(Group parent, ModelClassFactory factory) {
087       super(parent, factory);
088       init(factory);
089    }
090
091    private void init(ModelClassFactory factory) {
092       try {
093                                  this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "Set ID - DG1");
094                                  this.add(NULLDT.class, false, 1, 0, new Object[]{ getMessage() }, "Diagnosis Coding Method");
095                                  this.add(CWE.class, true, 1, 0, new Object[]{ getMessage() }, "Diagnosis Code - DG1");
096                                  this.add(NULLDT.class, false, 1, 0, new Object[]{ getMessage() }, "Diagnosis Description");
097                                  this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Diagnosis Date/Time");
098                                  this.add(CWE.class, true, 1, 0, new Object[]{ getMessage() }, "Diagnosis Type");
099                                  this.add(CNE.class, false, 1, 0, new Object[]{ getMessage() }, "Major Diagnostic Category");
100                                  this.add(CNE.class, false, 1, 0, new Object[]{ getMessage() }, "Diagnostic Related Group");
101                                              this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "DRG Approval Indicator");
102                                  this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "DRG Grouper Review Code");
103                                  this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Outlier Type");
104                                  this.add(NM.class, false, 1, 0, new Object[]{ getMessage() }, "Outlier Days");
105                                  this.add(CP.class, false, 1, 0, new Object[]{ getMessage() }, "Outlier Cost");
106                                  this.add(NULLDT.class, false, 1, 0, new Object[]{ getMessage() }, "Grouper Version And Type");
107                                  this.add(NM.class, false, 1, 0, new Object[]{ getMessage() }, "Diagnosis Priority");
108                                  this.add(XCN.class, false, 0, 0, new Object[]{ getMessage() }, "Diagnosing Clinician");
109                                  this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Diagnosis Classification");
110                                              this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Confidential Indicator");
111                                  this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Attestation Date/Time");
112                                  this.add(EI.class, false, 1, 0, new Object[]{ getMessage() }, "Diagnosis Identifier");
113                                              this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(206) }, "Diagnosis Action Code");
114                                  this.add(EI.class, false, 1, 0, new Object[]{ getMessage() }, "Parent Diagnosis");
115                                  this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "DRG CCL Value Code");
116                                              this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "DRG Grouping Usage");
117                                  this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "DRG Diagnosis Determination Status");
118                                  this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Present On Admission (POA) Indicator");
119       } catch(HL7Exception e) {
120          log.error("Unexpected error creating DG1 - this is probably a bug in the source code generator.", e);
121       }
122    }
123
124
125
126    /**
127     * Returns
128     * DG1-1: "Set ID - DG1" - creates it if necessary
129     */
130    public SI getSetIDDG1() { 
131                SI retVal = this.getTypedField(1, 0);
132                return retVal;
133    }
134    
135    /**
136     * Returns
137     * DG1-1: "Set ID - DG1" - creates it if necessary
138     */
139    public SI getDg11_SetIDDG1() { 
140                SI retVal = this.getTypedField(1, 0);
141                return retVal;
142    }
143
144
145
146    /**
147     * Returns
148     * DG1-2: "Diagnosis Coding Method" - creates it if necessary
149     */
150    public NULLDT getDiagnosisCodingMethod() { 
151                NULLDT retVal = this.getTypedField(2, 0);
152                return retVal;
153    }
154    
155    /**
156     * Returns
157     * DG1-2: "Diagnosis Coding Method" - creates it if necessary
158     */
159    public NULLDT getDg12_DiagnosisCodingMethod() { 
160                NULLDT retVal = this.getTypedField(2, 0);
161                return retVal;
162    }
163
164
165
166    /**
167     * Returns
168     * DG1-3: "Diagnosis Code - DG1" - creates it if necessary
169     */
170    public CWE getDiagnosisCodeDG1() { 
171                CWE retVal = this.getTypedField(3, 0);
172                return retVal;
173    }
174    
175    /**
176     * Returns
177     * DG1-3: "Diagnosis Code - DG1" - creates it if necessary
178     */
179    public CWE getDg13_DiagnosisCodeDG1() { 
180                CWE retVal = this.getTypedField(3, 0);
181                return retVal;
182    }
183
184
185
186    /**
187     * Returns
188     * DG1-4: "Diagnosis Description" - creates it if necessary
189     */
190    public NULLDT getDiagnosisDescription() { 
191                NULLDT retVal = this.getTypedField(4, 0);
192                return retVal;
193    }
194    
195    /**
196     * Returns
197     * DG1-4: "Diagnosis Description" - creates it if necessary
198     */
199    public NULLDT getDg14_DiagnosisDescription() { 
200                NULLDT retVal = this.getTypedField(4, 0);
201                return retVal;
202    }
203
204
205
206    /**
207     * Returns
208     * DG1-5: "Diagnosis Date/Time" - creates it if necessary
209     */
210    public DTM getDiagnosisDateTime() { 
211                DTM retVal = this.getTypedField(5, 0);
212                return retVal;
213    }
214    
215    /**
216     * Returns
217     * DG1-5: "Diagnosis Date/Time" - creates it if necessary
218     */
219    public DTM getDg15_DiagnosisDateTime() { 
220                DTM retVal = this.getTypedField(5, 0);
221                return retVal;
222    }
223
224
225
226    /**
227     * Returns
228     * DG1-6: "Diagnosis Type" - creates it if necessary
229     */
230    public CWE getDiagnosisType() { 
231                CWE retVal = this.getTypedField(6, 0);
232                return retVal;
233    }
234    
235    /**
236     * Returns
237     * DG1-6: "Diagnosis Type" - creates it if necessary
238     */
239    public CWE getDg16_DiagnosisType() { 
240                CWE retVal = this.getTypedField(6, 0);
241                return retVal;
242    }
243
244
245
246    /**
247     * Returns
248     * DG1-7: "Major Diagnostic Category" - creates it if necessary
249     */
250    public CNE getMajorDiagnosticCategory() { 
251                CNE retVal = this.getTypedField(7, 0);
252                return retVal;
253    }
254    
255    /**
256     * Returns
257     * DG1-7: "Major Diagnostic Category" - creates it if necessary
258     */
259    public CNE getDg17_MajorDiagnosticCategory() { 
260                CNE retVal = this.getTypedField(7, 0);
261                return retVal;
262    }
263
264
265
266    /**
267     * Returns
268     * DG1-8: "Diagnostic Related Group" - creates it if necessary
269     */
270    public CNE getDiagnosticRelatedGroup() { 
271                CNE retVal = this.getTypedField(8, 0);
272                return retVal;
273    }
274    
275    /**
276     * Returns
277     * DG1-8: "Diagnostic Related Group" - creates it if necessary
278     */
279    public CNE getDg18_DiagnosticRelatedGroup() { 
280                CNE retVal = this.getTypedField(8, 0);
281                return retVal;
282    }
283
284
285
286    /**
287     * Returns
288     * DG1-9: "DRG Approval Indicator" - creates it if necessary
289     */
290    public ID getDRGApprovalIndicator() { 
291                ID retVal = this.getTypedField(9, 0);
292                return retVal;
293    }
294    
295    /**
296     * Returns
297     * DG1-9: "DRG Approval Indicator" - creates it if necessary
298     */
299    public ID getDg19_DRGApprovalIndicator() { 
300                ID retVal = this.getTypedField(9, 0);
301                return retVal;
302    }
303
304
305
306    /**
307     * Returns
308     * DG1-10: "DRG Grouper Review Code" - creates it if necessary
309     */
310    public CWE getDRGGrouperReviewCode() { 
311                CWE retVal = this.getTypedField(10, 0);
312                return retVal;
313    }
314    
315    /**
316     * Returns
317     * DG1-10: "DRG Grouper Review Code" - creates it if necessary
318     */
319    public CWE getDg110_DRGGrouperReviewCode() { 
320                CWE retVal = this.getTypedField(10, 0);
321                return retVal;
322    }
323
324
325
326    /**
327     * Returns
328     * DG1-11: "Outlier Type" - creates it if necessary
329     */
330    public CWE getOutlierType() { 
331                CWE retVal = this.getTypedField(11, 0);
332                return retVal;
333    }
334    
335    /**
336     * Returns
337     * DG1-11: "Outlier Type" - creates it if necessary
338     */
339    public CWE getDg111_OutlierType() { 
340                CWE retVal = this.getTypedField(11, 0);
341                return retVal;
342    }
343
344
345
346    /**
347     * Returns
348     * DG1-12: "Outlier Days" - creates it if necessary
349     */
350    public NM getOutlierDays() { 
351                NM retVal = this.getTypedField(12, 0);
352                return retVal;
353    }
354    
355    /**
356     * Returns
357     * DG1-12: "Outlier Days" - creates it if necessary
358     */
359    public NM getDg112_OutlierDays() { 
360                NM retVal = this.getTypedField(12, 0);
361                return retVal;
362    }
363
364
365
366    /**
367     * Returns
368     * DG1-13: "Outlier Cost" - creates it if necessary
369     */
370    public CP getOutlierCost() { 
371                CP retVal = this.getTypedField(13, 0);
372                return retVal;
373    }
374    
375    /**
376     * Returns
377     * DG1-13: "Outlier Cost" - creates it if necessary
378     */
379    public CP getDg113_OutlierCost() { 
380                CP retVal = this.getTypedField(13, 0);
381                return retVal;
382    }
383
384
385
386    /**
387     * Returns
388     * DG1-14: "Grouper Version And Type" - creates it if necessary
389     */
390    public NULLDT getGrouperVersionAndType() { 
391                NULLDT retVal = this.getTypedField(14, 0);
392                return retVal;
393    }
394    
395    /**
396     * Returns
397     * DG1-14: "Grouper Version And Type" - creates it if necessary
398     */
399    public NULLDT getDg114_GrouperVersionAndType() { 
400                NULLDT retVal = this.getTypedField(14, 0);
401                return retVal;
402    }
403
404
405
406    /**
407     * Returns
408     * DG1-15: "Diagnosis Priority" - creates it if necessary
409     */
410    public NM getDiagnosisPriority() { 
411                NM retVal = this.getTypedField(15, 0);
412                return retVal;
413    }
414    
415    /**
416     * Returns
417     * DG1-15: "Diagnosis Priority" - creates it if necessary
418     */
419    public NM getDg115_DiagnosisPriority() { 
420                NM retVal = this.getTypedField(15, 0);
421                return retVal;
422    }
423
424
425    /**
426     * Returns all repetitions of Diagnosing Clinician (DG1-16).
427     */
428    public XCN[] getDiagnosingClinician() {
429        XCN[] retVal = this.getTypedField(16, new XCN[0]);
430        return retVal;
431    }
432
433
434    /**
435     * Returns all repetitions of Diagnosing Clinician (DG1-16).
436     */
437    public XCN[] getDg116_DiagnosingClinician() {
438        XCN[] retVal = this.getTypedField(16, new XCN[0]);
439        return retVal;
440    }
441
442
443    /**
444     * Returns a count of the current number of repetitions of Diagnosing Clinician (DG1-16).
445     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
446     * it will return zero.
447     */
448    public int getDiagnosingClinicianReps() {
449        return this.getReps(16);
450    }
451
452
453    /**
454     * Returns a specific repetition of
455     * DG1-16: "Diagnosing Clinician" - creates it if necessary
456     *
457     * @param rep The repetition index (0-indexed)
458     */
459    public XCN getDiagnosingClinician(int rep) { 
460                XCN retVal = this.getTypedField(16, rep);
461                return retVal;
462    }
463
464    /**
465     * Returns a specific repetition of
466     * DG1-16: "Diagnosing Clinician" - creates it if necessary
467     *
468     * @param rep The repetition index (0-indexed)
469     */
470    public XCN getDg116_DiagnosingClinician(int rep) { 
471                XCN retVal = this.getTypedField(16, rep);
472                return retVal;
473    }
474
475    /**
476     * Returns a count of the current number of repetitions of Diagnosing Clinician (DG1-16).
477     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
478     * it will return zero.
479     */
480    public int getDg116_DiagnosingClinicianReps() {
481        return this.getReps(16);
482    }
483
484
485    /**
486     * Inserts a repetition of
487     * DG1-16: "Diagnosing Clinician" at a specific index
488     *
489     * @param rep The repetition index (0-indexed)
490     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
491     */
492    public XCN insertDiagnosingClinician(int rep) throws HL7Exception { 
493        return (XCN) super.insertRepetition(16, rep);
494    }
495
496
497    /**
498     * Inserts a repetition of
499     * DG1-16: "Diagnosing Clinician" at a specific index
500     *
501     * @param rep The repetition index (0-indexed)
502     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
503     */
504    public XCN insertDg116_DiagnosingClinician(int rep) throws HL7Exception { 
505        return (XCN) super.insertRepetition(16, rep);
506    }
507
508
509    /**
510     * Removes a repetition of
511     * DG1-16: "Diagnosing Clinician" at a specific index
512     *
513     * @param rep The repetition index (0-indexed)
514     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
515     */
516    public XCN removeDiagnosingClinician(int rep) throws HL7Exception { 
517        return (XCN) super.removeRepetition(16, rep);
518    }
519
520
521    /**
522     * Removes a repetition of
523     * DG1-16: "Diagnosing Clinician" at a specific index
524     *
525     * @param rep The repetition index (0-indexed)
526     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
527     */
528    public XCN removeDg116_DiagnosingClinician(int rep) throws HL7Exception { 
529        return (XCN) super.removeRepetition(16, rep);
530    }
531
532
533
534
535    /**
536     * Returns
537     * DG1-17: "Diagnosis Classification" - creates it if necessary
538     */
539    public CWE getDiagnosisClassification() { 
540                CWE retVal = this.getTypedField(17, 0);
541                return retVal;
542    }
543    
544    /**
545     * Returns
546     * DG1-17: "Diagnosis Classification" - creates it if necessary
547     */
548    public CWE getDg117_DiagnosisClassification() { 
549                CWE retVal = this.getTypedField(17, 0);
550                return retVal;
551    }
552
553
554
555    /**
556     * Returns
557     * DG1-18: "Confidential Indicator" - creates it if necessary
558     */
559    public ID getConfidentialIndicator() { 
560                ID retVal = this.getTypedField(18, 0);
561                return retVal;
562    }
563    
564    /**
565     * Returns
566     * DG1-18: "Confidential Indicator" - creates it if necessary
567     */
568    public ID getDg118_ConfidentialIndicator() { 
569                ID retVal = this.getTypedField(18, 0);
570                return retVal;
571    }
572
573
574
575    /**
576     * Returns
577     * DG1-19: "Attestation Date/Time" - creates it if necessary
578     */
579    public DTM getAttestationDateTime() { 
580                DTM retVal = this.getTypedField(19, 0);
581                return retVal;
582    }
583    
584    /**
585     * Returns
586     * DG1-19: "Attestation Date/Time" - creates it if necessary
587     */
588    public DTM getDg119_AttestationDateTime() { 
589                DTM retVal = this.getTypedField(19, 0);
590                return retVal;
591    }
592
593
594
595    /**
596     * Returns
597     * DG1-20: "Diagnosis Identifier" - creates it if necessary
598     */
599    public EI getDiagnosisIdentifier() { 
600                EI retVal = this.getTypedField(20, 0);
601                return retVal;
602    }
603    
604    /**
605     * Returns
606     * DG1-20: "Diagnosis Identifier" - creates it if necessary
607     */
608    public EI getDg120_DiagnosisIdentifier() { 
609                EI retVal = this.getTypedField(20, 0);
610                return retVal;
611    }
612
613
614
615    /**
616     * Returns
617     * DG1-21: "Diagnosis Action Code" - creates it if necessary
618     */
619    public ID getDiagnosisActionCode() { 
620                ID retVal = this.getTypedField(21, 0);
621                return retVal;
622    }
623    
624    /**
625     * Returns
626     * DG1-21: "Diagnosis Action Code" - creates it if necessary
627     */
628    public ID getDg121_DiagnosisActionCode() { 
629                ID retVal = this.getTypedField(21, 0);
630                return retVal;
631    }
632
633
634
635    /**
636     * Returns
637     * DG1-22: "Parent Diagnosis" - creates it if necessary
638     */
639    public EI getParentDiagnosis() { 
640                EI retVal = this.getTypedField(22, 0);
641                return retVal;
642    }
643    
644    /**
645     * Returns
646     * DG1-22: "Parent Diagnosis" - creates it if necessary
647     */
648    public EI getDg122_ParentDiagnosis() { 
649                EI retVal = this.getTypedField(22, 0);
650                return retVal;
651    }
652
653
654
655    /**
656     * Returns
657     * DG1-23: "DRG CCL Value Code" - creates it if necessary
658     */
659    public CWE getDRGCCLValueCode() { 
660                CWE retVal = this.getTypedField(23, 0);
661                return retVal;
662    }
663    
664    /**
665     * Returns
666     * DG1-23: "DRG CCL Value Code" - creates it if necessary
667     */
668    public CWE getDg123_DRGCCLValueCode() { 
669                CWE retVal = this.getTypedField(23, 0);
670                return retVal;
671    }
672
673
674
675    /**
676     * Returns
677     * DG1-24: "DRG Grouping Usage" - creates it if necessary
678     */
679    public ID getDRGGroupingUsage() { 
680                ID retVal = this.getTypedField(24, 0);
681                return retVal;
682    }
683    
684    /**
685     * Returns
686     * DG1-24: "DRG Grouping Usage" - creates it if necessary
687     */
688    public ID getDg124_DRGGroupingUsage() { 
689                ID retVal = this.getTypedField(24, 0);
690                return retVal;
691    }
692
693
694
695    /**
696     * Returns
697     * DG1-25: "DRG Diagnosis Determination Status" - creates it if necessary
698     */
699    public CWE getDRGDiagnosisDeterminationStatus() { 
700                CWE retVal = this.getTypedField(25, 0);
701                return retVal;
702    }
703    
704    /**
705     * Returns
706     * DG1-25: "DRG Diagnosis Determination Status" - creates it if necessary
707     */
708    public CWE getDg125_DRGDiagnosisDeterminationStatus() { 
709                CWE retVal = this.getTypedField(25, 0);
710                return retVal;
711    }
712
713
714
715    /**
716     * Returns
717     * DG1-26: "Present On Admission (POA) Indicator" - creates it if necessary
718     */
719    public CWE getPresentOnAdmissionIndicator() { 
720                CWE retVal = this.getTypedField(26, 0);
721                return retVal;
722    }
723    
724    /**
725     * Returns
726     * DG1-26: "Present On Admission (POA) Indicator" - creates it if necessary
727     */
728    public CWE getDg126_PresentOnAdmissionIndicator() { 
729                CWE retVal = this.getTypedField(26, 0);
730                return retVal;
731    }
732
733
734
735
736
737    /** {@inheritDoc} */   
738    protected Type createNewTypeWithoutReflection(int field) {
739       switch (field) {
740          case 0: return new SI(getMessage());
741          case 1: return new NULLDT(getMessage());
742          case 2: return new CWE(getMessage());
743          case 3: return new NULLDT(getMessage());
744          case 4: return new DTM(getMessage());
745          case 5: return new CWE(getMessage());
746          case 6: return new CNE(getMessage());
747          case 7: return new CNE(getMessage());
748          case 8: return new ID(getMessage(), new Integer( 136 ));
749          case 9: return new CWE(getMessage());
750          case 10: return new CWE(getMessage());
751          case 11: return new NM(getMessage());
752          case 12: return new CP(getMessage());
753          case 13: return new NULLDT(getMessage());
754          case 14: return new NM(getMessage());
755          case 15: return new XCN(getMessage());
756          case 16: return new CWE(getMessage());
757          case 17: return new ID(getMessage(), new Integer( 136 ));
758          case 18: return new DTM(getMessage());
759          case 19: return new EI(getMessage());
760          case 20: return new ID(getMessage(), new Integer( 206 ));
761          case 21: return new EI(getMessage());
762          case 22: return new CWE(getMessage());
763          case 23: return new ID(getMessage(), new Integer( 136 ));
764          case 24: return new CWE(getMessage());
765          case 25: return new CWE(getMessage());
766          default: return null;
767       }
768   }
769
770
771}
772