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

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

There is a newer version: 2.5.1
Show newest version
/*
 * This class is an auto-generated source file for a HAPI
 * HL7 v2.x standard structure class.
 *
 * For more information, visit: http://hl7api.sourceforge.net/
 * 
 * The contents of this file are subject to the Mozilla Public License Version 1.1 
 * (the "License"); you may not use this file except in compliance with the License. 
 * You may obtain a copy of the License at http://www.mozilla.org/MPL/ 
 * Software distributed under the License is distributed on an "AS IS" basis, 
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the 
 * specific language governing rights and limitations under the License. 
 * 
 * The Original Code is "[file_name]".  Description: 
 * "[one_line_description]" 
 * 
 * The Initial Developer of the Original Code is University Health Network. Copyright (C) 
 * 2002.  All Rights Reserved. 
 * 
 * Contributor(s): ______________________________________. 
 * 
 * Alternatively, the contents of this file may be used under the terms of the 
 * GNU General Public License (the  "GPL"), in which case the provisions of the GPL are 
 * applicable instead of those above.  If you wish to allow use of your version of this 
 * file only under the terms of the GPL and not to allow others to use your version 
 * of this file under the MPL, indicate your decision by deleting  the provisions above 
 * and replace  them with the notice and other provisions required by the GPL License.  
 * If you do not delete the provisions above, a recipient may use your version of 
 * this file under either the MPL or the GPL. 
 * 
 */


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

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

// import ca.uhn.hl7v2.model.v24.group.*;
import ca.uhn.hl7v2.model.v24.datatype.*;
import ca.uhn.hl7v2.HL7Exception;
import ca.uhn.hl7v2.parser.ModelClassFactory;
import ca.uhn.hl7v2.parser.DefaultModelClassFactory;
import ca.uhn.hl7v2.model.AbstractMessage;
import ca.uhn.hl7v2.model.Group;
import ca.uhn.hl7v2.model.Type;
import ca.uhn.hl7v2.model.AbstractSegment;
import ca.uhn.hl7v2.model.Varies;

