ca.uhn.hl7v2.model.v23.segment.TXA Maven / Gradle / Ivy
/*
* 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.v23.segment;
// import ca.uhn.hl7v2.model.v23.group.*;
import ca.uhn.hl7v2.model.v23.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 TXA message segment (Document notification segment).
* 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
*
- 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
*
- TXA-10: Assigned Document Authenticator (XCN) optional repeating
*
- TXA-11: Transcriptionist Code/Name (XCN) optional
*
- 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) repeating
*
- 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
*
*/
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(), new Integer(0) }, "Set ID- TXA");
this.add(IS.class, true, 1, 30, new Object[]{ getMessage() }, "Document Type");
this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "Document Content Presentation");
this.add(TS.class, false, 1, 26, new Object[]{ getMessage(), new Integer(0) }, "Activity Date/Time");
this.add(XCN.class, false, 1, 60, new Object[]{ getMessage(), new Integer(0) }, "Primary Activity Provider Code/Name");
this.add(TS.class, false, 1, 26, new Object[]{ getMessage(), new Integer(0) }, "Origination Date/Time");
this.add(TS.class, false, 1, 26, new Object[]{ getMessage(), new Integer(0) }, "Transcription Date/Time");
this.add(TS.class, false, 0, 26, new Object[]{ getMessage(), new Integer(0) }, "Edit Date/Time");
this.add(XCN.class, false, 1, 60, new Object[]{ getMessage(), new Integer(0) }, "Originator Code/Name");
this.add(XCN.class, false, 0, 60, new Object[]{ getMessage(), new Integer(0) }, "Assigned Document Authenticator");
this.add(XCN.class, false, 1, 48, new Object[]{ getMessage(), new Integer(0) }, "Transcriptionist Code/Name");
this.add(EI.class, true, 1, 30, new Object[]{ getMessage(), new Integer(0) }, "Unique Document Number");
this.add(EI.class, false, 1, 30, new Object[]{ getMessage(), new Integer(0) }, "Parent Document Number");
this.add(EI.class, false, 0, 22, new Object[]{ getMessage(), new Integer(0) }, "Placer Order Number");
this.add(EI.class, false, 1, 22, new Object[]{ getMessage(), new Integer(0) }, "Filler Order Number");
this.add(ST.class, false, 1, 30, new Object[]{ getMessage(), new Integer(0) }, "Unique Document File Name");
this.add(ID.class, true, 0, 2, new Object[]{ getMessage() }, "Document Completion Status");
this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "Document Confidentiality Status");
this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "Document Availability Status");
this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "Document Storage Status");
this.add(ST.class, false, 1, 30, new Object[]{ getMessage(), new Integer(0) }, "Document Change Reason");
this.add(PPN.class, false, 0, 60, new Object[]{ getMessage(), new Integer(0) }, "Authentication Person, Time Stamp");
this.add(XCN.class, false, 0, 60, new Object[]{ getMessage(), new Integer(0) }, "Distributed Copies (Code and Name of Recipients)");
} catch(HL7Exception e) {
HapiLogFactory.getHapiLog(this.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) {
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
* 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) {
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
* 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) {
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
* 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) {
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
* 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) {
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
* 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) {
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
* 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) {
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
* 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) {
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
* TXA-5: "Primary Activity Provider Code/Name" - creates it if necessary
*/
public XCN getPrimaryActivityProviderCodeName() {
XCN ret = null;
try {
Type t = this.getField(5, 0);
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
* TXA-5: "Primary Activity Provider Code/Name" - creates it if necessary
*/
public XCN getTxa5_PrimaryActivityProviderCodeName() {
XCN ret = null;
try {
Type t = this.getField(5, 0);
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
* 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) {
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
* 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) {
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
* 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) {
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
* 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) {
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 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) {
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 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) {
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
* 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) {
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
* 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) {
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 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) {
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
* 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
* TXA-9: "Originator Code/Name" - creates it if necessary
*/
public XCN getOriginatorCodeName() {
XCN ret = null;
try {
Type t = this.getField(9, 0);
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
* TXA-9: "Originator Code/Name" - creates it if necessary
*/
public XCN getTxa9_OriginatorCodeName() {
XCN ret = null;
try {
Type t = this.getField(9, 0);
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 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) {
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 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) {
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
* 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) {
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
* 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) {
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 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) {
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
* 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
* TXA-11: "Transcriptionist Code/Name" - creates it if necessary
*/
public XCN getTranscriptionistCodeName() {
XCN ret = null;
try {
Type t = this.getField(11, 0);
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
* TXA-11: "Transcriptionist Code/Name" - creates it if necessary
*/
public XCN getTxa11_TranscriptionistCodeName() {
XCN ret = null;
try {
Type t = this.getField(11, 0);
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
* 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) {
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
* 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) {
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
* 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) {
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
* 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) {
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 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) {
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 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) {
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
* 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) {
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
* 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) {
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 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) {
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
* 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) {
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
* 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) {
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
* 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) {
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
* 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) {
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 Document Completion Status (TXA-17).
*/
public ID[] getDocumentCompletionStatus() {
ID[] ret = null;
try {
Type[] t = this.getField(17);
ret = new ID[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (ID)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 Document Completion Status (TXA-17).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getDocumentCompletionStatusReps() {
ID[] ret = null;
try {
Type[] t = this.getField(17);
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
* TXA-17: "Document Completion Status" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public ID getDocumentCompletionStatus(int rep) {
ID ret = null;
try {
Type t = this.getField(17, rep);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* TXA-17: "Document Completion Status" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public ID getTxa17_DocumentCompletionStatus(int rep) {
ID ret = null;
try {
Type t = this.getField(17, rep);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a count of the current number of repetitions of Document Completion Status (TXA-17).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getTxa17_DocumentCompletionStatusReps() {
ID[] ret = null;
try {
Type[] t = this.getField(17);
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
* TXA-17: "Document Completion Status" 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 ID insertDocumentCompletionStatus(int rep) throws HL7Exception {
return (ID) super.insertRepetition(17, rep);
}
/**
* Inserts a repetition of
* TXA-17: "Document Completion Status" 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 ID insertTxa17_DocumentCompletionStatus(int rep) throws HL7Exception {
return (ID) super.insertRepetition(17, rep);
}
/**
* Removes a repetition of
* TXA-17: "Document Completion Status" 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 ID removeDocumentCompletionStatus(int rep) throws HL7Exception {
return (ID) super.removeRepetition(17, rep);
}
/**
* Removes a repetition of
* TXA-17: "Document Completion Status" 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 ID removeTxa17_DocumentCompletionStatus(int rep) throws HL7Exception {
return (ID) super.removeRepetition(17, rep);
}
/**
* 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) {
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
* 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) {
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
* 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) {
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
* 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) {
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
* 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) {
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
* 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) {
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
* 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) {
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
* 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) {
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 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) {
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 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) {
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
* 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) {
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
* 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) {
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 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) {
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
* 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) {
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 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) {
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
* 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) {
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
* 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) {
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 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) {
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
* 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;
}
}
}