using System;
using NHapi.Base;
using NHapi.Base.Parser;
using NHapi.Base.Model;
using NHapi.Model.V251.Datatype;
using NHapi.Base.Log;
namespace NHapi.Model.V251.Segment{
///<summary>
/// Represents an HL7 TXA message segment.
/// This segment has the following fields:<ol>
///<li>TXA-1: Set ID - TXA (SI)</li>
///<li>TXA-2: Document Type (IS)</li>
///<li>TXA-3: Document Content Presentation (ID)</li>
///<li>TXA-4: Activity Date/Time (TS)</li>
///<li>TXA-5: Primary Activity Provider Code/Name (XCN)</li>
///<li>TXA-6: Origination Date/Time (TS)</li>
///<li>TXA-7: Transcription Date/Time (TS)</li>
///<li>TXA-8: Edit Date/Time (TS)</li>
///<li>TXA-9: Originator Code/Name (XCN)</li>
///<li>TXA-10: Assigned Document Authenticator (XCN)</li>
///<li>TXA-11: Transcriptionist Code/Name (XCN)</li>
///<li>TXA-12: Unique Document Number (EI)</li>
///<li>TXA-13: Parent Document Number (EI)</li>
///<li>TXA-14: Placer Order Number (EI)</li>
///<li>TXA-15: Filler Order Number (EI)</li>
///<li>TXA-16: Unique Document File Name (ST)</li>
///<li>TXA-17: Document Completion Status (ID)</li>
///<li>TXA-18: Document Confidentiality Status (ID)</li>
///<li>TXA-19: Document Availability Status (ID)</li>
///<li>TXA-20: Document Storage Status (ID)</li>
///<li>TXA-21: Document Change Reason (ST)</li>
///<li>TXA-22: Authentication Person, Time Stamp (PPN)</li>
///<li>TXA-23: Distributed Copies (Code and Name of Recipients) (XCN)</li>
///</ol>
/// The get...() methods return data from individual fields. These methods
/// do not throw exceptions and may therefore have to handle exceptions internally.
/// If an exception is handled internally, it is logged and null is returned.
/// This is not expected to happen - if it does happen this indicates not so much
/// an exceptional circumstance as a bug in the code for this class.
///</summary>
[Serializable]
public class TXA : AbstractSegment {
/**
* Creates a TXA (Transcription Document Header) segment object that belongs to the given
* message.
*/
public TXA(IGroup parent, IModelClassFactory factory) : base(parent,factory) {
IMessage message = Message;
try {
this.add(typeof(SI), true, 1, 4, new System.Object[]{message}, "Set ID - TXA");
this.add(typeof(IS), true, 1, 30, new System.Object[]{message, 270}, "Document Type");
this.add(typeof(ID), false, 1, 2, new System.Object[]{message, 191}, "Document Content Presentation");
this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Activity Date/Time");
this.add(typeof(XCN), false, 0, 250, new System.Object[]{message}, "Primary Activity Provider Code/Name");
this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Origination Date/Time");
this.add(typeof(TS), false, 1, 26, new System.Object[]{message}, "Transcription Date/Time");
this.add(typeof(TS), false, 0, 26, new System.Object[]{message}, "Edit Date/Time");
this.add(typeof(XCN), false, 0, 250, new System.Object[]{message}, "Originator Code/Name");
this.add(typeof(XCN), false, 0, 250, new System.Object[]{message}, "Assigned Document Authenticator");
this.add(typeof(XCN), false, 0, 250, new System.Object[]{message}, "Transcriptionist Code/Name");
this.add(typeof(EI), true, 1, 30, new System.Object[]{message}, "Unique Document Number");
this.add(typeof(EI), false, 1, 30, new System.Object[]{message}, "Parent Document Number");
this.add(typeof(EI), false, 0, 22, new System.Object[]{message}, "Placer Order Number");
this.add(typeof(EI), false, 1, 22, new System.Object[]{message}, "Filler Order Number");
this.add(typeof(ST), false, 1, 30, new System.Object[]{message}, "Unique Document File Name");
this.add(typeof(ID), true, 1, 2, new System.Object[]{message, 271}, "Document Completion Status");
this.add(typeof(ID), false, 1, 2, new System.Object[]{message, 272}, "Document Confidentiality Status");
this.add(typeof(ID), false, 1, 2, new System.Object[]{message, 273}, "Document Availability Status");
this.add(typeof(ID), false, 1, 2, new System.Object[]{message, 275}, "Document Storage Status");
this.add(typeof(ST), false, 1, 30, new System.Object[]{message}, "Document Change Reason");
this.add(typeof(PPN), false, 0, 250, new System.Object[]{message}, "Authentication Person, Time Stamp");
this.add(typeof(XCN), false, 0, 250, new System.Object[]{message}, "Distributed Copies (Code and Name of Recipients)");
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Can't instantiate " + GetType().Name, he);
}
}
///<summary>
/// Returns Set ID - TXA(TXA-1).
///</summary>
public SI SetIDTXA
{
get{
SI ret = null;
try
{
IType t = this.GetField(1, 0);
ret = (SI)t;
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
}
///<summary>
/// Returns Document Type(TXA-2).
///</summary>
public IS DocumentType
{
get{
IS ret = null;
try
{
IType t = this.GetField(2, 0);
ret = (IS)t;
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
}
///<summary>
/// Returns Document Content Presentation(TXA-3).
///</summary>
public ID DocumentContentPresentation
{
get{
ID ret = null;
try
{
IType t = this.GetField(3, 0);
ret = (ID)t;
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
}
///<summary>
/// Returns Activity Date/Time(TXA-4).
///</summary>
public TS ActivityDateTime
{
get{
TS ret = null;
try
{
IType t = this.GetField(4, 0);
ret = (TS)t;
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
}
///<summary>
/// Returns a single repetition of Primary Activity Provider Code/Name(TXA-5).
/// throws HL7Exception if the repetition number is invalid.
/// <param name="rep">The repetition number (this is a repeating field)</param>
///</summary>
public XCN GetPrimaryActivityProviderCodeName(int rep)
{
XCN ret = null;
try
{
IType t = this.GetField(5, rep);
ret = (XCN)t;
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
///<summary>
/// Returns all repetitions of Primary Activity Provider Code/Name (TXA-5).
///</summary>
public XCN[] GetPrimaryActivityProviderCodeName() {
XCN[] ret = null;
try {
IType[] t = this.GetField(5);
ret = new XCN[t.Length];
for (int i = 0; i < ret.Length; i++) {
ret[i] = (XCN)t[i];
}
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception cce) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new System.Exception("An unexpected error ocurred", cce);
}
return ret;
}
///<summary>
/// Returns the total repetitions of Primary Activity Provider Code/Name (TXA-5).
///</summary>
public int PrimaryActivityProviderCodeNameRepetitionsUsed
{
get{
try {
return GetTotalFieldRepetitionsUsed(5);
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception cce) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new System.Exception("An unexpected error ocurred", cce);
}
}
}
///<summary>
/// Returns Origination Date/Time(TXA-6).
///</summary>
public TS OriginationDateTime
{
get{
TS ret = null;
try
{
IType t = this.GetField(6, 0);
ret = (TS)t;
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
}
///<summary>
/// Returns Transcription Date/Time(TXA-7).
///</summary>
public TS TranscriptionDateTime
{
get{
TS ret = null;
try
{
IType t = this.GetField(7, 0);
ret = (TS)t;
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
}
///<summary>
/// Returns a single repetition of Edit Date/Time(TXA-8).
/// throws HL7Exception if the repetition number is invalid.
/// <param name="rep">The repetition number (this is a repeating field)</param>
///</summary>
public TS GetEditDateTime(int rep)
{
TS ret = null;
try
{
IType t = this.GetField(8, rep);
ret = (TS)t;
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
///<summary>
/// Returns all repetitions of Edit Date/Time (TXA-8).
///</summary>
public TS[] GetEditDateTime() {
TS[] ret = null;
try {
IType[] t = this.GetField(8);
ret = new TS[t.Length];
for (int i = 0; i < ret.Length; i++) {
ret[i] = (TS)t[i];
}
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception cce) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new System.Exception("An unexpected error ocurred", cce);
}
return ret;
}
///<summary>
/// Returns the total repetitions of Edit Date/Time (TXA-8).
///</summary>
public int EditDateTimeRepetitionsUsed
{
get{
try {
return GetTotalFieldRepetitionsUsed(8);
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception cce) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new System.Exception("An unexpected error ocurred", cce);
}
}
}
///<summary>
/// Returns a single repetition of Originator Code/Name(TXA-9).
/// throws HL7Exception if the repetition number is invalid.
/// <param name="rep">The repetition number (this is a repeating field)</param>
///</summary>
public XCN GetOriginatorCodeName(int rep)
{
XCN ret = null;
try
{
IType t = this.GetField(9, rep);
ret = (XCN)t;
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
///<summary>
/// Returns all repetitions of Originator Code/Name (TXA-9).
///</summary>
public XCN[] GetOriginatorCodeName() {
XCN[] ret = null;
try {
IType[] t = this.GetField(9);
ret = new XCN[t.Length];
for (int i = 0; i < ret.Length; i++) {
ret[i] = (XCN)t[i];
}
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception cce) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new System.Exception("An unexpected error ocurred", cce);
}
return ret;
}
///<summary>
/// Returns the total repetitions of Originator Code/Name (TXA-9).
///</summary>
public int OriginatorCodeNameRepetitionsUsed
{
get{
try {
return GetTotalFieldRepetitionsUsed(9);
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception cce) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new System.Exception("An unexpected error ocurred", cce);
}
}
}
///<summary>
/// Returns a single repetition of Assigned Document Authenticator(TXA-10).
/// throws HL7Exception if the repetition number is invalid.
/// <param name="rep">The repetition number (this is a repeating field)</param>
///</summary>
public XCN GetAssignedDocumentAuthenticator(int rep)
{
XCN ret = null;
try
{
IType t = this.GetField(10, rep);
ret = (XCN)t;
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
///<summary>
/// Returns all repetitions of Assigned Document Authenticator (TXA-10).
///</summary>
public XCN[] GetAssignedDocumentAuthenticator() {
XCN[] ret = null;
try {
IType[] t = this.GetField(10);
ret = new XCN[t.Length];
for (int i = 0; i < ret.Length; i++) {
ret[i] = (XCN)t[i];
}
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception cce) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new System.Exception("An unexpected error ocurred", cce);
}
return ret;
}
///<summary>
/// Returns the total repetitions of Assigned Document Authenticator (TXA-10).
///</summary>
public int AssignedDocumentAuthenticatorRepetitionsUsed
{
get{
try {
return GetTotalFieldRepetitionsUsed(10);
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception cce) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new System.Exception("An unexpected error ocurred", cce);
}
}
}
///<summary>
/// Returns a single repetition of Transcriptionist Code/Name(TXA-11).
/// throws HL7Exception if the repetition number is invalid.
/// <param name="rep">The repetition number (this is a repeating field)</param>
///</summary>
public XCN GetTranscriptionistCodeName(int rep)
{
XCN ret = null;
try
{
IType t = this.GetField(11, rep);
ret = (XCN)t;
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
///<summary>
/// Returns all repetitions of Transcriptionist Code/Name (TXA-11).
///</summary>
public XCN[] GetTranscriptionistCodeName() {
XCN[] ret = null;
try {
IType[] t = this.GetField(11);
ret = new XCN[t.Length];
for (int i = 0; i < ret.Length; i++) {
ret[i] = (XCN)t[i];
}
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception cce) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new System.Exception("An unexpected error ocurred", cce);
}
return ret;
}
///<summary>
/// Returns the total repetitions of Transcriptionist Code/Name (TXA-11).
///</summary>
public int TranscriptionistCodeNameRepetitionsUsed
{
get{
try {
return GetTotalFieldRepetitionsUsed(11);
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception cce) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new System.Exception("An unexpected error ocurred", cce);
}
}
}
///<summary>
/// Returns Unique Document Number(TXA-12).
///</summary>
public EI UniqueDocumentNumber
{
get{
EI ret = null;
try
{
IType t = this.GetField(12, 0);
ret = (EI)t;
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
}
///<summary>
/// Returns Parent Document Number(TXA-13).
///</summary>
public EI ParentDocumentNumber
{
get{
EI ret = null;
try
{
IType t = this.GetField(13, 0);
ret = (EI)t;
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
}
///<summary>
/// Returns a single repetition of Placer Order Number(TXA-14).
/// throws HL7Exception if the repetition number is invalid.
/// <param name="rep">The repetition number (this is a repeating field)</param>
///</summary>
public EI GetPlacerOrderNumber(int rep)
{
EI ret = null;
try
{
IType t = this.GetField(14, rep);
ret = (EI)t;
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
///<summary>
/// Returns all repetitions of Placer Order Number (TXA-14).
///</summary>
public EI[] GetPlacerOrderNumber() {
EI[] ret = null;
try {
IType[] t = this.GetField(14);
ret = new EI[t.Length];
for (int i = 0; i < ret.Length; i++) {
ret[i] = (EI)t[i];
}
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception cce) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new System.Exception("An unexpected error ocurred", cce);
}
return ret;
}
///<summary>
/// Returns the total repetitions of Placer Order Number (TXA-14).
///</summary>
public int PlacerOrderNumberRepetitionsUsed
{
get{
try {
return GetTotalFieldRepetitionsUsed(14);
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception cce) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new System.Exception("An unexpected error ocurred", cce);
}
}
}
///<summary>
/// Returns Filler Order Number(TXA-15).
///</summary>
public EI FillerOrderNumber
{
get{
EI ret = null;
try
{
IType t = this.GetField(15, 0);
ret = (EI)t;
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
}
///<summary>
/// Returns Unique Document File Name(TXA-16).
///</summary>
public ST UniqueDocumentFileName
{
get{
ST ret = null;
try
{
IType t = this.GetField(16, 0);
ret = (ST)t;
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
}
///<summary>
/// Returns Document Completion Status(TXA-17).
///</summary>
public ID DocumentCompletionStatus
{
get{
ID ret = null;
try
{
IType t = this.GetField(17, 0);
ret = (ID)t;
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
}
///<summary>
/// Returns Document Confidentiality Status(TXA-18).
///</summary>
public ID DocumentConfidentialityStatus
{
get{
ID ret = null;
try
{
IType t = this.GetField(18, 0);
ret = (ID)t;
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
}
///<summary>
/// Returns Document Availability Status(TXA-19).
///</summary>
public ID DocumentAvailabilityStatus
{
get{
ID ret = null;
try
{
IType t = this.GetField(19, 0);
ret = (ID)t;
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
}
///<summary>
/// Returns Document Storage Status(TXA-20).
///</summary>
public ID DocumentStorageStatus
{
get{
ID ret = null;
try
{
IType t = this.GetField(20, 0);
ret = (ID)t;
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
}
///<summary>
/// Returns Document Change Reason(TXA-21).
///</summary>
public ST DocumentChangeReason
{
get{
ST ret = null;
try
{
IType t = this.GetField(21, 0);
ret = (ST)t;
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
}
///<summary>
/// Returns a single repetition of Authentication Person, Time Stamp(TXA-22).
/// throws HL7Exception if the repetition number is invalid.
/// <param name="rep">The repetition number (this is a repeating field)</param>
///</summary>
public PPN GetAuthenticationPersonTimeStamp(int rep)
{
PPN ret = null;
try
{
IType t = this.GetField(22, rep);
ret = (PPN)t;
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
///<summary>
/// Returns all repetitions of Authentication Person, Time Stamp (TXA-22).
///</summary>
public PPN[] GetAuthenticationPersonTimeStamp() {
PPN[] ret = null;
try {
IType[] t = this.GetField(22);
ret = new PPN[t.Length];
for (int i = 0; i < ret.Length; i++) {
ret[i] = (PPN)t[i];
}
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception cce) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new System.Exception("An unexpected error ocurred", cce);
}
return ret;
}
///<summary>
/// Returns the total repetitions of Authentication Person, Time Stamp (TXA-22).
///</summary>
public int AuthenticationPersonTimeStampRepetitionsUsed
{
get{
try {
return GetTotalFieldRepetitionsUsed(22);
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception cce) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new System.Exception("An unexpected error ocurred", cce);
}
}
}
///<summary>
/// Returns a single repetition of Distributed Copies (Code and Name of Recipients)(TXA-23).
/// throws HL7Exception if the repetition number is invalid.
/// <param name="rep">The repetition number (this is a repeating field)</param>
///</summary>
public XCN GetDistributedCopiesCodeandNameofRecipients(int rep)
{
XCN ret = null;
try
{
IType t = this.GetField(23, rep);
ret = (XCN)t;
} catch (System.Exception ex) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", ex);
throw new System.Exception("An unexpected error ocurred", ex);
}
return ret;
}
///<summary>
/// Returns all repetitions of Distributed Copies (Code and Name of Recipients) (TXA-23).
///</summary>
public XCN[] GetDistributedCopiesCodeandNameofRecipients() {
XCN[] ret = null;
try {
IType[] t = this.GetField(23);
ret = new XCN[t.Length];
for (int i = 0; i < ret.Length; i++) {
ret[i] = (XCN)t[i];
}
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception cce) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new System.Exception("An unexpected error ocurred", cce);
}
return ret;
}
///<summary>
/// Returns the total repetitions of Distributed Copies (Code and Name of Recipients) (TXA-23).
///</summary>
public int DistributedCopiesCodeandNameofRecipientsRepetitionsUsed
{
get{
try {
return GetTotalFieldRepetitionsUsed(23);
}
catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new System.Exception("An unexpected error ocurred", he);
} catch (System.Exception cce) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new System.Exception("An unexpected error ocurred", cce);
}
}
}
}}
|