Exemplo n.º 1
0
        /// <summary>
        /// initalize method for RCL_I06.  This does the segment setup for the message.
        /// </summary>
        ///
        /// <param name="factory">  The factory. </param>

        private void init(IModelClassFactory 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_PROVIDER), 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 (HL7Exception e) {
                HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error creating RCL_I06 - this is probably a bug in the source code generator.", e);
            }
        }
Exemplo n.º 2
0
 ///<summary>
 /// Returns all repetitions of Input Parameter List (ERQ-3).
 ///</summary>
 public QIP[] GetInputParameterList()
 {
     QIP[] ret = null;
     try {
         IType[] t = this.GetField(3);
         ret = new QIP[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (QIP)t[i];
         }
     } catch (HL7Exception he) {
         HapiLogFactory.GetHapiLog(this.GetType()).Error("Unexpected problem obtaining field value.  This is a bug.", he);
         throw new System.Exception("An unexpected error ocurred", he);
     } catch (System.Exception cce) {
         HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected problem obtaining field value.  This is a bug.", cce);
         throw new System.Exception("An unexpected error ocurred", cce);
     }
     return(ret);
 }
Exemplo n.º 3
0
 /**
  * Returns all repetitions of Help Desk Contact Point (ERR-12).
  */
 public XTN[] getHelpDeskContactPoint()
 {
     XTN[] ret = null;
     try {
         Type[] t = this.getField(12);
         ret = new XTN[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (XTN)t[i];
         }
     } catch (HL7Exception he) {
         HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value.  This is a bug.", he);
         throw new System.Exception("An unexpected error ocurred", he);
     } catch (System.Exception cce) {
         HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value.  This is a bug.", cce);
         throw new System.Exception("An unexpected error ocurred", cce);
     }
     return(ret);
 }
Exemplo n.º 4
0
 /**
  * Returns all repetitions of Error Code and Location (ERR-1).
  */
 public ELD[] getErrorCodeAndLocation()
 {
     ELD[] ret = null;
     try {
         Type[] t = this.getField(1);
         ret = new ELD[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (ELD)t[i];
         }
     } catch (HL7Exception he) {
         HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value.  This is a bug.", he);
         throw new System.Exception("An unexpected error ocurred", he);
     } catch (System.Exception cce) {
         HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value.  This is a bug.", cce);
         throw new System.Exception("An unexpected error ocurred", cce);
     }
     return(ret);
 }
Exemplo n.º 5
0
 ///<summary>
 /// Returns all repetitions of Provider's Pharmacy/Treatment Instructions (RXO-6).
 ///</summary>
 public CE[] GetProviderSPharmacyTreatmentInstructions()
 {
     CE[] ret = null;
     try {
         IType[] t = this.GetField(6);
         ret = new CE[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (CE)t[i];
         }
     } catch (HL7Exception he) {
         HapiLogFactory.GetHapiLog(this.GetType()).Error("Unexpected problem obtaining field value.  This is a bug.", he);
         throw new System.Exception("An unexpected error ocurred", he);
     } catch (System.Exception cce) {
         HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected problem obtaining field value.  This is a bug.", cce);
         throw new System.Exception("An unexpected error ocurred", cce);
     }
     return(ret);
 }
Exemplo n.º 6
0
 ///<summary>
 /// Returns all repetitions of Filler Order Number (ARQ-25).
 ///</summary>
 public EI[] GetFillerOrderNumber()
 {
     EI[] ret = null;
     try {
         IType[] t = this.GetField(25);
         ret = new EI[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (EI)t[i];
         }
     } catch (HL7Exception he) {
         HapiLogFactory.GetHapiLog(this.GetType()).Error("Unexpected problem obtaining field value.  This is a bug.", he);
         throw new System.Exception("An unexpected error ocurred", he);
     } catch (System.Exception cce) {
         HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected problem obtaining field value.  This is a bug.", cce);
         throw new System.Exception("An unexpected error ocurred", cce);
     }
     return(ret);
 }
