All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ca.uhn.hl7v2.model.v24.segment.IN3 Maven / Gradle / Ivy

There is a newer version: 2.5.1
Show 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) 
 * 2002.  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.v24.segment;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

// import ca.uhn.hl7v2.model.v24.group.*;
import ca.uhn.hl7v2.model.v24.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 IN3 message segment (Insurance Additional Information, Certification). * This segment has the following fields:

*
    *
  • IN3-1: Set ID - IN3 (SI) *
  • IN3-2: Certification Number (CX) optional *
  • IN3-3: Certified By (XCN) optional repeating *
  • IN3-4: Certification Required (ID) optional *
  • IN3-5: Penalty (MOP) optional *
  • IN3-6: Certification Date/Time (TS) optional *
  • IN3-7: Certification Modify Date/Time (TS) optional *
  • IN3-8: Operator (XCN) optional repeating *
  • IN3-9: Certification Begin Date (DT) optional *
  • IN3-10: Certification End Date (DT) optional *
  • IN3-11: Days (DTN) optional *
  • IN3-12: Non-Concur Code/Description (CE) optional *
  • IN3-13: Non-Concur Effective Date/Time (TS) optional *
  • IN3-14: Physician Reviewer (XCN) optional repeating *
  • IN3-15: Certification Contact (ST) optional *
  • IN3-16: Certification Contact Phone Number (XTN) optional repeating *
  • IN3-17: Appeal Reason (CE) optional *
  • IN3-18: Certification Agency (CE) optional *
  • IN3-19: Certification Agency Phone Number (XTN) optional repeating *
  • IN3-20: Pre-Certification Req/Window (PCF) optional repeating *
  • IN3-21: Case Manager (ST) optional *
  • IN3-22: Second Opinion Date (DT) optional *
  • IN3-23: Second Opinion Status (IS) optional *
  • IN3-24: Second Opinion Documentation Received (IS) optional repeating *
  • IN3-25: Second Opinion Physician (XCN) optional repeating *
*/ @SuppressWarnings("unused") public class IN3 extends AbstractSegment { /** * Creates a new IN3 segment */ public IN3(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 - IN3"); this.add(CX.class, false, 1, 250, new Object[]{ getMessage() }, "Certification Number"); this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Certified By"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Certification Required"); this.add(MOP.class, false, 1, 10, new Object[]{ getMessage() }, "Penalty"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Certification Date/Time"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Certification Modify Date/Time"); this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Operator"); this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Certification Begin Date"); this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Certification End Date"); this.add(DTN.class, false, 1, 3, new Object[]{ getMessage() }, "Days"); this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Non-Concur Code/Description"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Non-Concur Effective Date/Time"); this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Physician Reviewer"); this.add(ST.class, false, 1, 48, new Object[]{ getMessage() }, "Certification Contact"); this.add(XTN.class, false, 0, 250, new Object[]{ getMessage() }, "Certification Contact Phone Number"); this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Appeal Reason"); this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Certification Agency"); this.add(XTN.class, false, 0, 250, new Object[]{ getMessage() }, "Certification Agency Phone Number"); this.add(PCF.class, false, 0, 40, new Object[]{ getMessage() }, "Pre-Certification Req/Window"); this.add(ST.class, false, 1, 48, new Object[]{ getMessage() }, "Case Manager"); this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Second Opinion Date"); this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(151) }, "Second Opinion Status"); this.add(IS.class, false, 0, 1, new Object[]{ getMessage(), new Integer(152) }, "Second Opinion Documentation Received"); this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Second Opinion Physician"); } catch(HL7Exception e) { LoggerFactory.getLogger(getClass()).error("Unexpected error creating IN3 - this is probably a bug in the source code generator.", e); } } /** * Returns * IN3-1: "Set ID - IN3" - creates it if necessary */ public SI getSetIDIN3() { SI ret = null; try { Type t = this.getField(1, 0); ret = (SI)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN3-1: "Set ID - IN3" - creates it if necessary */ public SI getIn31_SetIDIN3() { SI ret = null; try { Type t = this.getField(1, 0); ret = (SI)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN3-2: "Certification Number" - creates it if necessary */ public CX getCertificationNumber() { CX ret = null; try { Type t = this.getField(2, 0); ret = (CX)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN3-2: "Certification Number" - creates it if necessary */ public CX getIn32_CertificationNumber() { CX ret = null; try { Type t = this.getField(2, 0); ret = (CX)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns all repetitions of Certified By (IN3-3). */ public XCN[] getCertifiedBy() { XCN[] ret = null; try { Type[] t = this.getField(3); ret = new XCN[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (XCN)t[i]; } } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Certified By (IN3-3). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getCertifiedByReps() { XCN[] ret = null; try { Type[] t = this.getField(3); return t.length; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * IN3-3: "Certified By" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XCN getCertifiedBy(int rep) { XCN ret = null; try { Type t = this.getField(3, rep); ret = (XCN)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * IN3-3: "Certified By" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XCN getIn33_CertifiedBy(int rep) { XCN ret = null; try { Type t = this.getField(3, rep); ret = (XCN)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Certified By (IN3-3). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn33_CertifiedByReps() { XCN[] ret = null; try { Type[] t = this.getField(3); return t.length; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * IN3-3: "Certified By" 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 XCN insertCertifiedBy(int rep) throws HL7Exception { return (XCN) super.insertRepetition(3, rep); } /** * Inserts a repetition of * IN3-3: "Certified By" 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 XCN insertIn33_CertifiedBy(int rep) throws HL7Exception { return (XCN) super.insertRepetition(3, rep); } /** * Removes a repetition of * IN3-3: "Certified By" 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 XCN removeCertifiedBy(int rep) throws HL7Exception { return (XCN) super.removeRepetition(3, rep); } /** * Removes a repetition of * IN3-3: "Certified By" 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 XCN removeIn33_CertifiedBy(int rep) throws HL7Exception { return (XCN) super.removeRepetition(3, rep); } /** * Returns * IN3-4: "Certification Required" - creates it if necessary */ public ID getCertificationRequired() { ID ret = null; try { Type t = this.getField(4, 0); ret = (ID)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN3-4: "Certification Required" - creates it if necessary */ public ID getIn34_CertificationRequired() { ID ret = null; try { Type t = this.getField(4, 0); ret = (ID)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN3-5: "Penalty" - creates it if necessary */ public MOP getPenalty() { MOP ret = null; try { Type t = this.getField(5, 0); ret = (MOP)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN3-5: "Penalty" - creates it if necessary */ public MOP getIn35_Penalty() { MOP ret = null; try { Type t = this.getField(5, 0); ret = (MOP)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN3-6: "Certification Date/Time" - creates it if necessary */ public TS getCertificationDateTime() { TS ret = null; try { Type t = this.getField(6, 0); ret = (TS)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN3-6: "Certification Date/Time" - creates it if necessary */ public TS getIn36_CertificationDateTime() { TS ret = null; try { Type t = this.getField(6, 0); ret = (TS)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN3-7: "Certification Modify Date/Time" - creates it if necessary */ public TS getCertificationModifyDateTime() { TS ret = null; try { Type t = this.getField(7, 0); ret = (TS)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN3-7: "Certification Modify Date/Time" - creates it if necessary */ public TS getIn37_CertificationModifyDateTime() { TS ret = null; try { Type t = this.getField(7, 0); ret = (TS)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns all repetitions of Operator (IN3-8). */ public XCN[] getOperator() { XCN[] ret = null; try { Type[] t = this.getField(8); ret = new XCN[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (XCN)t[i]; } } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Operator (IN3-8). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getOperatorReps() { XCN[] ret = null; try { Type[] t = this.getField(8); return t.length; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * IN3-8: "Operator" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XCN getOperator(int rep) { XCN ret = null; try { Type t = this.getField(8, rep); ret = (XCN)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * IN3-8: "Operator" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XCN getIn38_Operator(int rep) { XCN ret = null; try { Type t = this.getField(8, rep); ret = (XCN)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Operator (IN3-8). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn38_OperatorReps() { XCN[] ret = null; try { Type[] t = this.getField(8); return t.length; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * IN3-8: "Operator" 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 XCN insertOperator(int rep) throws HL7Exception { return (XCN) super.insertRepetition(8, rep); } /** * Inserts a repetition of * IN3-8: "Operator" 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 XCN insertIn38_Operator(int rep) throws HL7Exception { return (XCN) super.insertRepetition(8, rep); } /** * Removes a repetition of * IN3-8: "Operator" 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 XCN removeOperator(int rep) throws HL7Exception { return (XCN) super.removeRepetition(8, rep); } /** * Removes a repetition of * IN3-8: "Operator" 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 XCN removeIn38_Operator(int rep) throws HL7Exception { return (XCN) super.removeRepetition(8, rep); } /** * Returns * IN3-9: "Certification Begin Date" - creates it if necessary */ public DT getCertificationBeginDate() { DT ret = null; try { Type t = this.getField(9, 0); ret = (DT)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN3-9: "Certification Begin Date" - creates it if necessary */ public DT getIn39_CertificationBeginDate() { DT ret = null; try { Type t = this.getField(9, 0); ret = (DT)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN3-10: "Certification End Date" - creates it if necessary */ public DT getCertificationEndDate() { DT ret = null; try { Type t = this.getField(10, 0); ret = (DT)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN3-10: "Certification End Date" - creates it if necessary */ public DT getIn310_CertificationEndDate() { DT ret = null; try { Type t = this.getField(10, 0); ret = (DT)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN3-11: "Days" - creates it if necessary */ public DTN getDays() { DTN ret = null; try { Type t = this.getField(11, 0); ret = (DTN)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN3-11: "Days" - creates it if necessary */ public DTN getIn311_Days() { DTN ret = null; try { Type t = this.getField(11, 0); ret = (DTN)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN3-12: "Non-Concur Code/Description" - creates it if necessary */ public CE getNonConcurCodeDescription() { CE ret = null; try { Type t = this.getField(12, 0); ret = (CE)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN3-12: "Non-Concur Code/Description" - creates it if necessary */ public CE getIn312_NonConcurCodeDescription() { CE ret = null; try { Type t = this.getField(12, 0); ret = (CE)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN3-13: "Non-Concur Effective Date/Time" - creates it if necessary */ public TS getNonConcurEffectiveDateTime() { TS ret = null; try { Type t = this.getField(13, 0); ret = (TS)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN3-13: "Non-Concur Effective Date/Time" - creates it if necessary */ public TS getIn313_NonConcurEffectiveDateTime() { TS ret = null; try { Type t = this.getField(13, 0); ret = (TS)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns all repetitions of Physician Reviewer (IN3-14). */ public XCN[] getPhysicianReviewer() { XCN[] ret = null; try { Type[] t = this.getField(14); ret = new XCN[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (XCN)t[i]; } } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Physician Reviewer (IN3-14). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getPhysicianReviewerReps() { XCN[] ret = null; try { Type[] t = this.getField(14); return t.length; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * IN3-14: "Physician Reviewer" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XCN getPhysicianReviewer(int rep) { XCN ret = null; try { Type t = this.getField(14, rep); ret = (XCN)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * IN3-14: "Physician Reviewer" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XCN getIn314_PhysicianReviewer(int rep) { XCN ret = null; try { Type t = this.getField(14, rep); ret = (XCN)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Physician Reviewer (IN3-14). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn314_PhysicianReviewerReps() { XCN[] ret = null; try { Type[] t = this.getField(14); return t.length; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * IN3-14: "Physician Reviewer" 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 XCN insertPhysicianReviewer(int rep) throws HL7Exception { return (XCN) super.insertRepetition(14, rep); } /** * Inserts a repetition of * IN3-14: "Physician Reviewer" 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 XCN insertIn314_PhysicianReviewer(int rep) throws HL7Exception { return (XCN) super.insertRepetition(14, rep); } /** * Removes a repetition of * IN3-14: "Physician Reviewer" 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 XCN removePhysicianReviewer(int rep) throws HL7Exception { return (XCN) super.removeRepetition(14, rep); } /** * Removes a repetition of * IN3-14: "Physician Reviewer" 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 XCN removeIn314_PhysicianReviewer(int rep) throws HL7Exception { return (XCN) super.removeRepetition(14, rep); } /** * Returns * IN3-15: "Certification Contact" - creates it if necessary */ public ST getCertificationContact() { ST ret = null; try { Type t = this.getField(15, 0); ret = (ST)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN3-15: "Certification Contact" - creates it if necessary */ public ST getIn315_CertificationContact() { ST ret = null; try { Type t = this.getField(15, 0); ret = (ST)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns all repetitions of Certification Contact Phone Number (IN3-16). */ public XTN[] getCertificationContactPhoneNumber() { XTN[] ret = null; try { Type[] t = this.getField(16); ret = new XTN[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (XTN)t[i]; } } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Certification Contact Phone Number (IN3-16). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getCertificationContactPhoneNumberReps() { XTN[] ret = null; try { Type[] t = this.getField(16); return t.length; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * IN3-16: "Certification Contact Phone Number" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XTN getCertificationContactPhoneNumber(int rep) { XTN ret = null; try { Type t = this.getField(16, rep); ret = (XTN)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * IN3-16: "Certification Contact Phone Number" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XTN getIn316_CertificationContactPhoneNumber(int rep) { XTN ret = null; try { Type t = this.getField(16, rep); ret = (XTN)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Certification Contact Phone Number (IN3-16). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn316_CertificationContactPhoneNumberReps() { XTN[] ret = null; try { Type[] t = this.getField(16); return t.length; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * IN3-16: "Certification Contact 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 insertCertificationContactPhoneNumber(int rep) throws HL7Exception { return (XTN) super.insertRepetition(16, rep); } /** * Inserts a repetition of * IN3-16: "Certification Contact 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 insertIn316_CertificationContactPhoneNumber(int rep) throws HL7Exception { return (XTN) super.insertRepetition(16, rep); } /** * Removes a repetition of * IN3-16: "Certification Contact 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 removeCertificationContactPhoneNumber(int rep) throws HL7Exception { return (XTN) super.removeRepetition(16, rep); } /** * Removes a repetition of * IN3-16: "Certification Contact 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 removeIn316_CertificationContactPhoneNumber(int rep) throws HL7Exception { return (XTN) super.removeRepetition(16, rep); } /** * Returns * IN3-17: "Appeal Reason" - creates it if necessary */ public CE getAppealReason() { CE ret = null; try { Type t = this.getField(17, 0); ret = (CE)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN3-17: "Appeal Reason" - creates it if necessary */ public CE getIn317_AppealReason() { CE ret = null; try { Type t = this.getField(17, 0); ret = (CE)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN3-18: "Certification Agency" - creates it if necessary */ public CE getCertificationAgency() { CE ret = null; try { Type t = this.getField(18, 0); ret = (CE)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN3-18: "Certification Agency" - creates it if necessary */ public CE getIn318_CertificationAgency() { CE ret = null; try { Type t = this.getField(18, 0); ret = (CE)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns all repetitions of Certification Agency Phone Number (IN3-19). */ public XTN[] getCertificationAgencyPhoneNumber() { XTN[] ret = null; try { Type[] t = this.getField(19); ret = new XTN[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (XTN)t[i]; } } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Certification Agency Phone Number (IN3-19). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getCertificationAgencyPhoneNumberReps() { XTN[] ret = null; try { Type[] t = this.getField(19); return t.length; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * IN3-19: "Certification Agency Phone Number" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XTN getCertificationAgencyPhoneNumber(int rep) { XTN ret = null; try { Type t = this.getField(19, rep); ret = (XTN)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * IN3-19: "Certification Agency Phone Number" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XTN getIn319_CertificationAgencyPhoneNumber(int rep) { XTN ret = null; try { Type t = this.getField(19, rep); ret = (XTN)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Certification Agency Phone Number (IN3-19). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn319_CertificationAgencyPhoneNumberReps() { XTN[] ret = null; try { Type[] t = this.getField(19); return t.length; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * IN3-19: "Certification Agency 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 insertCertificationAgencyPhoneNumber(int rep) throws HL7Exception { return (XTN) super.insertRepetition(19, rep); } /** * Inserts a repetition of * IN3-19: "Certification Agency 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 insertIn319_CertificationAgencyPhoneNumber(int rep) throws HL7Exception { return (XTN) super.insertRepetition(19, rep); } /** * Removes a repetition of * IN3-19: "Certification Agency 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 removeCertificationAgencyPhoneNumber(int rep) throws HL7Exception { return (XTN) super.removeRepetition(19, rep); } /** * Removes a repetition of * IN3-19: "Certification Agency 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 removeIn319_CertificationAgencyPhoneNumber(int rep) throws HL7Exception { return (XTN) super.removeRepetition(19, rep); } /** * Returns all repetitions of Pre-Certification Req/Window (IN3-20). */ public PCF[] getPreCertificationReqWindow() { PCF[] ret = null; try { Type[] t = this.getField(20); ret = new PCF[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (PCF)t[i]; } } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Pre-Certification Req/Window (IN3-20). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getPreCertificationReqWindowReps() { PCF[] ret = null; try { Type[] t = this.getField(20); return t.length; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * IN3-20: "Pre-Certification Req/Window" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public PCF getPreCertificationReqWindow(int rep) { PCF ret = null; try { Type t = this.getField(20, rep); ret = (PCF)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * IN3-20: "Pre-Certification Req/Window" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public PCF getIn320_PreCertificationReqWindow(int rep) { PCF ret = null; try { Type t = this.getField(20, rep); ret = (PCF)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Pre-Certification Req/Window (IN3-20). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn320_PreCertificationReqWindowReps() { PCF[] ret = null; try { Type[] t = this.getField(20); return t.length; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * IN3-20: "Pre-Certification Req/Window" 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 PCF insertPreCertificationReqWindow(int rep) throws HL7Exception { return (PCF) super.insertRepetition(20, rep); } /** * Inserts a repetition of * IN3-20: "Pre-Certification Req/Window" 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 PCF insertIn320_PreCertificationReqWindow(int rep) throws HL7Exception { return (PCF) super.insertRepetition(20, rep); } /** * Removes a repetition of * IN3-20: "Pre-Certification Req/Window" 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 PCF removePreCertificationReqWindow(int rep) throws HL7Exception { return (PCF) super.removeRepetition(20, rep); } /** * Removes a repetition of * IN3-20: "Pre-Certification Req/Window" 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 PCF removeIn320_PreCertificationReqWindow(int rep) throws HL7Exception { return (PCF) super.removeRepetition(20, rep); } /** * Returns * IN3-21: "Case Manager" - creates it if necessary */ public ST getCaseManager() { ST ret = null; try { Type t = this.getField(21, 0); ret = (ST)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN3-21: "Case Manager" - creates it if necessary */ public ST getIn321_CaseManager() { ST ret = null; try { Type t = this.getField(21, 0); ret = (ST)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN3-22: "Second Opinion Date" - creates it if necessary */ public DT getSecondOpinionDate() { DT ret = null; try { Type t = this.getField(22, 0); ret = (DT)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN3-22: "Second Opinion Date" - creates it if necessary */ public DT getIn322_SecondOpinionDate() { DT ret = null; try { Type t = this.getField(22, 0); ret = (DT)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN3-23: "Second Opinion Status" - creates it if necessary */ public IS getSecondOpinionStatus() { IS ret = null; try { Type t = this.getField(23, 0); ret = (IS)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * IN3-23: "Second Opinion Status" - creates it if necessary */ public IS getIn323_SecondOpinionStatus() { IS ret = null; try { Type t = this.getField(23, 0); ret = (IS)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns all repetitions of Second Opinion Documentation Received (IN3-24). */ public IS[] getSecondOpinionDocumentationReceived() { IS[] ret = null; try { Type[] t = this.getField(24); ret = new IS[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (IS)t[i]; } } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Second Opinion Documentation Received (IN3-24). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getSecondOpinionDocumentationReceivedReps() { IS[] ret = null; try { Type[] t = this.getField(24); return t.length; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * IN3-24: "Second Opinion Documentation Received" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public IS getSecondOpinionDocumentationReceived(int rep) { IS ret = null; try { Type t = this.getField(24, rep); ret = (IS)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * IN3-24: "Second Opinion Documentation Received" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public IS getIn324_SecondOpinionDocumentationReceived(int rep) { IS ret = null; try { Type t = this.getField(24, rep); ret = (IS)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Second Opinion Documentation Received (IN3-24). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn324_SecondOpinionDocumentationReceivedReps() { IS[] ret = null; try { Type[] t = this.getField(24); return t.length; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * IN3-24: "Second Opinion Documentation Received" 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 insertSecondOpinionDocumentationReceived(int rep) throws HL7Exception { return (IS) super.insertRepetition(24, rep); } /** * Inserts a repetition of * IN3-24: "Second Opinion Documentation Received" 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 insertIn324_SecondOpinionDocumentationReceived(int rep) throws HL7Exception { return (IS) super.insertRepetition(24, rep); } /** * Removes a repetition of * IN3-24: "Second Opinion Documentation Received" 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 removeSecondOpinionDocumentationReceived(int rep) throws HL7Exception { return (IS) super.removeRepetition(24, rep); } /** * Removes a repetition of * IN3-24: "Second Opinion Documentation Received" 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 removeIn324_SecondOpinionDocumentationReceived(int rep) throws HL7Exception { return (IS) super.removeRepetition(24, rep); } /** * Returns all repetitions of Second Opinion Physician (IN3-25). */ public XCN[] getSecondOpinionPhysician() { XCN[] ret = null; try { Type[] t = this.getField(25); ret = new XCN[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (XCN)t[i]; } } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Second Opinion Physician (IN3-25). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getSecondOpinionPhysicianReps() { XCN[] ret = null; try { Type[] t = this.getField(25); return t.length; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * IN3-25: "Second Opinion Physician" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XCN getSecondOpinionPhysician(int rep) { XCN ret = null; try { Type t = this.getField(25, rep); ret = (XCN)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * IN3-25: "Second Opinion Physician" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XCN getIn325_SecondOpinionPhysician(int rep) { XCN ret = null; try { Type t = this.getField(25, rep); ret = (XCN)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Second Opinion Physician (IN3-25). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getIn325_SecondOpinionPhysicianReps() { XCN[] ret = null; try { Type[] t = this.getField(25); return t.length; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * IN3-25: "Second Opinion Physician" 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 XCN insertSecondOpinionPhysician(int rep) throws HL7Exception { return (XCN) super.insertRepetition(25, rep); } /** * Inserts a repetition of * IN3-25: "Second Opinion Physician" 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 XCN insertIn325_SecondOpinionPhysician(int rep) throws HL7Exception { return (XCN) super.insertRepetition(25, rep); } /** * Removes a repetition of * IN3-25: "Second Opinion Physician" 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 XCN removeSecondOpinionPhysician(int rep) throws HL7Exception { return (XCN) super.removeRepetition(25, rep); } /** * Removes a repetition of * IN3-25: "Second Opinion Physician" 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 XCN removeIn325_SecondOpinionPhysician(int rep) throws HL7Exception { return (XCN) super.removeRepetition(25, rep); } /** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new SI(getMessage()); case 1: return new CX(getMessage()); case 2: return new XCN(getMessage()); case 3: return new ID(getMessage(), new Integer( 136 )); case 4: return new MOP(getMessage()); case 5: return new TS(getMessage()); case 6: return new TS(getMessage()); case 7: return new XCN(getMessage()); case 8: return new DT(getMessage()); case 9: return new DT(getMessage()); case 10: return new DTN(getMessage()); case 11: return new CE(getMessage()); case 12: return new TS(getMessage()); case 13: return new XCN(getMessage()); case 14: return new ST(getMessage()); case 15: return new XTN(getMessage()); case 16: return new CE(getMessage()); case 17: return new CE(getMessage()); case 18: return new XTN(getMessage()); case 19: return new PCF(getMessage()); case 20: return new ST(getMessage()); case 21: return new DT(getMessage()); case 22: return new IS(getMessage(), new Integer( 151 )); case 23: return new IS(getMessage(), new Integer( 152 )); case 24: return new XCN(getMessage()); default: return null; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy