Coverage Report - ca.uhn.hl7v2.test.nodt.conf.segment.PID
 
Classes in this File Line Coverage Branch Coverage Complexity
PID
0%
0/433
0%
0/40
1.339
 
 1  
 /*
 2  
  * This class is an auto-generated source file for a HAPI
 3  
  * HL7 v2.x standard structure class.
 4  
  *
 5  
  * For more information, visit: http://hl7api.sourceforge.net/
 6  
  * 
 7  
  * The contents of this file are subject to the Mozilla Public License Version 1.1 
 8  
  * (the "License"); you may not use this file except in compliance with the License. 
 9  
  * You may obtain a copy of the License at http://www.mozilla.org/MPL/ 
 10  
  * Software distributed under the License is distributed on an "AS IS" basis, 
 11  
  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the 
 12  
  * specific language governing rights and limitations under the License. 
 13  
  * 
 14  
  * The Original Code is "[file_name]".  Description: 
 15  
  * "[one_line_description]" 
 16  
  * 
 17  
  * The Initial Developer of the Original Code is University Health Network. Copyright (C) 
 18  
  * 2012.  All Rights Reserved. 
 19  
  * 
 20  
  * Contributor(s): ______________________________________. 
 21  
  * 
 22  
  * Alternatively, the contents of this file may be used under the terms of the 
 23  
  * GNU General Public License (the  "GPL"), in which case the provisions of the GPL are 
 24  
  * applicable instead of those above.  If you wish to allow use of your version of this 
 25  
  * file only under the terms of the GPL and not to allow others to use your version 
 26  
  * of this file under the MPL, indicate your decision by deleting  the provisions above 
 27  
  * and replace  them with the notice and other provisions required by the GPL License.  
 28  
  * If you do not delete the provisions above, a recipient may use your version of 
 29  
  * this file under either the MPL or the GPL. 
 30  
  * 
 31  
  */
 32  
 
 33  
 
 34  
 package ca.uhn.hl7v2.test.nodt.conf.segment;
 35  
 
 36  
 // import ca.uhn.hl7v2.test.nodt.conf.group.*;
 37  
 import ca.uhn.hl7v2.model.v25.datatype.*;
 38  
 import ca.uhn.hl7v2.HL7Exception;
 39  
 import ca.uhn.hl7v2.parser.ModelClassFactory;
 40  
 import ca.uhn.hl7v2.parser.DefaultModelClassFactory;
 41  
 import ca.uhn.hl7v2.model.AbstractMessage;
 42  
 import ca.uhn.hl7v2.model.Group;
 43  
 import ca.uhn.hl7v2.model.Type;
 44  
 import ca.uhn.hl7v2.model.AbstractSegment;
 45  
 import ca.uhn.hl7v2.model.Varies;
 46  
 
 47  
 
 48  
 /**
 49  
  *<p>Represents an HL7 PID message segment (Patient Identification). 
 50  
  * This segment has the following fields:</p>
 51  
  * <ul>
 52  
      * <li>PID-1: Set ID - PID (SI) <b>optional </b>
 53  
      * <li>PID-2: Patient ID (CX) <b>optional repeating</b>
 54  
      * <li>PID-3: Patient Identifier List (CX) <b> repeating</b>
 55  
      * <li>PID-4: Alternate Patient ID - PID (CX) <b>optional repeating</b>
 56  
      * <li>PID-5: Patient Name (XPN) <b> repeating</b>
 57  
      * <li>PID-6: Mother_s Maiden Name (XPN) <b>optional repeating</b>
 58  
      * <li>PID-7: Date/Time of Birth (TS) <b>optional </b>
 59  
      * <li>PID-8: Administrative Sex (IS) <b>optional </b>
 60  
      * <li>PID-9: Patient Alias (XPN) <b>optional repeating</b>
 61  
      * <li>PID-10: Race (CE) <b>optional repeating</b>
 62  
      * <li>PID-11: Patient Address (XAD) <b>optional repeating</b>
 63  
      * <li>PID-12: County Code (IS) <b>optional repeating</b>
 64  
      * <li>PID-13: Phone Number - Home (XTN) <b>optional repeating</b>
 65  
      * <li>PID-14: Phone Number - Business (XTN) <b>optional repeating</b>
 66  
      * <li>PID-15: Primary Language (CE) <b>optional </b>
 67  
      * <li>PID-16: Marital Status (CE) <b>optional </b>
 68  
      * <li>PID-17: Religion (CE) <b>optional </b>
 69  
      * <li>PID-18: Patient Account Number (CX) <b>optional </b>
 70  
      * <li>PID-19: SSN Number - Patient (ST) <b>optional repeating</b>
 71  
      * <li>PID-20: Driver's License Number - Patient (DLN) <b>optional repeating</b>
 72  
      * <li>PID-21: Mother's Identifier (CX) <b>optional repeating</b>
 73  
      * <li>PID-22: Ethnic Group (CE) <b>optional repeating</b>
 74  
      * <li>PID-23: Birth Place (ST) <b>optional </b>
 75  
      * <li>PID-24: Multiple Birth Indicator (ID) <b>optional </b>
 76  
      * <li>PID-25: Birth Order (NM) <b>optional </b>
 77  
      * <li>PID-26: Citizenship (CE) <b>optional repeating</b>
 78  
      * <li>PID-27: Veterans Military Status (CE) <b>optional </b>
 79  
      * <li>PID-28: Nationality (CE) <b>optional repeating</b>
 80  
      * <li>PID-29: Patient Death Date and Time (TS) <b>optional </b>
 81  
      * <li>PID-30: Patient Death Indicator (ID) <b>optional </b>
 82  
      * <li>PID-31: Identity Unknown Indicator (ID) <b>optional </b>
 83  
      * <li>PID-32: Identity Reliability Code (IS) <b>optional repeating</b>
 84  
      * <li>PID-33: Last Update Date/Time (TS) <b>optional </b>
 85  
      * <li>PID-34: Last Update Facility (HD) <b>optional </b>
 86  
      * <li>PID-35: Species Code (CE) <b>optional </b>
 87  
      * <li>PID-36: Breed Code (CE) <b>optional </b>
 88  
      * <li>PID-37: Strain (ST) <b>optional </b>
 89  
      * <li>PID-38: Production Class Code (CE) <b>optional </b>
 90  
      * <li>PID-39: Tribal Citizenship (CWE) <b>optional repeating</b>
 91  
  * </ul>
 92  
  */
 93  
 @SuppressWarnings("unused")
 94  
 public class PID extends AbstractSegment {
 95  
 
 96  
     /** 
 97  
      * Creates a new PID segment
 98  
      */
 99  
     public PID(Group parent, ModelClassFactory factory) {
 100  0
        super(parent, factory);
 101  0
        init(factory);
 102  0
     }
 103  
 
 104  
     private void init(ModelClassFactory factory) {
 105  
        try {
 106  0
                                   this.add(SI.class, false, 1, 4, new Object[]{ getMessage() }, "Set ID - PID");
 107  0
                                   this.add(CX.class, false, -1, 20, new Object[]{ getMessage() }, "Patient ID");
 108  0
                                   this.add(CX.class, true, -1, 250, new Object[]{ getMessage() }, "Patient Identifier List");
 109  0
                                   this.add(CX.class, false, -1, 20, new Object[]{ getMessage() }, "Alternate Patient ID - PID");
 110  0
                                   this.add(XPN.class, true, -1, 294, new Object[]{ getMessage() }, "Patient Name");
 111  0
                                   this.add(XPN.class, false, -1, 294, new Object[]{ getMessage() }, "Mother_s Maiden Name");
 112  0
                                   this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Date/Time of Birth");
 113  0
                                               this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(1) }, "Administrative Sex");
 114  0
                                   this.add(XPN.class, false, -1, 294, new Object[]{ getMessage() }, "Patient Alias");
 115  0
                                   this.add(CE.class, false, -1, 478, new Object[]{ getMessage() }, "Race");
 116  0
                                   this.add(XAD.class, false, -1, 513, new Object[]{ getMessage() }, "Patient Address");
 117  0
                                               this.add(IS.class, false, -1, 4, new Object[]{ getMessage(), new Integer(289) }, "County Code");
 118  0
                                   this.add(XTN.class, false, -1, 250, new Object[]{ getMessage() }, "Phone Number - Home");
 119  0
                                   this.add(XTN.class, false, -1, 250, new Object[]{ getMessage() }, "Phone Number - Business");
 120  0
                                   this.add(CE.class, false, 1, 478, new Object[]{ getMessage() }, "Primary Language");
 121  0
                                   this.add(CE.class, false, 1, 478, new Object[]{ getMessage() }, "Marital Status");
 122  0
                                   this.add(CE.class, false, 1, 478, new Object[]{ getMessage() }, "Religion");
 123  0
                                   this.add(CX.class, false, 1, 250, new Object[]{ getMessage() }, "Patient Account Number");
 124  0
                                   this.add(ST.class, false, -1, 16, new Object[]{ getMessage() }, "SSN Number - Patient");
 125  0
                                   this.add(DLN.class, false, -1, 64, new Object[]{ getMessage() }, "Driver's License Number - Patient");
 126  0
                                   this.add(CX.class, false, -1, 250, new Object[]{ getMessage() }, "Mother's Identifier");
 127  0
                                   this.add(CE.class, false, -1, 478, new Object[]{ getMessage() }, "Ethnic Group");
 128  0
                                   this.add(ST.class, false, 1, 250, new Object[]{ getMessage() }, "Birth Place");
 129  0
                                               this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Multiple Birth Indicator");
 130  0
                                   this.add(NM.class, false, 1, 2, new Object[]{ getMessage() }, "Birth Order");
 131  0
                                   this.add(CE.class, false, -1, 478, new Object[]{ getMessage() }, "Citizenship");
 132  0
                                   this.add(CE.class, false, 1, 478, new Object[]{ getMessage() }, "Veterans Military Status");
 133  0
                                   this.add(CE.class, false, -1, 478, new Object[]{ getMessage() }, "Nationality");
 134  0
                                   this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Patient Death Date and Time");
 135  0
                                               this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Patient Death Indicator");
 136  0
                                               this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Identity Unknown Indicator");
 137  0
                                               this.add(IS.class, false, -1, 20, new Object[]{ getMessage(), new Integer(445) }, "Identity Reliability Code");
 138  0
                                   this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Last Update Date/Time");
 139  0
                                   this.add(HD.class, false, 1, 241, new Object[]{ getMessage() }, "Last Update Facility");
 140  0
                                   this.add(CE.class, false, 1, 478, new Object[]{ getMessage() }, "Species Code");
 141  0
                                   this.add(CE.class, false, 1, 478, new Object[]{ getMessage() }, "Breed Code");
 142  0
                                   this.add(ST.class, false, 1, 80, new Object[]{ getMessage() }, "Strain");
 143  0
                                   this.add(CE.class, false, 1, 478, new Object[]{ getMessage() }, "Production Class Code");
 144  0
                                   this.add(CWE.class, false, -1, 697, new Object[]{ getMessage() }, "Tribal Citizenship");
 145  0
        } catch(HL7Exception e) {
 146  0
           log.error("Unexpected error creating PID - this is probably a bug in the source code generator.", e);
 147  0
        }
 148  0
     }
 149  
 
 150  
 
 151  
 
 152  
     /**
 153  
      * Returns
 154  
      * PID-1: "Set ID - PID" - creates it if necessary
 155  
      */
 156  
     public SI getSetIDPID() { 
 157  0
                 SI retVal = this.getTypedField(1, 0);
 158  0
                 return retVal;
 159  
     }
 160  
     
 161  
     /**
 162  
      * Returns
 163  
      * PID-1: "Set ID - PID" - creates it if necessary
 164  
      */
 165  
     public SI getPid1_SetIDPID() { 
 166  0
                 SI retVal = this.getTypedField(1, 0);
 167  0
                 return retVal;
 168  
     }
 169  
 
 170  
 
 171  
     /**
 172  
      * Returns all repetitions of Patient ID (PID-2).
 173  
      */
 174  
     public CX[] getPatientID() {
 175  0
             CX[] retVal = this.getTypedField(2, new CX[0]);
 176  0
             return retVal;
 177  
     }
 178  
 
 179  
 
 180  
     /**
 181  
      * Returns all repetitions of Patient ID (PID-2).
 182  
      */
 183  
     public CX[] getPid2_PatientID() {
 184  0
             CX[] retVal = this.getTypedField(2, new CX[0]);
 185  0
             return retVal;
 186  
     }
 187  
 
 188  
 
 189  
     /**
 190  
      * Returns a count of the current number of repetitions of Patient ID (PID-2).
 191  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 192  
      * it will return zero.
 193  
      */
 194  
     public int getPatientIDReps() {
 195  0
             return this.getReps(2);
 196  
     }
 197  
 
 198  
 
 199  
     /**
 200  
      * Returns a specific repetition of
 201  
      * PID-2: "Patient ID" - creates it if necessary
 202  
      *
 203  
      * @param rep The repetition index (0-indexed)
 204  
      */
 205  
     public CX getPatientID(int rep) { 
 206  0
                 CX retVal = this.getTypedField(2, rep);
 207  0
                 return retVal;
 208  
     }
 209  
 
 210  
     /**
 211  
      * Returns a specific repetition of
 212  
      * PID-2: "Patient ID" - creates it if necessary
 213  
      *
 214  
      * @param rep The repetition index (0-indexed)
 215  
      */
 216  
     public CX getPid2_PatientID(int rep) { 
 217  0
                 CX retVal = this.getTypedField(2, rep);
 218  0
                 return retVal;
 219  
     }
 220  
 
 221  
     /**
 222  
      * Returns a count of the current number of repetitions of Patient ID (PID-2).
 223  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 224  
      * it will return zero.
 225  
      */
 226  
     public int getPid2_PatientIDReps() {
 227  0
             return this.getReps(2);
 228  
     }
 229  
 
 230  
 
 231  
     /**
 232  
      * Inserts a repetition of
 233  
      * PID-2: "Patient ID" at a specific index
 234  
      *
 235  
      * @param rep The repetition index (0-indexed)
 236  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 237  
      */
 238  
     public CX insertPatientID(int rep) throws HL7Exception { 
 239  0
         return (CX) super.insertRepetition(2, rep);
 240  
     }
 241  
 
 242  
 
 243  
     /**
 244  
      * Inserts a repetition of
 245  
      * PID-2: "Patient ID" at a specific index
 246  
      *
 247  
      * @param rep The repetition index (0-indexed)
 248  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 249  
      */
 250  
     public CX insertPid2_PatientID(int rep) throws HL7Exception { 
 251  0
         return (CX) super.insertRepetition(2, rep);
 252  
     }
 253  
 
 254  
 
 255  
     /**
 256  
      * Removes a repetition of
 257  
      * PID-2: "Patient ID" at a specific index
 258  
      *
 259  
      * @param rep The repetition index (0-indexed)
 260  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 261  
      */
 262  
     public CX removePatientID(int rep) throws HL7Exception { 
 263  0
         return (CX) super.removeRepetition(2, rep);
 264  
     }
 265  
 
 266  
 
 267  
     /**
 268  
      * Removes a repetition of
 269  
      * PID-2: "Patient ID" at a specific index
 270  
      *
 271  
      * @param rep The repetition index (0-indexed)
 272  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 273  
      */
 274  
     public CX removePid2_PatientID(int rep) throws HL7Exception { 
 275  0
         return (CX) super.removeRepetition(2, rep);
 276  
     }
 277  
 
 278  
 
 279  
 
 280  
     /**
 281  
      * Returns all repetitions of Patient Identifier List (PID-3).
 282  
      */
 283  
     public CX[] getPatientIdentifierList() {
 284  0
             CX[] retVal = this.getTypedField(3, new CX[0]);
 285  0
             return retVal;
 286  
     }
 287  
 
 288  
 
 289  
     /**
 290  
      * Returns all repetitions of Patient Identifier List (PID-3).
 291  
      */
 292  
     public CX[] getPid3_PatientIdentifierList() {
 293  0
             CX[] retVal = this.getTypedField(3, new CX[0]);
 294  0
             return retVal;
 295  
     }
 296  
 
 297  
 
 298  
     /**
 299  
      * Returns a count of the current number of repetitions of Patient Identifier List (PID-3).
 300  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 301  
      * it will return zero.
 302  
      */
 303  
     public int getPatientIdentifierListReps() {
 304  0
             return this.getReps(3);
 305  
     }
 306  
 
 307  
 
 308  
     /**
 309  
      * Returns a specific repetition of
 310  
      * PID-3: "Patient Identifier List" - creates it if necessary
 311  
      *
 312  
      * @param rep The repetition index (0-indexed)
 313  
      */
 314  
     public CX getPatientIdentifierList(int rep) { 
 315  0
                 CX retVal = this.getTypedField(3, rep);
 316  0
                 return retVal;
 317  
     }
 318  
 
 319  
     /**
 320  
      * Returns a specific repetition of
 321  
      * PID-3: "Patient Identifier List" - creates it if necessary
 322  
      *
 323  
      * @param rep The repetition index (0-indexed)
 324  
      */
 325  
     public CX getPid3_PatientIdentifierList(int rep) { 
 326  0
                 CX retVal = this.getTypedField(3, rep);
 327  0
                 return retVal;
 328  
     }
 329  
 
 330  
     /**
 331  
      * Returns a count of the current number of repetitions of Patient Identifier List (PID-3).
 332  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 333  
      * it will return zero.
 334  
      */
 335  
     public int getPid3_PatientIdentifierListReps() {
 336  0
             return this.getReps(3);
 337  
     }
 338  
 
 339  
 
 340  
     /**
 341  
      * Inserts a repetition of
 342  
      * PID-3: "Patient Identifier List" at a specific index
 343  
      *
 344  
      * @param rep The repetition index (0-indexed)
 345  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 346  
      */
 347  
     public CX insertPatientIdentifierList(int rep) throws HL7Exception { 
 348  0
         return (CX) super.insertRepetition(3, rep);
 349  
     }
 350  
 
 351  
 
 352  
     /**
 353  
      * Inserts a repetition of
 354  
      * PID-3: "Patient Identifier List" at a specific index
 355  
      *
 356  
      * @param rep The repetition index (0-indexed)
 357  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 358  
      */
 359  
     public CX insertPid3_PatientIdentifierList(int rep) throws HL7Exception { 
 360  0
         return (CX) super.insertRepetition(3, rep);
 361  
     }
 362  
 
 363  
 
 364  
     /**
 365  
      * Removes a repetition of
 366  
      * PID-3: "Patient Identifier List" at a specific index
 367  
      *
 368  
      * @param rep The repetition index (0-indexed)
 369  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 370  
      */
 371  
     public CX removePatientIdentifierList(int rep) throws HL7Exception { 
 372  0
         return (CX) super.removeRepetition(3, rep);
 373  
     }
 374  
 
 375  
 
 376  
     /**
 377  
      * Removes a repetition of
 378  
      * PID-3: "Patient Identifier List" at a specific index
 379  
      *
 380  
      * @param rep The repetition index (0-indexed)
 381  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 382  
      */
 383  
     public CX removePid3_PatientIdentifierList(int rep) throws HL7Exception { 
 384  0
         return (CX) super.removeRepetition(3, rep);
 385  
     }
 386  
 
 387  
 
 388  
 
 389  
     /**
 390  
      * Returns all repetitions of Alternate Patient ID - PID (PID-4).
 391  
      */
 392  
     public CX[] getAlternatePatientIDPID() {
 393  0
             CX[] retVal = this.getTypedField(4, new CX[0]);
 394  0
             return retVal;
 395  
     }
 396  
 
 397  
 
 398  
     /**
 399  
      * Returns all repetitions of Alternate Patient ID - PID (PID-4).
 400  
      */
 401  
     public CX[] getPid4_AlternatePatientIDPID() {
 402  0
             CX[] retVal = this.getTypedField(4, new CX[0]);
 403  0
             return retVal;
 404  
     }
 405  
 
 406  
 
 407  
     /**
 408  
      * Returns a count of the current number of repetitions of Alternate Patient ID - PID (PID-4).
 409  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 410  
      * it will return zero.
 411  
      */
 412  
     public int getAlternatePatientIDPIDReps() {
 413  0
             return this.getReps(4);
 414  
     }
 415  
 
 416  
 
 417  
     /**
 418  
      * Returns a specific repetition of
 419  
      * PID-4: "Alternate Patient ID - PID" - creates it if necessary
 420  
      *
 421  
      * @param rep The repetition index (0-indexed)
 422  
      */
 423  
     public CX getAlternatePatientIDPID(int rep) { 
 424  0
                 CX retVal = this.getTypedField(4, rep);
 425  0
                 return retVal;
 426  
     }
 427  
 
 428  
     /**
 429  
      * Returns a specific repetition of
 430  
      * PID-4: "Alternate Patient ID - PID" - creates it if necessary
 431  
      *
 432  
      * @param rep The repetition index (0-indexed)
 433  
      */
 434  
     public CX getPid4_AlternatePatientIDPID(int rep) { 
 435  0
                 CX retVal = this.getTypedField(4, rep);
 436  0
                 return retVal;
 437  
     }
 438  
 
 439  
     /**
 440  
      * Returns a count of the current number of repetitions of Alternate Patient ID - PID (PID-4).
 441  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 442  
      * it will return zero.
 443  
      */
 444  
     public int getPid4_AlternatePatientIDPIDReps() {
 445  0
             return this.getReps(4);
 446  
     }
 447  
 
 448  
 
 449  
     /**
 450  
      * Inserts a repetition of
 451  
      * PID-4: "Alternate Patient ID - PID" at a specific index
 452  
      *
 453  
      * @param rep The repetition index (0-indexed)
 454  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 455  
      */
 456  
     public CX insertAlternatePatientIDPID(int rep) throws HL7Exception { 
 457  0
         return (CX) super.insertRepetition(4, rep);
 458  
     }
 459  
 
 460  
 
 461  
     /**
 462  
      * Inserts a repetition of
 463  
      * PID-4: "Alternate Patient ID - PID" at a specific index
 464  
      *
 465  
      * @param rep The repetition index (0-indexed)
 466  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 467  
      */
 468  
     public CX insertPid4_AlternatePatientIDPID(int rep) throws HL7Exception { 
 469  0
         return (CX) super.insertRepetition(4, rep);
 470  
     }
 471  
 
 472  
 
 473  
     /**
 474  
      * Removes a repetition of
 475  
      * PID-4: "Alternate Patient ID - PID" at a specific index
 476  
      *
 477  
      * @param rep The repetition index (0-indexed)
 478  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 479  
      */
 480  
     public CX removeAlternatePatientIDPID(int rep) throws HL7Exception { 
 481  0
         return (CX) super.removeRepetition(4, rep);
 482  
     }
 483  
 
 484  
 
 485  
     /**
 486  
      * Removes a repetition of
 487  
      * PID-4: "Alternate Patient ID - PID" 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 CX removePid4_AlternatePatientIDPID(int rep) throws HL7Exception { 
 493  0
         return (CX) super.removeRepetition(4, rep);
 494  
     }
 495  
 
 496  
 
 497  
 
 498  
     /**
 499  
      * Returns all repetitions of Patient Name (PID-5).
 500  
      */
 501  
     public XPN[] getPatientName() {
 502  0
             XPN[] retVal = this.getTypedField(5, new XPN[0]);
 503  0
             return retVal;
 504  
     }
 505  
 
 506  
 
 507  
     /**
 508  
      * Returns all repetitions of Patient Name (PID-5).
 509  
      */
 510  
     public XPN[] getPid5_PatientName() {
 511  0
             XPN[] retVal = this.getTypedField(5, new XPN[0]);
 512  0
             return retVal;
 513  
     }
 514  
 
 515  
 
 516  
     /**
 517  
      * Returns a count of the current number of repetitions of Patient Name (PID-5).
 518  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 519  
      * it will return zero.
 520  
      */
 521  
     public int getPatientNameReps() {
 522  0
             return this.getReps(5);
 523  
     }
 524  
 
 525  
 
 526  
     /**
 527  
      * Returns a specific repetition of
 528  
      * PID-5: "Patient Name" - creates it if necessary
 529  
      *
 530  
      * @param rep The repetition index (0-indexed)
 531  
      */
 532  
     public XPN getPatientName(int rep) { 
 533  0
                 XPN retVal = this.getTypedField(5, rep);
 534  0
                 return retVal;
 535  
     }
 536  
 
 537  
     /**
 538  
      * Returns a specific repetition of
 539  
      * PID-5: "Patient Name" - creates it if necessary
 540  
      *
 541  
      * @param rep The repetition index (0-indexed)
 542  
      */
 543  
     public XPN getPid5_PatientName(int rep) { 
 544  0
                 XPN retVal = this.getTypedField(5, rep);
 545  0
                 return retVal;
 546  
     }
 547  
 
 548  
     /**
 549  
      * Returns a count of the current number of repetitions of Patient Name (PID-5).
 550  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 551  
      * it will return zero.
 552  
      */
 553  
     public int getPid5_PatientNameReps() {
 554  0
             return this.getReps(5);
 555  
     }
 556  
 
 557  
 
 558  
     /**
 559  
      * Inserts a repetition of
 560  
      * PID-5: "Patient Name" at a specific index
 561  
      *
 562  
      * @param rep The repetition index (0-indexed)
 563  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 564  
      */
 565  
     public XPN insertPatientName(int rep) throws HL7Exception { 
 566  0
         return (XPN) super.insertRepetition(5, rep);
 567  
     }
 568  
 
 569  
 
 570  
     /**
 571  
      * Inserts a repetition of
 572  
      * PID-5: "Patient Name" at a specific index
 573  
      *
 574  
      * @param rep The repetition index (0-indexed)
 575  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 576  
      */
 577  
     public XPN insertPid5_PatientName(int rep) throws HL7Exception { 
 578  0
         return (XPN) super.insertRepetition(5, rep);
 579  
     }
 580  
 
 581  
 
 582  
     /**
 583  
      * Removes a repetition of
 584  
      * PID-5: "Patient Name" at a specific index
 585  
      *
 586  
      * @param rep The repetition index (0-indexed)
 587  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 588  
      */
 589  
     public XPN removePatientName(int rep) throws HL7Exception { 
 590  0
         return (XPN) super.removeRepetition(5, rep);
 591  
     }
 592  
 
 593  
 
 594  
     /**
 595  
      * Removes a repetition of
 596  
      * PID-5: "Patient Name" at a specific index
 597  
      *
 598  
      * @param rep The repetition index (0-indexed)
 599  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 600  
      */
 601  
     public XPN removePid5_PatientName(int rep) throws HL7Exception { 
 602  0
         return (XPN) super.removeRepetition(5, rep);
 603  
     }
 604  
 
 605  
 
 606  
 
 607  
     /**
 608  
      * Returns all repetitions of Mother_s Maiden Name (PID-6).
 609  
      */
 610  
     public XPN[] getMotherSMaidenName() {
 611  0
             XPN[] retVal = this.getTypedField(6, new XPN[0]);
 612  0
             return retVal;
 613  
     }
 614  
 
 615  
 
 616  
     /**
 617  
      * Returns all repetitions of Mother_s Maiden Name (PID-6).
 618  
      */
 619  
     public XPN[] getPid6_MotherSMaidenName() {
 620  0
             XPN[] retVal = this.getTypedField(6, new XPN[0]);
 621  0
             return retVal;
 622  
     }
 623  
 
 624  
 
 625  
     /**
 626  
      * Returns a count of the current number of repetitions of Mother_s Maiden Name (PID-6).
 627  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 628  
      * it will return zero.
 629  
      */
 630  
     public int getMotherSMaidenNameReps() {
 631  0
             return this.getReps(6);
 632  
     }
 633  
 
 634  
 
 635  
     /**
 636  
      * Returns a specific repetition of
 637  
      * PID-6: "Mother_s Maiden Name" - creates it if necessary
 638  
      *
 639  
      * @param rep The repetition index (0-indexed)
 640  
      */
 641  
     public XPN getMotherSMaidenName(int rep) { 
 642  0
                 XPN retVal = this.getTypedField(6, rep);
 643  0
                 return retVal;
 644  
     }
 645  
 
 646  
     /**
 647  
      * Returns a specific repetition of
 648  
      * PID-6: "Mother_s Maiden Name" - creates it if necessary
 649  
      *
 650  
      * @param rep The repetition index (0-indexed)
 651  
      */
 652  
     public XPN getPid6_MotherSMaidenName(int rep) { 
 653  0
                 XPN retVal = this.getTypedField(6, rep);
 654  0
                 return retVal;
 655  
     }
 656  
 
 657  
     /**
 658  
      * Returns a count of the current number of repetitions of Mother_s Maiden Name (PID-6).
 659  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 660  
      * it will return zero.
 661  
      */
 662  
     public int getPid6_MotherSMaidenNameReps() {
 663  0
             return this.getReps(6);
 664  
     }
 665  
 
 666  
 
 667  
     /**
 668  
      * Inserts a repetition of
 669  
      * PID-6: "Mother_s Maiden Name" at a specific index
 670  
      *
 671  
      * @param rep The repetition index (0-indexed)
 672  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 673  
      */
 674  
     public XPN insertMotherSMaidenName(int rep) throws HL7Exception { 
 675  0
         return (XPN) super.insertRepetition(6, rep);
 676  
     }
 677  
 
 678  
 
 679  
     /**
 680  
      * Inserts a repetition of
 681  
      * PID-6: "Mother_s Maiden Name" at a specific index
 682  
      *
 683  
      * @param rep The repetition index (0-indexed)
 684  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 685  
      */
 686  
     public XPN insertPid6_MotherSMaidenName(int rep) throws HL7Exception { 
 687  0
         return (XPN) super.insertRepetition(6, rep);
 688  
     }
 689  
 
 690  
 
 691  
     /**
 692  
      * Removes a repetition of
 693  
      * PID-6: "Mother_s Maiden Name" at a specific index
 694  
      *
 695  
      * @param rep The repetition index (0-indexed)
 696  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 697  
      */
 698  
     public XPN removeMotherSMaidenName(int rep) throws HL7Exception { 
 699  0
         return (XPN) super.removeRepetition(6, rep);
 700  
     }
 701  
 
 702  
 
 703  
     /**
 704  
      * Removes a repetition of
 705  
      * PID-6: "Mother_s Maiden Name" at a specific index
 706  
      *
 707  
      * @param rep The repetition index (0-indexed)
 708  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 709  
      */
 710  
     public XPN removePid6_MotherSMaidenName(int rep) throws HL7Exception { 
 711  0
         return (XPN) super.removeRepetition(6, rep);
 712  
     }
 713  
 
 714  
 
 715  
 
 716  
 
 717  
     /**
 718  
      * Returns
 719  
      * PID-7: "Date/Time of Birth" - creates it if necessary
 720  
      */
 721  
     public TS getDateTimeOfBirth() { 
 722  0
                 TS retVal = this.getTypedField(7, 0);
 723  0
                 return retVal;
 724  
     }
 725  
     
 726  
     /**
 727  
      * Returns
 728  
      * PID-7: "Date/Time of Birth" - creates it if necessary
 729  
      */
 730  
     public TS getPid7_DateTimeOfBirth() { 
 731  0
                 TS retVal = this.getTypedField(7, 0);
 732  0
                 return retVal;
 733  
     }
 734  
 
 735  
 
 736  
 
 737  
     /**
 738  
      * Returns
 739  
      * PID-8: "Administrative Sex" - creates it if necessary
 740  
      */
 741  
     public IS getAdministrativeSex() { 
 742  0
                 IS retVal = this.getTypedField(8, 0);
 743  0
                 return retVal;
 744  
     }
 745  
     
 746  
     /**
 747  
      * Returns
 748  
      * PID-8: "Administrative Sex" - creates it if necessary
 749  
      */
 750  
     public IS getPid8_AdministrativeSex() { 
 751  0
                 IS retVal = this.getTypedField(8, 0);
 752  0
                 return retVal;
 753  
     }
 754  
 
 755  
 
 756  
     /**
 757  
      * Returns all repetitions of Patient Alias (PID-9).
 758  
      */
 759  
     public XPN[] getPatientAlias() {
 760  0
             XPN[] retVal = this.getTypedField(9, new XPN[0]);
 761  0
             return retVal;
 762  
     }
 763  
 
 764  
 
 765  
     /**
 766  
      * Returns all repetitions of Patient Alias (PID-9).
 767  
      */
 768  
     public XPN[] getPid9_PatientAlias() {
 769  0
             XPN[] retVal = this.getTypedField(9, new XPN[0]);
 770  0
             return retVal;
 771  
     }
 772  
 
 773  
 
 774  
     /**
 775  
      * Returns a count of the current number of repetitions of Patient Alias (PID-9).
 776  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 777  
      * it will return zero.
 778  
      */
 779  
     public int getPatientAliasReps() {
 780  0
             return this.getReps(9);
 781  
     }
 782  
 
 783  
 
 784  
     /**
 785  
      * Returns a specific repetition of
 786  
      * PID-9: "Patient Alias" - creates it if necessary
 787  
      *
 788  
      * @param rep The repetition index (0-indexed)
 789  
      */
 790  
     public XPN getPatientAlias(int rep) { 
 791  0
                 XPN retVal = this.getTypedField(9, rep);
 792  0
                 return retVal;
 793  
     }
 794  
 
 795  
     /**
 796  
      * Returns a specific repetition of
 797  
      * PID-9: "Patient Alias" - creates it if necessary
 798  
      *
 799  
      * @param rep The repetition index (0-indexed)
 800  
      */
 801  
     public XPN getPid9_PatientAlias(int rep) { 
 802  0
                 XPN retVal = this.getTypedField(9, rep);
 803  0
                 return retVal;
 804  
     }
 805  
 
 806  
     /**
 807  
      * Returns a count of the current number of repetitions of Patient Alias (PID-9).
 808  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 809  
      * it will return zero.
 810  
      */
 811  
     public int getPid9_PatientAliasReps() {
 812  0
             return this.getReps(9);
 813  
     }
 814  
 
 815  
 
 816  
     /**
 817  
      * Inserts a repetition of
 818  
      * PID-9: "Patient Alias" at a specific index
 819  
      *
 820  
      * @param rep The repetition index (0-indexed)
 821  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 822  
      */
 823  
     public XPN insertPatientAlias(int rep) throws HL7Exception { 
 824  0
         return (XPN) super.insertRepetition(9, rep);
 825  
     }
 826  
 
 827  
 
 828  
     /**
 829  
      * Inserts a repetition of
 830  
      * PID-9: "Patient Alias" at a specific index
 831  
      *
 832  
      * @param rep The repetition index (0-indexed)
 833  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 834  
      */
 835  
     public XPN insertPid9_PatientAlias(int rep) throws HL7Exception { 
 836  0
         return (XPN) super.insertRepetition(9, rep);
 837  
     }
 838  
 
 839  
 
 840  
     /**
 841  
      * Removes a repetition of
 842  
      * PID-9: "Patient Alias" at a specific index
 843  
      *
 844  
      * @param rep The repetition index (0-indexed)
 845  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 846  
      */
 847  
     public XPN removePatientAlias(int rep) throws HL7Exception { 
 848  0
         return (XPN) super.removeRepetition(9, rep);
 849  
     }
 850  
 
 851  
 
 852  
     /**
 853  
      * Removes a repetition of
 854  
      * PID-9: "Patient Alias" at a specific index
 855  
      *
 856  
      * @param rep The repetition index (0-indexed)
 857  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 858  
      */
 859  
     public XPN removePid9_PatientAlias(int rep) throws HL7Exception { 
 860  0
         return (XPN) super.removeRepetition(9, rep);
 861  
     }
 862  
 
 863  
 
 864  
 
 865  
     /**
 866  
      * Returns all repetitions of Race (PID-10).
 867  
      */
 868  
     public CE[] getRace() {
 869  0
             CE[] retVal = this.getTypedField(10, new CE[0]);
 870  0
             return retVal;
 871  
     }
 872  
 
 873  
 
 874  
     /**
 875  
      * Returns all repetitions of Race (PID-10).
 876  
      */
 877  
     public CE[] getPid10_Race() {
 878  0
             CE[] retVal = this.getTypedField(10, new CE[0]);
 879  0
             return retVal;
 880  
     }
 881  
 
 882  
 
 883  
     /**
 884  
      * Returns a count of the current number of repetitions of Race (PID-10).
 885  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 886  
      * it will return zero.
 887  
      */
 888  
     public int getRaceReps() {
 889  0
             return this.getReps(10);
 890  
     }
 891  
 
 892  
 
 893  
     /**
 894  
      * Returns a specific repetition of
 895  
      * PID-10: "Race" - creates it if necessary
 896  
      *
 897  
      * @param rep The repetition index (0-indexed)
 898  
      */
 899  
     public CE getRace(int rep) { 
 900  0
                 CE retVal = this.getTypedField(10, rep);
 901  0
                 return retVal;
 902  
     }
 903  
 
 904  
     /**
 905  
      * Returns a specific repetition of
 906  
      * PID-10: "Race" - creates it if necessary
 907  
      *
 908  
      * @param rep The repetition index (0-indexed)
 909  
      */
 910  
     public CE getPid10_Race(int rep) { 
 911  0
                 CE retVal = this.getTypedField(10, rep);
 912  0
                 return retVal;
 913  
     }
 914  
 
 915  
     /**
 916  
      * Returns a count of the current number of repetitions of Race (PID-10).
 917  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 918  
      * it will return zero.
 919  
      */
 920  
     public int getPid10_RaceReps() {
 921  0
             return this.getReps(10);
 922  
     }
 923  
 
 924  
 
 925  
     /**
 926  
      * Inserts a repetition of
 927  
      * PID-10: "Race" at a specific index
 928  
      *
 929  
      * @param rep The repetition index (0-indexed)
 930  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 931  
      */
 932  
     public CE insertRace(int rep) throws HL7Exception { 
 933  0
         return (CE) super.insertRepetition(10, rep);
 934  
     }
 935  
 
 936  
 
 937  
     /**
 938  
      * Inserts a repetition of
 939  
      * PID-10: "Race" at a specific index
 940  
      *
 941  
      * @param rep The repetition index (0-indexed)
 942  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 943  
      */
 944  
     public CE insertPid10_Race(int rep) throws HL7Exception { 
 945  0
         return (CE) super.insertRepetition(10, rep);
 946  
     }
 947  
 
 948  
 
 949  
     /**
 950  
      * Removes a repetition of
 951  
      * PID-10: "Race" at a specific index
 952  
      *
 953  
      * @param rep The repetition index (0-indexed)
 954  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 955  
      */
 956  
     public CE removeRace(int rep) throws HL7Exception { 
 957  0
         return (CE) super.removeRepetition(10, rep);
 958  
     }
 959  
 
 960  
 
 961  
     /**
 962  
      * Removes a repetition of
 963  
      * PID-10: "Race" at a specific index
 964  
      *
 965  
      * @param rep The repetition index (0-indexed)
 966  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 967  
      */
 968  
     public CE removePid10_Race(int rep) throws HL7Exception { 
 969  0
         return (CE) super.removeRepetition(10, rep);
 970  
     }
 971  
 
 972  
 
 973  
 
 974  
     /**
 975  
      * Returns all repetitions of Patient Address (PID-11).
 976  
      */
 977  
     public XAD[] getPatientAddress() {
 978  0
             XAD[] retVal = this.getTypedField(11, new XAD[0]);
 979  0
             return retVal;
 980  
     }
 981  
 
 982  
 
 983  
     /**
 984  
      * Returns all repetitions of Patient Address (PID-11).
 985  
      */
 986  
     public XAD[] getPid11_PatientAddress() {
 987  0
             XAD[] retVal = this.getTypedField(11, new XAD[0]);
 988  0
             return retVal;
 989  
     }
 990  
 
 991  
 
 992  
     /**
 993  
      * Returns a count of the current number of repetitions of Patient Address (PID-11).
 994  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 995  
      * it will return zero.
 996  
      */
 997  
     public int getPatientAddressReps() {
 998  0
             return this.getReps(11);
 999  
     }
 1000  
 
 1001  
 
 1002  
     /**
 1003  
      * Returns a specific repetition of
 1004  
      * PID-11: "Patient Address" - creates it if necessary
 1005  
      *
 1006  
      * @param rep The repetition index (0-indexed)
 1007  
      */
 1008  
     public XAD getPatientAddress(int rep) { 
 1009  0
                 XAD retVal = this.getTypedField(11, rep);
 1010  0
                 return retVal;
 1011  
     }
 1012  
 
 1013  
     /**
 1014  
      * Returns a specific repetition of
 1015  
      * PID-11: "Patient Address" - creates it if necessary
 1016  
      *
 1017  
      * @param rep The repetition index (0-indexed)
 1018  
      */
 1019  
     public XAD getPid11_PatientAddress(int rep) { 
 1020  0
                 XAD retVal = this.getTypedField(11, rep);
 1021  0
                 return retVal;
 1022  
     }
 1023  
 
 1024  
     /**
 1025  
      * Returns a count of the current number of repetitions of Patient Address (PID-11).
 1026  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 1027  
      * it will return zero.
 1028  
      */
 1029  
     public int getPid11_PatientAddressReps() {
 1030  0
             return this.getReps(11);
 1031  
     }
 1032  
 
 1033  
 
 1034  
     /**
 1035  
      * Inserts a repetition of
 1036  
      * PID-11: "Patient Address" at a specific index
 1037  
      *
 1038  
      * @param rep The repetition index (0-indexed)
 1039  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 1040  
      */
 1041  
     public XAD insertPatientAddress(int rep) throws HL7Exception { 
 1042  0
         return (XAD) super.insertRepetition(11, rep);
 1043  
     }
 1044  
 
 1045  
 
 1046  
     /**
 1047  
      * Inserts a repetition of
 1048  
      * PID-11: "Patient Address" at a specific index
 1049  
      *
 1050  
      * @param rep The repetition index (0-indexed)
 1051  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 1052  
      */
 1053  
     public XAD insertPid11_PatientAddress(int rep) throws HL7Exception { 
 1054  0
         return (XAD) super.insertRepetition(11, rep);
 1055  
     }
 1056  
 
 1057  
 
 1058  
     /**
 1059  
      * Removes a repetition of
 1060  
      * PID-11: "Patient Address" at a specific index
 1061  
      *
 1062  
      * @param rep The repetition index (0-indexed)
 1063  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 1064  
      */
 1065  
     public XAD removePatientAddress(int rep) throws HL7Exception { 
 1066  0
         return (XAD) super.removeRepetition(11, rep);
 1067  
     }
 1068  
 
 1069  
 
 1070  
     /**
 1071  
      * Removes a repetition of
 1072  
      * PID-11: "Patient Address" at a specific index
 1073  
      *
 1074  
      * @param rep The repetition index (0-indexed)
 1075  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 1076  
      */
 1077  
     public XAD removePid11_PatientAddress(int rep) throws HL7Exception { 
 1078  0
         return (XAD) super.removeRepetition(11, rep);
 1079  
     }
 1080  
 
 1081  
 
 1082  
 
 1083  
     /**
 1084  
      * Returns all repetitions of County Code (PID-12).
 1085  
      */
 1086  
     public IS[] getCountyCode() {
 1087  0
             IS[] retVal = this.getTypedField(12, new IS[0]);
 1088  0
             return retVal;
 1089  
     }
 1090  
 
 1091  
 
 1092  
     /**
 1093  
      * Returns all repetitions of County Code (PID-12).
 1094  
      */
 1095  
     public IS[] getPid12_CountyCode() {
 1096  0
             IS[] retVal = this.getTypedField(12, new IS[0]);
 1097  0
             return retVal;
 1098  
     }
 1099  
 
 1100  
 
 1101  
     /**
 1102  
      * Returns a count of the current number of repetitions of County Code (PID-12).
 1103  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 1104  
      * it will return zero.
 1105  
      */
 1106  
     public int getCountyCodeReps() {
 1107  0
             return this.getReps(12);
 1108  
     }
 1109  
 
 1110  
 
 1111  
     /**
 1112  
      * Returns a specific repetition of
 1113  
      * PID-12: "County Code" - creates it if necessary
 1114  
      *
 1115  
      * @param rep The repetition index (0-indexed)
 1116  
      */
 1117  
     public IS getCountyCode(int rep) { 
 1118  0
                 IS retVal = this.getTypedField(12, rep);
 1119  0
                 return retVal;
 1120  
     }
 1121  
 
 1122  
     /**
 1123  
      * Returns a specific repetition of
 1124  
      * PID-12: "County Code" - creates it if necessary
 1125  
      *
 1126  
      * @param rep The repetition index (0-indexed)
 1127  
      */
 1128  
     public IS getPid12_CountyCode(int rep) { 
 1129  0
                 IS retVal = this.getTypedField(12, rep);
 1130  0
                 return retVal;
 1131  
     }
 1132  
 
 1133  
     /**
 1134  
      * Returns a count of the current number of repetitions of County Code (PID-12).
 1135  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 1136  
      * it will return zero.
 1137  
      */
 1138  
     public int getPid12_CountyCodeReps() {
 1139  0
             return this.getReps(12);
 1140  
     }
 1141  
 
 1142  
 
 1143  
     /**
 1144  
      * Inserts a repetition of
 1145  
      * PID-12: "County Code" at a specific index
 1146  
      *
 1147  
      * @param rep The repetition index (0-indexed)
 1148  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 1149  
      */
 1150  
     public IS insertCountyCode(int rep) throws HL7Exception { 
 1151  0
         return (IS) super.insertRepetition(12, rep);
 1152  
     }
 1153  
 
 1154  
 
 1155  
     /**
 1156  
      * Inserts a repetition of
 1157  
      * PID-12: "County Code" at a specific index
 1158  
      *
 1159  
      * @param rep The repetition index (0-indexed)
 1160  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 1161  
      */
 1162  
     public IS insertPid12_CountyCode(int rep) throws HL7Exception { 
 1163  0
         return (IS) super.insertRepetition(12, rep);
 1164  
     }
 1165  
 
 1166  
 
 1167  
     /**
 1168  
      * Removes a repetition of
 1169  
      * PID-12: "County Code" at a specific index
 1170  
      *
 1171  
      * @param rep The repetition index (0-indexed)
 1172  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 1173  
      */
 1174  
     public IS removeCountyCode(int rep) throws HL7Exception { 
 1175  0
         return (IS) super.removeRepetition(12, rep);
 1176  
     }
 1177  
 
 1178  
 
 1179  
     /**
 1180  
      * Removes a repetition of
 1181  
      * PID-12: "County Code" at a specific index
 1182  
      *
 1183  
      * @param rep The repetition index (0-indexed)
 1184  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 1185  
      */
 1186  
     public IS removePid12_CountyCode(int rep) throws HL7Exception { 
 1187  0
         return (IS) super.removeRepetition(12, rep);
 1188  
     }
 1189  
 
 1190  
 
 1191  
 
 1192  
     /**
 1193  
      * Returns all repetitions of Phone Number - Home (PID-13).
 1194  
      */
 1195  
     public XTN[] getPhoneNumberHome() {
 1196  0
             XTN[] retVal = this.getTypedField(13, new XTN[0]);
 1197  0
             return retVal;
 1198  
     }
 1199  
 
 1200  
 
 1201  
     /**
 1202  
      * Returns all repetitions of Phone Number - Home (PID-13).
 1203  
      */
 1204  
     public XTN[] getPid13_PhoneNumberHome() {
 1205  0
             XTN[] retVal = this.getTypedField(13, new XTN[0]);
 1206  0
             return retVal;
 1207  
     }
 1208  
 
 1209  
 
 1210  
     /**
 1211  
      * Returns a count of the current number of repetitions of Phone Number - Home (PID-13).
 1212  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 1213  
      * it will return zero.
 1214  
      */
 1215  
     public int getPhoneNumberHomeReps() {
 1216  0
             return this.getReps(13);
 1217  
     }
 1218  
 
 1219  
 
 1220  
     /**
 1221  
      * Returns a specific repetition of
 1222  
      * PID-13: "Phone Number - Home" - creates it if necessary
 1223  
      *
 1224  
      * @param rep The repetition index (0-indexed)
 1225  
      */
 1226  
     public XTN getPhoneNumberHome(int rep) { 
 1227  0
                 XTN retVal = this.getTypedField(13, rep);
 1228  0
                 return retVal;
 1229  
     }
 1230  
 
 1231  
     /**
 1232  
      * Returns a specific repetition of
 1233  
      * PID-13: "Phone Number - Home" - creates it if necessary
 1234  
      *
 1235  
      * @param rep The repetition index (0-indexed)
 1236  
      */
 1237  
     public XTN getPid13_PhoneNumberHome(int rep) { 
 1238  0
                 XTN retVal = this.getTypedField(13, rep);
 1239  0
                 return retVal;
 1240  
     }
 1241  
 
 1242  
     /**
 1243  
      * Returns a count of the current number of repetitions of Phone Number - Home (PID-13).
 1244  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 1245  
      * it will return zero.
 1246  
      */
 1247  
     public int getPid13_PhoneNumberHomeReps() {
 1248  0
             return this.getReps(13);
 1249  
     }
 1250  
 
 1251  
 
 1252  
     /**
 1253  
      * Inserts a repetition of
 1254  
      * PID-13: "Phone Number - Home" at a specific index
 1255  
      *
 1256  
      * @param rep The repetition index (0-indexed)
 1257  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 1258  
      */
 1259  
     public XTN insertPhoneNumberHome(int rep) throws HL7Exception { 
 1260  0
         return (XTN) super.insertRepetition(13, rep);
 1261  
     }
 1262  
 
 1263  
 
 1264  
     /**
 1265  
      * Inserts a repetition of
 1266  
      * PID-13: "Phone Number - Home" at a specific index
 1267  
      *
 1268  
      * @param rep The repetition index (0-indexed)
 1269  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 1270  
      */
 1271  
     public XTN insertPid13_PhoneNumberHome(int rep) throws HL7Exception { 
 1272  0
         return (XTN) super.insertRepetition(13, rep);
 1273  
     }
 1274  
 
 1275  
 
 1276  
     /**
 1277  
      * Removes a repetition of
 1278  
      * PID-13: "Phone Number - Home" at a specific index
 1279  
      *
 1280  
      * @param rep The repetition index (0-indexed)
 1281  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 1282  
      */
 1283  
     public XTN removePhoneNumberHome(int rep) throws HL7Exception { 
 1284  0
         return (XTN) super.removeRepetition(13, rep);
 1285  
     }
 1286  
 
 1287  
 
 1288  
     /**
 1289  
      * Removes a repetition of
 1290  
      * PID-13: "Phone Number - Home" at a specific index
 1291  
      *
 1292  
      * @param rep The repetition index (0-indexed)
 1293  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 1294  
      */
 1295  
     public XTN removePid13_PhoneNumberHome(int rep) throws HL7Exception { 
 1296  0
         return (XTN) super.removeRepetition(13, rep);
 1297  
     }
 1298  
 
 1299  
 
 1300  
 
 1301  
     /**
 1302  
      * Returns all repetitions of Phone Number - Business (PID-14).
 1303  
      */
 1304  
     public XTN[] getPhoneNumberBusiness() {
 1305  0
             XTN[] retVal = this.getTypedField(14, new XTN[0]);
 1306  0
             return retVal;
 1307  
     }
 1308  
 
 1309  
 
 1310  
     /**
 1311  
      * Returns all repetitions of Phone Number - Business (PID-14).
 1312  
      */
 1313  
     public XTN[] getPid14_PhoneNumberBusiness() {
 1314  0
             XTN[] retVal = this.getTypedField(14, new XTN[0]);
 1315  0
             return retVal;
 1316  
     }
 1317  
 
 1318  
 
 1319  
     /**
 1320  
      * Returns a count of the current number of repetitions of Phone Number - Business (PID-14).
 1321  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 1322  
      * it will return zero.
 1323  
      */
 1324  
     public int getPhoneNumberBusinessReps() {
 1325  0
             return this.getReps(14);
 1326  
     }
 1327  
 
 1328  
 
 1329  
     /**
 1330  
      * Returns a specific repetition of
 1331  
      * PID-14: "Phone Number - Business" - creates it if necessary
 1332  
      *
 1333  
      * @param rep The repetition index (0-indexed)
 1334  
      */
 1335  
     public XTN getPhoneNumberBusiness(int rep) { 
 1336  0
                 XTN retVal = this.getTypedField(14, rep);
 1337  0
                 return retVal;
 1338  
     }
 1339  
 
 1340  
     /**
 1341  
      * Returns a specific repetition of
 1342  
      * PID-14: "Phone Number - Business" - creates it if necessary
 1343  
      *
 1344  
      * @param rep The repetition index (0-indexed)
 1345  
      */
 1346  
     public XTN getPid14_PhoneNumberBusiness(int rep) { 
 1347  0
                 XTN retVal = this.getTypedField(14, rep);
 1348  0
                 return retVal;
 1349  
     }
 1350  
 
 1351  
     /**
 1352  
      * Returns a count of the current number of repetitions of Phone Number - Business (PID-14).
 1353  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 1354  
      * it will return zero.
 1355  
      */
 1356  
     public int getPid14_PhoneNumberBusinessReps() {
 1357  0
             return this.getReps(14);
 1358  
     }
 1359  
 
 1360  
 
 1361  
     /**
 1362  
      * Inserts a repetition of
 1363  
      * PID-14: "Phone Number - Business" at a specific index
 1364  
      *
 1365  
      * @param rep The repetition index (0-indexed)
 1366  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 1367  
      */
 1368  
     public XTN insertPhoneNumberBusiness(int rep) throws HL7Exception { 
 1369  0
         return (XTN) super.insertRepetition(14, rep);
 1370  
     }
 1371  
 
 1372  
 
 1373  
     /**
 1374  
      * Inserts a repetition of
 1375  
      * PID-14: "Phone Number - Business" at a specific index
 1376  
      *
 1377  
      * @param rep The repetition index (0-indexed)
 1378  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 1379  
      */
 1380  
     public XTN insertPid14_PhoneNumberBusiness(int rep) throws HL7Exception { 
 1381  0
         return (XTN) super.insertRepetition(14, rep);
 1382  
     }
 1383  
 
 1384  
 
 1385  
     /**
 1386  
      * Removes a repetition of
 1387  
      * PID-14: "Phone Number - Business" at a specific index
 1388  
      *
 1389  
      * @param rep The repetition index (0-indexed)
 1390  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 1391  
      */
 1392  
     public XTN removePhoneNumberBusiness(int rep) throws HL7Exception { 
 1393  0
         return (XTN) super.removeRepetition(14, rep);
 1394  
     }
 1395  
 
 1396  
 
 1397  
     /**
 1398  
      * Removes a repetition of
 1399  
      * PID-14: "Phone Number - Business" at a specific index
 1400  
      *
 1401  
      * @param rep The repetition index (0-indexed)
 1402  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 1403  
      */
 1404  
     public XTN removePid14_PhoneNumberBusiness(int rep) throws HL7Exception { 
 1405  0
         return (XTN) super.removeRepetition(14, rep);
 1406  
     }
 1407  
 
 1408  
 
 1409  
 
 1410  
 
 1411  
     /**
 1412  
      * Returns
 1413  
      * PID-15: "Primary Language" - creates it if necessary
 1414  
      */
 1415  
     public CE getPrimaryLanguage() { 
 1416  0
                 CE retVal = this.getTypedField(15, 0);
 1417  0
                 return retVal;
 1418  
     }
 1419  
     
 1420  
     /**
 1421  
      * Returns
 1422  
      * PID-15: "Primary Language" - creates it if necessary
 1423  
      */
 1424  
     public CE getPid15_PrimaryLanguage() { 
 1425  0
                 CE retVal = this.getTypedField(15, 0);
 1426  0
                 return retVal;
 1427  
     }
 1428  
 
 1429  
 
 1430  
 
 1431  
     /**
 1432  
      * Returns
 1433  
      * PID-16: "Marital Status" - creates it if necessary
 1434  
      */
 1435  
     public CE getMaritalStatus() { 
 1436  0
                 CE retVal = this.getTypedField(16, 0);
 1437  0
                 return retVal;
 1438  
     }
 1439  
     
 1440  
     /**
 1441  
      * Returns
 1442  
      * PID-16: "Marital Status" - creates it if necessary
 1443  
      */
 1444  
     public CE getPid16_MaritalStatus() { 
 1445  0
                 CE retVal = this.getTypedField(16, 0);
 1446  0
                 return retVal;
 1447  
     }
 1448  
 
 1449  
 
 1450  
 
 1451  
     /**
 1452  
      * Returns
 1453  
      * PID-17: "Religion" - creates it if necessary
 1454  
      */
 1455  
     public CE getReligion() { 
 1456  0
                 CE retVal = this.getTypedField(17, 0);
 1457  0
                 return retVal;
 1458  
     }
 1459  
     
 1460  
     /**
 1461  
      * Returns
 1462  
      * PID-17: "Religion" - creates it if necessary
 1463  
      */
 1464  
     public CE getPid17_Religion() { 
 1465  0
                 CE retVal = this.getTypedField(17, 0);
 1466  0
                 return retVal;
 1467  
     }
 1468  
 
 1469  
 
 1470  
 
 1471  
     /**
 1472  
      * Returns
 1473  
      * PID-18: "Patient Account Number" - creates it if necessary
 1474  
      */
 1475  
     public CX getPatientAccountNumber() { 
 1476  0
                 CX retVal = this.getTypedField(18, 0);
 1477  0
                 return retVal;
 1478  
     }
 1479  
     
 1480  
     /**
 1481  
      * Returns
 1482  
      * PID-18: "Patient Account Number" - creates it if necessary
 1483  
      */
 1484  
     public CX getPid18_PatientAccountNumber() { 
 1485  0
                 CX retVal = this.getTypedField(18, 0);
 1486  0
                 return retVal;
 1487  
     }
 1488  
 
 1489  
 
 1490  
     /**
 1491  
      * Returns all repetitions of SSN Number - Patient (PID-19).
 1492  
      */
 1493  
     public ST[] getSSNNumberPatient() {
 1494  0
             ST[] retVal = this.getTypedField(19, new ST[0]);
 1495  0
             return retVal;
 1496  
     }
 1497  
 
 1498  
 
 1499  
     /**
 1500  
      * Returns all repetitions of SSN Number - Patient (PID-19).
 1501  
      */
 1502  
     public ST[] getPid19_SSNNumberPatient() {
 1503  0
             ST[] retVal = this.getTypedField(19, new ST[0]);
 1504  0
             return retVal;
 1505  
     }
 1506  
 
 1507  
 
 1508  
     /**
 1509  
      * Returns a count of the current number of repetitions of SSN Number - Patient (PID-19).
 1510  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 1511  
      * it will return zero.
 1512  
      */
 1513  
     public int getSSNNumberPatientReps() {
 1514  0
             return this.getReps(19);
 1515  
     }
 1516  
 
 1517  
 
 1518  
     /**
 1519  
      * Returns a specific repetition of
 1520  
      * PID-19: "SSN Number - Patient" - creates it if necessary
 1521  
      *
 1522  
      * @param rep The repetition index (0-indexed)
 1523  
      */
 1524  
     public ST getSSNNumberPatient(int rep) { 
 1525  0
                 ST retVal = this.getTypedField(19, rep);
 1526  0
                 return retVal;
 1527  
     }
 1528  
 
 1529  
     /**
 1530  
      * Returns a specific repetition of
 1531  
      * PID-19: "SSN Number - Patient" - creates it if necessary
 1532  
      *
 1533  
      * @param rep The repetition index (0-indexed)
 1534  
      */
 1535  
     public ST getPid19_SSNNumberPatient(int rep) { 
 1536  0
                 ST retVal = this.getTypedField(19, rep);
 1537  0
                 return retVal;
 1538  
     }
 1539  
 
 1540  
     /**
 1541  
      * Returns a count of the current number of repetitions of SSN Number - Patient (PID-19).
 1542  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 1543  
      * it will return zero.
 1544  
      */
 1545  
     public int getPid19_SSNNumberPatientReps() {
 1546  0
             return this.getReps(19);
 1547  
     }
 1548  
 
 1549  
 
 1550  
     /**
 1551  
      * Inserts a repetition of
 1552  
      * PID-19: "SSN Number - Patient" at a specific index
 1553  
      *
 1554  
      * @param rep The repetition index (0-indexed)
 1555  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 1556  
      */
 1557  
     public ST insertSSNNumberPatient(int rep) throws HL7Exception { 
 1558  0
         return (ST) super.insertRepetition(19, rep);
 1559  
     }
 1560  
 
 1561  
 
 1562  
     /**
 1563  
      * Inserts a repetition of
 1564  
      * PID-19: "SSN Number - Patient" at a specific index
 1565  
      *
 1566  
      * @param rep The repetition index (0-indexed)
 1567  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 1568  
      */
 1569  
     public ST insertPid19_SSNNumberPatient(int rep) throws HL7Exception { 
 1570  0
         return (ST) super.insertRepetition(19, rep);
 1571  
     }
 1572  
 
 1573  
 
 1574  
     /**
 1575  
      * Removes a repetition of
 1576  
      * PID-19: "SSN Number - Patient" at a specific index
 1577  
      *
 1578  
      * @param rep The repetition index (0-indexed)
 1579  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 1580  
      */
 1581  
     public ST removeSSNNumberPatient(int rep) throws HL7Exception { 
 1582  0
         return (ST) super.removeRepetition(19, rep);
 1583  
     }
 1584  
 
 1585  
 
 1586  
     /**
 1587  
      * Removes a repetition of
 1588  
      * PID-19: "SSN Number - Patient" at a specific index
 1589  
      *
 1590  
      * @param rep The repetition index (0-indexed)
 1591  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 1592  
      */
 1593  
     public ST removePid19_SSNNumberPatient(int rep) throws HL7Exception { 
 1594  0
         return (ST) super.removeRepetition(19, rep);
 1595  
     }
 1596  
 
 1597  
 
 1598  
 
 1599  
     /**
 1600  
      * Returns all repetitions of Driver's License Number - Patient (PID-20).
 1601  
      */
 1602  
     public DLN[] getDriverSLicenseNumberPatient() {
 1603  0
             DLN[] retVal = this.getTypedField(20, new DLN[0]);
 1604  0
             return retVal;
 1605  
     }
 1606  
 
 1607  
 
 1608  
     /**
 1609  
      * Returns all repetitions of Driver's License Number - Patient (PID-20).
 1610  
      */
 1611  
     public DLN[] getPid20_DriverSLicenseNumberPatient() {
 1612  0
             DLN[] retVal = this.getTypedField(20, new DLN[0]);
 1613  0
             return retVal;
 1614  
     }
 1615  
 
 1616  
 
 1617  
     /**
 1618  
      * Returns a count of the current number of repetitions of Driver's License Number - Patient (PID-20).
 1619  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 1620  
      * it will return zero.
 1621  
      */
 1622  
     public int getDriverSLicenseNumberPatientReps() {
 1623  0
             return this.getReps(20);
 1624  
     }
 1625  
 
 1626  
 
 1627  
     /**
 1628  
      * Returns a specific repetition of
 1629  
      * PID-20: "Driver's License Number - Patient" - creates it if necessary
 1630  
      *
 1631  
      * @param rep The repetition index (0-indexed)
 1632  
      */
 1633  
     public DLN getDriverSLicenseNumberPatient(int rep) { 
 1634  0
                 DLN retVal = this.getTypedField(20, rep);
 1635  0
                 return retVal;
 1636  
     }
 1637  
 
 1638  
     /**
 1639  
      * Returns a specific repetition of
 1640  
      * PID-20: "Driver's License Number - Patient" - creates it if necessary
 1641  
      *
 1642  
      * @param rep The repetition index (0-indexed)
 1643  
      */
 1644  
     public DLN getPid20_DriverSLicenseNumberPatient(int rep) { 
 1645  0
                 DLN retVal = this.getTypedField(20, rep);
 1646  0
                 return retVal;
 1647  
     }
 1648  
 
 1649  
     /**
 1650  
      * Returns a count of the current number of repetitions of Driver's License Number - Patient (PID-20).
 1651  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 1652  
      * it will return zero.
 1653  
      */
 1654  
     public int getPid20_DriverSLicenseNumberPatientReps() {
 1655  0
             return this.getReps(20);
 1656  
     }
 1657  
 
 1658  
 
 1659  
     /**
 1660  
      * Inserts a repetition of
 1661  
      * PID-20: "Driver's License Number - Patient" at a specific index
 1662  
      *
 1663  
      * @param rep The repetition index (0-indexed)
 1664  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 1665  
      */
 1666  
     public DLN insertDriverSLicenseNumberPatient(int rep) throws HL7Exception { 
 1667  0
         return (DLN) super.insertRepetition(20, rep);
 1668  
     }
 1669  
 
 1670  
 
 1671  
     /**
 1672  
      * Inserts a repetition of
 1673  
      * PID-20: "Driver's License Number - Patient" at a specific index
 1674  
      *
 1675  
      * @param rep The repetition index (0-indexed)
 1676  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 1677  
      */
 1678  
     public DLN insertPid20_DriverSLicenseNumberPatient(int rep) throws HL7Exception { 
 1679  0
         return (DLN) super.insertRepetition(20, rep);
 1680  
     }
 1681  
 
 1682  
 
 1683  
     /**
 1684  
      * Removes a repetition of
 1685  
      * PID-20: "Driver's License Number - Patient" at a specific index
 1686  
      *
 1687  
      * @param rep The repetition index (0-indexed)
 1688  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 1689  
      */
 1690  
     public DLN removeDriverSLicenseNumberPatient(int rep) throws HL7Exception { 
 1691  0
         return (DLN) super.removeRepetition(20, rep);
 1692  
     }
 1693  
 
 1694  
 
 1695  
     /**
 1696  
      * Removes a repetition of
 1697  
      * PID-20: "Driver's License Number - Patient" at a specific index
 1698  
      *
 1699  
      * @param rep The repetition index (0-indexed)
 1700  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 1701  
      */
 1702  
     public DLN removePid20_DriverSLicenseNumberPatient(int rep) throws HL7Exception { 
 1703  0
         return (DLN) super.removeRepetition(20, rep);
 1704  
     }
 1705  
 
 1706  
 
 1707  
 
 1708  
     /**
 1709  
      * Returns all repetitions of Mother's Identifier (PID-21).
 1710  
      */
 1711  
     public CX[] getMotherSIdentifier() {
 1712  0
             CX[] retVal = this.getTypedField(21, new CX[0]);
 1713  0
             return retVal;
 1714  
     }
 1715  
 
 1716  
 
 1717  
     /**
 1718  
      * Returns all repetitions of Mother's Identifier (PID-21).
 1719  
      */
 1720  
     public CX[] getPid21_MotherSIdentifier() {
 1721  0
             CX[] retVal = this.getTypedField(21, new CX[0]);
 1722  0
             return retVal;
 1723  
     }
 1724  
 
 1725  
 
 1726  
     /**
 1727  
      * Returns a count of the current number of repetitions of Mother's Identifier (PID-21).
 1728  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 1729  
      * it will return zero.
 1730  
      */
 1731  
     public int getMotherSIdentifierReps() {
 1732  0
             return this.getReps(21);
 1733  
     }
 1734  
 
 1735  
 
 1736  
     /**
 1737  
      * Returns a specific repetition of
 1738  
      * PID-21: "Mother's Identifier" - creates it if necessary
 1739  
      *
 1740  
      * @param rep The repetition index (0-indexed)
 1741  
      */
 1742  
     public CX getMotherSIdentifier(int rep) { 
 1743  0
                 CX retVal = this.getTypedField(21, rep);
 1744  0
                 return retVal;
 1745  
     }
 1746  
 
 1747  
     /**
 1748  
      * Returns a specific repetition of
 1749  
      * PID-21: "Mother's Identifier" - creates it if necessary
 1750  
      *
 1751  
      * @param rep The repetition index (0-indexed)
 1752  
      */
 1753  
     public CX getPid21_MotherSIdentifier(int rep) { 
 1754  0
                 CX retVal = this.getTypedField(21, rep);
 1755  0
                 return retVal;
 1756  
     }
 1757  
 
 1758  
     /**
 1759  
      * Returns a count of the current number of repetitions of Mother's Identifier (PID-21).
 1760  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 1761  
      * it will return zero.
 1762  
      */
 1763  
     public int getPid21_MotherSIdentifierReps() {
 1764  0
             return this.getReps(21);
 1765  
     }
 1766  
 
 1767  
 
 1768  
     /**
 1769  
      * Inserts a repetition of
 1770  
      * PID-21: "Mother's Identifier" at a specific index
 1771  
      *
 1772  
      * @param rep The repetition index (0-indexed)
 1773  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 1774  
      */
 1775  
     public CX insertMotherSIdentifier(int rep) throws HL7Exception { 
 1776  0
         return (CX) super.insertRepetition(21, rep);
 1777  
     }
 1778  
 
 1779  
 
 1780  
     /**
 1781  
      * Inserts a repetition of
 1782  
      * PID-21: "Mother's Identifier" at a specific index
 1783  
      *
 1784  
      * @param rep The repetition index (0-indexed)
 1785  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 1786  
      */
 1787  
     public CX insertPid21_MotherSIdentifier(int rep) throws HL7Exception { 
 1788  0
         return (CX) super.insertRepetition(21, rep);
 1789  
     }
 1790  
 
 1791  
 
 1792  
     /**
 1793  
      * Removes a repetition of
 1794  
      * PID-21: "Mother's Identifier" at a specific index
 1795  
      *
 1796  
      * @param rep The repetition index (0-indexed)
 1797  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 1798  
      */
 1799  
     public CX removeMotherSIdentifier(int rep) throws HL7Exception { 
 1800  0
         return (CX) super.removeRepetition(21, rep);
 1801  
     }
 1802  
 
 1803  
 
 1804  
     /**
 1805  
      * Removes a repetition of
 1806  
      * PID-21: "Mother's Identifier" at a specific index
 1807  
      *
 1808  
      * @param rep The repetition index (0-indexed)
 1809  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 1810  
      */
 1811  
     public CX removePid21_MotherSIdentifier(int rep) throws HL7Exception { 
 1812  0
         return (CX) super.removeRepetition(21, rep);
 1813  
     }
 1814  
 
 1815  
 
 1816  
 
 1817  
     /**
 1818  
      * Returns all repetitions of Ethnic Group (PID-22).
 1819  
      */
 1820  
     public CE[] getEthnicGroup() {
 1821  0
             CE[] retVal = this.getTypedField(22, new CE[0]);
 1822  0
             return retVal;
 1823  
     }
 1824  
 
 1825  
 
 1826  
     /**
 1827  
      * Returns all repetitions of Ethnic Group (PID-22).
 1828  
      */
 1829  
     public CE[] getPid22_EthnicGroup() {
 1830  0
             CE[] retVal = this.getTypedField(22, new CE[0]);
 1831  0
             return retVal;
 1832  
     }
 1833  
 
 1834  
 
 1835  
     /**
 1836  
      * Returns a count of the current number of repetitions of Ethnic Group (PID-22).
 1837  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 1838  
      * it will return zero.
 1839  
      */
 1840  
     public int getEthnicGroupReps() {
 1841  0
             return this.getReps(22);
 1842  
     }
 1843  
 
 1844  
 
 1845  
     /**
 1846  
      * Returns a specific repetition of
 1847  
      * PID-22: "Ethnic Group" - creates it if necessary
 1848  
      *
 1849  
      * @param rep The repetition index (0-indexed)
 1850  
      */
 1851  
     public CE getEthnicGroup(int rep) { 
 1852  0
                 CE retVal = this.getTypedField(22, rep);
 1853  0
                 return retVal;
 1854  
     }
 1855  
 
 1856  
     /**
 1857  
      * Returns a specific repetition of
 1858  
      * PID-22: "Ethnic Group" - creates it if necessary
 1859  
      *
 1860  
      * @param rep The repetition index (0-indexed)
 1861  
      */
 1862  
     public CE getPid22_EthnicGroup(int rep) { 
 1863  0
                 CE retVal = this.getTypedField(22, rep);
 1864  0
                 return retVal;
 1865  
     }
 1866  
 
 1867  
     /**
 1868  
      * Returns a count of the current number of repetitions of Ethnic Group (PID-22).
 1869  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 1870  
      * it will return zero.
 1871  
      */
 1872  
     public int getPid22_EthnicGroupReps() {
 1873  0
             return this.getReps(22);
 1874  
     }
 1875  
 
 1876  
 
 1877  
     /**
 1878  
      * Inserts a repetition of
 1879  
      * PID-22: "Ethnic Group" at a specific index
 1880  
      *
 1881  
      * @param rep The repetition index (0-indexed)
 1882  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 1883  
      */
 1884  
     public CE insertEthnicGroup(int rep) throws HL7Exception { 
 1885  0
         return (CE) super.insertRepetition(22, rep);
 1886  
     }
 1887  
 
 1888  
 
 1889  
     /**
 1890  
      * Inserts a repetition of
 1891  
      * PID-22: "Ethnic Group" at a specific index
 1892  
      *
 1893  
      * @param rep The repetition index (0-indexed)
 1894  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 1895  
      */
 1896  
     public CE insertPid22_EthnicGroup(int rep) throws HL7Exception { 
 1897  0
         return (CE) super.insertRepetition(22, rep);
 1898  
     }
 1899  
 
 1900  
 
 1901  
     /**
 1902  
      * Removes a repetition of
 1903  
      * PID-22: "Ethnic Group" at a specific index
 1904  
      *
 1905  
      * @param rep The repetition index (0-indexed)
 1906  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 1907  
      */
 1908  
     public CE removeEthnicGroup(int rep) throws HL7Exception { 
 1909  0
         return (CE) super.removeRepetition(22, rep);
 1910  
     }
 1911  
 
 1912  
 
 1913  
     /**
 1914  
      * Removes a repetition of
 1915  
      * PID-22: "Ethnic Group" at a specific index
 1916  
      *
 1917  
      * @param rep The repetition index (0-indexed)
 1918  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 1919  
      */
 1920  
     public CE removePid22_EthnicGroup(int rep) throws HL7Exception { 
 1921  0
         return (CE) super.removeRepetition(22, rep);
 1922  
     }
 1923  
 
 1924  
 
 1925  
 
 1926  
 
 1927  
     /**
 1928  
      * Returns
 1929  
      * PID-23: "Birth Place" - creates it if necessary
 1930  
      */
 1931  
     public ST getBirthPlace() { 
 1932  0
                 ST retVal = this.getTypedField(23, 0);
 1933  0
                 return retVal;
 1934  
     }
 1935  
     
 1936  
     /**
 1937  
      * Returns
 1938  
      * PID-23: "Birth Place" - creates it if necessary
 1939  
      */
 1940  
     public ST getPid23_BirthPlace() { 
 1941  0
                 ST retVal = this.getTypedField(23, 0);
 1942  0
                 return retVal;
 1943  
     }
 1944  
 
 1945  
 
 1946  
 
 1947  
     /**
 1948  
      * Returns
 1949  
      * PID-24: "Multiple Birth Indicator" - creates it if necessary
 1950  
      */
 1951  
     public ID getMultipleBirthIndicator() { 
 1952  0
                 ID retVal = this.getTypedField(24, 0);
 1953  0
                 return retVal;
 1954  
     }
 1955  
     
 1956  
     /**
 1957  
      * Returns
 1958  
      * PID-24: "Multiple Birth Indicator" - creates it if necessary
 1959  
      */
 1960  
     public ID getPid24_MultipleBirthIndicator() { 
 1961  0
                 ID retVal = this.getTypedField(24, 0);
 1962  0
                 return retVal;
 1963  
     }
 1964  
 
 1965  
 
 1966  
 
 1967  
     /**
 1968  
      * Returns
 1969  
      * PID-25: "Birth Order" - creates it if necessary
 1970  
      */
 1971  
     public NM getBirthOrder() { 
 1972  0
                 NM retVal = this.getTypedField(25, 0);
 1973  0
                 return retVal;
 1974  
     }
 1975  
     
 1976  
     /**
 1977  
      * Returns
 1978  
      * PID-25: "Birth Order" - creates it if necessary
 1979  
      */
 1980  
     public NM getPid25_BirthOrder() { 
 1981  0
                 NM retVal = this.getTypedField(25, 0);
 1982  0
                 return retVal;
 1983  
     }
 1984  
 
 1985  
 
 1986  
     /**
 1987  
      * Returns all repetitions of Citizenship (PID-26).
 1988  
      */
 1989  
     public CE[] getCitizenship() {
 1990  0
             CE[] retVal = this.getTypedField(26, new CE[0]);
 1991  0
             return retVal;
 1992  
     }
 1993  
 
 1994  
 
 1995  
     /**
 1996  
      * Returns all repetitions of Citizenship (PID-26).
 1997  
      */
 1998  
     public CE[] getPid26_Citizenship() {
 1999  0
             CE[] retVal = this.getTypedField(26, new CE[0]);
 2000  0
             return retVal;
 2001  
     }
 2002  
 
 2003  
 
 2004  
     /**
 2005  
      * Returns a count of the current number of repetitions of Citizenship (PID-26).
 2006  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 2007  
      * it will return zero.
 2008  
      */
 2009  
     public int getCitizenshipReps() {
 2010  0
             return this.getReps(26);
 2011  
     }
 2012  
 
 2013  
 
 2014  
     /**
 2015  
      * Returns a specific repetition of
 2016  
      * PID-26: "Citizenship" - creates it if necessary
 2017  
      *
 2018  
      * @param rep The repetition index (0-indexed)
 2019  
      */
 2020  
     public CE getCitizenship(int rep) { 
 2021  0
                 CE retVal = this.getTypedField(26, rep);
 2022  0
                 return retVal;
 2023  
     }
 2024  
 
 2025  
     /**
 2026  
      * Returns a specific repetition of
 2027  
      * PID-26: "Citizenship" - creates it if necessary
 2028  
      *
 2029  
      * @param rep The repetition index (0-indexed)
 2030  
      */
 2031  
     public CE getPid26_Citizenship(int rep) { 
 2032  0
                 CE retVal = this.getTypedField(26, rep);
 2033  0
                 return retVal;
 2034  
     }
 2035  
 
 2036  
     /**
 2037  
      * Returns a count of the current number of repetitions of Citizenship (PID-26).
 2038  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 2039  
      * it will return zero.
 2040  
      */
 2041  
     public int getPid26_CitizenshipReps() {
 2042  0
             return this.getReps(26);
 2043  
     }
 2044  
 
 2045  
 
 2046  
     /**
 2047  
      * Inserts a repetition of
 2048  
      * PID-26: "Citizenship" at a specific index
 2049  
      *
 2050  
      * @param rep The repetition index (0-indexed)
 2051  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 2052  
      */
 2053  
     public CE insertCitizenship(int rep) throws HL7Exception { 
 2054  0
         return (CE) super.insertRepetition(26, rep);
 2055  
     }
 2056  
 
 2057  
 
 2058  
     /**
 2059  
      * Inserts a repetition of
 2060  
      * PID-26: "Citizenship" at a specific index
 2061  
      *
 2062  
      * @param rep The repetition index (0-indexed)
 2063  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 2064  
      */
 2065  
     public CE insertPid26_Citizenship(int rep) throws HL7Exception { 
 2066  0
         return (CE) super.insertRepetition(26, rep);
 2067  
     }
 2068  
 
 2069  
 
 2070  
     /**
 2071  
      * Removes a repetition of
 2072  
      * PID-26: "Citizenship" at a specific index
 2073  
      *
 2074  
      * @param rep The repetition index (0-indexed)
 2075  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 2076  
      */
 2077  
     public CE removeCitizenship(int rep) throws HL7Exception { 
 2078  0
         return (CE) super.removeRepetition(26, rep);
 2079  
     }
 2080  
 
 2081  
 
 2082  
     /**
 2083  
      * Removes a repetition of
 2084  
      * PID-26: "Citizenship" at a specific index
 2085  
      *
 2086  
      * @param rep The repetition index (0-indexed)
 2087  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 2088  
      */
 2089  
     public CE removePid26_Citizenship(int rep) throws HL7Exception { 
 2090  0
         return (CE) super.removeRepetition(26, rep);
 2091  
     }
 2092  
 
 2093  
 
 2094  
 
 2095  
 
 2096  
     /**
 2097  
      * Returns
 2098  
      * PID-27: "Veterans Military Status" - creates it if necessary
 2099  
      */
 2100  
     public CE getVeteransMilitaryStatus() { 
 2101  0
                 CE retVal = this.getTypedField(27, 0);
 2102  0
                 return retVal;
 2103  
     }
 2104  
     
 2105  
     /**
 2106  
      * Returns
 2107  
      * PID-27: "Veterans Military Status" - creates it if necessary
 2108  
      */
 2109  
     public CE getPid27_VeteransMilitaryStatus() { 
 2110  0
                 CE retVal = this.getTypedField(27, 0);
 2111  0
                 return retVal;
 2112  
     }
 2113  
 
 2114  
 
 2115  
     /**
 2116  
      * Returns all repetitions of Nationality (PID-28).
 2117  
      */
 2118  
     public CE[] getNationality() {
 2119  0
             CE[] retVal = this.getTypedField(28, new CE[0]);
 2120  0
             return retVal;
 2121  
     }
 2122  
 
 2123  
 
 2124  
     /**
 2125  
      * Returns all repetitions of Nationality (PID-28).
 2126  
      */
 2127  
     public CE[] getPid28_Nationality() {
 2128  0
             CE[] retVal = this.getTypedField(28, new CE[0]);
 2129  0
             return retVal;
 2130  
     }
 2131  
 
 2132  
 
 2133  
     /**
 2134  
      * Returns a count of the current number of repetitions of Nationality (PID-28).
 2135  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 2136  
      * it will return zero.
 2137  
      */
 2138  
     public int getNationalityReps() {
 2139  0
             return this.getReps(28);
 2140  
     }
 2141  
 
 2142  
 
 2143  
     /**
 2144  
      * Returns a specific repetition of
 2145  
      * PID-28: "Nationality" - creates it if necessary
 2146  
      *
 2147  
      * @param rep The repetition index (0-indexed)
 2148  
      */
 2149  
     public CE getNationality(int rep) { 
 2150  0
                 CE retVal = this.getTypedField(28, rep);
 2151  0
                 return retVal;
 2152  
     }
 2153  
 
 2154  
     /**
 2155  
      * Returns a specific repetition of
 2156  
      * PID-28: "Nationality" - creates it if necessary
 2157  
      *
 2158  
      * @param rep The repetition index (0-indexed)
 2159  
      */
 2160  
     public CE getPid28_Nationality(int rep) { 
 2161  0
                 CE retVal = this.getTypedField(28, rep);
 2162  0
                 return retVal;
 2163  
     }
 2164  
 
 2165  
     /**
 2166  
      * Returns a count of the current number of repetitions of Nationality (PID-28).
 2167  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 2168  
      * it will return zero.
 2169  
      */
 2170  
     public int getPid28_NationalityReps() {
 2171  0
             return this.getReps(28);
 2172  
     }
 2173  
 
 2174  
 
 2175  
     /**
 2176  
      * Inserts a repetition of
 2177  
      * PID-28: "Nationality" at a specific index
 2178  
      *
 2179  
      * @param rep The repetition index (0-indexed)
 2180  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 2181  
      */
 2182  
     public CE insertNationality(int rep) throws HL7Exception { 
 2183  0
         return (CE) super.insertRepetition(28, rep);
 2184  
     }
 2185  
 
 2186  
 
 2187  
     /**
 2188  
      * Inserts a repetition of
 2189  
      * PID-28: "Nationality" at a specific index
 2190  
      *
 2191  
      * @param rep The repetition index (0-indexed)
 2192  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 2193  
      */
 2194  
     public CE insertPid28_Nationality(int rep) throws HL7Exception { 
 2195  0
         return (CE) super.insertRepetition(28, rep);
 2196  
     }
 2197  
 
 2198  
 
 2199  
     /**
 2200  
      * Removes a repetition of
 2201  
      * PID-28: "Nationality" at a specific index
 2202  
      *
 2203  
      * @param rep The repetition index (0-indexed)
 2204  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 2205  
      */
 2206  
     public CE removeNationality(int rep) throws HL7Exception { 
 2207  0
         return (CE) super.removeRepetition(28, rep);
 2208  
     }
 2209  
 
 2210  
 
 2211  
     /**
 2212  
      * Removes a repetition of
 2213  
      * PID-28: "Nationality" at a specific index
 2214  
      *
 2215  
      * @param rep The repetition index (0-indexed)
 2216  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 2217  
      */
 2218  
     public CE removePid28_Nationality(int rep) throws HL7Exception { 
 2219  0
         return (CE) super.removeRepetition(28, rep);
 2220  
     }
 2221  
 
 2222  
 
 2223  
 
 2224  
 
 2225  
     /**
 2226  
      * Returns
 2227  
      * PID-29: "Patient Death Date and Time" - creates it if necessary
 2228  
      */
 2229  
     public TS getPatientDeathDateAndTime() { 
 2230  0
                 TS retVal = this.getTypedField(29, 0);
 2231  0
                 return retVal;
 2232  
     }
 2233  
     
 2234  
     /**
 2235  
      * Returns
 2236  
      * PID-29: "Patient Death Date and Time" - creates it if necessary
 2237  
      */
 2238  
     public TS getPid29_PatientDeathDateAndTime() { 
 2239  0
                 TS retVal = this.getTypedField(29, 0);
 2240  0
                 return retVal;
 2241  
     }
 2242  
 
 2243  
 
 2244  
 
 2245  
     /**
 2246  
      * Returns
 2247  
      * PID-30: "Patient Death Indicator" - creates it if necessary
 2248  
      */
 2249  
     public ID getPatientDeathIndicator() { 
 2250  0
                 ID retVal = this.getTypedField(30, 0);
 2251  0
                 return retVal;
 2252  
     }
 2253  
     
 2254  
     /**
 2255  
      * Returns
 2256  
      * PID-30: "Patient Death Indicator" - creates it if necessary
 2257  
      */
 2258  
     public ID getPid30_PatientDeathIndicator() { 
 2259  0
                 ID retVal = this.getTypedField(30, 0);
 2260  0
                 return retVal;
 2261  
     }
 2262  
 
 2263  
 
 2264  
 
 2265  
     /**
 2266  
      * Returns
 2267  
      * PID-31: "Identity Unknown Indicator" - creates it if necessary
 2268  
      */
 2269  
     public ID getIdentityUnknownIndicator() { 
 2270  0
                 ID retVal = this.getTypedField(31, 0);
 2271  0
                 return retVal;
 2272  
     }
 2273  
     
 2274  
     /**
 2275  
      * Returns
 2276  
      * PID-31: "Identity Unknown Indicator" - creates it if necessary
 2277  
      */
 2278  
     public ID getPid31_IdentityUnknownIndicator() { 
 2279  0
                 ID retVal = this.getTypedField(31, 0);
 2280  0
                 return retVal;
 2281  
     }
 2282  
 
 2283  
 
 2284  
     /**
 2285  
      * Returns all repetitions of Identity Reliability Code (PID-32).
 2286  
      */
 2287  
     public IS[] getIdentityReliabilityCode() {
 2288  0
             IS[] retVal = this.getTypedField(32, new IS[0]);
 2289  0
             return retVal;
 2290  
     }
 2291  
 
 2292  
 
 2293  
     /**
 2294  
      * Returns all repetitions of Identity Reliability Code (PID-32).
 2295  
      */
 2296  
     public IS[] getPid32_IdentityReliabilityCode() {
 2297  0
             IS[] retVal = this.getTypedField(32, new IS[0]);
 2298  0
             return retVal;
 2299  
     }
 2300  
 
 2301  
 
 2302  
     /**
 2303  
      * Returns a count of the current number of repetitions of Identity Reliability Code (PID-32).
 2304  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 2305  
      * it will return zero.
 2306  
      */
 2307  
     public int getIdentityReliabilityCodeReps() {
 2308  0
             return this.getReps(32);
 2309  
     }
 2310  
 
 2311  
 
 2312  
     /**
 2313  
      * Returns a specific repetition of
 2314  
      * PID-32: "Identity Reliability Code" - creates it if necessary
 2315  
      *
 2316  
      * @param rep The repetition index (0-indexed)
 2317  
      */
 2318  
     public IS getIdentityReliabilityCode(int rep) { 
 2319  0
                 IS retVal = this.getTypedField(32, rep);
 2320  0
                 return retVal;
 2321  
     }
 2322  
 
 2323  
     /**
 2324  
      * Returns a specific repetition of
 2325  
      * PID-32: "Identity Reliability Code" - creates it if necessary
 2326  
      *
 2327  
      * @param rep The repetition index (0-indexed)
 2328  
      */
 2329  
     public IS getPid32_IdentityReliabilityCode(int rep) { 
 2330  0
                 IS retVal = this.getTypedField(32, rep);
 2331  0
                 return retVal;
 2332  
     }
 2333  
 
 2334  
     /**
 2335  
      * Returns a count of the current number of repetitions of Identity Reliability Code (PID-32).
 2336  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 2337  
      * it will return zero.
 2338  
      */
 2339  
     public int getPid32_IdentityReliabilityCodeReps() {
 2340  0
             return this.getReps(32);
 2341  
     }
 2342  
 
 2343  
 
 2344  
     /**
 2345  
      * Inserts a repetition of
 2346  
      * PID-32: "Identity Reliability Code" at a specific index
 2347  
      *
 2348  
      * @param rep The repetition index (0-indexed)
 2349  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 2350  
      */
 2351  
     public IS insertIdentityReliabilityCode(int rep) throws HL7Exception { 
 2352  0
         return (IS) super.insertRepetition(32, rep);
 2353  
     }
 2354  
 
 2355  
 
 2356  
     /**
 2357  
      * Inserts a repetition of
 2358  
      * PID-32: "Identity Reliability Code" at a specific index
 2359  
      *
 2360  
      * @param rep The repetition index (0-indexed)
 2361  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 2362  
      */
 2363  
     public IS insertPid32_IdentityReliabilityCode(int rep) throws HL7Exception { 
 2364  0
         return (IS) super.insertRepetition(32, rep);
 2365  
     }
 2366  
 
 2367  
 
 2368  
     /**
 2369  
      * Removes a repetition of
 2370  
      * PID-32: "Identity Reliability Code" at a specific index
 2371  
      *
 2372  
      * @param rep The repetition index (0-indexed)
 2373  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 2374  
      */
 2375  
     public IS removeIdentityReliabilityCode(int rep) throws HL7Exception { 
 2376  0
         return (IS) super.removeRepetition(32, rep);
 2377  
     }
 2378  
 
 2379  
 
 2380  
     /**
 2381  
      * Removes a repetition of
 2382  
      * PID-32: "Identity Reliability Code" at a specific index
 2383  
      *
 2384  
      * @param rep The repetition index (0-indexed)
 2385  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 2386  
      */
 2387  
     public IS removePid32_IdentityReliabilityCode(int rep) throws HL7Exception { 
 2388  0
         return (IS) super.removeRepetition(32, rep);
 2389  
     }
 2390  
 
 2391  
 
 2392  
 
 2393  
 
 2394  
     /**
 2395  
      * Returns
 2396  
      * PID-33: "Last Update Date/Time" - creates it if necessary
 2397  
      */
 2398  
     public TS getLastUpdateDateTime() { 
 2399  0
                 TS retVal = this.getTypedField(33, 0);
 2400  0
                 return retVal;
 2401  
     }
 2402  
     
 2403  
     /**
 2404  
      * Returns
 2405  
      * PID-33: "Last Update Date/Time" - creates it if necessary
 2406  
      */
 2407  
     public TS getPid33_LastUpdateDateTime() { 
 2408  0
                 TS retVal = this.getTypedField(33, 0);
 2409  0
                 return retVal;
 2410  
     }
 2411  
 
 2412  
 
 2413  
 
 2414  
     /**
 2415  
      * Returns
 2416  
      * PID-34: "Last Update Facility" - creates it if necessary
 2417  
      */
 2418  
     public HD getLastUpdateFacility() { 
 2419  0
                 HD retVal = this.getTypedField(34, 0);
 2420  0
                 return retVal;
 2421  
     }
 2422  
     
 2423  
     /**
 2424  
      * Returns
 2425  
      * PID-34: "Last Update Facility" - creates it if necessary
 2426  
      */
 2427  
     public HD getPid34_LastUpdateFacility() { 
 2428  0
                 HD retVal = this.getTypedField(34, 0);
 2429  0
                 return retVal;
 2430  
     }
 2431  
 
 2432  
 
 2433  
 
 2434  
     /**
 2435  
      * Returns
 2436  
      * PID-35: "Species Code" - creates it if necessary
 2437  
      */
 2438  
     public CE getSpeciesCode() { 
 2439  0
                 CE retVal = this.getTypedField(35, 0);
 2440  0
                 return retVal;
 2441  
     }
 2442  
     
 2443  
     /**
 2444  
      * Returns
 2445  
      * PID-35: "Species Code" - creates it if necessary
 2446  
      */
 2447  
     public CE getPid35_SpeciesCode() { 
 2448  0
                 CE retVal = this.getTypedField(35, 0);
 2449  0
                 return retVal;
 2450  
     }
 2451  
 
 2452  
 
 2453  
 
 2454  
     /**
 2455  
      * Returns
 2456  
      * PID-36: "Breed Code" - creates it if necessary
 2457  
      */
 2458  
     public CE getBreedCode() { 
 2459  0
                 CE retVal = this.getTypedField(36, 0);
 2460  0
                 return retVal;
 2461  
     }
 2462  
     
 2463  
     /**
 2464  
      * Returns
 2465  
      * PID-36: "Breed Code" - creates it if necessary
 2466  
      */
 2467  
     public CE getPid36_BreedCode() { 
 2468  0
                 CE retVal = this.getTypedField(36, 0);
 2469  0
                 return retVal;
 2470  
     }
 2471  
 
 2472  
 
 2473  
 
 2474  
     /**
 2475  
      * Returns
 2476  
      * PID-37: "Strain" - creates it if necessary
 2477  
      */
 2478  
     public ST getStrain() { 
 2479  0
                 ST retVal = this.getTypedField(37, 0);
 2480  0
                 return retVal;
 2481  
     }
 2482  
     
 2483  
     /**
 2484  
      * Returns
 2485  
      * PID-37: "Strain" - creates it if necessary
 2486  
      */
 2487  
     public ST getPid37_Strain() { 
 2488  0
                 ST retVal = this.getTypedField(37, 0);
 2489  0
                 return retVal;
 2490  
     }
 2491  
 
 2492  
 
 2493  
 
 2494  
     /**
 2495  
      * Returns
 2496  
      * PID-38: "Production Class Code" - creates it if necessary
 2497  
      */
 2498  
     public CE getProductionClassCode() { 
 2499  0
                 CE retVal = this.getTypedField(38, 0);
 2500  0
                 return retVal;
 2501  
     }
 2502  
     
 2503  
     /**
 2504  
      * Returns
 2505  
      * PID-38: "Production Class Code" - creates it if necessary
 2506  
      */
 2507  
     public CE getPid38_ProductionClassCode() { 
 2508  0
                 CE retVal = this.getTypedField(38, 0);
 2509  0
                 return retVal;
 2510  
     }
 2511  
 
 2512  
 
 2513  
     /**
 2514  
      * Returns all repetitions of Tribal Citizenship (PID-39).
 2515  
      */
 2516  
     public CWE[] getTribalCitizenship() {
 2517  0
             CWE[] retVal = this.getTypedField(39, new CWE[0]);
 2518  0
             return retVal;
 2519  
     }
 2520  
 
 2521  
 
 2522  
     /**
 2523  
      * Returns all repetitions of Tribal Citizenship (PID-39).
 2524  
      */
 2525  
     public CWE[] getPid39_TribalCitizenship() {
 2526  0
             CWE[] retVal = this.getTypedField(39, new CWE[0]);
 2527  0
             return retVal;
 2528  
     }
 2529  
 
 2530  
 
 2531  
     /**
 2532  
      * Returns a count of the current number of repetitions of Tribal Citizenship (PID-39).
 2533  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 2534  
      * it will return zero.
 2535  
      */
 2536  
     public int getTribalCitizenshipReps() {
 2537  0
             return this.getReps(39);
 2538  
     }
 2539  
 
 2540  
 
 2541  
     /**
 2542  
      * Returns a specific repetition of
 2543  
      * PID-39: "Tribal Citizenship" - creates it if necessary
 2544  
      *
 2545  
      * @param rep The repetition index (0-indexed)
 2546  
      */
 2547  
     public CWE getTribalCitizenship(int rep) { 
 2548  0
                 CWE retVal = this.getTypedField(39, rep);
 2549  0
                 return retVal;
 2550  
     }
 2551  
 
 2552  
     /**
 2553  
      * Returns a specific repetition of
 2554  
      * PID-39: "Tribal Citizenship" - creates it if necessary
 2555  
      *
 2556  
      * @param rep The repetition index (0-indexed)
 2557  
      */
 2558  
     public CWE getPid39_TribalCitizenship(int rep) { 
 2559  0
                 CWE retVal = this.getTypedField(39, rep);
 2560  0
                 return retVal;
 2561  
     }
 2562  
 
 2563  
     /**
 2564  
      * Returns a count of the current number of repetitions of Tribal Citizenship (PID-39).
 2565  
      * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
 2566  
      * it will return zero.
 2567  
      */
 2568  
     public int getPid39_TribalCitizenshipReps() {
 2569  0
             return this.getReps(39);
 2570  
     }
 2571  
 
 2572  
 
 2573  
     /**
 2574  
      * Inserts a repetition of
 2575  
      * PID-39: "Tribal Citizenship" at a specific index
 2576  
      *
 2577  
      * @param rep The repetition index (0-indexed)
 2578  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 2579  
      */
 2580  
     public CWE insertTribalCitizenship(int rep) throws HL7Exception { 
 2581  0
         return (CWE) super.insertRepetition(39, rep);
 2582  
     }
 2583  
 
 2584  
 
 2585  
     /**
 2586  
      * Inserts a repetition of
 2587  
      * PID-39: "Tribal Citizenship" at a specific index
 2588  
      *
 2589  
      * @param rep The repetition index (0-indexed)
 2590  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 2591  
      */
 2592  
     public CWE insertPid39_TribalCitizenship(int rep) throws HL7Exception { 
 2593  0
         return (CWE) super.insertRepetition(39, rep);
 2594  
     }
 2595  
 
 2596  
 
 2597  
     /**
 2598  
      * Removes a repetition of
 2599  
      * PID-39: "Tribal Citizenship" at a specific index
 2600  
      *
 2601  
      * @param rep The repetition index (0-indexed)
 2602  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 2603  
      */
 2604  
     public CWE removeTribalCitizenship(int rep) throws HL7Exception { 
 2605  0
         return (CWE) super.removeRepetition(39, rep);
 2606  
     }
 2607  
 
 2608  
 
 2609  
     /**
 2610  
      * Removes a repetition of
 2611  
      * PID-39: "Tribal Citizenship" at a specific index
 2612  
      *
 2613  
      * @param rep The repetition index (0-indexed)
 2614  
      * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
 2615  
      */
 2616  
     public CWE removePid39_TribalCitizenship(int rep) throws HL7Exception { 
 2617  0
         return (CWE) super.removeRepetition(39, rep);
 2618  
     }
 2619  
 
 2620  
 
 2621  
 
 2622  
 
 2623  
 
 2624  
 
 2625  
     /** {@inheritDoc} */   
 2626  
     protected Type createNewTypeWithoutReflection(int field) {
 2627  0
        switch (field) {
 2628  0
           case 0: return new SI(getMessage());
 2629  0
           case 1: return new CX(getMessage());
 2630  0
           case 2: return new CX(getMessage());
 2631  0
           case 3: return new CX(getMessage());
 2632  0
           case 4: return new XPN(getMessage());
 2633  0
           case 5: return new XPN(getMessage());
 2634  0
           case 6: return new TS(getMessage());
 2635  0
           case 7: return new IS(getMessage(), new Integer( 1 ));
 2636  0
           case 8: return new XPN(getMessage());
 2637  0
           case 9: return new CE(getMessage());
 2638  0
           case 10: return new XAD(getMessage());
 2639  0
           case 11: return new IS(getMessage(), new Integer( 289 ));
 2640  0
           case 12: return new XTN(getMessage());
 2641  0
           case 13: return new XTN(getMessage());
 2642  0
           case 14: return new CE(getMessage());
 2643  0
           case 15: return new CE(getMessage());
 2644  0
           case 16: return new CE(getMessage());
 2645  0
           case 17: return new CX(getMessage());
 2646  0
           case 18: return new ST(getMessage());
 2647  0
           case 19: return new DLN(getMessage());
 2648  0
           case 20: return new CX(getMessage());
 2649  0
           case 21: return new CE(getMessage());
 2650  0
           case 22: return new ST(getMessage());
 2651  0
           case 23: return new ID(getMessage(), new Integer( 136 ));
 2652  0
           case 24: return new NM(getMessage());
 2653  0
           case 25: return new CE(getMessage());
 2654  0
           case 26: return new CE(getMessage());
 2655  0
           case 27: return new CE(getMessage());
 2656  0
           case 28: return new TS(getMessage());
 2657  0
           case 29: return new ID(getMessage(), new Integer( 136 ));
 2658  0
           case 30: return new ID(getMessage(), new Integer( 136 ));
 2659  0
           case 31: return new IS(getMessage(), new Integer( 445 ));
 2660  0
           case 32: return new TS(getMessage());
 2661  0
           case 33: return new HD(getMessage());
 2662  0
           case 34: return new CE(getMessage());
 2663  0
           case 35: return new CE(getMessage());
 2664  0
           case 36: return new ST(getMessage());
 2665  0
           case 37: return new CE(getMessage());
 2666  0
           case 38: return new CWE(getMessage());
 2667  0
           default: return null;
 2668  
        }
 2669  
    }
 2670  
 
 2671  
 
 2672  
 }
 2673