/**
 *

Represents an HL7 TXA message segment (Transcription Document Header). * This segment has the following fields:

*
    *
  • TXA-1: Set ID- TXA (SI) *
  • TXA-2: Document Type (IS) *
  • TXA-3: Document Content Presentation (ID) optional *
  • TXA-4: Activity Date/Time (TS) optional *
  • TXA-5: Primary Activity Provider Code/Name (XCN) optional repeating *
  • TXA-6: Origination Date/Time (TS) optional *
  • TXA-7: Transcription Date/Time (TS) optional *
  • TXA-8: Edit Date/Time (TS) optional repeating *
  • TXA-9: Originator Code/Name (XCN) optional repeating *
  • TXA-10: Assigned Document Authenticator (XCN) optional repeating *
  • TXA-11: Transcriptionist Code/Name (XCN) optional repeating *
  • TXA-12: Unique Document Number (EI) *
  • TXA-13: Parent Document Number (EI) optional *
  • TXA-14: Placer Order Number (EI) optional repeating *
  • TXA-15: Filler Order Number (EI) optional *
  • TXA-16: Unique Document File Name (ST) optional *
  • TXA-17: Document Completion Status (ID) *
  • TXA-18: Document Confidentiality Status (ID) optional *
  • TXA-19: Document Availability Status (ID) optional *
  • TXA-20: Document Storage Status (ID) optional *
  • TXA-21: Document Change Reason (ST) optional *
  • TXA-22: Authentication Person, Time Stamp (PPN) optional repeating *
  • TXA-23: Distributed Copies (Code and Name of Recipients) (XCN) optional repeating *
*/ @SuppressWarnings("unused") public class TXA extends AbstractSegment { /** * Creates a new TXA segment */ public TXA(Group parent, ModelClassFactory factory) { super(parent, factory); init(factory); } private void init(ModelClassFactory factory) { try { this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "Set ID- TXA"); this.add(IS.class, true, 1, 30, new Object[]{ getMessage(), new Integer(270) }, "Document Type"); this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(191) }, "Document Content Presentation"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Activity Date/Time"); this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Primary Activity Provider Code/Name"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Origination Date/Time"); this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Transcription Date/Time"); this.add(TS.class, false, 0, 26, new Object[]{ getMessage() }, "Edit Date/Time"); this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Originator Code/Name"); this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Assigned Document Authenticator"); this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Transcriptionist Code/Name"); this.add(EI.class, true, 1, 30, new Object[]{ getMessage() }, "Unique Document Number"); this.add(EI.class, false, 1, 30, new Object[]{ getMessage() }, "Parent Document Number"); this.add(EI.class, false, 0, 22, new Object[]{ getMessage() }, "Placer Order Number"); this.add(EI.class, false, 1, 22, new Object[]{ getMessage() }, "Filler Order Number"); this.add(ST.class, false, 1, 30, new Object[]{ getMessage() }, "Unique Document File Name"); this.add(ID.class, true, 1, 2, new Object[]{ getMessage(), new Integer(271) }, "Document Completion Status"); this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(272) }, "Document Confidentiality Status"); this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(273) }, "Document Availability Status"); this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(275) }, "Document Storage Status"); this.add(ST.class, false, 1, 30, new Object[]{ getMessage() }, "Document Change Reason"); this.add(PPN.class, false, 0, 250, new Object[]{ getMessage() }, "Authentication Person, Time Stamp"); this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Distributed Copies (Code and Name of Recipients)"); } catch(HL7Exception e) { LoggerFactory.getLogger(getClass()).error("Unexpected error creating TXA - this is probably a bug in the source code generator.", e); } } /** * Returns * TXA-1: "Set ID- TXA" - creates it if necessary */ public SI getSetIDTXA() { SI ret = null; try { Type t = this.getField(1, 0); ret = (SI)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * TXA-1: "Set ID- TXA" - creates it if necessary */ public SI getTxa1_SetIDTXA() { SI ret = null; try { Type t = this.getField(1, 0); ret = (SI)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * TXA-2: "Document Type" - creates it if necessary */ public IS getDocumentType() { IS ret = null; try { Type t = this.getField(2, 0); ret = (IS)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * TXA-2: "Document Type" - creates it if necessary */ public IS getTxa2_DocumentType() { IS ret = null; try { Type t = this.getField(2, 0); ret = (IS)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * TXA-3: "Document Content Presentation" - creates it if necessary */ public ID getDocumentContentPresentation() { ID ret = null; try { Type t = this.getField(3, 0); ret = (ID)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * TXA-3: "Document Content Presentation" - creates it if necessary */ public ID getTxa3_DocumentContentPresentation() { ID ret = null; try { Type t = this.getField(3, 0); ret = (ID)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * TXA-4: "Activity Date/Time" - creates it if necessary */ public TS getActivityDateTime() { TS ret = null; try { Type t = this.getField(4, 0); ret = (TS)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * TXA-4: "Activity Date/Time" - creates it if necessary */ public TS getTxa4_ActivityDateTime() { TS ret = null; try { Type t = this.getField(4, 0); ret = (TS)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns all repetitions of Primary Activity Provider Code/Name (TXA-5). */ public XCN[] getPrimaryActivityProviderCodeName() { XCN[] ret = null; try { Type[] t = this.getField(5); ret = new XCN[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (XCN)t[i]; } } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Primary Activity Provider Code/Name (TXA-5). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getPrimaryActivityProviderCodeNameReps() { XCN[] ret = null; try { Type[] t = this.getField(5); return t.length; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * TXA-5: "Primary Activity Provider Code/Name" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XCN getPrimaryActivityProviderCodeName(int rep) { XCN ret = null; try { Type t = this.getField(5, rep); ret = (XCN)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * TXA-5: "Primary Activity Provider Code/Name" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XCN getTxa5_PrimaryActivityProviderCodeName(int rep) { XCN ret = null; try { Type t = this.getField(5, rep); ret = (XCN)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Primary Activity Provider Code/Name (TXA-5). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getTxa5_PrimaryActivityProviderCodeNameReps() { XCN[] ret = null; try { Type[] t = this.getField(5); return t.length; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * TXA-5: "Primary Activity Provider Code/Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XCN insertPrimaryActivityProviderCodeName(int rep) throws HL7Exception { return (XCN) super.insertRepetition(5, rep); } /** * Inserts a repetition of * TXA-5: "Primary Activity Provider Code/Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XCN insertTxa5_PrimaryActivityProviderCodeName(int rep) throws HL7Exception { return (XCN) super.insertRepetition(5, rep); } /** * Removes a repetition of * TXA-5: "Primary Activity Provider Code/Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XCN removePrimaryActivityProviderCodeName(int rep) throws HL7Exception { return (XCN) super.removeRepetition(5, rep); } /** * Removes a repetition of * TXA-5: "Primary Activity Provider Code/Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XCN removeTxa5_PrimaryActivityProviderCodeName(int rep) throws HL7Exception { return (XCN) super.removeRepetition(5, rep); } /** * Returns * TXA-6: "Origination Date/Time" - creates it if necessary */ public TS getOriginationDateTime() { TS ret = null; try { Type t = this.getField(6, 0); ret = (TS)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * TXA-6: "Origination Date/Time" - creates it if necessary */ public TS getTxa6_OriginationDateTime() { TS ret = null; try { Type t = this.getField(6, 0); ret = (TS)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * TXA-7: "Transcription Date/Time" - creates it if necessary */ public TS getTranscriptionDateTime() { TS ret = null; try { Type t = this.getField(7, 0); ret = (TS)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * TXA-7: "Transcription Date/Time" - creates it if necessary */ public TS getTxa7_TranscriptionDateTime() { TS ret = null; try { Type t = this.getField(7, 0); ret = (TS)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns all repetitions of Edit Date/Time (TXA-8). */ public TS[] getEditDateTime() { TS[] ret = null; try { Type[] t = this.getField(8); ret = new TS[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (TS)t[i]; } } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Edit Date/Time (TXA-8). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getEditDateTimeReps() { TS[] ret = null; try { Type[] t = this.getField(8); return t.length; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * TXA-8: "Edit Date/Time" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public TS getEditDateTime(int rep) { TS ret = null; try { Type t = this.getField(8, rep); ret = (TS)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * TXA-8: "Edit Date/Time" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public TS getTxa8_EditDateTime(int rep) { TS ret = null; try { Type t = this.getField(8, rep); ret = (TS)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Edit Date/Time (TXA-8). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getTxa8_EditDateTimeReps() { TS[] ret = null; try { Type[] t = this.getField(8); return t.length; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * TXA-8: "Edit Date/Time" 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 TS insertEditDateTime(int rep) throws HL7Exception { return (TS) super.insertRepetition(8, rep); } /** * Inserts a repetition of * TXA-8: "Edit Date/Time" 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 TS insertTxa8_EditDateTime(int rep) throws HL7Exception { return (TS) super.insertRepetition(8, rep); } /** * Removes a repetition of * TXA-8: "Edit Date/Time" 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 TS removeEditDateTime(int rep) throws HL7Exception { return (TS) super.removeRepetition(8, rep); } /** * Removes a repetition of * TXA-8: "Edit Date/Time" 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 TS removeTxa8_EditDateTime(int rep) throws HL7Exception { return (TS) super.removeRepetition(8, rep); } /** * Returns all repetitions of Originator Code/Name (TXA-9). */ public XCN[] getOriginatorCodeName() { XCN[] ret = null; try { Type[] t = this.getField(9); ret = new XCN[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (XCN)t[i]; } } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Originator Code/Name (TXA-9). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getOriginatorCodeNameReps() { XCN[] ret = null; try { Type[] t = this.getField(9); return t.length; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * TXA-9: "Originator Code/Name" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XCN getOriginatorCodeName(int rep) { XCN ret = null; try { Type t = this.getField(9, rep); ret = (XCN)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * TXA-9: "Originator Code/Name" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XCN getTxa9_OriginatorCodeName(int rep) { XCN ret = null; try { Type t = this.getField(9, rep); ret = (XCN)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Originator Code/Name (TXA-9). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getTxa9_OriginatorCodeNameReps() { XCN[] ret = null; try { Type[] t = this.getField(9); return t.length; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * TXA-9: "Originator Code/Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XCN insertOriginatorCodeName(int rep) throws HL7Exception { return (XCN) super.insertRepetition(9, rep); } /** * Inserts a repetition of * TXA-9: "Originator Code/Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XCN insertTxa9_OriginatorCodeName(int rep) throws HL7Exception { return (XCN) super.insertRepetition(9, rep); } /** * Removes a repetition of * TXA-9: "Originator Code/Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XCN removeOriginatorCodeName(int rep) throws HL7Exception { return (XCN) super.removeRepetition(9, rep); } /** * Removes a repetition of * TXA-9: "Originator Code/Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XCN removeTxa9_OriginatorCodeName(int rep) throws HL7Exception { return (XCN) super.removeRepetition(9, rep); } /** * Returns all repetitions of Assigned Document Authenticator (TXA-10). */ public XCN[] getAssignedDocumentAuthenticator() { XCN[] ret = null; try { Type[] t = this.getField(10); ret = new XCN[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (XCN)t[i]; } } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Assigned Document Authenticator (TXA-10). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getAssignedDocumentAuthenticatorReps() { XCN[] ret = null; try { Type[] t = this.getField(10); return t.length; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * TXA-10: "Assigned Document Authenticator" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XCN getAssignedDocumentAuthenticator(int rep) { XCN ret = null; try { Type t = this.getField(10, rep); ret = (XCN)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * TXA-10: "Assigned Document Authenticator" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XCN getTxa10_AssignedDocumentAuthenticator(int rep) { XCN ret = null; try { Type t = this.getField(10, rep); ret = (XCN)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Assigned Document Authenticator (TXA-10). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getTxa10_AssignedDocumentAuthenticatorReps() { XCN[] ret = null; try { Type[] t = this.getField(10); return t.length; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * TXA-10: "Assigned Document Authenticator" 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 insertAssignedDocumentAuthenticator(int rep) throws HL7Exception { return (XCN) super.insertRepetition(10, rep); } /** * Inserts a repetition of * TXA-10: "Assigned Document Authenticator" 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 insertTxa10_AssignedDocumentAuthenticator(int rep) throws HL7Exception { return (XCN) super.insertRepetition(10, rep); } /** * Removes a repetition of * TXA-10: "Assigned Document Authenticator" 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 removeAssignedDocumentAuthenticator(int rep) throws HL7Exception { return (XCN) super.removeRepetition(10, rep); } /** * Removes a repetition of * TXA-10: "Assigned Document Authenticator" 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 removeTxa10_AssignedDocumentAuthenticator(int rep) throws HL7Exception { return (XCN) super.removeRepetition(10, rep); } /** * Returns all repetitions of Transcriptionist Code/Name (TXA-11). */ public XCN[] getTranscriptionistCodeName() { XCN[] ret = null; try { Type[] t = this.getField(11); ret = new XCN[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (XCN)t[i]; } } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Transcriptionist Code/Name (TXA-11). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getTranscriptionistCodeNameReps() { XCN[] ret = null; try { Type[] t = this.getField(11); return t.length; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * TXA-11: "Transcriptionist Code/Name" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XCN getTranscriptionistCodeName(int rep) { XCN ret = null; try { Type t = this.getField(11, rep); ret = (XCN)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * TXA-11: "Transcriptionist Code/Name" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XCN getTxa11_TranscriptionistCodeName(int rep) { XCN ret = null; try { Type t = this.getField(11, rep); ret = (XCN)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Transcriptionist Code/Name (TXA-11). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getTxa11_TranscriptionistCodeNameReps() { XCN[] ret = null; try { Type[] t = this.getField(11); return t.length; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * TXA-11: "Transcriptionist Code/Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XCN insertTranscriptionistCodeName(int rep) throws HL7Exception { return (XCN) super.insertRepetition(11, rep); } /** * Inserts a repetition of * TXA-11: "Transcriptionist Code/Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XCN insertTxa11_TranscriptionistCodeName(int rep) throws HL7Exception { return (XCN) super.insertRepetition(11, rep); } /** * Removes a repetition of * TXA-11: "Transcriptionist Code/Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XCN removeTranscriptionistCodeName(int rep) throws HL7Exception { return (XCN) super.removeRepetition(11, rep); } /** * Removes a repetition of * TXA-11: "Transcriptionist Code/Name" at a specific index * * @param rep The repetition index (0-indexed) * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) */ public XCN removeTxa11_TranscriptionistCodeName(int rep) throws HL7Exception { return (XCN) super.removeRepetition(11, rep); } /** * Returns * TXA-12: "Unique Document Number" - creates it if necessary */ public EI getUniqueDocumentNumber() { EI ret = null; try { Type t = this.getField(12, 0); ret = (EI)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * TXA-12: "Unique Document Number" - creates it if necessary */ public EI getTxa12_UniqueDocumentNumber() { EI ret = null; try { Type t = this.getField(12, 0); ret = (EI)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * TXA-13: "Parent Document Number" - creates it if necessary */ public EI getParentDocumentNumber() { EI ret = null; try { Type t = this.getField(13, 0); ret = (EI)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * TXA-13: "Parent Document Number" - creates it if necessary */ public EI getTxa13_ParentDocumentNumber() { EI ret = null; try { Type t = this.getField(13, 0); ret = (EI)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns all repetitions of Placer Order Number (TXA-14). */ public EI[] getPlacerOrderNumber() { EI[] ret = null; try { Type[] t = this.getField(14); ret = new EI[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (EI)t[i]; } } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Placer Order Number (TXA-14). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getPlacerOrderNumberReps() { EI[] ret = null; try { Type[] t = this.getField(14); return t.length; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * TXA-14: "Placer Order Number" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public EI getPlacerOrderNumber(int rep) { EI ret = null; try { Type t = this.getField(14, rep); ret = (EI)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * TXA-14: "Placer Order Number" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public EI getTxa14_PlacerOrderNumber(int rep) { EI ret = null; try { Type t = this.getField(14, rep); ret = (EI)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Placer Order Number (TXA-14). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getTxa14_PlacerOrderNumberReps() { EI[] ret = null; try { Type[] t = this.getField(14); return t.length; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * TXA-14: "Placer Order 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 EI insertPlacerOrderNumber(int rep) throws HL7Exception { return (EI) super.insertRepetition(14, rep); } /** * Inserts a repetition of * TXA-14: "Placer Order 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 EI insertTxa14_PlacerOrderNumber(int rep) throws HL7Exception { return (EI) super.insertRepetition(14, rep); } /** * Removes a repetition of * TXA-14: "Placer Order 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 EI removePlacerOrderNumber(int rep) throws HL7Exception { return (EI) super.removeRepetition(14, rep); } /** * Removes a repetition of * TXA-14: "Placer Order 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 EI removeTxa14_PlacerOrderNumber(int rep) throws HL7Exception { return (EI) super.removeRepetition(14, rep); } /** * Returns * TXA-15: "Filler Order Number" - creates it if necessary */ public EI getFillerOrderNumber() { EI ret = null; try { Type t = this.getField(15, 0); ret = (EI)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * TXA-15: "Filler Order Number" - creates it if necessary */ public EI getTxa15_FillerOrderNumber() { EI ret = null; try { Type t = this.getField(15, 0); ret = (EI)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * TXA-16: "Unique Document File Name" - creates it if necessary */ public ST getUniqueDocumentFileName() { ST ret = null; try { Type t = this.getField(16, 0); ret = (ST)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * TXA-16: "Unique Document File Name" - creates it if necessary */ public ST getTxa16_UniqueDocumentFileName() { ST ret = null; try { Type t = this.getField(16, 0); ret = (ST)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * TXA-17: "Document Completion Status" - creates it if necessary */ public ID getDocumentCompletionStatus() { ID ret = null; try { Type t = this.getField(17, 0); ret = (ID)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * TXA-17: "Document Completion Status" - creates it if necessary */ public ID getTxa17_DocumentCompletionStatus() { ID ret = null; try { Type t = this.getField(17, 0); ret = (ID)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * TXA-18: "Document Confidentiality Status" - creates it if necessary */ public ID getDocumentConfidentialityStatus() { ID ret = null; try { Type t = this.getField(18, 0); ret = (ID)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * TXA-18: "Document Confidentiality Status" - creates it if necessary */ public ID getTxa18_DocumentConfidentialityStatus() { ID ret = null; try { Type t = this.getField(18, 0); ret = (ID)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * TXA-19: "Document Availability Status" - creates it if necessary */ public ID getDocumentAvailabilityStatus() { ID ret = null; try { Type t = this.getField(19, 0); ret = (ID)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * TXA-19: "Document Availability Status" - creates it if necessary */ public ID getTxa19_DocumentAvailabilityStatus() { ID ret = null; try { Type t = this.getField(19, 0); ret = (ID)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * TXA-20: "Document Storage Status" - creates it if necessary */ public ID getDocumentStorageStatus() { ID ret = null; try { Type t = this.getField(20, 0); ret = (ID)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * TXA-20: "Document Storage Status" - creates it if necessary */ public ID getTxa20_DocumentStorageStatus() { ID ret = null; try { Type t = this.getField(20, 0); ret = (ID)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * TXA-21: "Document Change Reason" - creates it if necessary */ public ST getDocumentChangeReason() { ST ret = null; try { Type t = this.getField(21, 0); ret = (ST)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns * TXA-21: "Document Change Reason" - creates it if necessary */ public ST getTxa21_DocumentChangeReason() { ST ret = null; try { Type t = this.getField(21, 0); ret = (ST)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns all repetitions of Authentication Person, Time Stamp (TXA-22). */ public PPN[] getAuthenticationPersonTimeStamp() { PPN[] ret = null; try { Type[] t = this.getField(22); ret = new PPN[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (PPN)t[i]; } } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Authentication Person, Time Stamp (TXA-22). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getAuthenticationPersonTimeStampReps() { PPN[] ret = null; try { Type[] t = this.getField(22); return t.length; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * TXA-22: "Authentication Person, Time Stamp" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public PPN getAuthenticationPersonTimeStamp(int rep) { PPN ret = null; try { Type t = this.getField(22, rep); ret = (PPN)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * TXA-22: "Authentication Person, Time Stamp" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public PPN getTxa22_AuthenticationPersonTimeStamp(int rep) { PPN ret = null; try { Type t = this.getField(22, rep); ret = (PPN)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Authentication Person, Time Stamp (TXA-22). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getTxa22_AuthenticationPersonTimeStampReps() { PPN[] ret = null; try { Type[] t = this.getField(22); return t.length; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * TXA-22: "Authentication Person, Time Stamp" 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 PPN insertAuthenticationPersonTimeStamp(int rep) throws HL7Exception { return (PPN) super.insertRepetition(22, rep); } /** * Inserts a repetition of * TXA-22: "Authentication Person, Time Stamp" 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 PPN insertTxa22_AuthenticationPersonTimeStamp(int rep) throws HL7Exception { return (PPN) super.insertRepetition(22, rep); } /** * Removes a repetition of * TXA-22: "Authentication Person, Time Stamp" 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 PPN removeAuthenticationPersonTimeStamp(int rep) throws HL7Exception { return (PPN) super.removeRepetition(22, rep); } /** * Removes a repetition of * TXA-22: "Authentication Person, Time Stamp" 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 PPN removeTxa22_AuthenticationPersonTimeStamp(int rep) throws HL7Exception { return (PPN) super.removeRepetition(22, rep); } /** * Returns all repetitions of Distributed Copies (Code and Name of Recipients) (TXA-23). */ public XCN[] getDistributedCopiesCodeandNameofRecipients() { XCN[] ret = null; try { Type[] t = this.getField(23); ret = new XCN[t.length]; for (int i = 0; i < ret.length; i++) { ret[i] = (XCN)t[i]; } } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Distributed Copies (Code and Name of Recipients) (TXA-23). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getDistributedCopiesCodeandNameofRecipientsReps() { XCN[] ret = null; try { Type[] t = this.getField(23); return t.length; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Returns a specific repetition of * TXA-23: "Distributed Copies (Code and Name of Recipients)" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XCN getDistributedCopiesCodeandNameofRecipients(int rep) { XCN ret = null; try { Type t = this.getField(23, rep); ret = (XCN)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a specific repetition of * TXA-23: "Distributed Copies (Code and Name of Recipients)" - creates it if necessary * * @param rep The repetition index (0-indexed) */ public XCN getTxa23_DistributedCopiesCodeandNameofRecipients(int rep) { XCN ret = null; try { Type t = this.getField(23, rep); ret = (XCN)t; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } return ret; } /** * Returns a count of the current number of repetitions of Distributed Copies (Code and Name of Recipients) (TXA-23). * This method does not create a repetition, so if no repetitions have currently been defined or accessed, * it will return zero. */ public int getTxa23_DistributedCopiesCodeandNameofRecipientsReps() { XCN[] ret = null; try { Type[] t = this.getField(23); return t.length; } catch (ClassCastException cce) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce); throw new RuntimeException(cce); } catch (HL7Exception he) { LoggerFactory.getLogger(getClass()).error("Unexpected problem obtaining field value. This is a bug.", he); throw new RuntimeException(he); } } /** * Inserts a repetition of * TXA-23: "Distributed Copies (Code and Name of Recipients)" 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 insertDistributedCopiesCodeandNameofRecipients(int rep) throws HL7Exception { return (XCN) super.insertRepetition(23, rep); } /** * Inserts a repetition of * TXA-23: "Distributed Copies (Code and Name of Recipients)" 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 insertTxa23_DistributedCopiesCodeandNameofRecipients(int rep) throws HL7Exception { return (XCN) super.insertRepetition(23, rep); } /** * Removes a repetition of * TXA-23: "Distributed Copies (Code and Name of Recipients)" 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 removeDistributedCopiesCodeandNameofRecipients(int rep) throws HL7Exception { return (XCN) super.removeRepetition(23, rep); } /** * Removes a repetition of * TXA-23: "Distributed Copies (Code and Name of Recipients)" 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 removeTxa23_DistributedCopiesCodeandNameofRecipients(int rep) throws HL7Exception { return (XCN) super.removeRepetition(23, rep); } /** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new SI(getMessage()); case 1: return new IS(getMessage(), new Integer( 270 )); case 2: return new ID(getMessage(), new Integer( 191 )); case 3: return new TS(getMessage()); case 4: return new XCN(getMessage()); case 5: return new TS(getMessage()); case 6: return new TS(getMessage()); case 7: return new TS(getMessage()); case 8: return new XCN(getMessage()); case 9: return new XCN(getMessage()); case 10: return new XCN(getMessage()); case 11: return new EI(getMessage()); case 12: return new EI(getMessage()); case 13: return new EI(getMessage()); case 14: return new EI(getMessage()); case 15: return new ST(getMessage()); case 16: return new ID(getMessage(), new Integer( 271 )); case 17: return new ID(getMessage(), new Integer( 272 )); case 18: return new ID(getMessage(), new Integer( 273 )); case 19: return new ID(getMessage(), new Integer( 275 )); case 20: return new ST(getMessage()); case 21: return new PPN(getMessage()); case 22: return new XCN(getMessage()); default: return null; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy