コード例 #1
0
ファイル: RXO.cs プロジェクト: snosrap/nhapi
 ///<summary>
 /// Returns all repetitions of Pharmacist/Treatment Supplier's Verifier ID (RXO-15).
 ///</summary>
 public XCN[] GetPharmacistTreatmentSupplierSVerifierID()
 {
     XCN[] ret = null;
     try {
     IType[] t = this.GetField(15);
     ret = new XCN[t.Length];
     for (int i = 0; i < ret.Length; i++) {
     ret[i] = (XCN)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;
 }
コード例 #2
0
ファイル: PD1.cs プロジェクト: snosrap/nhapi
 ///<summary>
 /// Returns all repetitions of Patient Primary Care Provider Name and ID No. (PD1-4).
 ///</summary>
 public XCN[] GetPatientPrimaryCareProviderNameIDNo()
 {
     XCN[] ret = null;
     try {
     IType[] t = this.GetField(4);
     ret = new XCN[t.Length];
     for (int i = 0; i < ret.Length; i++) {
     ret[i] = (XCN)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;
 }