Exemplo n.º 7
0
 ///<summary>
 /// Returns all repetitions of Placer Contact Address (ARQ-17).
 ///</summary>
 public XAD[] GetPlacerContactAddress()
 {
     XAD[] ret = null;
     try {
         IType[] t = this.GetField(17);
         ret = new XAD[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (XAD)t[i];
         }
     } catch (HL7Exception he) {
         HapiLogFactory.GetHapiLog(this.GetType()).Error("Unexpected problem obtaining field value.  This is a bug.", he);
         throw new System.Exception("An unexpected error ocurred", he);
     } catch (System.Exception cce) {
         HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected problem obtaining field value.  This is a bug.", cce);
         throw new System.Exception("An unexpected error ocurred", cce);
     }
     return(ret);
 }
Exemplo n.º 8
0
 /**
  * Returns all repetitions of Stratum for Study Randomization (CSR-13).
  */
 public CE[] getStratumForStudyRandomization()
 {
     CE[] ret = null;
     try {
         Type[] t = this.getField(13);
         ret = new CE[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (CE)t[i];
         }
     } catch (HL7Exception he) {
         HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value.  This is a bug.", he);
         throw new System.Exception("An unexpected error ocurred", he);
     } catch (System.Exception cce) {
         HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value.  This is a bug.", cce);
         throw new System.Exception("An unexpected error ocurred", cce);
     }
     return(ret);
 }
Exemplo n.º 9
0
 ///<summary>
 /// Returns all repetitions of Second Opinion Physician (IN3-25).
 ///</summary>
 public XCN[] GetSecondOpinionPhysician()
 {
     XCN[] ret = null;
     try {
         IType[] t = this.GetField(25);
         ret = new XCN[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (XCN)t[i];
         }
     } catch (HL7Exception he) {
         HapiLogFactory.GetHapiLog(this.GetType()).Error("Unexpected problem obtaining field value.  This is a bug.", he);
         throw new System.Exception("An unexpected error ocurred", he);
     } catch (System.Exception cce) {
         HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected problem obtaining field value.  This is a bug.", cce);
         throw new System.Exception("An unexpected error ocurred", cce);
     }
     return(ret);
 }
Exemplo n.º 10
0
 ///<summary>
 /// Returns all repetitions of Primary Key Value Type - MFA (MFA-6).
 ///</summary>
 public ID[] GetPrimaryKeyValueTypeMFA()
 {
     ID[] ret = null;
     try {
         IType[] t = this.GetField(6);
         ret = new ID[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (ID)t[i];
         }
     } catch (HL7Exception he) {
         HapiLogFactory.GetHapiLog(this.GetType()).Error("Unexpected problem obtaining field value.  This is a bug.", he);
         throw new System.Exception("An unexpected error ocurred", he);
     } catch (System.Exception cce) {
         HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected problem obtaining field value.  This is a bug.", cce);
         throw new System.Exception("An unexpected error ocurred", cce);
     }
     return(ret);
 }
Exemplo n.º 11
0
 ///<summary>
 /// Returns all repetitions of Visiting Hours (LDP-10).
 ///</summary>
 public VH[] GetVisitingHours()
 {
     VH[] ret = null;
     try {
         IType[] t = this.GetField(10);
         ret = new VH[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (VH)t[i];
         }
     } catch (HL7Exception he) {
         HapiLogFactory.GetHapiLog(this.GetType()).Error("Unexpected problem obtaining field value.  This is a bug.", he);
         throw new System.Exception("An unexpected error ocurred", he);
     } catch (System.Exception cce) {
         HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected problem obtaining field value.  This is a bug.", cce);
         throw new System.Exception("An unexpected error ocurred", cce);
     }
     return(ret);
 }
