Files
csharpcode/patientman/Datalib/DatabaseSpecific/PersistenceInfoProvider.cs
2025-08-02 05:20:17 +07:00

399 lines
36 KiB
C#

///////////////////////////////////////////////////////////////
// This is generated code.
//////////////////////////////////////////////////////////////
// Code is generated using LLBLGen Pro version: 4.2
// Code is generated on:
// Code is generated using templates: SD.TemplateBindings.SharedTemplates
// Templates vendor: Solutions Design.
//////////////////////////////////////////////////////////////
using System;
using System.Collections;
using System.Data;
using SD.LLBLGen.Pro.ORMSupportClasses;
namespace Datalib.DatabaseSpecific
{
/// <summary>Singleton implementation of the PersistenceInfoProvider. This class is the singleton wrapper through which the actual instance is retrieved.</summary>
/// <remarks>It uses a single instance of an internal class. The access isn't marked with locks as the PersistenceInfoProviderBase class is threadsafe.</remarks>
internal static class PersistenceInfoProviderSingleton
{
#region Class Member Declarations
private static readonly IPersistenceInfoProvider _providerInstance = new PersistenceInfoProviderCore();
#endregion
/// <summary>Dummy static constructor to make sure threadsafe initialization is performed.</summary>
static PersistenceInfoProviderSingleton()
{
}
/// <summary>Gets the singleton instance of the PersistenceInfoProviderCore</summary>
/// <returns>Instance of the PersistenceInfoProvider.</returns>
public static IPersistenceInfoProvider GetInstance()
{
return _providerInstance;
}
}
/// <summary>Actual implementation of the PersistenceInfoProvider. Used by singleton wrapper.</summary>
internal class PersistenceInfoProviderCore : PersistenceInfoProviderBase
{
/// <summary>Initializes a new instance of the <see cref="PersistenceInfoProviderCore"/> class.</summary>
internal PersistenceInfoProviderCore()
{
Init();
}
/// <summary>Method which initializes the internal datastores with the structure of hierarchical types.</summary>
private void Init()
{
this.InitClass(22);
InitTblAgeGroupEntityMappings();
InitTblAgencyEntityMappings();
InitTblChildEntityMappings();
InitTblClinicInfoEntityMappings();
InitTblCommuneEntityMappings();
InitTblDiaryEntityMappings();
InitTblDistrictEntityMappings();
InitTblExaminationInfoEntityMappings();
InitTblPatientEntityMappings();
InitTblPreClinicsInfoEntityMappings();
InitTblPregnanceInfoEntityMappings();
InitTblProvinceEntityMappings();
InitTblReferralFromPlaceEntityMappings();
InitTblReferralsToEntityMappings();
InitTblReferraltoServiceEntityMappings();
InitTblRegimenEntityMappings();
InitTblRegimenStopReasonEntityMappings();
InitTblServiceEntityMappings();
InitTblTestEntityMappings();
InitTblTreatmentEntityMappings();
InitTblTreatmentInfoEntityMappings();
InitTblWaitingListEntityMappings();
}
/// <summary>Inits TblAgeGroupEntity's mappings</summary>
private void InitTblAgeGroupEntityMappings()
{
this.AddElementMapping("TblAgeGroupEntity", @"FHI", @"Default", "tblAgeGroup", 4, 0);
this.AddElementFieldMapping("TblAgeGroupEntity", "Age", "Age", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 0);
this.AddElementFieldMapping("TblAgeGroupEntity", "Grp1", "Grp1", true, "VarWChar", 10, 0, 0, false, "", null, typeof(System.String), 1);
this.AddElementFieldMapping("TblAgeGroupEntity", "Grp2", "Grp2", true, "VarWChar", 10, 0, 0, false, "", null, typeof(System.String), 2);
this.AddElementFieldMapping("TblAgeGroupEntity", "Id", "ID", false, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 3);
}
/// <summary>Inits TblAgencyEntity's mappings</summary>
private void InitTblAgencyEntityMappings()
{
this.AddElementMapping("TblAgencyEntity", @"FHI", @"Default", "tblAgency", 3, 0);
this.AddElementFieldMapping("TblAgencyEntity", "AgencyTypeId", "AgencyTypeID", false, "VarWChar", 2, 0, 0, false, "", null, typeof(System.String), 0);
this.AddElementFieldMapping("TblAgencyEntity", "EAgencyTypeName", "eAgencyTypeName", true, "VarWChar", 255, 0, 0, false, "", null, typeof(System.String), 1);
this.AddElementFieldMapping("TblAgencyEntity", "VAgencyTypeName", "vAgencyTypeName", true, "VarWChar", 255, 0, 0, false, "", null, typeof(System.String), 2);
}
/// <summary>Inits TblChildEntity's mappings</summary>
private void InitTblChildEntityMappings()
{
this.AddElementMapping("TblChildEntity", @"FHI", @"Default", "tblChildren", 13, 0);
this.AddElementFieldMapping("TblChildEntity", "ChildId", "ChildId", true, "VarWChar", 15, 0, 0, false, "", null, typeof(System.String), 0);
this.AddElementFieldMapping("TblChildEntity", "ChildName", "ChildName", true, "VarWChar", 25, 0, 0, false, "", null, typeof(System.String), 1);
this.AddElementFieldMapping("TblChildEntity", "Ctxdate", "CTXDate", true, "Date", 0, 0, 0, false, "", null, typeof(System.DateTime), 2);
this.AddElementFieldMapping("TblChildEntity", "FeedingType", "FeedingType", false, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 3);
this.AddElementFieldMapping("TblChildEntity", "Hiv18Date", "HIV18Date", true, "Date", 0, 0, 0, false, "", null, typeof(System.DateTime), 4);
this.AddElementFieldMapping("TblChildEntity", "Hiv18Result", "HIV18Result", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 5);
this.AddElementFieldMapping("TblChildEntity", "Pcrcdate1", "PCRCDate1", true, "Date", 0, 0, 0, false, "", null, typeof(System.DateTime), 6);
this.AddElementFieldMapping("TblChildEntity", "Pcrcdate2", "PCRCDate2", true, "Date", 0, 0, 0, false, "", null, typeof(System.DateTime), 7);
this.AddElementFieldMapping("TblChildEntity", "Pcrresult1", "PCRResult1", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 8);
this.AddElementFieldMapping("TblChildEntity", "Pcrresult2", "PCRResult2", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 9);
this.AddElementFieldMapping("TblChildEntity", "PreganceId", "PreganceID", true, "VarWChar", 32, 0, 0, false, "", null, typeof(System.String), 10);
this.AddElementFieldMapping("TblChildEntity", "Sex", "Sex", false, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 11);
this.AddElementFieldMapping("TblChildEntity", "UniqueKey", "UniqueKey", false, "VarWChar", 32, 0, 0, false, "", null, typeof(System.String), 12);
}
/// <summary>Inits TblClinicInfoEntity's mappings</summary>
private void InitTblClinicInfoEntityMappings()
{
this.AddElementMapping("TblClinicInfoEntity", @"FHI", @"Default", "tblClinicInfo", 20, 0);
this.AddElementFieldMapping("TblClinicInfoEntity", "Anemia", "Anemia", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 0);
this.AddElementFieldMapping("TblClinicInfoEntity", "Blackouts", "Blackouts", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 1);
this.AddElementFieldMapping("TblClinicInfoEntity", "Burning", "Burning", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 2);
this.AddElementFieldMapping("TblClinicInfoEntity", "ClinicDate", "ClinicDate", true, "Date", 0, 0, 0, false, "", null, typeof(System.DateTime), 3);
this.AddElementFieldMapping("TblClinicInfoEntity", "ClinicStage", "ClinicStage", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 4);
this.AddElementFieldMapping("TblClinicInfoEntity", "Colic", "Colic", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 5);
this.AddElementFieldMapping("TblClinicInfoEntity", "Depression", "Depression", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 6);
this.AddElementFieldMapping("TblClinicInfoEntity", "Diarrhea", "Diarrhea", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 7);
this.AddElementFieldMapping("TblClinicInfoEntity", "FatDistributionChanges", "FatDistributionChanges", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 8);
this.AddElementFieldMapping("TblClinicInfoEntity", "Headache", "Headache", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 9);
this.AddElementFieldMapping("TblClinicInfoEntity", "Height", "Height", true, "Double", 0, 15, 0, false, "", null, typeof(System.Double), 10);
this.AddElementFieldMapping("TblClinicInfoEntity", "Jaundice", "jaundice", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 11);
this.AddElementFieldMapping("TblClinicInfoEntity", "Motion", "Motion", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 12);
this.AddElementFieldMapping("TblClinicInfoEntity", "Nausea", "Nausea", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 13);
this.AddElementFieldMapping("TblClinicInfoEntity", "PatientId", "PatientID", false, "VarWChar", 15, 0, 0, false, "", null, typeof(System.String), 14);
this.AddElementFieldMapping("TblClinicInfoEntity", "Poisoning", "Poisoning", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 15);
this.AddElementFieldMapping("TblClinicInfoEntity", "ProgressTb", "ProgressTB", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 16);
this.AddElementFieldMapping("TblClinicInfoEntity", "Rash", "Rash", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 17);
this.AddElementFieldMapping("TblClinicInfoEntity", "UniqueKey", "UniqueKey", false, "VarWChar", 32, 0, 0, false, "", null, typeof(System.String), 18);
this.AddElementFieldMapping("TblClinicInfoEntity", "Weight", "Weight", true, "Double", 0, 15, 0, false, "", null, typeof(System.Double), 19);
}
/// <summary>Inits TblCommuneEntity's mappings</summary>
private void InitTblCommuneEntityMappings()
{
this.AddElementMapping("TblCommuneEntity", @"FHI", @"Default", "tblCommunes", 3, 0);
this.AddElementFieldMapping("TblCommuneEntity", "Communeid", "communeid", false, "VarWChar", 7, 0, 0, false, "", null, typeof(System.String), 0);
this.AddElementFieldMapping("TblCommuneEntity", "Communename", "communename", true, "VarWChar", 255, 0, 0, false, "", null, typeof(System.String), 1);
this.AddElementFieldMapping("TblCommuneEntity", "Districtid", "districtid", true, "VarWChar", 5, 0, 0, false, "", null, typeof(System.String), 2);
}
/// <summary>Inits TblDiaryEntity's mappings</summary>
private void InitTblDiaryEntityMappings()
{
this.AddElementMapping("TblDiaryEntity", @"FHI", @"Default", "tblDiary", 6, 0);
this.AddElementFieldMapping("TblDiaryEntity", "EventDate", "EventDate", true, "Date", 0, 0, 0, false, "", null, typeof(System.DateTime), 0);
this.AddElementFieldMapping("TblDiaryEntity", "OtherResult", "OtherResult", true, "VarWChar", 255, 0, 0, false, "", null, typeof(System.String), 1);
this.AddElementFieldMapping("TblDiaryEntity", "PatientId", "PatientID", true, "VarWChar", 15, 0, 0, false, "", null, typeof(System.String), 2);
this.AddElementFieldMapping("TblDiaryEntity", "Reason", "Reason", true, "VarWChar", 255, 0, 0, false, "", null, typeof(System.String), 3);
this.AddElementFieldMapping("TblDiaryEntity", "Result", "Result", true, "VarWChar", 1, 0, 0, false, "", null, typeof(System.String), 4);
this.AddElementFieldMapping("TblDiaryEntity", "UniqueKey", "UniqueKey", false, "VarWChar", 32, 0, 0, false, "", null, typeof(System.String), 5);
}
/// <summary>Inits TblDistrictEntity's mappings</summary>
private void InitTblDistrictEntityMappings()
{
this.AddElementMapping("TblDistrictEntity", @"FHI", @"Default", "tblDistricts", 3, 0);
this.AddElementFieldMapping("TblDistrictEntity", "Districtid", "districtid", false, "VarWChar", 5, 0, 0, false, "", null, typeof(System.String), 0);
this.AddElementFieldMapping("TblDistrictEntity", "Districtname", "districtname", true, "VarWChar", 26, 0, 0, false, "", null, typeof(System.String), 1);
this.AddElementFieldMapping("TblDistrictEntity", "Provinceid", "provinceid", true, "VarWChar", 3, 0, 0, false, "", null, typeof(System.String), 2);
}
/// <summary>Inits TblExaminationInfoEntity's mappings</summary>
private void InitTblExaminationInfoEntityMappings()
{
this.AddElementMapping("TblExaminationInfoEntity", @"FHI", @"Default", "tblExaminationInfo", 38, 0);
this.AddElementFieldMapping("TblExaminationInfoEntity", "Anemia", "Anemia", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 0);
this.AddElementFieldMapping("TblExaminationInfoEntity", "Blackouts", "Blackouts", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 1);
this.AddElementFieldMapping("TblExaminationInfoEntity", "Burning", "Burning", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 2);
this.AddElementFieldMapping("TblExaminationInfoEntity", "Calc", "Calc", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 3);
this.AddElementFieldMapping("TblExaminationInfoEntity", "ClinicStage", "ClinicStage", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 4);
this.AddElementFieldMapping("TblExaminationInfoEntity", "Colic", "Colic", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 5);
this.AddElementFieldMapping("TblExaminationInfoEntity", "CommuneId", "CommuneID", true, "VarWChar", 7, 0, 0, false, "", null, typeof(System.String), 6);
this.AddElementFieldMapping("TblExaminationInfoEntity", "DayDiff", "DayDiff", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 7);
this.AddElementFieldMapping("TblExaminationInfoEntity", "Depression", "Depression", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 8);
this.AddElementFieldMapping("TblExaminationInfoEntity", "Diarrhea", "Diarrhea", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 9);
this.AddElementFieldMapping("TblExaminationInfoEntity", "DistrictId", "DistrictID", true, "VarWChar", 5, 0, 0, false, "", null, typeof(System.String), 10);
this.AddElementFieldMapping("TblExaminationInfoEntity", "EndExamDate", "endExamDate", true, "Date", 0, 0, 0, false, "", null, typeof(System.DateTime), 11);
this.AddElementFieldMapping("TblExaminationInfoEntity", "ExamDate", "ExamDate", true, "Date", 0, 0, 0, false, "", null, typeof(System.DateTime), 12);
this.AddElementFieldMapping("TblExaminationInfoEntity", "FatDistributionChanges", "FatDistributionChanges", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 13);
this.AddElementFieldMapping("TblExaminationInfoEntity", "Headache", "Headache", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 14);
this.AddElementFieldMapping("TblExaminationInfoEntity", "Height", "Height", true, "Double", 0, 15, 0, false, "", null, typeof(System.Double), 15);
this.AddElementFieldMapping("TblExaminationInfoEntity", "IsClinic", "IsClinic", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 16);
this.AddElementFieldMapping("TblExaminationInfoEntity", "Jaundice", "jaundice", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 17);
this.AddElementFieldMapping("TblExaminationInfoEntity", "LateAppointmentReason", "LateAppointmentReason", true, "LongVarWChar", 536870911, 0, 0, false, "", null, typeof(System.String), 18);
this.AddElementFieldMapping("TblExaminationInfoEntity", "LateTimes", "LateTimes", true, "VarWChar", 10, 0, 0, false, "", null, typeof(System.String), 19);
this.AddElementFieldMapping("TblExaminationInfoEntity", "Motion", "Motion", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 20);
this.AddElementFieldMapping("TblExaminationInfoEntity", "Nausea", "Nausea", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 21);
this.AddElementFieldMapping("TblExaminationInfoEntity", "NoSelfExam", "NoSelfExam", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 22);
this.AddElementFieldMapping("TblExaminationInfoEntity", "OutPatientTreatment", "OutPatientTreatment", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 23);
this.AddElementFieldMapping("TblExaminationInfoEntity", "PatientId", "PatientID", false, "VarWChar", 15, 0, 0, false, "", null, typeof(System.String), 24);
this.AddElementFieldMapping("TblExaminationInfoEntity", "Poisoning", "Poisoning", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 25);
this.AddElementFieldMapping("TblExaminationInfoEntity", "ProgressTb", "ProgressTB", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 26);
this.AddElementFieldMapping("TblExaminationInfoEntity", "ProvinceId", "ProvinceID", true, "VarWChar", 3, 0, 0, false, "", null, typeof(System.String), 27);
this.AddElementFieldMapping("TblExaminationInfoEntity", "Rash", "Rash", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 28);
this.AddElementFieldMapping("TblExaminationInfoEntity", "ReasonEnd", "ReasonEnd", true, "VarWChar", 2, 0, 0, false, "", null, typeof(System.String), 29);
this.AddElementFieldMapping("TblExaminationInfoEntity", "ReExamDate", "ReExamDate", true, "Date", 0, 0, 0, false, "", null, typeof(System.DateTime), 30);
this.AddElementFieldMapping("TblExaminationInfoEntity", "ReTreatment", "ReTreatment", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 31);
this.AddElementFieldMapping("TblExaminationInfoEntity", "Status", "Status", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 32);
this.AddElementFieldMapping("TblExaminationInfoEntity", "TbScreen", "TbScreen", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 33);
this.AddElementFieldMapping("TblExaminationInfoEntity", "TbScreenResult", "tbScreenResult", true, "VarWChar", 2, 0, 0, false, "", null, typeof(System.String), 34);
this.AddElementFieldMapping("TblExaminationInfoEntity", "TreatmentFollow", "TreatmentFollow", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 35);
this.AddElementFieldMapping("TblExaminationInfoEntity", "UniqueKey", "UniqueKey", false, "VarWChar", 32, 0, 0, false, "", null, typeof(System.String), 36);
this.AddElementFieldMapping("TblExaminationInfoEntity", "Weight", "Weight", true, "Double", 0, 15, 0, false, "", null, typeof(System.Double), 37);
}
/// <summary>Inits TblPatientEntity's mappings</summary>
private void InitTblPatientEntityMappings()
{
this.AddElementMapping("TblPatientEntity", @"FHI", @"Default", "tblPatients", 28, 0);
this.AddElementFieldMapping("TblPatientEntity", "Address", "Address", true, "VarWChar", 255, 0, 0, false, "", null, typeof(System.String), 0);
this.AddElementFieldMapping("TblPatientEntity", "BirthYear", "BirthYear", false, "Integer", 0, 10, 0, false, "", null, typeof(System.Int32), 1);
this.AddElementFieldMapping("TblPatientEntity", "CommuneId", "CommuneID", true, "VarWChar", 7, 0, 0, false, "", null, typeof(System.String), 2);
this.AddElementFieldMapping("TblPatientEntity", "CreateDate", "CreateDate", true, "Date", 0, 0, 0, false, "", null, typeof(System.DateTime), 3);
this.AddElementFieldMapping("TblPatientEntity", "DateofArv", "DateofARV", true, "Date", 0, 0, 0, false, "", null, typeof(System.DateTime), 4);
this.AddElementFieldMapping("TblPatientEntity", "DateofReceivingDrug", "DateofReceivingDrug", true, "Date", 0, 0, 0, false, "", null, typeof(System.DateTime), 5);
this.AddElementFieldMapping("TblPatientEntity", "Dateofreferral", "Dateofreferral", true, "Date", 0, 0, 0, false, "", null, typeof(System.DateTime), 6);
this.AddElementFieldMapping("TblPatientEntity", "DateofRegistration", "DateofRegistration", true, "Date", 0, 0, 0, false, "", null, typeof(System.DateTime), 7);
this.AddElementFieldMapping("TblPatientEntity", "DeathDate", "DeathDate", true, "Date", 0, 0, 0, false, "", null, typeof(System.DateTime), 8);
this.AddElementFieldMapping("TblPatientEntity", "DistrictId", "DistrictID", true, "VarWChar", 5, 0, 0, false, "", null, typeof(System.String), 9);
this.AddElementFieldMapping("TblPatientEntity", "HaveArvBefore", "HaveArvBefore", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 10);
this.AddElementFieldMapping("TblPatientEntity", "HivConfirmedDate", "HivConfirmedDate", true, "Date", 0, 0, 0, false, "", null, typeof(System.DateTime), 11);
this.AddElementFieldMapping("TblPatientEntity", "IdentityCardNo", "IdentityCardNo", true, "VarWChar", 20, 0, 0, false, "", null, typeof(System.String), 12);
this.AddElementFieldMapping("TblPatientEntity", "Insuranceid", "insuranceid", true, "VarWChar", 50, 0, 0, false, "", null, typeof(System.String), 13);
this.AddElementFieldMapping("TblPatientEntity", "ModifyDate", "ModifyDate", true, "Date", 0, 0, 0, false, "", null, typeof(System.DateTime), 14);
this.AddElementFieldMapping("TblPatientEntity", "OldPatientId", "OldPatientID", true, "VarWChar", 15, 0, 0, false, "", null, typeof(System.String), 15);
this.AddElementFieldMapping("TblPatientEntity", "PatientId", "PatientID", false, "VarWChar", 15, 0, 0, false, "", null, typeof(System.String), 16);
this.AddElementFieldMapping("TblPatientEntity", "PatientName", "PatientName", true, "VarWChar", 255, 0, 0, false, "", null, typeof(System.String), 17);
this.AddElementFieldMapping("TblPatientEntity", "ProvinceId", "ProvinceID", true, "VarWChar", 3, 0, 0, false, "", null, typeof(System.String), 18);
this.AddElementFieldMapping("TblPatientEntity", "ReferralId", "ReferralID", true, "VarWChar", 2, 0, 0, false, "", null, typeof(System.String), 19);
this.AddElementFieldMapping("TblPatientEntity", "ReferralName", "ReferralName", true, "VarWChar", 255, 0, 0, false, "", null, typeof(System.String), 20);
this.AddElementFieldMapping("TblPatientEntity", "ReferralProvinceId", "ReferralProvinceID", true, "VarWChar", 3, 0, 0, false, "", null, typeof(System.String), 21);
this.AddElementFieldMapping("TblPatientEntity", "Regimenid", "Regimenid", true, "VarWChar", 2, 0, 0, false, "", null, typeof(System.String), 22);
this.AddElementFieldMapping("TblPatientEntity", "Sex", "Sex", false, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 23);
this.AddElementFieldMapping("TblPatientEntity", "Sms", "SMS", false, "Boolean", 2, 0, 0, false, "", null, typeof(System.Boolean), 24);
this.AddElementFieldMapping("TblPatientEntity", "Status", "Status", true, "VarWChar", 2, 0, 0, false, "", null, typeof(System.String), 25);
this.AddElementFieldMapping("TblPatientEntity", "SupporterInfo", "SupporterInfo", true, "LongVarWChar", 536870911, 0, 0, false, "", null, typeof(System.String), 26);
this.AddElementFieldMapping("TblPatientEntity", "TelephoneNo", "TelephoneNo", true, "VarWChar", 20, 0, 0, false, "", null, typeof(System.String), 27);
}
/// <summary>Inits TblPreClinicsInfoEntity's mappings</summary>
private void InitTblPreClinicsInfoEntityMappings()
{
this.AddElementMapping("TblPreClinicsInfoEntity", @"FHI", @"Default", "tblPreClinicsInfo", 7, 0);
this.AddElementFieldMapping("TblPreClinicsInfoEntity", "PatientId", "PatientID", false, "VarWChar", 15, 0, 0, false, "", null, typeof(System.String), 0);
this.AddElementFieldMapping("TblPreClinicsInfoEntity", "QualityResult", "QualityResult", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 1);
this.AddElementFieldMapping("TblPreClinicsInfoEntity", "QuantityResult", "QuantityResult", true, "Double", 0, 15, 0, false, "", null, typeof(System.Double), 2);
this.AddElementFieldMapping("TblPreClinicsInfoEntity", "Status", "Status", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 3);
this.AddElementFieldMapping("TblPreClinicsInfoEntity", "TestDate", "TestDate", true, "Date", 0, 0, 0, false, "", null, typeof(System.DateTime), 4);
this.AddElementFieldMapping("TblPreClinicsInfoEntity", "Testid", "Testid", false, "VarWChar", 2, 0, 0, false, "", null, typeof(System.String), 5);
this.AddElementFieldMapping("TblPreClinicsInfoEntity", "UniqueKey", "UniqueKey", false, "VarWChar", 32, 0, 0, false, "", null, typeof(System.String), 6);
}
/// <summary>Inits TblPregnanceInfoEntity's mappings</summary>
private void InitTblPregnanceInfoEntityMappings()
{
this.AddElementMapping("TblPregnanceInfoEntity", @"FHI", @"Default", "tblPregnanceInfo", 5, 0);
this.AddElementFieldMapping("TblPregnanceInfoEntity", "EstimatedDelivery", "EstimatedDelivery", true, "Date", 0, 0, 0, false, "", null, typeof(System.DateTime), 0);
this.AddElementFieldMapping("TblPregnanceInfoEntity", "Note", "Note", true, "LongVarWChar", 536870911, 0, 0, false, "", null, typeof(System.String), 1);
this.AddElementFieldMapping("TblPregnanceInfoEntity", "PatientId", "PatientID", true, "VarWChar", 15, 0, 0, false, "", null, typeof(System.String), 2);
this.AddElementFieldMapping("TblPregnanceInfoEntity", "PregnanceDate", "PregnanceDate", true, "Date", 0, 0, 0, false, "", null, typeof(System.DateTime), 3);
this.AddElementFieldMapping("TblPregnanceInfoEntity", "UniqueKey", "UniqueKey", false, "VarWChar", 32, 0, 0, false, "", null, typeof(System.String), 4);
}
/// <summary>Inits TblProvinceEntity's mappings</summary>
private void InitTblProvinceEntityMappings()
{
this.AddElementMapping("TblProvinceEntity", @"FHI", @"Default", "tblProvinces", 2, 0);
this.AddElementFieldMapping("TblProvinceEntity", "Provinceid", "provinceid", false, "VarWChar", 3, 0, 0, false, "", null, typeof(System.String), 0);
this.AddElementFieldMapping("TblProvinceEntity", "Provincename", "provincename", true, "VarWChar", 30, 0, 0, false, "", null, typeof(System.String), 1);
}
/// <summary>Inits TblReferralFromPlaceEntity's mappings</summary>
private void InitTblReferralFromPlaceEntityMappings()
{
this.AddElementMapping("TblReferralFromPlaceEntity", @"FHI", @"Default", "tblReferralFromPlaces", 3, 0);
this.AddElementFieldMapping("TblReferralFromPlaceEntity", "EReferralName", "eReferralName", true, "VarWChar", 255, 0, 0, false, "", null, typeof(System.String), 0);
this.AddElementFieldMapping("TblReferralFromPlaceEntity", "ReferralId", "ReferralID", false, "VarWChar", 2, 0, 0, false, "", null, typeof(System.String), 1);
this.AddElementFieldMapping("TblReferralFromPlaceEntity", "VReferralName", "vReferralName", true, "VarWChar", 255, 0, 0, false, "", null, typeof(System.String), 2);
}
/// <summary>Inits TblReferralsToEntity's mappings</summary>
private void InitTblReferralsToEntityMappings()
{
this.AddElementMapping("TblReferralsToEntity", @"FHI", @"Default", "tblReferralsTo", 11, 0);
this.AddElementFieldMapping("TblReferralsToEntity", "AgencyTypeId", "AgencyTypeID", true, "VarWChar", 2, 0, 0, false, "", null, typeof(System.String), 0);
this.AddElementFieldMapping("TblReferralsToEntity", "DeathReasonId", "DeathReasonID", true, "VarWChar", 2, 0, 0, false, "", null, typeof(System.String), 1);
this.AddElementFieldMapping("TblReferralsToEntity", "EndDate", "EndDate", true, "Date", 0, 0, 0, false, "", null, typeof(System.DateTime), 2);
this.AddElementFieldMapping("TblReferralsToEntity", "Note", "Note", true, "LongVarWChar", 536870911, 0, 0, false, "", null, typeof(System.String), 3);
this.AddElementFieldMapping("TblReferralsToEntity", "PatientId", "PatientID", true, "VarWChar", 15, 0, 0, false, "", null, typeof(System.String), 4);
this.AddElementFieldMapping("TblReferralsToEntity", "ProvinceId", "ProvinceID", true, "VarWChar", 3, 0, 0, false, "", null, typeof(System.String), 5);
this.AddElementFieldMapping("TblReferralsToEntity", "ReceiveServiceDate", "ReceiveServiceDate", true, "Date", 0, 0, 0, false, "", null, typeof(System.DateTime), 6);
this.AddElementFieldMapping("TblReferralsToEntity", "ReferralAgency", "ReferralAgency", true, "VarWChar", 255, 0, 0, false, "", null, typeof(System.String), 7);
this.AddElementFieldMapping("TblReferralsToEntity", "Status", "Status", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 8);
this.AddElementFieldMapping("TblReferralsToEntity", "TypeId", "TypeID", true, "VarWChar", 2, 0, 0, false, "", null, typeof(System.String), 9);
this.AddElementFieldMapping("TblReferralsToEntity", "UniqueKey", "UniqueKey", false, "VarWChar", 32, 0, 0, false, "", null, typeof(System.String), 10);
}
/// <summary>Inits TblReferraltoServiceEntity's mappings</summary>
private void InitTblReferraltoServiceEntityMappings()
{
this.AddElementMapping("TblReferraltoServiceEntity", @"FHI", @"Default", "tblReferraltoServices", 9, 0);
this.AddElementFieldMapping("TblReferraltoServiceEntity", "AgencyTypeId", "AgencyTypeID", true, "VarWChar", 2, 0, 0, false, "", null, typeof(System.String), 0);
this.AddElementFieldMapping("TblReferraltoServiceEntity", "Note", "Note", true, "LongVarWChar", 536870911, 0, 0, false, "", null, typeof(System.String), 1);
this.AddElementFieldMapping("TblReferraltoServiceEntity", "PatientId", "PatientID", true, "VarWChar", 15, 0, 0, false, "", null, typeof(System.String), 2);
this.AddElementFieldMapping("TblReferraltoServiceEntity", "ProvinceId", "ProvinceID", true, "VarWChar", 3, 0, 0, false, "", null, typeof(System.String), 3);
this.AddElementFieldMapping("TblReferraltoServiceEntity", "ReceiveServiceDate", "ReceiveServiceDate", true, "Date", 0, 0, 0, false, "", null, typeof(System.DateTime), 4);
this.AddElementFieldMapping("TblReferraltoServiceEntity", "ReferralAgency", "ReferralAgency", true, "VarWChar", 255, 0, 0, false, "", null, typeof(System.String), 5);
this.AddElementFieldMapping("TblReferraltoServiceEntity", "ReferralDate", "ReferralDate", true, "Date", 0, 0, 0, false, "", null, typeof(System.DateTime), 6);
this.AddElementFieldMapping("TblReferraltoServiceEntity", "Status", "Status", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 7);
this.AddElementFieldMapping("TblReferraltoServiceEntity", "UniqueKey", "UniqueKey", false, "VarWChar", 32, 0, 0, false, "", null, typeof(System.String), 8);
}
/// <summary>Inits TblRegimenEntity's mappings</summary>
private void InitTblRegimenEntityMappings()
{
this.AddElementMapping("TblRegimenEntity", @"FHI", @"Default", "tblRegimens", 5, 0);
this.AddElementFieldMapping("TblRegimenEntity", "ERegimenName", "eRegimenName", true, "VarWChar", 255, 0, 0, false, "", null, typeof(System.String), 0);
this.AddElementFieldMapping("TblRegimenEntity", "Regimenid", "Regimenid", false, "VarWChar", 2, 0, 0, false, "", null, typeof(System.String), 1);
this.AddElementFieldMapping("TblRegimenEntity", "Sign", "Sign", true, "VarWChar", 3, 0, 0, false, "", null, typeof(System.String), 2);
this.AddElementFieldMapping("TblRegimenEntity", "Type", "Type", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 3);
this.AddElementFieldMapping("TblRegimenEntity", "VRegimenname", "vRegimenname", true, "VarWChar", 255, 0, 0, false, "", null, typeof(System.String), 4);
}
/// <summary>Inits TblRegimenStopReasonEntity's mappings</summary>
private void InitTblRegimenStopReasonEntityMappings()
{
this.AddElementMapping("TblRegimenStopReasonEntity", @"FHI", @"Default", "tblRegimenStopReasons", 4, 0);
this.AddElementFieldMapping("TblRegimenStopReasonEntity", "EReasonDes", "eReasonDes", true, "VarWChar", 255, 0, 0, false, "", null, typeof(System.String), 0);
this.AddElementFieldMapping("TblRegimenStopReasonEntity", "ReasonId", "ReasonID", false, "VarWChar", 2, 0, 0, false, "", null, typeof(System.String), 1);
this.AddElementFieldMapping("TblRegimenStopReasonEntity", "Sign", "Sign", true, "VarWChar", 2, 0, 0, false, "", null, typeof(System.String), 2);
this.AddElementFieldMapping("TblRegimenStopReasonEntity", "VReasonDes", "vReasonDes", true, "VarWChar", 255, 0, 0, false, "", null, typeof(System.String), 3);
}
/// <summary>Inits TblServiceEntity's mappings</summary>
private void InitTblServiceEntityMappings()
{
this.AddElementMapping("TblServiceEntity", @"FHI", @"Default", "tblServices", 3, 0);
this.AddElementFieldMapping("TblServiceEntity", "EServiceName", "eServiceName", true, "VarWChar", 255, 0, 0, false, "", null, typeof(System.String), 0);
this.AddElementFieldMapping("TblServiceEntity", "ServiceId", "ServiceID", false, "VarWChar", 2, 0, 0, false, "", null, typeof(System.String), 1);
this.AddElementFieldMapping("TblServiceEntity", "VServiceName", "vServiceName", true, "VarWChar", 255, 0, 0, false, "", null, typeof(System.String), 2);
}
/// <summary>Inits TblTestEntity's mappings</summary>
private void InitTblTestEntityMappings()
{
this.AddElementMapping("TblTestEntity", @"FHI", @"Default", "tblTests", 3, 0);
this.AddElementFieldMapping("TblTestEntity", "ETestName", "eTestName", true, "VarWChar", 255, 0, 0, false, "", null, typeof(System.String), 0);
this.AddElementFieldMapping("TblTestEntity", "Testid", "Testid", false, "VarWChar", 2, 0, 0, false, "", null, typeof(System.String), 1);
this.AddElementFieldMapping("TblTestEntity", "VTestName", "vTestName", true, "VarWChar", 255, 0, 0, false, "", null, typeof(System.String), 2);
}
/// <summary>Inits TblTreatmentEntity's mappings</summary>
private void InitTblTreatmentEntityMappings()
{
this.AddElementMapping("TblTreatmentEntity", @"FHI", @"Default", "tblTreatments", 4, 0);
this.AddElementFieldMapping("TblTreatmentEntity", "ETreatmentDes", "eTreatmentDes", true, "VarWChar", 255, 0, 0, false, "", null, typeof(System.String), 0);
this.AddElementFieldMapping("TblTreatmentEntity", "Sign", "Sign", true, "VarWChar", 10, 0, 0, false, "", null, typeof(System.String), 1);
this.AddElementFieldMapping("TblTreatmentEntity", "TreatmentId", "TreatmentID", false, "VarWChar", 2, 0, 0, false, "", null, typeof(System.String), 2);
this.AddElementFieldMapping("TblTreatmentEntity", "VTreatmentDes", "vTreatmentDes", true, "VarWChar", 255, 0, 0, false, "", null, typeof(System.String), 3);
}
/// <summary>Inits TblTreatmentInfoEntity's mappings</summary>
private void InitTblTreatmentInfoEntityMappings()
{
this.AddElementMapping("TblTreatmentInfoEntity", @"FHI", @"Default", "tblTreatmentInfo", 7, 0);
this.AddElementFieldMapping("TblTreatmentInfoEntity", "PatientId", "PatientID", false, "VarWChar", 15, 0, 0, false, "", null, typeof(System.String), 0);
this.AddElementFieldMapping("TblTreatmentInfoEntity", "ReasonId", "ReasonID", true, "VarWChar", 2, 0, 0, false, "", null, typeof(System.String), 1);
this.AddElementFieldMapping("TblTreatmentInfoEntity", "Regimenid", "Regimenid", true, "VarWChar", 2, 0, 0, false, "", null, typeof(System.String), 2);
this.AddElementFieldMapping("TblTreatmentInfoEntity", "TreatmentEdate", "TreatmentEdate", true, "Date", 0, 0, 0, false, "", null, typeof(System.DateTime), 3);
this.AddElementFieldMapping("TblTreatmentInfoEntity", "TreatmentId", "TreatmentID", true, "VarWChar", 2, 0, 0, false, "", null, typeof(System.String), 4);
this.AddElementFieldMapping("TblTreatmentInfoEntity", "TreatmentSdate", "TreatmentSdate", true, "Date", 0, 0, 0, false, "", null, typeof(System.DateTime), 5);
this.AddElementFieldMapping("TblTreatmentInfoEntity", "UniqueKey", "UniqueKey", false, "VarWChar", 32, 0, 0, false, "", null, typeof(System.String), 6);
}
/// <summary>Inits TblWaitingListEntity's mappings</summary>
private void InitTblWaitingListEntityMappings()
{
this.AddElementMapping("TblWaitingListEntity", @"FHI", @"Default", "tblWaitingList", 10, 0);
this.AddElementFieldMapping("TblWaitingListEntity", "Arv", "ARV", false, "Boolean", 2, 0, 0, false, "", null, typeof(System.Boolean), 0);
this.AddElementFieldMapping("TblWaitingListEntity", "FollowNum", "FollowNum", true, "VarWChar", 255, 0, 0, false, "", null, typeof(System.String), 1);
this.AddElementFieldMapping("TblWaitingListEntity", "LastFolowResult", "lastFolowResult", true, "VarWChar", 255, 0, 0, false, "", null, typeof(System.String), 2);
this.AddElementFieldMapping("TblWaitingListEntity", "LateTimes", "LateTimes", true, "VarWChar", 255, 0, 0, false, "", null, typeof(System.String), 3);
this.AddElementFieldMapping("TblWaitingListEntity", "PatientId", "PatientID", false, "VarWChar", 15, 0, 0, false, "", null, typeof(System.String), 4);
this.AddElementFieldMapping("TblWaitingListEntity", "PatientName", "PatientName", true, "VarWChar", 255, 0, 0, false, "", null, typeof(System.String), 5);
this.AddElementFieldMapping("TblWaitingListEntity", "ReExamDate", "ReExamDate", true, "Date", 0, 0, 0, false, "", null, typeof(System.DateTime), 6);
this.AddElementFieldMapping("TblWaitingListEntity", "Selected", "Selected", false, "Boolean", 2, 0, 0, false, "", null, typeof(System.Boolean), 7);
this.AddElementFieldMapping("TblWaitingListEntity", "Status", "Status", true, "VarWChar", 50, 0, 0, false, "", null, typeof(System.String), 8);
this.AddElementFieldMapping("TblWaitingListEntity", "TelephoneNo", "TelephoneNo", true, "VarWChar", 20, 0, 0, false, "", null, typeof(System.String), 9);
}
}
}