コード例 #1
0
ファイル: AD.cs プロジェクト: RickIsWright/nHapi
	///<summary>
	/// Creates a AD.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public AD(IMessage message, string description) : base(message, description){
		data = new IType[5];
		data[0] = new ST(message,"Street address");
		data[1] = new ST(message,"Other designation");
		data[2] = new ST(message,"City");
		data[3] = new ST(message,"State or province");
		data[4] = new ST(message,"Zip");
	}
コード例 #2
0
ファイル: CN.cs プロジェクト: liddictm/nHapi
	///<summary>
	/// Creates a CN.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public CN(IMessage message, string description) : base(message, description){
		data = new IType[5];
		data[0] = new ST(message,"ID");
		data[1] = new ST(message,"Family name");
		data[2] = new ST(message,"Given name");
		data[3] = new ST(message,"Middle initial or name");
		data[4] = new ST(message,"Degree");
	}
コード例 #3
0
ファイル: CE.cs プロジェクト: RickIsWright/nHapi
	///<summary>
	/// Creates a CE.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public CE(IMessage message, string description) : base(message, description){
		data = new IType[6];
		data[0] = new ID(message, 0,"Identifier");
		data[1] = new ST(message,"Text");
		data[2] = new ST(message,"Name of coding system");
		data[3] = new ST(message,"Alternate identifier");
		data[4] = new ST(message,"Alternate text");
		data[5] = new ST(message,"Name of alternate coding system");
	}
コード例 #4
0
ファイル: URS.cs プロジェクト: RickIsWright/nHapi
  ///<summary>
  /// Returns all repetitions of R/U WHERE SUBJECT DEFINITION (URS-1).
   ///</summary>
  public ST[] GetRUWHERESUBJECTDEFINITION() {
     ST[] ret = null;
    try {
        IType[] t = this.GetField(1);  
        ret = new ST[t.Length];
        for (int i = 0; i < ret.Length; i++) {
            ret[i] = (ST)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;
}
コード例 #5
0
ファイル: TS.cs プロジェクト: RickIsWright/nHapi
	///<summary>
	/// Creates a TS.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public TS(IMessage message, string description) : base(message, description){
		data = new IType[2];
		data[0] = new TSComponentOne(message,"Time of an event");
		data[1] = new ST(message,"Degree of precision");
	}
コード例 #6
0
ファイル: CQ.cs プロジェクト: liddictm/nHapi
	///<summary>
	/// Creates a CQ.
	/// <param name="message">The Message to which this Type belongs</param>
	/// <param name="description">The description of this type</param>
	///</summary>
	public CQ(IMessage message, string description) : base(message, description){
		data = new IType[2];
		data[0] = new ST(message,"Country");
		data[1] = new NM(message,"Quantity");
	}
コード例 #7
0
ファイル: CQ.cs プロジェクト: tristanwilson111/nHapi
 ///<summary>
 /// Creates a CQ.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public CQ(IMessage message, string description) : base(message, description)
 {
     data    = new IType[2];
     data[0] = new ST(message, "Country");
     data[1] = new NM(message, "Quantity");
 }