/NuGenHL7v231/Genetibase/NuGenHL7/model/v231/message/RCL_I06.cs
https://github.com/GunioRobot/NuGenHL7 · C# · 436 lines · 343 code · 28 blank · 65 comment · 0 complexity · 65a51e7f26bc63d4bd49078781cac112 MD5 · raw file
- using System;
- using Genetibase.NuGenHL7.model.v231.group;
- using Genetibase.NuGenHL7.model.v231.segment;
- using HL7Exception = Genetibase.NuGenHL7.NuGenHL7Exception;
- using ModelClassFactory = Genetibase.NuGenHL7.parser.NuGenModelClassFactory;
- using DefaultModelClassFactory = Genetibase.NuGenHL7.parser.NuGenDefaultModelClassFactory;
- using AbstractMessage = Genetibase.NuGenHL7.model.AbstractMessage;
- namespace Genetibase.NuGenHL7.model.v231.message
- {
-
- /// <summary> <p>Represents a RCL_I06 message structure (see chapter ?). This structure contains the
- /// following elements: </p>
- /// 0: MSH (MSH - message header segment) <b></b><br>
- /// 1: MSA (MSA - message acknowledgment segment) <b></b><br>
- /// 2: QRD (QRD - original-style query definition segment) <b></b><br>
- /// 3: QRF (QRF - original style query filter segment) <b>optional </b><br>
- /// 4: RCL_I06_PRDCTD (a Group object) <b>repeating</b><br>
- /// 5: PID (PID - patient identification segment) <b></b><br>
- /// 6: DG1 (DG1 - diagnosis segment) <b>optional repeating</b><br>
- /// 7: DRG (DRG - diagnosis related group segment) <b>optional repeating</b><br>
- /// 8: AL1 (AL1 - patient allergy information segment) <b>optional repeating</b><br>
- /// 9: NTE (NTE - notes and comments segment) <b>optional repeating</b><br>
- /// 10: DSP (DSP - display data segment) <b>optional repeating</b><br>
- /// 11: DSC (DSC - Continuation pointer segment) <b>optional </b><br>
- /// </summary>
- [Serializable]
- public class RCL_I06:AbstractMessage
- {
- /// <summary> Returns MSH (MSH - message header segment) - creates it if necessary</summary>
- virtual public MSH MSH
- {
- get
- {
- MSH ret = null;
- try
- {
- ret = (MSH) this.get_Renamed("MSH");
- }
- catch (NuGenHL7Exception)
- {
- throw new Exception();
- }
- return ret;
- }
-
- }
- /// <summary> Returns MSA (MSA - message acknowledgment segment) - creates it if necessary</summary>
- virtual public MSA MSA
- {
- get
- {
- MSA ret = null;
- try
- {
- ret = (MSA) this.get_Renamed("MSA");
- }
- catch (NuGenHL7Exception)
- {
- throw new Exception();
- }
- return ret;
- }
-
- }
- /// <summary> Returns QRD (QRD - original-style query definition segment) - creates it if necessary</summary>
- virtual public QRD QRD
- {
- get
- {
- QRD ret = null;
- try
- {
- ret = (QRD) this.get_Renamed("QRD");
- }
- catch (NuGenHL7Exception)
- {
- throw new Exception();
- }
- return ret;
- }
-
- }
- /// <summary> Returns QRF (QRF - original style query filter segment) - creates it if necessary</summary>
- virtual public QRF QRF
- {
- get
- {
- QRF ret = null;
- try
- {
- ret = (QRF) this.get_Renamed("QRF");
- }
- catch (NuGenHL7Exception)
- {
- throw new Exception();
- }
- return ret;
- }
-
- }
- /// <summary> Returns the number of existing repetitions of RCL_I06_PRDCTD </summary>
- virtual public int PRDCTDReps
- {
- get
- {
- int reps = - 1;
- try
- {
- reps = this.getAll("PRDCTD").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 PID (PID - patient identification segment) - creates it if necessary</summary>
- virtual public PID PID
- {
- get
- {
- PID ret = null;
- try
- {
- ret = (PID) this.get_Renamed("PID");
- }
- catch (NuGenHL7Exception)
- {
- throw new Exception();
- }
- return ret;
- }
-
- }
- /// <summary> Returns the number of existing repetitions of DG1 </summary>
- virtual public int DG1Reps
- {
- get
- {
- int reps = - 1;
- try
- {
- reps = this.getAll("DG1").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 DRG </summary>
- virtual public int DRGReps
- {
- get
- {
- int reps = - 1;
- try
- {
- reps = this.getAll("DRG").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 AL1 </summary>
- virtual public int AL1Reps
- {
- get
- {
- int reps = - 1;
- try
- {
- reps = this.getAll("AL1").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 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 DSP </summary>
- virtual public int DSPReps
- {
- get
- {
- int reps = - 1;
- try
- {
- reps = this.getAll("DSP").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 DSC (DSC - Continuation pointer segment) - creates it if necessary</summary>
- virtual public DSC DSC
- {
- get
- {
- DSC ret = null;
- try
- {
- ret = (DSC) this.get_Renamed("DSC");
- }
- catch (NuGenHL7Exception)
- {
- throw new Exception();
- }
- return ret;
- }
-
- }
-
- /// <summary> Creates a new RCL_I06 Group with custom ModelClassFactory.</summary>
- public RCL_I06(ModelClassFactory factory):base(factory)
- {
- init(factory);
- }
-
- /// <summary> Creates a new RCL_I06 Group with DefaultModelClassFactory. </summary>
- public RCL_I06():base(new DefaultModelClassFactory())
- {
- init(new DefaultModelClassFactory());
- }
-
- private void init(ModelClassFactory factory)
- {
- try
- {
- this.add(typeof(MSH), true, false);
- this.add(typeof(MSA), true, false);
- this.add(typeof(QRD), true, false);
- this.add(typeof(QRF), false, false);
- this.add(typeof(RCL_I06_PRDCTD), true, true);
- this.add(typeof(PID), true, false);
- this.add(typeof(DG1), false, true);
- this.add(typeof(DRG), false, true);
- this.add(typeof(AL1), false, true);
- this.add(typeof(NTE), false, true);
- this.add(typeof(DSP), false, true);
- this.add(typeof(DSC), false, false);
- }
- catch (NuGenHL7Exception)
- {
- }
- }
-
- /// <summary> Returns first repetition of RCL_I06_PRDCTD (a Group object) - creates it if necessary</summary>
- public virtual RCL_I06_PRDCTD getPRDCTD()
- {
- RCL_I06_PRDCTD ret = null;
- try
- {
- ret = (RCL_I06_PRDCTD) this.get_Renamed("PRDCTD");
- }
- catch (NuGenHL7Exception)
- {
- throw new Exception();
- }
- return ret;
- }
-
- /// <summary> Returns a specific repetition of RCL_I06_PRDCTD
- /// (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 RCL_I06_PRDCTD getPRDCTD(int rep)
- {
- return (RCL_I06_PRDCTD) this.get_Renamed("PRDCTD", rep);
- }
-
- /// <summary> Returns first repetition of DG1 (DG1 - diagnosis segment) - creates it if necessary</summary>
- public virtual DG1 getDG1()
- {
- DG1 ret = null;
- try
- {
- ret = (DG1) this.get_Renamed("DG1");
- }
- catch (NuGenHL7Exception)
- {
- throw new Exception();
- }
- return ret;
- }
-
- /// <summary> Returns a specific repetition of DG1
- /// (DG1 - diagnosis segment) - creates it if necessary
- /// throws HL7Exception if the repetition requested is more than one
- /// greater than the number of existing repetitions.
- /// </summary>
- public virtual DG1 getDG1(int rep)
- {
- return (DG1) this.get_Renamed("DG1", rep);
- }
-
- /// <summary> Returns first repetition of DRG (DRG - diagnosis related group segment) - creates it if necessary</summary>
- public virtual DRG getDRG()
- {
- DRG ret = null;
- try
- {
- ret = (DRG) this.get_Renamed("DRG");
- }
- catch (NuGenHL7Exception)
- {
- throw new Exception();
- }
- return ret;
- }
-
- /// <summary> Returns a specific repetition of DRG
- /// (DRG - diagnosis related group segment) - creates it if necessary
- /// throws HL7Exception if the repetition requested is more than one
- /// greater than the number of existing repetitions.
- /// </summary>
- public virtual DRG getDRG(int rep)
- {
- return (DRG) this.get_Renamed("DRG", rep);
- }
-
- /// <summary> Returns first repetition of AL1 (AL1 - patient allergy information segment) - creates it if necessary</summary>
- public virtual AL1 getAL1()
- {
- AL1 ret = null;
- try
- {
- ret = (AL1) this.get_Renamed("AL1");
- }
- catch (NuGenHL7Exception)
- {
- throw new Exception();
- }
- return ret;
- }
-
- /// <summary> Returns a specific repetition of AL1
- /// (AL1 - patient allergy information segment) - creates it if necessary
- /// throws HL7Exception if the repetition requested is more than one
- /// greater than the number of existing repetitions.
- /// </summary>
- public virtual AL1 getAL1(int rep)
- {
- return (AL1) this.get_Renamed("AL1", rep);
- }
-
- /// <summary> Returns first repetition of NTE (NTE - notes and comments segment) - 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
- /// (NTE - notes and comments segment) - 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 DSP (DSP - display data segment) - creates it if necessary</summary>
- public virtual DSP getDSP()
- {
- DSP ret = null;
- try
- {
- ret = (DSP) this.get_Renamed("DSP");
- }
- catch (NuGenHL7Exception)
- {
- throw new Exception();
- }
- return ret;
- }
-
- /// <summary> Returns a specific repetition of DSP
- /// (DSP - display data segment) - creates it if necessary
- /// throws HL7Exception if the repetition requested is more than one
- /// greater than the number of existing repetitions.
- /// </summary>
- public virtual DSP getDSP(int rep)
- {
- return (DSP) this.get_Renamed("DSP", rep);
- }
- }
- }