/NuGenHL7v25/Genetibase/NuGenHL7/model/v25/group/RDE_O11_ORDER.cs
C# | 475 lines | 369 code | 29 blank | 77 comment | 0 complexity | 4cf11c930606ccfb2c3daf42e435814b MD5 | raw file
- using System;
- using ModelClassFactory = Genetibase.NuGenHL7.parser.NuGenModelClassFactory;
- using HL7Exception = Genetibase.NuGenHL7.NuGenHL7Exception;
- using Genetibase.NuGenHL7.model.v25.segment;
- using Genetibase.NuGenHL7.model;
- namespace Genetibase.NuGenHL7.model.v25.group
- {
- /// <summary> <p>Represents the RDE_O11_ORDER 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: </p>
- /// 0: ORC (Common Order) <b></b><br>
- /// 1: RDE_O11_TIMING (a Group object) <b>optional repeating</b><br>
- /// 2: RDE_O11_ORDER_DETAIL (a Group object) <b>optional </b><br>
- /// 3: RXE (Pharmacy/Treatment Encoded Order) <b></b><br>
- /// 4: NTE (Notes and Comments) <b>optional repeating</b><br>
- /// 5: RDE_O11_TIMING_ENCODED (a Group object) <b>repeating</b><br>
- /// 6: RXR (Pharmacy/Treatment Route) <b>repeating</b><br>
- /// 7: RXC (Pharmacy/Treatment Component Order) <b>optional repeating</b><br>
- /// 8: RDE_O11_OBSERVATION (a Group object) <b>optional repeating</b><br>
- /// 9: FT1 (Financial Transaction) <b>optional repeating</b><br>
- /// 10: BLG (Billing) <b>optional </b><br>
- /// 11: CTI (Clinical Trial Identification) <b>optional repeating</b><br>
- /// </summary>
- [Serializable]
- public class RDE_O11_ORDER:AbstractGroup
- {
- /// <summary> Returns ORC (Common Order) - creates it if necessary</summary>
- virtual public ORC ORC
- {
- get
- {
- ORC ret = null;
- try
- {
- ret = (ORC) this.get_Renamed("ORC");
- }
- catch (NuGenHL7Exception)
- {
- throw new Exception();
- }
- return ret;
- }
-
- }
- /// <summary> Returns the number of existing repetitions of RDE_O11_TIMING </summary>
- virtual public int TIMINGReps
- {
- get
- {
- int reps = - 1;
- try
- {
- reps = this.getAll("TIMING").Length;
- }
- catch (NuGenHL7Exception)
- {
- System.String message = "Unexpected error accessing data - this is probably a bug in the source code generator.";
- throw new System.SystemException(message);
- }
- return reps;
- }
-
- }
- /// <summary> Returns RDE_O11_ORDER_DETAIL (a Group object) - creates it if necessary</summary>
- virtual public RDE_O11_ORDER_DETAIL ORDER_DETAIL
- {
- get
- {
- RDE_O11_ORDER_DETAIL ret = null;
- try
- {
- ret = (RDE_O11_ORDER_DETAIL) this.get_Renamed("ORDER_DETAIL");
- }
- catch (NuGenHL7Exception)
- {
- throw new Exception();
- }
- return ret;
- }
-
- }
- /// <summary> Returns RXE (Pharmacy/Treatment Encoded Order) - creates it if necessary</summary>
- virtual public RXE RXE
- {
- get
- {
- RXE ret = null;
- try
- {
- ret = (RXE) this.get_Renamed("RXE");
- }
- catch (NuGenHL7Exception)
- {
- throw new Exception();
- }
- return ret;
- }
-
- }
- /// <summary> Returns the number of existing repetitions of NTE </summary>
- virtual public int NTEReps
- {
- get
- {
- int reps = - 1;
- try
- {
- reps = this.getAll("NTE").Length;
- }
- catch (NuGenHL7Exception)
- {
- System.String message = "Unexpected error accessing data - this is probably a bug in the source code generator.";
- throw new System.SystemException(message);
- }
- return reps;
- }
-
- }
- /// <summary> Returns the number of existing repetitions of RDE_O11_TIMING_ENCODED </summary>
- virtual public int TIMING_ENCODEDReps
- {
- get
- {
- int reps = - 1;
- try
- {
- reps = this.getAll("TIMING_ENCODED").Length;
- }
- catch (NuGenHL7Exception)
- {
- System.String message = "Unexpected error accessing data - this is probably a bug in the source code generator.";
- throw new System.SystemException(message);
- }
- return reps;
- }
-
- }
- /// <summary> Returns the number of existing repetitions of RXR </summary>
- virtual public int RXRReps
- {
- get
- {
- int reps = - 1;
- try
- {
- reps = this.getAll("RXR").Length;
- }
- catch (NuGenHL7Exception)
- {
- System.String message = "Unexpected error accessing data - this is probably a bug in the source code generator.";
- throw new System.SystemException(message);
- }
- return reps;
- }
-
- }
- /// <summary> Returns the number of existing repetitions of RXC </summary>
- virtual public int RXCReps
- {
- get
- {
- int reps = - 1;
- try
- {
- reps = this.getAll("RXC").Length;
- }
- catch (NuGenHL7Exception)
- {
- System.String message = "Unexpected error accessing data - this is probably a bug in the source code generator.";
- throw new System.SystemException(message);
- }
- return reps;
- }
-
- }
- /// <summary> Returns the number of existing repetitions of RDE_O11_OBSERVATION </summary>
- virtual public int OBSERVATIONReps
- {
- get
- {
- int reps = - 1;
- try
- {
- reps = this.getAll("OBSERVATION").Length;
- }
- catch (NuGenHL7Exception)
- {
- System.String message = "Unexpected error accessing data - this is probably a bug in the source code generator.";
- throw new System.SystemException(message);
- }
- return reps;
- }
-
- }
- /// <summary> Returns the number of existing repetitions of FT1 </summary>
- virtual public int FT1Reps
- {
- get
- {
- int reps = - 1;
- try
- {
- reps = this.getAll("FT1").Length;
- }
- catch (NuGenHL7Exception)
- {
- System.String message = "Unexpected error accessing data - this is probably a bug in the source code generator.";
- throw new System.SystemException(message);
- }
- return reps;
- }
-
- }
- /// <summary> Returns BLG (Billing) - creates it if necessary</summary>
- virtual public BLG BLG
- {
- get
- {
- BLG ret = null;
- try
- {
- ret = (BLG) this.get_Renamed("BLG");
- }
- catch (NuGenHL7Exception)
- {
- throw new Exception();
- }
- return ret;
- }
-
- }
- /// <summary> Returns the number of existing repetitions of CTI </summary>
- virtual public int CTIReps
- {
- get
- {
- int reps = - 1;
- try
- {
- reps = this.getAll("CTI").Length;
- }
- catch (NuGenHL7Exception)
- {
- System.String message = "Unexpected error accessing data - this is probably a bug in the source code generator.";
- throw new System.SystemException(message);
- }
- return reps;
- }
-
- }
-
- /// <summary> Creates a new RDE_O11_ORDER Group.</summary>
- public RDE_O11_ORDER(Group parent, ModelClassFactory factory):base(parent, factory)
- {
- try
- {
- this.add(typeof(ORC), true, false);
- this.add(typeof(RDE_O11_TIMING), false, true);
- this.add(typeof(RDE_O11_ORDER_DETAIL), false, false);
- this.add(typeof(RXE), true, false);
- this.add(typeof(NTE), false, true);
- this.add(typeof(RDE_O11_TIMING_ENCODED), true, true);
- this.add(typeof(RXR), true, true);
- this.add(typeof(RXC), false, true);
- this.add(typeof(RDE_O11_OBSERVATION), false, true);
- this.add(typeof(FT1), false, true);
- this.add(typeof(BLG), false, false);
- this.add(typeof(CTI), false, true);
- }
- catch (NuGenHL7Exception)
- {
- }
- }
-
- /// <summary> Returns first repetition of RDE_O11_TIMING (a Group object) - creates it if necessary</summary>
- public virtual RDE_O11_TIMING getTIMING()
- {
- RDE_O11_TIMING ret = null;
- try
- {
- ret = (RDE_O11_TIMING) this.get_Renamed("TIMING");
- }
- catch (NuGenHL7Exception)
- {
- throw new Exception();
- }
- return ret;
- }
-
- /// <summary> Returns a specific repetition of RDE_O11_TIMING
- /// (a Group object) - creates it if necessary
- /// throws HL7Exception if the repetition requested is more than one
- /// greater than the number of existing repetitions.
- /// </summary>
- public virtual RDE_O11_TIMING getTIMING(int rep)
- {
- return (RDE_O11_TIMING) this.get_Renamed("TIMING", rep);
- }
-
- /// <summary> Returns first repetition of NTE (Notes and Comments) - creates it if necessary</summary>
- public virtual NTE getNTE()
- {
- NTE ret = null;
- try
- {
- ret = (NTE) this.get_Renamed("NTE");
- }
- catch (NuGenHL7Exception)
- {
- throw new Exception();
- }
- return ret;
- }
-
- /// <summary> Returns a specific repetition of NTE
- /// (Notes and Comments) - creates it if necessary
- /// throws HL7Exception if the repetition requested is more than one
- /// greater than the number of existing repetitions.
- /// </summary>
- public virtual NTE getNTE(int rep)
- {
- return (NTE) this.get_Renamed("NTE", rep);
- }
-
- /// <summary> Returns first repetition of RDE_O11_TIMING_ENCODED (a Group object) - creates it if necessary</summary>
- public virtual RDE_O11_TIMING_ENCODED getTIMING_ENCODED()
- {
- RDE_O11_TIMING_ENCODED ret = null;
- try
- {
- ret = (RDE_O11_TIMING_ENCODED) this.get_Renamed("TIMING_ENCODED");
- }
- catch (NuGenHL7Exception)
- {
- throw new Exception();
- }
- return ret;
- }
-
- /// <summary> Returns a specific repetition of RDE_O11_TIMING_ENCODED
- /// (a Group object) - creates it if necessary
- /// throws HL7Exception if the repetition requested is more than one
- /// greater than the number of existing repetitions.
- /// </summary>
- public virtual RDE_O11_TIMING_ENCODED getTIMING_ENCODED(int rep)
- {
- return (RDE_O11_TIMING_ENCODED) this.get_Renamed("TIMING_ENCODED", rep);
- }
-
- /// <summary> Returns first repetition of RXR (Pharmacy/Treatment Route) - creates it if necessary</summary>
- public virtual RXR getRXR()
- {
- RXR ret = null;
- try
- {
- ret = (RXR) this.get_Renamed("RXR");
- }
- catch (NuGenHL7Exception)
- {
- throw new Exception();
- }
- return ret;
- }
-
- /// <summary> Returns a specific repetition of RXR
- /// (Pharmacy/Treatment Route) - creates it if necessary
- /// throws HL7Exception if the repetition requested is more than one
- /// greater than the number of existing repetitions.
- /// </summary>
- public virtual RXR getRXR(int rep)
- {
- return (RXR) this.get_Renamed("RXR", rep);
- }
-
- /// <summary> Returns first repetition of RXC (Pharmacy/Treatment Component Order) - creates it if necessary</summary>
- public virtual RXC getRXC()
- {
- RXC ret = null;
- try
- {
- ret = (RXC) this.get_Renamed("RXC");
- }
- catch (NuGenHL7Exception)
- {
- throw new Exception();
- }
- return ret;
- }
-
- /// <summary> Returns a specific repetition of RXC
- /// (Pharmacy/Treatment Component Order) - creates it if necessary
- /// throws HL7Exception if the repetition requested is more than one
- /// greater than the number of existing repetitions.
- /// </summary>
- public virtual RXC getRXC(int rep)
- {
- return (RXC) this.get_Renamed("RXC", rep);
- }
-
- /// <summary> Returns first repetition of RDE_O11_OBSERVATION (a Group object) - creates it if necessary</summary>
- public virtual RDE_O11_OBSERVATION getOBSERVATION()
- {
- RDE_O11_OBSERVATION ret = null;
- try
- {
- ret = (RDE_O11_OBSERVATION) this.get_Renamed("OBSERVATION");
- }
- catch (NuGenHL7Exception)
- {
- throw new Exception();
- }
- return ret;
- }
-
- /// <summary> Returns a specific repetition of RDE_O11_OBSERVATION
- /// (a Group object) - creates it if necessary
- /// throws HL7Exception if the repetition requested is more than one
- /// greater than the number of existing repetitions.
- /// </summary>
- public virtual RDE_O11_OBSERVATION getOBSERVATION(int rep)
- {
- return (RDE_O11_OBSERVATION) this.get_Renamed("OBSERVATION", rep);
- }
-
- /// <summary> Returns first repetition of FT1 (Financial Transaction) - creates it if necessary</summary>
- public virtual FT1 getFT1()
- {
- FT1 ret = null;
- try
- {
- ret = (FT1) this.get_Renamed("FT1");
- }
- catch (NuGenHL7Exception)
- {
- throw new Exception();
- }
- return ret;
- }
-
- /// <summary> Returns a specific repetition of FT1
- /// (Financial Transaction) - creates it if necessary
- /// throws HL7Exception if the repetition requested is more than one
- /// greater than the number of existing repetitions.
- /// </summary>
- public virtual FT1 getFT1(int rep)
- {
- return (FT1) this.get_Renamed("FT1", rep);
- }
-
- /// <summary> Returns first repetition of CTI (Clinical Trial Identification) - creates it if necessary</summary>
- public virtual CTI getCTI()
- {
- CTI ret = null;
- try
- {
- ret = (CTI) this.get_Renamed("CTI");
- }
- catch (NuGenHL7Exception)
- {
- throw new Exception();
- }
- return ret;
- }
-
- /// <summary> Returns a specific repetition of CTI
- /// (Clinical Trial Identification) - creates it if necessary
- /// throws HL7Exception if the repetition requested is more than one
- /// greater than the number of existing repetitions.
- /// </summary>
- public virtual CTI getCTI(int rep)
- {
- return (CTI) this.get_Renamed("CTI", rep);
- }
- }
- }