示例#1
0
文件: CRM_C01.cs 项目: nHapiNET/nHapi
	///<summary>
	/// Returns  first repetition of CRM_C01_PATIENT (a Group object) - creates it if necessary
	///</summary>
	public CRM_C01_PATIENT GetPATIENT() {
	   CRM_C01_PATIENT ret = null;
	   try {
	      ret = (CRM_C01_PATIENT)this.GetStructure("PATIENT");
	   } catch(HL7Exception e) {
	      HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error accessing data - this is probably a bug in the source code generator.", e);
	      throw new System.Exception("An unexpected error ocurred",e);
	   }
	   return ret;
	}
示例#2
0
        /// <summary> Returns  first repetition of CRM_C01_PATIENT (a Group object) - creates it if necessary</summary>
        public virtual CRM_C01_PATIENT getPATIENT()
        {
            CRM_C01_PATIENT ret = null;

            try
            {
                ret = (CRM_C01_PATIENT)this.get_Renamed("PATIENT");
            }
            catch (NuGenHL7Exception)
            {
                throw new Exception();
            }
            return(ret);
        }
示例#3
0
 ///<summary>
 ///Removes the given CRM_C01_PATIENT
 ///</summary>
 public void RemovePATIENT(CRM_C01_PATIENT toRemove)
 {
     this.RemoveStructure("PATIENT", toRemove);
 }