Exemplo n.º 1
0
		/// <summary> Creates a CQ.</summary>
		/// <param name="message">the Message to which this Type belongs
		/// </param>
		public CQ(Message message):base(message)
		{
			data = new Type[2];
			data[0] = new NM(message);
			data[1] = new ST(message);
		}
Exemplo n.º 2
0
 /// <summary> Creates a CQ.</summary>
 /// <param name="message">the Message to which this Type belongs
 /// </param>
 public CQ(Message message) : base(message)
 {
     data    = new Type[2];
     data[0] = new NM(message);
     data[1] = new ST(message);
 }
Exemplo n.º 3
0
		/// <summary> Creates a CK.</summary>
		/// <param name="message">the Message to which this Type belongs
		/// </param>
		public CK(Message message):base(message)
		{
			data = new Type[3];
			data[0] = new NM(message);
			data[1] = new NM(message);
			data[2] = new ID(message, 0);
		}
Exemplo n.º 4
0
		/// <summary> Returns all repetitions of CONTRACT PERIOD (PV1-27).</summary>
		public virtual NM[] getCONTRACTPERIOD()
		{
			NM[] ret = null;
			try
			{
				Type[] t = this.getField(27);
				ret = new NM[t.Length];
				for (int i = 0; i < ret.Length; i++)
				{
					ret[i] = (NM) t[i];
				}
			}
			catch (System.InvalidCastException )
			{
				throw new Exception();
			}
			catch (NuGenHL7Exception)
			{
				throw new Exception();
			}
			return ret;
		}