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

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

// import ca.uhn.hl7v2.model.v251.group.*;
import ca.uhn.hl7v2.model.v251.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 FT1 message segment (Financial Transaction). * This segment has the following fields:

*
    *
  • FT1-1: Set ID - FT1 (SI) optional *
  • FT1-2: Transaction ID (ST) optional *
  • FT1-3: Transaction Batch ID (ST) optional *
  • FT1-4: Transaction Date (DR) *
  • FT1-5: Transaction Posting Date (TS) optional *
  • FT1-6: Transaction Type (IS) *
  • FT1-7: Transaction Code (CE) *
  • FT1-8: Transaction Description (ST) optional *
  • FT1-9: Transaction Description - Alt (ST) optional *
  • FT1-10: Transaction Quantity (NM) optional *
  • FT1-11: Transaction Amount - Extended (CP) optional *
  • FT1-12: Transaction Amount - Unit (CP) optional *
  • FT1-13: Department Code (CE) optional *
  • FT1-14: Insurance Plan ID (CE) optional *
  • FT1-15: Insurance Amount (CP) optional *
  • FT1-16: Assigned Patient Location (PL) optional *
  • FT1-17: Fee Schedule (IS) optional *
  • FT1-18: Patient Type (IS) optional *
  • FT1-19: Diagnosis Code - FT1 (CE) optional repeating *
  • FT1-20: Performed By Code (XCN) optional repeating *
  • FT1-21: Ordered By Code (XCN) optional repeating *
  • FT1-22: Unit Cost (CP) optional *
  • FT1-23: Filler Order Number (EI) optional *
  • FT1-24: Entered By Code (XCN) optional repeating *
  • FT1-25: Procedure Code (CE) optional *
  • FT1-26: Procedure Code Modifier (CE) optional repeating *
  • FT1-27: Advanced Beneficiary Notice Code (CE) optional *
  • FT1-28: Medically Necessary Duplicate Procedure Reason. (CWE) optional *
  • FT1-29: NDC Code (CNE) optional *
  • FT1-30: Payment Reference ID (CX) optional *
  • FT1-31: Transaction Reference Key (SI) optional repeating *
