ca.uhn.hl7v2.model.v23.segment.NK1 Maven / Gradle / Ivy
The newest version!
/*
* This class is an auto-generated source file for a HAPI
* HL7 v2.x standard structure class.
*
* For more information, visit: http://hl7api.sourceforge.net/
*
* The contents of this file are subject to the Mozilla Public License Version 1.1
* (the "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.mozilla.org/MPL/
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the
* specific language governing rights and limitations under the License.
*
* The Original Code is "[file_name]". Description:
* "[one_line_description]"
*
* The Initial Developer of the Original Code is University Health Network. Copyright (C)
* 2012. All Rights Reserved.
*
* Contributor(s): ______________________________________.
*
* Alternatively, the contents of this file may be used under the terms of the
* GNU General Public License (the "GPL"), in which case the provisions of the GPL are
* applicable instead of those above. If you wish to allow use of your version of this
* file only under the terms of the GPL and not to allow others to use your version
* of this file under the MPL, indicate your decision by deleting the provisions above
* and replace them with the notice and other provisions required by the GPL License.
* If you do not delete the provisions above, a recipient may use your version of
* this file under either the MPL or the GPL.
*
*/
package ca.uhn.hl7v2.model.v23.segment;
// import ca.uhn.hl7v2.model.v23.group.*;
import ca.uhn.hl7v2.model.v23.datatype.*;
import ca.uhn.hl7v2.HL7Exception;
import ca.uhn.hl7v2.parser.ModelClassFactory;
import ca.uhn.hl7v2.parser.DefaultModelClassFactory;
import ca.uhn.hl7v2.model.AbstractMessage;
import ca.uhn.hl7v2.model.Group;
import ca.uhn.hl7v2.model.Type;
import ca.uhn.hl7v2.model.AbstractSegment;
import ca.uhn.hl7v2.model.Varies;
/**
*Represents an HL7 NK1 message segment (Next of kin).
* This segment has the following fields:
*
* - NK1-1: Set ID - Next of Kin (SI)
*
- NK1-2: NK Name (XPN) optional repeating
*
- NK1-3: Relationship (CE) optional
*
- NK1-4: Address (XAD) optional repeating
*
- NK1-5: Phone Number (XTN) optional repeating
*
- NK1-6: Business Phone Number (XTN) optional repeating
*
- NK1-7: Contact Role (CE)
*
- NK1-8: Start Date (DT) optional
*
- NK1-9: End Date (DT) optional
*
- NK1-10: Next of Kin/Associated Parties Job Title (ST) optional
*
- NK1-11: Next of Kin Job/Associated Parties Code/Class (JCC) optional
*
- NK1-12: Next of Kin/Associated Parties Employee Number (CX) optional
*
- NK1-13: Organization Name (XON) optional repeating
*
- NK1-14: Marital Status (IS) optional repeating
*
- NK1-15: Sex (IS) optional
*
- NK1-16: Date of Birth (TS) optional
*
- NK1-17: Living Dependency (IS) optional
*
- NK1-18: Ambulatory Status (IS) optional
*
- NK1-19: Citizenship (IS) optional
*
- NK1-20: Primary Language (CE) optional
*
- NK1-21: Living Arrangement (IS) optional
*
- NK1-22: Publicity Indicator (CE) optional
*
- NK1-23: Protection Indicator (ID) optional
*
- NK1-24: Student Indicator (IS) optional
*
- NK1-25: Religion (IS) optional
*
- NK1-26: Mother’s Maiden Name (XPN) optional
*
- NK1-27: Nationality Code (CE) optional
*
- NK1-28: Ethnic Group (IS) optional
*
- NK1-29: Contact Reason (CE) optional
*
- NK1-30: Contact Person's Name (XPN) optional repeating
*
- NK1-31: Contact Person’s Telephone Number (XTN) optional repeating
*
- NK1-32: Contact Person’s Address (XAD) optional repeating
*
- NK1-33: Associated Party’s Identifiers (CX) optional repeating
*
- NK1-34: Job Status (IS) optional
*
- NK1-35: Race (IS) optional
*
- NK1-36: Handicap (IS) optional
*
- NK1-37: Contact Person Social Security Number (ST) optional
*
*/
@SuppressWarnings("unused")
public class NK1 extends AbstractSegment {
/**
* Creates a new NK1 segment
*/
public NK1(Group parent, ModelClassFactory factory) {
super(parent, factory);
init(factory);
}
private void init(ModelClassFactory factory) {
try {
this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "Set ID - Next of Kin");
this.add(XPN.class, false, 0, 48, new Object[]{ getMessage() }, "NK Name");
this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Relationship");
this.add(XAD.class, false, 0, 106, new Object[]{ getMessage() }, "Address");
this.add(XTN.class, false, 0, 40, new Object[]{ getMessage() }, "Phone Number");
this.add(XTN.class, false, 0, 40, new Object[]{ getMessage() }, "Business Phone Number");
this.add(CE.class, true, 1, 60, new Object[]{ getMessage() }, "Contact Role");
this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Start Date");
this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "End Date");
this.add(ST.class, false, 1, 60, new Object[]{ getMessage() }, "Next of Kin/Associated Parties Job Title");
this.add(JCC.class, false, 1, 20, new Object[]{ getMessage() }, "Next of Kin Job/Associated Parties Code/Class");
this.add(CX.class, false, 1, 20, new Object[]{ getMessage() }, "Next of Kin/Associated Parties Employee Number");
this.add(XON.class, false, 0, 60, new Object[]{ getMessage() }, "Organization Name");
this.add(IS.class, false, 0, 1, new Object[]{ getMessage(), new Integer(2) }, "Marital Status");
this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(1) }, "Sex");
this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Date of Birth");
this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(223) }, "Living Dependency");
this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(9) }, "Ambulatory Status");
this.add(IS.class, false, 1, 4, new Object[]{ getMessage(), new Integer(171) }, "Citizenship");
this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Primary Language");
this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(220) }, "Living Arrangement");
this.add(CE.class, false, 1, 1, new Object[]{ getMessage() }, "Publicity Indicator");
this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Protection Indicator");
this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(231) }, "Student Indicator");
this.add(IS.class, false, 1, 3, new Object[]{ getMessage(), new Integer(6) }, "Religion");
this.add(XPN.class, false, 1, 48, new Object[]{ getMessage() }, "Mother’s Maiden Name");
this.add(CE.class, false, 1, 80, new Object[]{ getMessage() }, "Nationality Code");
this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(189) }, "Ethnic Group");
this.add(CE.class, false, 1, 2, new Object[]{ getMessage() }, "Contact Reason");
this.add(XPN.class, false, 0, 48, new Object[]{ getMessage() }, "Contact Person's Name");
this.add(XTN.class, false, 0, 40, new Object[]{ getMessage() }, "Contact Person’s Telephone Number");
this.add(XAD.class, false, 0, 106, new Object[]{ getMessage() }, "Contact Person’s Address");
this.add(CX.class, false, 0, 32, new Object[]{ getMessage() }, "Associated Party’s Identifiers");
this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(311) }, "Job Status");
this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(5) }, "Race");
this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(310) }, "Handicap");
this.add(ST.class, false, 1, 16, new Object[]{ getMessage() }, "Contact Person Social Security Number");
} catch(HL7Exception e) {
log.error("Unexpected error creating NK1 - this is probably a bug in the source code generator.", e);
}
}
/**
* Returns
* NK1-1: "Set ID - Next of Kin" - creates it if necessary
*/
public SI getSetIDNextOfKin() {
SI retVal = this.getTypedField(1, 0);
return retVal;
}
/**
* Returns
* NK1-1: "Set ID - Next of Kin" - creates it if necessary
*/
public SI getNk11_SetIDNextOfKin() {
SI retVal = this.getTypedField(1, 0);
return retVal;
}
/**
* Returns all repetitions of NK Name (NK1-2).
*/
public XPN[] getNKName() {
XPN[] retVal = this.getTypedField(2, new XPN[0]);
return retVal;
}
/**
* Returns all repetitions of NK Name (NK1-2).
*/
public XPN[] getNk12_NKName() {
XPN[] retVal = this.getTypedField(2, new XPN[0]);
return retVal;
}
/**
* Returns a count of the current number of repetitions of NK Name (NK1-2).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getNKNameReps() {
return this.getReps(2);
}
/**
* Returns a specific repetition of
* NK1-2: "NK Name" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XPN getNKName(int rep) {
XPN retVal = this.getTypedField(2, rep);
return retVal;
}
/**
* Returns a specific repetition of
* NK1-2: "NK Name" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XPN getNk12_NKName(int rep) {
XPN retVal = this.getTypedField(2, rep);
return retVal;
}
/**
* Returns a count of the current number of repetitions of NK Name (NK1-2).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getNk12_NKNameReps() {
return this.getReps(2);
}
/**
* Inserts a repetition of
* NK1-2: "NK Name" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XPN insertNKName(int rep) throws HL7Exception {
return (XPN) super.insertRepetition(2, rep);
}
/**
* Inserts a repetition of
* NK1-2: "NK Name" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XPN insertNk12_NKName(int rep) throws HL7Exception {
return (XPN) super.insertRepetition(2, rep);
}
/**
* Removes a repetition of
* NK1-2: "NK Name" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XPN removeNKName(int rep) throws HL7Exception {
return (XPN) super.removeRepetition(2, rep);
}
/**
* Removes a repetition of
* NK1-2: "NK Name" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XPN removeNk12_NKName(int rep) throws HL7Exception {
return (XPN) super.removeRepetition(2, rep);
}
/**
* Returns
* NK1-3: "Relationship" - creates it if necessary
*/
public CE getRelationship() {
CE retVal = this.getTypedField(3, 0);
return retVal;
}
/**
* Returns
* NK1-3: "Relationship" - creates it if necessary
*/
public CE getNk13_Relationship() {
CE retVal = this.getTypedField(3, 0);
return retVal;
}
/**
* Returns all repetitions of Address (NK1-4).
*/
public XAD[] getAddress() {
XAD[] retVal = this.getTypedField(4, new XAD[0]);
return retVal;
}
/**
* Returns all repetitions of Address (NK1-4).
*/
public XAD[] getNk14_Address() {
XAD[] retVal = this.getTypedField(4, new XAD[0]);
return retVal;
}
/**
* Returns a count of the current number of repetitions of Address (NK1-4).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getAddressReps() {
return this.getReps(4);
}
/**
* Returns a specific repetition of
* NK1-4: "Address" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XAD getAddress(int rep) {
XAD retVal = this.getTypedField(4, rep);
return retVal;
}
/**
* Returns a specific repetition of
* NK1-4: "Address" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XAD getNk14_Address(int rep) {
XAD retVal = this.getTypedField(4, rep);
return retVal;
}
/**
* Returns a count of the current number of repetitions of Address (NK1-4).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getNk14_AddressReps() {
return this.getReps(4);
}
/**
* Inserts a repetition of
* NK1-4: "Address" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XAD insertAddress(int rep) throws HL7Exception {
return (XAD) super.insertRepetition(4, rep);
}
/**
* Inserts a repetition of
* NK1-4: "Address" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XAD insertNk14_Address(int rep) throws HL7Exception {
return (XAD) super.insertRepetition(4, rep);
}
/**
* Removes a repetition of
* NK1-4: "Address" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XAD removeAddress(int rep) throws HL7Exception {
return (XAD) super.removeRepetition(4, rep);
}
/**
* Removes a repetition of
* NK1-4: "Address" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XAD removeNk14_Address(int rep) throws HL7Exception {
return (XAD) super.removeRepetition(4, rep);
}
/**
* Returns all repetitions of Phone Number (NK1-5).
*/
public XTN[] getPhoneNumber() {
XTN[] retVal = this.getTypedField(5, new XTN[0]);
return retVal;
}
/**
* Returns all repetitions of Phone Number (NK1-5).
*/
public XTN[] getNk15_PhoneNumber() {
XTN[] retVal = this.getTypedField(5, new XTN[0]);
return retVal;
}
/**
* Returns a count of the current number of repetitions of Phone Number (NK1-5).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPhoneNumberReps() {
return this.getReps(5);
}
/**
* Returns a specific repetition of
* NK1-5: "Phone Number" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XTN getPhoneNumber(int rep) {
XTN retVal = this.getTypedField(5, rep);
return retVal;
}
/**
* Returns a specific repetition of
* NK1-5: "Phone Number" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XTN getNk15_PhoneNumber(int rep) {
XTN retVal = this.getTypedField(5, rep);
return retVal;
}
/**
* Returns a count of the current number of repetitions of Phone Number (NK1-5).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getNk15_PhoneNumberReps() {
return this.getReps(5);
}
/**
* Inserts a repetition of
* NK1-5: "Phone Number" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XTN insertPhoneNumber(int rep) throws HL7Exception {
return (XTN) super.insertRepetition(5, rep);
}
/**
* Inserts a repetition of
* NK1-5: "Phone Number" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XTN insertNk15_PhoneNumber(int rep) throws HL7Exception {
return (XTN) super.insertRepetition(5, rep);
}
/**
* Removes a repetition of
* NK1-5: "Phone Number" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XTN removePhoneNumber(int rep) throws HL7Exception {
return (XTN) super.removeRepetition(5, rep);
}
/**
* Removes a repetition of
* NK1-5: "Phone Number" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XTN removeNk15_PhoneNumber(int rep) throws HL7Exception {
return (XTN) super.removeRepetition(5, rep);
}
/**
* Returns all repetitions of Business Phone Number (NK1-6).
*/
public XTN[] getBusinessPhoneNumber() {
XTN[] retVal = this.getTypedField(6, new XTN[0]);
return retVal;
}
/**
* Returns all repetitions of Business Phone Number (NK1-6).
*/
public XTN[] getNk16_BusinessPhoneNumber() {
XTN[] retVal = this.getTypedField(6, new XTN[0]);
return retVal;
}
/**
* Returns a count of the current number of repetitions of Business Phone Number (NK1-6).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getBusinessPhoneNumberReps() {
return this.getReps(6);
}
/**
* Returns a specific repetition of
* NK1-6: "Business Phone Number" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XTN getBusinessPhoneNumber(int rep) {
XTN retVal = this.getTypedField(6, rep);
return retVal;
}
/**
* Returns a specific repetition of
* NK1-6: "Business Phone Number" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XTN getNk16_BusinessPhoneNumber(int rep) {
XTN retVal = this.getTypedField(6, rep);
return retVal;
}
/**
* Returns a count of the current number of repetitions of Business Phone Number (NK1-6).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getNk16_BusinessPhoneNumberReps() {
return this.getReps(6);
}
/**
* Inserts a repetition of
* NK1-6: "Business Phone Number" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XTN insertBusinessPhoneNumber(int rep) throws HL7Exception {
return (XTN) super.insertRepetition(6, rep);
}
/**
* Inserts a repetition of
* NK1-6: "Business Phone Number" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XTN insertNk16_BusinessPhoneNumber(int rep) throws HL7Exception {
return (XTN) super.insertRepetition(6, rep);
}
/**
* Removes a repetition of
* NK1-6: "Business Phone Number" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XTN removeBusinessPhoneNumber(int rep) throws HL7Exception {
return (XTN) super.removeRepetition(6, rep);
}
/**
* Removes a repetition of
* NK1-6: "Business Phone Number" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XTN removeNk16_BusinessPhoneNumber(int rep) throws HL7Exception {
return (XTN) super.removeRepetition(6, rep);
}
/**
* Returns
* NK1-7: "Contact Role" - creates it if necessary
*/
public CE getContactRole() {
CE retVal = this.getTypedField(7, 0);
return retVal;
}
/**
* Returns
* NK1-7: "Contact Role" - creates it if necessary
*/
public CE getNk17_ContactRole() {
CE retVal = this.getTypedField(7, 0);
return retVal;
}
/**
* Returns
* NK1-8: "Start Date" - creates it if necessary
*/
public DT getStartDate() {
DT retVal = this.getTypedField(8, 0);
return retVal;
}
/**
* Returns
* NK1-8: "Start Date" - creates it if necessary
*/
public DT getNk18_StartDate() {
DT retVal = this.getTypedField(8, 0);
return retVal;
}
/**
* Returns
* NK1-9: "End Date" - creates it if necessary
*/
public DT getEndDate() {
DT retVal = this.getTypedField(9, 0);
return retVal;
}
/**
* Returns
* NK1-9: "End Date" - creates it if necessary
*/
public DT getNk19_EndDate() {
DT retVal = this.getTypedField(9, 0);
return retVal;
}
/**
* Returns
* NK1-10: "Next of Kin/Associated Parties Job Title" - creates it if necessary
*/
public ST getNextOfKinAssociatedPartiesJobTitle() {
ST retVal = this.getTypedField(10, 0);
return retVal;
}
/**
* Returns
* NK1-10: "Next of Kin/Associated Parties Job Title" - creates it if necessary
*/
public ST getNk110_NextOfKinAssociatedPartiesJobTitle() {
ST retVal = this.getTypedField(10, 0);
return retVal;
}
/**
* Returns
* NK1-11: "Next of Kin Job/Associated Parties Code/Class" - creates it if necessary
*/
public JCC getNextOfKinJobAssociatedPartiesCodeClass() {
JCC retVal = this.getTypedField(11, 0);
return retVal;
}
/**
* Returns
* NK1-11: "Next of Kin Job/Associated Parties Code/Class" - creates it if necessary
*/
public JCC getNk111_NextOfKinJobAssociatedPartiesCodeClass() {
JCC retVal = this.getTypedField(11, 0);
return retVal;
}
/**
* Returns
* NK1-12: "Next of Kin/Associated Parties Employee Number" - creates it if necessary
*/
public CX getNextOfKinAssociatedPartiesEmployeeNumber() {
CX retVal = this.getTypedField(12, 0);
return retVal;
}
/**
* Returns
* NK1-12: "Next of Kin/Associated Parties Employee Number" - creates it if necessary
*/
public CX getNk112_NextOfKinAssociatedPartiesEmployeeNumber() {
CX retVal = this.getTypedField(12, 0);
return retVal;
}
/**
* Returns all repetitions of Organization Name (NK1-13).
*/
public XON[] getOrganizationName() {
XON[] retVal = this.getTypedField(13, new XON[0]);
return retVal;
}
/**
* Returns all repetitions of Organization Name (NK1-13).
*/
public XON[] getNk113_OrganizationName() {
XON[] retVal = this.getTypedField(13, new XON[0]);
return retVal;
}
/**
* Returns a count of the current number of repetitions of Organization Name (NK1-13).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getOrganizationNameReps() {
return this.getReps(13);
}
/**
* Returns a specific repetition of
* NK1-13: "Organization Name" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XON getOrganizationName(int rep) {
XON retVal = this.getTypedField(13, rep);
return retVal;
}
/**
* Returns a specific repetition of
* NK1-13: "Organization Name" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XON getNk113_OrganizationName(int rep) {
XON retVal = this.getTypedField(13, rep);
return retVal;
}
/**
* Returns a count of the current number of repetitions of Organization Name (NK1-13).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getNk113_OrganizationNameReps() {
return this.getReps(13);
}
/**
* Inserts a repetition of
* NK1-13: "Organization Name" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XON insertOrganizationName(int rep) throws HL7Exception {
return (XON) super.insertRepetition(13, rep);
}
/**
* Inserts a repetition of
* NK1-13: "Organization Name" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XON insertNk113_OrganizationName(int rep) throws HL7Exception {
return (XON) super.insertRepetition(13, rep);
}
/**
* Removes a repetition of
* NK1-13: "Organization Name" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XON removeOrganizationName(int rep) throws HL7Exception {
return (XON) super.removeRepetition(13, rep);
}
/**
* Removes a repetition of
* NK1-13: "Organization Name" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XON removeNk113_OrganizationName(int rep) throws HL7Exception {
return (XON) super.removeRepetition(13, rep);
}
/**
* Returns all repetitions of Marital Status (NK1-14).
*/
public IS[] getMaritalStatus() {
IS[] retVal = this.getTypedField(14, new IS[0]);
return retVal;
}
/**
* Returns all repetitions of Marital Status (NK1-14).
*/
public IS[] getNk114_MaritalStatus() {
IS[] retVal = this.getTypedField(14, new IS[0]);
return retVal;
}
/**
* Returns a count of the current number of repetitions of Marital Status (NK1-14).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getMaritalStatusReps() {
return this.getReps(14);
}
/**
* Returns a specific repetition of
* NK1-14: "Marital Status" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public IS getMaritalStatus(int rep) {
IS retVal = this.getTypedField(14, rep);
return retVal;
}
/**
* Returns a specific repetition of
* NK1-14: "Marital Status" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public IS getNk114_MaritalStatus(int rep) {
IS retVal = this.getTypedField(14, rep);
return retVal;
}
/**
* Returns a count of the current number of repetitions of Marital Status (NK1-14).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getNk114_MaritalStatusReps() {
return this.getReps(14);
}
/**
* Inserts a repetition of
* NK1-14: "Marital Status" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public IS insertMaritalStatus(int rep) throws HL7Exception {
return (IS) super.insertRepetition(14, rep);
}
/**
* Inserts a repetition of
* NK1-14: "Marital Status" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public IS insertNk114_MaritalStatus(int rep) throws HL7Exception {
return (IS) super.insertRepetition(14, rep);
}
/**
* Removes a repetition of
* NK1-14: "Marital Status" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public IS removeMaritalStatus(int rep) throws HL7Exception {
return (IS) super.removeRepetition(14, rep);
}
/**
* Removes a repetition of
* NK1-14: "Marital Status" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public IS removeNk114_MaritalStatus(int rep) throws HL7Exception {
return (IS) super.removeRepetition(14, rep);
}
/**
* Returns
* NK1-15: "Sex" - creates it if necessary
*/
public IS getSex() {
IS retVal = this.getTypedField(15, 0);
return retVal;
}
/**
* Returns
* NK1-15: "Sex" - creates it if necessary
*/
public IS getNk115_Sex() {
IS retVal = this.getTypedField(15, 0);
return retVal;
}
/**
* Returns
* NK1-16: "Date of Birth" - creates it if necessary
*/
public TS getDateOfBirth() {
TS retVal = this.getTypedField(16, 0);
return retVal;
}
/**
* Returns
* NK1-16: "Date of Birth" - creates it if necessary
*/
public TS getNk116_DateOfBirth() {
TS retVal = this.getTypedField(16, 0);
return retVal;
}
/**
* Returns
* NK1-17: "Living Dependency" - creates it if necessary
*/
public IS getLivingDependency() {
IS retVal = this.getTypedField(17, 0);
return retVal;
}
/**
* Returns
* NK1-17: "Living Dependency" - creates it if necessary
*/
public IS getNk117_LivingDependency() {
IS retVal = this.getTypedField(17, 0);
return retVal;
}
/**
* Returns
* NK1-18: "Ambulatory Status" - creates it if necessary
*/
public IS getAmbulatoryStatus() {
IS retVal = this.getTypedField(18, 0);
return retVal;
}
/**
* Returns
* NK1-18: "Ambulatory Status" - creates it if necessary
*/
public IS getNk118_AmbulatoryStatus() {
IS retVal = this.getTypedField(18, 0);
return retVal;
}
/**
* Returns
* NK1-19: "Citizenship" - creates it if necessary
*/
public IS getCitizenship() {
IS retVal = this.getTypedField(19, 0);
return retVal;
}
/**
* Returns
* NK1-19: "Citizenship" - creates it if necessary
*/
public IS getNk119_Citizenship() {
IS retVal = this.getTypedField(19, 0);
return retVal;
}
/**
* Returns
* NK1-20: "Primary Language" - creates it if necessary
*/
public CE getPrimaryLanguage() {
CE retVal = this.getTypedField(20, 0);
return retVal;
}
/**
* Returns
* NK1-20: "Primary Language" - creates it if necessary
*/
public CE getNk120_PrimaryLanguage() {
CE retVal = this.getTypedField(20, 0);
return retVal;
}
/**
* Returns
* NK1-21: "Living Arrangement" - creates it if necessary
*/
public IS getLivingArrangement() {
IS retVal = this.getTypedField(21, 0);
return retVal;
}
/**
* Returns
* NK1-21: "Living Arrangement" - creates it if necessary
*/
public IS getNk121_LivingArrangement() {
IS retVal = this.getTypedField(21, 0);
return retVal;
}
/**
* Returns
* NK1-22: "Publicity Indicator" - creates it if necessary
*/
public CE getPublicityIndicator() {
CE retVal = this.getTypedField(22, 0);
return retVal;
}
/**
* Returns
* NK1-22: "Publicity Indicator" - creates it if necessary
*/
public CE getNk122_PublicityIndicator() {
CE retVal = this.getTypedField(22, 0);
return retVal;
}
/**
* Returns
* NK1-23: "Protection Indicator" - creates it if necessary
*/
public ID getProtectionIndicator() {
ID retVal = this.getTypedField(23, 0);
return retVal;
}
/**
* Returns
* NK1-23: "Protection Indicator" - creates it if necessary
*/
public ID getNk123_ProtectionIndicator() {
ID retVal = this.getTypedField(23, 0);
return retVal;
}
/**
* Returns
* NK1-24: "Student Indicator" - creates it if necessary
*/
public IS getStudentIndicator() {
IS retVal = this.getTypedField(24, 0);
return retVal;
}
/**
* Returns
* NK1-24: "Student Indicator" - creates it if necessary
*/
public IS getNk124_StudentIndicator() {
IS retVal = this.getTypedField(24, 0);
return retVal;
}
/**
* Returns
* NK1-25: "Religion" - creates it if necessary
*/
public IS getReligion() {
IS retVal = this.getTypedField(25, 0);
return retVal;
}
/**
* Returns
* NK1-25: "Religion" - creates it if necessary
*/
public IS getNk125_Religion() {
IS retVal = this.getTypedField(25, 0);
return retVal;
}
/**
* Returns
* NK1-26: "Mother’s Maiden Name" - creates it if necessary
*/
public XPN getMotherSMaidenName() {
XPN retVal = this.getTypedField(26, 0);
return retVal;
}
/**
* Returns
* NK1-26: "Mother’s Maiden Name" - creates it if necessary
*/
public XPN getNk126_MotherSMaidenName() {
XPN retVal = this.getTypedField(26, 0);
return retVal;
}
/**
* Returns
* NK1-27: "Nationality Code" - creates it if necessary
*/
public CE getNationalityCode() {
CE retVal = this.getTypedField(27, 0);
return retVal;
}
/**
* Returns
* NK1-27: "Nationality Code" - creates it if necessary
*/
public CE getNk127_NationalityCode() {
CE retVal = this.getTypedField(27, 0);
return retVal;
}
/**
* Returns
* NK1-28: "Ethnic Group" - creates it if necessary
*/
public IS getEthnicGroup() {
IS retVal = this.getTypedField(28, 0);
return retVal;
}
/**
* Returns
* NK1-28: "Ethnic Group" - creates it if necessary
*/
public IS getNk128_EthnicGroup() {
IS retVal = this.getTypedField(28, 0);
return retVal;
}
/**
* Returns
* NK1-29: "Contact Reason" - creates it if necessary
*/
public CE getContactReason() {
CE retVal = this.getTypedField(29, 0);
return retVal;
}
/**
* Returns
* NK1-29: "Contact Reason" - creates it if necessary
*/
public CE getNk129_ContactReason() {
CE retVal = this.getTypedField(29, 0);
return retVal;
}
/**
* Returns all repetitions of Contact Person's Name (NK1-30).
*/
public XPN[] getContactPersonSName() {
XPN[] retVal = this.getTypedField(30, new XPN[0]);
return retVal;
}
/**
* Returns all repetitions of Contact Person's Name (NK1-30).
*/
public XPN[] getNk130_ContactPersonSName() {
XPN[] retVal = this.getTypedField(30, new XPN[0]);
return retVal;
}
/**
* Returns a count of the current number of repetitions of Contact Person's Name (NK1-30).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getContactPersonSNameReps() {
return this.getReps(30);
}
/**
* Returns a specific repetition of
* NK1-30: "Contact Person's Name" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XPN getContactPersonSName(int rep) {
XPN retVal = this.getTypedField(30, rep);
return retVal;
}
/**
* Returns a specific repetition of
* NK1-30: "Contact Person's Name" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XPN getNk130_ContactPersonSName(int rep) {
XPN retVal = this.getTypedField(30, rep);
return retVal;
}
/**
* Returns a count of the current number of repetitions of Contact Person's Name (NK1-30).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getNk130_ContactPersonSNameReps() {
return this.getReps(30);
}
/**
* Inserts a repetition of
* NK1-30: "Contact Person's Name" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XPN insertContactPersonSName(int rep) throws HL7Exception {
return (XPN) super.insertRepetition(30, rep);
}
/**
* Inserts a repetition of
* NK1-30: "Contact Person's Name" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XPN insertNk130_ContactPersonSName(int rep) throws HL7Exception {
return (XPN) super.insertRepetition(30, rep);
}
/**
* Removes a repetition of
* NK1-30: "Contact Person's Name" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XPN removeContactPersonSName(int rep) throws HL7Exception {
return (XPN) super.removeRepetition(30, rep);
}
/**
* Removes a repetition of
* NK1-30: "Contact Person's Name" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XPN removeNk130_ContactPersonSName(int rep) throws HL7Exception {
return (XPN) super.removeRepetition(30, rep);
}
/**
* Returns all repetitions of Contact Person’s Telephone Number (NK1-31).
*/
public XTN[] getContactPersonSTelephoneNumber() {
XTN[] retVal = this.getTypedField(31, new XTN[0]);
return retVal;
}
/**
* Returns all repetitions of Contact Person’s Telephone Number (NK1-31).
*/
public XTN[] getNk131_ContactPersonSTelephoneNumber() {
XTN[] retVal = this.getTypedField(31, new XTN[0]);
return retVal;
}
/**
* Returns a count of the current number of repetitions of Contact Person’s Telephone Number (NK1-31).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getContactPersonSTelephoneNumberReps() {
return this.getReps(31);
}
/**
* Returns a specific repetition of
* NK1-31: "Contact Person’s Telephone Number" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XTN getContactPersonSTelephoneNumber(int rep) {
XTN retVal = this.getTypedField(31, rep);
return retVal;
}
/**
* Returns a specific repetition of
* NK1-31: "Contact Person’s Telephone Number" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XTN getNk131_ContactPersonSTelephoneNumber(int rep) {
XTN retVal = this.getTypedField(31, rep);
return retVal;
}
/**
* Returns a count of the current number of repetitions of Contact Person’s Telephone Number (NK1-31).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getNk131_ContactPersonSTelephoneNumberReps() {
return this.getReps(31);
}
/**
* Inserts a repetition of
* NK1-31: "Contact Person’s Telephone Number" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XTN insertContactPersonSTelephoneNumber(int rep) throws HL7Exception {
return (XTN) super.insertRepetition(31, rep);
}
/**
* Inserts a repetition of
* NK1-31: "Contact Person’s Telephone Number" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XTN insertNk131_ContactPersonSTelephoneNumber(int rep) throws HL7Exception {
return (XTN) super.insertRepetition(31, rep);
}
/**
* Removes a repetition of
* NK1-31: "Contact Person’s Telephone Number" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XTN removeContactPersonSTelephoneNumber(int rep) throws HL7Exception {
return (XTN) super.removeRepetition(31, rep);
}
/**
* Removes a repetition of
* NK1-31: "Contact Person’s Telephone Number" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XTN removeNk131_ContactPersonSTelephoneNumber(int rep) throws HL7Exception {
return (XTN) super.removeRepetition(31, rep);
}
/**
* Returns all repetitions of Contact Person’s Address (NK1-32).
*/
public XAD[] getContactPersonSAddress() {
XAD[] retVal = this.getTypedField(32, new XAD[0]);
return retVal;
}
/**
* Returns all repetitions of Contact Person’s Address (NK1-32).
*/
public XAD[] getNk132_ContactPersonSAddress() {
XAD[] retVal = this.getTypedField(32, new XAD[0]);
return retVal;
}
/**
* Returns a count of the current number of repetitions of Contact Person’s Address (NK1-32).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getContactPersonSAddressReps() {
return this.getReps(32);
}
/**
* Returns a specific repetition of
* NK1-32: "Contact Person’s Address" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XAD getContactPersonSAddress(int rep) {
XAD retVal = this.getTypedField(32, rep);
return retVal;
}
/**
* Returns a specific repetition of
* NK1-32: "Contact Person’s Address" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XAD getNk132_ContactPersonSAddress(int rep) {
XAD retVal = this.getTypedField(32, rep);
return retVal;
}
/**
* Returns a count of the current number of repetitions of Contact Person’s Address (NK1-32).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getNk132_ContactPersonSAddressReps() {
return this.getReps(32);
}
/**
* Inserts a repetition of
* NK1-32: "Contact Person’s Address" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XAD insertContactPersonSAddress(int rep) throws HL7Exception {
return (XAD) super.insertRepetition(32, rep);
}
/**
* Inserts a repetition of
* NK1-32: "Contact Person’s Address" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XAD insertNk132_ContactPersonSAddress(int rep) throws HL7Exception {
return (XAD) super.insertRepetition(32, rep);
}
/**
* Removes a repetition of
* NK1-32: "Contact Person’s Address" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XAD removeContactPersonSAddress(int rep) throws HL7Exception {
return (XAD) super.removeRepetition(32, rep);
}
/**
* Removes a repetition of
* NK1-32: "Contact Person’s Address" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public XAD removeNk132_ContactPersonSAddress(int rep) throws HL7Exception {
return (XAD) super.removeRepetition(32, rep);
}
/**
* Returns all repetitions of Associated Party’s Identifiers (NK1-33).
*/
public CX[] getAssociatedPartySIdentifiers() {
CX[] retVal = this.getTypedField(33, new CX[0]);
return retVal;
}
/**
* Returns all repetitions of Associated Party’s Identifiers (NK1-33).
*/
public CX[] getNk133_AssociatedPartySIdentifiers() {
CX[] retVal = this.getTypedField(33, new CX[0]);
return retVal;
}
/**
* Returns a count of the current number of repetitions of Associated Party’s Identifiers (NK1-33).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getAssociatedPartySIdentifiersReps() {
return this.getReps(33);
}
/**
* Returns a specific repetition of
* NK1-33: "Associated Party’s Identifiers" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CX getAssociatedPartySIdentifiers(int rep) {
CX retVal = this.getTypedField(33, rep);
return retVal;
}
/**
* Returns a specific repetition of
* NK1-33: "Associated Party’s Identifiers" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CX getNk133_AssociatedPartySIdentifiers(int rep) {
CX retVal = this.getTypedField(33, rep);
return retVal;
}
/**
* Returns a count of the current number of repetitions of Associated Party’s Identifiers (NK1-33).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getNk133_AssociatedPartySIdentifiersReps() {
return this.getReps(33);
}
/**
* Inserts a repetition of
* NK1-33: "Associated Party’s Identifiers" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CX insertAssociatedPartySIdentifiers(int rep) throws HL7Exception {
return (CX) super.insertRepetition(33, rep);
}
/**
* Inserts a repetition of
* NK1-33: "Associated Party’s Identifiers" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CX insertNk133_AssociatedPartySIdentifiers(int rep) throws HL7Exception {
return (CX) super.insertRepetition(33, rep);
}
/**
* Removes a repetition of
* NK1-33: "Associated Party’s Identifiers" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CX removeAssociatedPartySIdentifiers(int rep) throws HL7Exception {
return (CX) super.removeRepetition(33, rep);
}
/**
* Removes a repetition of
* NK1-33: "Associated Party’s Identifiers" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CX removeNk133_AssociatedPartySIdentifiers(int rep) throws HL7Exception {
return (CX) super.removeRepetition(33, rep);
}
/**
* Returns
* NK1-34: "Job Status" - creates it if necessary
*/
public IS getJobStatus() {
IS retVal = this.getTypedField(34, 0);
return retVal;
}
/**
* Returns
* NK1-34: "Job Status" - creates it if necessary
*/
public IS getNk134_JobStatus() {
IS retVal = this.getTypedField(34, 0);
return retVal;
}
/**
* Returns
* NK1-35: "Race" - creates it if necessary
*/
public IS getRace() {
IS retVal = this.getTypedField(35, 0);
return retVal;
}
/**
* Returns
* NK1-35: "Race" - creates it if necessary
*/
public IS getNk135_Race() {
IS retVal = this.getTypedField(35, 0);
return retVal;
}
/**
* Returns
* NK1-36: "Handicap" - creates it if necessary
*/
public IS getHandicap() {
IS retVal = this.getTypedField(36, 0);
return retVal;
}
/**
* Returns
* NK1-36: "Handicap" - creates it if necessary
*/
public IS getNk136_Handicap() {
IS retVal = this.getTypedField(36, 0);
return retVal;
}
/**
* Returns
* NK1-37: "Contact Person Social Security Number" - creates it if necessary
*/
public ST getContactPersonSocialSecurityNumber() {
ST retVal = this.getTypedField(37, 0);
return retVal;
}
/**
* Returns
* NK1-37: "Contact Person Social Security Number" - creates it if necessary
*/
public ST getNk137_ContactPersonSocialSecurityNumber() {
ST retVal = this.getTypedField(37, 0);
return retVal;
}
/** {@inheritDoc} */
protected Type createNewTypeWithoutReflection(int field) {
switch (field) {
case 0: return new SI(getMessage());
case 1: return new XPN(getMessage());
case 2: return new CE(getMessage());
case 3: return new XAD(getMessage());
case 4: return new XTN(getMessage());
case 5: return new XTN(getMessage());
case 6: return new CE(getMessage());
case 7: return new DT(getMessage());
case 8: return new DT(getMessage());
case 9: return new ST(getMessage());
case 10: return new JCC(getMessage());
case 11: return new CX(getMessage());
case 12: return new XON(getMessage());
case 13: return new IS(getMessage(), new Integer( 2 ));
case 14: return new IS(getMessage(), new Integer( 1 ));
case 15: return new TS(getMessage());
case 16: return new IS(getMessage(), new Integer( 223 ));
case 17: return new IS(getMessage(), new Integer( 9 ));
case 18: return new IS(getMessage(), new Integer( 171 ));
case 19: return new CE(getMessage());
case 20: return new IS(getMessage(), new Integer( 220 ));
case 21: return new CE(getMessage());
case 22: return new ID(getMessage(), new Integer( 136 ));
case 23: return new IS(getMessage(), new Integer( 231 ));
case 24: return new IS(getMessage(), new Integer( 6 ));
case 25: return new XPN(getMessage());
case 26: return new CE(getMessage());
case 27: return new IS(getMessage(), new Integer( 189 ));
case 28: return new CE(getMessage());
case 29: return new XPN(getMessage());
case 30: return new XTN(getMessage());
case 31: return new XAD(getMessage());
case 32: return new CX(getMessage());
case 33: return new IS(getMessage(), new Integer( 311 ));
case 34: return new IS(getMessage(), new Integer( 5 ));
case 35: return new IS(getMessage(), new Integer( 310 ));
case 36: return new ST(getMessage());
default: return null;
}
}
}