Esempio n. 1
0
        //Create possibility to switch between A8, A7, A6 and A5
        public static void GeneratePDFFile(List <QACard> printable, String outputName, DIN format)
        {
            NameOfFile = NameOfFile + outputName + ".tex";

            GeneratePDF.format = format;

            //Would not work...
            if (format == DIN.A5)
            {
                cellCountMax  = 2;
                entryCountMax = 1;
            }
            else if (format == DIN.A6)
            {
                cellCountMax  = 4;
                entryCountMax = 1;
            }
            else if (format == DIN.A7)
            {
                cellCountMax  = 8;
                entryCountMax = 2;
            }
            else if (format == DIN.A8)
            {
                cellCountMax  = 16;
                entryCountMax = 4;
            }


            GenerateTexOutput(printable);
            CompileTexToPdf();
        }
Esempio n. 2
0
        ///<summary>
        /// Returns a single repetition of Institution Inactivation Date(STF-13).
        /// throws HL7Exception if the repetition number is invalid.
        /// <param name="rep">The repetition number (this is a repeating field)</param>
        ///</summary>
        public DIN GetInstitutionInactivationDate(int rep)
        {
            DIN ret = null;

            try
            {
                IType t = this.GetField(13, rep);
                ret = (DIN)t;
            } catch (System.Exception ex) {
                HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected problem obtaining field value.  This is a bug.", ex);
                throw new System.Exception("An unexpected error ocurred", ex);
            }
            return(ret);
        }
Esempio n. 3
0
        /// <summary> Returns a single repetition of Institution Inactivation Date (STF-13).</summary>
        /// <param name="rep">the repetition number (this is a repeating field)
        /// </param>
        /// <throws>  HL7Exception if the repetition number is invalid. </throws>
        public virtual DIN getInstitutionInactivationDate(int rep)
        {
            DIN ret = null;

            try
            {
                Type t = this.getField(13, rep);
                ret = (DIN)t;
            }
            catch (System.InvalidCastException)
            {
                throw new Exception();
            }
            return(ret);
        }
Esempio n. 4
0
 ///<summary>
 /// Returns all repetitions of Institution Inactivation Date (STF-13).
 ///</summary>
 public DIN[] GetInstitutionInactivationDate()
 {
     DIN[] ret = null;
     try {
         IType[] t = this.GetField(13);
         ret = new DIN[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (DIN)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);
 }
Esempio n. 5
0
 /// <summary> Returns all repetitions of Institution Inactivation Date (STF-13).</summary>
 public virtual DIN[] getInstitutionInactivationDate()
 {
     DIN[] ret = null;
     try
     {
         Type[] t = this.getField(13);
         ret = new DIN[t.Length];
         for (int i = 0; i < ret.Length; i++)
         {
             ret[i] = (DIN)t[i];
         }
     }
     catch (System.InvalidCastException)
     {
         throw new Exception();
     }
     catch (NuGenHL7Exception)
     {
         throw new Exception();
     }
     return(ret);
 }
Esempio n. 6
0
		/// <summary> Returns all repetitions of Institution Inactivation Date (STF-13).</summary>
		public virtual DIN[] getInstitutionInactivationDate()
		{
			DIN[] ret = null;
			try
			{
				Type[] t = this.getField(13);
				ret = new DIN[t.Length];
				for (int i = 0; i < ret.Length; i++)
				{
					ret[i] = (DIN) t[i];
				}
			}
			catch (System.InvalidCastException )
			{
				throw new Exception();
			}
			catch (NuGenHL7Exception)
			{
				throw new Exception();
			}
			return ret;
		}