Exemplo n.º 12
0
 /**
  * Returns all repetitions of Product Serial/Lot Number (PCR-12).
  */
 public ST[] getProductSerialLotNumber()
 {
     ST[] ret = null;
     try {
         Type[] t = this.getField(12);
         ret = new ST[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (ST)t[i];
         }
     } catch (HL7Exception he) {
         HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value.  This is a bug.", he);
         throw new System.Exception("An unexpected error ocurred", he);
     } catch (System.Exception cce) {
         HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value.  This is a bug.", cce);
         throw new System.Exception("An unexpected error ocurred", cce);
     }
     return(ret);
 }
Exemplo n.º 13
0
 ///<summary>
 /// Returns all repetitions of Events Scheduled This Time Point (CM2-4).
 ///</summary>
 public CE[] GetEventsScheduledThisTimePoint()
 {
     CE[] ret = null;
     try {
         IType[] t = this.GetField(4);
         ret = new CE[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (CE)t[i];
         }
     } catch (HL7Exception he) {
         HapiLogFactory.GetHapiLog(this.GetType()).Error("Unexpected problem obtaining field value.  This is a bug.", he);
         throw new System.Exception("An unexpected error ocurred", he);
     } catch (System.Exception cce) {
         HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected problem obtaining field value.  This is a bug.", cce);
         throw new System.Exception("An unexpected error ocurred", cce);
     }
     return(ret);
 }
Exemplo n.º 14
0
 ///<summary>
 /// Returns all repetitions of Requested Start Date/Time Range (ARQ-11).
 ///</summary>
 public DR[] GetRequestedStartDateTimeRange()
 {
     DR[] ret = null;
     try {
         IType[] t = this.GetField(11);
         ret = new DR[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (DR)t[i];
         }
     } catch (HL7Exception he) {
         HapiLogFactory.GetHapiLog(this.GetType()).Error("Unexpected problem obtaining field value.  This is a bug.", he);
         throw new System.Exception("An unexpected error ocurred", he);
     } catch (System.Exception cce) {
         HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected problem obtaining field value.  This is a bug.", cce);
         throw new System.Exception("An unexpected error ocurred", cce);
     }
     return(ret);
 }
Exemplo n.º 15
0
 ///<summary>
 /// Returns all repetitions of Valid Patient Classes (LDP-5).
 ///</summary>
 public CWE[] GetValidPatientClasses()
 {
     CWE[] ret = null;
     try {
         IType[] t = this.GetField(5);
         ret = new CWE[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (CWE)t[i];
         }
     } catch (HL7Exception he) {
         HapiLogFactory.GetHapiLog(this.GetType()).Error("Unexpected problem obtaining field value.  This is a bug.", he);
         throw new System.Exception("An unexpected error ocurred", he);
     } catch (System.Exception cce) {
         HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected problem obtaining field value.  This is a bug.", cce);
         throw new System.Exception("An unexpected error ocurred", cce);
     }
     return(ret);
 }
Exemplo n.º 16
0
 ///<summary>
 /// Returns all repetitions of Pre-Certification required/Window (IN3-20).
 ///</summary>
 public CM_PCF[] GetPreCertificationRequiredWindow()
 {
     CM_PCF[] ret = null;
     try {
         IType[] t = this.GetField(20);
         ret = new CM_PCF[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (CM_PCF)t[i];
         }
     } catch (HL7Exception he) {
         HapiLogFactory.GetHapiLog(this.GetType()).Error("Unexpected problem obtaining field value.  This is a bug.", he);
         throw new System.Exception("An unexpected error ocurred", he);
     } catch (System.Exception cce) {
         HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected problem obtaining field value.  This is a bug.", cce);
         throw new System.Exception("An unexpected error ocurred", cce);
     }
     return(ret);
 }
Exemplo n.º 17
0
 ///<summary>
 /// Returns all repetitions of Certification Agency Phone Number (IN3-19).
 ///</summary>
 public XTN[] GetCertificationAgencyPhoneNumber()
 {
     XTN[] ret = null;
     try {
         IType[] t = this.GetField(19);
         ret = new XTN[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (XTN)t[i];
         }
     } catch (HL7Exception he) {
         HapiLogFactory.GetHapiLog(this.GetType()).Error("Unexpected problem obtaining field value.  This is a bug.", he);
         throw new System.Exception("An unexpected error ocurred", he);
     } catch (System.Exception cce) {
         HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected problem obtaining field value.  This is a bug.", cce);
         throw new System.Exception("An unexpected error ocurred", cce);
     }
     return(ret);
 }
Exemplo n.º 18
0
 /**
  * Returns all repetitions of Indirect Exposure Mechanism (PCR-23).
  */
 public ID[] getIndirectExposureMechanism()
 {
     ID[] ret = null;
     try {
         Type[] t = this.getField(23);
         ret = new ID[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (ID)t[i];
         }
     } catch (HL7Exception he) {
         HapiLogFactory.getHapiLog(this.GetType()).error("Unexpected problem obtaining field value.  This is a bug.", he);
         throw new System.Exception("An unexpected error ocurred", he);
     } catch (System.Exception cce) {
         HapiLogFactory.getHapiLog(GetType()).error("Unexpected problem obtaining field value.  This is a bug.", cce);
         throw new System.Exception("An unexpected error ocurred", cce);
     }
     return(ret);
 }
Exemplo n.º 19
0
        /**
         * Creates a ITM (Material Item) segment object that belongs to the given
         * message.
         */
        public ITM(IGroup parent, IModelClassFactory factory) : base(parent, factory)
        {
            IMessage message = Message;

            try {
                this.add(typeof(EI), true, 1, 0, new System.Object[] { message }, "Item Identifier");
                this.add(typeof(ST), false, 1, 0, new System.Object[] { message }, "Item Description");
                this.add(typeof(CWE), false, 1, 0, new System.Object[] { message }, "Item Status");
                this.add(typeof(CWE), false, 1, 0, new System.Object[] { message }, "Item Type");
                this.add(typeof(CWE), false, 1, 0, new System.Object[] { message }, "Item Category");
                this.add(typeof(CNE), false, 1, 0, new System.Object[] { message }, "Subject to Expiration Indicator");
                this.add(typeof(EI), false, 1, 0, new System.Object[] { message }, "Manufacturer Identifier");
                this.add(typeof(ST), false, 1, 0, new System.Object[] { message }, "Manufacturer Name");
                this.add(typeof(ST), false, 1, 0, new System.Object[] { message }, "Manufacturer Catalog Number");
                this.add(typeof(CWE), false, 1, 0, new System.Object[] { message }, "Manufacturer Labeler Identification Code");
                this.add(typeof(CNE), false, 1, 0, new System.Object[] { message }, "Patient Chargeable Indicator");
                this.add(typeof(CWE), false, 1, 0, new System.Object[] { message }, "Transaction Code");
                this.add(typeof(CP), false, 1, 0, new System.Object[] { message }, "Transaction amount - unit");
                this.add(typeof(CNE), false, 1, 0, new System.Object[] { message }, "Stocked Item Indicator");
                this.add(typeof(CWE), false, 1, 0, new System.Object[] { message }, "Supply Risk Codes");
                this.add(typeof(XON), false, 0, 0, new System.Object[] { message }, "Approving Regulatory Agency");
                this.add(typeof(CNE), false, 1, 0, new System.Object[] { message }, "Latex Indicator");
                this.add(typeof(CWE), false, 0, 0, new System.Object[] { message }, "Ruling Act");
                this.add(typeof(CWE), false, 1, 0, new System.Object[] { message }, "Item Natural Account Code");
                this.add(typeof(NM), false, 1, 0, new System.Object[] { message }, "Approved To Buy Quantity");
                this.add(typeof(MO), false, 1, 0, new System.Object[] { message }, "Approved To Buy Price");
                this.add(typeof(CNE), false, 1, 0, new System.Object[] { message }, "Taxable Item Indicator");
                this.add(typeof(CNE), false, 1, 0, new System.Object[] { message }, "Freight Charge Indicator");
                this.add(typeof(CNE), false, 1, 0, new System.Object[] { message }, "Item Set Indicator");
                this.add(typeof(EI), false, 1, 0, new System.Object[] { message }, "Item Set Identifier");
                this.add(typeof(CNE), false, 1, 0, new System.Object[] { message }, "Track Department Usage Indicator");
                this.add(typeof(CNE), false, 1, 0, new System.Object[] { message }, "Procedure Code");
                this.add(typeof(CNE), false, 0, 0, new System.Object[] { message }, "Procedure Code Modifier");
                this.add(typeof(CWE), false, 1, 0, new System.Object[] { message }, "Special Handling Code");
                this.add(typeof(CNE), false, 1, 0, new System.Object[] { message }, "Hazardous Indicator");
                this.add(typeof(CNE), false, 1, 0, new System.Object[] { message }, "Sterile Indicator");
                this.add(typeof(EI), false, 1, 0, new System.Object[] { message }, "Material Data Safety Sheet Number");
                this.add(typeof(CWE), false, 1, 0, new System.Object[] { message }, "United Nations Standard Products and Services Code (UNSPSC)");
            } catch (HL7Exception he) {
                HapiLogFactory.GetHapiLog(GetType()).Error("Can't instantiate " + GetType().Name, he);
            }
        }
