using NHapi.Base.Parser;
using NHapi.Base;
using NHapi.Base.Log;
using System;
using NHapi.Model.V251.Segment;
using NHapi.Base.Model;
namespace NHapi.Model.V251.Group{
///<summary>
///Represents the REF_I12_AUTHORIZATION_CONTACT Group. A Group is an ordered collection of message
/// segments that can repeat together or be optionally in/excluded together.
/// This Group contains the following elements:
///<ol>
///<li>0: AUT (Authorization Information) </li>
///<li>1: CTD (Contact Data) optional </li>
///</ol>
///</summary>
[Serializable]
public class REF_I12_AUTHORIZATION_CONTACT : AbstractGroup {
///<summary>
/// Creates a new REF_I12_AUTHORIZATION_CONTACT Group.
///</summary>
public REF_I12_AUTHORIZATION_CONTACT(IGroup parent, IModelClassFactory factory) : base(parent, factory){
try {
this.add(typeof(AUT), true, false);
this.add(typeof(CTD), false, false);
} catch(HL7Exception e) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected error creating REF_I12_AUTHORIZATION_CONTACT - this is probably a bug in the source code generator.", e);
}
}
///<summary>
/// Returns AUT (Authorization Information) - creates it if necessary
///</summary>
public AUT AUT {
get{
AUT ret = null;
try {
ret = (AUT)this.GetStructure("AUT");
} catch(HL7Exception e) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected error accessing data - this is probably a bug in the source code generator.", e);
throw new System.Exception("An unexpected error ocurred",e);
}
return ret;
}
}
///<summary>
/// Returns CTD (Contact Data) - creates it if necessary
///</summary>
public CTD CTD {
get{
CTD ret = null;
try {
ret = (CTD)this.GetStructure("CTD");
} catch(HL7Exception e) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected error accessing data - this is probably a bug in the source code generator.", e);
throw new System.Exception("An unexpected error ocurred",e);
}
return ret;
}
}
}
}
|