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

ca.uhn.hl7v2.model.v22.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.v22.segment;

// import ca.uhn.hl7v2.model.v22.group.*;
import ca.uhn.hl7v2.model.v22.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 INFO-CERTIFICATION). * This segment has the following fields:

*
    *
  • IN3-1: Set ID - insurance certification (SI) *
  • IN3-2: Certification number (ST) optional *
  • IN3-3: Certified by (CN) optional *
  • IN3-4: Certification required (ID) optional *
  • IN3-5: Penalty (CM_PEN) optional *
  • IN3-6: Certification date / time (TS) optional *
  • IN3-7: Certification modify date / time (TS) optional *
  • IN3-8: Operator (CN) optional *
  • IN3-9: Certification begin date (DT) optional *
  • IN3-10: Certification end date (DT) optional *
  • IN3-11: Days (CM_DTN) optional *
  • IN3-12: Non-concur code / description (CE) optional *
  • IN3-13: Non-concur effective date / time (TS) optional *
  • IN3-14: Physician reviewer (CN) optional *
  • IN3-15: Certification contact (ST) optional *
  • IN3-16: Certification contact phone number (TN) optional repeating *
  • IN3-17: Appeal reason (CE) optional *
  • IN3-18: Certification agency (CE) optional *
  • IN3-19: Certification agency phone number (TN) optional repeating *
  • IN3-20: Pre-certification required / window (CM_PCF) optional repeating *
  • IN3-21: Case manager (ST) optional *
  • IN3-22: Second opinion date (DT) optional *
  • IN3-23: Second opinion status (ID) optional *
  • IN3-24: Second opinion documentation received (ID) optional *
  • IN3-25: Second opinion practitioner (CN) optional *