Exemplo n.º 20
0
        /// <summary>   Initializes a new instance of the RF1 class. </summary>
        ///
        /// <param name="parent">   The parent. </param>
        /// <param name="factory">  The factory. </param>

        public RF1(IGroup parent, IModelClassFactory factory) : base(parent, factory)
        {
            IMessage message = Message;

            try {
                this.add(typeof(CE), false, 1, 250, new System.Object[] { message }, "Referral Status");
                this.add(typeof(CE), false, 1, 250, new System.Object[] { message }, "Referral Priority");
                this.add(typeof(CE), false, 1, 250, new System.Object[] { message }, "Referral Type");
                this.add(typeof(CE), false, 0, 250, new System.Object[] { message }, "Referral Disposition");
                this.add(typeof(CE), false, 1, 250, new System.Object[] { message }, "Referral Category");
                this.add(typeof(EI), true, 1, 30, new System.Object[] { message }, "Originating Referral Identifier");
                this.add(typeof(TS), false, 1, 26, new System.Object[] { message }, "Effective Date");
                this.add(typeof(TS), false, 1, 26, new System.Object[] { message }, "Expiration Date");
                this.add(typeof(TS), false, 1, 26, new System.Object[] { message }, "Process Date");
                this.add(typeof(CE), false, 0, 250, new System.Object[] { message }, "Referral Reason");
                this.add(typeof(EI), false, 0, 30, new System.Object[] { message }, "External Referral Identifier");
            } catch (HL7Exception he) {
                HapiLogFactory.GetHapiLog(GetType()).Error("Can't instantiate " + GetType().Name, he);
            }
        }
Exemplo n.º 21
0
	///<summary>
	/// initalize method for RRI_I13.  This does the segment setup for the message. 
	///</summary> 
	private void init(IModelClassFactory factory) {
	   try {
	      this.add(typeof(MSH), true, false);
	      this.add(typeof(MSA), false, false);
	      this.add(typeof(RF1), false, false);
	      this.add(typeof(RRI_I13_AUTHORIZATION), false, false);
	      this.add(typeof(RRI_I13_PROVIDER), true, true);
	      this.add(typeof(PID), true, false);
	      this.add(typeof(ACC), false, false);
	      this.add(typeof(DG1), false, true);
	      this.add(typeof(DRG), false, true);
	      this.add(typeof(AL1), false, true);
	      this.add(typeof(RRI_I13_PROCEDURE), false, true);
	      this.add(typeof(RRI_I13_RESULTS), false, true);
	      this.add(typeof(RRI_I13_VISIT), false, false);
	      this.add(typeof(NTE), false, true);
	   } catch(HL7Exception e) {
	      HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error creating RRI_I13 - this is probably a bug in the source code generator.", e);
	   }
	}
