Beispiel #1
0
		/// <summary> Creates a XAD.</summary>
		/// <param name="message">the Message to which this Type belongs
		/// </param>
		public XAD(Message message):base(message)
		{
			data = new Type[14];
			data[0] = new SAD(message);
			data[1] = new ST(message);
			data[2] = new ST(message);
			data[3] = new ST(message);
			data[4] = new ST(message);
			data[5] = new ID(message, 399);
			data[6] = new ID(message, 190);
			data[7] = new ST(message);
			data[8] = new IS(message, 289);
			data[9] = new IS(message, 288);
			data[10] = new ID(message, 465);
			data[11] = new DR(message);
			data[12] = new TS(message);
			data[13] = new TS(message);
		}
Beispiel #2
0
		/// <summary> Creates a DR.</summary>
		/// <param name="message">the Message to which this Type belongs
		/// </param>
		public DR(Message message):base(message)
		{
			data = new Type[2];
			data[0] = new TS(message);
			data[1] = new TS(message);
		}
Beispiel #3
0
		/// <summary> Returns all repetitions of Substance Expiration Date (RXA-16).</summary>
		public virtual TS[] getSubstanceExpirationDate()
		{
			TS[] ret = null;
			try
			{
				Type[] t = this.getField(16);
				ret = new TS[t.Length];
				for (int i = 0; i < ret.Length; i++)
				{
					ret[i] = (TS) t[i];
				}
			}
			catch (System.InvalidCastException )
			{
				throw new Exception();
			}
			catch (NuGenHL7Exception)
			{
				throw new Exception();
			}
			return ret;
		}
Beispiel #4
0
		/// <summary> Creates a ICD.</summary>
		/// <param name="message">the Message to which this Type belongs
		/// </param>
		public ICD(Message message):base(message)
		{
			data = new Type[3];
			data[0] = new IS(message, 150);
			data[1] = new ID(message, 136);
			data[2] = new TS(message);
		}
Beispiel #5
0
 /// <summary> Creates a DIN.</summary>
 /// <param name="message">the Message to which this Type belongs
 /// </param>
 public DIN(Message message) : base(message)
 {
     data    = new Type[2];
     data[0] = new TS(message);
     data[1] = new CE(message);
 }
Beispiel #6
0
		/// <summary> Creates a CCD.</summary>
		/// <param name="message">the Message to which this Type belongs
		/// </param>
		public CCD(Message message):base(message)
		{
			data = new Type[2];
			data[0] = new ID(message, 100);
			data[1] = new TS(message);
		}
Beispiel #7
0
		/// <summary> Creates a XPN.</summary>
		/// <param name="message">the Message to which this Type belongs
		/// </param>
		public XPN(Message message):base(message)
		{
			data = new Type[14];
			data[0] = new FN(message);
			data[1] = new ST(message);
			data[2] = new ST(message);
			data[3] = new ST(message);
			data[4] = new ST(message);
			data[5] = new IS(message, 360);
			data[6] = new ID(message, 200);
			data[7] = new ID(message, 465);
			data[8] = new CE(message);
			data[9] = new DR(message);
			data[10] = new ID(message, 444);
			data[11] = new TS(message);
			data[12] = new TS(message);
			data[13] = new ST(message);
		}
Beispiel #8
0
 /// <summary> Creates a FC.</summary>
 /// <param name="message">the Message to which this Type belongs
 /// </param>
 public FC(Message message) : base(message)
 {
     data    = new Type[2];
     data[0] = new IS(message, 64);
     data[1] = new TS(message);
 }
Beispiel #9
0
		/// <summary> Creates a DLD.</summary>
		/// <param name="message">the Message to which this Type belongs
		/// </param>
		public DLD(Message message):base(message)
		{
			data = new Type[2];
			data[0] = new IS(message, 113);
			data[1] = new TS(message);
		}
Beispiel #10
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[12];
			data[0] = new CQ(message);
			data[1] = new RI(message);
			data[2] = new ST(message);
			data[3] = new TS(message);
			data[4] = new TS(message);
			data[5] = new ST(message);
			data[6] = new ST(message);
			data[7] = new TX(message);
			data[8] = new ID(message, 472);
			data[9] = new OSD(message);
			data[10] = new CE(message);
			data[11] = new NM(message);
		}
Beispiel #11
0
		/// <summary> Creates a NDL.</summary>
		/// <param name="message">the Message to which this Type belongs
		/// </param>
		public NDL(Message message):base(message)
		{
			data = new Type[11];
			data[0] = new CNN(message);
			data[1] = new TS(message);
			data[2] = new TS(message);
			data[3] = new IS(message, 302);
			data[4] = new IS(message, 303);
			data[5] = new IS(message, 304);
			data[6] = new HD(message);
			data[7] = new IS(message, 306);
			data[8] = new IS(message, 305);
			data[9] = new IS(message, 307);
			data[10] = new IS(message, 308);
		}
Beispiel #12
0
		/// <summary> Creates a PPN.</summary>
		/// <param name="message">the Message to which this Type belongs
		/// </param>
		public PPN(Message message):base(message)
		{
			data = new Type[24];
			data[0] = new ST(message);
			data[1] = new FN(message);
			data[2] = new ST(message);
			data[3] = new ST(message);
			data[4] = new ST(message);
			data[5] = new ST(message);
			data[6] = new IS(message, 360);
			data[7] = new IS(message, 297);
			data[8] = new HD(message);
			data[9] = new ID(message, 200);
			data[10] = new ST(message);
			data[11] = new ID(message, 61);
			data[12] = new ID(message, 203);
			data[13] = new HD(message);
			data[14] = new TS(message);
			data[15] = new ID(message, 465);
			data[16] = new CE(message);
			data[17] = new DR(message);
			data[18] = new ID(message, 444);
			data[19] = new TS(message);
			data[20] = new TS(message);
			data[21] = new ST(message);
			data[22] = new CWE(message);
			data[23] = new CWE(message);
		}
Beispiel #13
0
		/// <summary> Creates a FC.</summary>
		/// <param name="message">the Message to which this Type belongs
		/// </param>
		public FC(Message message):base(message)
		{
			data = new Type[2];
			data[0] = new IS(message, 64);
			data[1] = new TS(message);
		}