*/ 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 - insurance certification"); this.add(ST.class, false, 1, 25, new Object[]{ getMessage(), new Integer(0) }, "Certification number"); this.add(CN.class, false, 1, 60, new Object[]{ getMessage(), new Integer(0) }, "Certified by"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Certification required"); this.add(CM_PEN.class, false, 1, 10, new Object[]{ getMessage(), new Integer(148) }, "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(CN.class, false, 1, 60, 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(CM_DTN.class, false, 1, 3, new Object[]{ getMessage(), new Integer(149) }, "Days"); this.add(CE.class, false, 1, 60, new Object[]{ getMessage(), new Integer(0) }, "Non-concur code / description"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage(), new Integer(0) }, "Non-concur effective date / time"); this.add(CN.class, false, 1, 60, new Object[]{ getMessage(), new Integer(0) }, "Physician reviewer"); this.add(ST.class, false, 1, 48, new Object[]{ getMessage(), new Integer(0) }, "Certification contact"); this.add(TN.class, false, 3, 40, new Object[]{ getMessage(), new Integer(0) }, "Certification contact phone number"); this.add(CE.class, false, 1, 60, new Object[]{ getMessage(), new Integer(0) }, "Appeal reason"); this.add(CE.class, false, 1, 60, new Object[]{ getMessage(), new Integer(0) }, "Certification agency"); this.add(TN.class, false, 3, 40, new Object[]{ getMessage(), new Integer(0) }, "Certification agency phone number"); this.add(CM_PCF.class, false, 0, 40, new Object[]{ getMessage(), new Integer(150) }, "Pre-certification required / window"); 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(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Second opinion status"); this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Second opinion documentation received"); this.add(CN.class, false, 1, 60, new Object[]{ getMessage(), new Integer(0) }, "Second opinion practitioner"); } 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 - insurance certification" - creates it if necessary */ public SI getSetIDInsuranceCertification() { 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 - insurance certification" - creates it if necessary */ public SI getIn31_SetIDInsuranceCertification() { 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 ST getCertificationNumber() { ST ret = null; try { Type t = this.getField(2, 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-2: "Certification number" - creates it if necessary */ public ST getIn32_CertificationNumber() { ST ret = null; try { Type t = this.getField(2, 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-3: "Certified by" - creates it if necessary */ public CN getCertifiedBy() { CN ret = null; try { Type t = this.getField(3, 0); ret = (CN)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-3: "Certified by" - creates it if necessary */ public CN getIn33_CertifiedBy() { CN ret = null; try { Type t = this.getField(3, 0); ret = (CN)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 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 CM_PEN getPenalty() { CM_PEN ret = null; try { Type t = this.getField(5, 0); ret = (CM_PEN)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 CM_PEN getIn35_Penalty() { CM_PEN ret = null; try { Type t = this.getField(5, 0); ret = (CM_PEN)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 * IN3-8: "Operator" - creates it if necessary */ public CN getOperator() { CN ret = null; try { Type t = this.getField(8, 0); ret = (CN)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-8: "Operator" - creates it if necessary */ public CN getIn38_Operator() { CN ret = null; try { Type t = this.getField(8, 0); ret = (CN)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 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 CM_DTN getDays() { CM_DTN ret = null; try { Type t = this.getField(11, 0); ret = (CM_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 CM_DTN getIn311_Days() { CM_DTN ret = null; try { Type t = this.getField(11, 0); ret = (CM_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 * IN3-14: "Physician reviewer" - creates it if necessary */ public CN getPhysicianReviewer() { CN ret = null; try { Type t = this.getField(14, 0); ret = (CN)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-14: "Physician reviewer" - creates it if necessary */ public CN getIn314_PhysicianReviewer() { CN ret = null; try { Type t = this.getField(14, 0); ret = (CN)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 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 TN[] getCertificationContactPhoneNumber() { TN[] ret = null; try { Type[] t = this.getField(16); ret = new TN[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (TN)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() { TN[] 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 TN getCertificationContactPhoneNumber(int rep) { TN ret = null; try { Type t = this.getField(16, rep); ret = (TN)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 TN getIn316_CertificationContactPhoneNumber(int rep) { TN ret = null; try { Type t = this.getField(16, rep); ret = (TN)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() { TN[] 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 TN insertCertificationContactPhoneNumber(int rep) throws HL7Exception { return (TN) 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 TN insertIn316_CertificationContactPhoneNumber(int rep) throws HL7Exception { return (TN) 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 TN removeCertificationContactPhoneNumber(int rep) throws HL7Exception { return (TN) 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 TN removeIn316_CertificationContactPhoneNumber(int rep) throws HL7Exception { return (TN) 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 TN[] getCertificationAgencyPhoneNumber() { TN[] ret = null; try { Type[] t = this.getField(19); ret = new TN[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (TN)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() { TN[] 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 TN getCertificationAgencyPhoneNumber(int rep) { TN ret = null; try { Type t = this.getField(19, rep); ret = (TN)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 TN getIn319_CertificationAgencyPhoneNumber(int rep) { TN ret = null; try { Type t = this.getField(19, rep); ret = (TN)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() { TN[] 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 TN insertCertificationAgencyPhoneNumber(int rep) throws HL7Exception { return (TN) 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 TN insertIn319_CertificationAgencyPhoneNumber(int rep) throws HL7Exception { return (TN) 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 TN removeCertificationAgencyPhoneNumber(int rep) throws HL7Exception { return (TN) 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 TN removeIn319_CertificationAgencyPhoneNumber(int rep) throws HL7Exception { return (TN) super.removeRepetition(19, rep); } /** * Returns all repetitions of Pre-certification required / window (IN3-20). */ public CM_PCF[] getPreCertificationRequiredWindow() { CM_PCF[] ret = null; try { Type[] t = this.getField(20); ret = new CM_PCF[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (CM_PCF)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 required / 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 getPreCertificationRequiredWindowReps() { CM_PCF[] 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 required / window" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CM_PCF getPreCertificationRequiredWindow(int rep) { CM_PCF ret = null; try { Type t = this.getField(20, rep); ret = (CM_PCF)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 required / window" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CM_PCF getIn320_PreCertificationRequiredWindow(int rep) { CM_PCF ret = null; try { Type t = this.getField(20, rep); ret = (CM_PCF)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 required / 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_PreCertificationRequiredWindowReps() { CM_PCF[] 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 required / 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 CM_PCF insertPreCertificationRequiredWindow(int rep) throws HL7Exception { return (CM_PCF) super.insertRepetition(20, rep); } /** * Inserts a repetition of * IN3-20: "Pre-certification required / 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 CM_PCF insertIn320_PreCertificationRequiredWindow(int rep) throws HL7Exception { return (CM_PCF) super.insertRepetition(20, rep); } /** * Removes a repetition of * IN3-20: "Pre-certification required / 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 CM_PCF removePreCertificationRequiredWindow(int rep) throws HL7Exception { return (CM_PCF) super.removeRepetition(20, rep); } /** * Removes a repetition of * IN3-20: "Pre-certification required / 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 CM_PCF removeIn320_PreCertificationRequiredWindow(int rep) throws HL7Exception { return (CM_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) { 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 ID getSecondOpinionStatus() { ID ret = null; try { Type t = this.getField(23, 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-23: "Second opinion status" - creates it if necessary */ public ID getIn323_SecondOpinionStatus() { ID ret = null; try { Type t = this.getField(23, 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-24: "Second opinion documentation received" - creates it if necessary */ public ID getSecondOpinionDocumentationReceived() { ID ret = null; try { Type t = this.getField(24, 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-24: "Second opinion documentation received" - creates it if necessary */ public ID getIn324_SecondOpinionDocumentationReceived() { ID ret = null; try { Type t = this.getField(24, 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-25: "Second opinion practitioner" - creates it if necessary */ public CN getSecondOpinionPractitioner() { CN ret = null; try { Type t = this.getField(25, 0); ret = (CN)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-25: "Second opinion practitioner" - creates it if necessary */ public CN getIn325_SecondOpinionPractitioner() { CN ret = null; try { Type t = this.getField(25, 0); ret = (CN)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; } /** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new SI(getMessage()); case 1: return new ST(getMessage()); case 2: return new CN(getMessage()); case 3: return new ID(getMessage(), new Integer( 136 )); case 4: return new CM_PEN(getMessage()); case 5: return new TS(getMessage()); case 6: return new TS(getMessage()); case 7: return new CN(getMessage()); case 8: return new DT(getMessage()); case 9: return new DT(getMessage()); case 10: return new CM_DTN(getMessage()); case 11: return new CE(getMessage()); case 12: return new TS(getMessage()); case 13: return new CN(getMessage()); case 14: return new ST(getMessage()); case 15: return new TN(getMessage()); case 16: return new CE(getMessage()); case 17: return new CE(getMessage()); case 18: return new TN(getMessage()); case 19: return new CM_PCF(getMessage()); case 20: return new ST(getMessage()); case 21: return new DT(getMessage()); case 22: return new ID(getMessage(), new Integer( 151 )); case 23: return new ID(getMessage(), new Integer( 152 )); case 24: return new CN(getMessage()); default: return null; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy