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 VXR_V03_INSURANCE 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: IN1 (Insurance) </li>
///<li>1: IN2 (Insurance Additional Information) optional </li>
///<li>2: IN3 (Insurance Additional Information, Certification) optional </li>
///</ol>
///</summary>
[Serializable]
public class VXR_V03_INSURANCE : AbstractGroup {
///<summary>
/// Creates a new VXR_V03_INSURANCE Group.
///</summary>
public VXR_V03_INSURANCE(IGroup parent, IModelClassFactory factory) : base(parent, factory){
try {
this.add(typeof(IN1), true, false);
this.add(typeof(IN2), false, false);
this.add(typeof(IN3), false, false);
} catch(HL7Exception e) {
HapiLogFactory.getHapiLog(GetType()).error("Unexpected error creating VXR_V03_INSURANCE - this is probably a bug in the source code generator.", e);
}
}
///<summary>
/// Returns IN1 (Insurance) - creates it if necessary
///</summary>
public IN1 IN1 {
get{
IN1 ret = null;
try {
ret = (IN1)this.GetStructure("IN1");
} 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 IN2 (Insurance Additional Information) - creates it if necessary
///</summary>
public IN2 IN2 {
get{
IN2 ret = null;
try {
ret = (IN2)this.GetStructure("IN2");
} 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 IN3 (Insurance Additional Information, Certification) - creates it if necessary
///</summary>
public IN3 IN3 {
get{
IN3 ret = null;
try {
ret = (IN3)this.GetStructure("IN3");
} 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;
}
}
}
}
|