*/ public class FT1 extends AbstractSegment { /** * Creates a new FT1 segment */ public FT1(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); } private void init(ModelClassFactory factory) { try { this.add(SI.class, false, 1, 4, new Object[]{ getMessage(), new Integer(0) }, "Set ID - FT1"); this.add(ST.class, false, 1, 12, new Object[]{ getMessage(), new Integer(0) }, "Transaction ID"); this.add(ST.class, false, 1, 10, new Object[]{ getMessage(), new Integer(0) }, "Transaction Batch ID"); this.add(DR.class, true, 1, 53, new Object[]{ getMessage(), new Integer(0) }, "Transaction Date"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage(), new Integer(0) }, "Transaction Posting Date"); this.add(IS.class, true, 1, 8, new Object[]{ getMessage() }, "Transaction Type"); this.add(CE.class, true, 1, 250, new Object[]{ getMessage(), new Integer(132) }, "Transaction Code"); this.add(ST.class, false, 1, 40, new Object[]{ getMessage(), new Integer(0) }, "Transaction Description"); this.add(ST.class, false, 1, 40, new Object[]{ getMessage(), new Integer(0) }, "Transaction Description - Alt"); this.add(NM.class, false, 1, 6, new Object[]{ getMessage(), new Integer(0) }, "Transaction Quantity"); this.add(CP.class, false, 1, 12, new Object[]{ getMessage(), new Integer(0) }, "Transaction Amount - Extended"); this.add(CP.class, false, 1, 12, new Object[]{ getMessage(), new Integer(0) }, "Transaction Amount - Unit"); this.add(CE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(49) }, "Department Code"); this.add(CE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(72) }, "Insurance Plan ID"); this.add(CP.class, false, 1, 12, new Object[]{ getMessage(), new Integer(0) }, "Insurance Amount"); this.add(PL.class, false, 1, 80, new Object[]{ getMessage(), new Integer(0) }, "Assigned Patient Location"); this.add(IS.class, false, 1, 1, new Object[]{ getMessage() }, "Fee Schedule"); this.add(IS.class, false, 1, 2, new Object[]{ getMessage() }, "Patient Type"); this.add(CE.class, false, 0, 250, new Object[]{ getMessage(), new Integer(51) }, "Diagnosis Code - FT1"); this.add(XCN.class, false, 0, 250, new Object[]{ getMessage(), new Integer(84) }, "Performed By Code"); this.add(XCN.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Ordered By Code"); this.add(CP.class, false, 1, 12, new Object[]{ getMessage(), new Integer(0) }, "Unit Cost"); this.add(EI.class, false, 1, 22, new Object[]{ getMessage(), new Integer(0) }, "Filler Order Number"); this.add(XCN.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Entered By Code"); this.add(CE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(88) }, "Procedure Code"); this.add(CE.class, false, 0, 250, new Object[]{ getMessage(), new Integer(340) }, "Procedure Code Modifier"); this.add(CE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(339) }, "Advanced Beneficiary Notice Code"); this.add(CWE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(476) }, "Medically Necessary Duplicate Procedure Reason."); this.add(CNE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(549) }, "NDC Code"); this.add(CX.class, false, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Payment Reference ID"); this.add(SI.class, false, 0, 4, new Object[]{ getMessage(), new Integer(0) }, "Transaction Reference Key"); } catch(HL7Exception e) { HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected error creating FT1 - this is probably a bug in the source code generator.", e); } } /** * Returns * FT1-1: "Set ID - FT1" - creates it if necessary */ public SI getSetIDFT1() { 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 * FT1-1: "Set ID - FT1" - creates it if necessary */ public SI getFt11_SetIDFT1() { 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 * FT1-2: "Transaction ID" - creates it if necessary */ public ST getTransactionID() { 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 * FT1-2: "Transaction ID" - creates it if necessary */ public ST getFt12_TransactionID() { 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 * FT1-3: "Transaction Batch ID" - creates it if necessary */ public ST getTransactionBatchID() { ST ret = null; try { Type t = this.getField(3, 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 * FT1-3: "Transaction Batch ID" - creates it if necessary */ public ST getFt13_TransactionBatchID() { ST ret = null; try { Type t = this.getField(3, 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 * FT1-4: "Transaction Date" - creates it if necessary */ public DR getTransactionDate() { DR ret = null; try { Type t = this.getField(4, 0); ret = (DR)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 * FT1-4: "Transaction Date" - creates it if necessary */ public DR getFt14_TransactionDate() { DR ret = null; try { Type t = this.getField(4, 0); ret = (DR)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 * FT1-5: "Transaction Posting Date" - creates it if necessary */ public TS getTransactionPostingDate() { TS ret = null; try { Type t = this.getField(5, 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 * FT1-5: "Transaction Posting Date" - creates it if necessary */ public TS getFt15_TransactionPostingDate() { TS ret = null; try { Type t = this.getField(5, 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 * FT1-6: "Transaction Type" - creates it if necessary */ public IS getTransactionType() { IS ret = null; try { Type t = this.getField(6, 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 * FT1-6: "Transaction Type" - creates it if necessary */ public IS getFt16_TransactionType() { IS ret = null; try { Type t = this.getField(6, 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 * FT1-7: "Transaction Code" - creates it if necessary */ public CE getTransactionCode() { CE ret = null; try { Type t = this.getField(7, 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 * FT1-7: "Transaction Code" - creates it if necessary */ public CE getFt17_TransactionCode() { CE ret = null; try { Type t = this.getField(7, 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 * FT1-8: "Transaction Description" - creates it if necessary */ public ST getTransactionDescription() { ST ret = null; try { Type t = this.getField(8, 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 * FT1-8: "Transaction Description" - creates it if necessary */ public ST getFt18_TransactionDescription() { ST ret = null; try { Type t = this.getField(8, 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 * FT1-9: "Transaction Description - Alt" - creates it if necessary */ public ST getTransactionDescriptionAlt() { ST ret = null; try { Type t = this.getField(9, 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 * FT1-9: "Transaction Description - Alt" - creates it if necessary */ public ST getFt19_TransactionDescriptionAlt() { ST ret = null; try { Type t = this.getField(9, 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 * FT1-10: "Transaction Quantity" - creates it if necessary */ public NM getTransactionQuantity() { NM ret = null; try { Type t = this.getField(10, 0); ret = (NM)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 * FT1-10: "Transaction Quantity" - creates it if necessary */ public NM getFt110_TransactionQuantity() { NM ret = null; try { Type t = this.getField(10, 0); ret = (NM)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 * FT1-11: "Transaction Amount - Extended" - creates it if necessary */ public CP getTransactionAmountExtended() { CP ret = null; try { Type t = this.getField(11, 0); ret = (CP)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 * FT1-11: "Transaction Amount - Extended" - creates it if necessary */ public CP getFt111_TransactionAmountExtended() { CP ret = null; try { Type t = this.getField(11, 0); ret = (CP)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 * FT1-12: "Transaction Amount - Unit" - creates it if necessary */ public CP getTransactionAmountUnit() { CP ret = null; try { Type t = this.getField(12, 0); ret = (CP)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 * FT1-12: "Transaction Amount - Unit" - creates it if necessary */ public CP getFt112_TransactionAmountUnit() { CP ret = null; try { Type t = this.getField(12, 0); ret = (CP)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 * FT1-13: "Department Code" - creates it if necessary */ public CE getDepartmentCode() { CE ret = null; try { Type t = this.getField(13, 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 * FT1-13: "Department Code" - creates it if necessary */ public CE getFt113_DepartmentCode() { CE ret = null; try { Type t = this.getField(13, 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 * FT1-14: "Insurance Plan ID" - creates it if necessary */ public CE getInsurancePlanID() { CE ret = null; try { Type t = this.getField(14, 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 * FT1-14: "Insurance Plan ID" - creates it if necessary */ public CE getFt114_InsurancePlanID() { CE ret = null; try { Type t = this.getField(14, 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 * FT1-15: "Insurance Amount" - creates it if necessary */ public CP getInsuranceAmount() { CP ret = null; try { Type t = this.getField(15, 0); ret = (CP)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 * FT1-15: "Insurance Amount" - creates it if necessary */ public CP getFt115_InsuranceAmount() { CP ret = null; try { Type t = this.getField(15, 0); ret = (CP)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 * FT1-16: "Assigned Patient Location" - creates it if necessary */ public PL getAssignedPatientLocation() { PL ret = null; try { Type t = this.getField(16, 0); ret = (PL)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 * FT1-16: "Assigned Patient Location" - creates it if necessary */ public PL getFt116_AssignedPatientLocation() { PL ret = null; try { Type t = this.getField(16, 0); ret = (PL)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 * FT1-17: "Fee Schedule" - creates it if necessary */ public IS getFeeSchedule() { IS ret = null; try { Type t = this.getField(17, 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 * FT1-17: "Fee Schedule" - creates it if necessary */ public IS getFt117_FeeSchedule() { IS ret = null; try { Type t = this.getField(17, 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 * FT1-18: "Patient Type" - creates it if necessary */ public IS getPatientType() { IS ret = null; try { Type t = this.getField(18, 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 * FT1-18: "Patient Type" - creates it if necessary */ public IS getFt118_PatientType() { IS ret = null; try { Type t = this.getField(18, 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 Diagnosis Code - FT1 (FT1-19). */ public CE[] getDiagnosisCodeFT1() { CE[] ret = null; try { Type[] t = this.getField(19); ret = new CE[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (CE)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 Diagnosis Code - FT1 (FT1-19). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getDiagnosisCodeFT1Reps() { CE[] 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 * FT1-19: "Diagnosis Code - FT1" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CE getDiagnosisCodeFT1(int rep) { CE ret = null; try { Type t = this.getField(19, rep); 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 a specific repetition of * FT1-19: "Diagnosis Code - FT1" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CE getFt119_DiagnosisCodeFT1(int rep) { CE ret = null; try { Type t = this.getField(19, rep); 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 a count of the current number of repetitions of Diagnosis Code - FT1 (FT1-19). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getFt119_DiagnosisCodeFT1Reps() { CE[] 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 * FT1-19: "Diagnosis Code - FT1" 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 CE insertDiagnosisCodeFT1(int rep) throws HL7Exception { return (CE) super.insertRepetition(19, rep); } /** * Inserts a repetition of * FT1-19: "Diagnosis Code - FT1" 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 CE insertFt119_DiagnosisCodeFT1(int rep) throws HL7Exception { return (CE) super.insertRepetition(19, rep); } /** * Removes a repetition of * FT1-19: "Diagnosis Code - FT1" 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 CE removeDiagnosisCodeFT1(int rep) throws HL7Exception { return (CE) super.removeRepetition(19, rep); } /** * Removes a repetition of * FT1-19: "Diagnosis Code - FT1" 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 CE removeFt119_DiagnosisCodeFT1(int rep) throws HL7Exception { return (CE) super.removeRepetition(19, rep); } /** * Returns all repetitions of Performed By Code (FT1-20). */ public XCN[] getPerformedByCode() { XCN[] ret = null; try { Type[] t = this.getField(20); 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 Performed By Code (FT1-20). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getPerformedByCodeReps() { XCN[] 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 * FT1-20: "Performed By Code" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XCN getPerformedByCode(int rep) { XCN ret = null; try { Type t = this.getField(20, 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 * FT1-20: "Performed By Code" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XCN getFt120_PerformedByCode(int rep) { XCN ret = null; try { Type t = this.getField(20, 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 Performed By Code (FT1-20). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getFt120_PerformedByCodeReps() { XCN[] 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 * FT1-20: "Performed By Code" 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 insertPerformedByCode(int rep) throws HL7Exception { return (XCN) super.insertRepetition(20, rep); } /** * Inserts a repetition of * FT1-20: "Performed By Code" 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 insertFt120_PerformedByCode(int rep) throws HL7Exception { return (XCN) super.insertRepetition(20, rep); } /** * Removes a repetition of * FT1-20: "Performed By Code" 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 removePerformedByCode(int rep) throws HL7Exception { return (XCN) super.removeRepetition(20, rep); } /** * Removes a repetition of * FT1-20: "Performed By Code" 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 removeFt120_PerformedByCode(int rep) throws HL7Exception { return (XCN) super.removeRepetition(20, rep); } /** * Returns all repetitions of Ordered By Code (FT1-21). */ public XCN[] getOrderedByCode() { XCN[] ret = null; try { Type[] t = this.getField(21); 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 Ordered By Code (FT1-21). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getOrderedByCodeReps() { XCN[] ret = null; try { Type[] t = this.getField(21); 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 * FT1-21: "Ordered By Code" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XCN getOrderedByCode(int rep) { XCN ret = null; try { Type t = this.getField(21, 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 * FT1-21: "Ordered By Code" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XCN getFt121_OrderedByCode(int rep) { XCN ret = null; try { Type t = this.getField(21, 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 Ordered By Code (FT1-21). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getFt121_OrderedByCodeReps() { XCN[] ret = null; try { Type[] t = this.getField(21); 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 * FT1-21: "Ordered By Code" 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 insertOrderedByCode(int rep) throws HL7Exception { return (XCN) super.insertRepetition(21, rep); } /** * Inserts a repetition of * FT1-21: "Ordered By Code" 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 insertFt121_OrderedByCode(int rep) throws HL7Exception { return (XCN) super.insertRepetition(21, rep); } /** * Removes a repetition of * FT1-21: "Ordered By Code" 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 removeOrderedByCode(int rep) throws HL7Exception { return (XCN) super.removeRepetition(21, rep); } /** * Removes a repetition of * FT1-21: "Ordered By Code" 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 removeFt121_OrderedByCode(int rep) throws HL7Exception { return (XCN) super.removeRepetition(21, rep); } /** * Returns * FT1-22: "Unit Cost" - creates it if necessary */ public CP getUnitCost() { CP ret = null; try { Type t = this.getField(22, 0); ret = (CP)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 * FT1-22: "Unit Cost" - creates it if necessary */ public CP getFt122_UnitCost() { CP ret = null; try { Type t = this.getField(22, 0); ret = (CP)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 * FT1-23: "Filler Order Number" - creates it if necessary */ public EI getFillerOrderNumber() { EI ret = null; try { Type t = this.getField(23, 0); ret = (EI)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 * FT1-23: "Filler Order Number" - creates it if necessary */ public EI getFt123_FillerOrderNumber() { EI ret = null; try { Type t = this.getField(23, 0); ret = (EI)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 Entered By Code (FT1-24). */ public XCN[] getEnteredByCode() { XCN[] ret = null; try { Type[] t = this.getField(24); 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 Entered By Code (FT1-24). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getEnteredByCodeReps() { XCN[] 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 * FT1-24: "Entered By Code" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XCN getEnteredByCode(int rep) { XCN ret = null; try { Type t = this.getField(24, 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 * FT1-24: "Entered By Code" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XCN getFt124_EnteredByCode(int rep) { XCN ret = null; try { Type t = this.getField(24, 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 Entered By Code (FT1-24). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getFt124_EnteredByCodeReps() { XCN[] 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 * FT1-24: "Entered By Code" 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 insertEnteredByCode(int rep) throws HL7Exception { return (XCN) super.insertRepetition(24, rep); } /** * Inserts a repetition of * FT1-24: "Entered By Code" 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 insertFt124_EnteredByCode(int rep) throws HL7Exception { return (XCN) super.insertRepetition(24, rep); } /** * Removes a repetition of * FT1-24: "Entered By Code" 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 removeEnteredByCode(int rep) throws HL7Exception { return (XCN) super.removeRepetition(24, rep); } /** * Removes a repetition of * FT1-24: "Entered By Code" 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 removeFt124_EnteredByCode(int rep) throws HL7Exception { return (XCN) super.removeRepetition(24, rep); } /** * Returns * FT1-25: "Procedure Code" - creates it if necessary */ public CE getProcedureCode() { CE ret = null; try { Type t = this.getField(25, 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 * FT1-25: "Procedure Code" - creates it if necessary */ public CE getFt125_ProcedureCode() { CE ret = null; try { Type t = this.getField(25, 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 Procedure Code Modifier (FT1-26). */ public CE[] getProcedureCodeModifier() { CE[] ret = null; try { Type[] t = this.getField(26); ret = new CE[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (CE)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 Procedure Code Modifier (FT1-26). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getProcedureCodeModifierReps() { CE[] ret = null; try { Type[] t = this.getField(26); 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 * FT1-26: "Procedure Code Modifier" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CE getProcedureCodeModifier(int rep) { CE ret = null; try { Type t = this.getField(26, rep); 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 a specific repetition of * FT1-26: "Procedure Code Modifier" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public CE getFt126_ProcedureCodeModifier(int rep) { CE ret = null; try { Type t = this.getField(26, rep); 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 a count of the current number of repetitions of Procedure Code Modifier (FT1-26). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getFt126_ProcedureCodeModifierReps() { CE[] ret = null; try { Type[] t = this.getField(26); 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 * FT1-26: "Procedure Code Modifier" 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 CE insertProcedureCodeModifier(int rep) throws HL7Exception { return (CE) super.insertRepetition(26, rep); } /** * Inserts a repetition of * FT1-26: "Procedure Code Modifier" 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 CE insertFt126_ProcedureCodeModifier(int rep) throws HL7Exception { return (CE) super.insertRepetition(26, rep); } /** * Removes a repetition of * FT1-26: "Procedure Code Modifier" 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 CE removeProcedureCodeModifier(int rep) throws HL7Exception { return (CE) super.removeRepetition(26, rep); } /** * Removes a repetition of * FT1-26: "Procedure Code Modifier" 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 CE removeFt126_ProcedureCodeModifier(int rep) throws HL7Exception { return (CE) super.removeRepetition(26, rep); } /** * Returns * FT1-27: "Advanced Beneficiary Notice Code" - creates it if necessary */ public CE getAdvancedBeneficiaryNoticeCode() { CE ret = null; try { Type t = this.getField(27, 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 * FT1-27: "Advanced Beneficiary Notice Code" - creates it if necessary */ public CE getFt127_AdvancedBeneficiaryNoticeCode() { CE ret = null; try { Type t = this.getField(27, 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 * FT1-28: "Medically Necessary Duplicate Procedure Reason." - creates it if necessary */ public CWE getMedicallyNecessaryDuplicateProcedureReason() { CWE ret = null; try { Type t = this.getField(28, 0); ret = (CWE)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 * FT1-28: "Medically Necessary Duplicate Procedure Reason." - creates it if necessary */ public CWE getFt128_MedicallyNecessaryDuplicateProcedureReason() { CWE ret = null; try { Type t = this.getField(28, 0); ret = (CWE)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 * FT1-29: "NDC Code" - creates it if necessary */ public CNE getNDCCode() { CNE ret = null; try { Type t = this.getField(29, 0); ret = (CNE)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 * FT1-29: "NDC Code" - creates it if necessary */ public CNE getFt129_NDCCode() { CNE ret = null; try { Type t = this.getField(29, 0); ret = (CNE)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 * FT1-30: "Payment Reference ID" - creates it if necessary */ public CX getPaymentReferenceID() { CX ret = null; try { Type t = this.getField(30, 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 * FT1-30: "Payment Reference ID" - creates it if necessary */ public CX getFt130_PaymentReferenceID() { CX ret = null; try { Type t = this.getField(30, 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 Transaction Reference Key (FT1-31). */ public SI[] getTransactionReferenceKey() { SI[] ret = null; try { Type[] t = this.getField(31); ret = new SI[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (SI)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 Transaction Reference Key (FT1-31). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getTransactionReferenceKeyReps() { SI[] ret = null; try { Type[] t = this.getField(31); 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 * FT1-31: "Transaction Reference Key" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public SI getTransactionReferenceKey(int rep) { SI ret = null; try { Type t = this.getField(31, rep); 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 a specific repetition of * FT1-31: "Transaction Reference Key" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public SI getFt131_TransactionReferenceKey(int rep) { SI ret = null; try { Type t = this.getField(31, rep); 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 a count of the current number of repetitions of Transaction Reference Key (FT1-31). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getFt131_TransactionReferenceKeyReps() { SI[] ret = null; try { Type[] t = this.getField(31); 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 * FT1-31: "Transaction Reference Key" 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 SI insertTransactionReferenceKey(int rep) throws HL7Exception { return (SI) super.insertRepetition(31, rep); } /** * Inserts a repetition of * FT1-31: "Transaction Reference Key" 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 SI insertFt131_TransactionReferenceKey(int rep) throws HL7Exception { return (SI) super.insertRepetition(31, rep); } /** * Removes a repetition of * FT1-31: "Transaction Reference Key" 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 SI removeTransactionReferenceKey(int rep) throws HL7Exception { return (SI) super.removeRepetition(31, rep); } /** * Removes a repetition of * FT1-31: "Transaction Reference Key" 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 SI removeFt131_TransactionReferenceKey(int rep) throws HL7Exception { return (SI) super.removeRepetition(31, rep); } /** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new SI(getMessage()); case 1: return new ST(getMessage()); case 2: return new ST(getMessage()); case 3: return new DR(getMessage()); case 4: return new TS(getMessage()); case 5: return new IS(getMessage(), new Integer( 17 )); case 6: return new CE(getMessage()); case 7: return new ST(getMessage()); case 8: return new ST(getMessage()); case 9: return new NM(getMessage()); case 10: return new CP(getMessage()); case 11: return new CP(getMessage()); case 12: return new CE(getMessage()); case 13: return new CE(getMessage()); case 14: return new CP(getMessage()); case 15: return new PL(getMessage()); case 16: return new IS(getMessage(), new Integer( 24 )); case 17: return new IS(getMessage(), new Integer( 18 )); case 18: return new CE(getMessage()); case 19: return new XCN(getMessage()); case 20: return new XCN(getMessage()); case 21: return new CP(getMessage()); case 22: return new EI(getMessage()); case 23: return new XCN(getMessage()); case 24: return new CE(getMessage()); case 25: return new CE(getMessage()); case 26: return new CE(getMessage()); case 27: return new CWE(getMessage()); case 28: return new CNE(getMessage()); case 29: return new CX(getMessage()); case 30: return new SI(getMessage()); default: return null; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy