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

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

There is a newer version: 2.3
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/
 */

package ca.uhn.hl7v2.model.v25.segment;

// import ca.uhn.hl7v2.model.v25.group.*;
import ca.uhn.hl7v2.model.v25.datatype.*;
import ca.uhn.log.HapiLogFactory;
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 Requirement (ICD) 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 *
*/ 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(), new Integer(0) }, "Set ID - IN3"); this.add(CX.class, false, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Certification Number"); this.add(XCN.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Certified By"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Certification Required"); this.add(MOP.class, false, 1, 23, new Object[]{ getMessage(), new Integer(0) }, "Penalty"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage(), new Integer(0) }, "Certification Date/Time"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage(), new Integer(0) }, "Certification Modify Date/Time"); this.add(XCN.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Operator"); this.add(DT.class, false, 1, 8, new Object[]{ getMessage(), new Integer(0) }, "Certification Begin Date"); this.add(DT.class, false, 1, 8, new Object[]{ getMessage(), new Integer(0) }, "Certification End Date"); this.add(DTN.class, false, 1, 6, new Object[]{ getMessage(), new Integer(0) }, "Days"); this.add(CE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(233) }, "Non-Concur Code/Description"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage(), new Integer(0) }, "Non-Concur Effective Date/Time"); this.add(XCN.class, false, 0, 250, new Object[]{ getMessage(), new Integer(10) }, "Physician Reviewer"); this.add(ST.class, false, 1, 48, new Object[]{ getMessage(), new Integer(0) }, "Certification Contact"); this.add(XTN.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Certification Contact Phone Number"); this.add(CE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(345) }, "Appeal Reason"); this.add(CE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(346) }, "Certification Agency"); this.add(XTN.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Certification Agency Phone Number"); this.add(ICD.class, false, 0, 40, new Object[]{ getMessage(), new Integer(0) }, "Pre-Certification Requirement"); this.add(ST.class, false, 1, 48, new Object[]{ getMessage(), new Integer(0) }, "Case Manager"); this.add(DT.class, false, 1, 8, new Object[]{ getMessage(), new Integer(0) }, "Second Opinion Date"); this.add(IS.class, false, 1, 1, new Object[]{ getMessage() }, "Second Opinion Status"); this.add(IS.class, false, 0, 1, new Object[]{ getMessage() }, "Second Opinion Documentation Received"); this.add(XCN.class, false, 0, 250, new Object[]{ getMessage(), new Integer(10) }, "Second Opinion Physician"); } catch(HL7Exception e) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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 Requirement (IN3-20). */ public ICD[] getPreCertificationRequirement() { ICD[] ret = null; try { Type[] t = this.getField(20); ret = new ICD[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (ICD)t[i]; } } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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 Requirement (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 getPreCertificationRequirementReps() { ICD[] ret = null; try { Type[] t = this.getField(20); return t.length; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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 Requirement" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public ICD getPreCertificationRequirement(int rep) { ICD ret = null; try { Type t = this.getField(20, rep); ret = (ICD)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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 Requirement" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public ICD getIn320_PreCertificationRequirement(int rep) { ICD ret = null; try { Type t = this.getField(20, rep); ret = (ICD)t; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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 Requirement (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_PreCertificationRequirementReps() { ICD[] ret = null; try { Type[] t = this.getField(20); return t.length; } catch (ClassCastException cce) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * IN3-20: "Pre-Certification Requirement" 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 ICD insertPreCertificationRequirement(int rep) throws HL7Exception { return (ICD) super.insertRepetition(20, rep); } /** * Inserts a repetition of * IN3-20: "Pre-Certification Requirement" 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 ICD insertIn320_PreCertificationRequirement(int rep) throws HL7Exception { return (ICD) super.insertRepetition(20, rep); } /** * Removes a repetition of * IN3-20: "Pre-Certification Requirement" 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 ICD removePreCertificationRequirement(int rep) throws HL7Exception { return (ICD) super.removeRepetition(20, rep); } /** * Removes a repetition of * IN3-20: "Pre-Certification Requirement" 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 ICD removeIn320_PreCertificationRequirement(int rep) throws HL7Exception { return (ICD) 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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { HapiLogFactory.getHapiLog(this.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 ICD(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