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