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