Exemplo n.º 22
0
 ///<summary>
 /// Creates a new CCI_I22_CLINICAL_HISTORY_DETAIL Group.
 ///</summary>
 public CCI_I22_CLINICAL_HISTORY_DETAIL(IGroup parent, IModelClassFactory factory) : base(parent, factory)
 {
     try {
         this.add(typeof(OBR), true, false);
         this.add(typeof(ODS), true, false);
         this.add(typeof(PR1), true, false);
         this.add(typeof(RF1), true, false);
         this.add(typeof(AL1), true, false);
         this.add(typeof(IAM), true, false);
         this.add(typeof(ACC), true, false);
         this.add(typeof(RMI), true, false);
         this.add(typeof(DB1), true, false);
         this.add(typeof(DG1), true, false);
         this.add(typeof(DRG), true, false);
         this.add(typeof(PDA), true, false);
         this.add(typeof(OBX), false, true);
     } catch (HL7Exception e) {
         HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error creating CCI_I22_CLINICAL_HISTORY_DETAIL - this is probably a bug in the source code generator.", e);
     }
 }
Exemplo n.º 23
0
 ///<summary>
 /// initalize method for RDR_RDR.  This does the segment setup for the message.
 ///</summary>
 private void init(IModelClassFactory factory)
 {
     try {
         this.add(typeof(MSH), true, false);
         this.add(typeof(MSA), true, false);
         this.add(typeof(ERR), false, true);
         this.add(typeof(SFT), false, false);
         this.add(typeof(SFT), false, true);
         this.add(typeof(UAC), false, false);
         this.add(typeof(RDR_RDR_DEFINITION), true, true);
         this.add(typeof(RXC), false, true);
         this.add(typeof(DSC), false, false);
         this.add(typeof(RXD), true, false);
         this.add(typeof(RXR), true, true);
         this.add(typeof(RXC), false, true);
         this.add(typeof(DSC), false, false);
     } catch (HL7Exception e) {
         HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error creating RDR_RDR - this is probably a bug in the source code generator.", e);
     }
 }
Exemplo n.º 24
0
	///<summary>
	/// initalize method for ORU_R30.  This does the segment setup for the message. 
	///</summary> 
	private void init(IModelClassFactory factory) {
	   try {
	      this.add(typeof(MSH), true, false);
	      this.add(typeof(SFT), false, true);
	      this.add(typeof(UAC), false, false);
	      this.add(typeof(PID), true, false);
	      this.add(typeof(PD1), false, false);
	      this.add(typeof(PRT), false, true);
	      this.add(typeof(ORU_R30_PATIENT_OBSERVATION), false, true);
	      this.add(typeof(ORU_R30_VISIT), false, false);
	      this.add(typeof(ORC), true, false);
	      this.add(typeof(OBR), true, false);
	      this.add(typeof(NTE), false, true);
	      this.add(typeof(PRT), false, true);
	      this.add(typeof(ORU_R30_TIMING_QTY), false, true);
	      this.add(typeof(ORU_R30_OBSERVATION), true, true);
	   } catch(HL7Exception e) {
	      HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error creating ORU_R30 - this is probably a bug in the source code generator.", e);
	   }
	}
Exemplo n.º 25
0
        public Z3I(IGroup parent, IModelClassFactory factory)
            : base(parent, factory)
        {
            IMessage message = Message;

            try
            {
                add(typeof(ST), required: true, 1, 100, new object[1]
                {
                    message
                }, "");
                add(typeof(ST), required: true, 1, 100, new object[1]
                {
                    message
                }, "");
                add(typeof(ST), required: false, 1, 10, new object[1]
                {
                    message
                }, "");
                add(typeof(NM), required: true, 1, 100, new object[1]
                {
                    message
                }, "");
                add(typeof(CE), required: false, 0, 100, new object[1]
                {
                    message
                }, "");
                add(typeof(XCN), required: true, 1, 100, new object[1]
                {
                    message
                }, "");
                add(typeof(TS), required: true, 1, 100, new object[1]
                {
                    message
                }, "");
            }
            catch (HL7Exception t)
            {
                HapiLogFactory.GetHapiLog(GetType()).Error("Can't instantiate " + GetType().Name, t);
            }
        }
