///<summary> /// Creates a PIP. /// <param name="message">The Message to which this Type belongs</param> /// <param name="description">The description of this type</param> ///</summary> public PIP(IMessage message, string description) : base(message, description){ data = new IType[5]; data[0] = new CE(message,"Privilege"); data[1] = new CE(message,"Privilege class"); data[2] = new DT(message,"Expiration date"); data[3] = new DT(message,"Activation date"); data[4] = new EI(message,"Facility (EI)"); }
/// <summary> Creates a PIP. </summary> /// /// <param name="message"> The Message to which this Type belongs. </param> /// <param name="description"> The description of this type. </param> public PIP(IMessage message, string description) : base(message, description) { data = new IType[5]; data[0] = new CE(message, "Privilege"); data[1] = new CE(message, "Privilege class"); data[2] = new DT(message, "Expiration date"); data[3] = new DT(message, "Activation date"); data[4] = new EI(message, "Facility (EI)"); }
///<summary> /// Returns all repetitions of Placer Order Number (TXA-14). ///</summary> public EI[] GetPlacerOrderNumber() { EI[] ret = null; try { IType[] t = this.GetField(14); 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; }
///<summary> /// Creates a EIP. /// <param name="message">The Message to which this Type belongs</param> /// <param name="description">The description of this type</param> ///</summary> public EIP(IMessage message, string description) : base(message, description){ data = new IType[2]; data[0] = new EI(message,"Parent´s placer order number"); data[1] = new EI(message,"Parent´s filler order number"); }
///<summary> /// Creates a EIP. /// <param name="message">The Message to which this Type belongs</param> /// <param name="description">The description of this type</param> ///</summary> public EIP(IMessage message, string description) : base(message, description) { data = new IType[2]; data[0] = new EI(message, "Parent's placer order number"); data[1] = new EI(message, "Parent's filler order number"); }