Exemple #1
0
		/// <summary> Creates a TQ.</summary>
		/// <param name="message">the Message to which this Type belongs
		/// </param>
		public TQ(Message message):base(message)
		{
			data = new Type[10];
			data[0] = new CQ_QUANTITY(message);
			data[1] = new CM_RI(message);
			data[2] = new ST(message);
			data[3] = new TS(message);
			data[4] = new TS(message);
			data[5] = new ID(message, 0);
			data[6] = new ST(message);
			data[7] = new TX(message);
			data[8] = new ID(message, 0);
			data[9] = new ST(message);
		}
Exemple #2
0
		/// <summary> Creates a CM_SPS.</summary>
		/// <param name="message">the Message to which this Type belongs
		/// </param>
		public CM_SPS(Message message):base(message)
		{
			data = new Type[5];
			data[0] = new CE(message);
			data[1] = new TX(message);
			data[2] = new TX(message);
			data[3] = new CE(message);
			data[4] = new CE(message);
		}
Exemple #3
0
		/// <summary> Returns all repetitions of SI Conversion Factor (OM2-6).</summary>
		public virtual TX[] getSIConversionFactor()
		{
			TX[] ret = null;
			try
			{
				Type[] t = this.getField(6);
				ret = new TX[t.Length];
				for (int i = 0; i < ret.Length; i++)
				{
					ret[i] = (TX) t[i];
				}
			}
			catch (System.InvalidCastException )
			{
				throw new Exception();
			}
			catch (NuGenHL7Exception)
			{
				throw new Exception();
			}
			return ret;
		}