Exemplo n.º 26
0
 ///<summary>
 /// initalize method for ADT_A03.  This does the segment setup for the message.
 ///</summary>
 private void init(IModelClassFactory factory)
 {
     try {
         this.add(typeof(MSH), true, false);
         this.add(typeof(EVN), true, false);
         this.add(typeof(PID), true, false);
         this.add(typeof(PD1), false, false);
         this.add(typeof(ROL), false, true);
         this.add(typeof(PV1), true, false);
         this.add(typeof(PV2), false, false);
         this.add(typeof(ROL), false, true);
         this.add(typeof(DB1), false, true);
         this.add(typeof(DG1), false, true);
         this.add(typeof(DRG), false, false);
         this.add(typeof(ADT_A03_PROCEDURE), false, true);
         this.add(typeof(OBX), false, true);
         this.add(typeof(PDA), false, false);
     } catch (HL7Exception e) {
         HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error creating ADT_A03 - this is probably a bug in the source code generator.", e);
     }
 }
Exemplo n.º 27
0
        /**
         * Creates a PD1 (Patient Demographic) segment object that belongs to the given
         * message.
         */
        public PD1(IGroup parent, IModelClassFactory factory) : base(parent, factory)
        {
            IMessage message = Message;

            try {
                this.add(typeof(IS), false, 0, 2, new System.Object[] { message, 223 }, "Living Dependency");
                this.add(typeof(IS), false, 1, 2, new System.Object[] { message, 220 }, "Living Arrangement");
                this.add(typeof(XON), false, 0, 90, new System.Object[] { message }, "Patient Primary Facility");
                this.add(typeof(XCN), false, 0, 90, new System.Object[] { message }, "Patient Primary Care Provider Name and ID No.");
                this.add(typeof(IS), false, 1, 2, new System.Object[] { message, 231 }, "Student Indicator");
                this.add(typeof(IS), false, 1, 2, new System.Object[] { message, 310 }, "Handicap");
                this.add(typeof(IS), false, 1, 2, new System.Object[] { message, 315 }, "Living Will");
                this.add(typeof(IS), false, 1, 2, new System.Object[] { message, 316 }, "Organ Donor");
                this.add(typeof(ID), false, 1, 2, new System.Object[] { message, 136 }, "Separate Bill");
                this.add(typeof(CX), false, 0, 2, new System.Object[] { message }, "Duplicate Patient");
                this.add(typeof(CE), false, 1, 1, new System.Object[] { message }, "Publicity Indicator");
                this.add(typeof(ID), false, 1, 1, new System.Object[] { message, 136 }, "Protection Indicator");
            } catch (HL7Exception he) {
                HapiLogFactory.GetHapiLog(GetType()).Error("Can't instantiate " + GetType().Name, he);
            }
        }
Exemplo n.º 28
0
        /**
         * Creates a AIS (Appointment Information) segment object that belongs to the given
         * message.
         */
        public AIS(Group parent, ModelClassFactory factory) : base(parent, factory)
        {
            Message message = Message;

            try {
                this.add(typeof(SI), true, 1, 4, new System.Object[] { message }, "Set ID - AIS");
                this.add(typeof(ID), false, 1, 3, new System.Object[] { message, 206 }, "Segment Action Code");
                this.add(typeof(CE), true, 1, 250, new System.Object[] { message }, "Universal Service Identifier");
                this.add(typeof(TS), false, 1, 26, new System.Object[] { message }, "Start Date/Time");
                this.add(typeof(NM), false, 1, 20, new System.Object[] { message }, "Start Date/Time Offset");
                this.add(typeof(CE), false, 1, 250, new System.Object[] { message }, "Start Date/Time Offset Units");
                this.add(typeof(NM), false, 1, 20, new System.Object[] { message }, "Duration");
                this.add(typeof(CE), false, 1, 250, new System.Object[] { message }, "Duration Units");
                this.add(typeof(IS), false, 1, 10, new System.Object[] { message, 279 }, "Allow Substitution Code");
                this.add(typeof(CE), false, 1, 250, new System.Object[] { message }, "Filler Status Code");
                this.add(typeof(CE), false, 0, 250, new System.Object[] { message }, "Placer Supplemental Service Information");
                this.add(typeof(CE), false, 0, 250, new System.Object[] { message }, "Filler Supplemental Service Information");
            } catch (HL7Exception he) {
                HapiLogFactory.getHapiLog(GetType()).error("Can't instantiate " + this.getStructureName(), he);
            }
        }
Exemplo n.º 29
0
        /**
         * Creates a ACC (Accident) segment object that belongs to the given
         * message.
         */
        public ACC(IGroup parent, IModelClassFactory factory) : base(parent, factory)
        {
            IMessage message = Message;

            try {
                this.add(typeof(DTM), false, 1, 0, new System.Object[] { message }, "Accident Date/Time");
                this.add(typeof(CWE), false, 1, 0, new System.Object[] { message }, "Accident Code");
                this.add(typeof(ST), false, 1, 0, new System.Object[] { message }, "Accident Location");
                this.add(typeof(CWE), false, 1, 0, new System.Object[] { message }, "Auto Accident State");
                this.add(typeof(ID), false, 1, 1, new System.Object[] { message, 136 }, "Accident Job Related Indicator");
                this.add(typeof(ID), false, 1, 1, new System.Object[] { message, 136 }, "Accident Death Indicator");
                this.add(typeof(XCN), false, 1, 0, new System.Object[] { message }, "Entered By");
                this.add(typeof(ST), false, 1, 0, new System.Object[] { message }, "Accident Description");
                this.add(typeof(ST), false, 1, 0, new System.Object[] { message }, "Brought In By");
                this.add(typeof(ID), false, 1, 1, new System.Object[] { message, 136 }, "Police Notified Indicator");
                this.add(typeof(XAD), false, 1, 0, new System.Object[] { message }, "Accident Address");
                this.add(typeof(NM), false, 1, 0, new System.Object[] { message }, "Degree of patient liability");
            } catch (HL7Exception he) {
                HapiLogFactory.GetHapiLog(GetType()).Error("Can't instantiate " + GetType().Name, he);
            }
        }
Exemplo n.º 30
0
        /**
         * Creates a PRA (Practitioner Detail) segment object that belongs to the given
         * message.
         */
        public PRA(IGroup parent, IModelClassFactory factory) : base(parent, factory)
        {
            IMessage message = Message;

            try {
                this.add(typeof(CE), false, 1, 250, new System.Object[] { message }, "Primary Key Value - PRA");
                this.add(typeof(CE), false, 0, 250, new System.Object[] { message }, "Practitioner Group");
                this.add(typeof(IS), false, 0, 3, new System.Object[] { message, 186 }, "Practitioner Category");
                this.add(typeof(ID), false, 1, 1, new System.Object[] { message, 187 }, "Provider Billing");
                this.add(typeof(SPD), false, 0, 112, new System.Object[] { message }, "Specialty");
                this.add(typeof(PLN), false, 0, 99, new System.Object[] { message }, "Practitioner ID Numbers");
                this.add(typeof(PIP), false, 0, 770, new System.Object[] { message }, "Privileges");
                this.add(typeof(DT), false, 1, 8, new System.Object[] { message }, "Date Entered Practice");
                this.add(typeof(CE), false, 1, 250, new System.Object[] { message }, "Institution");
                this.add(typeof(DT), false, 1, 8, new System.Object[] { message }, "Date Left Practice");
                this.add(typeof(CE), false, 0, 250, new System.Object[] { message }, "Government Reimbursement Billing Eligibility");
                this.add(typeof(SI), false, 1, 60, new System.Object[] { message }, "Set ID - PRA");
            } catch (HL7Exception he) {
                HapiLogFactory.GetHapiLog(GetType()).Error("Can't instantiate " + GetType().Name, he);
            }
        }